@public-ui/components 4.1.2-rc.1 → 4.1.2-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (688) hide show
  1. package/assets/kolicons/kolicons.eot +0 -0
  2. package/assets/kolicons/kolicons.ttf +0 -0
  3. package/assets/kolicons/kolicons.woff +0 -0
  4. package/assets/kolicons/kolicons.woff2 +0 -0
  5. package/assets/kolicons/style.css +6 -6
  6. package/custom-elements.json +153 -624
  7. package/dist/cjs/{Alert-Cw9sZoxW.js → Alert-B4Hj8NjA.js} +1 -1
  8. package/dist/cjs/{Alert-Cw9sZoxW.js.map → Alert-B4Hj8NjA.js.map} +1 -1
  9. package/dist/cjs/{Collapsible-W9myHFxA.js → Collapsible-Dijo3pX0.js} +1 -1
  10. package/dist/cjs/{Collapsible-W9myHFxA.js.map → Collapsible-Dijo3pX0.js.map} +1 -1
  11. package/dist/cjs/{CustomSuggestionsOptionsGroup-BTWrYAk-.js → CustomSuggestionsOptionsGroup-Mgl4AAEi.js} +1 -1
  12. package/dist/cjs/{CustomSuggestionsOptionsGroup-BTWrYAk-.js.map → CustomSuggestionsOptionsGroup-Mgl4AAEi.js.map} +1 -1
  13. package/dist/cjs/{FieldControlStateWrapper-C_inrfM7.js → FieldControlStateWrapper-x-Ky7VQD.js} +1 -1
  14. package/dist/cjs/{FieldControlStateWrapper-C_inrfM7.js.map → FieldControlStateWrapper-x-Ky7VQD.js.map} +1 -1
  15. package/dist/cjs/{FormFieldStateWrapper-4lfwXY_q.js → FormFieldStateWrapper-C8Tav05H.js} +1 -1
  16. package/dist/cjs/{FormFieldStateWrapper-4lfwXY_q.js.map → FormFieldStateWrapper-C8Tav05H.js.map} +1 -1
  17. package/dist/cjs/{Heading-C12RqDRf.js → Heading-BCb6_DOq.js} +1 -1
  18. package/dist/cjs/{Heading-C12RqDRf.js.map → Heading-BCb6_DOq.js.map} +1 -1
  19. package/dist/cjs/{Input-EcHO3kdR.js → Input-B5i_1a7W.js} +1 -1
  20. package/dist/cjs/{Input-EcHO3kdR.js.map → Input-B5i_1a7W.js.map} +1 -1
  21. package/dist/cjs/{InputStateWrapper-Bo6IoxAD.js → InputStateWrapper-xtqqc1vC.js} +1 -1
  22. package/dist/cjs/{InputStateWrapper-Bo6IoxAD.js.map → InputStateWrapper-xtqqc1vC.js.map} +1 -1
  23. package/dist/cjs/{app-globals-BhcKC4Ox.js → app-globals-DVEVPuuO.js} +1 -1
  24. package/dist/cjs/{app-globals-BhcKC4Ox.js.map → app-globals-DVEVPuuO.js.map} +1 -1
  25. package/dist/cjs/{component-DceU4ORK.js → component-BsaPD_xm.js} +1 -1
  26. package/dist/cjs/{component-DceU4ORK.js.map → component-BsaPD_xm.js.map} +1 -1
  27. package/dist/cjs/{component-D-qiYnI6.js → component-g902nOgi.js} +1 -1
  28. package/dist/cjs/{component-D-qiYnI6.js.map → component-g902nOgi.js.map} +1 -1
  29. package/dist/cjs/{controller-CJLYpbTW.js → controller-Btq8uSY3.js} +1 -1
  30. package/dist/cjs/{controller-CJLYpbTW.js.map → controller-Btq8uSY3.js.map} +1 -1
  31. package/dist/cjs/{controller-16gxT6uy.js → controller-ChTDDlUI.js} +1 -1
  32. package/dist/cjs/{controller-16gxT6uy.js.map → controller-ChTDDlUI.js.map} +1 -1
  33. package/dist/cjs/{controller-CnGbboNY.js → controller-CkP5MO7F.js} +1 -1
  34. package/dist/cjs/{controller-CnGbboNY.js.map → controller-CkP5MO7F.js.map} +1 -1
  35. package/dist/cjs/{controller-Clk7RX5l.js → controller-Cuu9WuW7.js} +1 -1
  36. package/dist/cjs/{controller-Clk7RX5l.js.map → controller-Cuu9WuW7.js.map} +1 -1
  37. package/dist/cjs/{controller-icon-BzDGBbsy.js → controller-icon-ClEpzUUk.js} +1 -1
  38. package/dist/cjs/{controller-icon-BzDGBbsy.js.map → controller-icon-ClEpzUUk.js.map} +1 -1
  39. package/dist/cjs/{dev.utils-Cd8lnY8W.js → dev.utils-OOR6uYvl.js} +1 -1
  40. package/dist/cjs/{dev.utils-Cd8lnY8W.js.map → dev.utils-OOR6uYvl.js.map} +1 -1
  41. package/dist/cjs/{devtools-CcQTicOw.js → devtools-Crg6PzgP.js} +1 -1
  42. package/dist/cjs/{devtools-CcQTicOw.js.map → devtools-Crg6PzgP.js.map} +1 -1
  43. package/dist/cjs/{index-BDC4d4pa.js → index-DMu8_ik9.js} +1 -1
  44. package/dist/cjs/{index-BDC4d4pa.js.map → index-DMu8_ik9.js.map} +1 -1
  45. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  46. package/dist/cjs/kol-abbr.entry.cjs.js.map +1 -1
  47. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  48. package/dist/cjs/kol-accordion.entry.cjs.js.map +1 -1
  49. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  50. package/dist/cjs/kol-alert-wc.entry.cjs.js.map +1 -1
  51. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-alert.entry.cjs.js.map +1 -1
  53. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-avatar.entry.cjs.js.map +1 -1
  55. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-badge.entry.cjs.js.map +1 -1
  57. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-breadcrumb.entry.cjs.js.map +1 -1
  59. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-button-link.entry.cjs.js.map +1 -1
  61. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-button-wc.entry.cjs.js.map +1 -1
  63. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-button.entry.cjs.js.map +1 -1
  65. package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-card-wc.entry.cjs.js.map +1 -1
  67. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-card.entry.cjs.js.map +1 -1
  69. package/dist/cjs/kol-click-button.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-click-button.entry.cjs.js.map +1 -1
  71. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-combobox.entry.cjs.js.map +1 -1
  73. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-details.entry.cjs.js.map +1 -1
  75. package/dist/cjs/kol-dialog-wc.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-dialog.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-dialog.entry.cjs.js.map +1 -1
  78. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-drawer.entry.cjs.js.map +1 -1
  80. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-form.entry.cjs.js.map +1 -1
  82. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-heading.entry.cjs.js.map +1 -1
  84. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-icon.entry.cjs.js.map +1 -1
  86. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-image.entry.cjs.js.map +1 -1
  88. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +1 -1
  90. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-input-color.entry.cjs.js.map +1 -1
  92. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-input-date.entry.cjs.js.map +1 -1
  94. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-input-email.entry.cjs.js.map +1 -1
  96. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-input-file.entry.cjs.js.map +1 -1
  98. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-input-number.entry.cjs.js.map +1 -1
  100. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-input-password.entry.cjs.js.map +1 -1
  102. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-input-radio.entry.cjs.js.map +1 -1
  104. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-input-range.entry.cjs.js.map +1 -1
  106. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-input-text.entry.cjs.js.map +1 -1
  108. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-kolibri.entry.cjs.js.map +1 -1
  110. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-link-button.entry.cjs.js.map +1 -1
  112. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-link.entry.cjs.js.map +1 -1
  115. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-modal.entry.cjs.js.map +1 -1
  117. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-nav.entry.cjs.js.map +1 -1
  119. package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-pagination-wc.entry.cjs.js.map +1 -1
  121. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-pagination.entry.cjs.js.map +1 -1
  123. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-popover-button-wc.entry.cjs.js.map +1 -1
  125. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-popover-button.entry.cjs.js.map +1 -1
  127. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-progress.entry.cjs.js.map +1 -1
  130. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-quote.entry.cjs.js.map +1 -1
  132. package/dist/cjs/kol-select-wc.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-select-wc.entry.cjs.js.map +1 -1
  134. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-select.entry.cjs.js.map +1 -1
  136. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-single-select.entry.cjs.js.map +1 -1
  138. package/dist/cjs/kol-skeleton.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-skip-nav.entry.cjs.js.map +1 -1
  141. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-spin.entry.cjs.js.map +1 -1
  143. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-split-button.entry.cjs.js.map +1 -1
  145. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  146. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  147. package/dist/cjs/kol-table-stateful.entry.cjs.js.map +1 -1
  148. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  149. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  150. package/dist/cjs/kol-table-stateless.entry.cjs.js.map +1 -1
  151. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  152. package/dist/cjs/kol-tabs.entry.cjs.js.map +1 -1
  153. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  154. package/dist/cjs/kol-textarea.entry.cjs.js.map +1 -1
  155. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  156. package/dist/cjs/kol-toast-container.entry.cjs.js.map +1 -1
  157. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  158. package/dist/cjs/kol-toolbar.entry.cjs.js.map +1 -1
  159. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  160. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  161. package/dist/cjs/kol-tree-item-wc.entry.cjs.js.map +1 -1
  162. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  163. package/dist/cjs/kol-tree-item.entry.cjs.js.map +1 -1
  164. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  165. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  166. package/dist/cjs/kol-tree.entry.cjs.js.map +1 -1
  167. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  168. package/dist/cjs/kol-version.entry.cjs.js.map +1 -1
  169. package/dist/cjs/kolibri.cjs.js +1 -1
  170. package/dist/cjs/loader.cjs.js +1 -1
  171. package/dist/cjs/test-component.cjs.entry.js +1 -1
  172. package/dist/components/kol-abbr.js +1 -1
  173. package/dist/components/kol-abbr.js.map +1 -1
  174. package/dist/components/kol-accordion.js +1 -1
  175. package/dist/components/kol-accordion.js.map +1 -1
  176. package/dist/components/kol-alert-wc.js +1 -1
  177. package/dist/components/kol-alert-wc.js.map +1 -1
  178. package/dist/components/kol-alert.js +1 -1
  179. package/dist/components/kol-alert.js.map +1 -1
  180. package/dist/components/kol-avatar.js +1 -1
  181. package/dist/components/kol-avatar.js.map +1 -1
  182. package/dist/components/kol-badge.js +1 -1
  183. package/dist/components/kol-badge.js.map +1 -1
  184. package/dist/components/kol-breadcrumb.js +1 -1
  185. package/dist/components/kol-breadcrumb.js.map +1 -1
  186. package/dist/components/kol-button-link.js +1 -1
  187. package/dist/components/kol-button-link.js.map +1 -1
  188. package/dist/components/kol-button-wc.js +1 -1
  189. package/dist/components/kol-button-wc.js.map +1 -1
  190. package/dist/components/kol-button.js +1 -1
  191. package/dist/components/kol-button.js.map +1 -1
  192. package/dist/components/kol-card-wc.js +1 -1
  193. package/dist/components/kol-card-wc.js.map +1 -1
  194. package/dist/components/kol-card.js +1 -1
  195. package/dist/components/kol-card.js.map +1 -1
  196. package/dist/components/kol-click-button.js +1 -1
  197. package/dist/components/kol-click-button.js.map +1 -1
  198. package/dist/components/kol-combobox.js +1 -1
  199. package/dist/components/kol-combobox.js.map +1 -1
  200. package/dist/components/kol-details.js +1 -1
  201. package/dist/components/kol-details.js.map +1 -1
  202. package/dist/components/kol-dialog.js +1 -1
  203. package/dist/components/kol-dialog.js.map +1 -1
  204. package/dist/components/kol-drawer.js +1 -1
  205. package/dist/components/kol-drawer.js.map +1 -1
  206. package/dist/components/kol-form.js +1 -1
  207. package/dist/components/kol-form.js.map +1 -1
  208. package/dist/components/kol-heading.js +1 -1
  209. package/dist/components/kol-heading.js.map +1 -1
  210. package/dist/components/kol-icon.js +1 -1
  211. package/dist/components/kol-icon.js.map +1 -1
  212. package/dist/components/kol-image.js +1 -1
  213. package/dist/components/kol-image.js.map +1 -1
  214. package/dist/components/kol-input-checkbox.js +1 -1
  215. package/dist/components/kol-input-checkbox.js.map +1 -1
  216. package/dist/components/kol-input-color.js +1 -1
  217. package/dist/components/kol-input-color.js.map +1 -1
  218. package/dist/components/kol-input-date.js +1 -1
  219. package/dist/components/kol-input-date.js.map +1 -1
  220. package/dist/components/kol-input-email.js +1 -1
  221. package/dist/components/kol-input-email.js.map +1 -1
  222. package/dist/components/kol-input-file.js +1 -1
  223. package/dist/components/kol-input-file.js.map +1 -1
  224. package/dist/components/kol-input-number.js +1 -1
  225. package/dist/components/kol-input-number.js.map +1 -1
  226. package/dist/components/kol-input-password.js +1 -1
  227. package/dist/components/kol-input-password.js.map +1 -1
  228. package/dist/components/kol-input-radio.js +1 -1
  229. package/dist/components/kol-input-radio.js.map +1 -1
  230. package/dist/components/kol-input-range.js +1 -1
  231. package/dist/components/kol-input-range.js.map +1 -1
  232. package/dist/components/kol-input-text.js +1 -1
  233. package/dist/components/kol-input-text.js.map +1 -1
  234. package/dist/components/kol-kolibri.js.map +1 -1
  235. package/dist/components/kol-link-button.js +1 -1
  236. package/dist/components/kol-link-button.js.map +1 -1
  237. package/dist/components/kol-link.js +1 -1
  238. package/dist/components/kol-link.js.map +1 -1
  239. package/dist/components/kol-modal.js +1 -1
  240. package/dist/components/kol-modal.js.map +1 -1
  241. package/dist/components/kol-nav.js +1 -1
  242. package/dist/components/kol-nav.js.map +1 -1
  243. package/dist/components/kol-pagination-wc.js.map +1 -1
  244. package/dist/components/kol-pagination.js +1 -1
  245. package/dist/components/kol-pagination.js.map +1 -1
  246. package/dist/components/kol-popover-button-wc.js +1 -1
  247. package/dist/components/kol-popover-button-wc.js.map +1 -1
  248. package/dist/components/kol-popover-button.js +1 -1
  249. package/dist/components/kol-popover-button.js.map +1 -1
  250. package/dist/components/kol-progress.js +1 -1
  251. package/dist/components/kol-progress.js.map +1 -1
  252. package/dist/components/kol-quote.js +1 -1
  253. package/dist/components/kol-quote.js.map +1 -1
  254. package/dist/components/kol-select-wc.js +1 -1
  255. package/dist/components/kol-select-wc.js.map +1 -1
  256. package/dist/components/kol-select.js +1 -1
  257. package/dist/components/kol-select.js.map +1 -1
  258. package/dist/components/kol-single-select.js +1 -1
  259. package/dist/components/kol-single-select.js.map +1 -1
  260. package/dist/components/kol-skip-nav.js +1 -1
  261. package/dist/components/kol-skip-nav.js.map +1 -1
  262. package/dist/components/kol-spin.js +1 -1
  263. package/dist/components/kol-spin.js.map +1 -1
  264. package/dist/components/kol-split-button.js +1 -1
  265. package/dist/components/kol-split-button.js.map +1 -1
  266. package/dist/components/kol-table-stateful.js +1 -1
  267. package/dist/components/kol-table-stateful.js.map +1 -1
  268. package/dist/components/kol-table-stateless.js +1 -1
  269. package/dist/components/kol-table-stateless.js.map +1 -1
  270. package/dist/components/kol-tabs.js +1 -1
  271. package/dist/components/kol-tabs.js.map +1 -1
  272. package/dist/components/kol-textarea.js +1 -1
  273. package/dist/components/kol-textarea.js.map +1 -1
  274. package/dist/components/kol-toast-container.js +1 -1
  275. package/dist/components/kol-toast-container.js.map +1 -1
  276. package/dist/components/kol-toolbar.js +1 -1
  277. package/dist/components/kol-toolbar.js.map +1 -1
  278. package/dist/components/kol-tree-item-wc.js +1 -1
  279. package/dist/components/kol-tree-item-wc.js.map +1 -1
  280. package/dist/components/kol-tree-item.js +1 -1
  281. package/dist/components/kol-tree-item.js.map +1 -1
  282. package/dist/components/kol-tree.js.map +1 -1
  283. package/dist/components/kol-version.js.map +1 -1
  284. package/dist/esm/{Alert-Cw_LoKSN.js → Alert-SEfIw75e.js} +1 -1
  285. package/dist/esm/{Alert-Cw_LoKSN.js.map → Alert-SEfIw75e.js.map} +1 -1
  286. package/dist/esm/{Collapsible-DZA8yQbA.js → Collapsible-BJmhBOFS.js} +1 -1
  287. package/dist/esm/{Collapsible-DZA8yQbA.js.map → Collapsible-BJmhBOFS.js.map} +1 -1
  288. package/dist/esm/{CustomSuggestionsOptionsGroup-B7qeS4jH.js → CustomSuggestionsOptionsGroup-BLcy0M21.js} +1 -1
  289. package/dist/{kolibri/CustomSuggestionsOptionsGroup-B7qeS4jH.js.map → esm/CustomSuggestionsOptionsGroup-BLcy0M21.js.map} +1 -1
  290. package/dist/esm/{FieldControlStateWrapper-B3IEsGo5.js → FieldControlStateWrapper-BB5w_l7S.js} +1 -1
  291. package/dist/{kolibri/FieldControlStateWrapper-B3IEsGo5.js.map → esm/FieldControlStateWrapper-BB5w_l7S.js.map} +1 -1
  292. package/dist/esm/{FormFieldStateWrapper-D1JTt3ul.js → FormFieldStateWrapper-CgJ3zrOg.js} +1 -1
  293. package/dist/{kolibri/FormFieldStateWrapper-D1JTt3ul.js.map → esm/FormFieldStateWrapper-CgJ3zrOg.js.map} +1 -1
  294. package/dist/esm/{Heading-CMmrUlbQ.js → Heading-CC-ueMZ4.js} +1 -1
  295. package/dist/{kolibri/Heading-CMmrUlbQ.js.map → esm/Heading-CC-ueMZ4.js.map} +1 -1
  296. package/dist/esm/{Input-BtjxL296.js → Input-DITvkoGT.js} +1 -1
  297. package/dist/esm/{Input-BtjxL296.js.map → Input-DITvkoGT.js.map} +1 -1
  298. package/dist/esm/{InputStateWrapper-CEMRSPYO.js → InputStateWrapper-DnMUPWkd.js} +1 -1
  299. package/dist/{kolibri/InputStateWrapper-CEMRSPYO.js.map → esm/InputStateWrapper-DnMUPWkd.js.map} +1 -1
  300. package/dist/esm/{app-globals-MFFawMzD.js → app-globals-BZVRuPmn.js} +1 -1
  301. package/dist/esm/{app-globals-MFFawMzD.js.map → app-globals-BZVRuPmn.js.map} +1 -1
  302. package/dist/esm/component-CraT9mqx.js +4 -0
  303. package/dist/esm/{component-BssZbWQw.js.map → component-CraT9mqx.js.map} +1 -1
  304. package/dist/esm/{component-Dy6q6xwI.js → component-Hu7IB74c.js} +1 -1
  305. package/dist/esm/{component-Dy6q6xwI.js.map → component-Hu7IB74c.js.map} +1 -1
  306. package/dist/esm/{controller-Dcr8l6pm.js → controller-BycnRnHB.js} +1 -1
  307. package/dist/esm/{controller-Dcr8l6pm.js.map → controller-BycnRnHB.js.map} +1 -1
  308. package/dist/esm/{controller-Bdpk05ma.js → controller-D-JlwVeq.js} +1 -1
  309. package/dist/{kolibri/controller-Bdpk05ma.js.map → esm/controller-D-JlwVeq.js.map} +1 -1
  310. package/dist/esm/{controller-D9pydrRe.js → controller-_xUb5o7B.js} +1 -1
  311. package/dist/{kolibri/controller-D9pydrRe.js.map → esm/controller-_xUb5o7B.js.map} +1 -1
  312. package/dist/esm/{controller-icon-BGyWFin_.js → controller-icon-CtBWDrG3.js} +1 -1
  313. package/dist/esm/{controller-icon-BGyWFin_.js.map → controller-icon-CtBWDrG3.js.map} +1 -1
  314. package/dist/esm/{controller-bc3Jqv9j.js → controller-nDa_fsDo.js} +1 -1
  315. package/dist/esm/{controller-bc3Jqv9j.js.map → controller-nDa_fsDo.js.map} +1 -1
  316. package/dist/esm/{dev.utils-9aA-dFCs.js → dev.utils-_tIxkFEq.js} +1 -1
  317. package/dist/esm/{dev.utils-9aA-dFCs.js.map → dev.utils-_tIxkFEq.js.map} +1 -1
  318. package/dist/esm/{devtools-Cak1VbpQ.js → devtools-Shxsg0kz.js} +1 -1
  319. package/dist/{kolibri/devtools-Cak1VbpQ.js.map → esm/devtools-Shxsg0kz.js.map} +1 -1
  320. package/dist/esm/{index-Cgf1FZ14.js → index-C-7ueFeG.js} +1 -1
  321. package/dist/{kolibri/index-Cgf1FZ14.js.map → esm/index-C-7ueFeG.js.map} +1 -1
  322. package/dist/esm/kol-abbr.entry.js +1 -1
  323. package/dist/esm/kol-abbr.entry.js.map +1 -1
  324. package/dist/esm/kol-accordion.entry.js +1 -1
  325. package/dist/esm/kol-accordion.entry.js.map +1 -1
  326. package/dist/esm/kol-alert-wc.entry.js +1 -1
  327. package/dist/esm/kol-alert-wc.entry.js.map +1 -1
  328. package/dist/esm/kol-alert.entry.js +1 -1
  329. package/dist/esm/kol-alert.entry.js.map +1 -1
  330. package/dist/esm/kol-avatar.entry.js +1 -1
  331. package/dist/esm/kol-avatar.entry.js.map +1 -1
  332. package/dist/esm/kol-badge.entry.js +1 -1
  333. package/dist/esm/kol-badge.entry.js.map +1 -1
  334. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  335. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  336. package/dist/esm/kol-button-link.entry.js +1 -1
  337. package/dist/esm/kol-button-link.entry.js.map +1 -1
  338. package/dist/esm/kol-button-wc.entry.js +1 -1
  339. package/dist/esm/kol-button-wc.entry.js.map +1 -1
  340. package/dist/esm/kol-button.entry.js +1 -1
  341. package/dist/esm/kol-button.entry.js.map +1 -1
  342. package/dist/esm/kol-card-wc.entry.js +1 -1
  343. package/dist/esm/kol-card-wc.entry.js.map +1 -1
  344. package/dist/esm/kol-card.entry.js +1 -1
  345. package/dist/esm/kol-card.entry.js.map +1 -1
  346. package/dist/esm/kol-click-button.entry.js +1 -1
  347. package/dist/esm/kol-click-button.entry.js.map +1 -1
  348. package/dist/esm/kol-combobox.entry.js +1 -1
  349. package/dist/esm/kol-combobox.entry.js.map +1 -1
  350. package/dist/esm/kol-details.entry.js +1 -1
  351. package/dist/esm/kol-details.entry.js.map +1 -1
  352. package/dist/esm/kol-dialog-wc.entry.js +1 -1
  353. package/dist/esm/kol-dialog.entry.js +1 -1
  354. package/dist/esm/kol-dialog.entry.js.map +1 -1
  355. package/dist/esm/kol-drawer.entry.js +1 -1
  356. package/dist/esm/kol-drawer.entry.js.map +1 -1
  357. package/dist/esm/kol-form.entry.js +1 -1
  358. package/dist/esm/kol-form.entry.js.map +1 -1
  359. package/dist/esm/kol-heading.entry.js +1 -1
  360. package/dist/esm/kol-heading.entry.js.map +1 -1
  361. package/dist/esm/kol-icon.entry.js +1 -1
  362. package/dist/esm/kol-icon.entry.js.map +1 -1
  363. package/dist/esm/kol-image.entry.js +1 -1
  364. package/dist/esm/kol-image.entry.js.map +1 -1
  365. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  366. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  367. package/dist/esm/kol-input-color.entry.js +1 -1
  368. package/dist/esm/kol-input-color.entry.js.map +1 -1
  369. package/dist/esm/kol-input-date.entry.js +1 -1
  370. package/dist/esm/kol-input-date.entry.js.map +1 -1
  371. package/dist/esm/kol-input-email.entry.js +1 -1
  372. package/dist/esm/kol-input-email.entry.js.map +1 -1
  373. package/dist/esm/kol-input-file.entry.js +1 -1
  374. package/dist/esm/kol-input-file.entry.js.map +1 -1
  375. package/dist/esm/kol-input-number.entry.js +1 -1
  376. package/dist/esm/kol-input-number.entry.js.map +1 -1
  377. package/dist/esm/kol-input-password.entry.js +1 -1
  378. package/dist/esm/kol-input-password.entry.js.map +1 -1
  379. package/dist/esm/kol-input-radio.entry.js +1 -1
  380. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  381. package/dist/esm/kol-input-range.entry.js +1 -1
  382. package/dist/esm/kol-input-range.entry.js.map +1 -1
  383. package/dist/esm/kol-input-text.entry.js +1 -1
  384. package/dist/esm/kol-input-text.entry.js.map +1 -1
  385. package/dist/esm/kol-kolibri.entry.js +1 -1
  386. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  387. package/dist/esm/kol-link-button.entry.js +1 -1
  388. package/dist/esm/kol-link-button.entry.js.map +1 -1
  389. package/dist/esm/kol-link-wc.entry.js +1 -1
  390. package/dist/esm/kol-link.entry.js +1 -1
  391. package/dist/esm/kol-link.entry.js.map +1 -1
  392. package/dist/esm/kol-modal.entry.js +1 -1
  393. package/dist/esm/kol-modal.entry.js.map +1 -1
  394. package/dist/esm/kol-nav.entry.js +1 -1
  395. package/dist/esm/kol-nav.entry.js.map +1 -1
  396. package/dist/esm/kol-pagination-wc.entry.js +1 -1
  397. package/dist/esm/kol-pagination-wc.entry.js.map +1 -1
  398. package/dist/esm/kol-pagination.entry.js +1 -1
  399. package/dist/esm/kol-pagination.entry.js.map +1 -1
  400. package/dist/esm/kol-popover-button-wc.entry.js +1 -1
  401. package/dist/esm/kol-popover-button-wc.entry.js.map +1 -1
  402. package/dist/esm/kol-popover-button.entry.js +1 -1
  403. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  404. package/dist/esm/kol-popover-wc.entry.js +1 -1
  405. package/dist/esm/kol-progress.entry.js +1 -1
  406. package/dist/esm/kol-progress.entry.js.map +1 -1
  407. package/dist/esm/kol-quote.entry.js +1 -1
  408. package/dist/esm/kol-quote.entry.js.map +1 -1
  409. package/dist/esm/kol-select-wc.entry.js +1 -1
  410. package/dist/esm/kol-select-wc.entry.js.map +1 -1
  411. package/dist/esm/kol-select.entry.js +1 -1
  412. package/dist/esm/kol-select.entry.js.map +1 -1
  413. package/dist/esm/kol-single-select.entry.js +1 -1
  414. package/dist/esm/kol-single-select.entry.js.map +1 -1
  415. package/dist/esm/kol-skeleton.entry.js +1 -1
  416. package/dist/esm/kol-skip-nav.entry.js +1 -1
  417. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  418. package/dist/esm/kol-spin.entry.js +1 -1
  419. package/dist/esm/kol-spin.entry.js.map +1 -1
  420. package/dist/esm/kol-split-button.entry.js +1 -1
  421. package/dist/esm/kol-split-button.entry.js.map +1 -1
  422. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  423. package/dist/esm/kol-table-stateful.entry.js +1 -1
  424. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  425. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  426. package/dist/esm/kol-table-stateless.entry.js +1 -1
  427. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  428. package/dist/esm/kol-tabs.entry.js +1 -1
  429. package/dist/esm/kol-tabs.entry.js.map +1 -1
  430. package/dist/esm/kol-textarea.entry.js +1 -1
  431. package/dist/esm/kol-textarea.entry.js.map +1 -1
  432. package/dist/esm/kol-toast-container.entry.js +1 -1
  433. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  434. package/dist/esm/kol-toolbar.entry.js +1 -1
  435. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  436. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  437. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  438. package/dist/esm/kol-tree-item-wc.entry.js.map +1 -1
  439. package/dist/esm/kol-tree-item.entry.js +1 -1
  440. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  441. package/dist/esm/kol-tree-wc.entry.js +1 -1
  442. package/dist/esm/kol-tree.entry.js +1 -1
  443. package/dist/esm/kol-tree.entry.js.map +1 -1
  444. package/dist/esm/kol-version.entry.js +1 -1
  445. package/dist/esm/kol-version.entry.js.map +1 -1
  446. package/dist/esm/kolibri.js +1 -1
  447. package/dist/esm/loader.js +1 -1
  448. package/dist/esm/test-component.entry.js +1 -1
  449. package/dist/kolibri/Alert-SEfIw75e.js +4 -0
  450. package/dist/kolibri/{Alert-Cw_LoKSN.js.map → Alert-SEfIw75e.js.map} +1 -1
  451. package/dist/kolibri/{Collapsible-DZA8yQbA.js → Collapsible-BJmhBOFS.js} +1 -1
  452. package/dist/kolibri/{Collapsible-DZA8yQbA.js.map → Collapsible-BJmhBOFS.js.map} +1 -1
  453. package/dist/kolibri/CustomSuggestionsOptionsGroup-BLcy0M21.js +4 -0
  454. package/dist/{esm/CustomSuggestionsOptionsGroup-B7qeS4jH.js.map → kolibri/CustomSuggestionsOptionsGroup-BLcy0M21.js.map} +1 -1
  455. package/dist/kolibri/FieldControlStateWrapper-BB5w_l7S.js +4 -0
  456. package/dist/{esm/FieldControlStateWrapper-B3IEsGo5.js.map → kolibri/FieldControlStateWrapper-BB5w_l7S.js.map} +1 -1
  457. package/dist/kolibri/{FormFieldStateWrapper-D1JTt3ul.js → FormFieldStateWrapper-CgJ3zrOg.js} +1 -1
  458. package/dist/{esm/FormFieldStateWrapper-D1JTt3ul.js.map → kolibri/FormFieldStateWrapper-CgJ3zrOg.js.map} +1 -1
  459. package/dist/kolibri/{Heading-CMmrUlbQ.js → Heading-CC-ueMZ4.js} +1 -1
  460. package/dist/{esm/Heading-CMmrUlbQ.js.map → kolibri/Heading-CC-ueMZ4.js.map} +1 -1
  461. package/dist/kolibri/{Input-BtjxL296.js → Input-DITvkoGT.js} +1 -1
  462. package/dist/kolibri/{Input-BtjxL296.js.map → Input-DITvkoGT.js.map} +1 -1
  463. package/dist/kolibri/InputStateWrapper-DnMUPWkd.js +4 -0
  464. package/dist/{esm/InputStateWrapper-CEMRSPYO.js.map → kolibri/InputStateWrapper-DnMUPWkd.js.map} +1 -1
  465. package/dist/kolibri/app-globals-BZVRuPmn.js +4 -0
  466. package/dist/kolibri/{app-globals-MFFawMzD.js.map → app-globals-BZVRuPmn.js.map} +1 -1
  467. package/dist/kolibri/component-CraT9mqx.js +4 -0
  468. package/dist/kolibri/{component-BssZbWQw.js.map → component-CraT9mqx.js.map} +1 -1
  469. package/dist/kolibri/{component-Dy6q6xwI.js → component-Hu7IB74c.js} +1 -1
  470. package/dist/kolibri/{component-Dy6q6xwI.js.map → component-Hu7IB74c.js.map} +1 -1
  471. package/dist/kolibri/{controller-Dcr8l6pm.js → controller-BycnRnHB.js} +1 -1
  472. package/dist/kolibri/{controller-Dcr8l6pm.js.map → controller-BycnRnHB.js.map} +1 -1
  473. package/dist/kolibri/{controller-Bdpk05ma.js → controller-D-JlwVeq.js} +1 -1
  474. package/dist/{esm/controller-Bdpk05ma.js.map → kolibri/controller-D-JlwVeq.js.map} +1 -1
  475. package/dist/kolibri/{controller-D9pydrRe.js → controller-_xUb5o7B.js} +1 -1
  476. package/dist/{esm/controller-D9pydrRe.js.map → kolibri/controller-_xUb5o7B.js.map} +1 -1
  477. package/dist/kolibri/{controller-icon-BGyWFin_.js → controller-icon-CtBWDrG3.js} +1 -1
  478. package/dist/kolibri/{controller-icon-BGyWFin_.js.map → controller-icon-CtBWDrG3.js.map} +1 -1
  479. package/dist/kolibri/{controller-bc3Jqv9j.js → controller-nDa_fsDo.js} +1 -1
  480. package/dist/kolibri/{controller-bc3Jqv9j.js.map → controller-nDa_fsDo.js.map} +1 -1
  481. package/dist/kolibri/{dev.utils-9aA-dFCs.js → dev.utils-_tIxkFEq.js} +1 -1
  482. package/dist/kolibri/{dev.utils-9aA-dFCs.js.map → dev.utils-_tIxkFEq.js.map} +1 -1
  483. package/dist/kolibri/{devtools-Cak1VbpQ.js → devtools-Shxsg0kz.js} +1 -1
  484. package/dist/{esm/devtools-Cak1VbpQ.js.map → kolibri/devtools-Shxsg0kz.js.map} +1 -1
  485. package/dist/kolibri/{index-Cgf1FZ14.js → index-C-7ueFeG.js} +1 -1
  486. package/dist/{esm/index-Cgf1FZ14.js.map → kolibri/index-C-7ueFeG.js.map} +1 -1
  487. package/dist/kolibri/kol-abbr.entry.esm.js.map +1 -1
  488. package/dist/kolibri/kol-abbr.entry.js +1 -1
  489. package/dist/kolibri/kol-accordion.entry.esm.js.map +1 -1
  490. package/dist/kolibri/kol-accordion.entry.js +1 -1
  491. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  492. package/dist/kolibri/kol-alert-wc.entry.esm.js.map +1 -1
  493. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  494. package/dist/kolibri/kol-alert.entry.esm.js.map +1 -1
  495. package/dist/kolibri/kol-alert.entry.js +1 -1
  496. package/dist/kolibri/kol-avatar.entry.esm.js.map +1 -1
  497. package/dist/kolibri/kol-avatar.entry.js +1 -1
  498. package/dist/kolibri/kol-badge.entry.esm.js.map +1 -1
  499. package/dist/kolibri/kol-badge.entry.js +1 -1
  500. package/dist/kolibri/kol-breadcrumb.entry.esm.js.map +1 -1
  501. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  502. package/dist/kolibri/kol-button-link.entry.esm.js.map +1 -1
  503. package/dist/kolibri/kol-button-link.entry.js +1 -1
  504. package/dist/kolibri/kol-button-wc.entry.esm.js.map +1 -1
  505. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  506. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  507. package/dist/kolibri/kol-button.entry.esm.js.map +1 -1
  508. package/dist/kolibri/kol-button.entry.js +1 -1
  509. package/dist/kolibri/kol-card-wc.entry.esm.js.map +1 -1
  510. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  511. package/dist/kolibri/kol-card.entry.esm.js.map +1 -1
  512. package/dist/kolibri/kol-card.entry.js +1 -1
  513. package/dist/kolibri/kol-click-button.entry.esm.js.map +1 -1
  514. package/dist/kolibri/kol-click-button.entry.js +1 -1
  515. package/dist/kolibri/kol-combobox.entry.esm.js.map +1 -1
  516. package/dist/kolibri/kol-combobox.entry.js +1 -1
  517. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  518. package/dist/kolibri/kol-details.entry.esm.js.map +1 -1
  519. package/dist/kolibri/kol-details.entry.js +1 -1
  520. package/dist/kolibri/kol-details.entry.js.map +1 -1
  521. package/dist/kolibri/kol-dialog-wc.entry.js +1 -1
  522. package/dist/kolibri/kol-dialog.entry.esm.js.map +1 -1
  523. package/dist/kolibri/kol-dialog.entry.js +1 -1
  524. package/dist/kolibri/kol-drawer.entry.esm.js.map +1 -1
  525. package/dist/kolibri/kol-drawer.entry.js +1 -1
  526. package/dist/kolibri/kol-form.entry.esm.js.map +1 -1
  527. package/dist/kolibri/kol-form.entry.js +1 -1
  528. package/dist/kolibri/kol-heading.entry.esm.js.map +1 -1
  529. package/dist/kolibri/kol-heading.entry.js +1 -1
  530. package/dist/kolibri/kol-icon.entry.esm.js.map +1 -1
  531. package/dist/kolibri/kol-icon.entry.js +1 -1
  532. package/dist/kolibri/kol-image.entry.esm.js.map +1 -1
  533. package/dist/kolibri/kol-image.entry.js +1 -1
  534. package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +1 -1
  535. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  536. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  537. package/dist/kolibri/kol-input-color.entry.esm.js.map +1 -1
  538. package/dist/kolibri/kol-input-color.entry.js +1 -1
  539. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  540. package/dist/kolibri/kol-input-date.entry.esm.js.map +1 -1
  541. package/dist/kolibri/kol-input-date.entry.js +1 -1
  542. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  543. package/dist/kolibri/kol-input-email.entry.esm.js.map +1 -1
  544. package/dist/kolibri/kol-input-email.entry.js +1 -1
  545. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  546. package/dist/kolibri/kol-input-file.entry.esm.js.map +1 -1
  547. package/dist/kolibri/kol-input-file.entry.js +1 -1
  548. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  549. package/dist/kolibri/kol-input-number.entry.esm.js.map +1 -1
  550. package/dist/kolibri/kol-input-number.entry.js +1 -1
  551. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  552. package/dist/kolibri/kol-input-password.entry.esm.js.map +1 -1
  553. package/dist/kolibri/kol-input-password.entry.js +1 -1
  554. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  555. package/dist/kolibri/kol-input-radio.entry.esm.js.map +1 -1
  556. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  557. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  558. package/dist/kolibri/kol-input-range.entry.esm.js.map +1 -1
  559. package/dist/kolibri/kol-input-range.entry.js +1 -1
  560. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  561. package/dist/kolibri/kol-input-text.entry.esm.js.map +1 -1
  562. package/dist/kolibri/kol-input-text.entry.js +1 -1
  563. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  564. package/dist/kolibri/kol-kolibri.entry.esm.js.map +1 -1
  565. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  566. package/dist/kolibri/kol-link-button.entry.esm.js.map +1 -1
  567. package/dist/kolibri/kol-link-button.entry.js +1 -1
  568. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  569. package/dist/kolibri/kol-link.entry.esm.js.map +1 -1
  570. package/dist/kolibri/kol-link.entry.js +1 -1
  571. package/dist/kolibri/kol-modal.entry.esm.js.map +1 -1
  572. package/dist/kolibri/kol-modal.entry.js +1 -1
  573. package/dist/kolibri/kol-nav.entry.esm.js.map +1 -1
  574. package/dist/kolibri/kol-nav.entry.js +1 -1
  575. package/dist/kolibri/kol-pagination-wc.entry.esm.js.map +1 -1
  576. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  577. package/dist/kolibri/kol-pagination.entry.esm.js.map +1 -1
  578. package/dist/kolibri/kol-pagination.entry.js +1 -1
  579. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  580. package/dist/kolibri/kol-popover-button-wc.entry.esm.js.map +1 -1
  581. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  582. package/dist/kolibri/kol-popover-button-wc.entry.js.map +1 -1
  583. package/dist/kolibri/kol-popover-button.entry.esm.js.map +1 -1
  584. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  585. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  586. package/dist/kolibri/kol-progress.entry.esm.js.map +1 -1
  587. package/dist/kolibri/kol-progress.entry.js +1 -1
  588. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  589. package/dist/kolibri/kol-quote.entry.esm.js.map +1 -1
  590. package/dist/kolibri/kol-quote.entry.js +1 -1
  591. package/dist/kolibri/kol-select-wc.entry.esm.js.map +1 -1
  592. package/dist/kolibri/kol-select-wc.entry.js +1 -1
  593. package/dist/kolibri/kol-select.entry.esm.js.map +1 -1
  594. package/dist/kolibri/kol-select.entry.js +1 -1
  595. package/dist/kolibri/kol-select.entry.js.map +1 -1
  596. package/dist/kolibri/kol-single-select.entry.esm.js.map +1 -1
  597. package/dist/kolibri/kol-single-select.entry.js +1 -1
  598. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  599. package/dist/kolibri/kol-skeleton.entry.js +1 -1
  600. package/dist/kolibri/kol-skip-nav.entry.esm.js.map +1 -1
  601. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  602. package/dist/kolibri/kol-spin.entry.esm.js.map +1 -1
  603. package/dist/kolibri/kol-spin.entry.js +1 -1
  604. package/dist/kolibri/kol-split-button.entry.esm.js.map +1 -1
  605. package/dist/kolibri/kol-split-button.entry.js +1 -1
  606. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  607. package/dist/kolibri/kol-table-stateful.entry.esm.js.map +1 -1
  608. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  609. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  610. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  611. package/dist/kolibri/kol-table-stateless.entry.esm.js.map +1 -1
  612. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  613. package/dist/kolibri/kol-tabs.entry.esm.js.map +1 -1
  614. package/dist/kolibri/kol-tabs.entry.js +1 -1
  615. package/dist/kolibri/kol-textarea.entry.esm.js.map +1 -1
  616. package/dist/kolibri/kol-textarea.entry.js +1 -1
  617. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  618. package/dist/kolibri/kol-toast-container.entry.esm.js.map +1 -1
  619. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  620. package/dist/kolibri/kol-toolbar.entry.esm.js.map +1 -1
  621. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  622. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  623. package/dist/kolibri/kol-tree-item-wc.entry.esm.js.map +1 -1
  624. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  625. package/dist/kolibri/kol-tree-item.entry.esm.js.map +1 -1
  626. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  627. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  628. package/dist/kolibri/kol-tree.entry.esm.js.map +1 -1
  629. package/dist/kolibri/kol-tree.entry.js +1 -1
  630. package/dist/kolibri/kol-version.entry.esm.js.map +1 -1
  631. package/dist/kolibri/kol-version.entry.js +1 -1
  632. package/dist/kolibri/kolibri.esm.js +1 -1
  633. package/dist/kolibri/test-component.entry.js +1 -1
  634. package/dist/types/components.d.ts +488 -0
  635. package/dist/types/index.d.ts +1 -1
  636. package/doc/_skeleton.md +54 -84
  637. package/doc/abbr.md +5 -0
  638. package/doc/accordion.md +9 -3
  639. package/doc/alert.md +7 -3
  640. package/doc/avatar.md +4 -0
  641. package/doc/badge.md +5 -0
  642. package/doc/breadcrumb.md +4 -0
  643. package/doc/button-link.md +19 -0
  644. package/doc/button.md +11 -0
  645. package/doc/card.md +12 -4
  646. package/doc/combobox.md +3 -3
  647. package/doc/details.md +13 -3
  648. package/doc/form.md +7 -3
  649. package/doc/heading.md +7 -3
  650. package/doc/icon.md +4 -0
  651. package/doc/image.md +4 -0
  652. package/doc/input-checkbox.md +4 -0
  653. package/doc/input-color.md +7 -3
  654. package/doc/input-date.md +7 -3
  655. package/doc/input-email.md +7 -3
  656. package/doc/input-file.md +7 -3
  657. package/doc/input-number.md +7 -3
  658. package/doc/input-password.md +7 -3
  659. package/doc/input-radio.md +7 -3
  660. package/doc/input-range.md +7 -3
  661. package/doc/input-text.md +7 -3
  662. package/doc/link-button.md +11 -0
  663. package/doc/modal.md +4 -0
  664. package/doc/nav.md +5 -0
  665. package/doc/pagination.md +1 -1
  666. package/doc/popover-button.md +5 -5
  667. package/doc/progress.md +4 -0
  668. package/doc/quote.md +4 -0
  669. package/doc/select.md +11 -11
  670. package/doc/single-select.md +7 -3
  671. package/doc/skip-nav.md +4 -0
  672. package/doc/spin.md +11 -0
  673. package/doc/split-button.md +8 -3
  674. package/doc/table-stateful.md +4 -0
  675. package/doc/tabs.md +4 -0
  676. package/doc/textarea.md +7 -3
  677. package/doc/tree-item.md +7 -7
  678. package/package.json +8 -7
  679. package/vscode-custom-data.json +36 -407
  680. package/dist/esm/component-BssZbWQw.js +0 -4
  681. package/dist/kolibri/Alert-Cw_LoKSN.js +0 -4
  682. package/dist/kolibri/CustomSuggestionsOptionsGroup-B7qeS4jH.js +0 -4
  683. package/dist/kolibri/FieldControlStateWrapper-B3IEsGo5.js +0 -4
  684. package/dist/kolibri/InputStateWrapper-CEMRSPYO.js +0 -4
  685. package/dist/kolibri/app-globals-MFFawMzD.js +0 -4
  686. package/dist/kolibri/component-BssZbWQw.js +0 -4
  687. package/doc/click-button.md +0 -28
  688. package/doc/toaster.md +0 -45
