@public-ui/components 4.2.0-rc.1 → 4.2.0-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 (616) 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 +82 -4
  7. package/dist/cjs/{Alert-CZFEnpQp.js → Alert-CCe9pvqX.js} +1 -1
  8. package/dist/cjs/{Alert-CZFEnpQp.js.map → Alert-CCe9pvqX.js.map} +1 -1
  9. package/dist/cjs/Collapsible-CQJn_Nwz.js +4 -0
  10. package/dist/cjs/Collapsible-CQJn_Nwz.js.map +1 -0
  11. package/dist/cjs/{CustomSuggestionsOptionsGroup-BWMCVv4s.js → CustomSuggestionsOptionsGroup-BJTCyNYr.js} +1 -1
  12. package/dist/cjs/{CustomSuggestionsOptionsGroup-BWMCVv4s.js.map → CustomSuggestionsOptionsGroup-BJTCyNYr.js.map} +1 -1
  13. package/dist/cjs/FieldControlStateWrapper-C1DRtKiI.js +4 -0
  14. package/dist/cjs/FieldControlStateWrapper-C1DRtKiI.js.map +1 -0
  15. package/dist/cjs/FormFieldStateWrapper-ByL7oRBI.js +4 -0
  16. package/dist/cjs/FormFieldStateWrapper-ByL7oRBI.js.map +1 -0
  17. package/dist/cjs/{Heading-C8dFS1jN.js → Heading-C-7wIlLu.js} +1 -1
  18. package/dist/cjs/{Heading-C8dFS1jN.js.map → Heading-C-7wIlLu.js.map} +1 -1
  19. package/dist/cjs/Input-CA_3-eB9.js +4 -0
  20. package/dist/cjs/Input-CA_3-eB9.js.map +1 -0
  21. package/dist/cjs/InputStateWrapper-_iYP9BvE.js +4 -0
  22. package/dist/cjs/InputStateWrapper-_iYP9BvE.js.map +1 -0
  23. package/dist/cjs/{app-globals-Ce1YiCuB.js → app-globals-BZ_VVkwt.js} +1 -1
  24. package/dist/cjs/{app-globals-Ce1YiCuB.js.map → app-globals-BZ_VVkwt.js.map} +1 -1
  25. package/dist/cjs/{component-CY3ki2XC.js → component--8i7E4CQ.js} +1 -1
  26. package/dist/cjs/{component-CY3ki2XC.js.map → component--8i7E4CQ.js.map} +1 -1
  27. package/dist/cjs/{component-BcNeqWH3.js → component-bCqns4_n.js} +1 -1
  28. package/dist/cjs/{component-BcNeqWH3.js.map → component-bCqns4_n.js.map} +1 -1
  29. package/dist/cjs/{component-P70qtkzX.js → component-lBaUur7X.js} +1 -1
  30. package/dist/cjs/{component-P70qtkzX.js.map → component-lBaUur7X.js.map} +1 -1
  31. package/dist/cjs/{controller-C9wc4ULR.js → controller-BBKSlFz4.js} +1 -1
  32. package/dist/cjs/{controller-C9wc4ULR.js.map → controller-BBKSlFz4.js.map} +1 -1
  33. package/dist/cjs/{controller-Ih6TXnVX.js → controller-BEi7lIhs.js} +1 -1
  34. package/dist/cjs/{controller-Ih6TXnVX.js.map → controller-BEi7lIhs.js.map} +1 -1
  35. package/dist/cjs/controller-BkzakXL2.js +4 -0
  36. package/dist/cjs/controller-BkzakXL2.js.map +1 -0
  37. package/dist/cjs/{controller-CVoUmDyS.js → controller-FAlLAiN6.js} +1 -1
  38. package/dist/cjs/{controller-CVoUmDyS.js.map → controller-FAlLAiN6.js.map} +1 -1
  39. package/dist/cjs/{controller-icon-DiMYMQNu.js → controller-icon-BoWIawkU.js} +1 -1
  40. package/dist/cjs/{controller-icon-DiMYMQNu.js.map → controller-icon-BoWIawkU.js.map} +1 -1
  41. package/dist/cjs/{dev.utils-C6aqolAb.js → dev.utils-DYrlz4G7.js} +1 -1
  42. package/dist/{esm/dev.utils-Kck8qmtF.js.map → cjs/dev.utils-DYrlz4G7.js.map} +1 -1
  43. package/dist/cjs/{devtools-CV0ytaM7.js → devtools-CzVv9OkU.js} +1 -1
  44. package/dist/cjs/{devtools-CV0ytaM7.js.map → devtools-CzVv9OkU.js.map} +1 -1
  45. package/dist/cjs/{index-C24UiEit.js → index-DyCCobHQ.js} +1 -1
  46. package/dist/cjs/{index-C24UiEit.js.map → index-DyCCobHQ.js.map} +1 -1
  47. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  48. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  49. package/dist/cjs/kol-accordion.entry.cjs.js.map +1 -1
  50. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  51. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  53. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-badge.entry.cjs.js.map +1 -1
  55. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  57. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-card-wc.entry.cjs.js.map +1 -1
  61. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-click-button.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-combobox.entry.cjs.js.map +1 -1
  65. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-details.entry.cjs.js.map +1 -1
  67. package/dist/cjs/kol-dialog-wc.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-dialog-wc.entry.cjs.js.map +1 -1
  69. package/dist/cjs/kol-dialog.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-drawer.entry.cjs.js.map +1 -1
  72. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +1 -1
  78. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-input-color.entry.cjs.js.map +1 -1
  80. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-input-date.entry.cjs.js.map +1 -1
  82. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-input-email.entry.cjs.js.map +1 -1
  84. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-input-file.entry.cjs.js.map +1 -1
  86. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-input-number.entry.cjs.js.map +1 -1
  88. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-input-password.entry.cjs.js.map +1 -1
  90. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-input-radio.entry.cjs.js.map +1 -1
  92. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-input-range.entry.cjs.js.map +1 -1
  94. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-input-text.entry.cjs.js.map +1 -1
  96. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-meter.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-nav.entry.cjs.js.map +1 -1
  104. package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-popover-button-wc.entry.cjs.js.map +1 -1
  108. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-select-wc.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-select-wc.entry.cjs.js.map +1 -1
  113. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-select.entry.cjs.js.map +1 -1
  115. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-single-select.entry.cjs.js.map +1 -1
  117. package/dist/cjs/kol-skeleton.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-textarea.entry.cjs.js.map +1 -1
  128. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-toast-container.entry.cjs.js.map +1 -1
  130. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-tree-item-wc.entry.cjs.js.map +1 -1
  134. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  136. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  138. package/dist/cjs/kolibri.cjs.js +1 -1
  139. package/dist/cjs/loader.cjs.js +1 -1
  140. package/dist/cjs/test-component.cjs.entry.js +1 -1
  141. package/dist/components/Collapsible.js +1 -1
  142. package/dist/components/Collapsible.js.map +1 -1
  143. package/dist/components/FieldControlStateWrapper.js +1 -1
  144. package/dist/components/FieldControlStateWrapper.js.map +1 -1
  145. package/dist/components/Input.js +1 -1
  146. package/dist/components/Input.js.map +1 -1
  147. package/dist/components/InputStateWrapper.js +1 -1
  148. package/dist/components/InputStateWrapper.js.map +1 -1
  149. package/dist/components/controller4.js +1 -1
  150. package/dist/components/controller4.js.map +1 -1
  151. package/dist/components/controller7.js +1 -1
  152. package/dist/components/controller7.js.map +1 -1
  153. package/dist/components/dev.utils.js +1 -1
  154. package/dist/components/dev.utils.js.map +1 -1
  155. package/dist/components/kol-abbr.js +1 -1
  156. package/dist/components/kol-accordion.js +1 -1
  157. package/dist/components/kol-accordion.js.map +1 -1
  158. package/dist/components/kol-alert.js +1 -1
  159. package/dist/components/kol-badge.js +1 -1
  160. package/dist/components/kol-badge.js.map +1 -1
  161. package/dist/components/kol-breadcrumb.js +1 -1
  162. package/dist/components/kol-button-link.js +1 -1
  163. package/dist/components/kol-button.js +1 -1
  164. package/dist/components/kol-card-wc.js +1 -1
  165. package/dist/components/kol-card-wc.js.map +1 -1
  166. package/dist/components/kol-card.js +1 -1
  167. package/dist/components/kol-combobox.js +1 -1
  168. package/dist/components/kol-combobox.js.map +1 -1
  169. package/dist/components/kol-details.js +1 -1
  170. package/dist/components/kol-details.js.map +1 -1
  171. package/dist/components/kol-dialog-wc.js +1 -1
  172. package/dist/components/kol-dialog-wc.js.map +1 -1
  173. package/dist/components/kol-dialog.js +1 -1
  174. package/dist/components/kol-drawer.js +1 -1
  175. package/dist/components/kol-drawer.js.map +1 -1
  176. package/dist/components/kol-form.js +1 -1
  177. package/dist/components/kol-icon.js +1 -1
  178. package/dist/components/kol-input-checkbox.js +1 -1
  179. package/dist/components/kol-input-checkbox.js.map +1 -1
  180. package/dist/components/kol-input-color.js +1 -1
  181. package/dist/components/kol-input-color.js.map +1 -1
  182. package/dist/components/kol-input-date.js +1 -1
  183. package/dist/components/kol-input-date.js.map +1 -1
  184. package/dist/components/kol-input-email.js +1 -1
  185. package/dist/components/kol-input-email.js.map +1 -1
  186. package/dist/components/kol-input-file.js +1 -1
  187. package/dist/components/kol-input-file.js.map +1 -1
  188. package/dist/components/kol-input-number.js +1 -1
  189. package/dist/components/kol-input-number.js.map +1 -1
  190. package/dist/components/kol-input-password.js +1 -1
  191. package/dist/components/kol-input-password.js.map +1 -1
  192. package/dist/components/kol-input-radio.js +1 -1
  193. package/dist/components/kol-input-radio.js.map +1 -1
  194. package/dist/components/kol-input-range.js +1 -1
  195. package/dist/components/kol-input-range.js.map +1 -1
  196. package/dist/components/kol-input-text.js +1 -1
  197. package/dist/components/kol-input-text.js.map +1 -1
  198. package/dist/components/kol-link-button.js +1 -1
  199. package/dist/components/kol-link.js +1 -1
  200. package/dist/components/kol-modal.js +1 -1
  201. package/dist/components/kol-nav.js +1 -1
  202. package/dist/components/kol-nav.js.map +1 -1
  203. package/dist/components/kol-pagination.js +1 -1
  204. package/dist/components/kol-popover-button-wc.js +1 -1
  205. package/dist/components/kol-popover-button-wc.js.map +1 -1
  206. package/dist/components/kol-popover-button.js +1 -1
  207. package/dist/components/kol-select-wc.js +1 -1
  208. package/dist/components/kol-select-wc.js.map +1 -1
  209. package/dist/components/kol-select.js +1 -1
  210. package/dist/components/kol-select.js.map +1 -1
  211. package/dist/components/kol-single-select.js +1 -1
  212. package/dist/components/kol-single-select.js.map +1 -1
  213. package/dist/components/kol-skip-nav.js +1 -1
  214. package/dist/components/kol-split-button.js +1 -1
  215. package/dist/components/kol-table-stateful.js +1 -1
  216. package/dist/components/kol-table-stateless.js +1 -1
  217. package/dist/components/kol-tabs.js +1 -1
  218. package/dist/components/kol-textarea.js +1 -1
  219. package/dist/components/kol-textarea.js.map +1 -1
  220. package/dist/components/kol-toast-container.js +1 -1
  221. package/dist/components/kol-toast-container.js.map +1 -1
  222. package/dist/components/kol-toolbar.js +1 -1
  223. package/dist/components/kol-tree-item-wc.js +1 -1
  224. package/dist/components/kol-tree-item-wc.js.map +1 -1
  225. package/dist/components/kol-tree-item.js +1 -1
  226. package/dist/esm/{Alert-B7pICBxZ.js → Alert-CBfalBKc.js} +1 -1
  227. package/dist/esm/{Alert-B7pICBxZ.js.map → Alert-CBfalBKc.js.map} +1 -1
  228. package/dist/esm/Collapsible-SP4og2Wc.js +4 -0
  229. package/dist/esm/Collapsible-SP4og2Wc.js.map +1 -0
  230. package/dist/esm/{CustomSuggestionsOptionsGroup-CA44Wflr.js → CustomSuggestionsOptionsGroup-B6wXJlus.js} +1 -1
  231. package/dist/esm/{CustomSuggestionsOptionsGroup-CA44Wflr.js.map → CustomSuggestionsOptionsGroup-B6wXJlus.js.map} +1 -1
  232. package/dist/esm/FieldControlStateWrapper-jOEU9Coh.js +4 -0
  233. package/dist/esm/FieldControlStateWrapper-jOEU9Coh.js.map +1 -0
  234. package/dist/esm/FormFieldStateWrapper-BqmPPhZi.js +4 -0
  235. package/dist/esm/FormFieldStateWrapper-BqmPPhZi.js.map +1 -0
  236. package/dist/esm/{Heading-DnMesNNl.js → Heading-r-gS-c4n.js} +1 -1
  237. package/dist/{kolibri/Heading-DnMesNNl.js.map → esm/Heading-r-gS-c4n.js.map} +1 -1
  238. package/dist/esm/Input-eVFnypVp.js +4 -0
  239. package/dist/esm/Input-eVFnypVp.js.map +1 -0
  240. package/dist/esm/InputStateWrapper-B46Lksm_.js +4 -0
  241. package/dist/esm/InputStateWrapper-B46Lksm_.js.map +1 -0
  242. package/dist/esm/{app-globals-CQn3EaNv.js → app-globals-Dahy0ECI.js} +1 -1
  243. package/dist/esm/{app-globals-CQn3EaNv.js.map → app-globals-Dahy0ECI.js.map} +1 -1
  244. package/dist/esm/{component-DXb4lDOy.js → component-B1PVR7eV.js} +1 -1
  245. package/dist/esm/{component-DXb4lDOy.js.map → component-B1PVR7eV.js.map} +1 -1
  246. package/dist/esm/{component-DwXtbDH3.js → component-DwmUGvyq.js} +1 -1
  247. package/dist/esm/{component-DwXtbDH3.js.map → component-DwmUGvyq.js.map} +1 -1
  248. package/dist/esm/component-vV-KhMHx.js +4 -0
  249. package/dist/esm/{component-BicG3I3R.js.map → component-vV-KhMHx.js.map} +1 -1
  250. package/dist/esm/{controller-D4x9c0xc.js → controller-7g2YUwGs.js} +1 -1
  251. package/dist/{kolibri/controller-D4x9c0xc.js.map → esm/controller-7g2YUwGs.js.map} +1 -1
  252. package/dist/esm/controller-DD94BGwW.js +4 -0
  253. package/dist/esm/controller-DD94BGwW.js.map +1 -0
  254. package/dist/esm/controller-DIApwfoP.js +4 -0
  255. package/dist/esm/{controller-Dx0Oz1O1.js.map → controller-DIApwfoP.js.map} +1 -1
  256. package/dist/esm/{controller-DvDdCbct.js → controller-DYOg9QJk.js} +1 -1
  257. package/dist/esm/{controller-DvDdCbct.js.map → controller-DYOg9QJk.js.map} +1 -1
  258. package/dist/esm/{controller-icon-B9ROZI82.js → controller-icon-CakLg0RB.js} +1 -1
  259. package/dist/esm/{controller-icon-B9ROZI82.js.map → controller-icon-CakLg0RB.js.map} +1 -1
  260. package/dist/esm/{dev.utils-Kck8qmtF.js → dev.utils-DhW8_Z_C.js} +1 -1
  261. package/dist/esm/dev.utils-DhW8_Z_C.js.map +1 -0
  262. package/dist/esm/{devtools-CI9oUhkv.js → devtools-CR7g9ZGj.js} +1 -1
  263. package/dist/{kolibri/devtools-CI9oUhkv.js.map → esm/devtools-CR7g9ZGj.js.map} +1 -1
  264. package/dist/esm/{index-CDDnZoJp.js → index-N6JGlBHl.js} +1 -1
  265. package/dist/{kolibri/index-CDDnZoJp.js.map → esm/index-N6JGlBHl.js.map} +1 -1
  266. package/dist/esm/kol-abbr.entry.js +1 -1
  267. package/dist/esm/kol-accordion.entry.js +1 -1
  268. package/dist/esm/kol-accordion.entry.js.map +1 -1
  269. package/dist/esm/kol-alert-wc.entry.js +1 -1
  270. package/dist/esm/kol-alert.entry.js +1 -1
  271. package/dist/esm/kol-avatar.entry.js +1 -1
  272. package/dist/esm/kol-badge.entry.js +1 -1
  273. package/dist/esm/kol-badge.entry.js.map +1 -1
  274. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  275. package/dist/esm/kol-button-link.entry.js +1 -1
  276. package/dist/esm/kol-button-wc.entry.js +1 -1
  277. package/dist/esm/kol-button.entry.js +1 -1
  278. package/dist/esm/kol-card-wc.entry.js +1 -1
  279. package/dist/esm/kol-card-wc.entry.js.map +1 -1
  280. package/dist/esm/kol-card.entry.js +1 -1
  281. package/dist/esm/kol-click-button.entry.js +1 -1
  282. package/dist/esm/kol-combobox.entry.js +1 -1
  283. package/dist/esm/kol-combobox.entry.js.map +1 -1
  284. package/dist/esm/kol-details.entry.js +1 -1
  285. package/dist/esm/kol-details.entry.js.map +1 -1
  286. package/dist/esm/kol-dialog-wc.entry.js +1 -1
  287. package/dist/esm/kol-dialog-wc.entry.js.map +1 -1
  288. package/dist/esm/kol-dialog.entry.js +1 -1
  289. package/dist/esm/kol-drawer.entry.js +1 -1
  290. package/dist/esm/kol-drawer.entry.js.map +1 -1
  291. package/dist/esm/kol-form.entry.js +1 -1
  292. package/dist/esm/kol-heading.entry.js +1 -1
  293. package/dist/esm/kol-icon.entry.js +1 -1
  294. package/dist/esm/kol-image.entry.js +1 -1
  295. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  296. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  297. package/dist/esm/kol-input-color.entry.js +1 -1
  298. package/dist/esm/kol-input-color.entry.js.map +1 -1
  299. package/dist/esm/kol-input-date.entry.js +1 -1
  300. package/dist/esm/kol-input-date.entry.js.map +1 -1
  301. package/dist/esm/kol-input-email.entry.js +1 -1
  302. package/dist/esm/kol-input-email.entry.js.map +1 -1
  303. package/dist/esm/kol-input-file.entry.js +1 -1
  304. package/dist/esm/kol-input-file.entry.js.map +1 -1
  305. package/dist/esm/kol-input-number.entry.js +1 -1
  306. package/dist/esm/kol-input-number.entry.js.map +1 -1
  307. package/dist/esm/kol-input-password.entry.js +1 -1
  308. package/dist/esm/kol-input-password.entry.js.map +1 -1
  309. package/dist/esm/kol-input-radio.entry.js +1 -1
  310. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  311. package/dist/esm/kol-input-range.entry.js +1 -1
  312. package/dist/esm/kol-input-range.entry.js.map +1 -1
  313. package/dist/esm/kol-input-text.entry.js +1 -1
  314. package/dist/esm/kol-input-text.entry.js.map +1 -1
  315. package/dist/esm/kol-kolibri.entry.js +1 -1
  316. package/dist/esm/kol-link-button.entry.js +1 -1
  317. package/dist/esm/kol-link-wc.entry.js +1 -1
  318. package/dist/esm/kol-link.entry.js +1 -1
  319. package/dist/esm/kol-meter.entry.js +1 -1
  320. package/dist/esm/kol-modal.entry.js +1 -1
  321. package/dist/esm/kol-nav.entry.js +1 -1
  322. package/dist/esm/kol-nav.entry.js.map +1 -1
  323. package/dist/esm/kol-pagination-wc.entry.js +1 -1
  324. package/dist/esm/kol-pagination.entry.js +1 -1
  325. package/dist/esm/kol-popover-button-wc.entry.js +1 -1
  326. package/dist/esm/kol-popover-button-wc.entry.js.map +1 -1
  327. package/dist/esm/kol-popover-button.entry.js +1 -1
  328. package/dist/esm/kol-progress.entry.js +1 -1
  329. package/dist/esm/kol-quote.entry.js +1 -1
  330. package/dist/esm/kol-select-wc.entry.js +1 -1
  331. package/dist/esm/kol-select-wc.entry.js.map +1 -1
  332. package/dist/esm/kol-select.entry.js +1 -1
  333. package/dist/esm/kol-select.entry.js.map +1 -1
  334. package/dist/esm/kol-single-select.entry.js +1 -1
  335. package/dist/esm/kol-single-select.entry.js.map +1 -1
  336. package/dist/esm/kol-skeleton.entry.js +1 -1
  337. package/dist/esm/kol-skip-nav.entry.js +1 -1
  338. package/dist/esm/kol-spin.entry.js +1 -1
  339. package/dist/esm/kol-split-button.entry.js +1 -1
  340. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  341. package/dist/esm/kol-table-stateful.entry.js +1 -1
  342. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  343. package/dist/esm/kol-table-stateless.entry.js +1 -1
  344. package/dist/esm/kol-tabs.entry.js +1 -1
  345. package/dist/esm/kol-textarea.entry.js +1 -1
  346. package/dist/esm/kol-textarea.entry.js.map +1 -1
  347. package/dist/esm/kol-toast-container.entry.js +1 -1
  348. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  349. package/dist/esm/kol-toolbar.entry.js +1 -1
  350. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  351. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  352. package/dist/esm/kol-tree-item-wc.entry.js.map +1 -1
  353. package/dist/esm/kol-tree-item.entry.js +1 -1
  354. package/dist/esm/kol-tree-wc.entry.js +1 -1
  355. package/dist/esm/kol-tree.entry.js +1 -1
  356. package/dist/esm/kol-version.entry.js +1 -1
  357. package/dist/esm/kolibri.js +1 -1
  358. package/dist/esm/loader.js +1 -1
  359. package/dist/esm/test-component.entry.js +1 -1
  360. package/dist/kolibri/{Alert-B7pICBxZ.js → Alert-CBfalBKc.js} +1 -1
  361. package/dist/kolibri/{Alert-B7pICBxZ.js.map → Alert-CBfalBKc.js.map} +1 -1
  362. package/dist/kolibri/Collapsible-SP4og2Wc.js +4 -0
  363. package/dist/kolibri/Collapsible-SP4og2Wc.js.map +1 -0
  364. package/dist/kolibri/CustomSuggestionsOptionsGroup-B6wXJlus.js +4 -0
  365. package/dist/kolibri/{CustomSuggestionsOptionsGroup-CA44Wflr.js.map → CustomSuggestionsOptionsGroup-B6wXJlus.js.map} +1 -1
  366. package/dist/kolibri/FieldControlStateWrapper-jOEU9Coh.js +4 -0
  367. package/dist/kolibri/FieldControlStateWrapper-jOEU9Coh.js.map +1 -0
  368. package/dist/kolibri/FormFieldStateWrapper-BqmPPhZi.js +4 -0
  369. package/dist/kolibri/FormFieldStateWrapper-BqmPPhZi.js.map +1 -0
  370. package/dist/kolibri/{Heading-DnMesNNl.js → Heading-r-gS-c4n.js} +1 -1
  371. package/dist/{esm/Heading-DnMesNNl.js.map → kolibri/Heading-r-gS-c4n.js.map} +1 -1
  372. package/dist/kolibri/Input-eVFnypVp.js +4 -0
  373. package/dist/kolibri/Input-eVFnypVp.js.map +1 -0
  374. package/dist/kolibri/InputStateWrapper-B46Lksm_.js +4 -0
  375. package/dist/kolibri/InputStateWrapper-B46Lksm_.js.map +1 -0
  376. package/dist/kolibri/{app-globals-CQn3EaNv.js → app-globals-Dahy0ECI.js} +1 -1
  377. package/dist/kolibri/{app-globals-CQn3EaNv.js.map → app-globals-Dahy0ECI.js.map} +1 -1
  378. package/dist/kolibri/component-B1PVR7eV.js +4 -0
  379. package/dist/kolibri/{component-DXb4lDOy.js.map → component-B1PVR7eV.js.map} +1 -1
  380. package/dist/kolibri/{component-DwXtbDH3.js → component-DwmUGvyq.js} +1 -1
  381. package/dist/kolibri/{component-DwXtbDH3.js.map → component-DwmUGvyq.js.map} +1 -1
  382. package/dist/kolibri/component-vV-KhMHx.js +4 -0
  383. package/dist/kolibri/{component-BicG3I3R.js.map → component-vV-KhMHx.js.map} +1 -1
  384. package/dist/kolibri/{controller-D4x9c0xc.js → controller-7g2YUwGs.js} +1 -1
  385. package/dist/{esm/controller-D4x9c0xc.js.map → kolibri/controller-7g2YUwGs.js.map} +1 -1
  386. package/dist/kolibri/controller-DD94BGwW.js +4 -0
  387. package/dist/kolibri/controller-DD94BGwW.js.map +1 -0
  388. package/dist/kolibri/{controller-Dx0Oz1O1.js → controller-DIApwfoP.js} +1 -1
  389. package/dist/kolibri/{controller-Dx0Oz1O1.js.map → controller-DIApwfoP.js.map} +1 -1
  390. package/dist/kolibri/{controller-DvDdCbct.js → controller-DYOg9QJk.js} +1 -1
  391. package/dist/kolibri/{controller-DvDdCbct.js.map → controller-DYOg9QJk.js.map} +1 -1
  392. package/dist/kolibri/{controller-icon-B9ROZI82.js → controller-icon-CakLg0RB.js} +1 -1
  393. package/dist/kolibri/{controller-icon-B9ROZI82.js.map → controller-icon-CakLg0RB.js.map} +1 -1
  394. package/dist/kolibri/dev.utils-DhW8_Z_C.js +4 -0
  395. package/dist/kolibri/dev.utils-DhW8_Z_C.js.map +1 -0
  396. package/dist/kolibri/{devtools-CI9oUhkv.js → devtools-CR7g9ZGj.js} +1 -1
  397. package/dist/{esm/devtools-CI9oUhkv.js.map → kolibri/devtools-CR7g9ZGj.js.map} +1 -1
  398. package/dist/kolibri/{index-CDDnZoJp.js → index-N6JGlBHl.js} +1 -1
  399. package/dist/{esm/index-CDDnZoJp.js.map → kolibri/index-N6JGlBHl.js.map} +1 -1
  400. package/dist/kolibri/kol-abbr.entry.js +1 -1
  401. package/dist/kolibri/kol-accordion.entry.esm.js.map +1 -1
  402. package/dist/kolibri/kol-accordion.entry.js +1 -1
  403. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  404. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  405. package/dist/kolibri/kol-alert.entry.js +1 -1
  406. package/dist/kolibri/kol-avatar.entry.js +1 -1
  407. package/dist/kolibri/kol-badge.entry.esm.js.map +1 -1
  408. package/dist/kolibri/kol-badge.entry.js +1 -1
  409. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  410. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  411. package/dist/kolibri/kol-button-link.entry.js +1 -1
  412. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  413. package/dist/kolibri/kol-button.entry.js +1 -1
  414. package/dist/kolibri/kol-card-wc.entry.esm.js.map +1 -1
  415. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  416. package/dist/kolibri/kol-card-wc.entry.js.map +1 -1
  417. package/dist/kolibri/kol-card.entry.js +1 -1
  418. package/dist/kolibri/kol-click-button.entry.js +1 -1
  419. package/dist/kolibri/kol-combobox.entry.esm.js.map +1 -1
  420. package/dist/kolibri/kol-combobox.entry.js +1 -1
  421. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  422. package/dist/kolibri/kol-details.entry.esm.js.map +1 -1
  423. package/dist/kolibri/kol-details.entry.js +1 -1
  424. package/dist/kolibri/kol-details.entry.js.map +1 -1
  425. package/dist/kolibri/kol-dialog-wc.entry.esm.js.map +1 -1
  426. package/dist/kolibri/kol-dialog-wc.entry.js +1 -1
  427. package/dist/kolibri/kol-dialog-wc.entry.js.map +1 -1
  428. package/dist/kolibri/kol-dialog.entry.js +1 -1
  429. package/dist/kolibri/kol-drawer.entry.esm.js.map +1 -1
  430. package/dist/kolibri/kol-drawer.entry.js +1 -1
  431. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  432. package/dist/kolibri/kol-form.entry.js +1 -1
  433. package/dist/kolibri/kol-heading.entry.js +1 -1
  434. package/dist/kolibri/kol-icon.entry.js +1 -1
  435. package/dist/kolibri/kol-image.entry.js +1 -1
  436. package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +1 -1
  437. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  438. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  439. package/dist/kolibri/kol-input-color.entry.esm.js.map +1 -1
  440. package/dist/kolibri/kol-input-color.entry.js +1 -1
  441. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  442. package/dist/kolibri/kol-input-date.entry.esm.js.map +1 -1
  443. package/dist/kolibri/kol-input-date.entry.js +1 -1
  444. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  445. package/dist/kolibri/kol-input-email.entry.esm.js.map +1 -1
  446. package/dist/kolibri/kol-input-email.entry.js +1 -1
  447. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  448. package/dist/kolibri/kol-input-file.entry.esm.js.map +1 -1
  449. package/dist/kolibri/kol-input-file.entry.js +1 -1
  450. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  451. package/dist/kolibri/kol-input-number.entry.esm.js.map +1 -1
  452. package/dist/kolibri/kol-input-number.entry.js +1 -1
  453. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  454. package/dist/kolibri/kol-input-password.entry.esm.js.map +1 -1
  455. package/dist/kolibri/kol-input-password.entry.js +1 -1
  456. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  457. package/dist/kolibri/kol-input-radio.entry.esm.js.map +1 -1
  458. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  459. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  460. package/dist/kolibri/kol-input-range.entry.esm.js.map +1 -1
  461. package/dist/kolibri/kol-input-range.entry.js +1 -1
  462. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  463. package/dist/kolibri/kol-input-text.entry.esm.js.map +1 -1
  464. package/dist/kolibri/kol-input-text.entry.js +1 -1
  465. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  466. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  467. package/dist/kolibri/kol-link-button.entry.js +1 -1
  468. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  469. package/dist/kolibri/kol-link.entry.js +1 -1
  470. package/dist/kolibri/kol-meter.entry.js +1 -1
  471. package/dist/kolibri/kol-modal.entry.js +1 -1
  472. package/dist/kolibri/kol-nav.entry.esm.js.map +1 -1
  473. package/dist/kolibri/kol-nav.entry.js +1 -1
  474. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  475. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  476. package/dist/kolibri/kol-pagination.entry.js +1 -1
  477. package/dist/kolibri/kol-popover-button-wc.entry.esm.js.map +1 -1
  478. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  479. package/dist/kolibri/kol-popover-button-wc.entry.js.map +1 -1
  480. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  481. package/dist/kolibri/kol-progress.entry.js +1 -1
  482. package/dist/kolibri/kol-quote.entry.js +1 -1
  483. package/dist/kolibri/kol-select-wc.entry.esm.js.map +1 -1
  484. package/dist/kolibri/kol-select-wc.entry.js +1 -1
  485. package/dist/kolibri/kol-select-wc.entry.js.map +1 -1
  486. package/dist/kolibri/kol-select.entry.esm.js.map +1 -1
  487. package/dist/kolibri/kol-select.entry.js +1 -1
  488. package/dist/kolibri/kol-select.entry.js.map +1 -1
  489. package/dist/kolibri/kol-single-select.entry.esm.js.map +1 -1
  490. package/dist/kolibri/kol-single-select.entry.js +1 -1
  491. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  492. package/dist/kolibri/kol-skeleton.entry.js +1 -1
  493. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  494. package/dist/kolibri/kol-spin.entry.js +1 -1
  495. package/dist/kolibri/kol-split-button.entry.js +1 -1
  496. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  497. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  498. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  499. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  500. package/dist/kolibri/kol-tabs.entry.js +1 -1
  501. package/dist/kolibri/kol-textarea.entry.esm.js.map +1 -1
  502. package/dist/kolibri/kol-textarea.entry.js +1 -1
  503. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  504. package/dist/kolibri/kol-toast-container.entry.esm.js.map +1 -1
  505. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  506. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  507. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  508. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  509. package/dist/kolibri/kol-tree-item-wc.entry.esm.js.map +1 -1
  510. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  511. package/dist/kolibri/kol-tree-item-wc.entry.js.map +1 -1
  512. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  513. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  514. package/dist/kolibri/kol-tree.entry.js +1 -1
  515. package/dist/kolibri/kol-version.entry.js +1 -1
  516. package/dist/kolibri/kolibri.esm.js +1 -1
  517. package/dist/kolibri/test-component.entry.js +1 -1
  518. package/dist/types/components/@deprecated/input/controller.d.ts +2 -1
  519. package/dist/types/components/@deprecated/input/types.d.ts +2 -2
  520. package/dist/types/components/accordion/shadow.d.ts +1 -1
  521. package/dist/types/components/combobox/shadow.d.ts +3 -1
  522. package/dist/types/components/details/shadow.d.ts +1 -1
  523. package/dist/types/components/input-color/shadow.d.ts +3 -1
  524. package/dist/types/components/input-date/shadow.d.ts +3 -1
  525. package/dist/types/components/input-email/shadow.d.ts +3 -1
  526. package/dist/types/components/input-file/shadow.d.ts +3 -1
  527. package/dist/types/components/input-number/shadow.d.ts +3 -1
  528. package/dist/types/components/input-password/controller.d.ts +4 -3
  529. package/dist/types/components/input-password/shadow.d.ts +5 -4
  530. package/dist/types/components/input-radio/shadow.d.ts +3 -1
  531. package/dist/types/components/input-range/shadow.d.ts +3 -1
  532. package/dist/types/components/input-text/shadow.d.ts +3 -1
  533. package/dist/types/components/select/component.d.ts +3 -1
  534. package/dist/types/components/select/shadow.d.ts +2 -1
  535. package/dist/types/components/single-select/shadow.d.ts +3 -1
  536. package/dist/types/components/textarea/shadow.d.ts +3 -1
  537. package/dist/types/components/tree-item/shadow.d.ts +1 -1
  538. package/dist/types/components.d.ts +121 -11
  539. package/dist/types/e2e/utils/setContentWithRetry.d.ts +3 -0
  540. package/dist/types/functional-components/FormField/FormField.d.ts +2 -1
  541. package/dist/types/schema/components/combobox.d.ts +3 -3
  542. package/dist/types/schema/components/input-color.d.ts +3 -3
  543. package/dist/types/schema/components/input-date.d.ts +3 -3
  544. package/dist/types/schema/components/input-email.d.ts +3 -3
  545. package/dist/types/schema/components/input-file.d.ts +3 -3
  546. package/dist/types/schema/components/input-number.d.ts +3 -3
  547. package/dist/types/schema/components/input-password.d.ts +4 -4
  548. package/dist/types/schema/components/input-radio.d.ts +3 -3
  549. package/dist/types/schema/components/input-range.d.ts +3 -3
  550. package/dist/types/schema/components/input-text.d.ts +3 -3
  551. package/dist/types/schema/components/select.d.ts +3 -3
  552. package/dist/types/schema/components/single-select.d.ts +3 -3
  553. package/dist/types/schema/components/textarea.d.ts +3 -3
  554. package/dist/types/schema/props/index.d.ts +1 -1
  555. package/dist/types/schema/props/visibility-toggle.d.ts +7 -0
  556. package/dist/types/utils/dev.utils.d.ts +2 -0
  557. package/doc/combobox.md +1 -0
  558. package/doc/input-color.md +1 -0
  559. package/doc/input-date.md +1 -0
  560. package/doc/input-email.md +1 -0
  561. package/doc/input-file.md +1 -0
  562. package/doc/input-number.md +1 -0
  563. package/doc/input-password.md +2 -1
  564. package/doc/input-radio.md +1 -0
  565. package/doc/input-range.md +1 -0
  566. package/doc/input-text.md +1 -0
  567. package/doc/select.md +1 -0
  568. package/doc/single-select.md +1 -0
  569. package/doc/textarea.md +1 -0
  570. package/doc/tree-item.md +2 -2
  571. package/package.json +5 -5
  572. package/vscode-custom-data.json +53 -9
  573. package/dist/cjs/Collapsible-CTW9lwpr.js +0 -4
  574. package/dist/cjs/Collapsible-CTW9lwpr.js.map +0 -1
  575. package/dist/cjs/FieldControlStateWrapper-DbXc2aZ3.js +0 -4
  576. package/dist/cjs/FieldControlStateWrapper-DbXc2aZ3.js.map +0 -1
  577. package/dist/cjs/FormFieldStateWrapper-D7N3J8IX.js +0 -4
  578. package/dist/cjs/FormFieldStateWrapper-D7N3J8IX.js.map +0 -1
  579. package/dist/cjs/Input-BxRbkUZf.js +0 -4
  580. package/dist/cjs/Input-BxRbkUZf.js.map +0 -1
  581. package/dist/cjs/InputStateWrapper-B5FiQrcG.js +0 -4
  582. package/dist/cjs/InputStateWrapper-B5FiQrcG.js.map +0 -1
  583. package/dist/cjs/controller-BtlC4sIj.js +0 -4
  584. package/dist/cjs/controller-BtlC4sIj.js.map +0 -1
  585. package/dist/cjs/dev.utils-C6aqolAb.js.map +0 -1
  586. package/dist/esm/Collapsible-BGo9N7tx.js +0 -4
  587. package/dist/esm/Collapsible-BGo9N7tx.js.map +0 -1
  588. package/dist/esm/FieldControlStateWrapper-XvIryGas.js +0 -4
  589. package/dist/esm/FieldControlStateWrapper-XvIryGas.js.map +0 -1
  590. package/dist/esm/FormFieldStateWrapper-205M-gUl.js +0 -4
  591. package/dist/esm/FormFieldStateWrapper-205M-gUl.js.map +0 -1
  592. package/dist/esm/Input-CN9ebZK8.js +0 -4
  593. package/dist/esm/Input-CN9ebZK8.js.map +0 -1
  594. package/dist/esm/InputStateWrapper-E_UT1PcG.js +0 -4
  595. package/dist/esm/InputStateWrapper-E_UT1PcG.js.map +0 -1
  596. package/dist/esm/component-BicG3I3R.js +0 -4
  597. package/dist/esm/controller-BGIZRLE7.js +0 -4
  598. package/dist/esm/controller-BGIZRLE7.js.map +0 -1
  599. package/dist/esm/controller-Dx0Oz1O1.js +0 -4
  600. package/dist/kolibri/Collapsible-BGo9N7tx.js +0 -4
  601. package/dist/kolibri/Collapsible-BGo9N7tx.js.map +0 -1
  602. package/dist/kolibri/CustomSuggestionsOptionsGroup-CA44Wflr.js +0 -4
  603. package/dist/kolibri/FieldControlStateWrapper-XvIryGas.js +0 -4
  604. package/dist/kolibri/FieldControlStateWrapper-XvIryGas.js.map +0 -1
  605. package/dist/kolibri/FormFieldStateWrapper-205M-gUl.js +0 -4
  606. package/dist/kolibri/FormFieldStateWrapper-205M-gUl.js.map +0 -1
  607. package/dist/kolibri/Input-CN9ebZK8.js +0 -4
  608. package/dist/kolibri/Input-CN9ebZK8.js.map +0 -1
  609. package/dist/kolibri/InputStateWrapper-E_UT1PcG.js +0 -4
  610. package/dist/kolibri/InputStateWrapper-E_UT1PcG.js.map +0 -1
  611. package/dist/kolibri/component-BicG3I3R.js +0 -4
  612. package/dist/kolibri/component-DXb4lDOy.js +0 -4
  613. package/dist/kolibri/controller-BGIZRLE7.js +0 -4
  614. package/dist/kolibri/controller-BGIZRLE7.js.map +0 -1
  615. package/dist/kolibri/dev.utils-Kck8qmtF.js +0 -4
  616. package/dist/kolibri/dev.utils-Kck8qmtF.js.map +0 -1
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-C24UiEit.js"),componentNames=require("./component-names-5KS_pYRF.js"),common=require("./common-DPb6NWR4.js"),align=require("./align-B8NMKvjk.js"),hasCloser=require("./has-closer-DdfOvOk6.js"),label=require("./label-8vcJJEVI.js"),open=require("./open-D-HUKrqZ.js"),clsx=require("./clsx-Bm_HQUnh.js"),dev_utils=require("./dev.utils-C6aqolAb.js"),events=require("./events-Jc2wxPjR.js"),tooltipOpenTracking=require("./tooltip-open-tracking-Ba0udJRU.js"),validation=require("./validation-4QVpAFd9.js");require("./level-DmIt1w-r.js"),require("./normalizers-BCLslVaT.js"),require("./_Uint8Array-BAQUGozM.js"),require("./isArray-BOIOdEQh.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: white;\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 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=1779456138767"); /* IE9*/\n src: url("kolicons.eot?t=1779456138767#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1779456138767") format("woff2"), url("kolicons.woff?t=1779456138767") format("woff"), url("kolicons.ttf?t=1779456138767") format("truetype"), url("kolicons.svg?t=1779456138767#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\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 .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\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: black;\n background-color: white;\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: black;\n background-color: white;\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 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){index.registerInstance(this,n),this.cardHeadingId=dev_utils.nonce(),this.isModal=!0,this._cardOn={onClose:()=>{this.close()}},this.getWrapperRef=n=>this.dialogWrapperElement=n,this.getRef=n=>{this.dialogElement=n,setTimeout(()=>{this.openOrCloseBasedOnState()})},this._hasCloser=!1,this._level=0,this.state={_label:"",_open:!1,_align:"left"},this.handleCancelEvent=n=>{var e,t;tooltipOpenTracking.handleCancelOverlay(n),n.defaultPrevented||(null===(t=null===(e=this.state._on)||void 0===e?void 0:e.onCancel)||void 0===t||t.call(e,n),n.defaultPrevented||this.host&&!events.dispatchDomEvent(this.host,events.KolEvent.cancel)&&n.preventDefault())},this.handleClose=()=>{(async()=>{await this.close(),this.handleCloseDialog()})()},this.handleAnimationEnd=n=>{var e,t;n.animationName.includes("slideOut")&&(null===(t=null===(e=this.dialogElement)||void 0===e?void 0:e.close)||void 0===t||t.call(e))}}async show(n=!1){var e,t,o,i,l,a,r;(null===(e=this.dialogElement)||void 0===e?void 0:e.open)||(this.isModal=n,this.state=Object.assign(Object.assign({},this.state),{_open:!0}),n?null===(o=null===(t=this.dialogElement)||void 0===t?void 0:t.showModal)||void 0===o||o.call(t):null===(l=null===(i=this.dialogElement)||void 0===i?void 0:i.show)||void 0===l||l.call(i),null===(r=null===(a=this._on)||void 0===a?void 0:a.onToggle)||void 0===r||r.call(a,!0),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.toggle))}showModal(){return this.show(!0)}open(){return this.show(!1)}async close(){var n,e;this.state=Object.assign(Object.assign({},this.state),{_open:!1});const t=this.dialogWrapperElement;t&&"none"===window.getComputedStyle(t).animationName&&(null===(e=null===(n=this.dialogElement)||void 0===n?void 0:n.close)||void 0===e||e.call(n))}renderDialogContent(){const n=this.state._align;return index.h(componentNames.KolCardWcTag,{ref:this.getWrapperRef,class:clsx.clsx("kol-drawer__wrapper",`kol-drawer__wrapper--${n}`,{"kol-drawer__wrapper--open":this.state._open,"kol-drawer__wrapper--is-closing":!1===this.state._open}),_hasCloser:this.state._hasCloser,_headingId:this.cardHeadingId,_label:this.state._label,_level:this._level,_on:this._cardOn},index.h("div",{class:"kol-drawer__content"},index.h("slot",null)))}render(){return index.h(index.Host,{key:"c4b5f094aea685774aac1e3a71230e484fb9034a",class:"kol-drawer"},index.h("dialog",{key:"8656c03540d8badaee19265d05dc2189a6d7d46e","aria-labelledby":this.cardHeadingId,"aria-modal":this.isModal?"true":"false",class:"kol-drawer__dialog",onCancel:this.handleCancelEvent,ref:this.getRef},this.renderDialogContent()))}validateLabel(n){label.validateLabel(this,n,{required:!0})}validateAlign(n){align.validateAlign(this,n)}validateHasCloser(n){hasCloser.validateHasCloser(this,n)}validateLevel(n){validation.watchHeadingLevel(this,n)}validateOpen(n){"boolean"==typeof n&&(open.validateOpen(this,n),this.dialogElement&&this.openOrCloseBasedOnState())}async openOrCloseBasedOnState(){this.state._open?await this.show(this.isModal):await this.close()}validateOn(n){if("object"==typeof n&&null!==n){const e={};"function"==typeof n.onCancel&&(e.onCancel=n.onCancel),"function"==typeof n.onClose&&(e.onClose=n.onClose),"function"==typeof n.onToggle&&(e.onToggle=n.onToggle),common.setState(this,"_on",e)}}handleCloseDialog(){var n,e,t,o;null===(e=null===(n=this._on)||void 0===n?void 0:n.onClose)||void 0===e||e.call(n),null===(o=null===(t=this._on)||void 0===t?void 0:t.onToggle)||void 0===o||o.call(t,!1),this.host&&(events.dispatchDomEvent(this.host,events.KolEvent.close),events.dispatchDomEvent(this.host,events.KolEvent.toggle))}componentDidLoad(){var n,e;null===(n=this.dialogElement)||void 0===n||n.addEventListener("animationend",this.handleAnimationEnd),null===(e=this.dialogElement)||void 0===e||e.addEventListener("close",this.handleClose)}disconnectedCallback(){var n,e;null===(n=this.dialogElement)||void 0===n||n.removeEventListener("animationend",this.handleAnimationEnd),null===(e=this.dialogElement)||void 0===e||e.removeEventListener("close",this.handleClose)}componentWillLoad(){this.validateAlign(this._align),this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateOpen(this._open),this.validateLevel(this._level),this.validateOn(this._on)}get host(){return index.getElement(this)}static get watchers(){return{_label:["validateLabel"],_align:["validateAlign"],_hasCloser:["validateHasCloser"],_level:["validateLevel"],_open:["validateOpen"],_on:["validateOn"]}}};KolDrawer.style={default:defaultStyleCss},exports.kol_drawer=KolDrawer;
4
+ "use strict";var index=require("./index-DyCCobHQ.js"),componentNames=require("./component-names-5KS_pYRF.js"),common=require("./common-DPb6NWR4.js"),align=require("./align-B8NMKvjk.js"),hasCloser=require("./has-closer-DdfOvOk6.js"),label=require("./label-8vcJJEVI.js"),open=require("./open-D-HUKrqZ.js"),clsx=require("./clsx-Bm_HQUnh.js"),dev_utils=require("./dev.utils-DYrlz4G7.js"),events=require("./events-Jc2wxPjR.js"),tooltipOpenTracking=require("./tooltip-open-tracking-Ba0udJRU.js"),validation=require("./validation-4QVpAFd9.js");require("./level-DmIt1w-r.js"),require("./normalizers-BCLslVaT.js"),require("./_Uint8Array-BAQUGozM.js"),require("./isArray-BOIOdEQh.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: white;\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 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=1779833120296"); /* IE9*/\n src: url("kolicons.eot?t=1779833120296#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1779833120296") format("woff2"), url("kolicons.woff?t=1779833120296") format("woff"), url("kolicons.ttf?t=1779833120296") format("truetype"), url("kolicons.svg?t=1779833120296#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\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 .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\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: black;\n background-color: white;\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: black;\n background-color: white;\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 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){index.registerInstance(this,n),this.cardHeadingId=dev_utils.createUniqueId("drawer-heading"),this.isModal=!0,this._cardOn={onClose:()=>{this.close()}},this.getWrapperRef=n=>this.dialogWrapperElement=n,this.getRef=n=>{this.dialogElement=n,setTimeout(()=>{this.openOrCloseBasedOnState()})},this._hasCloser=!1,this._level=0,this.state={_label:"",_open:!1,_align:"left"},this.handleCancelEvent=n=>{var e,t;tooltipOpenTracking.handleCancelOverlay(n),n.defaultPrevented||(null===(t=null===(e=this.state._on)||void 0===e?void 0:e.onCancel)||void 0===t||t.call(e,n),n.defaultPrevented||this.host&&!events.dispatchDomEvent(this.host,events.KolEvent.cancel)&&n.preventDefault())},this.handleClose=()=>{(async()=>{await this.close(),this.handleCloseDialog()})()},this.handleAnimationEnd=n=>{var e,t;n.animationName.includes("slideOut")&&(null===(t=null===(e=this.dialogElement)||void 0===e?void 0:e.close)||void 0===t||t.call(e))}}async show(n=!1){var e,t,o,i,l,a,r;(null===(e=this.dialogElement)||void 0===e?void 0:e.open)||(this.isModal=n,this.state=Object.assign(Object.assign({},this.state),{_open:!0}),n?null===(o=null===(t=this.dialogElement)||void 0===t?void 0:t.showModal)||void 0===o||o.call(t):null===(l=null===(i=this.dialogElement)||void 0===i?void 0:i.show)||void 0===l||l.call(i),null===(r=null===(a=this._on)||void 0===a?void 0:a.onToggle)||void 0===r||r.call(a,!0),this.host&&events.dispatchDomEvent(this.host,events.KolEvent.toggle))}showModal(){return this.show(!0)}open(){return this.show(!1)}async close(){var n,e;this.state=Object.assign(Object.assign({},this.state),{_open:!1});const t=this.dialogWrapperElement;t&&"none"===window.getComputedStyle(t).animationName&&(null===(e=null===(n=this.dialogElement)||void 0===n?void 0:n.close)||void 0===e||e.call(n))}renderDialogContent(){const n=this.state._align;return index.h(componentNames.KolCardWcTag,{ref:this.getWrapperRef,class:clsx.clsx("kol-drawer__wrapper",`kol-drawer__wrapper--${n}`,{"kol-drawer__wrapper--open":this.state._open,"kol-drawer__wrapper--is-closing":!1===this.state._open}),_hasCloser:this.state._hasCloser,_headingId:this.cardHeadingId,_label:this.state._label,_level:this._level,_on:this._cardOn},index.h("div",{class:"kol-drawer__content"},index.h("slot",null)))}render(){return index.h(index.Host,{key:"9ddd7432cb3f0a79b4020144378e951d76d6429b",class:"kol-drawer"},index.h("dialog",{key:"4187cc6a21ca4471a30f1db9f860d5a141372157","aria-labelledby":this.cardHeadingId,"aria-modal":this.isModal?"true":"false",class:"kol-drawer__dialog",onCancel:this.handleCancelEvent,ref:this.getRef},this.renderDialogContent()))}validateLabel(n){label.validateLabel(this,n,{required:!0})}validateAlign(n){align.validateAlign(this,n)}validateHasCloser(n){hasCloser.validateHasCloser(this,n)}validateLevel(n){validation.watchHeadingLevel(this,n)}validateOpen(n){"boolean"==typeof n&&(open.validateOpen(this,n),this.dialogElement&&this.openOrCloseBasedOnState())}async openOrCloseBasedOnState(){this.state._open?await this.show(this.isModal):await this.close()}validateOn(n){if("object"==typeof n&&null!==n){const e={};"function"==typeof n.onCancel&&(e.onCancel=n.onCancel),"function"==typeof n.onClose&&(e.onClose=n.onClose),"function"==typeof n.onToggle&&(e.onToggle=n.onToggle),common.setState(this,"_on",e)}}handleCloseDialog(){var n,e,t,o;null===(e=null===(n=this._on)||void 0===n?void 0:n.onClose)||void 0===e||e.call(n),null===(o=null===(t=this._on)||void 0===t?void 0:t.onToggle)||void 0===o||o.call(t,!1),this.host&&(events.dispatchDomEvent(this.host,events.KolEvent.close),events.dispatchDomEvent(this.host,events.KolEvent.toggle))}componentDidLoad(){var n,e;null===(n=this.dialogElement)||void 0===n||n.addEventListener("animationend",this.handleAnimationEnd),null===(e=this.dialogElement)||void 0===e||e.addEventListener("close",this.handleClose)}disconnectedCallback(){var n,e;null===(n=this.dialogElement)||void 0===n||n.removeEventListener("animationend",this.handleAnimationEnd),null===(e=this.dialogElement)||void 0===e||e.removeEventListener("close",this.handleClose)}componentWillLoad(){this.validateAlign(this._align),this.validateHasCloser(this._hasCloser),this.validateLabel(this._label),this.validateOpen(this._open),this.validateLevel(this._level),this.validateOn(this._on)}get host(){return index.getElement(this)}static get watchers(){return{_label:["validateLabel"],_align:["validateAlign"],_hasCloser:["validateHasCloser"],_level:["validateLevel"],_open:["validateOpen"],_on:["validateOn"]}}};KolDrawer.style={default:defaultStyleCss},exports.kol_drawer=KolDrawer;
@@ -1 +1 @@
1
- {"version":3,"file":"kol-drawer.entry.cjs.js","sources":["src/components/drawer/style.scss?tag=kol-drawer&mode=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 {\n\tAlignPropType,\n\tDrawerAPI,\n\tDrawerStates,\n\tHasCloserPropType,\n\tHeadingLevel,\n\tKoliBriModalEventCallbacks,\n\tLabelPropType,\n\tOpenPropType,\n} from '../../schema';\nimport { setState, validateAlign, validateHasCloser, validateLabel, validateOpen } from '../../schema';\nimport clsx from '../../utils/clsx';\nimport { nonce } from '../../utils/dev.utils';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\nimport { handleCancelOverlay } from '../../utils/tooltip-open-tracking';\nimport { watchHeadingLevel } from '../heading/validation';\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\tprivate readonly cardHeadingId = nonce();\n\n\t@State() private isModal: boolean = true;\n\n\t/**\n\t * Opens the drawer. Pass true to open as a modal drawer.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async show(modal: boolean = false): Promise<void> {\n\t\tif (this.dialogElement?.open) {\n\t\t\treturn;\n\t\t}\n\t\tthis.isModal = modal;\n\t\tthis.state = {\n\t\t\t...this.state,\n\t\t\t_open: true,\n\t\t};\n\t\tif (modal) {\n\t\t\tthis.dialogElement?.showModal?.();\n\t\t} else {\n\t\t\tthis.dialogElement?.show?.();\n\t\t}\n\t\tthis._on?.onToggle?.(true);\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.toggle);\n\t\t}\n\t}\n\n\t/**\n\t * Opens the drawer as a modal.\n\t */\n\t@Method()\n\tpublic showModal(): Promise<void> {\n\t\treturn this.show(true);\n\t}\n\n\t/**\n\t * Opens the drawer.\n\t * @deprecated Use show() or showModal() instead.\n\t */\n\t@Method()\n\tpublic open(): Promise<void> {\n\t\treturn this.show(false);\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\tpublic async close(): Promise<void> {\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) {\n\t\t\treturn;\n\t\t}\n\t\tif (window.getComputedStyle(wrapper).animationName === 'none') {\n\t\t\tthis.dialogElement?.close?.();\n\t\t}\n\t}\n\n\tprivate readonly _cardOn = { onClose: () => void this.close() };\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_hasCloser={this.state._hasCloser}\n\t\t\t\t_headingId={this.cardHeadingId}\n\t\t\t\t_label={this.state._label}\n\t\t\t\t_level={this._level}\n\t\t\t\t_on={this._cardOn}\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\n\t\t\t\t\taria-labelledby={this.cardHeadingId}\n\t\t\t\t\taria-modal={this.isModal ? 'true' : 'false'}\n\t\t\t\t\tclass=\"kol-drawer__dialog\"\n\t\t\t\t\tonCancel={this.handleCancelEvent}\n\t\t\t\t\tref={this.getRef}\n\t\t\t\t>\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 * 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 * 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('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(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.show(this.isModal);\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.onCancel === 'function') {\n\t\t\t\tcallbacks.onCancel = value.onCancel;\n\t\t\t}\n\t\t\tif (typeof value.onClose === 'function') {\n\t\t\t\tcallbacks.onClose = value.onClose;\n\t\t\t}\n\t\t\tif (typeof value.onToggle === 'function') {\n\t\t\t\tcallbacks.onToggle = value.onToggle;\n\t\t\t}\n\t\t\tsetState<KoliBriModalEventCallbacks>(this, '_on', callbacks);\n\t\t}\n\t}\n\n\tprivate handleCancelEvent = (event: Event): void => {\n\t\thandleCancelOverlay(event);\n\t\tif (event.defaultPrevented) return;\n\n\t\tthis.state._on?.onCancel?.(event);\n\t\tif (event.defaultPrevented) return;\n\n\t\tif (this.host && !dispatchDomEvent(this.host, KolEvent.cancel)) {\n\t\t\tevent.preventDefault();\n\t\t}\n\t};\n\n\tprivate handleCloseDialog() {\n\t\tthis._on?.onClose?.();\n\t\tthis._on?.onToggle?.(false);\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.close);\n\t\t\tdispatchDomEvent(this.host, KolEvent.toggle);\n\t\t}\n\t}\n\n\tprivate readonly handleClose = () => {\n\t\tvoid (async () => {\n\t\t\tawait this.close();\n\t\t\tthis.handleCloseDialog();\n\t\t})();\n\t};\n\n\tprivate readonly handleAnimationEnd = (e: Event): void => {\n\t\tconst animationEvent = e as AnimationEvent;\n\t\tif (animationEvent.animationName.includes('slideOut')) {\n\t\t\tthis.dialogElement?.close?.();\n\t\t}\n\t};\n\n\tpublic componentDidLoad(): void {\n\t\tthis.dialogElement?.addEventListener('animationend', this.handleAnimationEnd);\n\t\tthis.dialogElement?.addEventListener('close', this.handleClose);\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tthis.dialogElement?.removeEventListener('animationend', this.handleAnimationEnd);\n\t\tthis.dialogElement?.removeEventListener('close', this.handleClose);\n\t}\n\n\tpublic componentWillLoad() {\n\t\tthis.validateAlign(this._align);\n\t\tthis.validateHasCloser(this._hasCloser);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateOpen(this._open);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateOn(this._on);\n\t}\n}\n"],"names":["nonce","handleCancelOverlay","dispatchDomEvent","KolEvent","h","KolCardWcTag","clsx","Host","validateLabel","validateAlign","validateHasCloser","watchHeadingLevel","validateOpen","setState"],"mappings":"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"}
1
+ {"version":3,"file":"kol-drawer.entry.cjs.js","sources":["src/components/drawer/style.scss?tag=kol-drawer&mode=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 {\n\tAlignPropType,\n\tDrawerAPI,\n\tDrawerStates,\n\tHasCloserPropType,\n\tHeadingLevel,\n\tKoliBriModalEventCallbacks,\n\tLabelPropType,\n\tOpenPropType,\n} from '../../schema';\nimport { setState, validateAlign, validateHasCloser, validateLabel, validateOpen } from '../../schema';\nimport clsx from '../../utils/clsx';\nimport { createUniqueId } from '../../utils/dev.utils';\nimport { dispatchDomEvent, KolEvent } from '../../utils/events';\nimport { handleCancelOverlay } from '../../utils/tooltip-open-tracking';\nimport { watchHeadingLevel } from '../heading/validation';\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\tprivate readonly cardHeadingId = createUniqueId('drawer-heading');\n\n\t@State() private isModal: boolean = true;\n\n\t/**\n\t * Opens the drawer. Pass true to open as a modal drawer.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async show(modal: boolean = false): Promise<void> {\n\t\tif (this.dialogElement?.open) {\n\t\t\treturn;\n\t\t}\n\t\tthis.isModal = modal;\n\t\tthis.state = {\n\t\t\t...this.state,\n\t\t\t_open: true,\n\t\t};\n\t\tif (modal) {\n\t\t\tthis.dialogElement?.showModal?.();\n\t\t} else {\n\t\t\tthis.dialogElement?.show?.();\n\t\t}\n\t\tthis._on?.onToggle?.(true);\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.toggle);\n\t\t}\n\t}\n\n\t/**\n\t * Opens the drawer as a modal.\n\t */\n\t@Method()\n\tpublic showModal(): Promise<void> {\n\t\treturn this.show(true);\n\t}\n\n\t/**\n\t * Opens the drawer.\n\t * @deprecated Use show() or showModal() instead.\n\t */\n\t@Method()\n\tpublic open(): Promise<void> {\n\t\treturn this.show(false);\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\tpublic async close(): Promise<void> {\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) {\n\t\t\treturn;\n\t\t}\n\t\tif (window.getComputedStyle(wrapper).animationName === 'none') {\n\t\t\tthis.dialogElement?.close?.();\n\t\t}\n\t}\n\n\tprivate readonly _cardOn = { onClose: () => void this.close() };\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_hasCloser={this.state._hasCloser}\n\t\t\t\t_headingId={this.cardHeadingId}\n\t\t\t\t_label={this.state._label}\n\t\t\t\t_level={this._level}\n\t\t\t\t_on={this._cardOn}\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\n\t\t\t\t\taria-labelledby={this.cardHeadingId}\n\t\t\t\t\taria-modal={this.isModal ? 'true' : 'false'}\n\t\t\t\t\tclass=\"kol-drawer__dialog\"\n\t\t\t\t\tonCancel={this.handleCancelEvent}\n\t\t\t\t\tref={this.getRef}\n\t\t\t\t>\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 * 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 * 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('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(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.show(this.isModal);\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.onCancel === 'function') {\n\t\t\t\tcallbacks.onCancel = value.onCancel;\n\t\t\t}\n\t\t\tif (typeof value.onClose === 'function') {\n\t\t\t\tcallbacks.onClose = value.onClose;\n\t\t\t}\n\t\t\tif (typeof value.onToggle === 'function') {\n\t\t\t\tcallbacks.onToggle = value.onToggle;\n\t\t\t}\n\t\t\tsetState<KoliBriModalEventCallbacks>(this, '_on', callbacks);\n\t\t}\n\t}\n\n\tprivate handleCancelEvent = (event: Event): void => {\n\t\thandleCancelOverlay(event);\n\t\tif (event.defaultPrevented) return;\n\n\t\tthis.state._on?.onCancel?.(event);\n\t\tif (event.defaultPrevented) return;\n\n\t\tif (this.host && !dispatchDomEvent(this.host, KolEvent.cancel)) {\n\t\t\tevent.preventDefault();\n\t\t}\n\t};\n\n\tprivate handleCloseDialog() {\n\t\tthis._on?.onClose?.();\n\t\tthis._on?.onToggle?.(false);\n\t\tif (this.host) {\n\t\t\tdispatchDomEvent(this.host, KolEvent.close);\n\t\t\tdispatchDomEvent(this.host, KolEvent.toggle);\n\t\t}\n\t}\n\n\tprivate readonly handleClose = () => {\n\t\tvoid (async () => {\n\t\t\tawait this.close();\n\t\t\tthis.handleCloseDialog();\n\t\t})();\n\t};\n\n\tprivate readonly handleAnimationEnd = (e: Event): void => {\n\t\tconst animationEvent = e as AnimationEvent;\n\t\tif (animationEvent.animationName.includes('slideOut')) {\n\t\t\tthis.dialogElement?.close?.();\n\t\t}\n\t};\n\n\tpublic componentDidLoad(): void {\n\t\tthis.dialogElement?.addEventListener('animationend', this.handleAnimationEnd);\n\t\tthis.dialogElement?.addEventListener('close', this.handleClose);\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tthis.dialogElement?.removeEventListener('animationend', this.handleAnimationEnd);\n\t\tthis.dialogElement?.removeEventListener('close', this.handleClose);\n\t}\n\n\tpublic componentWillLoad() {\n\t\tthis.validateAlign(this._align);\n\t\tthis.validateHasCloser(this._hasCloser);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateOpen(this._open);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateOn(this._on);\n\t}\n}\n"],"names":["createUniqueId","handleCancelOverlay","dispatchDomEvent","KolEvent","h","KolCardWcTag","clsx","Host","validateLabel","validateAlign","validateHasCloser","watchHeadingLevel","validateOpen","setState"],"mappings":"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"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-C24UiEit.js"),common=require("./common-DPb6NWR4.js"),i18n=require("./i18n-Cjy0vgJA.js"),componentNames=require("./component-names-5KS_pYRF.js"),Alert=require("./Alert-CZFEnpQp.js"),events=require("./events-Jc2wxPjR.js");require("./i18n-CgUN6lev.js"),require("./tslib.es6-7DbU_BSw.js"),require("./clsx-Bm_HQUnh.js"),require("./bem-registry-CRVGjDoN.js"),require("./component-BcNeqWH3.js"),require("./Heading-C8dFS1jN.js");const validateErrorList=(n,e)=>{common.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: white;\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 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=1779456138767"); /* IE9*/\n src: url("kolicons.eot?t=1779456138767#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1779456138767") format("woff2"), url("kolicons.woff?t=1779456138767") format("woff"), url("kolicons.ttf?t=1779456138767") format("truetype"), url("kolicons.svg?t=1779456138767#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\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 .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\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: black;\n background-color: white;\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: black;\n background-color: white;\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 }\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){index.registerInstance(this,n),this.translateErrorListMessage=i18n.translate("kol-error-list-message"),this.translateErrorList=i18n.translate("kol-error-list"),this.translateFormDescription=i18n.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&&events.dispatchDomEvent(this.host,events.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&&events.dispatchDomEvent(this.host,events.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 index.h(Alert.KolAlertFc,{class:"kol-form__alert",ref:this.setBlockElement,type:"error",variant:"card",label:this.translateErrorListMessage},index.h("nav",{"aria-label":this.translateErrorList},index.h("ul",null,null==n?void 0:n.map((n,e)=>index.h("li",{key:e},index.h(componentNames.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 index.h("form",{class:"kol-form",method:"post",onSubmit:this.onSubmit,onReset:this.onReset,noValidate:!0},!0===this.state._requiredText?index.h("p",null,index.h("div",{class:"kol-form__mandatory-fields-hint"},this.translateFormDescription)):"string"==typeof this.state._requiredText&&this.state._requiredText.length>0?index.h("p",null,index.h("div",{class:"kol-form__mandatory-fields-hint"},this.state._requiredText)):null,index.h("slot",null))}render(){const n=Array.isArray(this._errorList)&&this._errorList.length>0;return index.h(index.Host,{key:"d002ea1e6be732b787b8e9823fb7812dd43abbc7"},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?common.watchBoolean(this,"_requiredText",n):common.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 index.getElement(this)}static get watchers(){return{_on:["validateOn"],_requiredText:["validateRequiredText"],_errorList:["validateErrorList"]}}};KolForm.style={default:defaultStyleCss},exports.kol_form=KolForm;
4
+ "use strict";var index=require("./index-DyCCobHQ.js"),common=require("./common-DPb6NWR4.js"),i18n=require("./i18n-Cjy0vgJA.js"),componentNames=require("./component-names-5KS_pYRF.js"),Alert=require("./Alert-CCe9pvqX.js"),events=require("./events-Jc2wxPjR.js");require("./i18n-CgUN6lev.js"),require("./tslib.es6-7DbU_BSw.js"),require("./clsx-Bm_HQUnh.js"),require("./bem-registry-CRVGjDoN.js"),require("./component-bCqns4_n.js"),require("./Heading-C-7wIlLu.js");const validateErrorList=(n,e)=>{common.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: white;\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 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=1779833120296"); /* IE9*/\n src: url("kolicons.eot?t=1779833120296#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1779833120296") format("woff2"), url("kolicons.woff?t=1779833120296") format("woff"), url("kolicons.ttf?t=1779833120296") format("truetype"), url("kolicons.svg?t=1779833120296#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\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 .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\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: black;\n background-color: white;\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: black;\n background-color: white;\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 }\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){index.registerInstance(this,n),this.translateErrorListMessage=i18n.translate("kol-error-list-message"),this.translateErrorList=i18n.translate("kol-error-list"),this.translateFormDescription=i18n.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&&events.dispatchDomEvent(this.host,events.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&&events.dispatchDomEvent(this.host,events.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 index.h(Alert.KolAlertFc,{class:"kol-form__alert",ref:this.setBlockElement,type:"error",variant:"card",label:this.translateErrorListMessage},index.h("nav",{"aria-label":this.translateErrorList},index.h("ul",null,null==n?void 0:n.map((n,e)=>index.h("li",{key:e},index.h(componentNames.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 index.h("form",{class:"kol-form",method:"post",onSubmit:this.onSubmit,onReset:this.onReset,noValidate:!0},!0===this.state._requiredText?index.h("p",null,index.h("div",{class:"kol-form__mandatory-fields-hint"},this.translateFormDescription)):"string"==typeof this.state._requiredText&&this.state._requiredText.length>0?index.h("p",null,index.h("div",{class:"kol-form__mandatory-fields-hint"},this.state._requiredText)):null,index.h("slot",null))}render(){const n=Array.isArray(this._errorList)&&this._errorList.length>0;return index.h(index.Host,{key:"d002ea1e6be732b787b8e9823fb7812dd43abbc7"},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?common.watchBoolean(this,"_requiredText",n):common.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 index.getElement(this)}static get watchers(){return{_on:["validateOn"],_requiredText:["validateRequiredText"],_errorList:["validateErrorList"]}}};KolForm.style={default:defaultStyleCss},exports.kol_form=KolForm;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-C24UiEit.js"),variantQuote=require("./variant-quote-DpNzmCtr.js"),clsx=require("./clsx-Bm_HQUnh.js");require("./common-DPb6NWR4.js");var level=require("./level-DmIt1w-r.js"),normalizers=require("./normalizers-BCLslVaT.js"),baseController=require("./base-controller-DAzsTqX9.js");require("./_Uint8Array-BAQUGozM.js"),require("./isArray-BOIOdEQh.js");const labelWithExpertSlotProp=normalizers.createPropDefinition("label","",normalizers.normalizeString),secondaryHeadlineProp=normalizers.createPropDefinition("secondaryHeadline","",normalizers.normalizeString);function getHeadlineTag(e){return e>=1&&e<=6?`h${e}`:"strong"}const HeadingFC=e=>{const{label:n,level:t,secondaryHeadline:l}=e,i=getHeadlineTag(t);return l?index.h("hgroup",{class:"kol-heading-group"},index.h(i,{class:clsx.clsx("kol-headline",`kol-headline--${i}`,"kol-headline--group","kol-headline--primary")},n,index.h("slot",{name:"expert",slot:"expert"})),index.h("p",{class:"kol-headline kol-headline--group kol-headline--secondary"},l)):index.h(i,{class:clsx.clsx("kol-headline",`kol-headline--${i}`,"kol-headline--single")},n,index.h("slot",{name:"expert",slot:"expert"}))},headingPropsConfig={optional:[level.levelProp,secondaryHeadlineProp],required:[labelWithExpertSlotProp]};class HeadingController extends baseController.BaseController{constructor(e){super(e,headingPropsConfig)}componentWillLoad(e){const{label:n,level:t,secondaryHeadline:l}=e;this.watchLabel(n),this.watchLevel(t),this.watchSecondaryHeadline(l)}watchLabel(e){labelWithExpertSlotProp.apply(e,e=>{this.setRenderProp("label",e)})}watchLevel(e){level.levelProp.apply(e,e=>{this.setRenderProp("level",e)})}watchSecondaryHeadline(e){secondaryHeadlineProp.apply(e,e=>{this.setRenderProp("secondaryHeadline",e)})}}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: white;\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 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){index.registerInstance(this,e),this.ctrl=new HeadingController(variantQuote.BaseWebComponent.stateLess),this._level=0}watchLabel(e){this.ctrl.watchLabel(e)}watchLevel(e){this.ctrl.watchLevel(e)}watchSecondaryHeadline(e){this.ctrl.watchSecondaryHeadline(e)}componentWillLoad(){this.ctrl.componentWillLoad({label:this._label,level:this._level,secondaryHeadline:this._secondaryHeadline})}render(){return index.h(index.Host,{key:"5879d577d6dfb5d0716b5f201a9b9a094f4b36e9"},index.h(HeadingFC,{key:"85896384df9a2a200e7a196ec3d52a5282da0639",label:this.ctrl.getRenderProp("label"),level:this.ctrl.getRenderProp("level"),secondaryHeadline:this.ctrl.getRenderProp("secondaryHeadline")}))}static get watchers(){return{_label:["watchLabel"],_level:["watchLevel"],_secondaryHeadline:["watchSecondaryHeadline"]}}};KolHeading.style={default:defaultStyleCss},exports.kol_heading=KolHeading;
4
+ "use strict";var index=require("./index-DyCCobHQ.js"),variantQuote=require("./variant-quote-DpNzmCtr.js"),clsx=require("./clsx-Bm_HQUnh.js");require("./common-DPb6NWR4.js");var level=require("./level-DmIt1w-r.js"),normalizers=require("./normalizers-BCLslVaT.js"),baseController=require("./base-controller-DAzsTqX9.js");require("./_Uint8Array-BAQUGozM.js"),require("./isArray-BOIOdEQh.js");const labelWithExpertSlotProp=normalizers.createPropDefinition("label","",normalizers.normalizeString),secondaryHeadlineProp=normalizers.createPropDefinition("secondaryHeadline","",normalizers.normalizeString);function getHeadlineTag(e){return e>=1&&e<=6?`h${e}`:"strong"}const HeadingFC=e=>{const{label:n,level:t,secondaryHeadline:l}=e,i=getHeadlineTag(t);return l?index.h("hgroup",{class:"kol-heading-group"},index.h(i,{class:clsx.clsx("kol-headline",`kol-headline--${i}`,"kol-headline--group","kol-headline--primary")},n,index.h("slot",{name:"expert",slot:"expert"})),index.h("p",{class:"kol-headline kol-headline--group kol-headline--secondary"},l)):index.h(i,{class:clsx.clsx("kol-headline",`kol-headline--${i}`,"kol-headline--single")},n,index.h("slot",{name:"expert",slot:"expert"}))},headingPropsConfig={optional:[level.levelProp,secondaryHeadlineProp],required:[labelWithExpertSlotProp]};class HeadingController extends baseController.BaseController{constructor(e){super(e,headingPropsConfig)}componentWillLoad(e){const{label:n,level:t,secondaryHeadline:l}=e;this.watchLabel(n),this.watchLevel(t),this.watchSecondaryHeadline(l)}watchLabel(e){labelWithExpertSlotProp.apply(e,e=>{this.setRenderProp("label",e)})}watchLevel(e){level.levelProp.apply(e,e=>{this.setRenderProp("level",e)})}watchSecondaryHeadline(e){secondaryHeadlineProp.apply(e,e=>{this.setRenderProp("secondaryHeadline",e)})}}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: white;\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 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){index.registerInstance(this,e),this.ctrl=new HeadingController(variantQuote.BaseWebComponent.stateLess),this._level=0}watchLabel(e){this.ctrl.watchLabel(e)}watchLevel(e){this.ctrl.watchLevel(e)}watchSecondaryHeadline(e){this.ctrl.watchSecondaryHeadline(e)}componentWillLoad(){this.ctrl.componentWillLoad({label:this._label,level:this._level,secondaryHeadline:this._secondaryHeadline})}render(){return index.h(index.Host,{key:"5879d577d6dfb5d0716b5f201a9b9a094f4b36e9"},index.h(HeadingFC,{key:"85896384df9a2a200e7a196ec3d52a5282da0639",label:this.ctrl.getRenderProp("label"),level:this.ctrl.getRenderProp("level"),secondaryHeadline:this.ctrl.getRenderProp("secondaryHeadline")}))}static get watchers(){return{_label:["watchLabel"],_level:["watchLevel"],_secondaryHeadline:["watchSecondaryHeadline"]}}};KolHeading.style={default:defaultStyleCss},exports.kol_heading=KolHeading;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-C24UiEit.js"),variantQuote=require("./variant-quote-DpNzmCtr.js"),component=require("./component-BcNeqWH3.js");require("./common-DPb6NWR4.js");var normalizers=require("./normalizers-BCLslVaT.js"),label=require("./label-DRrPbj-j.js"),baseController=require("./base-controller-DAzsTqX9.js");require("./tslib.es6-7DbU_BSw.js"),require("./bem-registry-CRVGjDoN.js"),require("./clsx-Bm_HQUnh.js"),require("./_Uint8Array-BAQUGozM.js"),require("./isArray-BOIOdEQh.js");const iconsProp=normalizers.createPropDefinition("icons","kolicon-logo",normalizers.normalizeString),iconPropsConfig={required:[iconsProp,label.labelProp]};class IconController extends baseController.BaseController{constructor(n){super(n,iconPropsConfig)}componentWillLoad(n){const{icons:e,label:o}=n;this.watchIcons(e),this.watchLabel(o)}watchIcons(n){iconsProp.apply(n,n=>{this.setRenderProp("icons",n)})}watchLabel(n){label.labelProp.apply(n,n=>{this.setRenderProp("label",n)})}}const defaultStyleCss='@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1779456138767"); /* IE9*/\n src: url("kolicons.eot?t=1779456138767#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1779456138767") format("woff2"), url("kolicons.woff?t=1779456138767") format("woff"), url("kolicons.ttf?t=1779456138767") format("truetype"), url("kolicons.svg?t=1779456138767#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\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 .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\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{constructor(n){index.registerInstance(this,n),this.ctrl=new IconController(variantQuote.BaseWebComponent.stateLess)}watchIcons(n){this.ctrl.watchIcons(n)}watchLabel(n){this.ctrl.watchLabel(n)}componentWillLoad(){this.ctrl.componentWillLoad({icons:this._icons,label:this._label})}render(){return index.h(index.Host,{key:"0127f2d35f4164f440a30fec825e10158fc833a5"},index.h(component.IconFC,{key:"6fa23897706337c29bc4ef2551904436b2a65785",icons:this.ctrl.getRenderProp("icons"),label:this.ctrl.getRenderProp("label")}))}static get watchers(){return{_icons:["watchIcons"],_label:["watchLabel"]}}};KolIcon.style={default:defaultStyleCss},exports.kol_icon=KolIcon;
4
+ "use strict";var index=require("./index-DyCCobHQ.js"),variantQuote=require("./variant-quote-DpNzmCtr.js"),component=require("./component-bCqns4_n.js");require("./common-DPb6NWR4.js");var normalizers=require("./normalizers-BCLslVaT.js"),label=require("./label-DRrPbj-j.js"),baseController=require("./base-controller-DAzsTqX9.js");require("./tslib.es6-7DbU_BSw.js"),require("./bem-registry-CRVGjDoN.js"),require("./clsx-Bm_HQUnh.js"),require("./_Uint8Array-BAQUGozM.js"),require("./isArray-BOIOdEQh.js");const iconsProp=normalizers.createPropDefinition("icons","kolicon-logo",normalizers.normalizeString),iconPropsConfig={required:[iconsProp,label.labelProp]};class IconController extends baseController.BaseController{constructor(n){super(n,iconPropsConfig)}componentWillLoad(n){const{icons:e,label:o}=n;this.watchIcons(e),this.watchLabel(o)}watchIcons(n){iconsProp.apply(n,n=>{this.setRenderProp("icons",n)})}watchLabel(n){label.labelProp.apply(n,n=>{this.setRenderProp("label",n)})}}const defaultStyleCss='@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1779833120296"); /* IE9*/\n src: url("kolicons.eot?t=1779833120296#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1779833120296") format("woff2"), url("kolicons.woff?t=1779833120296") format("woff"), url("kolicons.ttf?t=1779833120296") format("truetype"), url("kolicons.svg?t=1779833120296#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\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 .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\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{constructor(n){index.registerInstance(this,n),this.ctrl=new IconController(variantQuote.BaseWebComponent.stateLess)}watchIcons(n){this.ctrl.watchIcons(n)}watchLabel(n){this.ctrl.watchLabel(n)}componentWillLoad(){this.ctrl.componentWillLoad({icons:this._icons,label:this._label})}render(){return index.h(index.Host,{key:"0127f2d35f4164f440a30fec825e10158fc833a5"},index.h(component.IconFC,{key:"6fa23897706337c29bc4ef2551904436b2a65785",icons:this.ctrl.getRenderProp("icons"),label:this.ctrl.getRenderProp("label")}))}static get watchers(){return{_icons:["watchIcons"],_label:["watchLabel"]}}};KolIcon.style={default:defaultStyleCss},exports.kol_icon=KolIcon;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-C24UiEit.js"),variantQuote=require("./variant-quote-DpNzmCtr.js");require("./common-DPb6NWR4.js");var normalizers=require("./normalizers-BCLslVaT.js"),src=require("./src-q91473CI.js"),baseController=require("./base-controller-DAzsTqX9.js");require("./_Uint8Array-BAQUGozM.js"),require("./isArray-BOIOdEQh.js");const altProp=normalizers.createPropDefinition("alt","",normalizers.normalizeString,e=>"string"==typeof e),sizesProp=normalizers.createPropDefinition("sizes","",normalizers.normalizeString),srcsetProp=normalizers.createPropDefinition("srcset","",normalizers.normalizeString),ImageFC=e=>{const{alt:n,loading:t,sizes:i,src:o,srcset:r}=e;return index.h("img",{class:"kol-image",alt:n,loading:t,sizes:i||void 0,src:o,srcset:r||void 0})},imagePropsConfig={optional:[variantQuote.loadingProp,sizesProp,srcsetProp],required:[altProp,src.srcProp]};class ImageController extends baseController.BaseController{constructor(e){super(e,imagePropsConfig)}componentWillLoad(e){const{alt:n,loading:t,sizes:i,src:o,srcset:r}=e;this.watchAlt(n),this.watchLoading(t),this.watchSizes(i),this.watchSrc(o),this.watchSrcset(r)}watchAlt(e){altProp.apply(e,e=>{this.setRenderProp("alt",e)})}watchLoading(e){variantQuote.loadingProp.apply(e,e=>{this.setRenderProp("loading",e)})}watchSizes(e){sizesProp.apply(e,e=>{this.setRenderProp("sizes",e)})}watchSrc(e){src.srcProp.apply(e,e=>{this.setRenderProp("src",e)})}watchSrcset(e){srcsetProp.apply(e,e=>{this.setRenderProp("srcset",e)})}}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: white;\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 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-image {\n display: inline-block;\n max-width: 100%;\n max-height: 100%;\n }\n}",KolImage=class{constructor(e){index.registerInstance(this,e),this.ctrl=new ImageController(variantQuote.BaseWebComponent.stateLess)}watchAlt(e){this.ctrl.watchAlt(e)}watchLoading(e){this.ctrl.watchLoading(e)}watchSizes(e){this.ctrl.watchSizes(e)}watchSrc(e){this.ctrl.watchSrc(e)}watchSrcset(e){this.ctrl.watchSrcset(e)}componentWillLoad(){this.ctrl.componentWillLoad({alt:this._alt,loading:this._loading,sizes:this._sizes,src:this._src,srcset:this._srcset})}render(){return index.h(index.Host,{key:"276f06ce285f641390037d95f47fb0337c82fe19"},index.h(ImageFC,{key:"edef7131a42e5297e96969716a5e6232c1f52bd3",alt:this.ctrl.getRenderProp("alt"),loading:this.ctrl.getRenderProp("loading"),sizes:this.ctrl.getRenderProp("sizes"),src:this.ctrl.getRenderProp("src"),srcset:this.ctrl.getRenderProp("srcset")}))}static get watchers(){return{_alt:["watchAlt"],_loading:["watchLoading"],_sizes:["watchSizes"],_src:["watchSrc"],_srcset:["watchSrcset"]}}};KolImage.style={default:defaultStyleCss},exports.kol_image=KolImage;
4
+ "use strict";var index=require("./index-DyCCobHQ.js"),variantQuote=require("./variant-quote-DpNzmCtr.js");require("./common-DPb6NWR4.js");var normalizers=require("./normalizers-BCLslVaT.js"),src=require("./src-q91473CI.js"),baseController=require("./base-controller-DAzsTqX9.js");require("./_Uint8Array-BAQUGozM.js"),require("./isArray-BOIOdEQh.js");const altProp=normalizers.createPropDefinition("alt","",normalizers.normalizeString,e=>"string"==typeof e),sizesProp=normalizers.createPropDefinition("sizes","",normalizers.normalizeString),srcsetProp=normalizers.createPropDefinition("srcset","",normalizers.normalizeString),ImageFC=e=>{const{alt:n,loading:t,sizes:i,src:o,srcset:r}=e;return index.h("img",{class:"kol-image",alt:n,loading:t,sizes:i||void 0,src:o,srcset:r||void 0})},imagePropsConfig={optional:[variantQuote.loadingProp,sizesProp,srcsetProp],required:[altProp,src.srcProp]};class ImageController extends baseController.BaseController{constructor(e){super(e,imagePropsConfig)}componentWillLoad(e){const{alt:n,loading:t,sizes:i,src:o,srcset:r}=e;this.watchAlt(n),this.watchLoading(t),this.watchSizes(i),this.watchSrc(o),this.watchSrcset(r)}watchAlt(e){altProp.apply(e,e=>{this.setRenderProp("alt",e)})}watchLoading(e){variantQuote.loadingProp.apply(e,e=>{this.setRenderProp("loading",e)})}watchSizes(e){sizesProp.apply(e,e=>{this.setRenderProp("sizes",e)})}watchSrc(e){src.srcProp.apply(e,e=>{this.setRenderProp("src",e)})}watchSrcset(e){srcsetProp.apply(e,e=>{this.setRenderProp("srcset",e)})}}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: white;\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 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-image {\n display: inline-block;\n max-width: 100%;\n max-height: 100%;\n }\n}",KolImage=class{constructor(e){index.registerInstance(this,e),this.ctrl=new ImageController(variantQuote.BaseWebComponent.stateLess)}watchAlt(e){this.ctrl.watchAlt(e)}watchLoading(e){this.ctrl.watchLoading(e)}watchSizes(e){this.ctrl.watchSizes(e)}watchSrc(e){this.ctrl.watchSrc(e)}watchSrcset(e){this.ctrl.watchSrcset(e)}componentWillLoad(){this.ctrl.componentWillLoad({alt:this._alt,loading:this._loading,sizes:this._sizes,src:this._src,srcset:this._srcset})}render(){return index.h(index.Host,{key:"276f06ce285f641390037d95f47fb0337c82fe19"},index.h(ImageFC,{key:"edef7131a42e5297e96969716a5e6232c1f52bd3",alt:this.ctrl.getRenderProp("alt"),loading:this.ctrl.getRenderProp("loading"),sizes:this.ctrl.getRenderProp("sizes"),src:this.ctrl.getRenderProp("src"),srcset:this.ctrl.getRenderProp("srcset")}))}static get watchers(){return{_alt:["watchAlt"],_loading:["watchLoading"],_sizes:["watchSizes"],_src:["watchSrc"],_srcset:["watchSrcset"]}}};KolImage.style={default:defaultStyleCss},exports.kol_image=KolImage;
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-C24UiEit.js"),clsx=require("./clsx-Bm_HQUnh.js"),dev_utils=require("./dev.utils-C6aqolAb.js"),elementClick=require("./element-click-BNHh6n4d.js"),elementFocus=require("./element-focus-r03qIEIv.js"),common=require("./common-DPb6NWR4.js"),controller=require("./controller-C9wc4ULR.js"),tslib_es6=require("./tslib.es6-7DbU_BSw.js"),component=require("./component-BcNeqWH3.js"),FormFieldStateWrapper=require("./FormFieldStateWrapper-D7N3J8IX.js"),Input=require("./Input-BxRbkUZf.js"),FieldControlStateWrapper=require("./FieldControlStateWrapper-DbXc2aZ3.js"),controller$1=require("./controller-BMDxsRHs.js");require("./label-8vcJJEVI.js"),require("./required-DriHzqmx.js"),require("./orientation-CZeybVrr.js"),require("./bem-registry-CRVGjDoN.js"),require("./access-and-short-key-CspEpGOV.js"),require("./disabled-GY6LfYNH.js"),require("./hide-label-BnMTmbm4.js"),require("./tooltip-align-BeYhiCq6.js"),require("./align-B8NMKvjk.js"),require("./events-Jc2wxPjR.js"),require("./associated.controller-DLy6rpeW.js"),require("./bootstrap-ByVQ9oF5.js"),require("./component-names-5KS_pYRF.js"),require("./i18n-CgUN6lev.js"),require("./_Uint8Array-BAQUGozM.js"),require("./isArray-BOIOdEQh.js"),require("./variant-quote-DpNzmCtr.js"),require("./normalizers-BCLslVaT.js"),require("./component-P70qtkzX.js"),require("./component-CY3ki2XC.js"),require("./controller-DiB9pVnb.js"),require("./align-floating-elements-BkrTeMF3.js"),require("./tooltip-open-tracking-Ba0udJRU.js"),require("./label-DRrPbj-j.js"),require("./base-controller-DAzsTqX9.js"),require("./i18n-Cjy0vgJA.js"),require("./Alert-CZFEnpQp.js"),require("./Heading-C8dFS1jN.js");const validateChecked=(e,n)=>{common.watchBoolean(e,"_checked",n)},validateIndeterminate=(e,n)=>{common.watchBoolean(e,"_indeterminate",n)},labelAlignPropTypeOptions=["left","right"],validateLabelAlign=(e,n)=>{common.watchValidator(e,"_labelAlign",e=>"string"==typeof e&&labelAlignPropTypeOptions.includes(e),new Set([`KoliBriLabelAlign {${labelAlignPropTypeOptions.join(", ")}`]),n)},inputCheckboxVariantOptions=["button","default","switch"],isInputCheckboxVariantPropType=e=>"string"==typeof e&&inputCheckboxVariantOptions.includes(e),validateVariantInputCheckbox=(e,n)=>{common.watchValidator(e,"_variant",isInputCheckboxVariantPropType,new Set(inputCheckboxVariantOptions),n)};class InputCheckboxController extends controller.InputCheckboxRadioController{constructor(e,n,t){super(e,n,t),this.setFormAssociatedCheckboxValue=e=>{this.component._checked?this.setFormAssociatedValue(e):this.setFormAssociatedValue(null)},this.component=e}validateChecked(e){validateChecked(this.component,e),this.setFormAssociatedCheckboxValue(this.component.state._value)}validateIcons(e){common.watchValidator(this.component,"_icons",e=>{const n=e;return"object"==typeof n&&null!==n&&(common.isString(n.checked,1)||common.isString(n.indeterminate,1)||common.isString(n.unchecked,1))},new Set(["InputCheckboxIcons"]),e,{hooks:{beforePatch:(e,n,t)=>{n.set("_icons",Object.assign(Object.assign({},t.state._icons),e))}}})}validateIndeterminate(e){validateIndeterminate(this.component,e)}validateLabelAlign(e){validateLabelAlign(this.component,e)}validateValue(e){common.setState(this.component,"_value",e),this.setFormAssociatedCheckboxValue(this.component.state._value)}validateVariant(e){validateVariantInputCheckbox(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateChecked(this.component._checked),this.validateIcons(this.component._icons),this.validateIndeterminate(this.component._indeterminate),this.validateValue(this.component._value),this.validateVariant(this.component._variant),this.validateLabelAlign(this.component._labelAlign)}}const CheckboxFc=e=>{var{class:n,variant:t="default",icon:o,inputProps:i}=e,l=tslib_es6.__rest(e,["class","variant","icon","inputProps"]);const{class:a}=i,r=tslib_es6.__rest(i,["class"]),s={[`kol-checkbox--variant-${t}`]:!0,"kol-checkbox--checked":null==i?void 0:i.checked,"kol-checkbox--indeterminate":null==i?void 0:i.indeterminate,"kol-checkbox--disabled":Boolean(null==i?void 0:i.disabled),"kol-checkbox--required":Boolean(null==i?void 0:i.required),"kol-checkbox--touched":Boolean(null==i?void 0:i.touched),[`kol-checkbox--${FormFieldStateWrapper.getMsgType(null==i?void 0:i.msg)}`]:Boolean(FormFieldStateWrapper.isMsgDefinedAndInputTouched(null==i?void 0:i.msg,null==i?void 0:i.touched))};return index.h("label",Object.assign({class:clsx.clsx("kol-checkbox",s,n)},l),index.h(component.IconFC,{label:"",icons:o,class:clsx.clsx("kol-checkbox__icon")}),index.h(Input.InputFc,Object.assign({class:clsx.clsx("kol-checkbox__input",a)},r,{type:"checkbox"})))};function getCheckboxProps(e,n={}){const{ariaDescribedBy:t}=FormFieldStateWrapper.getRenderStates(e),o={id:e._id,hideLabel:e._hideLabel,label:e._label,value:e._value,accessKey:e._accessKey,disabled:e._disabled,name:e._name,ariaDescribedBy:t};return"_required"in e&&(o.required=e._required),"_checked"in e&&(o.checked=e._checked),"_indeterminate"in e&&(o.indeterminate=e._indeterminate),"_touched"in e&&(o.touched=e._touched),"_msg"in e&&(o.msg=e._msg),"_shortKey"in e&&(o["aria-keyshortcuts"]=e._shortKey),Object.assign(Object.assign({},o),n)}const CheckboxStateWrapper=e=>{var{state:n,inputProps:t}=e,o=tslib_es6.__rest(e,["state","inputProps"]);const i=(null==n?void 0:n._variant)||"default";return index.h(CheckboxFc,Object.assign({variant:i,inputProps:getCheckboxProps(n,t)},o))},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: white;\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 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=1779456138767"); /* IE9*/\n src: url("kolicons.eot?t=1779456138767#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1779456138767") format("woff2"), url("kolicons.woff?t=1779456138767") format("woff"), url("kolicons.ttf?t=1779456138767") format("truetype"), url("kolicons.svg?t=1779456138767#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\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 .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\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: black;\n background-color: white;\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: black;\n background-color: white;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert .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 .kol-form-field {\n display: grid;\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field__label-text {\n flex-flow: row;\n align-items: flex-start;\n justify-content: flex-start;\n }\n .kol-form-field--required .kol-form-field__label-text:not(:has(> [name]))::after,\n .kol-form-field--required .kol-tooltip__content .kol-span__label::after {\n content: "*"/"";\n }\n .kol-field-control {\n display: grid;\n min-height: var(--a11y-min-size);\n align-items: center;\n justify-content: left;\n grid-template-areas: "input label";\n grid-template-columns: auto 1fr;\n grid-template-rows: auto;\n }\n .kol-field-control:has(.kol-field-control__hint) {\n grid-template-areas: "input label" "hint hint";\n grid-template-columns: auto 1fr;\n grid-template-rows: auto auto;\n }\n .kol-field-control--label-align-left:not(.kol-field-control--hide-label) {\n grid-template-areas: "label input";\n grid-template-columns: 1fr auto;\n grid-template-rows: auto;\n }\n .kol-field-control--label-align-left:not(.kol-field-control--hide-label):has(.kol-field-control__hint) {\n grid-template-areas: "label input" "hint hint";\n grid-template-columns: 1fr auto;\n grid-template-rows: auto auto;\n }\n .kol-field-control__input {\n display: flex;\n min-height: var(--a11y-min-size);\n align-items: center;\n grid-area: input;\n }\n .kol-field-control__label {\n display: flex;\n min-height: var(--a11y-min-size);\n flex-grow: 1;\n align-items: center;\n cursor: pointer;\n grid-area: label;\n }\n .kol-field-control__label--visually-hidden {\n height: 0;\n margin: 0;\n padding: 0;\n visibility: hidden;\n }\n .kol-field-control__label-text {\n flex-flow: row;\n align-items: flex-start;\n justify-content: flex-start;\n }\n .kol-field-control__hint {\n grid-area: hint;\n }\n .kol-field-control--disabled .kol-field-control__label {\n cursor: not-allowed;\n }\n .kol-field-control--required .kol-field-control__label-text::after {\n content: "*"/"";\n }\n .kol-field-control--required .kol-tooltip .kol-span__label::after {\n content: "*"/"";\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 .kol-form-field {\n display: grid;\n }\n .kol-form-field__label-text {\n display: ruby;\n }\n .kol-checkbox {\n display: flex;\n position: relative;\n align-items: center;\n cursor: pointer;\n }\n .kol-checkbox--disabled {\n cursor: not-allowed;\n }\n .kol-checkbox .kol-input {\n background-color: white;\n border-style: solid;\n margin: 0;\n border-width: 2px;\n appearance: none;\n cursor: inherit;\n }\n .kol-checkbox .kol-input:before {\n content: "";\n }\n /**\n * Variant: Checkbox\n */\n .kol-checkbox--variant-default {\n position: relative;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n justify-content: center;\n }\n .kol-checkbox--variant-default .kol-icon {\n display: none;\n position: absolute;\n inset: auto;\n z-index: 1;\n pointer-events: none;\n }\n .kol-checkbox--variant-default .kol-input {\n width: calc(22 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(22 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-checkbox--variant-default.kol-checkbox--checked .kol-icon, .kol-checkbox--variant-default.kol-checkbox--indeterminate .kol-icon {\n display: block;\n }\n /**\n * Variant: Switch\n */\n .kol-checkbox--variant-switch {\n position: relative;\n }\n .kol-checkbox--variant-switch .kol-input {\n display: inline-block;\n position: relative;\n width: 3.2em;\n min-width: 3.2em;\n height: 1.7em;\n }\n .kol-checkbox--variant-switch .kol-input::before {\n background-color: black;\n position: absolute;\n top: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16));\n left: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16));\n width: 1.2em;\n height: 1.2em;\n transition: 0.5s;\n }\n .kol-checkbox--variant-switch .kol-input:checked::before {\n transform: translateX(1.5em);\n }\n .kol-checkbox--variant-switch .kol-input:indeterminate::before {\n transform: translateX(0.75em);\n }\n .kol-checkbox--variant-switch .kol-icon {\n transform: translate(0, -50%);\n color: black;\n display: flex;\n position: absolute;\n top: 50%;\n left: calc(4 * 1rem / var(--kolibri-root-font-size, 16));\n z-index: 1;\n width: 1.2em;\n height: 1.2em;\n align-items: center;\n justify-content: center;\n transition: 0.5s;\n }\n .kol-checkbox--variant-switch.kol-checkbox--checked .kol-icon {\n transform: translate(1.5em, -50%);\n }\n .kol-checkbox--variant-switch.kol-checkbox--indeterminate .kol-icon {\n transform: translate(0.75em, -50%);\n }\n /**\n * Variant: Button\n */\n .kol-checkbox--variant-button {\n min-width: var(--a11y-min-size);\n }\n .kol-checkbox--variant-button .kol-icon {\n display: flex;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n justify-content: center;\n }\n}',KolInputCheckbox=class{getModelValue(){return this._checked?this.state._value:null}async getValue(){return this.getModelValue()}async focus(){return elementFocus.delegateFocus(this.host,()=>elementFocus.setFocus(this.inputRef))}async click(){return elementClick.delegateClick(this.host,async()=>elementClick.setClick(this.inputRef))}getFormFieldProps(){return{state:this.state,class:clsx.clsx("kol-input-checkbox",{"kol-input-checkbox--checked":this.state._checked,"kol-input-checkbox--indeterminate":this.state._indeterminate,[`kol-input-checkbox--variant-${this.state._variant||"default"}`]:!0,[`kol-input-checkbox--label-align-${this.state._labelAlign||"right"}`]:!0}),tooltipAlign:this._tooltipAlign,alert:this.showAsAlert(),renderNoTooltip:!0}}getFieldControlProps(){return{class:clsx.clsx("kol-input-checkbox__field-control",{"kol-input-checkbox__field-control--checked":this.state._checked,"kol-input-checkbox__field-control--indeterminate":this.state._indeterminate,[`kol-input-checkbox__field-control--variant-${this.state._variant||"default"}`]:!0}),state:this.state,fieldControlLabelProps:{onMouseDown:e=>{this.inputHasFocus&&e.preventDefault()}}}}getInputProps(){return{state:this.state,icon:this.getIcon(),onMouseDown:e=>{!this.inputHasFocus||e.target instanceof HTMLInputElement||e.preventDefault()},inputProps:Object.assign(Object.assign({class:clsx.clsx({"visually-hidden":"button"===this.state._variant}),ref:this.setInputRef},this.controller.onFacade),{onInput:this.onInput,onChange:this.onChange,onKeyDown:this.onKeyDown,onFocus:e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},onBlur:e=>{this._disabled||(this.controller.onFacade.onBlur(e),this.inputHasFocus=!1)},onClick:void 0})}}getIcon(){return this.state._indeterminate?this.state._icons.indeterminate:this.state._checked?this.state._icons.checked:this.state._icons.unchecked}render(){return index.h(FormFieldStateWrapper.FormFieldStateWrapper,Object.assign({key:"b1a700e69d42e7106246e7e84aed4f1fac659272"},this.getFormFieldProps(),{renderNoLabel:!0}),index.h(FieldControlStateWrapper.FieldControlStateWrapper,Object.assign({key:"b1839906c5f1e01c77e110a3ee5ec67e319df6fd"},this.getFieldControlProps(),{renderNoHint:!0}),index.h(CheckboxStateWrapper,Object.assign({key:"29fdaf1e3cf66fea42709325597fd4c27000bb66"},this.getInputProps()))))}constructor(e){index.registerInstance(this,e),this.setInputRef=e=>{this.inputRef=e},this._checked=!1,this._hideMsg=!1,this._disabled=!1,this._hideLabel=!1,this._hint="",this._labelAlign="right",this._required=!1,this._tooltipAlign="top",this._touched=!1,this._value=!0,this._variant="default",this.state={_checked:!1,_hideMsg:!1,_icons:{checked:"kolicon-check",indeterminate:"kolicon-minus",unchecked:"kolicon-cross"},_id:`id-${dev_utils.nonce()}`,_indeterminate:!1,_label:"",_value:!0,_variant:"default",_labelAlign:"right"},this.inputHasFocus=!1,this.onInput=e=>{this._checked=!this._checked,this._indeterminate=!1;const n=this.getModelValue();this.controller.onFacade.onInput(e,!1,n),this.controller.setFormAssociatedCheckboxValue(n)},this.onChange=e=>{this.controller.onFacade.onChange(e,this.getModelValue())},this.onKeyDown=e=>{this.controller.onFacade.onKeyDown(e),"Enter"!==e.code&&"NumpadEnter"!==e.code||controller$1.propagateSubmitEventToForm({form:this.host})},this.controller=new InputCheckboxController(this,"checkbox",this.host)}showAsAlert(){return Boolean(this.state._touched)&&!this.inputHasFocus}validateAccessKey(e){this.controller.validateAccessKey(e)}validateChecked(e){this.controller.validateChecked(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateHideMsg(e){this.controller.validateHideMsg(e)}validateHideLabel(e){this.controller.validateHideLabel(e)}validateHint(e){this.controller.validateHint(e)}validateIcons(e){this.controller.validateIcons(e)}validateIndeterminate(e){this.controller.validateIndeterminate(e)}validateLabel(e){this.controller.validateLabel(e)}validateLabelAlign(e){this.controller.validateLabelAlign(e)}validateMsg(e){this.controller.validateMsg(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validateRequired(e){this.controller.validateRequired(e)}validateShortKey(e){this.controller.validateShortKey(e)}validateSyncValueBySelector(e){this.controller.validateSyncValueBySelector(e)}validateTouched(e){this.controller.validateTouched(e)}validateValue(e){this.controller.validateValue(e)}validateVariant(e){this.controller.validateVariant(e)}componentWillLoad(){this._touched=!0===this._touched,this.controller.componentWillLoad()}get host(){return index.getElement(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_checked:["validateChecked"],_disabled:["validateDisabled"],_hideMsg:["validateHideMsg"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_indeterminate:["validateIndeterminate"],_label:["validateLabel"],_labelAlign:["validateLabelAlign"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_required:["validateRequired"],_shortKey:["validateShortKey"],_syncValueBySelector:["validateSyncValueBySelector"],_touched:["validateTouched"],_value:["validateValue"],_variant:["validateVariant"]}}};KolInputCheckbox.style={default:defaultStyleCss},exports.kol_input_checkbox=KolInputCheckbox;
4
+ "use strict";var index=require("./index-DyCCobHQ.js"),clsx=require("./clsx-Bm_HQUnh.js"),dev_utils=require("./dev.utils-DYrlz4G7.js"),elementClick=require("./element-click-BNHh6n4d.js"),elementFocus=require("./element-focus-r03qIEIv.js"),common=require("./common-DPb6NWR4.js"),controller=require("./controller-BBKSlFz4.js"),tslib_es6=require("./tslib.es6-7DbU_BSw.js"),component=require("./component-bCqns4_n.js"),FormFieldStateWrapper=require("./FormFieldStateWrapper-ByL7oRBI.js"),Input=require("./Input-CA_3-eB9.js"),FieldControlStateWrapper=require("./FieldControlStateWrapper-C1DRtKiI.js"),controller$1=require("./controller-BMDxsRHs.js");require("./label-8vcJJEVI.js"),require("./required-DriHzqmx.js"),require("./orientation-CZeybVrr.js"),require("./bem-registry-CRVGjDoN.js"),require("./access-and-short-key-CspEpGOV.js"),require("./disabled-GY6LfYNH.js"),require("./hide-label-BnMTmbm4.js"),require("./tooltip-align-BeYhiCq6.js"),require("./align-B8NMKvjk.js"),require("./variant-class-name-BCWuCRd0.js"),require("./events-Jc2wxPjR.js"),require("./associated.controller-DLy6rpeW.js"),require("./bootstrap-ByVQ9oF5.js"),require("./component-names-5KS_pYRF.js"),require("./i18n-CgUN6lev.js"),require("./_Uint8Array-BAQUGozM.js"),require("./isArray-BOIOdEQh.js"),require("./variant-quote-DpNzmCtr.js"),require("./normalizers-BCLslVaT.js"),require("./component-lBaUur7X.js"),require("./component--8i7E4CQ.js"),require("./controller-DiB9pVnb.js"),require("./align-floating-elements-BkrTeMF3.js"),require("./tooltip-open-tracking-Ba0udJRU.js"),require("./label-DRrPbj-j.js"),require("./base-controller-DAzsTqX9.js"),require("./i18n-Cjy0vgJA.js"),require("./Alert-CCe9pvqX.js"),require("./Heading-C-7wIlLu.js");const validateChecked=(e,n)=>{common.watchBoolean(e,"_checked",n)},validateIndeterminate=(e,n)=>{common.watchBoolean(e,"_indeterminate",n)},labelAlignPropTypeOptions=["left","right"],validateLabelAlign=(e,n)=>{common.watchValidator(e,"_labelAlign",e=>"string"==typeof e&&labelAlignPropTypeOptions.includes(e),new Set([`KoliBriLabelAlign {${labelAlignPropTypeOptions.join(", ")}`]),n)},inputCheckboxVariantOptions=["button","default","switch"],isInputCheckboxVariantPropType=e=>"string"==typeof e&&inputCheckboxVariantOptions.includes(e),validateVariantInputCheckbox=(e,n)=>{common.watchValidator(e,"_variant",isInputCheckboxVariantPropType,new Set(inputCheckboxVariantOptions),n)};class InputCheckboxController extends controller.InputCheckboxRadioController{constructor(e,n,t){super(e,n,t),this.setFormAssociatedCheckboxValue=e=>{this.component._checked?this.setFormAssociatedValue(e):this.setFormAssociatedValue(null)},this.component=e}validateChecked(e){validateChecked(this.component,e),this.setFormAssociatedCheckboxValue(this.component.state._value)}validateIcons(e){common.watchValidator(this.component,"_icons",e=>{const n=e;return"object"==typeof n&&null!==n&&(common.isString(n.checked,1)||common.isString(n.indeterminate,1)||common.isString(n.unchecked,1))},new Set(["InputCheckboxIcons"]),e,{hooks:{beforePatch:(e,n,t)=>{n.set("_icons",Object.assign(Object.assign({},t.state._icons),e))}}})}validateIndeterminate(e){validateIndeterminate(this.component,e)}validateLabelAlign(e){validateLabelAlign(this.component,e)}validateValue(e){common.setState(this.component,"_value",e),this.setFormAssociatedCheckboxValue(this.component.state._value)}validateVariant(e){validateVariantInputCheckbox(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateChecked(this.component._checked),this.validateIcons(this.component._icons),this.validateIndeterminate(this.component._indeterminate),this.validateValue(this.component._value),this.validateVariant(this.component._variant),this.validateLabelAlign(this.component._labelAlign)}}const CheckboxFc=e=>{var{class:n,variant:t="default",icon:o,inputProps:i}=e,l=tslib_es6.__rest(e,["class","variant","icon","inputProps"]);const{class:a}=i,r=tslib_es6.__rest(i,["class"]),s={[`kol-checkbox--variant-${t}`]:!0,"kol-checkbox--checked":null==i?void 0:i.checked,"kol-checkbox--indeterminate":null==i?void 0:i.indeterminate,"kol-checkbox--disabled":Boolean(null==i?void 0:i.disabled),"kol-checkbox--required":Boolean(null==i?void 0:i.required),"kol-checkbox--touched":Boolean(null==i?void 0:i.touched),[`kol-checkbox--${FormFieldStateWrapper.getMsgType(null==i?void 0:i.msg)}`]:Boolean(FormFieldStateWrapper.isMsgDefinedAndInputTouched(null==i?void 0:i.msg,null==i?void 0:i.touched))};return index.h("label",Object.assign({class:clsx.clsx("kol-checkbox",s,n)},l),index.h(component.IconFC,{label:"",icons:o,class:clsx.clsx("kol-checkbox__icon")}),index.h(Input.InputFc,Object.assign({class:clsx.clsx("kol-checkbox__input",a)},r,{type:"checkbox"})))};function getCheckboxProps(e,n={}){const{ariaDescribedBy:t}=FormFieldStateWrapper.getRenderStates(e),o={id:e._id,hideLabel:e._hideLabel,label:e._label,value:e._value,accessKey:e._accessKey,disabled:e._disabled,name:e._name,ariaDescribedBy:t};return"_required"in e&&(o.required=e._required),"_checked"in e&&(o.checked=e._checked),"_indeterminate"in e&&(o.indeterminate=e._indeterminate),"_touched"in e&&(o.touched=e._touched),"_msg"in e&&(o.msg=e._msg),"_shortKey"in e&&(o["aria-keyshortcuts"]=e._shortKey),Object.assign(Object.assign({},o),n)}const CheckboxStateWrapper=e=>{var{state:n,inputProps:t}=e,o=tslib_es6.__rest(e,["state","inputProps"]);const i=(null==n?void 0:n._variant)||"default";return index.h(CheckboxFc,Object.assign({variant:i,inputProps:getCheckboxProps(n,t)},o))},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: white;\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 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=1779833120296"); /* IE9*/\n src: url("kolicons.eot?t=1779833120296#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1779833120296") format("woff2"), url("kolicons.woff?t=1779833120296") format("woff"), url("kolicons.ttf?t=1779833120296") format("truetype"), url("kolicons.svg?t=1779833120296#kolicons") format("svg"); /* iOS 4.1- */\n}\n@layer kol-component {\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 .kolicon-alert-error::before {\n content: "\\ea01";\n }\n .kolicon-alert-info::before {\n content: "\\ea02";\n }\n .kolicon-alert-success::before {\n content: "\\ea03";\n }\n .kolicon-alert-warning::before {\n content: "\\ea04";\n }\n .kolicon-check::before {\n content: "\\ea05";\n }\n .kolicon-chevron-double-left::before {\n content: "\\ea06";\n }\n .kolicon-chevron-double-right::before {\n content: "\\ea07";\n }\n .kolicon-chevron-down::before {\n content: "\\ea08";\n }\n .kolicon-chevron-left::before {\n content: "\\ea09";\n }\n .kolicon-chevron-right::before {\n content: "\\ea0a";\n }\n .kolicon-chevron-up::before {\n content: "\\ea0b";\n }\n .kolicon-cogwheel::before {\n content: "\\ea0c";\n }\n .kolicon-cross::before {\n content: "\\ea0d";\n }\n .kolicon-eye-closed::before {\n content: "\\ea0e";\n }\n .kolicon-eye::before {\n content: "\\ea0f";\n }\n .kolicon-house::before {\n content: "\\ea10";\n }\n .kolicon-kolibri::before {\n content: "\\ea11";\n }\n .kolicon-link-external::before {\n content: "\\ea12";\n }\n .kolicon-link::before {\n content: "\\ea13";\n }\n .kolicon-minus::before {\n content: "\\ea14";\n }\n .kolicon-plus::before {\n content: "\\ea15";\n }\n .kolicon-settings::before {\n content: "\\ea16";\n }\n .kolicon-sort-asc::before {\n content: "\\ea17";\n }\n .kolicon-sort-desc::before {\n content: "\\ea18";\n }\n .kolicon-sort-neutral::before {\n content: "\\ea19";\n }\n .kolicon-up::before {\n content: "\\ea1a";\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: black;\n background-color: white;\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: black;\n background-color: white;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-alert .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 .kol-form-field {\n display: grid;\n }\n .kol-form-field:not(.kol-form-field--disabled) .kol-form-field__label {\n cursor: pointer;\n }\n .kol-form-field__label-text {\n flex-flow: row;\n align-items: flex-start;\n justify-content: flex-start;\n }\n .kol-form-field--required .kol-form-field__label-text:not(:has(> [name]))::after,\n .kol-form-field--required .kol-tooltip__content .kol-span__label::after {\n content: "*"/"";\n }\n .kol-field-control {\n display: grid;\n min-height: var(--a11y-min-size);\n align-items: center;\n justify-content: left;\n grid-template-areas: "input label";\n grid-template-columns: auto 1fr;\n grid-template-rows: auto;\n }\n .kol-field-control:has(.kol-field-control__hint) {\n grid-template-areas: "input label" "hint hint";\n grid-template-columns: auto 1fr;\n grid-template-rows: auto auto;\n }\n .kol-field-control--label-align-left:not(.kol-field-control--hide-label) {\n grid-template-areas: "label input";\n grid-template-columns: 1fr auto;\n grid-template-rows: auto;\n }\n .kol-field-control--label-align-left:not(.kol-field-control--hide-label):has(.kol-field-control__hint) {\n grid-template-areas: "label input" "hint hint";\n grid-template-columns: 1fr auto;\n grid-template-rows: auto auto;\n }\n .kol-field-control__input {\n display: flex;\n min-height: var(--a11y-min-size);\n align-items: center;\n grid-area: input;\n }\n .kol-field-control__label {\n display: flex;\n min-height: var(--a11y-min-size);\n flex-grow: 1;\n align-items: center;\n cursor: pointer;\n grid-area: label;\n }\n .kol-field-control__label--visually-hidden {\n height: 0;\n margin: 0;\n padding: 0;\n visibility: hidden;\n }\n .kol-field-control__label-text {\n flex-flow: row;\n align-items: flex-start;\n justify-content: flex-start;\n }\n .kol-field-control__hint {\n grid-area: hint;\n }\n .kol-field-control--disabled .kol-field-control__label {\n cursor: not-allowed;\n }\n .kol-field-control--required .kol-field-control__label-text::after {\n content: "*"/"";\n }\n .kol-field-control--required .kol-tooltip .kol-span__label::after {\n content: "*"/"";\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 .kol-form-field {\n display: grid;\n }\n .kol-form-field__label-text {\n display: ruby;\n }\n .kol-checkbox {\n display: flex;\n position: relative;\n align-items: center;\n cursor: pointer;\n }\n .kol-checkbox--disabled {\n cursor: not-allowed;\n }\n .kol-checkbox .kol-input {\n background-color: white;\n border-style: solid;\n margin: 0;\n border-width: 2px;\n appearance: none;\n cursor: inherit;\n }\n .kol-checkbox .kol-input:before {\n content: "";\n }\n /**\n * Variant: Checkbox\n */\n .kol-checkbox--variant-default {\n position: relative;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n justify-content: center;\n }\n .kol-checkbox--variant-default .kol-icon {\n display: none;\n position: absolute;\n inset: auto;\n z-index: 1;\n pointer-events: none;\n }\n .kol-checkbox--variant-default .kol-input {\n width: calc(22 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(22 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-checkbox--variant-default.kol-checkbox--checked .kol-icon, .kol-checkbox--variant-default.kol-checkbox--indeterminate .kol-icon {\n display: block;\n }\n /**\n * Variant: Switch\n */\n .kol-checkbox--variant-switch {\n position: relative;\n }\n .kol-checkbox--variant-switch .kol-input {\n display: inline-block;\n position: relative;\n width: 3.2em;\n min-width: 3.2em;\n height: 1.7em;\n }\n .kol-checkbox--variant-switch .kol-input::before {\n background-color: black;\n position: absolute;\n top: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16));\n left: calc(0.25em - 2 * 1rem / var(--kolibri-root-font-size, 16));\n width: 1.2em;\n height: 1.2em;\n transition: 0.5s;\n }\n .kol-checkbox--variant-switch .kol-input:checked::before {\n transform: translateX(1.5em);\n }\n .kol-checkbox--variant-switch .kol-input:indeterminate::before {\n transform: translateX(0.75em);\n }\n .kol-checkbox--variant-switch .kol-icon {\n transform: translate(0, -50%);\n color: black;\n display: flex;\n position: absolute;\n top: 50%;\n left: calc(4 * 1rem / var(--kolibri-root-font-size, 16));\n z-index: 1;\n width: 1.2em;\n height: 1.2em;\n align-items: center;\n justify-content: center;\n transition: 0.5s;\n }\n .kol-checkbox--variant-switch.kol-checkbox--checked .kol-icon {\n transform: translate(1.5em, -50%);\n }\n .kol-checkbox--variant-switch.kol-checkbox--indeterminate .kol-icon {\n transform: translate(0.75em, -50%);\n }\n /**\n * Variant: Button\n */\n .kol-checkbox--variant-button {\n min-width: var(--a11y-min-size);\n }\n .kol-checkbox--variant-button .kol-icon {\n display: flex;\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n align-items: center;\n justify-content: center;\n }\n}',KolInputCheckbox=class{getModelValue(){return this._checked?this.state._value:null}async getValue(){return this.getModelValue()}async focus(){return elementFocus.delegateFocus(this.host,()=>elementFocus.setFocus(this.inputRef))}async click(){return elementClick.delegateClick(this.host,async()=>elementClick.setClick(this.inputRef))}getFormFieldProps(){return{state:this.state,class:clsx.clsx("kol-input-checkbox",{"kol-input-checkbox--checked":this.state._checked,"kol-input-checkbox--indeterminate":this.state._indeterminate,[`kol-input-checkbox--variant-${this.state._variant||"default"}`]:!0,[`kol-input-checkbox--label-align-${this.state._labelAlign||"right"}`]:!0}),tooltipAlign:this._tooltipAlign,alert:this.showAsAlert(),renderNoTooltip:!0}}getFieldControlProps(){return{class:clsx.clsx("kol-input-checkbox__field-control",{"kol-input-checkbox__field-control--checked":this.state._checked,"kol-input-checkbox__field-control--indeterminate":this.state._indeterminate,[`kol-input-checkbox__field-control--variant-${this.state._variant||"default"}`]:!0}),state:this.state,fieldControlLabelProps:{onMouseDown:e=>{this.inputHasFocus&&e.preventDefault()}}}}getInputProps(){return{state:this.state,icon:this.getIcon(),onMouseDown:e=>{!this.inputHasFocus||e.target instanceof HTMLInputElement||e.preventDefault()},inputProps:Object.assign(Object.assign({class:clsx.clsx({"visually-hidden":"button"===this.state._variant}),ref:this.setInputRef},this.controller.onFacade),{onInput:this.onInput,onChange:this.onChange,onKeyDown:this.onKeyDown,onFocus:e=>{this.controller.onFacade.onFocus(e),this.inputHasFocus=!0},onBlur:e=>{this._disabled||(this.controller.onFacade.onBlur(e),this.inputHasFocus=!1)},onClick:void 0})}}getIcon(){return this.state._indeterminate?this.state._icons.indeterminate:this.state._checked?this.state._icons.checked:this.state._icons.unchecked}render(){return index.h(FormFieldStateWrapper.FormFieldStateWrapper,Object.assign({key:"369cd740dfbc38dfea62c1d89c33a185160ec0d4"},this.getFormFieldProps(),{renderNoLabel:!0}),index.h(FieldControlStateWrapper.FieldControlStateWrapper,Object.assign({key:"b16593c1a6b731ba35886942ef115169d4215374"},this.getFieldControlProps(),{renderNoHint:!0}),index.h(CheckboxStateWrapper,Object.assign({key:"528727220f45afce8a153f6ff61ed56fd250543e"},this.getInputProps()))))}constructor(e){index.registerInstance(this,e),this.setInputRef=e=>{this.inputRef=e},this._checked=!1,this._hideMsg=!1,this._disabled=!1,this._hideLabel=!1,this._hint="",this._labelAlign="right",this._required=!1,this._tooltipAlign="top",this._touched=!1,this._value=!0,this._variant="default",this.state={_checked:!1,_hideMsg:!1,_icons:{checked:"kolicon-check",indeterminate:"kolicon-minus",unchecked:"kolicon-cross"},_id:dev_utils.createUniqueId("input-checkbox"),_indeterminate:!1,_label:"",_value:!0,_variant:"default",_labelAlign:"right"},this.inputHasFocus=!1,this.onInput=e=>{this._checked=!this._checked,this._indeterminate=!1;const n=this.getModelValue();this.controller.onFacade.onInput(e,!1,n),this.controller.setFormAssociatedCheckboxValue(n)},this.onChange=e=>{this.controller.onFacade.onChange(e,this.getModelValue())},this.onKeyDown=e=>{this.controller.onFacade.onKeyDown(e),"Enter"!==e.code&&"NumpadEnter"!==e.code||controller$1.propagateSubmitEventToForm({form:this.host})},this.controller=new InputCheckboxController(this,"checkbox",this.host)}showAsAlert(){return Boolean(this.state._touched)&&!this.inputHasFocus}validateAccessKey(e){this.controller.validateAccessKey(e)}validateChecked(e){this.controller.validateChecked(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateHideMsg(e){this.controller.validateHideMsg(e)}validateHideLabel(e){this.controller.validateHideLabel(e)}validateHint(e){this.controller.validateHint(e)}validateIcons(e){this.controller.validateIcons(e)}validateIndeterminate(e){this.controller.validateIndeterminate(e)}validateLabel(e){this.controller.validateLabel(e)}validateLabelAlign(e){this.controller.validateLabelAlign(e)}validateMsg(e){this.controller.validateMsg(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validateRequired(e){this.controller.validateRequired(e)}validateShortKey(e){this.controller.validateShortKey(e)}validateSyncValueBySelector(e){this.controller.validateSyncValueBySelector(e)}validateTouched(e){this.controller.validateTouched(e)}validateValue(e){this.controller.validateValue(e)}validateVariant(e){this.controller.validateVariant(e)}componentWillLoad(){this._touched=!0===this._touched,this.controller.componentWillLoad()}get host(){return index.getElement(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_checked:["validateChecked"],_disabled:["validateDisabled"],_hideMsg:["validateHideMsg"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_indeterminate:["validateIndeterminate"],_label:["validateLabel"],_labelAlign:["validateLabelAlign"],_msg:["validateMsg"],_name:["validateName"],_on:["validateOn"],_required:["validateRequired"],_shortKey:["validateShortKey"],_syncValueBySelector:["validateSyncValueBySelector"],_touched:["validateTouched"],_value:["validateValue"],_variant:["validateVariant"]}}};KolInputCheckbox.style={default:defaultStyleCss},exports.kol_input_checkbox=KolInputCheckbox;