@@ -1 +1 @@
1
- {"version":3,"file":"kol-details.entry.js","sources":["src/schema/props/details-callbacks.ts","src/components/details/style.scss?tag=kol-details&mode=default&encapsulation=shadow","src/components/details/shadow.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport type { Callback } from '../enums';\nimport type { EventValueOrEventCallback } from '../types/callbacks';\nimport { watchValidator } from '../utils';\n\n/* types */\nexport type DetailsCallbacksPropType<T> = {\n\t[Callback.onToggle]?: EventValueOrEventCallback<MouseEvent, T>;\n};\n\n/**\n * Defines the callback functions for detail events.\n */\nexport type PropDetailsCallbacks<T> = {\n\ton: DetailsCallbacksPropType<T>;\n};\n\n/* validator */\nexport const validateDetailsCallbacks = (component: Generic.Element.Component, value?: DetailsCallbacksPropType<boolean>): void => {\n\twatchValidator(component, `_on`, (value) => typeof value === 'object' && value !== null, new Set(['DetailsCallbacksPropType {Events.onToggle}']), value);\n};\n","@use '../@shared/mixins' as *;\n@use '../../styles/global' as *;\n@use '../host-display-block' as *;\n@use '../../functional-components/Collapsible/collapsible' as *;\n@use '../@shared/kol-icon-mixin' as *;\n\n@layer kol-component {\n\t@include kol-icon-styles();\n\t.kol-details {\n\t\t&__heading-button {\n\t\t\tdisplay: flex;\n\n\t\t\t.kol-button {\n\t\t\t\tmin-height: auto;\n\n\t\t\t\t.kol-span {\n\t\t\t\t\t&__label {\n\t\t\t\t\t\tborder-bottom-color: grey;\n\t\t\t\t\t\tborder-bottom-style: solid;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.collapsible--open &__heading-button {\n\t\t\t.kol-icon {\n\t\t\t\ttransform: rotate(90deg);\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, type JSX, Method, Prop, State, Watch } from '@stencil/core';\nimport KolCollapsibleFc, { type CollapsibleProps } from '../../functional-components/Collapsible';\nimport type { DetailsAPI, DetailsCallbacksPropType, DetailsStates, DisabledPropType, FocusableElement, HeadingLevel, LabelPropType } from '../../schema';\nimport { validateDetailsCallbacks, validateDisabled, validateLabel, validateOpen } from '../../schema';\nimport { nonce } from '../../utils/dev.utils';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\nimport { watchHeadingLevel } from '../heading/validation';\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, FocusableElement {\n\t@Element() private readonly host?: HTMLKolDetailsElement;\n\n\tprivate readonly nonce = nonce();\n\tprivate buttonWcRef?: HTMLKolButtonWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tthis.buttonWcRef = ref;\n\t};\n\n\t/**\n\t * Sets focus on the internal element.\n\t */\n\t@Method()\n\tpublic async focus() {\n\t\treturn Promise.resolve(this.buttonWcRef?.focus());\n\t}\n\n\tprivate toggleTimeout?: ReturnType<typeof setTimeout>;\n\n\tprivate handleOnClick = (event: MouseEvent) => {\n\t\tthis._open = !this._open;\n\n\t\t/**\n\t\t * Der Timeout wird benötigt, damit das Event\n\t\t * vom Button- auf das Accordion-Event wechselt.\n\t\t * So ist es dem Anwendenden möglich das _open-\n\t\t * Attribute abzufragen.\n\t\t */\n\n\t\tclearTimeout(this.toggleTimeout);\n\n\t\tthis.toggleTimeout = setTimeout(() => {\n\t\t\tif (this.host) {\n\t\t\t\tdispatchDomEvent(this.host, KolEvent.toggle, Boolean(this._open));\n\t\t\t}\n\t\t\tthis.state._on?.onToggle?.(event, Boolean(this._open));\n\t\t}, 25);\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst { _open, _label, _disabled, _level } = this.state;\n\n\t\tconst rootClass = 'kol-details';\n\n\t\tconst props: CollapsibleProps = {\n\t\t\tid: this.nonce,\n\t\t\tlabel: _label,\n\t\t\topen: _open,\n\t\t\tdisabled: _disabled,\n\t\t\tlevel: _level,\n\t\t\tonClick: this.handleOnClick,\n\t\t\tclass: rootClass,\n\t\t\tHeadingProps: { class: `${rootClass}__heading` },\n\t\t\tHeadingButtonProps: {\n\t\t\t\tref: this.catchRef,\n\t\t\t\tclass: `${rootClass}__heading-button`,\n\t\t\t\t_icons: 'kolicon-chevron-right',\n\t\t\t},\n\t\t\tContentProps: {\n\t\t\t\tclass: `${rootClass}__content indented-text`,\n\t\t\t\twrapperClass: `${rootClass}__wrapper`,\n\t\t\t\tanimationClass: `${rootClass}__wrapper-animation`,\n\t\t\t},\n\t\t};\n\n\t\treturn (\n\t\t\t<KolCollapsibleFc {...props}>\n\t\t\t\t<slot />\n\t\t\t</KolCollapsibleFc>\n\t\t);\n\t}\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.\n\t */\n\t@Prop() public _level?: HeadingLevel = 0;\n\n\t/**\n\t * Defines the callback functions for details.\n\t */\n\t@Prop() public _on?: DetailsCallbacksPropType<boolean>;\n\n\t/**\n\t * Opens/expands the element when truthy, closes/collapses when falsy.\n\t * @TODO: Change type back to `OpenPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _open?: boolean = false;\n\n\t@State() public state: DetailsStates = {\n\t\t_label: '', // ⚠ required\n\t\t_level: 0,\n\t\t_on: {},\n\t};\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: DisabledPropType): void {\n\t\tvalidateDisabled(this, value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(on?: DetailsCallbacksPropType<boolean>) {\n\t\tvalidateDetailsCallbacks(this, on);\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.validateLevel(this._level);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateOpen(this._open);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAkBO,MAAM,wBAAwB,GAAG,CAAC,SAAoC,EAAE,KAAyC,KAAU;AACjI,IAAA,cAAc,CAAC,SAAS,EAAE,CAAA,GAAA,CAAK,EAAE,CAAC,KAAK,KAAK,OAAO,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AC1B,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACU;;AAqCd,IAAA,gBAAgB,CAAC,KAAwB,EAAA;AAC/C,QAAA,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC;;AAIvB,IAAA,aAAa,CAAC,KAAqB,EAAA;AACzC,QAAA,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE;AAC1B,YAAA,QAAQ,EAAE,IAAI;AACd,SAAA,CAAC;;AAII,IAAA,aAAa,CAAC,KAAoB,EAAA;AACxC,QAAA,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC;;AAIxB,IAAA,UAAU,CAAC,EAAsC,EAAA;AACvD,QAAA,wBAAwB,CAAC,IAAI,EAAE,EAAE,CAAC;;AAI5B,IAAA,YAAY,CAAC,KAAe,EAAA;AAClC,QAAA,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC;;IAGnB,iBAAiB,GAAA;AACvB,QAAA,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC;AACrC,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;AAC/B,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;AAC/B,QAAA,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC;AACzB,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"kol-details.entry.js","sources":["src/schema/props/details-callbacks.ts","src/components/details/style.scss?tag=kol-details&mode=default&encapsulation=shadow","src/components/details/shadow.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport type { Callback } from '../enums';\nimport type { EventValueOrEventCallback } from '../types/callbacks';\nimport { watchValidator } from '../utils';\n\n/* types */\nexport type DetailsCallbacksPropType<T> = {\n\t[Callback.onToggle]?: EventValueOrEventCallback<MouseEvent, T>;\n};\n\n/**\n * Defines the callback functions for detail events.\n */\nexport type PropDetailsCallbacks<T> = {\n\ton: DetailsCallbacksPropType<T>;\n};\n\n/* validator */\nexport const validateDetailsCallbacks = (component: Generic.Element.Component, value?: DetailsCallbacksPropType<boolean>): void => {\n\twatchValidator(component, `_on`, (value) => typeof value === 'object' && value !== null, new Set(['DetailsCallbacksPropType {Events.onToggle}']), value);\n};\n","@use '../@shared/mixins' as *;\n@use '../@shared/global' as *;\n@use '../host-display-block' as *;\n@use '../@shared/collapsible.mixin' as *;\n@use '../@shared/icon.mixin' as *;\n\n@layer kol-component {\n\t@include kol-icon-styles();\n\t.kol-details {\n\t\t&__heading-button {\n\t\t\tdisplay: flex;\n\n\t\t\t.kol-button {\n\t\t\t\tmin-height: auto;\n\n\t\t\t\t.kol-span {\n\t\t\t\t\t&__label {\n\t\t\t\t\t\tborder-bottom-color: grey;\n\t\t\t\t\t\tborder-bottom-style: solid;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.collapsible--open &__heading-button {\n\t\t\t.kol-icon {\n\t\t\t\ttransform: rotate(90deg);\n\t\t\t}\n\t\t}\n\t}\n}\n","import { Component, Element, h, type JSX, Method, Prop, State, Watch } from '@stencil/core';\nimport KolCollapsibleFc, { type CollapsibleProps } from '../../functional-components/Collapsible';\nimport type { DetailsAPI, DetailsCallbacksPropType, DetailsStates, DisabledPropType, FocusableElement, HeadingLevel, LabelPropType } from '../../schema';\nimport { validateDetailsCallbacks, validateDisabled, validateLabel, validateOpen } from '../../schema';\nimport { nonce } from '../../utils/dev.utils';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\nimport { watchHeadingLevel } from '../heading/validation';\n\n/**\n * The **Details** component allows additional information to be initially shown with a short introductory text,\n * which is only fully expanded after the user clicks on an arrow icon.\n *\n * By default, the **Details** component is displayed as a single-line layout element consisting of an arrow icon\n * followed by a short introductory text. The actual content is revealed below after clicking the header area. The arrow icon\n * changes its orientation from **_right_** to **_down_**.\n * The component can also be closed again to hide the content.\n *\n * @slot - The content displayed in the detail description.\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, FocusableElement {\n\t@Element() private readonly host?: HTMLKolDetailsElement;\n\n\tprivate readonly nonce = nonce();\n\tprivate buttonWcRef?: HTMLKolButtonWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolButtonWcElement) => {\n\t\tthis.buttonWcRef = ref;\n\t};\n\n\t/**\n\t * Sets focus on the internal element.\n\t */\n\t@Method()\n\tpublic async focus() {\n\t\treturn Promise.resolve(this.buttonWcRef?.focus());\n\t}\n\n\tprivate toggleTimeout?: ReturnType<typeof setTimeout>;\n\n\tprivate handleOnClick = (event: MouseEvent) => {\n\t\tthis._open = !this._open;\n\n\t\t/**\n\t\t * Der Timeout wird benötigt, damit das Event\n\t\t * vom Button- auf das Accordion-Event wechselt.\n\t\t * So ist es dem Anwendenden möglich das _open-\n\t\t * Attribute abzufragen.\n\t\t */\n\n\t\tclearTimeout(this.toggleTimeout);\n\n\t\tthis.toggleTimeout = setTimeout(() => {\n\t\t\tif (this.host) {\n\t\t\t\tdispatchDomEvent(this.host, KolEvent.toggle, Boolean(this._open));\n\t\t\t}\n\t\t\tthis.state._on?.onToggle?.(event, Boolean(this._open));\n\t\t}, 25);\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst { _open, _label, _disabled, _level } = this.state;\n\n\t\tconst rootClass = 'kol-details';\n\n\t\tconst props: CollapsibleProps = {\n\t\t\tid: this.nonce,\n\t\t\tlabel: _label,\n\t\t\topen: _open,\n\t\t\tdisabled: _disabled,\n\t\t\tlevel: _level,\n\t\t\tonClick: this.handleOnClick,\n\t\t\tclass: rootClass,\n\t\t\tHeadingProps: { class: `${rootClass}__heading` },\n\t\t\tHeadingButtonProps: {\n\t\t\t\tref: this.catchRef,\n\t\t\t\tclass: `${rootClass}__heading-button`,\n\t\t\t\t_icons: 'kolicon-chevron-right',\n\t\t\t},\n\t\t\tContentProps: {\n\t\t\t\tclass: `${rootClass}__content indented-text`,\n\t\t\t\twrapperClass: `${rootClass}__wrapper`,\n\t\t\t\tanimationClass: `${rootClass}__wrapper-animation`,\n\t\t\t},\n\t\t};\n\n\t\treturn (\n\t\t\t<KolCollapsibleFc {...props}>\n\t\t\t\t<slot />\n\t\t\t</KolCollapsibleFc>\n\t\t);\n\t}\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text.\n\t */\n\t@Prop() public _level?: HeadingLevel = 0;\n\n\t/**\n\t * Defines the callback functions for details.\n\t */\n\t@Prop() public _on?: DetailsCallbacksPropType<boolean>;\n\n\t/**\n\t * Opens/expands the element when truthy, closes/collapses when falsy.\n\t * @TODO: Change type back to `OpenPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _open?: boolean = false;\n\n\t@State() public state: DetailsStates = {\n\t\t_label: '', // ⚠ required\n\t\t_level: 0,\n\t\t_on: {},\n\t};\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: DisabledPropType): void {\n\t\tvalidateDisabled(this, value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(on?: DetailsCallbacksPropType<boolean>) {\n\t\tvalidateDetailsCallbacks(this, on);\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.validateLevel(this._level);\n\t\tthis.validateOn(this._on);\n\t\tthis.validateOpen(this._open);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAkBO,MAAM,wBAAwB,GAAG,CAAC,SAAoC,EAAE,KAAyC,KAAU;AACjI,IAAA,cAAc,CAAC,SAAS,EAAE,CAAA,GAAA,CAAK,EAAE,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,IAAI,GAAG,CAAC,CAAC,4CAA4C,CAAC,CAAC,EAAE,KAAK,CAAC;AACzJ,CAAC;;ACpBD,MAAM,eAAe,GAAG,qzTAAqzT;;MC0Bh0T,UAAU,GAAA,MAAA;AAPvB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAUkB,QAAA,IAAK,CAAA,KAAA,GAAG,KAAK,EAAE;AAGf,QAAA,IAAA,CAAA,QAAQ,GAAG,CAAC,GAA4B,KAAI;AAC5D,YAAA,IAAI,CAAC,WAAW,GAAG,GAAG;AACvB,SAAC;AAYO,QAAA,IAAA,CAAA,aAAa,GAAG,CAAC,KAAiB,KAAI;AAC7C,YAAA,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,KAAK;AASxB,YAAA,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC;AAEhC,YAAA,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,MAAK;;AACpC,gBAAA,IAAI,IAAI,CAAC,IAAI,EAAE;AACd,oBAAA,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;;AAElE,gBAAA,CAAA,EAAA,GAAA,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0CAAE,QAAQ,MAAA,IAAA,IAAA,EAAA,KA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AC,KAAK,CAAC;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as registerInstance,h,g as getElement}from"./index-Cgf1FZ14.js";import{e as KolCardWcTag}from"./component-names-BQrMLr68.js";import{g as watchString,b as watchValidator,s as setState}from"./common-BIkdAxr0.js";import{v as validateLabel}from"./label-C18ud7Yt.js";import{c as clsx}from"./clsx-COFh-Vc8.js";import{d as dispatchDomEvent,K as KolEvent}from"./events-DHTi_wtD.js";import{h as handleCancelOverlay}from"./tooltip-open-tracking-rBbBgPWP.js";const validateWidth=(a,t,i)=>{watchString(a,"_width",t,Object.assign({defaultValue:"100%"},i))},DialogVariantPropTypeOptions=["blank","card"],validateDialogVariant=(a,t)=>{watchValidator(a,"_variant",a=>"string"==typeof a&&DialogVariantPropTypeOptions.includes(a),new Set(DialogVariantPropTypeOptions),t)},KolDialogWc=class{constructor(a){registerInstance(this,a),this.on={onClose:async()=>{await this.closeModal()}},this._width="100%",this._variant="blank",this.state={_label:"",_width:"100%"}}disconnectedCallback(){this.closeModal()}handleNativeCloseEvent(){var a,t;null===(t=null===(a=this.state._on)||void 0===a?void 0:a.onClose)||void 0===t||t.call(a),this.host&&dispatchDomEvent(this.host,KolEvent.close)}async openModal(){var a;null===(a=this.refDialog)||void 0===a||a.showModal()}async closeModal(){var a,t;null===(t=null===(a=this.refDialog)||void 0===a?void 0:a.close)||void 0===t||t.call(a)}render(){return h("dialog",{key:"79eabc223c45b893a37583629c11036c2abcff99","aria-label":this.state._label,class:clsx("kol-dialog","kol-modal",{"kol-dialog__blank":"blank"===this.state._variant,"kol-dialog__card":"card"===this.state._variant,"kol-modal__blank":"blank"===this.state._variant,"kol-modal__card":"card"===this.state._variant}),onCancel:handleCancelOverlay,onClose:this.handleNativeCloseEvent.bind(this),ref:a=>{this.refDialog=a},style:{width:this.state._width}},"blank"===this.state._variant&&h("slot",{key:"27c411d199e0ad7c9812febdbf3792cf44c3ddc7"}),"card"===this.state._variant&&h(KolCardWcTag,{key:"49c0e69ab921e40845dcf25eeabd92d52cf1c4ff",_label:this.state._label,_hasCloser:!0,_on:this.on},h("slot",{key:"46213ef9acb4b3b07d54c22fdc98dfc4597bb42e"})))}validateLabel(a){validateLabel(this,a,{required:!0})}validateOn(a){if("object"==typeof a&&null!==a){const t={};"function"!=typeof a.onClose&&!0!==a.onClose||(t.onClose=a.onClose),setState(this,"_on",t)}}validateWidth(a){validateWidth(this,a)}validateVariant(a){validateDialogVariant(this,a)}componentWillLoad(){this.validateLabel(this._label),this.validateOn(this._on),this.validateWidth(this._width),this.validateVariant(this._variant)}get host(){return getElement(this)}static get watchers(){return{_label:["validateLabel"],_on:["validateOn"],_width:["validateWidth"],_variant:["validateVariant"]}}};export{KolDialogWc as kol_dialog_wc};
4
+ import{r as registerInstance,h,g as getElement}from"./index-C-7ueFeG.js";import{e as KolCardWcTag}from"./component-names-BQrMLr68.js";import{g as watchString,b as watchValidator,s as setState}from"./common-BIkdAxr0.js";import{v as validateLabel}from"./label-C18ud7Yt.js";import{c as clsx}from"./clsx-COFh-Vc8.js";import{d as dispatchDomEvent,K as KolEvent}from"./events-DHTi_wtD.js";import{h as handleCancelOverlay}from"./tooltip-open-tracking-rBbBgPWP.js";const validateWidth=(a,t,e)=>{watchString(a,"_width",t,Object.assign({defaultValue:"100%"},e))},DialogVariantPropTypeOptions=["blank","card"],validateDialogVariant=(a,t)=>{watchValidator(a,"_variant",a=>"string"==typeof a&&DialogVariantPropTypeOptions.includes(a),new Set(DialogVariantPropTypeOptions),t)},KolDialogWc=class{constructor(a){registerInstance(this,a),this.on={onClose:async()=>{await this.closeModal()}},this._width="100%",this._variant="blank",this.state={_label:"",_width:"100%"}}disconnectedCallback(){this.closeModal()}handleNativeCloseEvent(){var a,t;null===(t=null===(a=this.state._on)||void 0===a?void 0:a.onClose)||void 0===t||t.call(a),this.host&&dispatchDomEvent(this.host,KolEvent.close)}async openModal(){var a;null===(a=this.refDialog)||void 0===a||a.showModal()}async closeModal(){var a,t;null===(t=null===(a=this.refDialog)||void 0===a?void 0:a.close)||void 0===t||t.call(a)}render(){return h("dialog",{key:"79eabc223c45b893a37583629c11036c2abcff99","aria-label":this.state._label,class:clsx("kol-dialog","kol-modal",{"kol-dialog__blank":"blank"===this.state._variant,"kol-dialog__card":"card"===this.state._variant,"kol-modal__blank":"blank"===this.state._variant,"kol-modal__card":"card"===this.state._variant}),onCancel:handleCancelOverlay,onClose:this.handleNativeCloseEvent.bind(this),ref:a=>{this.refDialog=a},style:{width:this.state._width}},"blank"===this.state._variant&&h("slot",{key:"27c411d199e0ad7c9812febdbf3792cf44c3ddc7"}),"card"===this.state._variant&&h(KolCardWcTag,{key:"49c0e69ab921e40845dcf25eeabd92d52cf1c4ff",_label:this.state._label,_hasCloser:!0,_on:this.on},h("slot",{key:"46213ef9acb4b3b07d54c22fdc98dfc4597bb42e"})))}validateLabel(a){validateLabel(this,a,{required:!0})}validateOn(a){if("object"==typeof a&&null!==a){const t={};"function"!=typeof a.onClose&&!0!==a.onClose||(t.onClose=a.onClose),setState(this,"_on",t)}}validateWidth(a){validateWidth(this,a)}validateVariant(a){validateDialogVariant(this,a)}componentWillLoad(){this.validateLabel(this._label),this.validateOn(this._on),this.validateWidth(this._width),this.validateVariant(this._variant)}get host(){return getElement(this)}static get watchers(){return{_label:["validateLabel"],_on:["validateOn"],_width:["validateWidth"],_variant:["validateVariant"]}}};export{KolDialogWc as kol_dialog_wc};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as registerInstance,h}from"./index-Cgf1FZ14.js";import{f as KolDialogWcTag}from"./component-names-BQrMLr68.js";import"./common-BIkdAxr0.js";const defaultStyleCss='@charset "UTF-8";\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1773232431126"); /* IE9*/\n src: url("kolicons.eot?t=1773232431126#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1773232431126") format("woff2"), url("kolicons.woff?t=1773232431126") format("woff"), url("kolicons.ttf?t=1773232431126") format("truetype"), url("kolicons.svg?t=1773232431126#kolicons") format("svg"); /* iOS 4.1- */\n}\n[class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.kolicon-alert-error::before {\n content: "\\ea01";\n}\n\n.kolicon-alert-info::before {\n content: "\\ea02";\n}\n\n.kolicon-alert-success::before {\n content: "\\ea03";\n}\n\n.kolicon-alert-warning::before {\n content: "\\ea04";\n}\n\n.kolicon-check::before {\n content: "\\ea05";\n}\n\n.kolicon-chevron-double-left::before {\n content: "\\ea06";\n}\n\n.kolicon-chevron-double-right::before {\n content: "\\ea07";\n}\n\n.kolicon-chevron-down::before {\n content: "\\ea08";\n}\n\n.kolicon-chevron-left::before {\n content: "\\ea09";\n}\n\n.kolicon-chevron-right::before {\n content: "\\ea0a";\n}\n\n.kolicon-chevron-up::before {\n content: "\\ea0b";\n}\n\n.kolicon-cogwheel::before {\n content: "\\ea0c";\n}\n\n.kolicon-cross::before {\n content: "\\ea0d";\n}\n\n.kolicon-eye-closed::before {\n content: "\\ea0e";\n}\n\n.kolicon-eye::before {\n content: "\\ea0f";\n}\n\n.kolicon-house::before {\n content: "\\ea10";\n}\n\n.kolicon-kolibri::before {\n content: "\\ea11";\n}\n\n.kolicon-link-external::before {\n content: "\\ea12";\n}\n\n.kolicon-link::before {\n content: "\\ea13";\n}\n\n.kolicon-minus::before {\n content: "\\ea14";\n}\n\n.kolicon-plus::before {\n content: "\\ea15";\n}\n\n.kolicon-settings::before {\n content: "\\ea16";\n}\n\n.kolicon-sort-asc::before {\n content: "\\ea17";\n}\n\n.kolicon-sort-desc::before {\n content: "\\ea18";\n}\n\n.kolicon-sort-neutral::before {\n content: "\\ea19";\n}\n\n.kolicon-up::before {\n content: "\\ea1a";\n}\n\n.kolicon-version::before {\n content: "\\ea1b";\n}\n\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n.kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n}\n\n.kol-card .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n}\n.kol-card :host {\n display: inline-block;\n}\n.kol-card .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n}\n.kol-card .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "​";\n}\n.kol-card .kol-button__text {\n flex: 1 0 100%;\n}\n.kol-card {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n display: grid;\n height: 100%;\n overflow: visible;\n gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n grid-template-areas: "header close" "content content";\n grid-template-columns: 1fr min-content;\n grid-template-rows: min-content 1fr;\n}\n.kol-card__header {\n align-self: start;\n grid-area: header;\n}\n.kol-card__content {\n align-self: stretch;\n grid-area: content;\n}\n.kol-card__close-button {\n grid-area: close;\n}\n\n@layer kol-component {\n .kol-dialog,\n .kol-modal {\n min-height: var(--a11y-min-size);\n padding: 0;\n border: 0;\n }\n .kol-dialog::backdrop,\n .kol-modal::backdrop {\n background-color: rgba(0, 0, 0, 0.1);\n }\n .kol-dialog__close-button,\n .kol-modal__close-button {\n position: absolute;\n top: calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n right: calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n z-index: 1;\n }\n}',KolDialog=class{constructor(n){registerInstance(this,n),this.catchRef=n=>{this.dialogRef=n},this._width="100%",this._variant="blank"}async openModal(){var n;await(null===(n=this.dialogRef)||void 0===n?void 0:n.openModal())}async closeModal(){var n;await(null===(n=this.dialogRef)||void 0===n?void 0:n.closeModal())}render(){return h(KolDialogWcTag,{key:"24744fff4cfebb9ef188926e5390064ce7ec6931",ref:this.catchRef,_label:this._label,_on:this._on,_variant:this._variant,_width:this._width},h("slot",{key:"c8844dc7d6b9d16567ce400ae10f992018c6849d"}))}};KolDialog.style={default:defaultStyleCss};export{KolDialog as kol_dialog};
4
+ import{r as registerInstance,h}from"./index-C-7ueFeG.js";import{f as KolDialogWcTag}from"./component-names-BQrMLr68.js";import"./common-BIkdAxr0.js";const defaultStyleCss='@charset "UTF-8";\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1773990435463"); /* IE9*/\n src: url("kolicons.eot?t=1773990435463#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1773990435463") format("woff2"), url("kolicons.woff?t=1773990435463") format("woff"), url("kolicons.ttf?t=1773990435463") format("truetype"), url("kolicons.svg?t=1773990435463#kolicons") format("svg"); /* iOS 4.1- */\n}\n[class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.kolicon-alert-error::before {\n content: "\\ea01";\n}\n\n.kolicon-alert-info::before {\n content: "\\ea02";\n}\n\n.kolicon-alert-success::before {\n content: "\\ea03";\n}\n\n.kolicon-alert-warning::before {\n content: "\\ea04";\n}\n\n.kolicon-check::before {\n content: "\\ea05";\n}\n\n.kolicon-chevron-double-left::before {\n content: "\\ea06";\n}\n\n.kolicon-chevron-double-right::before {\n content: "\\ea07";\n}\n\n.kolicon-chevron-down::before {\n content: "\\ea08";\n}\n\n.kolicon-chevron-left::before {\n content: "\\ea09";\n}\n\n.kolicon-chevron-right::before {\n content: "\\ea0a";\n}\n\n.kolicon-chevron-up::before {\n content: "\\ea0b";\n}\n\n.kolicon-cogwheel::before {\n content: "\\ea0c";\n}\n\n.kolicon-cross::before {\n content: "\\ea0d";\n}\n\n.kolicon-eye-closed::before {\n content: "\\ea0e";\n}\n\n.kolicon-eye::before {\n content: "\\ea0f";\n}\n\n.kolicon-house::before {\n content: "\\ea10";\n}\n\n.kolicon-kolibri::before {\n content: "\\ea11";\n}\n\n.kolicon-link-external::before {\n content: "\\ea12";\n}\n\n.kolicon-link::before {\n content: "\\ea13";\n}\n\n.kolicon-minus::before {\n content: "\\ea14";\n}\n\n.kolicon-plus::before {\n content: "\\ea15";\n}\n\n.kolicon-settings::before {\n content: "\\ea16";\n}\n\n.kolicon-sort-asc::before {\n content: "\\ea17";\n}\n\n.kolicon-sort-desc::before {\n content: "\\ea18";\n}\n\n.kolicon-sort-neutral::before {\n content: "\\ea19";\n}\n\n.kolicon-up::before {\n content: "\\ea1a";\n}\n\n.kolicon-version::before {\n content: "\\ea1b";\n}\n\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n.kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n}\n\n.kol-card .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n}\n.kol-card :host {\n display: inline-block;\n}\n.kol-card .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n}\n.kol-card .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "​";\n}\n.kol-card .kol-button__text {\n flex: 1 0 100%;\n}\n.kol-card {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n display: grid;\n height: 100%;\n overflow: visible;\n gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n grid-template-areas: "header close" "content content";\n grid-template-columns: 1fr min-content;\n grid-template-rows: min-content 1fr;\n}\n.kol-card__header {\n align-self: start;\n grid-area: header;\n}\n.kol-card__content {\n align-self: stretch;\n grid-area: content;\n}\n.kol-card__close-button {\n grid-area: close;\n}\n\n@layer kol-component {\n .kol-dialog,\n .kol-modal {\n min-height: var(--a11y-min-size);\n padding: 0;\n border: 0;\n }\n .kol-dialog::backdrop,\n .kol-modal::backdrop {\n background-color: rgba(0, 0, 0, 0.1);\n }\n .kol-dialog__close-button,\n .kol-modal__close-button {\n position: absolute;\n top: calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n right: calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n z-index: 1;\n }\n}',KolDialog=class{constructor(n){registerInstance(this,n),this.catchRef=n=>{this.dialogRef=n},this._width="100%",this._variant="blank"}async openModal(){var n;await(null===(n=this.dialogRef)||void 0===n?void 0:n.openModal())}async closeModal(){var n;await(null===(n=this.dialogRef)||void 0===n?void 0:n.closeModal())}render(){return h(KolDialogWcTag,{key:"24744fff4cfebb9ef188926e5390064ce7ec6931",ref:this.catchRef,_label:this._label,_on:this._on,_variant:this._variant,_width:this._width},h("slot",{key:"c8844dc7d6b9d16567ce400ae10f992018c6849d"}))}};KolDialog.style={default:defaultStyleCss};export{KolDialog as kol_dialog};
@@ -1 +1 @@
1
- {"version":3,"file":"kol-dialog.entry.js","sources":["src/components/dialog/style.scss?tag=kol-dialog&mode=default&encapsulation=shadow","src/components/dialog/shadow.tsx"],"sourcesContent":["@use '../../styles/global' as *;\n@use '../../styles/kol-card-mixin' as *;\n@use '../@shared/mixins' as *;\n@use '../tooltip/style.scss' as *;\n\n@include kol-card;\n\n@layer kol-component {\n\t.kol-dialog,\n\t.kol-modal {\n\t\tmin-height: var(--a11y-min-size);\n\t\tpadding: 0;\n\t\tborder: 0;\n\n\t\t&::backdrop {\n\t\t\tbackground-color: rgb(0, 0, 0, 0.1);\n\t\t}\n\t}\n\n\t.kol-dialog__close-button,\n\t.kol-modal__close-button {\n\t\tposition: absolute;\n\t\ttop: to-rem(1);\n\t\tright: to-rem(1);\n\t\tz-index: 1;\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Method, Prop } from '@stencil/core';\nimport { KolDialogWcTag } from '../../core/component-names';\nimport type { DialogProps, KoliBriDialogEventCallbacks, LabelPropType } from '../../schema';\nimport type { ModalVariantPropType } from '../../schema/props/variant/modal';\n\n/**\n * @slot - The dialog's contents.\n */\n@Component({\n\ttag: 'kol-dialog',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolDialog implements DialogProps {\n\tprivate dialogRef?: HTMLKolDialogWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolDialogWcElement) => {\n\t\tthis.dialogRef = ref;\n\t};\n\n\t/**\n\t * Opens the dialog.\n\t */\n\t@Method()\n\tpublic async openModal() {\n\t\tawait this.dialogRef?.openModal();\n\t}\n\n\t/**\n\t * Closes the dialog.\n\t */\n\t@Method()\n\tpublic async closeModal() {\n\t\tawait this.dialogRef?.closeModal();\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolDialogWcTag ref={this.catchRef} _label={this._label} _on={this._on} _variant={this._variant} _width={this._width}>\n\t\t\t\t<slot />\n\t\t\t</KolDialogWcTag>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Defines the modal callback functions.\n\t */\n\t@Prop() public _on?: KoliBriDialogEventCallbacks;\n\n\t/**\n\t * Defines the width of the modal. (max-width: 100%)\n\t */\n\t@Prop() public _width?: string = '100%';\n\n\t/**\n\t * Defines the variant of the modal.\n\t */\n\t@Prop() public _variant?: ModalVariantPropType = 'blank';\n}\n"],"names":[],"mappings":";;;;;;;AAAA,MAAM,eAAe,GAAG,o8VAAo8V;;MCgB/8V,SAAS,GAAA,MAAA;AAPtB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAUkB,QAAA,IAAA,CAAA,QAAQ,GAAG,CAAC,GAA4B,KAAI;AAC5D,YAAA,IAAI,CAAC,SAAS,GAAG,GAAG;AACrB,SAAC;AAuCc,QAAA,IAAM,CAAA,MAAA,GAAY,MAAM;AAKxB,QAAA,IAAQ,CAAA,QAAA,GAA0B,OAAO;AACxD;AAvCO,IAAA,MAAM,SAAS,GAAA;;AACrB,QAAA,OAAM,MAAA,IAAI,CAAC,SAAS,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,SAAS,EAAE,CAAA;;AAO3B,IAAA,MAAM,UAAU,GAAA;;AACtB,QAAA,OAAM,MAAA,IAAI,CAAC,SAAS,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,UAAU,EAAE,CAAA;;IAG5B,MAAM,GAAA;QACZ,QACC,CAAA,CAAC,cAAc,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAA,EACnH,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACQ;;;;;;;;;"}
1
+ {"version":3,"file":"kol-dialog.entry.js","sources":["src/components/dialog/style.scss?tag=kol-dialog&mode=default&encapsulation=shadow","src/components/dialog/shadow.tsx"],"sourcesContent":["@use '../@shared/global' as *;\n@use '../@shared/card.mixin' as *;\n@use '../@shared/mixins' as *;\n@use '../tooltip/style.scss' as *;\n\n@include kol-card;\n\n@layer kol-component {\n\t.kol-dialog,\n\t.kol-modal {\n\t\tmin-height: var(--a11y-min-size);\n\t\tpadding: 0;\n\t\tborder: 0;\n\n\t\t&::backdrop {\n\t\t\tbackground-color: rgb(0, 0, 0, 0.1);\n\t\t}\n\t}\n\n\t.kol-dialog__close-button,\n\t.kol-modal__close-button {\n\t\tposition: absolute;\n\t\ttop: to-rem(1);\n\t\tright: to-rem(1);\n\t\tz-index: 1;\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Method, Prop } from '@stencil/core';\nimport { KolDialogWcTag } from '../../core/component-names';\nimport type { DialogProps, KoliBriDialogEventCallbacks, LabelPropType } from '../../schema';\nimport type { ModalVariantPropType } from '../../schema/props/variant/modal';\n\n/**\n * @slot - The dialog's contents.\n */\n@Component({\n\ttag: 'kol-dialog',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolDialog implements DialogProps {\n\tprivate dialogRef?: HTMLKolDialogWcElement;\n\n\tprivate readonly catchRef = (ref?: HTMLKolDialogWcElement) => {\n\t\tthis.dialogRef = ref;\n\t};\n\n\t/**\n\t * Opens the dialog.\n\t */\n\t@Method()\n\tpublic async openModal() {\n\t\tawait this.dialogRef?.openModal();\n\t}\n\n\t/**\n\t * Closes the dialog.\n\t */\n\t@Method()\n\tpublic async closeModal() {\n\t\tawait this.dialogRef?.closeModal();\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolDialogWcTag ref={this.catchRef} _label={this._label} _on={this._on} _variant={this._variant} _width={this._width}>\n\t\t\t\t<slot />\n\t\t\t</KolDialogWcTag>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label!: LabelPropType;\n\n\t/**\n\t * Defines the modal callback functions.\n\t */\n\t@Prop() public _on?: KoliBriDialogEventCallbacks;\n\n\t/**\n\t * Defines the width of the modal. (max-width: 100%)\n\t */\n\t@Prop() public _width?: string = '100%';\n\n\t/**\n\t * Defines the variant of the modal.\n\t */\n\t@Prop() public _variant?: ModalVariantPropType = 'blank';\n}\n"],"names":[],"mappings":";;;;;;;AAAA,MAAM,eAAe,GAAG,o8VAAo8V;;MCgB/8V,SAAS,GAAA,MAAA;AAPtB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAUkB,QAAA,IAAA,CAAA,QAAQ,GAAG,CAAC,GAA4B,KAAI;AAC5D,YAAA,IAAI,CAAC,SAAS,GAAG,GAAG;AACrB,SAAC;AAuCc,QAAA,IAAM,CAAA,MAAA,GAAY,MAAM;AAKxB,QAAA,IAAQ,CAAA,QAAA,GAA0B,OAAO;AACxD;AAvCO,IAAA,MAAM,SAAS,GAAA;;AACrB,QAAA,OAAM,MAAA,IAAI,CAAC,SAAS,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,SAAS,EAAE,CAAA;;AAO3B,IAAA,MAAM,UAAU,GAAA;;AACtB,QAAA,OAAM,MAAA,IAAI,CAAC,SAAS,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,UAAU,EAAE,CAAA;;IAG5B,MAAM,GAAA;QACZ,QACC,CAAA,CAAC,cAAc,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAA,EACnH,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACQ;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-Cgf1FZ14.js";import{e as KolCardWcTag}from"./component-names-BQrMLr68.js";import{s as setState}from"./common-BIkdAxr0.js";import{v as validateAlign}from"./align-DDUsWnWP.js";import{v as validateHasCloser}from"./has-closer-BbY1hw6m.js";import{v as validateLabel}from"./label-C18ud7Yt.js";import{v as validateOpen}from"./open-BhLtfnQI.js";import{c as clsx}from"./clsx-COFh-Vc8.js";import{d as dispatchDomEvent,K as KolEvent}from"./events-DHTi_wtD.js";import{h as handleCancelOverlay}from"./tooltip-open-tracking-rBbBgPWP.js";const defaultStyleCss='@charset "UTF-8";\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1773232431126"); /* IE9*/\n src: url("kolicons.eot?t=1773232431126#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1773232431126") format("woff2"), url("kolicons.woff?t=1773232431126") format("woff"), url("kolicons.ttf?t=1773232431126") format("truetype"), url("kolicons.svg?t=1773232431126#kolicons") format("svg"); /* iOS 4.1- */\n}\n[class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.kolicon-alert-error::before {\n content: "\\ea01";\n}\n\n.kolicon-alert-info::before {\n content: "\\ea02";\n}\n\n.kolicon-alert-success::before {\n content: "\\ea03";\n}\n\n.kolicon-alert-warning::before {\n content: "\\ea04";\n}\n\n.kolicon-check::before {\n content: "\\ea05";\n}\n\n.kolicon-chevron-double-left::before {\n content: "\\ea06";\n}\n\n.kolicon-chevron-double-right::before {\n content: "\\ea07";\n}\n\n.kolicon-chevron-down::before {\n content: "\\ea08";\n}\n\n.kolicon-chevron-left::before {\n content: "\\ea09";\n}\n\n.kolicon-chevron-right::before {\n content: "\\ea0a";\n}\n\n.kolicon-chevron-up::before {\n content: "\\ea0b";\n}\n\n.kolicon-cogwheel::before {\n content: "\\ea0c";\n}\n\n.kolicon-cross::before {\n content: "\\ea0d";\n}\n\n.kolicon-eye-closed::before {\n content: "\\ea0e";\n}\n\n.kolicon-eye::before {\n content: "\\ea0f";\n}\n\n.kolicon-house::before {\n content: "\\ea10";\n}\n\n.kolicon-kolibri::before {\n content: "\\ea11";\n}\n\n.kolicon-link-external::before {\n content: "\\ea12";\n}\n\n.kolicon-link::before {\n content: "\\ea13";\n}\n\n.kolicon-minus::before {\n content: "\\ea14";\n}\n\n.kolicon-plus::before {\n content: "\\ea15";\n}\n\n.kolicon-settings::before {\n content: "\\ea16";\n}\n\n.kolicon-sort-asc::before {\n content: "\\ea17";\n}\n\n.kolicon-sort-desc::before {\n content: "\\ea18";\n}\n\n.kolicon-sort-neutral::before {\n content: "\\ea19";\n}\n\n.kolicon-up::before {\n content: "\\ea1a";\n}\n\n.kolicon-version::before {\n content: "\\ea1b";\n}\n\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-card .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-card :host {\n display: inline-block;\n }\n .kol-card .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-card .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "​";\n }\n .kol-card .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-card {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n display: grid;\n height: 100%;\n overflow: visible;\n gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n grid-template-areas: "header close" "content content";\n grid-template-columns: 1fr min-content;\n grid-template-rows: min-content 1fr;\n }\n .kol-card__header {\n align-self: start;\n grid-area: header;\n }\n .kol-card__content {\n align-self: stretch;\n grid-area: content;\n }\n .kol-card__close-button {\n grid-area: close;\n }\n .kol-drawer__dialog {\n padding: 0;\n border: none;\n }\n .kol-drawer__wrapper {\n position: fixed;\n overflow: auto;\n }\n .kol-drawer__wrapper--left, .kol-drawer__wrapper--right {\n top: 0;\n max-width: 100vw;\n height: 100vh;\n }\n .kol-drawer__wrapper--left .kol-drawer__content, .kol-drawer__wrapper--right .kol-drawer__content {\n height: 100%;\n }\n .kol-drawer__wrapper--left {\n left: 0;\n }\n .kol-drawer__wrapper--right {\n right: 0;\n }\n .kol-drawer__wrapper--bottom, .kol-drawer__wrapper--top {\n left: 0;\n width: 100vw;\n max-height: 100vh;\n }\n .kol-drawer__wrapper--bottom .kol-drawer__content, .kol-drawer__wrapper--top .kol-drawer__content {\n width: 100%;\n }\n .kol-drawer__wrapper--bottom {\n bottom: 0;\n }\n .kol-drawer__wrapper--top {\n top: 0;\n }\n .kol-drawer__content {\n position: relative;\n }\n .kol-drawer__dialog .kol-card__content {\n overflow-y: auto;\n }\n}',KolDrawer=class{constructor(n){registerInstance(this,n),this.getWrapperRef=n=>this.dialogWrapperElement=n,this.getRef=n=>{this.dialogElement=n,setTimeout(()=>{this.openOrCloseBasedOnState()})},this._hasCloser=!1,this.state={_label:"",_open:!1,_align:"left"}}async open(){var n;this.state=Object.assign(Object.assign({},this.state),{_open:!0}),null===(n=this.dialogElement)||void 0===n||n.showModal()}async close(){this.state=Object.assign(Object.assign({},this.state),{_open:!1});const n=this.dialogWrapperElement;if(!n)return;"none"===window.getComputedStyle(n).animationName&&this.handleCloseDialog()}renderDialogContent(){const n=this.state._align;return h(KolCardWcTag,{ref:this.getWrapperRef,class:clsx("kol-drawer__wrapper",`kol-drawer__wrapper--${n}`,{"kol-drawer__wrapper--open":this.state._open,"kol-drawer__wrapper--is-closing":!1===this.state._open}),_label:this.state._label,_hasCloser:this.state._hasCloser,_on:{onClose:()=>{this.close()}}},h("div",{class:"kol-drawer__content"},h("slot",null)))}render(){return h(Host,{key:"55a5a4b9532c8a02329e9b0b67a2183655143fd4",class:"kol-drawer"},h("dialog",{key:"fbc41355c0d2c16f0edfae36c8282a3caff5059b","aria-label":this.state._label,class:"kol-drawer__dialog",onCancel:handleCancelOverlay,ref:this.getRef},this.renderDialogContent()))}validateLabel(n){validateLabel(this,n,{required:!0})}validateAlign(n){validateAlign(this,n)}validateHasCloser(n){validateHasCloser(this,n)}validateOpen(n){"boolean"==typeof n&&(validateOpen(this,n),this.dialogElement&&this.openOrCloseBasedOnState())}async openOrCloseBasedOnState(){this.state._open?await this.open():await this.close()}validateOn(n){if("object"==typeof n&&null!==n){const e={};"function"==typeof n.onClose&&(e.onClose=n.onClose),setState(this,"_on",e)}}handleCloseDialog(){var n,e,t;null===(n=this.dialogElement)||void 0===n||n.close(),null===(t=null===(e=this._on)||void 0===e?void 0:e.onClose)||void 0===t||t.call(e),this.host&&dispatchDomEvent(this.host,KolEvent.close)}handleClose(){(async()=>{await this.close(),this.handleCloseDialog()})()}handleAnimationEnd(n){n.animationName.includes("slideOut")&&this.handleCloseDialog()}componentDidLoad(){var n,e;null===(n=this.dialogElement)||void 0===n||n.addEventListener("animationend",this.handleAnimationEnd.bind(this)),null===(e=this.dialogElement)||void 0===e||e.addEventListener("close",this.handleClose.bind(this))}disconnectedCallback(){var n,e;null===(n=this.dialogElement)||void 0===n||n.removeEventListener("animationend",this.handleAnimationEnd.bind(this)),null===(e=this.dialogElement)||void 0===e||e.removeEventListener("close",this.handleClose.bind(this))}componentWillLoad(){this.validateLabel(this._label),this.validateOpen(this._open),this.validateAlign(this._align),this.validateHasCloser(this._hasCloser),this.validateOn(this._on)}get host(){return getElement(this)}static get watchers(){return{_label:["validateLabel"],_align:["validateAlign"],_hasCloser:["validateHasCloser"],_open:["validateOpen"],_on:["validateOn"]}}};KolDrawer.style={default:defaultStyleCss};export{KolDrawer as kol_drawer};
4
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-C-7ueFeG.js";import{e as KolCardWcTag}from"./component-names-BQrMLr68.js";import{s as setState}from"./common-BIkdAxr0.js";import{v as validateAlign}from"./align-DDUsWnWP.js";import{v as validateHasCloser}from"./has-closer-BbY1hw6m.js";import{v as validateLabel}from"./label-C18ud7Yt.js";import{v as validateOpen}from"./open-BhLtfnQI.js";import{c as clsx}from"./clsx-COFh-Vc8.js";import{d as dispatchDomEvent,K as KolEvent}from"./events-DHTi_wtD.js";import{h as handleCancelOverlay}from"./tooltip-open-tracking-rBbBgPWP.js";const defaultStyleCss='@charset "UTF-8";\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1773990435463"); /* IE9*/\n src: url("kolicons.eot?t=1773990435463#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1773990435463") format("woff2"), url("kolicons.woff?t=1773990435463") format("woff"), url("kolicons.ttf?t=1773990435463") format("truetype"), url("kolicons.svg?t=1773990435463#kolicons") format("svg"); /* iOS 4.1- */\n}\n[class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.kolicon-alert-error::before {\n content: "\\ea01";\n}\n\n.kolicon-alert-info::before {\n content: "\\ea02";\n}\n\n.kolicon-alert-success::before {\n content: "\\ea03";\n}\n\n.kolicon-alert-warning::before {\n content: "\\ea04";\n}\n\n.kolicon-check::before {\n content: "\\ea05";\n}\n\n.kolicon-chevron-double-left::before {\n content: "\\ea06";\n}\n\n.kolicon-chevron-double-right::before {\n content: "\\ea07";\n}\n\n.kolicon-chevron-down::before {\n content: "\\ea08";\n}\n\n.kolicon-chevron-left::before {\n content: "\\ea09";\n}\n\n.kolicon-chevron-right::before {\n content: "\\ea0a";\n}\n\n.kolicon-chevron-up::before {\n content: "\\ea0b";\n}\n\n.kolicon-cogwheel::before {\n content: "\\ea0c";\n}\n\n.kolicon-cross::before {\n content: "\\ea0d";\n}\n\n.kolicon-eye-closed::before {\n content: "\\ea0e";\n}\n\n.kolicon-eye::before {\n content: "\\ea0f";\n}\n\n.kolicon-house::before {\n content: "\\ea10";\n}\n\n.kolicon-kolibri::before {\n content: "\\ea11";\n}\n\n.kolicon-link-external::before {\n content: "\\ea12";\n}\n\n.kolicon-link::before {\n content: "\\ea13";\n}\n\n.kolicon-minus::before {\n content: "\\ea14";\n}\n\n.kolicon-plus::before {\n content: "\\ea15";\n}\n\n.kolicon-settings::before {\n content: "\\ea16";\n}\n\n.kolicon-sort-asc::before {\n content: "\\ea17";\n}\n\n.kolicon-sort-desc::before {\n content: "\\ea18";\n}\n\n.kolicon-sort-neutral::before {\n content: "\\ea19";\n}\n\n.kolicon-up::before {\n content: "\\ea1a";\n}\n\n.kolicon-version::before {\n content: "\\ea1b";\n}\n\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-card .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-card :host {\n display: inline-block;\n }\n .kol-card .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-card .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "​";\n }\n .kol-card .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-card {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n display: grid;\n height: 100%;\n overflow: visible;\n gap: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n grid-template-areas: "header close" "content content";\n grid-template-columns: 1fr min-content;\n grid-template-rows: min-content 1fr;\n }\n .kol-card__header {\n align-self: start;\n grid-area: header;\n }\n .kol-card__content {\n align-self: stretch;\n grid-area: content;\n }\n .kol-card__close-button {\n grid-area: close;\n }\n .kol-drawer__dialog {\n padding: 0;\n border: none;\n }\n .kol-drawer__wrapper {\n position: fixed;\n overflow: auto;\n }\n .kol-drawer__wrapper--left, .kol-drawer__wrapper--right {\n top: 0;\n max-width: 100vw;\n height: 100vh;\n }\n .kol-drawer__wrapper--left .kol-drawer__content, .kol-drawer__wrapper--right .kol-drawer__content {\n height: 100%;\n }\n .kol-drawer__wrapper--left {\n left: 0;\n }\n .kol-drawer__wrapper--right {\n right: 0;\n }\n .kol-drawer__wrapper--bottom, .kol-drawer__wrapper--top {\n left: 0;\n width: 100vw;\n max-height: 100vh;\n }\n .kol-drawer__wrapper--bottom .kol-drawer__content, .kol-drawer__wrapper--top .kol-drawer__content {\n width: 100%;\n }\n .kol-drawer__wrapper--bottom {\n bottom: 0;\n }\n .kol-drawer__wrapper--top {\n top: 0;\n }\n .kol-drawer__content {\n position: relative;\n }\n .kol-drawer__dialog .kol-card__content {\n overflow-y: auto;\n }\n}',KolDrawer=class{constructor(n){registerInstance(this,n),this.getWrapperRef=n=>this.dialogWrapperElement=n,this.getRef=n=>{this.dialogElement=n,setTimeout(()=>{this.openOrCloseBasedOnState()})},this._hasCloser=!1,this.state={_label:"",_open:!1,_align:"left"}}async open(){var n;this.state=Object.assign(Object.assign({},this.state),{_open:!0}),null===(n=this.dialogElement)||void 0===n||n.showModal()}async close(){this.state=Object.assign(Object.assign({},this.state),{_open:!1});const n=this.dialogWrapperElement;if(!n)return;"none"===window.getComputedStyle(n).animationName&&this.handleCloseDialog()}renderDialogContent(){const n=this.state._align;return h(KolCardWcTag,{ref:this.getWrapperRef,class:clsx("kol-drawer__wrapper",`kol-drawer__wrapper--${n}`,{"kol-drawer__wrapper--open":this.state._open,"kol-drawer__wrapper--is-closing":!1===this.state._open}),_label:this.state._label,_hasCloser:this.state._hasCloser,_on:{onClose:()=>{this.close()}}},h("div",{class:"kol-drawer__content"},h("slot",null)))}render(){return h(Host,{key:"55a5a4b9532c8a02329e9b0b67a2183655143fd4",class:"kol-drawer"},h("dialog",{key:"fbc41355c0d2c16f0edfae36c8282a3caff5059b","aria-label":this.state._label,class:"kol-drawer__dialog",onCancel:handleCancelOverlay,ref:this.getRef},this.renderDialogContent()))}validateLabel(n){validateLabel(this,n,{required:!0})}validateAlign(n){validateAlign(this,n)}validateHasCloser(n){validateHasCloser(this,n)}validateOpen(n){"boolean"==typeof n&&(validateOpen(this,n),this.dialogElement&&this.openOrCloseBasedOnState())}async openOrCloseBasedOnState(){this.state._open?await this.open():await this.close()}validateOn(n){if("object"==typeof n&&null!==n){const e={};"function"==typeof n.onClose&&(e.onClose=n.onClose),setState(this,"_on",e)}}handleCloseDialog(){var n,e,t;null===(n=this.dialogElement)||void 0===n||n.close(),null===(t=null===(e=this._on)||void 0===e?void 0:e.onClose)||void 0===t||t.call(e),this.host&&dispatchDomEvent(this.host,KolEvent.close)}handleClose(){(async()=>{await this.close(),this.handleCloseDialog()})()}handleAnimationEnd(n){n.animationName.includes("slideOut")&&this.handleCloseDialog()}componentDidLoad(){var n,e;null===(n=this.dialogElement)||void 0===n||n.addEventListener("animationend",this.handleAnimationEnd.bind(this)),null===(e=this.dialogElement)||void 0===e||e.addEventListener("close",this.handleClose.bind(this))}disconnectedCallback(){var n,e;null===(n=this.dialogElement)||void 0===n||n.removeEventListener("animationend",this.handleAnimationEnd.bind(this)),null===(e=this.dialogElement)||void 0===e||e.removeEventListener("close",this.handleClose.bind(this))}componentWillLoad(){this.validateLabel(this._label),this.validateOpen(this._open),this.validateAlign(this._align),this.validateHasCloser(this._hasCloser),this.validateOn(this._on)}get host(){return getElement(this)}static get watchers(){return{_label:["validateLabel"],_align:["validateAlign"],_hasCloser:["validateHasCloser"],_open:["validateOpen"],_on:["validateOn"]}}};KolDrawer.style={default:defaultStyleCss};export{KolDrawer as kol_drawer};
@@ -1 +1 @@
1
- {"version":3,"file":"kol-drawer.entry.js","sources":["src/components/drawer/style.scss?tag=kol-drawer&mode=default&encapsulation=shadow","src/components/drawer/shadow.tsx"],"sourcesContent":["@use '../../styles/global' as *;\n@use '../../styles/kol-card-mixin' as *;\n@use '../@shared/mixins' as *;\n@use '../tooltip/style.scss' as *;\n\n@layer kol-component {\n\t@include kol-card;\n\n\t.kol-drawer {\n\t\t$root: &;\n\n\t\t&__dialog {\n\t\t\tpadding: 0;\n\t\t\tborder: none;\n\t\t}\n\n\t\t&__wrapper {\n\t\t\tposition: fixed;\n\t\t\toverflow: auto;\n\n\t\t\t&--left,\n\t\t\t&--right {\n\t\t\t\ttop: 0;\n\t\t\t\tmax-width: 100vw;\n\t\t\t\theight: 100vh;\n\n\t\t\t\t#{$root}__content {\n\t\t\t\t\theight: 100%;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&--left {\n\t\t\t\tleft: 0;\n\t\t\t}\n\n\t\t\t&--right {\n\t\t\t\tright: 0;\n\t\t\t}\n\n\t\t\t&--bottom,\n\t\t\t&--top {\n\t\t\t\tleft: 0;\n\t\t\t\twidth: 100vw;\n\t\t\t\tmax-height: 100vh;\n\n\t\t\t\t#{$root}__content {\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&--bottom {\n\t\t\t\tbottom: 0;\n\t\t\t}\n\n\t\t\t&--top {\n\t\t\t\ttop: 0;\n\t\t\t}\n\t\t}\n\n\t\t&__content {\n\t\t\tposition: relative;\n\t\t}\n\t}\n\n\t.kol-drawer__dialog .kol-card__content {\n\t\toverflow-y: auto;\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, Element, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { KolCardWcTag } from '../../core/component-names';\nimport type { AlignPropType, DrawerAPI, DrawerStates, HasCloserPropType, KoliBriModalEventCallbacks, LabelPropType, OpenPropType } from '../../schema';\nimport { setState, validateAlign, validateHasCloser, validateLabel, validateOpen } from '../../schema';\nimport clsx from '../../utils/clsx';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\nimport { handleCancelOverlay } from '../../utils/tooltip-open-tracking';\n\n/**\n * @slot - The Content of drawer.\n */\n@Component({\n\ttag: 'kol-drawer',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolDrawer implements DrawerAPI {\n\t@Element() private readonly host?: HTMLKolDetailsElement;\n\tprivate dialogElement?: HTMLDialogElement;\n\tprivate dialogWrapperElement?: HTMLKolCardWcElement;\n\n\t/**\n\t * Opens the drawer.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tasync open() {\n\t\tthis.state = {\n\t\t\t...this.state,\n\t\t\t_open: true,\n\t\t};\n\t\tthis.dialogElement?.showModal();\n\t}\n\n\t/**\n\t * Closes the drawer.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tasync close() {\n\t\tthis.state = {\n\t\t\t...this.state,\n\t\t\t_open: false,\n\t\t};\n\t\tconst wrapper = this.dialogWrapperElement;\n\t\tif (!wrapper) return;\n\t\tconst computedStyle = window.getComputedStyle(wrapper);\n\t\tif (computedStyle.animationName === 'none') {\n\t\t\tthis.handleCloseDialog();\n\t\t}\n\t}\n\n\tprivate getWrapperRef = (el: HTMLKolCardWcElement | undefined) => (this.dialogWrapperElement = el as HTMLKolCardWcElement);\n\tprivate renderDialogContent() {\n\t\tconst align = this.state._align as string;\n\t\treturn (\n\t\t\t<KolCardWcTag\n\t\t\t\tref={this.getWrapperRef}\n\t\t\t\tclass={clsx(`kol-drawer__wrapper`, `kol-drawer__wrapper--${align}`, {\n\t\t\t\t\t'kol-drawer__wrapper--open': this.state._open,\n\t\t\t\t\t'kol-drawer__wrapper--is-closing': this.state._open === false,\n\t\t\t\t})}\n\t\t\t\t_label={this.state._label}\n\t\t\t\t_hasCloser={this.state._hasCloser}\n\t\t\t\t_on={{\n\t\t\t\t\tonClose: () => {\n\t\t\t\t\t\tvoid this.close();\n\t\t\t\t\t},\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<div class=\"kol-drawer__content\">\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</KolCardWcTag>\n\t\t);\n\t}\n\n\tprivate getRef = (el: HTMLDialogElement | undefined) => {\n\t\tthis.dialogElement = el as HTMLDialogElement;\n\t\tsetTimeout(() => {\n\t\t\tvoid this.openOrCloseBasedOnState(); // handle initial state as soon as element is ready\n\t\t});\n\t};\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-drawer\">\n\t\t\t\t<dialog aria-label={this.state._label} class=\"kol-drawer__dialog\" onCancel={handleCancelOverlay} ref={this.getRef}>\n\t\t\t\t\t{this.renderDialogContent()}\n\t\t\t\t</dialog>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Opens/expands the element when truthy, closes/collapses when falsy.\n\t */\n\t@Prop() public _open?: OpenPropType;\n\n\t/**\n\t * Defines the visual orientation of the component.\n\t */\n\t@Prop() public _align?: AlignPropType;\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 * Specifies the EventCallback function to be called when the drawer is closing.\n\t */\n\t@Prop() public _on?: KoliBriModalEventCallbacks;\n\n\t@State() public state: DrawerStates = {\n\t\t_label: '', // ⚠ required\n\t\t_open: false,\n\t\t_align: 'left',\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('_align')\n\tpublic validateAlign(value?: AlignPropType): void {\n\t\tvalidateAlign(this, value);\n\t}\n\n\t@Watch('_hasCloser')\n\tpublic validateHasCloser(value?: HasCloserPropType): void {\n\t\tvalidateHasCloser(this, value);\n\t}\n\n\t@Watch('_open')\n\tpublic validateOpen(value?: OpenPropType) {\n\t\tif (typeof value === 'boolean') {\n\t\t\tvalidateOpen(this, value);\n\n\t\t\tif (this.dialogElement) {\n\t\t\t\t// handle property changes but not the initial validateOpen call\n\t\t\t\tvoid this.openOrCloseBasedOnState();\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate async openOrCloseBasedOnState() {\n\t\tif (this.state._open) {\n\t\t\tawait this.open();\n\t\t} else {\n\t\t\tawait this.close();\n\t\t}\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: KoliBriModalEventCallbacks): void {\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tconst callbacks: KoliBriModalEventCallbacks = {};\n\t\t\tif (typeof value.onClose === 'function') {\n\t\t\t\tcallbacks.onClose = value.onClose;\n\t\t\t}\n\t\t\tsetState<KoliBriModalEventCallbacks>(this, '_on', callbacks);\n\t\t}\n\t}\n\n\tprivate handleCloseDialog() {\n\t\tthis.dialogElement?.close();\n\t\tthis._on?.onClose?.();\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.close);\n\t\t}\n\t}\n\n\tprivate handleClose() {\n\t\tvoid (async () => {\n\t\t\tawait this.close();\n\t\t\tthis.handleCloseDialog();\n\t\t})();\n\t}\n\n\tprivate handleAnimationEnd(e: Event): void {\n\t\tconst animationEvent = e as AnimationEvent;\n\t\tif (animationEvent.animationName.includes('slideOut')) {\n\t\t\tthis.handleCloseDialog();\n\t\t}\n\t}\n\n\tpublic componentDidLoad(): void {\n\t\tthis.dialogElement?.addEventListener('animationend', this.handleAnimationEnd.bind(this));\n\t\tthis.dialogElement?.addEventListener('close', this.handleClose.bind(this));\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tthis.dialogElement?.removeEventListener('animationend', this.handleAnimationEnd.bind(this));\n\t\tthis.dialogElement?.removeEventListener('close', this.handleClose.bind(this));\n\t}\n\n\tpublic componentWillLoad() {\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateOpen(this._open);\n\t\tthis.validateAlign(this._align);\n\t\tthis.validateHasCloser(this._hasCloser);\n\t\tthis.validateOn(this._on);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,4jXAA4jX;;MCmBvkX,SAAS,GAAA,MAAA;AAPtB,IAAA,WAAA,CAAA,OAAA,EAAA;;AA2CS,QAAA,IAAA,CAAA,aAAa,GAAG,CAAC,EAAoC,MAAM,IAAI,CAAC,oBAAoB,GAAG,EAA0B,CAAC;AAyBlH,QAAA,IAAA,CAAA,MAAM,GAAG,CAAC,EAAiC,KAAI;AACtD,YAAA,IAAI,CAAC,aAAa,GAAG,EAAuB;YAC5C,UAAU,CAAC,MAAK;AACf,gBAAA,KAAK,IAAI,CAAC,uBAAuB,EAAE;AACpC,aAAC,CAAC;AACH,SAAC;AAyBc,QAAA,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ode=default&encapsulation=shadow","src/components/drawer/shadow.tsx"],"sourcesContent":["@use '../@shared/global' as *;\n@use '../@shared/card.mixin' as *;\n@use '../@shared/mixins' as *;\n@use '../tooltip/style.scss' as *;\n\n@layer kol-component {\n\t@include kol-card;\n\n\t.kol-drawer {\n\t\t$root: &;\n\n\t\t&__dialog {\n\t\t\tpadding: 0;\n\t\t\tborder: none;\n\t\t}\n\n\t\t&__wrapper {\n\t\t\tposition: fixed;\n\t\t\toverflow: auto;\n\n\t\t\t&--left,\n\t\t\t&--right {\n\t\t\t\ttop: 0;\n\t\t\t\tmax-width: 100vw;\n\t\t\t\theight: 100vh;\n\n\t\t\t\t#{$root}__content {\n\t\t\t\t\theight: 100%;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&--left {\n\t\t\t\tleft: 0;\n\t\t\t}\n\n\t\t\t&--right {\n\t\t\t\tright: 0;\n\t\t\t}\n\n\t\t\t&--bottom,\n\t\t\t&--top {\n\t\t\t\tleft: 0;\n\t\t\t\twidth: 100vw;\n\t\t\t\tmax-height: 100vh;\n\n\t\t\t\t#{$root}__content {\n\t\t\t\t\twidth: 100%;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&--bottom {\n\t\t\t\tbottom: 0;\n\t\t\t}\n\n\t\t\t&--top {\n\t\t\t\ttop: 0;\n\t\t\t}\n\t\t}\n\n\t\t&__content {\n\t\t\tposition: relative;\n\t\t}\n\t}\n\n\t.kol-drawer__dialog .kol-card__content {\n\t\toverflow-y: auto;\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, Element, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { KolCardWcTag } from '../../core/component-names';\nimport type { AlignPropType, DrawerAPI, DrawerStates, HasCloserPropType, KoliBriModalEventCallbacks, LabelPropType, OpenPropType } from '../../schema';\nimport { setState, validateAlign, validateHasCloser, validateLabel, validateOpen } from '../../schema';\nimport clsx from '../../utils/clsx';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\nimport { handleCancelOverlay } from '../../utils/tooltip-open-tracking';\n\n/**\n * @slot - The Content of drawer.\n */\n@Component({\n\ttag: 'kol-drawer',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolDrawer implements DrawerAPI {\n\t@Element() private readonly host?: HTMLKolDetailsElement;\n\tprivate dialogElement?: HTMLDialogElement;\n\tprivate dialogWrapperElement?: HTMLKolCardWcElement;\n\n\t/**\n\t * Opens the drawer.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tasync open() {\n\t\tthis.state = {\n\t\t\t...this.state,\n\t\t\t_open: true,\n\t\t};\n\t\tthis.dialogElement?.showModal();\n\t}\n\n\t/**\n\t * Closes the drawer.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tasync close() {\n\t\tthis.state = {\n\t\t\t...this.state,\n\t\t\t_open: false,\n\t\t};\n\t\tconst wrapper = this.dialogWrapperElement;\n\t\tif (!wrapper) return;\n\t\tconst computedStyle = window.getComputedStyle(wrapper);\n\t\tif (computedStyle.animationName === 'none') {\n\t\t\tthis.handleCloseDialog();\n\t\t}\n\t}\n\n\tprivate getWrapperRef = (el: HTMLKolCardWcElement | undefined) => (this.dialogWrapperElement = el as HTMLKolCardWcElement);\n\tprivate renderDialogContent() {\n\t\tconst align = this.state._align as string;\n\t\treturn (\n\t\t\t<KolCardWcTag\n\t\t\t\tref={this.getWrapperRef}\n\t\t\t\tclass={clsx(`kol-drawer__wrapper`, `kol-drawer__wrapper--${align}`, {\n\t\t\t\t\t'kol-drawer__wrapper--open': this.state._open,\n\t\t\t\t\t'kol-drawer__wrapper--is-closing': this.state._open === false,\n\t\t\t\t})}\n\t\t\t\t_label={this.state._label}\n\t\t\t\t_hasCloser={this.state._hasCloser}\n\t\t\t\t_on={{\n\t\t\t\t\tonClose: () => {\n\t\t\t\t\t\tvoid this.close();\n\t\t\t\t\t},\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<div class=\"kol-drawer__content\">\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</KolCardWcTag>\n\t\t);\n\t}\n\n\tprivate getRef = (el: HTMLDialogElement | undefined) => {\n\t\tthis.dialogElement = el as HTMLDialogElement;\n\t\tsetTimeout(() => {\n\t\t\tvoid this.openOrCloseBasedOnState(); // handle initial state as soon as element is ready\n\t\t});\n\t};\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host class=\"kol-drawer\">\n\t\t\t\t<dialog aria-label={this.state._label} class=\"kol-drawer__dialog\" onCancel={handleCancelOverlay} ref={this.getRef}>\n\t\t\t\t\t{this.renderDialogContent()}\n\t\t\t\t</dialog>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Opens/expands the element when truthy, closes/collapses when falsy.\n\t */\n\t@Prop() public _open?: OpenPropType;\n\n\t/**\n\t * Defines the visual orientation of the component.\n\t */\n\t@Prop() public _align?: AlignPropType;\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 * Specifies the EventCallback function to be called when the drawer is closing.\n\t */\n\t@Prop() public _on?: KoliBriModalEventCallbacks;\n\n\t@State() public state: DrawerStates = {\n\t\t_label: '', // ⚠ required\n\t\t_open: false,\n\t\t_align: 'left',\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('_align')\n\tpublic validateAlign(value?: AlignPropType): void {\n\t\tvalidateAlign(this, value);\n\t}\n\n\t@Watch('_hasCloser')\n\tpublic validateHasCloser(value?: HasCloserPropType): void {\n\t\tvalidateHasCloser(this, value);\n\t}\n\n\t@Watch('_open')\n\tpublic validateOpen(value?: OpenPropType) {\n\t\tif (typeof value === 'boolean') {\n\t\t\tvalidateOpen(this, value);\n\n\t\t\tif (this.dialogElement) {\n\t\t\t\t// handle property changes but not the initial validateOpen call\n\t\t\t\tvoid this.openOrCloseBasedOnState();\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate async openOrCloseBasedOnState() {\n\t\tif (this.state._open) {\n\t\t\tawait this.open();\n\t\t} else {\n\t\t\tawait this.close();\n\t\t}\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: KoliBriModalEventCallbacks): void {\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tconst callbacks: KoliBriModalEventCallbacks = {};\n\t\t\tif (typeof value.onClose === 'function') {\n\t\t\t\tcallbacks.onClose = value.onClose;\n\t\t\t}\n\t\t\tsetState<KoliBriModalEventCallbacks>(this, '_on', callbacks);\n\t\t}\n\t}\n\n\tprivate handleCloseDialog() {\n\t\tthis.dialogElement?.close();\n\t\tthis._on?.onClose?.();\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.close);\n\t\t}\n\t}\n\n\tprivate handleClose() {\n\t\tvoid (async () => {\n\t\t\tawait this.close();\n\t\t\tthis.handleCloseDialog();\n\t\t})();\n\t}\n\n\tprivate handleAnimationEnd(e: Event): void {\n\t\tconst animationEvent = e as AnimationEvent;\n\t\tif (animationEvent.animationName.includes('slideOut')) {\n\t\t\tthis.handleCloseDialog();\n\t\t}\n\t}\n\n\tpublic componentDidLoad(): void {\n\t\tthis.dialogElement?.addEventListener('animationend', this.handleAnimationEnd.bind(this));\n\t\tthis.dialogElement?.addEventListener('close', this.handleClose.bind(this));\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tthis.dialogElement?.removeEventListener('animationend', this.handleAnimationEnd.bind(this));\n\t\tthis.dialogElement?.removeEventListener('close', this.handleClose.bind(this));\n\t}\n\n\tpublic componentWillLoad() {\n\t\tthis.validateLabel(this._label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,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;IAGvE,iBAAiB,GAAA;AACvB,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;AAC/B,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;AAC7B,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;AAC/B,QAAA,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC;AACvC,QAAA,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-Cgf1FZ14.js";import{b as watchValidator,e as watchBoolean,g as watchString}from"./common-BIkdAxr0.js";import{t as translate}from"./i18n-DvMeCREp.js";import{d as KolLinkWcTag}from"./component-names-BQrMLr68.js";import{K as KolAlertFc}from"./Alert-Cw_LoKSN.js";import{d as dispatchDomEvent,K as KolEvent}from"./events-DHTi_wtD.js";import"./i18n-B0tfVPMa.js";import"./tslib.es6-CxX45GIN.js";import"./clsx-COFh-Vc8.js";import"./bem-registry-ClssJ_nC.js";import"./component-BssZbWQw.js";import"./Heading-CMmrUlbQ.js";const validateErrorList=(n,e)=>{watchValidator(n,"errorList",n=>Array.isArray(n)&&void 0===n.find(n=>!("string"==typeof n||"function"==typeof n)),new Set(["string","function"]),e)},defaultStyleCss='@charset "UTF-8";\n/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1773232431126"); /* IE9*/\n src: url("kolicons.eot?t=1773232431126#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1773232431126") format("woff2"), url("kolicons.woff?t=1773232431126") format("woff"), url("kolicons.ttf?t=1773232431126") format("truetype"), url("kolicons.svg?t=1773232431126#kolicons") format("svg"); /* iOS 4.1- */\n}\n[class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.kolicon-alert-error::before {\n content: "\\ea01";\n}\n\n.kolicon-alert-info::before {\n content: "\\ea02";\n}\n\n.kolicon-alert-success::before {\n content: "\\ea03";\n}\n\n.kolicon-alert-warning::before {\n content: "\\ea04";\n}\n\n.kolicon-check::before {\n content: "\\ea05";\n}\n\n.kolicon-chevron-double-left::before {\n content: "\\ea06";\n}\n\n.kolicon-chevron-double-right::before {\n content: "\\ea07";\n}\n\n.kolicon-chevron-down::before {\n content: "\\ea08";\n}\n\n.kolicon-chevron-left::before {\n content: "\\ea09";\n}\n\n.kolicon-chevron-right::before {\n content: "\\ea0a";\n}\n\n.kolicon-chevron-up::before {\n content: "\\ea0b";\n}\n\n.kolicon-cogwheel::before {\n content: "\\ea0c";\n}\n\n.kolicon-cross::before {\n content: "\\ea0d";\n}\n\n.kolicon-eye-closed::before {\n content: "\\ea0e";\n}\n\n.kolicon-eye::before {\n content: "\\ea0f";\n}\n\n.kolicon-house::before {\n content: "\\ea10";\n}\n\n.kolicon-kolibri::before {\n content: "\\ea11";\n}\n\n.kolicon-link-external::before {\n content: "\\ea12";\n}\n\n.kolicon-link::before {\n content: "\\ea13";\n}\n\n.kolicon-minus::before {\n content: "\\ea14";\n}\n\n.kolicon-plus::before {\n content: "\\ea15";\n}\n\n.kolicon-settings::before {\n content: "\\ea16";\n}\n\n.kolicon-sort-asc::before {\n content: "\\ea17";\n}\n\n.kolicon-sort-desc::before {\n content: "\\ea18";\n}\n\n.kolicon-sort-neutral::before {\n content: "\\ea19";\n}\n\n.kolicon-up::before {\n content: "\\ea1a";\n}\n\n.kolicon-version::before {\n content: "\\ea1b";\n}\n\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n :host {\n display: inline-block;\n }\n .kol-link {\n display: inline-flex;\n max-width: fit-content;\n align-items: baseline;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n .kol-link--standalone {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: stretch;\n }\n .kol-link--standalone .kol-link__text {\n display: inline-flex;\n flex: 1 1 100%;\n place-items: center;\n }\n .kol-link .kol-span__label {\n text-decoration-line: underline;\n }\n .kol-link:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-link:hover:not([aria-disabled], [disabled]) .kol-span__label {\n text-decoration-thickness: 0.2em;\n }\n .kol-link__icon {\n display: inline-flex;\n margin-left: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-alert .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-alert :host {\n display: inline-block;\n }\n .kol-alert .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-alert .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "​";\n }\n .kol-alert .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n}',KolForm=class{constructor(n){registerInstance(this,n),this.translateErrorListMessage=translate("kol-error-list-message"),this.translateErrorList=translate("kol-error-list"),this.translateFormDescription=translate("kol-form-description"),this.onSubmit=n=>{var e,t;n.preventDefault(),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onSubmit)&&(null===(t=this.state._on)||void 0===t||t.onSubmit(n)),this.host&&dispatchDomEvent(this.host,KolEvent.submit)},this.onReset=n=>{var e,t;n.preventDefault(),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onReset)&&(null===(t=this.state._on)||void 0===t||t.onReset(n)),this.host&&dispatchDomEvent(this.host,KolEvent.reset)},this.handleLinkClick=n=>{const e=document.querySelector(n);e&&"function"==typeof e.focus&&(e.scrollIntoView({behavior:"smooth"}),e.focus())},this.setBlockElement=n=>this.errorListBlock=n,this.setFirstLinkElement=n=>this.errorListFirstLink=n,this._requiredText=!0,this.state={}}renderErrorList(n){return h(KolAlertFc,{class:"kol-form__alert",ref:this.setBlockElement,type:"error",variant:"card",label:this.translateErrorListMessage},h("nav",{"aria-label":this.translateErrorList},h("ul",null,null==n?void 0:n.map((n,e)=>h("li",{key:e},h(KolLinkWcTag,{class:"kol-form__link",_href:"",_label:n.message,_on:{onClick:"string"==typeof n.selector?()=>this.handleLinkClick(String(n.selector)):n.selector},ref:0===e?this.setFirstLinkElement:void 0}))))))}renderFormElement(){return h("form",{class:"kol-form",method:"post",onSubmit:this.onSubmit,onReset:this.onReset,noValidate:!0},!0===this.state._requiredText?h("p",null,h("div",{class:"kol-form__mandatory-fields-hint"},this.translateFormDescription)):"string"==typeof this.state._requiredText&&this.state._requiredText.length>0?h("p",null,h("div",{class:"kol-form__mandatory-fields-hint"},this.state._requiredText)):null,h("slot",null))}render(){const n=Array.isArray(this._errorList)&&this._errorList.length>0;return h(Host,{key:"24abdec4e796efe805b3e29fa9f2e4d0189e64d4"},n&&this.renderErrorList(this._errorList),this.renderFormElement())}scrollToErrorList(){var n;null===(n=this.errorListBlock)||void 0===n||n.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout(()=>{var n,e;null===(e=null===(n=this.errorListFirstLink)||void 0===n?void 0:n.querySelector("a"))||void 0===e||e.focus()},250)}async focusErrorList(){return this.scrollToErrorList(),Promise.resolve()}validateOn(n){"object"==typeof n&&null!==n&&(this.state=Object.assign(Object.assign({},this.state),{_on:n}))}validateRequiredText(n){"boolean"==typeof n?watchBoolean(this,"_requiredText",n):watchString(this,"_requiredText",n)}validateErrorList(n){validateErrorList(this,n)}componentWillLoad(){this.validateOn(this._on),this.validateRequiredText(this._requiredText),this.validateErrorList(this._errorList)}get host(){return getElement(this)}static get watchers(){return{_on:["validateOn"],_requiredText:["validateRequiredText"],_errorList:["validateErrorList"]}}};KolForm.style={default:defaultStyleCss};export{KolForm as kol_form};
4
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-C-7ueFeG.js";import{b as watchValidator,e as watchBoolean,g as watchString}from"./common-BIkdAxr0.js";import{t as translate}from"./i18n-DvMeCREp.js";import{d as KolLinkWcTag}from"./component-names-BQrMLr68.js";import{K as KolAlertFc}from"./Alert-SEfIw75e.js";import{d as dispatchDomEvent,K as KolEvent}from"./events-DHTi_wtD.js";import"./i18n-B0tfVPMa.js";import"./tslib.es6-CxX45GIN.js";import"./clsx-COFh-Vc8.js";import"./bem-registry-ClssJ_nC.js";import"./component-CraT9mqx.js";import"./Heading-CC-ueMZ4.js";const validateErrorList=(n,e)=>{watchValidator(n,"errorList",n=>Array.isArray(n)&&void 0===n.find(n=>!("string"==typeof n||"function"==typeof n)),new Set(["string","function"]),e)},defaultStyleCss='@charset "UTF-8";\n/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1773990435463"); /* IE9*/\n src: url("kolicons.eot?t=1773990435463#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1773990435463") format("woff2"), url("kolicons.woff?t=1773990435463") format("woff"), url("kolicons.ttf?t=1773990435463") format("truetype"), url("kolicons.svg?t=1773990435463#kolicons") format("svg"); /* iOS 4.1- */\n}\n[class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.kolicon-alert-error::before {\n content: "\\ea01";\n}\n\n.kolicon-alert-info::before {\n content: "\\ea02";\n}\n\n.kolicon-alert-success::before {\n content: "\\ea03";\n}\n\n.kolicon-alert-warning::before {\n content: "\\ea04";\n}\n\n.kolicon-check::before {\n content: "\\ea05";\n}\n\n.kolicon-chevron-double-left::before {\n content: "\\ea06";\n}\n\n.kolicon-chevron-double-right::before {\n content: "\\ea07";\n}\n\n.kolicon-chevron-down::before {\n content: "\\ea08";\n}\n\n.kolicon-chevron-left::before {\n content: "\\ea09";\n}\n\n.kolicon-chevron-right::before {\n content: "\\ea0a";\n}\n\n.kolicon-chevron-up::before {\n content: "\\ea0b";\n}\n\n.kolicon-cogwheel::before {\n content: "\\ea0c";\n}\n\n.kolicon-cross::before {\n content: "\\ea0d";\n}\n\n.kolicon-eye-closed::before {\n content: "\\ea0e";\n}\n\n.kolicon-eye::before {\n content: "\\ea0f";\n}\n\n.kolicon-house::before {\n content: "\\ea10";\n}\n\n.kolicon-kolibri::before {\n content: "\\ea11";\n}\n\n.kolicon-link-external::before {\n content: "\\ea12";\n}\n\n.kolicon-link::before {\n content: "\\ea13";\n}\n\n.kolicon-minus::before {\n content: "\\ea14";\n}\n\n.kolicon-plus::before {\n content: "\\ea15";\n}\n\n.kolicon-settings::before {\n content: "\\ea16";\n}\n\n.kolicon-sort-asc::before {\n content: "\\ea17";\n}\n\n.kolicon-sort-desc::before {\n content: "\\ea18";\n}\n\n.kolicon-sort-neutral::before {\n content: "\\ea19";\n}\n\n.kolicon-up::before {\n content: "\\ea1a";\n}\n\n.kolicon-version::before {\n content: "\\ea1b";\n}\n\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n :host {\n display: inline-block;\n }\n .kol-link {\n display: inline-flex;\n max-width: fit-content;\n align-items: baseline;\n place-items: center;\n text-align: left;\n text-decoration-line: none;\n }\n .kol-link--standalone {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: stretch;\n }\n .kol-link--standalone .kol-link__text {\n display: inline-flex;\n flex: 1 1 100%;\n place-items: center;\n }\n .kol-link .kol-span__label {\n text-decoration-line: underline;\n }\n .kol-link:focus:not([aria-disabled], [disabled]) .kol-span__label, .kol-link:hover:not([aria-disabled], [disabled]) .kol-span__label {\n text-decoration-thickness: 0.2em;\n }\n .kol-link__icon {\n display: inline-flex;\n margin-left: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-alert .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-alert :host {\n display: inline-block;\n }\n .kol-alert .kol-button {\n display: flex;\n min-height: var(--a11y-min-size);\n font-style: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n text-decoration-line: none;\n }\n .kol-alert .kol-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "​";\n }\n .kol-alert .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-alert {\n display: grid;\n }\n .kol-alert__container {\n display: flex;\n place-items: center;\n }\n .kol-alert__container-content {\n flex-grow: 1;\n }\n .kol-alert__closer {\n /* Visible with forced colors */\n outline: transparent solid calc(1 * 1rem / var(--kolibri-root-font-size, 16));\n }\n}',KolForm=class{constructor(n){registerInstance(this,n),this.translateErrorListMessage=translate("kol-error-list-message"),this.translateErrorList=translate("kol-error-list"),this.translateFormDescription=translate("kol-form-description"),this.onSubmit=n=>{var e,t;n.preventDefault(),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onSubmit)&&(null===(t=this.state._on)||void 0===t||t.onSubmit(n)),this.host&&dispatchDomEvent(this.host,KolEvent.submit)},this.onReset=n=>{var e,t;n.preventDefault(),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onReset)&&(null===(t=this.state._on)||void 0===t||t.onReset(n)),this.host&&dispatchDomEvent(this.host,KolEvent.reset)},this.handleLinkClick=n=>{const e=document.querySelector(n);e&&"function"==typeof e.focus&&(e.scrollIntoView({behavior:"smooth"}),e.focus())},this.setBlockElement=n=>this.errorListBlock=n,this.setFirstLinkElement=n=>this.errorListFirstLink=n,this._requiredText=!0,this.state={}}renderErrorList(n){return h(KolAlertFc,{class:"kol-form__alert",ref:this.setBlockElement,type:"error",variant:"card",label:this.translateErrorListMessage},h("nav",{"aria-label":this.translateErrorList},h("ul",null,null==n?void 0:n.map((n,e)=>h("li",{key:e},h(KolLinkWcTag,{class:"kol-form__link",_href:"",_label:n.message,_on:{onClick:"string"==typeof n.selector?()=>this.handleLinkClick(String(n.selector)):n.selector},ref:0===e?this.setFirstLinkElement:void 0}))))))}renderFormElement(){return h("form",{class:"kol-form",method:"post",onSubmit:this.onSubmit,onReset:this.onReset,noValidate:!0},!0===this.state._requiredText?h("p",null,h("div",{class:"kol-form__mandatory-fields-hint"},this.translateFormDescription)):"string"==typeof this.state._requiredText&&this.state._requiredText.length>0?h("p",null,h("div",{class:"kol-form__mandatory-fields-hint"},this.state._requiredText)):null,h("slot",null))}render(){const n=Array.isArray(this._errorList)&&this._errorList.length>0;return h(Host,{key:"57e0a3d78e82b869da11268451f88c47edd2c297"},n&&this.renderErrorList(this._errorList),this.renderFormElement())}scrollToErrorList(){var n;null===(n=this.errorListBlock)||void 0===n||n.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout(()=>{var n,e;null===(e=null===(n=this.errorListFirstLink)||void 0===n?void 0:n.querySelector("a"))||void 0===e||e.focus()},250)}async focusErrorList(){return this.scrollToErrorList(),Promise.resolve()}validateOn(n){"object"==typeof n&&null!==n&&(this.state=Object.assign(Object.assign({},this.state),{_on:n}))}validateRequiredText(n){"boolean"==typeof n?watchBoolean(this,"_requiredText",n):watchString(this,"_requiredText",n)}validateErrorList(n){validateErrorList(this,n)}componentWillLoad(){this.validateOn(this._on),this.validateRequiredText(this._requiredText),this.validateErrorList(this._errorList)}get host(){return getElement(this)}static get watchers(){return{_on:["validateOn"],_requiredText:["validateRequiredText"],_errorList:["validateErrorList"]}}};KolForm.style={default:defaultStyleCss};export{KolForm as kol_form};
@@ -1 +1 @@
1
- {"version":3,"file":"kol-form.entry.js","sources":["src/schema/props/error-list.ts","src/components/form/style.scss?tag=kol-form&mode=default&encapsulation=shadow","src/components/form/shadow.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport type { EventCallback } from '../types';\nimport { watchValidator } from '../utils';\n\n/* types */\nexport type ErrorListPropType = {\n\tmessage: string;\n\tselector: string | EventCallback<Event>;\n};\n\nexport type PropErrorList = {\n\terrorList: ErrorListPropType[];\n};\n\n/* validator */\nexport const validateErrorList = (component: Generic.Element.Component, value?: ErrorListPropType[]): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t'errorList',\n\t\t(value): boolean => Array.isArray(value) && value.find((v) => !(typeof v === 'string' || typeof v === 'function')) === undefined,\n\t\tnew Set(['string', 'function']),\n\t\tvalue,\n\t);\n};\n","@use '../@shared/mixins' as *;\n@use '../../styles/global' as *;\n@use '../host-display-block' as *;\n@use '../@shared/kol-link-mixin' as *;\n@use '../../styles/kol-alert-mixin' as *;\n\n@layer kol-component {\n\t@include kol-link-styles('kol-link');\n\t@include kol-alert;\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, Element, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { validateErrorList, watchBoolean, watchString } from '../../schema';\n\nimport { translate } from '../../i18n';\n\nimport { KolLinkWcTag } from '../../core/component-names';\nimport KolAlertFc from '../../functional-components/Alert';\nimport type { ErrorListPropType, FormAPI, FormStates, KoliBriFormCallbacks, Stringified } from '../../schema';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\n\n/**\n * @slot - Inhalt der Form.\n */\n@Component({\n\ttag: 'kol-form',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolForm implements FormAPI {\n\t@Element() private readonly host?: HTMLKolTextareaElement;\n\terrorListBlock?: HTMLElement;\n\terrorListFirstLink?: HTMLElement;\n\tprivate readonly translateErrorListMessage = translate('kol-error-list-message');\n\tprivate readonly translateErrorList = translate('kol-error-list');\n\tprivate readonly translateFormDescription = translate('kol-form-description');\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\n\t\tif (typeof this.state._on?.onSubmit === 'function') {\n\t\t\tthis.state._on?.onSubmit(event as SubmitEvent);\n\t\t}\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.submit);\n\t\t}\n\t};\n\n\tprivate readonly onReset = (event: Event) => {\n\t\tevent.preventDefault();\n\t\tif (typeof this.state._on?.onReset === 'function') {\n\t\t\tthis.state._on?.onReset(event);\n\t\t}\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.reset);\n\t\t}\n\t};\n\n\tprivate readonly handleLinkClick = (selector: string) => {\n\t\tconst targetElement = document.querySelector<HTMLElement>(selector);\n\t\tif (targetElement && typeof targetElement.focus === 'function') {\n\t\t\ttargetElement.scrollIntoView({ behavior: 'smooth' });\n\t\t\ttargetElement.focus();\n\t\t}\n\t};\n\n\tprivate readonly setBlockElement = (el?: HTMLElement) => (this.errorListBlock = el);\n\n\tprivate readonly setFirstLinkElement = (el?: HTMLElement) => (this.errorListFirstLink = el);\n\n\tprivate renderErrorList(errorList?: ErrorListPropType[]): JSX.Element {\n\t\treturn (\n\t\t\t<KolAlertFc class=\"kol-form__alert\" ref={this.setBlockElement} type=\"error\" variant=\"card\" label={this.translateErrorListMessage}>\n\t\t\t\t<nav aria-label={this.translateErrorList}>\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t{errorList?.map((error, index) => (\n\t\t\t\t\t\t\t<li key={index}>\n\t\t\t\t\t\t\t\t<KolLinkWcTag\n\t\t\t\t\t\t\t\t\tclass=\"kol-form__link\"\n\t\t\t\t\t\t\t\t\t_href=\"\"\n\t\t\t\t\t\t\t\t\t_label={error.message}\n\t\t\t\t\t\t\t\t\t_on={{ onClick: typeof error.selector === 'string' ? () => this.handleLinkClick(String(error.selector)) : error.selector }}\n\t\t\t\t\t\t\t\t\tref={index === 0 ? this.setFirstLinkElement : undefined}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</ul>\n\t\t\t\t</nav>\n\t\t\t</KolAlertFc>\n\t\t);\n\t}\n\n\tprivate renderFormElement(): JSX.Element {\n\t\treturn (\n\t\t\t<form class=\"kol-form\" method=\"post\" onSubmit={this.onSubmit} onReset={this.onReset} noValidate>\n\t\t\t\t{this.state._requiredText === true ? (\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<div class=\"kol-form__mandatory-fields-hint\">{this.translateFormDescription}</div>\n\t\t\t\t\t</p>\n\t\t\t\t) : typeof this.state._requiredText === 'string' && this.state._requiredText.length > 0 ? (\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<div class=\"kol-form__mandatory-fields-hint\">{this.state._requiredText}</div>\n\t\t\t\t\t</p>\n\t\t\t\t) : null}\n\t\t\t\t<slot />\n\t\t\t</form>\n\t\t);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst hasErrorList = Array.isArray(this._errorList) && this._errorList.length > 0;\n\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t{hasErrorList && this.renderErrorList(this._errorList)}\n\t\t\t\t{this.renderFormElement()}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate scrollToErrorList(): void {\n\t\tthis.errorListBlock?.scrollIntoView({\n\t\t\tbehavior: 'smooth',\n\t\t\tblock: 'start',\n\t\t});\n\t\tsetTimeout(() => {\n\t\t\tthis.errorListFirstLink?.querySelector('a')?.focus();\n\t\t}, 250);\n\t}\n\n\t/**\n\t * Scrolls to the error list and focuses the first link.\n\t */\n\t@Method()\n\tasync focusErrorList(): Promise<void> {\n\t\tthis.scrollToErrorList();\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"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAeO,MAAM,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAA2B,KAAU;IAC5G,cAAc,CACb,SAAS,EACT,WAAW,EACX,CAAC,KAAK,KAAc,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,KAAK,UAAU,CAAC,CAAC,KAAK,SAAS,EAChI,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,EAC/B,KAAK,CACL;AACF,CAAC;;ACvBD,MAAM,eAAe,GAAG,uuWAAuuW;;MCqBlvW,OAAO,GAAA,MAAA;AAPpB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAWkB,QAAA,IAAA,CAAA,yBAAyB,GAAG,SAAS,CAAC,wBAAwB,CAAC;AAC/D,QAAA,IAAA,CAAA,kBAAkB,GAAG,SAAS,CAAC,gBAAgB,CAAC;AAChD,QAAA,IAAA,CAAA,wBAAwB,GAAG,SAAS,CAAC,sBAAsB,CAAC;AAG5D,QAAA,IAAA,CAAA,QAAQ,GAAG,CAAC,KAAY,KAAI;;YAC5C,KAAK,CAAC,cAAc,EAAE;AAEtB,YAAA,IAAI,QAAO,CAAA,EAAA,GAAA,IAAI,CAAC,KAAK,CAAC,GAAG,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,QAAQ,CAAA,KAAK,UAAU,EAAE;AACnD,gBAAA,CAAA,EAAA,GAAA,IAAI,CAAC,KAAK,CAAC,GAAG,0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AAI,CAAC,iBAAiB,EAAE;AACxB,QAAA,OAAO,OAAO,CAAC,OAAO,EAAE;;AAqBlB,IAAA,UAAU,CAAC,KAA4B,EAAA;QAC7C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE;YAChD,IAAI,CAAC,KAAK,GAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EACN,IAAI,CAAC,KAAK,CAAA,EAAA,EACb,GAAG,EAAE,KAAK,EAAA,CACV;;;AAKI,IAAA,oBAAoB,CAAC,KAA4B,EAAA;AACvD,QAAA,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE;AAC/B,YAAA,YAAY,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,CAAC;;aACpC;AACN,YAAA,WAAW,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,CAAC;;;AAKpC,IAAA,iBAAiB,CAAC,KAA2B,EAAA;AACnD,QAAA,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC;;IAGxB,iBAAiB,GAAA;AACvB,QAAA,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC;AACzB,QAAA,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,aAAa,CAAC;AAC7C,QAAA,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"kol-form.entry.js","sources":["src/schema/props/error-list.ts","src/components/form/style.scss?tag=kol-form&mode=default&encapsulation=shadow","src/components/form/shadow.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport type { EventCallback } from '../types';\nimport { watchValidator } from '../utils';\n\n/* types */\nexport type ErrorListPropType = {\n\tmessage: string;\n\tselector: string | EventCallback<Event>;\n};\n\nexport type PropErrorList = {\n\terrorList: ErrorListPropType[];\n};\n\n/* validator */\nexport const validateErrorList = (component: Generic.Element.Component, value?: ErrorListPropType[]): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t'errorList',\n\t\t(value): boolean => Array.isArray(value) && value.find((v) => !(typeof v === 'string' || typeof v === 'function')) === undefined,\n\t\tnew Set(['string', 'function']),\n\t\tvalue,\n\t);\n};\n","@use '../@shared/mixins' as *;\n@use '../@shared/global' as *;\n@use '../host-display-block' as *;\n@use '../@shared/link.mixin' as *;\n@use '../@shared/alert.mixin' as *;\n\n@layer kol-component {\n\t@include kol-link-styles('kol-link');\n\t@include kol-alert;\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, Element, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { validateErrorList, watchBoolean, watchString } from '../../schema';\n\nimport { translate } from '../../i18n';\n\nimport { KolLinkWcTag } from '../../core/component-names';\nimport KolAlertFc from '../../functional-components/Alert';\nimport type { ErrorListPropType, FormAPI, FormStates, KoliBriFormCallbacks, Stringified } from '../../schema';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\n\n/**\n * The **Form** component is used to wrap all input fields, correctly position the required-fields hint text, and forward the `submit` and `reset` events.\n *\n * @slot - The content of the form.\n */\n@Component({\n\ttag: 'kol-form',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolForm implements FormAPI {\n\t@Element() private readonly host?: HTMLKolTextareaElement;\n\terrorListBlock?: HTMLElement;\n\terrorListFirstLink?: HTMLElement;\n\tprivate readonly translateErrorListMessage = translate('kol-error-list-message');\n\tprivate readonly translateErrorList = translate('kol-error-list');\n\tprivate readonly translateFormDescription = translate('kol-form-description');\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\n\t\tif (typeof this.state._on?.onSubmit === 'function') {\n\t\t\tthis.state._on?.onSubmit(event as SubmitEvent);\n\t\t}\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.submit);\n\t\t}\n\t};\n\n\tprivate readonly onReset = (event: Event) => {\n\t\tevent.preventDefault();\n\t\tif (typeof this.state._on?.onReset === 'function') {\n\t\t\tthis.state._on?.onReset(event);\n\t\t}\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.reset);\n\t\t}\n\t};\n\n\tprivate readonly handleLinkClick = (selector: string) => {\n\t\tconst targetElement = document.querySelector<HTMLElement>(selector);\n\t\tif (targetElement && typeof targetElement.focus === 'function') {\n\t\t\ttargetElement.scrollIntoView({ behavior: 'smooth' });\n\t\t\ttargetElement.focus();\n\t\t}\n\t};\n\n\tprivate readonly setBlockElement = (el?: HTMLElement) => (this.errorListBlock = el);\n\n\tprivate readonly setFirstLinkElement = (el?: HTMLElement) => (this.errorListFirstLink = el);\n\n\tprivate renderErrorList(errorList?: ErrorListPropType[]): JSX.Element {\n\t\treturn (\n\t\t\t<KolAlertFc class=\"kol-form__alert\" ref={this.setBlockElement} type=\"error\" variant=\"card\" label={this.translateErrorListMessage}>\n\t\t\t\t<nav aria-label={this.translateErrorList}>\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t{errorList?.map((error, index) => (\n\t\t\t\t\t\t\t<li key={index}>\n\t\t\t\t\t\t\t\t<KolLinkWcTag\n\t\t\t\t\t\t\t\t\tclass=\"kol-form__link\"\n\t\t\t\t\t\t\t\t\t_href=\"\"\n\t\t\t\t\t\t\t\t\t_label={error.message}\n\t\t\t\t\t\t\t\t\t_on={{ onClick: typeof error.selector === 'string' ? () => this.handleLinkClick(String(error.selector)) : error.selector }}\n\t\t\t\t\t\t\t\t\tref={index === 0 ? this.setFirstLinkElement : undefined}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</ul>\n\t\t\t\t</nav>\n\t\t\t</KolAlertFc>\n\t\t);\n\t}\n\n\tprivate renderFormElement(): JSX.Element {\n\t\treturn (\n\t\t\t<form class=\"kol-form\" method=\"post\" onSubmit={this.onSubmit} onReset={this.onReset} noValidate>\n\t\t\t\t{this.state._requiredText === true ? (\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<div class=\"kol-form__mandatory-fields-hint\">{this.translateFormDescription}</div>\n\t\t\t\t\t</p>\n\t\t\t\t) : typeof this.state._requiredText === 'string' && this.state._requiredText.length > 0 ? (\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<div class=\"kol-form__mandatory-fields-hint\">{this.state._requiredText}</div>\n\t\t\t\t\t</p>\n\t\t\t\t) : null}\n\t\t\t\t<slot />\n\t\t\t</form>\n\t\t);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst hasErrorList = Array.isArray(this._errorList) && this._errorList.length > 0;\n\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t{hasErrorList && this.renderErrorList(this._errorList)}\n\t\t\t\t{this.renderFormElement()}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate scrollToErrorList(): void {\n\t\tthis.errorListBlock?.scrollIntoView({\n\t\t\tbehavior: 'smooth',\n\t\t\tblock: 'start',\n\t\t});\n\t\tsetTimeout(() => {\n\t\t\tthis.errorListFirstLink?.querySelector('a')?.focus();\n\t\t}, 250);\n\t}\n\n\t/**\n\t * Scrolls to the error list and focuses the first link.\n\t */\n\t@Method()\n\tasync focusErrorList(): Promise<void> {\n\t\tthis.scrollToErrorList();\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"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAeO,MAAM,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAA2B,KAAU;IAC5G,cAAc,CACb,SAAS,EACT,WAAW,EACX,CAAC,KAAK,KAAc,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,KAAK,UAAU,CAAC,CAAC,KAAK,SAAS,EAChI,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,EAC/B,KAAK,CACL;AACF,CAAC;;ACvBD,MAAM,eAAe,GAAG,uuWAAuuW;;MCuBlvW,OAAO,GAAA,MAAA;AAPpB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAWkB,QAAA,IAAA,CAAA,yBAAyB,GAAG,SAAS,CAAC,wBAAwB,CAAC;AAC/D,QAAA,IAAA,CAAA,kBAAkB,GAAG,SAAS,CAAC,gBAAgB,CAAC;AAChD,QAAA,IAAA,CAAA,wBAAwB,GAAG,SAAS,CAAC,sBAAsB,CAAC;AAG5D,QAAA,IAAA,CAAA,QAAQ,GAAG,CAAC,KAAY,KAAI;;YAC5C,KAAK,CAAC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Cw_LoKSN.js";import{K as KolHeadingFc}from"./Heading-CMmrUlbQ.js";import{g as watchString}from"./common-BIkdAxr0.js";import{a as validateLabelWithExpertSlot}from"./label-C18ud7Yt.js";import"./i18n-DvMeCREp.js";import"./component-Dy6q6xwI.js";import{w as watchHeadingLevel}from"./validation-QdERp-08.js";import"./tslib.es6-CxX45GIN.js";import"./clsx-COFh-Vc8.js";import"./component-names-BQrMLr68.js";import"./bem-registry-ClssJ_nC.js";import"./component-BssZbWQw.js";import"./i18n-B0tfVPMa.js";import"./isArray-CcrBs4JM.js";const defaultStyleCss="/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n .kol-headline--secondary {\n margin: 0;\n }\n}",KolHeading=class{constructor(n){registerInstance(this,n),this._level=0,this.state={_label:"",_level:0}}validateLabel(n){validateLabelWithExpertSlot(this,n)}validateLevel(n){watchHeadingLevel(this,n)}validateSecondaryHeadline(n){watchString(this,"_secondaryHeadline",n)}componentWillLoad(){this.validateLabel(this._label),this.validateLevel(this._level),this.validateSecondaryHeadline(this._secondaryHeadline)}render(){const{_secondaryHeadline:n,_label:e,_level:t}=this.state;return h(KolHeadingFc,{key:"e0215bf6a8c6689b9661f08a0216f36bf6d2f332",secondaryHeadline:n,level:t},e,h("slot",{key:"1cd10de7df8a97779b57dd91247f6d3505e10f61",name:"expert",slot:"expert"}))}static get watchers(){return{_label:["validateLabel"],_level:["validateLevel"],_secondaryHeadline:["validateSecondaryHeadline"]}}};KolHeading.style={default:defaultStyleCss};export{KolHeading as kol_heading};
4
+ import{r as registerInstance,h}from"./index-C-7ueFeG.js";import"./Alert-SEfIw75e.js";import{K as KolHeadingFc}from"./Heading-CC-ueMZ4.js";import{g as watchString}from"./common-BIkdAxr0.js";import{a as validateLabelWithExpertSlot}from"./label-C18ud7Yt.js";import"./i18n-DvMeCREp.js";import"./component-Hu7IB74c.js";import{w as watchHeadingLevel}from"./validation-QdERp-08.js";import"./tslib.es6-CxX45GIN.js";import"./clsx-COFh-Vc8.js";import"./component-names-BQrMLr68.js";import"./bem-registry-ClssJ_nC.js";import"./component-CraT9mqx.js";import"./i18n-B0tfVPMa.js";import"./isArray-CcrBs4JM.js";const defaultStyleCss="/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n .kol-headline--secondary {\n margin: 0;\n }\n}",KolHeading=class{constructor(e){registerInstance(this,e),this._level=0,this.state={_label:"",_level:0}}validateLabel(e){validateLabelWithExpertSlot(this,e)}validateLevel(e){watchHeadingLevel(this,e)}validateSecondaryHeadline(e){watchString(this,"_secondaryHeadline",e)}componentWillLoad(){this.validateLabel(this._label),this.validateLevel(this._level),this.validateSecondaryHeadline(this._secondaryHeadline)}render(){const{_secondaryHeadline:e,_label:n,_level:t}=this.state;return h(KolHeadingFc,{key:"5b1aa2d6529760e1163f3d3dfed33e6eeac23b87",secondaryHeadline:e,level:t},n,h("slot",{key:"a164fde23c11d5d6b28bd1029a5d4c8c9453a111",name:"expert",slot:"expert"}))}static get watchers(){return{_label:["validateLabel"],_level:["validateLevel"],_secondaryHeadline:["validateSecondaryHeadline"]}}};KolHeading.style={default:defaultStyleCss};export{KolHeading as kol_heading};
@@ -1 +1 @@
1
- {"version":3,"file":"kol-heading.entry.js","sources":["src/components/heading/style.scss?tag=kol-heading&mode=default&encapsulation=shadow","src/components/heading/shadow.tsx"],"sourcesContent":["@use '../../styles/global' as *;\n\n@layer kol-component {\n\t.kol-headline {\n\t\t&--secondary {\n\t\t\tmargin: 0;\n\t\t}\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Prop, State, Watch } from '@stencil/core';\nimport { KolHeadingFc } from '../../functional-components';\nimport type { HeadingAPI, HeadingLevel, HeadingStates, LabelWithExpertSlotPropType } from '../../schema';\nimport { validateLabelWithExpertSlot, watchString } from '../../schema';\nimport { watchHeadingLevel } from './validation';\n\n/**\n *\n * @slot - Inhalt der Überschrift.\n */\n@Component({\n\ttag: 'kol-heading',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolHeading 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 = 0;\n\n\t/**\n\t * Defines the text of the secondary headline.\n\t */\n\t@Prop() public _secondaryHeadline?: string;\n\n\t@State() public state: HeadingStates = {\n\t\t_label: '', // ⚠ required\n\t\t_level: 0,\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\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateSecondaryHeadline(this._secondaryHeadline);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst { _secondaryHeadline, _label, _level } = this.state;\n\n\t\treturn (\n\t\t\t<KolHeadingFc secondaryHeadline={_secondaryHeadline} level={_level}>\n\t\t\t\t{_label}\n\t\t\t\t<slot name=\"expert\" slot=\"expert\" />\n\t\t\t</KolHeadingFc>\n\t\t);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,MAAM,eAAe,GAAG,40KAA40K;;MCkBv1K,UAAU,GAAA,MAAA;AAPvB,IAAA,WAAA,CAAA,OAAA,EAAA;;AAgBgB,QAAA,IAAM,CAAA,MAAA,GAAkB,CAAC;QAOxB,IAAA,CAAA,KAAK,GAAkB;AACtC,YAAA,MAAM,EAAE,EAAE;AACV,YAAA,MAAM,EAAE,CAAC;SACT;AAiCD;AA9BO,IAAA,aAAa,CAAC,KAAmC,EAAA;AACvD,QAAA,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC;;AAIlC,IAAA,aAAa,CAAC,KAAoB,EAAA;AACxC,QAAA,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC;;AAIxB,IAAA,yBAAyB,CAAC,KAAc,EAAA;AAC9C,QAAA,WAAW,CAAC,IAAI,EAAE,oBAAoB,EAAE,KAAK,CAAC;;IAGxC,iBAAiB,GAAA;AACvB,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;AAC/B,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;AAC/B,QAAA,IAAI,CAAC,yBAAyB,CAAC,IAAI,CAAC,kBAAkB,CAAC;;IAGjD,MAAM,GAAA;QACZ,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK;AAEzD,QAAA,QACC,CAAC,CAAA,YAAY,EAAC,EAAA,GAAA,EAAA,0CAAA,EAAA,iBAAiB,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,EAAA,EAChE,MAAM,EACP,CAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,EAAA,CAAG,CACtB;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"kol-heading.entry.js","sources":["src/components/heading/style.scss?tag=kol-heading&mode=default&encapsulation=shadow","src/components/heading/shadow.tsx"],"sourcesContent":["@use '../@shared/global' as *;\n\n@layer kol-component {\n\t.kol-headline {\n\t\t&--secondary {\n\t\t\tmargin: 0;\n\t\t}\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Prop, State, Watch } from '@stencil/core';\nimport { KolHeadingFc } from '../../functional-components';\nimport type { HeadingAPI, HeadingLevel, HeadingStates, LabelWithExpertSlotPropType } from '../../schema';\nimport { validateLabelWithExpertSlot, watchString } from '../../schema';\nimport { watchHeadingLevel } from './validation';\n\n/**\n * The **Heading** component can be used wherever a heading needs to be displayed. By using the different sizes, content can be clearly structured and pages can be presented effectively and with variety. It separates styling from semantics and enables flexibility.\n *\n * @slot - The heading content.\n */\n@Component({\n\ttag: 'kol-heading',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolHeading 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 = 0;\n\n\t/**\n\t * Defines the text of the secondary headline.\n\t */\n\t@Prop() public _secondaryHeadline?: string;\n\n\t@State() public state: HeadingStates = {\n\t\t_label: '', // ⚠ required\n\t\t_level: 0,\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\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateSecondaryHeadline(this._secondaryHeadline);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst { _secondaryHeadline, _label, _level } = this.state;\n\n\t\treturn (\n\t\t\t<KolHeadingFc secondaryHeadline={_secondaryHeadline} level={_level}>\n\t\t\t\t{_label}\n\t\t\t\t<slot name=\"expert\" slot=\"expert\" />\n\t\t\t</KolHeadingFc>\n\t\t);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,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{c as createPropDefinition,n as normalizeString,B as BaseController,a as BaseWebComponent}from"./base-web-component-CWGkWR9Y.js";import{I as IconFC}from"./component-BssZbWQw.js";import"./common-BIkdAxr0.js";import{l as labelProp}from"./label-YA4_eF9_.js";import"./_Uint8Array-UP73qmmG.js";import"./isArray-CcrBs4JM.js";import"./isObject-BJgq02Md.js";import"./tslib.es6-CxX45GIN.js";import"./bem-registry-ClssJ_nC.js";import"./clsx-COFh-Vc8.js";const iconsProp=createPropDefinition("icons","kolicon-logo",normalizeString),iconPropsConfig={required:[iconsProp,labelProp]};class IconController extends BaseController{constructor(n,o){super(iconPropsConfig,n,o)}componentWillLoad(n){const{icons:o,label:e}=n;this.watchIcons(o),this.watchLabel(e)}watchIcons(n){iconsProp.apply(n,n=>{this.setRenderProp("icons",n)})}watchLabel(n){labelProp.apply(n,n=>{this.setRenderProp("label",n)})}}const defaultStyleCss='@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1773232431126"); /* IE9*/\n src: url("kolicons.eot?t=1773232431126#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1773232431126") format("woff2"), url("kolicons.woff?t=1773232431126") format("woff"), url("kolicons.ttf?t=1773232431126") format("truetype"), url("kolicons.svg?t=1773232431126#kolicons") format("svg"); /* iOS 4.1- */\n}\n[class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.kolicon-alert-error::before {\n content: "\\ea01";\n}\n\n.kolicon-alert-info::before {\n content: "\\ea02";\n}\n\n.kolicon-alert-success::before {\n content: "\\ea03";\n}\n\n.kolicon-alert-warning::before {\n content: "\\ea04";\n}\n\n.kolicon-check::before {\n content: "\\ea05";\n}\n\n.kolicon-chevron-double-left::before {\n content: "\\ea06";\n}\n\n.kolicon-chevron-double-right::before {\n content: "\\ea07";\n}\n\n.kolicon-chevron-down::before {\n content: "\\ea08";\n}\n\n.kolicon-chevron-left::before {\n content: "\\ea09";\n}\n\n.kolicon-chevron-right::before {\n content: "\\ea0a";\n}\n\n.kolicon-chevron-up::before {\n content: "\\ea0b";\n}\n\n.kolicon-cogwheel::before {\n content: "\\ea0c";\n}\n\n.kolicon-cross::before {\n content: "\\ea0d";\n}\n\n.kolicon-eye-closed::before {\n content: "\\ea0e";\n}\n\n.kolicon-eye::before {\n content: "\\ea0f";\n}\n\n.kolicon-house::before {\n content: "\\ea10";\n}\n\n.kolicon-kolibri::before {\n content: "\\ea11";\n}\n\n.kolicon-link-external::before {\n content: "\\ea12";\n}\n\n.kolicon-link::before {\n content: "\\ea13";\n}\n\n.kolicon-minus::before {\n content: "\\ea14";\n}\n\n.kolicon-plus::before {\n content: "\\ea15";\n}\n\n.kolicon-settings::before {\n content: "\\ea16";\n}\n\n.kolicon-sort-asc::before {\n content: "\\ea17";\n}\n\n.kolicon-sort-desc::before {\n content: "\\ea18";\n}\n\n.kolicon-sort-neutral::before {\n content: "\\ea19";\n}\n\n.kolicon-up::before {\n content: "\\ea1a";\n}\n\n.kolicon-version::before {\n content: "\\ea1b";\n}\n\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n}',KolIcon=class extends BaseWebComponent{constructor(n){super(),registerInstance(this,n),this.ctrl=new IconController(this.setState,this.getState)}watchIcons(n){this.ctrl.watchIcons(n)}watchLabel(n){this.ctrl.watchLabel(n)}componentWillLoad(){this.ctrl.componentWillLoad({icons:this._icons,label:this._label})}render(){return h(Host,{key:"354e7cdb227a67da0b55b53c9142e1f5dd807069"},h(IconFC,{key:"3e6a099e74408565c559d97000a8c42d31c6501c",icons:this.ctrl.getRenderProp("icons"),label:this.ctrl.getRenderProp("label")}))}static get watchers(){return{_icons:["watchIcons"],_label:["watchLabel"]}}};KolIcon.style={default:defaultStyleCss};export{KolIcon as kol_icon};
4
+ import{r as registerInstance,h,H as Host}from"./index-C-7ueFeG.js";import{c as createPropDefinition,n as normalizeString,B as BaseController,a as BaseWebComponent}from"./base-web-component-CWGkWR9Y.js";import{I as IconFC}from"./component-CraT9mqx.js";import"./common-BIkdAxr0.js";import{l as labelProp}from"./label-YA4_eF9_.js";import"./_Uint8Array-UP73qmmG.js";import"./isArray-CcrBs4JM.js";import"./isObject-BJgq02Md.js";import"./tslib.es6-CxX45GIN.js";import"./bem-registry-ClssJ_nC.js";import"./clsx-COFh-Vc8.js";const iconsProp=createPropDefinition("icons","kolicon-logo",normalizeString),iconPropsConfig={required:[iconsProp,labelProp]};class IconController extends BaseController{constructor(n,o){super(iconPropsConfig,n,o)}componentWillLoad(n){const{icons:o,label:e}=n;this.watchIcons(o),this.watchLabel(e)}watchIcons(n){iconsProp.apply(n,n=>{this.setRenderProp("icons",n)})}watchLabel(n){labelProp.apply(n,n=>{this.setRenderProp("label",n)})}}const defaultStyleCss='@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1773990435463"); /* IE9*/\n src: url("kolicons.eot?t=1773990435463#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1773990435463") format("woff2"), url("kolicons.woff?t=1773990435463") format("woff"), url("kolicons.ttf?t=1773990435463") format("truetype"), url("kolicons.svg?t=1773990435463#kolicons") format("svg"); /* iOS 4.1- */\n}\n[class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.kolicon-alert-error::before {\n content: "\\ea01";\n}\n\n.kolicon-alert-info::before {\n content: "\\ea02";\n}\n\n.kolicon-alert-success::before {\n content: "\\ea03";\n}\n\n.kolicon-alert-warning::before {\n content: "\\ea04";\n}\n\n.kolicon-check::before {\n content: "\\ea05";\n}\n\n.kolicon-chevron-double-left::before {\n content: "\\ea06";\n}\n\n.kolicon-chevron-double-right::before {\n content: "\\ea07";\n}\n\n.kolicon-chevron-down::before {\n content: "\\ea08";\n}\n\n.kolicon-chevron-left::before {\n content: "\\ea09";\n}\n\n.kolicon-chevron-right::before {\n content: "\\ea0a";\n}\n\n.kolicon-chevron-up::before {\n content: "\\ea0b";\n}\n\n.kolicon-cogwheel::before {\n content: "\\ea0c";\n}\n\n.kolicon-cross::before {\n content: "\\ea0d";\n}\n\n.kolicon-eye-closed::before {\n content: "\\ea0e";\n}\n\n.kolicon-eye::before {\n content: "\\ea0f";\n}\n\n.kolicon-house::before {\n content: "\\ea10";\n}\n\n.kolicon-kolibri::before {\n content: "\\ea11";\n}\n\n.kolicon-link-external::before {\n content: "\\ea12";\n}\n\n.kolicon-link::before {\n content: "\\ea13";\n}\n\n.kolicon-minus::before {\n content: "\\ea14";\n}\n\n.kolicon-plus::before {\n content: "\\ea15";\n}\n\n.kolicon-settings::before {\n content: "\\ea16";\n}\n\n.kolicon-sort-asc::before {\n content: "\\ea17";\n}\n\n.kolicon-sort-desc::before {\n content: "\\ea18";\n}\n\n.kolicon-sort-neutral::before {\n content: "\\ea19";\n}\n\n.kolicon-up::before {\n content: "\\ea1a";\n}\n\n.kolicon-version::before {\n content: "\\ea1b";\n}\n\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n}',KolIcon=class extends BaseWebComponent{constructor(n){super(),registerInstance(this,n),this.ctrl=new IconController(this.setState,this.getState)}watchIcons(n){this.ctrl.watchIcons(n)}watchLabel(n){this.ctrl.watchLabel(n)}componentWillLoad(){this.ctrl.componentWillLoad({icons:this._icons,label:this._label})}render(){return h(Host,{key:"eec010ecae679aa60be2e9a20c87fb817a84f562"},h(IconFC,{key:"e0fdbd3ec1dfa9b95d3a5da034af895af36ec848",icons:this.ctrl.getRenderProp("icons"),label:this.ctrl.getRenderProp("label")}))}static get watchers(){return{_icons:["watchIcons"],_label:["watchLabel"]}}};KolIcon.style={default:defaultStyleCss};export{KolIcon as kol_icon};
@@ -1 +1 @@
1
- {"version":3,"file":"kol-icon.entry.js","sources":["src/internal/props/icons.ts","src/internal/functional-components/icon/api.tsx","src/internal/functional-components/icon/controller.ts","src/components/icon/style.scss?tag=kol-icon&mode=default&encapsulation=shadow","src/components/icon/component.tsx"],"sourcesContent":["import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\n/**\n * Icons prop for icon class names\n *\n * Description:\n * Specifies the icon(s) to display via CSS class names (e.g., icon fonts). Icons are\n * visual indicators that supplement or replace text content.\n *\n * Usage (according to WCAG 2.1 and WAI-ARIA):\n * - Decorative icons: Must be hidden from assistive technologies (aria-hidden=\"true\")\n * - Informative icons: Must have a text alternative (WCAG 1.1.1 Non-text Content)\n * - Use the label prop or aria-label to provide an accessible name\n * - Icons must not be the sole means of conveying information (WCAG 1.3.3 Sensory Characteristics)\n * - Icon colors must have sufficient contrast against their background (WCAG 1.4.11 Non-text Contrast, 3:1 ratio)\n * - Icons used in interactive elements must meet minimum target size (WCAG 2.5.8 Target Size)\n *\n * @see https://www.w3.org/WAI/WCAG21/Understanding/non-text-content.html\n * @see https://www.w3.org/WAI/WCAG21/Understanding/non-text-contrast.html\n * @see https://www.w3.org/WAI/WCAG21/Understanding/sensory-characteristics.html\n * @see https://www.w3.org/TR/wai-aria-1.2/#aria-hidden\n */\nexport type IconsProp = SimpleProp<'icons', string>;\nexport const iconsProp = createPropDefinition<IconsProp>('icons', 'kolicon-logo', normalizeString);\n","import { iconsProp, labelProp } from '../../props';\nimport type { ApiFromConfig, PropsConfigShape } from '../generic-types';\n\nexport const iconPropsConfig = {\n\trequired: [iconsProp, labelProp],\n} as const satisfies PropsConfigShape;\n\nexport type IconApi = ApiFromConfig<typeof iconPropsConfig>;\n","import { iconsProp, labelProp } from '../../props';\nimport { BaseController } from '../base-controller';\nimport type { ControllerInterface, GetStateFn, ResolvedProps, SetStateFn } from '../generic-types';\nimport type { IconApi } from './api';\nimport { iconPropsConfig } from './api';\n\nexport class IconController extends BaseController<IconApi> implements ControllerInterface<IconApi> {\n\tpublic constructor(setState: SetStateFn<IconApi>, getState: GetStateFn<IconApi>) {\n\t\tsuper(iconPropsConfig, setState, getState);\n\t}\n\n\tpublic componentWillLoad(props: ResolvedProps<IconApi>): void {\n\t\tconst { icons, label } = props;\n\t\tthis.watchIcons(icons);\n\t\tthis.watchLabel(label);\n\t}\n\n\tpublic watchIcons(value?: string): void {\n\t\ticonsProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('icons', v);\n\t\t});\n\t}\n\n\tpublic watchLabel(value?: string): void {\n\t\tlabelProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('label', v);\n\t\t});\n\t}\n}\n","@use '../@shared/kol-icon-mixin' as *;\n\n@layer kol-component {\n\t@include kol-icon-styles();\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Host, Prop, Watch } from '@stencil/core';\nimport { BaseWebComponent } from '../../internal/functional-components/base-web-component';\nimport type { WebComponentInterface } from '../../internal/functional-components/generic-types';\nimport type { IconApi } from '../../internal/functional-components/icon/api';\nimport { IconFC } from '../../internal/functional-components/icon/component';\nimport { IconController } from '../../internal/functional-components/icon/controller';\n\n@Component({\n\ttag: 'kol-icon',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolIcon extends BaseWebComponent<IconApi> implements WebComponentInterface<IconApi> {\n\tprivate readonly ctrl = new IconController(this.setState, this.getState);\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop()\n\tpublic _icons!: string;\n\n\t@Watch('_icons')\n\tpublic watchIcons(value?: string): void {\n\t\tthis.ctrl.watchIcons(value);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop()\n\tpublic _label!: string;\n\n\t@Watch('_label')\n\tpublic watchLabel(value?: string): void {\n\t\tthis.ctrl.watchLabel(value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.ctrl.componentWillLoad({\n\t\t\ticons: this._icons,\n\t\t\tlabel: this._label,\n\t\t});\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<IconFC icons={this.ctrl.getRenderProp('icons')} label={this.ctrl.getRenderProp('label')} />\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAyBO,MAAM,SAAS,GAAG,oBAAoB,CAAY,OAAO,EAAE,cAAc,EAAE,eAAe,CAAC;;ACtB3F,MAAM,eAAe,GAAG;AAC9B,IAAA,QAAQ,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;CACI;;ACC/B,MAAO,cAAe,SAAQ,cAAuB,CAAA;IAC1D,WAAmB,CAAA,QAA6B,EAAE,QAA6B,EAAA;AAC9E,QAAA,KAAK,CAAC,eAAe,EAAE,QAAQ,EAAE,QAAQ,CAAC;;AAGpC,IAAA,iBAAiB,CAAC,KAA6B,EAAA;AACrD,QAAA,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,KAAK;AAC9B,QAAA,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;AACtB,QAAA,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;;AAGhB,IAAA,UAAU,CAAC,KAAc,EAAA;QAC/B,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,KAAI;AAC5B,YAAA,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC;AAC/B,SAAC,CAAC;;AAGI,IAAA,UAAU,CAAC,KAAc,EAAA;QAC/B,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,KAAI;AAC5B,YAAA,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC;AAC/B,SAAC,CAAC;;AAEH;;AC5BD,MAAM,eAAe,GAAG,s4EAAs4E;;MCej5E,OAAQ,GAAA,cAAQ,gBAAyB,CAAA;;;;AACpC,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;;AASjE,IAAA,UAAU,CAAC,KAAc,EAAA;AAC/B,QAAA,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;;AAUrB,IAAA,UAAU,CAAC,KAAc,EAAA;AAC/B,QAAA,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;;IAGrB,iBAAiB,GAAA;AACvB,QAAA,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC;YAC3B,KAAK,EAAE,IAAI,CAAC,MAAM;YAClB,KAAK,EAAE,IAAI,CAAC,MAAM;AAClB,SAAA,CAAC;;IAGI,MAAM,GAAA;QACZ,QACC,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACJ,CAAC,CAAA,MAAM,EAAC,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,EAAA,CAAI,CACtF;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"kol-icon.entry.js","sources":["src/internal/props/icons.ts","src/internal/functional-components/icon/api.tsx","src/internal/functional-components/icon/controller.ts","src/components/icon/style.scss?tag=kol-icon&mode=default&encapsulation=shadow","src/components/icon/component.tsx"],"sourcesContent":["import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\n/**\n * Icons prop for icon class names\n *\n * Description:\n * Specifies the icon(s) to display via CSS class names (e.g., icon fonts). Icons are\n * visual indicators that supplement or replace text content.\n *\n * Usage (according to WCAG 2.1 and WAI-ARIA):\n * - Decorative icons: Must be hidden from assistive technologies (aria-hidden=\"true\")\n * - Informative icons: Must have a text alternative (WCAG 1.1.1 Non-text Content)\n * - Use the label prop or aria-label to provide an accessible name\n * - Icons must not be the sole means of conveying information (WCAG 1.3.3 Sensory Characteristics)\n * - Icon colors must have sufficient contrast against their background (WCAG 1.4.11 Non-text Contrast, 3:1 ratio)\n * - Icons used in interactive elements must meet minimum target size (WCAG 2.5.8 Target Size)\n *\n * @see https://www.w3.org/WAI/WCAG21/Understanding/non-text-content.html\n * @see https://www.w3.org/WAI/WCAG21/Understanding/non-text-contrast.html\n * @see https://www.w3.org/WAI/WCAG21/Understanding/sensory-characteristics.html\n * @see https://www.w3.org/TR/wai-aria-1.2/#aria-hidden\n */\nexport type IconsProp = SimpleProp<'icons', string>;\nexport const iconsProp = createPropDefinition<IconsProp>('icons', 'kolicon-logo', normalizeString);\n","import { iconsProp, labelProp } from '../../props';\nimport type { ApiFromConfig, PropsConfigShape } from '../generic-types';\n\nexport const iconPropsConfig = {\n\trequired: [iconsProp, labelProp],\n} as const satisfies PropsConfigShape;\n\nexport type IconApi = ApiFromConfig<typeof iconPropsConfig>;\n","import { iconsProp, labelProp } from '../../props';\nimport { BaseController } from '../base-controller';\nimport type { ControllerInterface, GetStateFn, ResolvedProps, SetStateFn } from '../generic-types';\nimport type { IconApi } from './api';\nimport { iconPropsConfig } from './api';\n\nexport class IconController extends BaseController<IconApi> implements ControllerInterface<IconApi> {\n\tpublic constructor(setState: SetStateFn<IconApi>, getState: GetStateFn<IconApi>) {\n\t\tsuper(iconPropsConfig, setState, getState);\n\t}\n\n\tpublic componentWillLoad(props: ResolvedProps<IconApi>): void {\n\t\tconst { icons, label } = props;\n\t\tthis.watchIcons(icons);\n\t\tthis.watchLabel(label);\n\t}\n\n\tpublic watchIcons(value?: string): void {\n\t\ticonsProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('icons', v);\n\t\t});\n\t}\n\n\tpublic watchLabel(value?: string): void {\n\t\tlabelProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('label', v);\n\t\t});\n\t}\n}\n","@use '../@shared/icon.mixin' as *;\n\n@layer kol-component {\n\t@include kol-icon-styles();\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Host, Prop, Watch } from '@stencil/core';\nimport { BaseWebComponent } from '../../internal/functional-components/base-web-component';\nimport type { WebComponentInterface } from '../../internal/functional-components/generic-types';\nimport type { IconApi } from '../../internal/functional-components/icon/api';\nimport { IconFC } from '../../internal/functional-components/icon/component';\nimport { IconController } from '../../internal/functional-components/icon/controller';\n\n/**\n * The **Icon** component allows icons from included icon fonts to be displayed at any position.\n */\n@Component({\n\ttag: 'kol-icon',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolIcon extends BaseWebComponent<IconApi> implements WebComponentInterface<IconApi> {\n\tprivate readonly ctrl = new IconController(this.setState, this.getState);\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop()\n\tpublic _icons!: string;\n\n\t@Watch('_icons')\n\tpublic watchIcons(value?: string): void {\n\t\tthis.ctrl.watchIcons(value);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop()\n\tpublic _label!: string;\n\n\t@Watch('_label')\n\tpublic watchLabel(value?: string): void {\n\t\tthis.ctrl.watchLabel(value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.ctrl.componentWillLoad({\n\t\t\ticons: this._icons,\n\t\t\tlabel: this._label,\n\t\t});\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<IconFC icons={this.ctrl.getRenderProp('icons')} label={this.ctrl.getRenderProp('label')} />\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAyBO,MAAM,SAAS,GAAG,oBAAoB,CAAY,OAAO,EAAE,cAAc,EAAE,eAAe,CAAC;;ACtB3F,MAAM,eAAe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