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

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 (897) 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 +40 -18
  7. package/dist/cjs/{Alert-B4Hj8NjA.js → Alert-XL-NcUjK.js} +1 -1
  8. package/dist/cjs/{Alert-B4Hj8NjA.js.map → Alert-XL-NcUjK.js.map} +1 -1
  9. package/dist/cjs/{Collapsible-Dijo3pX0.js → Collapsible-BS-ThqIJ.js} +1 -1
  10. package/dist/cjs/{Collapsible-Dijo3pX0.js.map → Collapsible-BS-ThqIJ.js.map} +1 -1
  11. package/dist/cjs/{CustomSuggestionsOptionsGroup-Mgl4AAEi.js → CustomSuggestionsOptionsGroup-Q_2NY_Rp.js} +1 -1
  12. package/dist/cjs/{CustomSuggestionsOptionsGroup-Mgl4AAEi.js.map → CustomSuggestionsOptionsGroup-Q_2NY_Rp.js.map} +1 -1
  13. package/dist/cjs/{FieldControlStateWrapper-x-Ky7VQD.js → FieldControlStateWrapper-Ci_ehxTT.js} +1 -1
  14. package/dist/cjs/{FieldControlStateWrapper-x-Ky7VQD.js.map → FieldControlStateWrapper-Ci_ehxTT.js.map} +1 -1
  15. package/dist/cjs/FormFieldStateWrapper-CUNDwsb8.js +4 -0
  16. package/dist/cjs/FormFieldStateWrapper-CUNDwsb8.js.map +1 -0
  17. package/dist/cjs/{Heading-BCb6_DOq.js → Heading-eutqOsUb.js} +1 -1
  18. package/dist/cjs/{Heading-BCb6_DOq.js.map → Heading-eutqOsUb.js.map} +1 -1
  19. package/dist/cjs/Input-DtBuyBDE.js +4 -0
  20. package/dist/cjs/{Input-B5i_1a7W.js.map → Input-DtBuyBDE.js.map} +1 -1
  21. package/dist/cjs/{InputStateWrapper-xtqqc1vC.js → InputStateWrapper-DVe-caWD.js} +1 -1
  22. package/dist/cjs/{InputStateWrapper-xtqqc1vC.js.map → InputStateWrapper-DVe-caWD.js.map} +1 -1
  23. package/dist/cjs/{app-globals-DVEVPuuO.js → app-globals-BjwGQk4H.js} +1 -1
  24. package/dist/cjs/{app-globals-DVEVPuuO.js.map → app-globals-BjwGQk4H.js.map} +1 -1
  25. package/dist/cjs/{associated.controller-CWsCf1nv.js → associated.controller-DmDwjGKd.js} +1 -1
  26. package/dist/cjs/{associated.controller-CWsCf1nv.js.map → associated.controller-DmDwjGKd.js.map} +1 -1
  27. package/dist/cjs/base-web-component-B9aGMyyU.js +4 -0
  28. package/dist/cjs/base-web-component-B9aGMyyU.js.map +1 -0
  29. package/dist/cjs/{bootstrap-CT2-lyBv.js → bootstrap-DDTG6qkT.js} +1 -1
  30. package/dist/cjs/{bootstrap-CT2-lyBv.js.map → bootstrap-DDTG6qkT.js.map} +1 -1
  31. package/dist/cjs/{component-BsaPD_xm.js → component-BTsFDJQd.js} +1 -1
  32. package/dist/cjs/{component-BsaPD_xm.js.map → component-BTsFDJQd.js.map} +1 -1
  33. package/dist/cjs/{component-g902nOgi.js → component-DoyTOLUJ.js} +1 -1
  34. package/dist/cjs/{component-g902nOgi.js.map → component-DoyTOLUJ.js.map} +1 -1
  35. package/dist/cjs/component-names-5aGrrIj9.js +4 -0
  36. package/dist/cjs/component-names-5aGrrIj9.js.map +1 -0
  37. package/dist/cjs/{controller-Btq8uSY3.js → controller-BhoKLrIq.js} +1 -1
  38. package/dist/cjs/{controller-Btq8uSY3.js.map → controller-BhoKLrIq.js.map} +1 -1
  39. package/dist/cjs/{controller-CkP5MO7F.js → controller-C8Z6GzRG.js} +1 -1
  40. package/dist/cjs/{controller-CkP5MO7F.js.map → controller-C8Z6GzRG.js.map} +1 -1
  41. package/dist/cjs/{controller-DFIu7HVA.js → controller-CsN2zb60.js} +1 -1
  42. package/dist/cjs/{controller-DFIu7HVA.js.map → controller-CsN2zb60.js.map} +1 -1
  43. package/dist/cjs/{controller-ChTDDlUI.js → controller-OnvNhQhj.js} +1 -1
  44. package/dist/cjs/{controller-ChTDDlUI.js.map → controller-OnvNhQhj.js.map} +1 -1
  45. package/dist/cjs/{controller-icon-ClEpzUUk.js → controller-icon-vu1iNrNh.js} +1 -1
  46. package/dist/cjs/controller-icon-vu1iNrNh.js.map +1 -0
  47. package/dist/cjs/{controller-Cuu9WuW7.js → controller-m7TFBG7Y.js} +1 -1
  48. package/dist/cjs/{controller-Cuu9WuW7.js.map → controller-m7TFBG7Y.js.map} +1 -1
  49. package/dist/cjs/{dev.utils-OOR6uYvl.js → dev.utils-BIh2Re9I.js} +1 -1
  50. package/dist/cjs/{dev.utils-OOR6uYvl.js.map → dev.utils-BIh2Re9I.js.map} +1 -1
  51. package/dist/cjs/{devtools-Crg6PzgP.js → devtools-Bs_e2B7S.js} +1 -1
  52. package/dist/cjs/{devtools-Crg6PzgP.js.map → devtools-Bs_e2B7S.js.map} +1 -1
  53. package/dist/cjs/element-focus-WQBz86oY.js +4 -0
  54. package/dist/cjs/element-focus-WQBz86oY.js.map +1 -0
  55. package/dist/{esm/index-C-7ueFeG.js → cjs/index-DiJqlVls.js} +1 -1
  56. package/dist/cjs/{index-DMu8_ik9.js.map → index-DiJqlVls.js.map} +1 -1
  57. package/dist/cjs/index.cjs.js +1 -1
  58. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-accordion.entry.cjs.js.map +1 -1
  61. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-alert-wc.entry.cjs.js.map +1 -1
  63. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-avatar.entry.cjs.js.map +1 -1
  66. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-badge.entry.cjs.js.map +1 -1
  68. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-breadcrumb.entry.cjs.js.map +1 -1
  70. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-button-link.entry.cjs.js.map +1 -1
  72. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-button-wc.entry.cjs.js.map +1 -1
  74. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-button.entry.cjs.js.map +1 -1
  76. package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-card-wc.entry.cjs.js.map +1 -1
  78. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-card.entry.cjs.js.map +1 -1
  80. package/dist/cjs/kol-click-button.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-click-button.entry.cjs.js.map +1 -1
  82. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-combobox.entry.cjs.js.map +1 -1
  84. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-details.entry.cjs.js.map +1 -1
  86. package/dist/cjs/kol-dialog-wc.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-dialog.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-dialog.entry.cjs.js.map +1 -1
  89. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-drawer.entry.cjs.js.map +1 -1
  91. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-form.entry.cjs.js.map +1 -1
  93. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-heading.entry.cjs.js.map +1 -1
  95. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-icon.entry.cjs.js.map +1 -1
  97. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-image.entry.cjs.js.map +1 -1
  99. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +1 -1
  101. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-input-color.entry.cjs.js.map +1 -1
  103. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-input-date.entry.cjs.js.map +1 -1
  105. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-input-email.entry.cjs.js.map +1 -1
  107. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-input-file.entry.cjs.js.map +1 -1
  109. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-input-number.entry.cjs.js.map +1 -1
  111. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-input-password.entry.cjs.js.map +1 -1
  113. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-input-radio.entry.cjs.js.map +1 -1
  115. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-input-range.entry.cjs.js.map +1 -1
  117. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-input-text.entry.cjs.js.map +1 -1
  119. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-link-button.entry.cjs.js.map +1 -1
  122. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-link-wc.entry.cjs.js.map +1 -1
  124. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-link.entry.cjs.js.map +1 -1
  126. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-modal.entry.cjs.js.map +1 -1
  128. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-pagination.entry.cjs.js.map +1 -1
  132. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-popover-button-wc.entry.cjs.js.map +1 -1
  134. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-popover-button.entry.cjs.js.map +1 -1
  136. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-progress.entry.cjs.js.map +1 -1
  138. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-quote.entry.cjs.js.map +1 -1
  140. package/dist/cjs/kol-select-wc.cjs.entry.js +1 -1
  141. package/dist/cjs/kol-select-wc.entry.cjs.js.map +1 -1
  142. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  143. package/dist/cjs/kol-select.entry.cjs.js.map +1 -1
  144. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  145. package/dist/cjs/kol-single-select.entry.cjs.js.map +1 -1
  146. package/dist/cjs/kol-skeleton.cjs.entry.js +1 -1
  147. package/dist/cjs/kol-skeleton.entry.cjs.js.map +1 -1
  148. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  149. package/dist/cjs/kol-skip-nav.entry.cjs.js.map +1 -1
  150. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  151. package/dist/cjs/kol-spin.entry.cjs.js.map +1 -1
  152. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  153. package/dist/cjs/kol-split-button.entry.cjs.js.map +1 -1
  154. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  155. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  156. package/dist/cjs/kol-table-stateful.entry.cjs.js.map +1 -1
  157. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  158. package/dist/cjs/kol-table-stateless-wc.entry.cjs.js.map +1 -1
  159. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  160. package/dist/cjs/kol-table-stateless.entry.cjs.js.map +1 -1
  161. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  162. package/dist/cjs/kol-tabs.entry.cjs.js.map +1 -1
  163. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  164. package/dist/cjs/kol-textarea.entry.cjs.js.map +1 -1
  165. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  166. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  167. package/dist/cjs/kol-toolbar.entry.cjs.js.map +1 -1
  168. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  169. package/dist/cjs/kol-tooltip-wc.entry.cjs.js.map +1 -1
  170. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  171. package/dist/cjs/kol-tree-item-wc.entry.cjs.js.map +1 -1
  172. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  173. package/dist/cjs/kol-tree-item.entry.cjs.js.map +1 -1
  174. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  175. package/dist/cjs/kol-tree-wc.entry.cjs.js.map +1 -1
  176. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  177. package/dist/cjs/kol-tree.entry.cjs.js.map +1 -1
  178. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  179. package/dist/cjs/kolibri.cjs.js +1 -1
  180. package/dist/cjs/label-BF7V8pKT.js +4 -0
  181. package/dist/cjs/{label-B_UDbK0o.js.map → label-BF7V8pKT.js.map} +1 -1
  182. package/dist/cjs/label-DBPPhxGb.js +4 -0
  183. package/dist/cjs/label-DBPPhxGb.js.map +1 -0
  184. package/dist/cjs/level-Cx2QUciw.js +4 -0
  185. package/dist/cjs/level-Cx2QUciw.js.map +1 -0
  186. package/dist/cjs/loader.cjs.js +1 -1
  187. package/dist/cjs/normalizers-CAkJKmom.js +4 -0
  188. package/dist/{kolibri/base-web-component-CWGkWR9Y.js.map → cjs/normalizers-CAkJKmom.js.map} +1 -1
  189. package/dist/cjs/src-DRDt5ioI.js +4 -0
  190. package/dist/cjs/{src-Ck6dV61v.js.map → src-DRDt5ioI.js.map} +1 -1
  191. package/dist/cjs/test-component.cjs.entry.js +1 -1
  192. package/dist/cjs/validation-BGCidVNn.js +4 -0
  193. package/dist/cjs/validation-BGCidVNn.js.map +1 -0
  194. package/dist/components/base-web-component.js +1 -1
  195. package/dist/components/base-web-component.js.map +1 -1
  196. package/dist/components/component-names.js +1 -1
  197. package/dist/components/component-names.js.map +1 -1
  198. package/dist/components/component.js +1 -1
  199. package/dist/components/component.js.map +1 -1
  200. package/dist/components/controller3.js +1 -1
  201. package/dist/components/controller3.js.map +1 -1
  202. package/dist/components/controller4.js +1 -1
  203. package/dist/components/element-focus.js +4 -0
  204. package/dist/components/element-focus.js.map +1 -0
  205. package/dist/components/kol-abbr.js +1 -1
  206. package/dist/components/kol-accordion.js +1 -1
  207. package/dist/components/kol-accordion.js.map +1 -1
  208. package/dist/components/kol-alert-wc.js +1 -1
  209. package/dist/components/kol-alert-wc.js.map +1 -1
  210. package/dist/components/kol-alert.js +1 -1
  211. package/dist/components/kol-avatar.js +1 -1
  212. package/dist/components/kol-avatar.js.map +1 -1
  213. package/dist/components/kol-badge.js +1 -1
  214. package/dist/components/kol-badge.js.map +1 -1
  215. package/dist/components/kol-breadcrumb.js +1 -1
  216. package/dist/components/kol-breadcrumb.js.map +1 -1
  217. package/dist/components/kol-button-link.js +1 -1
  218. package/dist/components/kol-button-link.js.map +1 -1
  219. package/dist/components/kol-button-wc.js +1 -1
  220. package/dist/components/kol-button-wc.js.map +1 -1
  221. package/dist/components/kol-button.js +1 -1
  222. package/dist/components/kol-button.js.map +1 -1
  223. package/dist/components/kol-card-wc.js +1 -1
  224. package/dist/components/kol-card.js +1 -1
  225. package/dist/components/kol-card.js.map +1 -1
  226. package/dist/components/kol-click-button.js +1 -1
  227. package/dist/components/kol-combobox.js +1 -1
  228. package/dist/components/kol-combobox.js.map +1 -1
  229. package/dist/components/kol-details.js +1 -1
  230. package/dist/components/kol-details.js.map +1 -1
  231. package/dist/components/kol-dialog.js +1 -1
  232. package/dist/components/kol-dialog.js.map +1 -1
  233. package/dist/components/kol-drawer.js +1 -1
  234. package/dist/components/kol-drawer.js.map +1 -1
  235. package/dist/components/kol-form.js +1 -1
  236. package/dist/components/kol-form.js.map +1 -1
  237. package/dist/components/kol-heading.js +1 -1
  238. package/dist/components/kol-heading.js.map +1 -1
  239. package/dist/components/kol-icon.js +1 -1
  240. package/dist/components/kol-icon.js.map +1 -1
  241. package/dist/components/kol-image.js +1 -1
  242. package/dist/components/kol-image.js.map +1 -1
  243. package/dist/components/kol-input-checkbox.js +1 -1
  244. package/dist/components/kol-input-checkbox.js.map +1 -1
  245. package/dist/components/kol-input-color.js +1 -1
  246. package/dist/components/kol-input-color.js.map +1 -1
  247. package/dist/components/kol-input-date.js +1 -1
  248. package/dist/components/kol-input-date.js.map +1 -1
  249. package/dist/components/kol-input-email.js +1 -1
  250. package/dist/components/kol-input-email.js.map +1 -1
  251. package/dist/components/kol-input-file.js +1 -1
  252. package/dist/components/kol-input-file.js.map +1 -1
  253. package/dist/components/kol-input-number.js +1 -1
  254. package/dist/components/kol-input-number.js.map +1 -1
  255. package/dist/components/kol-input-password.js +1 -1
  256. package/dist/components/kol-input-password.js.map +1 -1
  257. package/dist/components/kol-input-radio.js +1 -1
  258. package/dist/components/kol-input-radio.js.map +1 -1
  259. package/dist/components/kol-input-range.js +1 -1
  260. package/dist/components/kol-input-range.js.map +1 -1
  261. package/dist/components/kol-input-text.js +1 -1
  262. package/dist/components/kol-input-text.js.map +1 -1
  263. package/dist/components/kol-link-button.js +1 -1
  264. package/dist/components/kol-link-button.js.map +1 -1
  265. package/dist/components/kol-link-wc.js +1 -1
  266. package/dist/components/kol-link-wc.js.map +1 -1
  267. package/dist/components/kol-link.js +1 -1
  268. package/dist/components/kol-link.js.map +1 -1
  269. package/dist/components/kol-modal.js +1 -1
  270. package/dist/components/kol-modal.js.map +1 -1
  271. package/dist/components/kol-nav.js +1 -1
  272. package/dist/components/kol-pagination.js +1 -1
  273. package/dist/components/kol-pagination.js.map +1 -1
  274. package/dist/components/kol-popover-button-wc.js +1 -1
  275. package/dist/components/kol-popover-button-wc.js.map +1 -1
  276. package/dist/components/kol-popover-button.js +1 -1
  277. package/dist/components/kol-popover-button.js.map +1 -1
  278. package/dist/components/kol-progress.js +1 -1
  279. package/dist/components/kol-progress.js.map +1 -1
  280. package/dist/components/kol-quote.js +1 -1
  281. package/dist/components/kol-quote.js.map +1 -1
  282. package/dist/components/kol-select-wc.js +1 -1
  283. package/dist/components/kol-select-wc.js.map +1 -1
  284. package/dist/components/kol-select.js +1 -1
  285. package/dist/components/kol-select.js.map +1 -1
  286. package/dist/components/kol-single-select.js +1 -1
  287. package/dist/components/kol-single-select.js.map +1 -1
  288. package/dist/components/kol-skeleton.js +1 -1
  289. package/dist/components/kol-skeleton.js.map +1 -1
  290. package/dist/components/kol-skip-nav.js +1 -1
  291. package/dist/components/kol-skip-nav.js.map +1 -1
  292. package/dist/components/kol-spin.js +1 -1
  293. package/dist/components/kol-spin.js.map +1 -1
  294. package/dist/components/kol-split-button.js +1 -1
  295. package/dist/components/kol-split-button.js.map +1 -1
  296. package/dist/components/kol-table-settings-wc.js +1 -1
  297. package/dist/components/kol-table-stateful.js +1 -1
  298. package/dist/components/kol-table-stateful.js.map +1 -1
  299. package/dist/components/kol-table-stateless-wc.js +1 -1
  300. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  301. package/dist/components/kol-table-stateless.js +1 -1
  302. package/dist/components/kol-table-stateless.js.map +1 -1
  303. package/dist/components/kol-tabs.js +1 -1
  304. package/dist/components/kol-tabs.js.map +1 -1
  305. package/dist/components/kol-textarea.js +1 -1
  306. package/dist/components/kol-textarea.js.map +1 -1
  307. package/dist/components/kol-toast-container.js +1 -1
  308. package/dist/components/kol-toolbar.js +1 -1
  309. package/dist/components/kol-toolbar.js.map +1 -1
  310. package/dist/components/kol-tooltip-wc.js +1 -1
  311. package/dist/components/kol-tooltip-wc.js.map +1 -1
  312. package/dist/components/kol-tree-item-wc.js +1 -1
  313. package/dist/components/kol-tree-item-wc.js.map +1 -1
  314. package/dist/components/kol-tree-item.js +1 -1
  315. package/dist/components/kol-tree-item.js.map +1 -1
  316. package/dist/components/kol-tree-wc.js +1 -1
  317. package/dist/components/kol-tree-wc.js.map +1 -1
  318. package/dist/components/kol-tree.js +1 -1
  319. package/dist/components/kol-tree.js.map +1 -1
  320. package/dist/components/kol-version.js +1 -1
  321. package/dist/components/label.js +1 -1
  322. package/dist/components/label.js.map +1 -1
  323. package/dist/components/label2.js +1 -1
  324. package/dist/components/level.js +4 -0
  325. package/dist/components/level.js.map +1 -0
  326. package/dist/components/normalizers.js +4 -0
  327. package/dist/components/normalizers.js.map +1 -0
  328. package/dist/components/src.js +1 -1
  329. package/dist/components/validation.js +1 -1
  330. package/dist/components/validation.js.map +1 -1
  331. package/dist/esm/{Alert-SEfIw75e.js → Alert-CORQhEOH.js} +1 -1
  332. package/dist/{kolibri/Alert-SEfIw75e.js.map → esm/Alert-CORQhEOH.js.map} +1 -1
  333. package/dist/esm/{Collapsible-BJmhBOFS.js → Collapsible-DABtrDt0.js} +1 -1
  334. package/dist/esm/{Collapsible-BJmhBOFS.js.map → Collapsible-DABtrDt0.js.map} +1 -1
  335. package/dist/esm/{CustomSuggestionsOptionsGroup-BLcy0M21.js → CustomSuggestionsOptionsGroup-z6yUfEq6.js} +1 -1
  336. package/dist/{kolibri/CustomSuggestionsOptionsGroup-BLcy0M21.js.map → esm/CustomSuggestionsOptionsGroup-z6yUfEq6.js.map} +1 -1
  337. package/dist/esm/{FieldControlStateWrapper-BB5w_l7S.js → FieldControlStateWrapper-Hw33niBe.js} +1 -1
  338. package/dist/{kolibri/FieldControlStateWrapper-BB5w_l7S.js.map → esm/FieldControlStateWrapper-Hw33niBe.js.map} +1 -1
  339. package/dist/esm/FormFieldStateWrapper-CMzIS3jo.js +4 -0
  340. package/dist/esm/FormFieldStateWrapper-CMzIS3jo.js.map +1 -0
  341. package/dist/esm/{Heading-CC-ueMZ4.js → Heading-DGA0Cfz4.js} +1 -1
  342. package/dist/esm/{Heading-CC-ueMZ4.js.map → Heading-DGA0Cfz4.js.map} +1 -1
  343. package/dist/esm/{Input-DITvkoGT.js → Input-CPh4PbnE.js} +1 -1
  344. package/dist/esm/{Input-DITvkoGT.js.map → Input-CPh4PbnE.js.map} +1 -1
  345. package/dist/esm/{InputStateWrapper-DnMUPWkd.js → InputStateWrapper-BpDvZdjV.js} +1 -1
  346. package/dist/{kolibri/InputStateWrapper-DnMUPWkd.js.map → esm/InputStateWrapper-BpDvZdjV.js.map} +1 -1
  347. package/dist/esm/{app-globals-BZVRuPmn.js → app-globals-CAX7ftHp.js} +1 -1
  348. package/dist/esm/{app-globals-BZVRuPmn.js.map → app-globals-CAX7ftHp.js.map} +1 -1
  349. package/dist/esm/{associated.controller-DCpxG_66.js → associated.controller-DKliwG01.js} +1 -1
  350. package/dist/esm/{associated.controller-DCpxG_66.js.map → associated.controller-DKliwG01.js.map} +1 -1
  351. package/dist/esm/base-web-component-CjUKwppg.js +4 -0
  352. package/dist/esm/base-web-component-CjUKwppg.js.map +1 -0
  353. package/dist/esm/{bootstrap-CyhVeeHa.js → bootstrap-7FNy-lUW.js} +1 -1
  354. package/dist/esm/{bootstrap-CyhVeeHa.js.map → bootstrap-7FNy-lUW.js.map} +1 -1
  355. package/dist/esm/{component-CraT9mqx.js → component-DAA4D_2G.js} +1 -1
  356. package/dist/esm/{component-CraT9mqx.js.map → component-DAA4D_2G.js.map} +1 -1
  357. package/dist/esm/{component-Hu7IB74c.js → component-Y0CenpG-.js} +1 -1
  358. package/dist/esm/{component-Hu7IB74c.js.map → component-Y0CenpG-.js.map} +1 -1
  359. package/dist/esm/component-names-C64MXeC1.js +4 -0
  360. package/dist/esm/component-names-C64MXeC1.js.map +1 -0
  361. package/dist/esm/{controller-D2K5zD5B.js → controller-BShVWk74.js} +1 -1
  362. package/dist/{kolibri/controller-D2K5zD5B.js.map → esm/controller-BShVWk74.js.map} +1 -1
  363. package/dist/esm/{controller-nDa_fsDo.js → controller-BZMujBp5.js} +1 -1
  364. package/dist/esm/{controller-nDa_fsDo.js.map → controller-BZMujBp5.js.map} +1 -1
  365. package/dist/esm/{controller-_xUb5o7B.js → controller-Cu00AgMb.js} +1 -1
  366. package/dist/{kolibri/controller-_xUb5o7B.js.map → esm/controller-Cu00AgMb.js.map} +1 -1
  367. package/dist/esm/{controller-D-JlwVeq.js → controller-DiBOXIb0.js} +1 -1
  368. package/dist/{kolibri/controller-D-JlwVeq.js.map → esm/controller-DiBOXIb0.js.map} +1 -1
  369. package/dist/esm/{controller-BycnRnHB.js → controller-DnEjIj63.js} +1 -1
  370. package/dist/esm/{controller-BycnRnHB.js.map → controller-DnEjIj63.js.map} +1 -1
  371. package/dist/esm/{controller-icon-CtBWDrG3.js → controller-icon-vljOlbY1.js} +1 -1
  372. package/dist/{kolibri/controller-icon-CtBWDrG3.js.map → esm/controller-icon-vljOlbY1.js.map} +1 -1
  373. package/dist/esm/{dev.utils-_tIxkFEq.js → dev.utils-IjSA8j2T.js} +1 -1
  374. package/dist/esm/{dev.utils-_tIxkFEq.js.map → dev.utils-IjSA8j2T.js.map} +1 -1
  375. package/dist/esm/{devtools-Shxsg0kz.js → devtools-C-hJnUOY.js} +1 -1
  376. package/dist/esm/{devtools-Shxsg0kz.js.map → devtools-C-hJnUOY.js.map} +1 -1
  377. package/dist/esm/element-focus-y2O-Z32P.js +4 -0
  378. package/dist/esm/element-focus-y2O-Z32P.js.map +1 -0
  379. package/dist/esm/index-B-M3er72.js +4 -0
  380. package/dist/{kolibri/index-C-7ueFeG.js.map → esm/index-B-M3er72.js.map} +1 -1
  381. package/dist/esm/index.js +1 -1
  382. package/dist/esm/kol-abbr.entry.js +1 -1
  383. package/dist/esm/kol-accordion.entry.js +1 -1
  384. package/dist/esm/kol-accordion.entry.js.map +1 -1
  385. package/dist/esm/kol-alert-wc.entry.js +1 -1
  386. package/dist/esm/kol-alert-wc.entry.js.map +1 -1
  387. package/dist/esm/kol-alert.entry.js +1 -1
  388. package/dist/esm/kol-avatar.entry.js +1 -1
  389. package/dist/esm/kol-avatar.entry.js.map +1 -1
  390. package/dist/esm/kol-badge.entry.js +1 -1
  391. package/dist/esm/kol-badge.entry.js.map +1 -1
  392. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  393. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  394. package/dist/esm/kol-button-link.entry.js +1 -1
  395. package/dist/esm/kol-button-link.entry.js.map +1 -1
  396. package/dist/esm/kol-button-wc.entry.js +1 -1
  397. package/dist/esm/kol-button-wc.entry.js.map +1 -1
  398. package/dist/esm/kol-button.entry.js +1 -1
  399. package/dist/esm/kol-button.entry.js.map +1 -1
  400. package/dist/esm/kol-card-wc.entry.js +1 -1
  401. package/dist/esm/kol-card-wc.entry.js.map +1 -1
  402. package/dist/esm/kol-card.entry.js +1 -1
  403. package/dist/esm/kol-card.entry.js.map +1 -1
  404. package/dist/esm/kol-click-button.entry.js +1 -1
  405. package/dist/esm/kol-click-button.entry.js.map +1 -1
  406. package/dist/esm/kol-combobox.entry.js +1 -1
  407. package/dist/esm/kol-combobox.entry.js.map +1 -1
  408. package/dist/esm/kol-details.entry.js +1 -1
  409. package/dist/esm/kol-details.entry.js.map +1 -1
  410. package/dist/esm/kol-dialog-wc.entry.js +1 -1
  411. package/dist/esm/kol-dialog.entry.js +1 -1
  412. package/dist/esm/kol-dialog.entry.js.map +1 -1
  413. package/dist/esm/kol-drawer.entry.js +1 -1
  414. package/dist/esm/kol-drawer.entry.js.map +1 -1
  415. package/dist/esm/kol-form.entry.js +1 -1
  416. package/dist/esm/kol-form.entry.js.map +1 -1
  417. package/dist/esm/kol-heading.entry.js +1 -1
  418. package/dist/esm/kol-heading.entry.js.map +1 -1
  419. package/dist/esm/kol-icon.entry.js +1 -1
  420. package/dist/esm/kol-icon.entry.js.map +1 -1
  421. package/dist/esm/kol-image.entry.js +1 -1
  422. package/dist/esm/kol-image.entry.js.map +1 -1
  423. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  424. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  425. package/dist/esm/kol-input-color.entry.js +1 -1
  426. package/dist/esm/kol-input-color.entry.js.map +1 -1
  427. package/dist/esm/kol-input-date.entry.js +1 -1
  428. package/dist/esm/kol-input-date.entry.js.map +1 -1
  429. package/dist/esm/kol-input-email.entry.js +1 -1
  430. package/dist/esm/kol-input-email.entry.js.map +1 -1
  431. package/dist/esm/kol-input-file.entry.js +1 -1
  432. package/dist/esm/kol-input-file.entry.js.map +1 -1
  433. package/dist/esm/kol-input-number.entry.js +1 -1
  434. package/dist/esm/kol-input-number.entry.js.map +1 -1
  435. package/dist/esm/kol-input-password.entry.js +1 -1
  436. package/dist/esm/kol-input-password.entry.js.map +1 -1
  437. package/dist/esm/kol-input-radio.entry.js +1 -1
  438. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  439. package/dist/esm/kol-input-range.entry.js +1 -1
  440. package/dist/esm/kol-input-range.entry.js.map +1 -1
  441. package/dist/esm/kol-input-text.entry.js +1 -1
  442. package/dist/esm/kol-input-text.entry.js.map +1 -1
  443. package/dist/esm/kol-kolibri.entry.js +1 -1
  444. package/dist/esm/kol-link-button.entry.js +1 -1
  445. package/dist/esm/kol-link-button.entry.js.map +1 -1
  446. package/dist/esm/kol-link-wc.entry.js +1 -1
  447. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  448. package/dist/esm/kol-link.entry.js +1 -1
  449. package/dist/esm/kol-link.entry.js.map +1 -1
  450. package/dist/esm/kol-modal.entry.js +1 -1
  451. package/dist/esm/kol-modal.entry.js.map +1 -1
  452. package/dist/esm/kol-nav.entry.js +1 -1
  453. package/dist/esm/kol-pagination-wc.entry.js +1 -1
  454. package/dist/esm/kol-pagination.entry.js +1 -1
  455. package/dist/esm/kol-pagination.entry.js.map +1 -1
  456. package/dist/esm/kol-popover-button-wc.entry.js +1 -1
  457. package/dist/esm/kol-popover-button-wc.entry.js.map +1 -1
  458. package/dist/esm/kol-popover-button.entry.js +1 -1
  459. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  460. package/dist/esm/kol-progress.entry.js +1 -1
  461. package/dist/esm/kol-progress.entry.js.map +1 -1
  462. package/dist/esm/kol-quote.entry.js +1 -1
  463. package/dist/esm/kol-quote.entry.js.map +1 -1
  464. package/dist/esm/kol-select-wc.entry.js +1 -1
  465. package/dist/esm/kol-select-wc.entry.js.map +1 -1
  466. package/dist/esm/kol-select.entry.js +1 -1
  467. package/dist/esm/kol-select.entry.js.map +1 -1
  468. package/dist/esm/kol-single-select.entry.js +1 -1
  469. package/dist/esm/kol-single-select.entry.js.map +1 -1
  470. package/dist/esm/kol-skeleton.entry.js +1 -1
  471. package/dist/esm/kol-skeleton.entry.js.map +1 -1
  472. package/dist/esm/kol-skip-nav.entry.js +1 -1
  473. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  474. package/dist/esm/kol-spin.entry.js +1 -1
  475. package/dist/esm/kol-spin.entry.js.map +1 -1
  476. package/dist/esm/kol-split-button.entry.js +1 -1
  477. package/dist/esm/kol-split-button.entry.js.map +1 -1
  478. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  479. package/dist/esm/kol-table-stateful.entry.js +1 -1
  480. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  481. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  482. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  483. package/dist/esm/kol-table-stateless.entry.js +1 -1
  484. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  485. package/dist/esm/kol-tabs.entry.js +1 -1
  486. package/dist/esm/kol-tabs.entry.js.map +1 -1
  487. package/dist/esm/kol-textarea.entry.js +1 -1
  488. package/dist/esm/kol-textarea.entry.js.map +1 -1
  489. package/dist/esm/kol-toast-container.entry.js +1 -1
  490. package/dist/esm/kol-toolbar.entry.js +1 -1
  491. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  492. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  493. package/dist/esm/kol-tooltip-wc.entry.js.map +1 -1
  494. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  495. package/dist/esm/kol-tree-item-wc.entry.js.map +1 -1
  496. package/dist/esm/kol-tree-item.entry.js +1 -1
  497. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  498. package/dist/esm/kol-tree-wc.entry.js +1 -1
  499. package/dist/esm/kol-tree-wc.entry.js.map +1 -1
  500. package/dist/esm/kol-tree.entry.js +1 -1
  501. package/dist/esm/kol-tree.entry.js.map +1 -1
  502. package/dist/esm/kol-version.entry.js +1 -1
  503. package/dist/esm/kolibri.js +1 -1
  504. package/dist/esm/label-BGZcz8ue.js +4 -0
  505. package/dist/esm/{label-YA4_eF9_.js.map → label-BGZcz8ue.js.map} +1 -1
  506. package/dist/esm/label-Cw7rCjUo.js +4 -0
  507. package/dist/esm/label-Cw7rCjUo.js.map +1 -0
  508. package/dist/esm/level-C5jpNYbv.js +4 -0
  509. package/dist/esm/level-C5jpNYbv.js.map +1 -0
  510. package/dist/esm/loader.js +1 -1
  511. package/dist/esm/{base-web-component-CWGkWR9Y.js → normalizers-MuBx2xIG.js} +1 -1
  512. package/dist/esm/{base-web-component-CWGkWR9Y.js.map → normalizers-MuBx2xIG.js.map} +1 -1
  513. package/dist/esm/src-BqFarDZ1.js +4 -0
  514. package/dist/esm/{src-BDjVUE1s.js.map → src-BqFarDZ1.js.map} +1 -1
  515. package/dist/esm/test-component.entry.js +1 -1
  516. package/dist/esm/validation-s-zBxvaI.js +4 -0
  517. package/dist/esm/validation-s-zBxvaI.js.map +1 -0
  518. package/dist/kolibri/{Alert-SEfIw75e.js → Alert-CORQhEOH.js} +1 -1
  519. package/dist/{esm/Alert-SEfIw75e.js.map → kolibri/Alert-CORQhEOH.js.map} +1 -1
  520. package/dist/kolibri/Collapsible-DABtrDt0.js +4 -0
  521. package/dist/kolibri/{Collapsible-BJmhBOFS.js.map → Collapsible-DABtrDt0.js.map} +1 -1
  522. package/dist/kolibri/CustomSuggestionsOptionsGroup-z6yUfEq6.js +4 -0
  523. package/dist/{esm/CustomSuggestionsOptionsGroup-BLcy0M21.js.map → kolibri/CustomSuggestionsOptionsGroup-z6yUfEq6.js.map} +1 -1
  524. package/dist/kolibri/FieldControlStateWrapper-Hw33niBe.js +4 -0
  525. package/dist/{esm/FieldControlStateWrapper-BB5w_l7S.js.map → kolibri/FieldControlStateWrapper-Hw33niBe.js.map} +1 -1
  526. package/dist/kolibri/FormFieldStateWrapper-CMzIS3jo.js +4 -0
  527. package/dist/kolibri/FormFieldStateWrapper-CMzIS3jo.js.map +1 -0
  528. package/dist/kolibri/Heading-DGA0Cfz4.js +4 -0
  529. package/dist/kolibri/{Heading-CC-ueMZ4.js.map → Heading-DGA0Cfz4.js.map} +1 -1
  530. package/dist/kolibri/Input-CPh4PbnE.js +4 -0
  531. package/dist/kolibri/{Input-DITvkoGT.js.map → Input-CPh4PbnE.js.map} +1 -1
  532. package/dist/kolibri/{InputStateWrapper-DnMUPWkd.js → InputStateWrapper-BpDvZdjV.js} +1 -1
  533. package/dist/{esm/InputStateWrapper-DnMUPWkd.js.map → kolibri/InputStateWrapper-BpDvZdjV.js.map} +1 -1
  534. package/dist/kolibri/app-globals-CAX7ftHp.js +4 -0
  535. package/dist/kolibri/{app-globals-BZVRuPmn.js.map → app-globals-CAX7ftHp.js.map} +1 -1
  536. package/dist/kolibri/{associated.controller-DCpxG_66.js → associated.controller-DKliwG01.js} +1 -1
  537. package/dist/kolibri/{associated.controller-DCpxG_66.js.map → associated.controller-DKliwG01.js.map} +1 -1
  538. package/dist/kolibri/base-web-component-CjUKwppg.js +4 -0
  539. package/dist/kolibri/base-web-component-CjUKwppg.js.map +1 -0
  540. package/dist/kolibri/{bootstrap-CyhVeeHa.js → bootstrap-7FNy-lUW.js} +1 -1
  541. package/dist/kolibri/{bootstrap-CyhVeeHa.js.map → bootstrap-7FNy-lUW.js.map} +1 -1
  542. package/dist/kolibri/component-DAA4D_2G.js +4 -0
  543. package/dist/kolibri/{component-CraT9mqx.js.map → component-DAA4D_2G.js.map} +1 -1
  544. package/dist/kolibri/{component-Hu7IB74c.js → component-Y0CenpG-.js} +1 -1
  545. package/dist/kolibri/{component-Hu7IB74c.js.map → component-Y0CenpG-.js.map} +1 -1
  546. package/dist/kolibri/component-names-C64MXeC1.js +4 -0
  547. package/dist/kolibri/component-names-C64MXeC1.js.map +1 -0
  548. package/dist/kolibri/{controller-D2K5zD5B.js → controller-BShVWk74.js} +1 -1
  549. package/dist/{esm/controller-D2K5zD5B.js.map → kolibri/controller-BShVWk74.js.map} +1 -1
  550. package/dist/kolibri/{controller-nDa_fsDo.js → controller-BZMujBp5.js} +1 -1
  551. package/dist/kolibri/{controller-nDa_fsDo.js.map → controller-BZMujBp5.js.map} +1 -1
  552. package/dist/kolibri/{controller-_xUb5o7B.js → controller-Cu00AgMb.js} +1 -1
  553. package/dist/{esm/controller-_xUb5o7B.js.map → kolibri/controller-Cu00AgMb.js.map} +1 -1
  554. package/dist/kolibri/{controller-D-JlwVeq.js → controller-DiBOXIb0.js} +1 -1
  555. package/dist/{esm/controller-D-JlwVeq.js.map → kolibri/controller-DiBOXIb0.js.map} +1 -1
  556. package/dist/kolibri/{controller-BycnRnHB.js → controller-DnEjIj63.js} +1 -1
  557. package/dist/kolibri/{controller-BycnRnHB.js.map → controller-DnEjIj63.js.map} +1 -1
  558. package/dist/kolibri/controller-icon-vljOlbY1.js +4 -0
  559. package/dist/{esm/controller-icon-CtBWDrG3.js.map → kolibri/controller-icon-vljOlbY1.js.map} +1 -1
  560. package/dist/kolibri/{dev.utils-_tIxkFEq.js → dev.utils-IjSA8j2T.js} +1 -1
  561. package/dist/kolibri/{dev.utils-_tIxkFEq.js.map → dev.utils-IjSA8j2T.js.map} +1 -1
  562. package/dist/kolibri/devtools-C-hJnUOY.js +4 -0
  563. package/dist/kolibri/{devtools-Shxsg0kz.js.map → devtools-C-hJnUOY.js.map} +1 -1
  564. package/dist/kolibri/element-focus-y2O-Z32P.js +4 -0
  565. package/dist/kolibri/element-focus-y2O-Z32P.js.map +1 -0
  566. package/dist/kolibri/{index-C-7ueFeG.js → index-B-M3er72.js} +1 -1
  567. package/dist/{esm/index-C-7ueFeG.js.map → kolibri/index-B-M3er72.js.map} +1 -1
  568. package/dist/kolibri/index.esm.js +1 -1
  569. package/dist/kolibri/kol-abbr.entry.js +1 -1
  570. package/dist/kolibri/kol-accordion.entry.esm.js.map +1 -1
  571. package/dist/kolibri/kol-accordion.entry.js +1 -1
  572. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  573. package/dist/kolibri/kol-alert-wc.entry.esm.js.map +1 -1
  574. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  575. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
  576. package/dist/kolibri/kol-alert.entry.js +1 -1
  577. package/dist/kolibri/kol-avatar.entry.esm.js.map +1 -1
  578. package/dist/kolibri/kol-avatar.entry.js +1 -1
  579. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  580. package/dist/kolibri/kol-badge.entry.esm.js.map +1 -1
  581. package/dist/kolibri/kol-badge.entry.js +1 -1
  582. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  583. package/dist/kolibri/kol-breadcrumb.entry.esm.js.map +1 -1
  584. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  585. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  586. package/dist/kolibri/kol-button-link.entry.esm.js.map +1 -1
  587. package/dist/kolibri/kol-button-link.entry.js +1 -1
  588. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  589. package/dist/kolibri/kol-button-wc.entry.esm.js.map +1 -1
  590. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  591. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  592. package/dist/kolibri/kol-button.entry.esm.js.map +1 -1
  593. package/dist/kolibri/kol-button.entry.js +1 -1
  594. package/dist/kolibri/kol-button.entry.js.map +1 -1
  595. package/dist/kolibri/kol-card-wc.entry.esm.js.map +1 -1
  596. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  597. package/dist/kolibri/kol-card-wc.entry.js.map +1 -1
  598. package/dist/kolibri/kol-card.entry.esm.js.map +1 -1
  599. package/dist/kolibri/kol-card.entry.js +1 -1
  600. package/dist/kolibri/kol-card.entry.js.map +1 -1
  601. package/dist/kolibri/kol-click-button.entry.esm.js.map +1 -1
  602. package/dist/kolibri/kol-click-button.entry.js +1 -1
  603. package/dist/kolibri/kol-click-button.entry.js.map +1 -1
  604. package/dist/kolibri/kol-combobox.entry.esm.js.map +1 -1
  605. package/dist/kolibri/kol-combobox.entry.js +1 -1
  606. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  607. package/dist/kolibri/kol-details.entry.esm.js.map +1 -1
  608. package/dist/kolibri/kol-details.entry.js +1 -1
  609. package/dist/kolibri/kol-details.entry.js.map +1 -1
  610. package/dist/kolibri/kol-dialog-wc.entry.js +1 -1
  611. package/dist/kolibri/kol-dialog.entry.esm.js.map +1 -1
  612. package/dist/kolibri/kol-dialog.entry.js +1 -1
  613. package/dist/kolibri/kol-dialog.entry.js.map +1 -1
  614. package/dist/kolibri/kol-drawer.entry.esm.js.map +1 -1
  615. package/dist/kolibri/kol-drawer.entry.js +1 -1
  616. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  617. package/dist/kolibri/kol-form.entry.esm.js.map +1 -1
  618. package/dist/kolibri/kol-form.entry.js +1 -1
  619. package/dist/kolibri/kol-form.entry.js.map +1 -1
  620. package/dist/kolibri/kol-heading.entry.esm.js.map +1 -1
  621. package/dist/kolibri/kol-heading.entry.js +1 -1
  622. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  623. package/dist/kolibri/kol-icon.entry.esm.js.map +1 -1
  624. package/dist/kolibri/kol-icon.entry.js +1 -1
  625. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  626. package/dist/kolibri/kol-image.entry.esm.js.map +1 -1
  627. package/dist/kolibri/kol-image.entry.js +1 -1
  628. package/dist/kolibri/kol-image.entry.js.map +1 -1
  629. package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +1 -1
  630. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  631. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  632. package/dist/kolibri/kol-input-color.entry.esm.js.map +1 -1
  633. package/dist/kolibri/kol-input-color.entry.js +1 -1
  634. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  635. package/dist/kolibri/kol-input-date.entry.esm.js.map +1 -1
  636. package/dist/kolibri/kol-input-date.entry.js +1 -1
  637. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  638. package/dist/kolibri/kol-input-email.entry.esm.js.map +1 -1
  639. package/dist/kolibri/kol-input-email.entry.js +1 -1
  640. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  641. package/dist/kolibri/kol-input-file.entry.esm.js.map +1 -1
  642. package/dist/kolibri/kol-input-file.entry.js +1 -1
  643. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  644. package/dist/kolibri/kol-input-number.entry.esm.js.map +1 -1
  645. package/dist/kolibri/kol-input-number.entry.js +1 -1
  646. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  647. package/dist/kolibri/kol-input-password.entry.esm.js.map +1 -1
  648. package/dist/kolibri/kol-input-password.entry.js +1 -1
  649. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  650. package/dist/kolibri/kol-input-radio.entry.esm.js.map +1 -1
  651. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  652. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  653. package/dist/kolibri/kol-input-range.entry.esm.js.map +1 -1
  654. package/dist/kolibri/kol-input-range.entry.js +1 -1
  655. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  656. package/dist/kolibri/kol-input-text.entry.esm.js.map +1 -1
  657. package/dist/kolibri/kol-input-text.entry.js +1 -1
  658. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  659. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  660. package/dist/kolibri/kol-link-button.entry.esm.js.map +1 -1
  661. package/dist/kolibri/kol-link-button.entry.js +1 -1
  662. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  663. package/dist/kolibri/kol-link-wc.entry.esm.js.map +1 -1
  664. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  665. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  666. package/dist/kolibri/kol-link.entry.esm.js.map +1 -1
  667. package/dist/kolibri/kol-link.entry.js +1 -1
  668. package/dist/kolibri/kol-link.entry.js.map +1 -1
  669. package/dist/kolibri/kol-modal.entry.esm.js.map +1 -1
  670. package/dist/kolibri/kol-modal.entry.js +1 -1
  671. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  672. package/dist/kolibri/kol-nav.entry.js +1 -1
  673. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  674. package/dist/kolibri/kol-pagination.entry.esm.js.map +1 -1
  675. package/dist/kolibri/kol-pagination.entry.js +1 -1
  676. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  677. package/dist/kolibri/kol-popover-button-wc.entry.esm.js.map +1 -1
  678. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  679. package/dist/kolibri/kol-popover-button-wc.entry.js.map +1 -1
  680. package/dist/kolibri/kol-popover-button.entry.esm.js.map +1 -1
  681. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  682. package/dist/kolibri/kol-popover-button.entry.js.map +1 -1
  683. package/dist/kolibri/kol-progress.entry.esm.js.map +1 -1
  684. package/dist/kolibri/kol-progress.entry.js +1 -1
  685. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  686. package/dist/kolibri/kol-quote.entry.esm.js.map +1 -1
  687. package/dist/kolibri/kol-quote.entry.js +1 -1
  688. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  689. package/dist/kolibri/kol-select-wc.entry.esm.js.map +1 -1
  690. package/dist/kolibri/kol-select-wc.entry.js +1 -1
  691. package/dist/kolibri/kol-select-wc.entry.js.map +1 -1
  692. package/dist/kolibri/kol-select.entry.esm.js.map +1 -1
  693. package/dist/kolibri/kol-select.entry.js +1 -1
  694. package/dist/kolibri/kol-select.entry.js.map +1 -1
  695. package/dist/kolibri/kol-single-select.entry.esm.js.map +1 -1
  696. package/dist/kolibri/kol-single-select.entry.js +1 -1
  697. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  698. package/dist/kolibri/kol-skeleton.entry.esm.js.map +1 -1
  699. package/dist/kolibri/kol-skeleton.entry.js +1 -1
  700. package/dist/kolibri/kol-skeleton.entry.js.map +1 -1
  701. package/dist/kolibri/kol-skip-nav.entry.esm.js.map +1 -1
  702. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  703. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  704. package/dist/kolibri/kol-spin.entry.esm.js.map +1 -1
  705. package/dist/kolibri/kol-spin.entry.js +1 -1
  706. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  707. package/dist/kolibri/kol-split-button.entry.esm.js.map +1 -1
  708. package/dist/kolibri/kol-split-button.entry.js +1 -1
  709. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  710. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  711. package/dist/kolibri/kol-table-stateful.entry.esm.js.map +1 -1
  712. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  713. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  714. package/dist/kolibri/kol-table-stateless-wc.entry.esm.js.map +1 -1
  715. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  716. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
  717. package/dist/kolibri/kol-table-stateless.entry.esm.js.map +1 -1
  718. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  719. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  720. package/dist/kolibri/kol-tabs.entry.esm.js.map +1 -1
  721. package/dist/kolibri/kol-tabs.entry.js +1 -1
  722. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  723. package/dist/kolibri/kol-textarea.entry.esm.js.map +1 -1
  724. package/dist/kolibri/kol-textarea.entry.js +1 -1
  725. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  726. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  727. package/dist/kolibri/kol-toolbar.entry.esm.js.map +1 -1
  728. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  729. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  730. package/dist/kolibri/kol-tooltip-wc.entry.esm.js.map +1 -1
  731. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  732. package/dist/kolibri/kol-tree-item-wc.entry.esm.js.map +1 -1
  733. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  734. package/dist/kolibri/kol-tree-item-wc.entry.js.map +1 -1
  735. package/dist/kolibri/kol-tree-item.entry.esm.js.map +1 -1
  736. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  737. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  738. package/dist/kolibri/kol-tree-wc.entry.esm.js.map +1 -1
  739. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  740. package/dist/kolibri/kol-tree-wc.entry.js.map +1 -1
  741. package/dist/kolibri/kol-tree.entry.esm.js.map +1 -1
  742. package/dist/kolibri/kol-tree.entry.js +1 -1
  743. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  744. package/dist/kolibri/kol-version.entry.js +1 -1
  745. package/dist/kolibri/kolibri.esm.js +1 -1
  746. package/dist/kolibri/label-BGZcz8ue.js +4 -0
  747. package/dist/kolibri/{label-YA4_eF9_.js.map → label-BGZcz8ue.js.map} +1 -1
  748. package/dist/kolibri/label-Cw7rCjUo.js +4 -0
  749. package/dist/kolibri/label-Cw7rCjUo.js.map +1 -0
  750. package/dist/kolibri/level-C5jpNYbv.js +4 -0
  751. package/dist/kolibri/level-C5jpNYbv.js.map +1 -0
  752. package/dist/kolibri/normalizers-MuBx2xIG.js +4 -0
  753. package/dist/{cjs/base-web-component-CTeSR5h4.js.map → kolibri/normalizers-MuBx2xIG.js.map} +1 -1
  754. package/dist/kolibri/src-BqFarDZ1.js +4 -0
  755. package/dist/kolibri/{src-BDjVUE1s.js.map → src-BqFarDZ1.js.map} +1 -1
  756. package/dist/kolibri/test-component.entry.js +1 -1
  757. package/dist/kolibri/validation-s-zBxvaI.js +4 -0
  758. package/dist/kolibri/validation-s-zBxvaI.js.map +1 -0
  759. package/dist/types/components/accordion/shadow.d.ts +2 -2
  760. package/dist/types/components/badge/shadow.d.ts +2 -1
  761. package/dist/types/components/button/component.d.ts +2 -0
  762. package/dist/types/components/button/shadow.d.ts +3 -2
  763. package/dist/types/components/button-link/shadow.d.ts +3 -2
  764. package/dist/types/components/combobox/shadow.d.ts +3 -3
  765. package/dist/types/components/component-list.d.ts +17 -2
  766. package/dist/types/components/details/shadow.d.ts +2 -2
  767. package/dist/types/components/heading/component.d.ts +16 -0
  768. package/dist/types/components/heading/validation.d.ts +1 -1
  769. package/dist/types/components/input-checkbox/shadow.d.ts +1 -1
  770. package/dist/types/components/input-color/shadow.d.ts +2 -2
  771. package/dist/types/components/input-date/shadow.d.ts +1 -1
  772. package/dist/types/components/input-email/shadow.d.ts +1 -1
  773. package/dist/types/components/input-file/shadow.d.ts +1 -1
  774. package/dist/types/components/input-number/shadow.d.ts +1 -1
  775. package/dist/types/components/input-password/shadow.d.ts +1 -1
  776. package/dist/types/components/input-radio/shadow.d.ts +2 -2
  777. package/dist/types/components/input-range/shadow.d.ts +2 -2
  778. package/dist/types/components/input-text/shadow.d.ts +1 -1
  779. package/dist/types/components/link/component.d.ts +2 -1
  780. package/dist/types/components/link/shadow.d.ts +3 -2
  781. package/dist/types/components/link-button/shadow.d.ts +3 -2
  782. package/dist/types/components/popover-button/component.d.ts +10 -11
  783. package/dist/types/components/popover-button/shadow.d.ts +5 -4
  784. package/dist/types/components/select/component.d.ts +1 -1
  785. package/dist/types/components/select/shadow.d.ts +3 -2
  786. package/dist/types/components/single-select/shadow.d.ts +3 -3
  787. package/dist/types/components/skip-nav/shadow.d.ts +4 -3
  788. package/dist/types/components/split-button/shadow.d.ts +8 -7
  789. package/dist/types/components/table-stateless/component.d.ts +1 -1
  790. package/dist/types/components/tabs/shadow.d.ts +5 -2
  791. package/dist/types/components/textarea/shadow.d.ts +1 -1
  792. package/dist/types/components/toolbar/shadow.d.ts +4 -3
  793. package/dist/types/components/tooltip/component.d.ts +1 -1
  794. package/dist/types/components/tree/component.d.ts +11 -4
  795. package/dist/types/components/tree/shadow.d.ts +6 -2
  796. package/dist/types/components/tree-item/component.d.ts +3 -2
  797. package/dist/types/components.d.ts +86 -89
  798. package/dist/types/core/component-names.d.ts +0 -1
  799. package/dist/types/internal/functional-components/heading/api.d.ts +6 -0
  800. package/dist/types/internal/functional-components/heading/component.d.ts +4 -0
  801. package/dist/types/internal/functional-components/heading/controller.d.ts +10 -0
  802. package/dist/types/internal/functional-components/popover/api.d.ts +5 -0
  803. package/dist/types/internal/functional-components/popover/component.d.ts +9 -0
  804. package/dist/types/internal/functional-components/popover/controller.d.ts +16 -0
  805. package/dist/types/internal/functional-components/popover/snapshot.test.d.ts +1 -0
  806. package/dist/types/internal/props/align.d.ts +4 -0
  807. package/dist/types/internal/props/index.d.ts +1 -1
  808. package/dist/types/internal/props/label-with-expert-slot.d.ts +3 -0
  809. package/dist/types/internal/props/level.d.ts +5 -0
  810. package/dist/types/internal/props/secondary-headline.d.ts +3 -0
  811. package/dist/types/schema/components/index.d.ts +1 -1
  812. package/dist/types/schema/props/index.d.ts +1 -1
  813. package/dist/types/schema/props/label.d.ts +0 -2
  814. package/dist/types/utils/element-focus.d.ts +2 -0
  815. package/doc/accordion.md +2 -2
  816. package/doc/button-link.md +2 -2
  817. package/doc/button.md +2 -2
  818. package/doc/details.md +2 -2
  819. package/doc/heading.md +3 -7
  820. package/doc/link-button.md +2 -2
  821. package/doc/link.md +2 -2
  822. package/doc/popover-button.md +11 -5
  823. package/doc/select.md +2 -2
  824. package/doc/skip-nav.md +2 -2
  825. package/doc/split-button.md +2 -2
  826. package/doc/tabs.md +13 -0
  827. package/doc/toolbar.md +13 -0
  828. package/doc/tree.md +13 -0
  829. package/package.json +5 -5
  830. package/vscode-custom-data.json +2 -2
  831. package/dist/cjs/FormFieldStateWrapper-C8Tav05H.js +0 -4
  832. package/dist/cjs/FormFieldStateWrapper-C8Tav05H.js.map +0 -1
  833. package/dist/cjs/Input-B5i_1a7W.js +0 -4
  834. package/dist/cjs/base-web-component-CTeSR5h4.js +0 -4
  835. package/dist/cjs/component-names--SvI3zRN.js +0 -4
  836. package/dist/cjs/component-names--SvI3zRN.js.map +0 -1
  837. package/dist/cjs/controller-icon-ClEpzUUk.js.map +0 -1
  838. package/dist/cjs/index-DMu8_ik9.js +0 -4
  839. package/dist/cjs/kol-popover-wc.cjs.entry.js +0 -4
  840. package/dist/cjs/kol-popover-wc.entry.cjs.js.map +0 -1
  841. package/dist/cjs/label-B_UDbK0o.js +0 -4
  842. package/dist/cjs/label-CU8lZiLE.js +0 -4
  843. package/dist/cjs/label-CU8lZiLE.js.map +0 -1
  844. package/dist/cjs/show-CCRUsfNF.js +0 -4
  845. package/dist/cjs/show-CCRUsfNF.js.map +0 -1
  846. package/dist/cjs/src-Ck6dV61v.js +0 -4
  847. package/dist/cjs/validation-30k-K_lm.js +0 -4
  848. package/dist/cjs/validation-30k-K_lm.js.map +0 -1
  849. package/dist/components/kol-popover-wc.d.ts +0 -11
  850. package/dist/components/kol-popover-wc.js +0 -4
  851. package/dist/components/kol-popover-wc.js.map +0 -1
  852. package/dist/components/show.js +0 -4
  853. package/dist/components/show.js.map +0 -1
  854. package/dist/esm/FormFieldStateWrapper-CgJ3zrOg.js +0 -4
  855. package/dist/esm/FormFieldStateWrapper-CgJ3zrOg.js.map +0 -1
  856. package/dist/esm/component-names-BQrMLr68.js +0 -4
  857. package/dist/esm/component-names-BQrMLr68.js.map +0 -1
  858. package/dist/esm/kol-popover-wc.entry.js +0 -4
  859. package/dist/esm/kol-popover-wc.entry.js.map +0 -1
  860. package/dist/esm/label-C18ud7Yt.js +0 -4
  861. package/dist/esm/label-C18ud7Yt.js.map +0 -1
  862. package/dist/esm/label-YA4_eF9_.js +0 -4
  863. package/dist/esm/show-DWCKSt29.js +0 -4
  864. package/dist/esm/show-DWCKSt29.js.map +0 -1
  865. package/dist/esm/src-BDjVUE1s.js +0 -4
  866. package/dist/esm/validation-QdERp-08.js +0 -4
  867. package/dist/esm/validation-QdERp-08.js.map +0 -1
  868. package/dist/kolibri/Collapsible-BJmhBOFS.js +0 -4
  869. package/dist/kolibri/CustomSuggestionsOptionsGroup-BLcy0M21.js +0 -4
  870. package/dist/kolibri/FieldControlStateWrapper-BB5w_l7S.js +0 -4
  871. package/dist/kolibri/FormFieldStateWrapper-CgJ3zrOg.js +0 -4
  872. package/dist/kolibri/FormFieldStateWrapper-CgJ3zrOg.js.map +0 -1
  873. package/dist/kolibri/Heading-CC-ueMZ4.js +0 -4
  874. package/dist/kolibri/Input-DITvkoGT.js +0 -4
  875. package/dist/kolibri/app-globals-BZVRuPmn.js +0 -4
  876. package/dist/kolibri/base-web-component-CWGkWR9Y.js +0 -4
  877. package/dist/kolibri/component-CraT9mqx.js +0 -4
  878. package/dist/kolibri/component-names-BQrMLr68.js +0 -4
  879. package/dist/kolibri/component-names-BQrMLr68.js.map +0 -1
  880. package/dist/kolibri/controller-icon-CtBWDrG3.js +0 -4
  881. package/dist/kolibri/devtools-Shxsg0kz.js +0 -4
  882. package/dist/kolibri/kol-popover-wc.entry.esm.js.map +0 -1
  883. package/dist/kolibri/kol-popover-wc.entry.js +0 -4
  884. package/dist/kolibri/kol-popover-wc.entry.js.map +0 -1
  885. package/dist/kolibri/label-C18ud7Yt.js +0 -4
  886. package/dist/kolibri/label-C18ud7Yt.js.map +0 -1
  887. package/dist/kolibri/label-YA4_eF9_.js +0 -4
  888. package/dist/kolibri/show-DWCKSt29.js +0 -4
  889. package/dist/kolibri/show-DWCKSt29.js.map +0 -1
  890. package/dist/kolibri/src-BDjVUE1s.js +0 -4
  891. package/dist/kolibri/validation-QdERp-08.js +0 -4
  892. package/dist/kolibri/validation-QdERp-08.js.map +0 -1
  893. package/dist/types/components/heading/shadow.d.ts +0 -13
  894. package/dist/types/components/popover/component.d.ts +0 -33
  895. package/dist/types/schema/components/popover.d.ts +0 -12
  896. package/dist/types/schema/props/level.d.ts +0 -7
  897. package/dist/types/schema/props/popover-callbacks.d.ts +0 -11
@@ -1 +1 @@
1
- {"file":"kol-popover-button-wc.js","mappings":";;;;;;;;;;;AAiBO,MAAM,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B,KAAU;AAChH,IAAA,iBAAiB,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC;AACrD,CAAC;;MCgBY,gBAAgB,GAAAA,kBAAA,CAAA,MAAA,gBAAA,SAAA,WAAA,CAAA;AAL7B,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;QASS,IAAA,CAAA,EAAE,GAA4C;YACrD,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC;SAC1C;QAEe,IAAA,CAAA,KAAK,GAAwB;AAC5C,YAAA,MAAM,EAAE,EAAE;AACV,YAAA,aAAa,EAAE,QAAQ;SACvB;AACgB,QAAA,IAAU,CAAA,UAAA,GAAG,KAAK;AAClB,QAAA,IAAW,CAAA,WAAA,GAAG,KAAK;AAyJrB,QAAA,IAAS,CAAA,SAAA,GAAa,KAAK;AAO3B,QAAA,IAAU,CAAA,U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AC,IAAI,EAAE,KAAK,CAAC;;IAG3B,iBAAiB,GAAA;AACvB,QAAA,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC;AACjC,QAAA,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement"],"sources":["src/schema/props/popover-align.ts","src/components/popover-button/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { validateAlignment } from '../validators';\n\nimport type { AlignPropType } from './align';\n\n/* types */\nexport type PopoverAlignPropType = AlignPropType;\n\n/**\n * Defines where to show the popover preferably: top, right, bottom or left.\n */\nexport type PropPopoverAlign = {\n\tpopoverAlign: PopoverAlignPropType;\n};\n\n/* validator */\nexport const validatePopoverAlign = (component: Generic.Element.Component, value?: PopoverAlignPropType): void => {\n\tvalidateAlignment(component, '_popoverAlign', value);\n};\n","import { autoUpdate } from '@floating-ui/dom';\nimport type { JSX } from '@stencil/core';\nimport { Component, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\nimport type {\n\tAccessKeyPropType,\n\tAriaDescriptionPropType,\n\tButtonCallbacksPropType,\n\tButtonTypePropType,\n\tButtonVariantPropType,\n\tCustomClassPropType,\n\tIconsPropType,\n\tIdPropType,\n\tInlinePropType,\n\tLabelWithExpertSlotPropType,\n\tPopoverAlignPropType,\n\tShortKeyPropType,\n\tStencilUnknown,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport { validateInline, validatePopoverAlign } from '../../schema';\nimport type { PopoverButtonProps, PopoverButtonStates } from '../../schema/components/popover-button';\nimport { alignFloatingElements } from '../../utils/align-floating-elements';\nimport clsx from '../../utils/clsx';\n\n/**\n * @internal\n * @slot - The popover content.\n */\n@Component({\n\ttag: 'kol-popover-button-wc',\n\tshadow: false,\n})\n// class implementing PopoverButtonProps and not API because we don't want to repeat the entire state and validation for button props\nexport class KolPopoverButton implements PopoverButtonProps {\n\tprivate refButton?: HTMLKolButtonWcElement;\n\tprivate refPopover?: HTMLDivElement;\n\tprivate cleanupAutoPositioning?: () => void;\n\tprivate on: ButtonCallbacksPropType<StencilUnknown> = {\n\t\tonClick: this.handleButtonClick.bind(this),\n\t};\n\n\t@State() public state: PopoverButtonStates = {\n\t\t_label: '',\n\t\t_popoverAlign: 'bottom',\n\t};\n\t@State() private justClosed = false;\n\t@State() private popoverOpen = false;\n\n\t/**\n\t * Hides the popover programmatically by calling the native hidePopover method.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async hidePopover() {\n\t\tvoid this.refPopover?.hidePopover();\n\t}\n\n\t/**\n\t * Show the popover programmatically by calling the native showPopover method.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async showPopover() {\n\t\tvoid this.refPopover?.showPopover();\n\t}\n\n\t/**\n\t * Sets focus on the internal element.\n\t */\n\t@Method()\n\tpublic async focus() {\n\t\treturn Promise.resolve(this.refButton?.focus());\n\t}\n\n\t/* Regarding type issue see https://github.com/microsoft/TypeScript/issues/54864 */\n\tprivate handleBeforeToggle(event: Event) {\n\t\tif ((event as ToggleEvent).newState === 'closed') {\n\t\t\tthis.justClosed = true;\n\n\t\t\tsetTimeout(() => {\n\t\t\t\t// Reset the flag after the event loop tick.\n\t\t\t\tthis.justClosed = false;\n\t\t\t}, 10); // timeout of 0 should be sufficient but doesn't work in Safari Mobile (needs further investigation).\n\t\t} else {\n\t\t\tif (this.refPopover) {\n\t\t\t\t/**\n\t\t\t\t * Avoid \"flicker\" by hiding the element until the position is set in the `toggle` event handler. `alignFloatingElements` is responsible for setting the visibility back to 'visible'.\n\t\t\t\t */\n\t\t\t\tthis.refPopover.style.visibility = 'hidden';\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate alignPopover() {\n\t\tif (this.refPopover && this.refButton) {\n\t\t\tvoid alignFloatingElements({\n\t\t\t\talign: this.state._popoverAlign,\n\t\t\t\tfloatingElement: this.refPopover,\n\t\t\t\treferenceElement: this.refButton,\n\t\t\t});\n\t\t}\n\t}\n\n\tprivate handleToggle(event: Event) {\n\t\tthis.popoverOpen = (event as ToggleEvent).newState === 'open';\n\n\t\tif (this.popoverOpen) {\n\t\t\tif (this.refPopover && this.refButton) {\n\t\t\t\tthis.cleanupAutoPositioning = autoUpdate(this.refButton, this.refPopover, () => {\n\t\t\t\t\tthis.alignPopover();\n\t\t\t\t});\n\t\t\t}\n\t\t} else if (this.cleanupAutoPositioning) {\n\t\t\tthis.cleanupAutoPositioning();\n\t\t\tthis.cleanupAutoPositioning = undefined;\n\t\t}\n\t}\n\n\tprivate handleButtonClick() {\n\t\t// If the popover was just closed by native behavior, do nothing (and let it stay closed).\n\t\tif (!this.justClosed) {\n\t\t\tthis.refPopover?.togglePopover();\n\t\t}\n\t}\n\n\tpublic componentDidRender() {\n\t\tthis.refPopover?.addEventListener('toggle', this.handleToggle.bind(this));\n\t\tthis.refPopover?.addEventListener('beforetoggle', this.handleBeforeToggle.bind(this));\n\t}\n\n\tpublic disconnectedCallback() {\n\t\tthis.refPopover?.removeEventListener('toggle', this.handleToggle.bind(this));\n\t\tthis.refPopover?.removeEventListener('beforetoggle', this.handleBeforeToggle.bind(this));\n\t\tthis.cleanupAutoPositioning?.();\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclass={clsx('kol-popover-button', {\n\t\t\t\t\t'kol-popover-button--open': this.popoverOpen,\n\t\t\t\t\t'kol-popover-button--inline': this.state._inline === true,\n\t\t\t\t\t'kol-popover-button--standalone': this.state._inline === false,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_aria-controls=\"popover\"\n\t\t\t\t\t_ariaDescription={this._ariaDescription}\n\t\t\t\t\t_ariaExpanded={this.popoverOpen}\n\t\t\t\t\t_ariaHasPopup={'dialog'}\n\t\t\t\t\t_customClass={this._customClass}\n\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t\t_icons={this._icons}\n\t\t\t\t\t_id={this._id}\n\t\t\t\t\t_inline={this._inline}\n\t\t\t\t\t_label={this._label}\n\t\t\t\t\t_name={this._name}\n\t\t\t\t\t_on={this.on}\n\t\t\t\t\t_shortKey={this._shortKey}\n\t\t\t\t\t_syncValueBySelector={this._syncValueBySelector}\n\t\t\t\t\t_tabIndex={this._tabIndex}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_type={this._type}\n\t\t\t\t\t_value={this._value}\n\t\t\t\t\t_variant={this._variant}\n\t\t\t\t\tdata-testid=\"popover-button\"\n\t\t\t\t\tclass=\"kol-popover-button__button\"\n\t\t\t\t\tref={(element) => (this.refButton = element)}\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t</KolButtonWcTag>\n\n\t\t\t\t<div ref={(element) => (this.refPopover = element)} data-testid=\"popover-content\" popover=\"auto\" id=\"popover\" class=\"kol-popover-button__popover\">\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the key combination that can be used to trigger or focus the component's interactive element.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t * @internal\n\t */\n\t@Prop() public _id?: IdPropType;\n\n\t/**\n\t * Defines whether the component is displayed as a standalone block or inline without enforcing a minimum size of 44px.\n\t */\n\t@Prop() public _inline?: InlinePropType = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: string;\n\n\t/**\n\t * Defines where to show the Popover preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _popoverAlign?: PopoverAlignPropType = 'bottom';\n\n\t/**\n\t * Adds a visual shortcut hint after the label and instructs the screen reader to read the shortcut aloud.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value of the element.\n\t */\n\t@Prop() public _value?: StencilUnknown;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: ButtonVariantPropType = 'normal';\n\n\t@Watch('_inline')\n\tpublic validateInline(value?: InlinePropType): void {\n\t\tvalidateInline(this, value, {\n\t\t\tdefaultValue: false,\n\t\t});\n\t}\n\n\t@Watch('_popoverAlign')\n\tpublic validatePopoverAlign(value?: PopoverAlignPropType): void {\n\t\tvalidatePopoverAlign(this, value);\n\t}\n\n\tpublic componentWillLoad() {\n\t\tthis.validateInline(this._inline);\n\t\tthis.validatePopoverAlign(this._popoverAlign);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-popover-button-wc.js","mappings":";;;;;;;;;;;;;;AAiBO,MAAM,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B,KAAU;AAChH,IAAA,iBAAiB,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC;AACrD,CAAC;;ACLM,MAAM,SAAS,GAAuB,CAAC,KAAK,KAAI;AACtD,IAAA,MAAM,EAAE,KAAK,GAAG,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAA,GAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAA9E,CAAsE,OAAA,EAAA,YAAA,EAAA,UAAA,EAAA,OAAA,CAAA,CAAQ;AAEpF,IAAA,QACC,CAAS,CAAA,KAAA,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,IAAI,IAAE,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,EAAC,MAAM,EAAA,CAAA,EACrF,CAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAE,IAAI,CAAC,oBAAoB,EAAE,CAAA,oBAAA,EAAuB,KAAK,CAAE,CAAA,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAI,CAAA,EACzF,CAAQ,CAAA,MAAA,EAAA,IAAA,CAAA,CACH;AAER,CAAC;;MCnBY,iBAAiB,CAAA;AAA9B,IAAA,WAAA,GAAA;AACS,QAAA,IAAI,CAAA,IAAA,GAAY,KAAK;AAIrB,QAAA,IAAK,CAAA,KAAA,G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B,CAAC,IAAI,CAAC,aAAa,CAAC;;IAGvC,kBAAkB,GAAA;AAGxB,QAAA,IAAI,IAAI,CAAC,cAAc,EAAE;YACxB,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC;;AAGlE,QAAA,IAAI,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE;YAC7B,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC;;;IAI9C,oBAAoB,GAAA;AAC1B,QAAA,IAAI,IAAI,CAAC,cAAc,EAAE;YACxB,IAAI,CAAC,cAAc,CAAC,mBAAmB,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC;;AAErE,QAAA,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE;AAC1B,QAAA,IAAI,CAAC,cAAc,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolPopoverButtonWc","__stencil_proxyCustomElement"],"sources":["src/schema/props/popover-align.ts","src/internal/functional-components/popover/component.tsx","src/internal/functional-components/popover/controller.ts","src/components/popover-button/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { validateAlignment } from '../validators';\n\nimport type { AlignPropType } from './align';\n\n/* types */\nexport type PopoverAlignPropType = AlignPropType;\n\n/**\n * Defines where to show the popover preferably: top, right, bottom or left.\n */\nexport type PropPopoverAlign = {\n\tpopoverAlign: PopoverAlignPropType;\n};\n\n/* validator */\nexport const validatePopoverAlign = (component: Generic.Element.Component, value?: PopoverAlignPropType): void => {\n\tvalidateAlignment(component, '_popoverAlign', value);\n};\n","import type { FunctionalComponent as FC } from '@stencil/core';\nimport { h } from '@stencil/core';\n\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from '../../../utils/clsx';\nimport type { FunctionalComponentProps } from '../generic-types';\nimport type { PopoverApi } from './api';\n\nexport type PopoverFCProps = FunctionalComponentProps<PopoverApi> &\n\tJSXBase.HTMLAttributes<HTMLDivElement> & {\n\t\tpopoverRef?: (el?: HTMLDivElement) => void;\n\t\tarrowRef?: (el?: HTMLDivElement) => void;\n\t};\n\nexport const PopoverFC: FC<PopoverFCProps> = (props) => {\n\tconst { align = 'bottom', popoverRef, arrowRef, class: classNames, ...rest } = props;\n\n\treturn (\n\t\t<div {...rest} class={clsx('kol-popover', classNames)} ref={popoverRef} popover=\"auto\">\n\t\t\t<div class={clsx('kol-popover__arrow', `kol-popover__arrow--${align}`)} ref={arrowRef} />\n\t\t\t<slot />\n\t\t</div>\n\t);\n};\n","import { autoUpdate } from '@floating-ui/dom';\nimport type { AlignPropType } from '../../../schema';\nimport { alignFloatingElements } from '../../../utils/align-floating-elements';\n\nexport class PopoverController {\n\tprivate show: boolean = false;\n\tprivate popoverElement?: HTMLDivElement;\n\tprivate arrowElement?: HTMLDivElement;\n\tprivate triggerElement?: HTMLElement;\n\tprivate align: AlignPropType = 'bottom';\n\tprivate cleanupAutoUpdate?: () => void;\n\n\tpublic setShow(value: boolean): void {\n\t\tthis.show = value;\n\t\tif (!this.popoverElement) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst toggleVisibility = (): void => {\n\t\t\tif (!this.popoverElement) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst isOpen = this.popoverElement.matches(':popover-open');\n\t\t\tif (this.show) {\n\t\t\t\tif (!isOpen) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.popoverElement.showPopover();\n\t\t\t\t\t\tthis.setupAutoUpdate();\n\t\t\t\t\t\tvoid this.alignPopover();\n\t\t\t\t\t} catch {\n\t\t\t\t\t\t// Ignore DOMException if already open\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (isOpen) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.popoverElement.hidePopover();\n\t\t\t\t\t\tthis.cleanupAutoUpdate?.();\n\t\t\t\t\t\tthis.cleanupAutoUpdate = undefined;\n\t\t\t\t\t} catch {\n\t\t\t\t\t\t// Ignore DOMException if already closed\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tif (this.popoverElement.isConnected) {\n\t\t\ttoggleVisibility();\n\t\t} else {\n\t\t\trequestAnimationFrame(() => {\n\t\t\t\ttoggleVisibility();\n\t\t\t});\n\t\t}\n\t}\n\n\tpublic setPopoverElementRef = (element?: HTMLDivElement): void => {\n\t\tthis.popoverElement = element;\n\t\tthis.arrowElement = element?.querySelector('.kol-popover__arrow') as HTMLDivElement | undefined;\n\t};\n\n\tpublic setTriggerElement = (element?: HTMLElement): void => {\n\t\tthis.triggerElement = element;\n\t};\n\n\tpublic setAlign = (align: AlignPropType): void => {\n\t\tthis.align = align;\n\t};\n\n\tprivate alignPopover = async (): Promise<void> => {\n\t\tif (!this.popoverElement || !this.triggerElement) {\n\t\t\treturn;\n\t\t}\n\n\t\tawait alignFloatingElements({\n\t\t\talign: this.align,\n\t\t\treferenceElement: this.triggerElement,\n\t\t\tarrowElement: this.arrowElement,\n\t\t\tfloatingElement: this.popoverElement,\n\t\t});\n\t};\n\n\tprivate setupAutoUpdate = (): void => {\n\t\tif (!this.popoverElement || !this.triggerElement || this.cleanupAutoUpdate) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.cleanupAutoUpdate = autoUpdate(this.triggerElement, this.popoverElement, () => {\n\t\t\tvoid this.alignPopover();\n\t\t});\n\t};\n\n\tpublic destroy(): void {\n\t\tthis.cleanupAutoUpdate?.();\n\t\tthis.cleanupAutoUpdate = undefined;\n\t\tthis.popoverElement = undefined;\n\t\tthis.arrowElement = undefined;\n\t\tthis.triggerElement = undefined;\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, Fragment, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\nimport { PopoverFC } from '../../internal/functional-components/popover/component';\nimport { PopoverController } from '../../internal/functional-components/popover/controller';\nimport type {\n\tAccessKeyPropType,\n\tAriaDescriptionPropType,\n\tButtonCallbacksPropType,\n\tButtonTypePropType,\n\tButtonVariantPropType,\n\tCustomClassPropType,\n\tFocusableElement,\n\tIconsPropType,\n\tIdPropType,\n\tInlinePropType,\n\tLabelWithExpertSlotPropType,\n\tPopoverAlignPropType,\n\tShortKeyPropType,\n\tStencilUnknown,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport { validateInline, validatePopoverAlign } from '../../schema';\nimport type { PopoverButtonProps, PopoverButtonStates } from '../../schema/components/popover-button';\nimport clsx from '../../utils/clsx';\nimport { nonce } from '../../utils/dev.utils';\nimport { setFocus } from '../../utils/element-focus';\n\n/**\n * @internal\n * @slot - The popover content.\n *\n * **Note:** The `_on` button callback prop is not supported. The button's `onClick` is reserved for toggling the popover.\n * Manage the popover visibility state and coordinate with the internal popover element.\n */\n@Component({\n\ttag: 'kol-popover-button-wc',\n\tshadow: false,\n})\n// class implementing PopoverButtonProps and not API because we don't want to repeat the entire state and validation for button props\nexport class KolPopoverButtonWc implements PopoverButtonProps, FocusableElement {\n\tprivate refButton?: HTMLKolButtonWcElement;\n\tprivate readonly popoverCtrl = new PopoverController();\n\tprivate popoverElement?: HTMLDivElement;\n\tprivate readonly popoverId = `popover-${nonce()}`;\n\n\tprivate readonly setPopoverElementRef = (element?: HTMLDivElement) => {\n\t\tthis.popoverElement = element;\n\t\tthis.popoverCtrl.setPopoverElementRef(element);\n\t};\n\n\tprivate readonly setButtonElementRef = (element?: HTMLKolButtonWcElement) => {\n\t\tthis.refButton = element;\n\t\tif (element) {\n\t\t\tthis.popoverCtrl.setTriggerElement(element as HTMLElement);\n\t\t}\n\t};\n\n\tprivate on: ButtonCallbacksPropType<StencilUnknown> = {\n\t\tonClick: () => {\n\t\t\tthis.popoverCtrl.setShow(!this.popoverOpen);\n\t\t},\n\t};\n\n\t@State() public state: PopoverButtonStates = {\n\t\t_label: '',\n\t\t_popoverAlign: 'bottom',\n\t\t_inline: false,\n\t};\n\t@State() private popoverOpen = false;\n\n\t/**\n\t * Hides the popover programmatically by calling the PopoverController.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async hidePopover() {\n\t\tthis.popoverCtrl.setShow(false);\n\t}\n\n\t/**\n\t * Show the popover programmatically by calling the PopoverController.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async showPopover() {\n\t\tthis.popoverCtrl.setShow(true);\n\t}\n\n\t/**\n\t * Sets focus on the internal element.\n\t */\n\t@Method()\n\tpublic async focus(): Promise<void> {\n\t\treturn setFocus(this.refButton!);\n\t}\n\n\tprivate handleToggle = (event: Event): void => {\n\t\tthis.popoverOpen = (event as ToggleEvent).newState === 'open';\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<KolButtonWcTag\n\t\t\t\t\tclass={clsx('kol-popover-button', {\n\t\t\t\t\t\t'kol-popover-button--open': this.popoverOpen,\n\t\t\t\t\t\t'kol-popover-button--inline': this.state._inline === true,\n\t\t\t\t\t\t'kol-popover-button--standalone': this.state._inline === false,\n\t\t\t\t\t})}\n\t\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t\t_ariaControls={this.popoverId}\n\t\t\t\t\t_ariaDescription={this._ariaDescription}\n\t\t\t\t\t_ariaExpanded={this.popoverOpen}\n\t\t\t\t\t_customClass={this._customClass}\n\t\t\t\t\t_disabled={this._disabled}\n\t\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t\t_icons={this._icons}\n\t\t\t\t\t_id={this._id}\n\t\t\t\t\t_inline={this._inline}\n\t\t\t\t\t_label={this._label}\n\t\t\t\t\t_name={this._name}\n\t\t\t\t\t_on={this.on}\n\t\t\t\t\t_shortKey={this._shortKey}\n\t\t\t\t\t_syncValueBySelector={this._syncValueBySelector}\n\t\t\t\t\t_tabIndex={this._tabIndex}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_type={this._type}\n\t\t\t\t\t_value={this._value}\n\t\t\t\t\t_variant={this._variant}\n\t\t\t\t\tref={this.setButtonElementRef}\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t</KolButtonWcTag>\n\t\t\t\t<PopoverFC align={this.state._popoverAlign || 'bottom'} popoverRef={this.setPopoverElementRef} class=\"kol-popover-button__popover\" id={this.popoverId}>\n\t\t\t\t\t<slot />\n\t\t\t\t</PopoverFC>\n\t\t\t</>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the key combination that can be used to trigger or focus the component's interactive element.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t * @internal\n\t */\n\t@Prop() public _id?: IdPropType;\n\n\t/**\n\t * Defines whether the component is displayed as a standalone block or inline without enforcing a minimum size of 44px.\n\t */\n\t@Prop() public _inline?: InlinePropType = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: string;\n\n\t/**\n\t * Defines where to show the Popover preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _popoverAlign?: PopoverAlignPropType = 'bottom';\n\n\t/**\n\t * Adds a visual shortcut hint after the label and instructs the screen reader to read the shortcut aloud.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value of the element.\n\t */\n\t@Prop() public _value?: StencilUnknown;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: ButtonVariantPropType = 'normal';\n\n\t@Watch('_inline')\n\tpublic validateInline(value?: InlinePropType): void {\n\t\tvalidateInline(this, value, {\n\t\t\tdefaultValue: false,\n\t\t});\n\t}\n\n\t@Watch('_popoverAlign')\n\tpublic validatePopoverAlign(value?: PopoverAlignPropType): void {\n\t\tvalidatePopoverAlign(this, value);\n\t\tif (value) {\n\t\t\tthis.popoverCtrl.setAlign(value);\n\t\t}\n\t}\n\n\tpublic componentWillLoad() {\n\t\tthis.validateInline(this._inline);\n\t\tthis.validatePopoverAlign(this._popoverAlign);\n\t}\n\n\tpublic componentDidRender() {\n\t\t// The popoverElement is already set via popoverRef callback from PopoverFC.\n\t\t// Register the toggle listener once the popover element is available.\n\t\tif (this.popoverElement) {\n\t\t\tthis.popoverElement.addEventListener('toggle', this.handleToggle);\n\t\t}\n\t\t// Ensure align value is synced with controller\n\t\tif (this.state._popoverAlign) {\n\t\t\tthis.popoverCtrl.setAlign(this.state._popoverAlign);\n\t\t}\n\t}\n\n\tpublic disconnectedCallback() {\n\t\tif (this.popoverElement) {\n\t\t\tthis.popoverElement.removeEventListener('toggle', this.handleToggle);\n\t\t}\n\t\tthis.popoverCtrl.destroy();\n\t\tthis.popoverElement = undefined;\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{j as KolPopoverButtonWcTag}from"./component-names.js";const defaultStyleCss='@charset "UTF-8";\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1773990435463"); /* IE9*/\n src: url("kolicons.eot?t=1773990435463#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1773990435463") format("woff2"), url("kolicons.woff?t=1773990435463") format("woff"), url("kolicons.ttf?t=1773990435463") format("truetype"), url("kolicons.svg?t=1773990435463#kolicons") format("svg"); /* iOS 4.1- */\n}\n[class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.kolicon-alert-error::before {\n content: "\\ea01";\n}\n\n.kolicon-alert-info::before {\n content: "\\ea02";\n}\n\n.kolicon-alert-success::before {\n content: "\\ea03";\n}\n\n.kolicon-alert-warning::before {\n content: "\\ea04";\n}\n\n.kolicon-check::before {\n content: "\\ea05";\n}\n\n.kolicon-chevron-double-left::before {\n content: "\\ea06";\n}\n\n.kolicon-chevron-double-right::before {\n content: "\\ea07";\n}\n\n.kolicon-chevron-down::before {\n content: "\\ea08";\n}\n\n.kolicon-chevron-left::before {\n content: "\\ea09";\n}\n\n.kolicon-chevron-right::before {\n content: "\\ea0a";\n}\n\n.kolicon-chevron-up::before {\n content: "\\ea0b";\n}\n\n.kolicon-cogwheel::before {\n content: "\\ea0c";\n}\n\n.kolicon-cross::before {\n content: "\\ea0d";\n}\n\n.kolicon-eye-closed::before {\n content: "\\ea0e";\n}\n\n.kolicon-eye::before {\n content: "\\ea0f";\n}\n\n.kolicon-house::before {\n content: "\\ea10";\n}\n\n.kolicon-kolibri::before {\n content: "\\ea11";\n}\n\n.kolicon-link-external::before {\n content: "\\ea12";\n}\n\n.kolicon-link::before {\n content: "\\ea13";\n}\n\n.kolicon-minus::before {\n content: "\\ea14";\n}\n\n.kolicon-plus::before {\n content: "\\ea15";\n}\n\n.kolicon-settings::before {\n content: "\\ea16";\n}\n\n.kolicon-sort-asc::before {\n content: "\\ea17";\n}\n\n.kolicon-sort-desc::before {\n content: "\\ea18";\n}\n\n.kolicon-sort-neutral::before {\n content: "\\ea19";\n}\n\n.kolicon-up::before {\n content: "\\ea1a";\n}\n\n.kolicon-version::before {\n content: "\\ea1b";\n}\n\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n :host {\n display: inline-block;\n }\n .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-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "​";\n }\n .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-popover-button__popover {\n margin: 0;\n padding: 0;\n border: 0;\n }\n .kol-popover-button--inline .kol-popover-button__button {\n display: inline;\n }\n .kol-popover-button--open .kol-button__tooltip {\n display: none;\n }\n .kol-popover-button--inline .kol-button {\n min-width: 0;\n min-height: 1em;\n }\n}',KolPopoverButton$1=proxyCustomElement(class extends HTMLElement{constructor(n){super(),!1!==n&&this.__registerHost(),this.__attachShadow(),this.catchRef=n=>{this.ref=n},this._disabled=!1,this._hideLabel=!1,this._inline=!1,this._popoverAlign="bottom",this._tooltipAlign="top",this._type="button",this._variant="normal"}async hidePopover(){var n;null===(n=this.ref)||void 0===n||n.hidePopover()}async showPopover(){var n;null===(n=this.ref)||void 0===n||n.showPopover()}async focus(){var n;return Promise.resolve(null===(n=this.ref)||void 0===n?void 0:n.focus())}render(){return h(KolPopoverButtonWcTag,{key:"d405c3e4ea58c0d884d854e8bf847f471bc7e4ba",ref:this.catchRef,_accessKey:this._accessKey,_ariaDescription:this._ariaDescription,_customClass:this._customClass,_disabled:this._disabled,_hideLabel:this._hideLabel,_icons:this._icons,_inline:this._inline,_label:this._label,_name:this._name,_popoverAlign:this._popoverAlign,_shortKey:this._shortKey,_syncValueBySelector:this._syncValueBySelector,_tabIndex:this._tabIndex,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value,_variant:this._variant},h("slot",{key:"9098b79390a2413a30c74badf954b1276941e44d",name:"expert",slot:"expert"}),h("slot",{key:"213ab1212f3b13899c33e46531b6c97e1c28db7b"}))}static get style(){return{default:defaultStyleCss}}},[289,"kol-popover-button",{_accessKey:[1,"_access-key"],_ariaDescription:[1,"_aria-description"],_customClass:[1,"_custom-class"],_disabled:[4],_hideLabel:[4,"_hide-label"],_icons:[1],_inline:[4],_label:[1],_name:[1],_popoverAlign:[1,"_popover-align"],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tabIndex:[2,"_tab-index"],_tooltipAlign:[1,"_tooltip-align"],_type:[1],_value:[8],_variant:[1],hidePopover:[64],showPopover:[64],focus:[64]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-popover-button"].forEach(n=>{if("kol-popover-button"===n)customElements.get(n)||customElements.define(n,KolPopoverButton$1)})}const KolPopoverButton=KolPopoverButton$1,defineCustomElement=defineCustomElement$1;export{KolPopoverButton,defineCustomElement};
4
+ import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{j as KolPopoverButtonWcTag}from"./component-names.js";import{d as delegateFocus,s as setFocus}from"./element-focus.js";const defaultStyleCss='@charset "UTF-8";\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/* forward the rem function */\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type=\'checkbox\'], [type=\'radio\'], [type=\'range\']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don\'t want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@font-face {\n font-family: "kolicons";\n src: url("kolicons.eot?t=1774611662986"); /* IE9*/\n src: url("kolicons.eot?t=1774611662986#iefix") format("embedded-opentype"), url("kolicons.woff2?t=1774611662986") format("woff2"), url("kolicons.woff?t=1774611662986") format("woff"), url("kolicons.ttf?t=1774611662986") format("truetype"), url("kolicons.svg?t=1774611662986#kolicons") format("svg"); /* iOS 4.1- */\n}\n[class^=kolicon-], [class*=" kolicon-"] {\n font-family: "kolicons";\n font-style: normal;\n font-weight: 400;\n line-height: 1em;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.kolicon-alert-error::before {\n content: "\\ea01";\n}\n\n.kolicon-alert-info::before {\n content: "\\ea02";\n}\n\n.kolicon-alert-success::before {\n content: "\\ea03";\n}\n\n.kolicon-alert-warning::before {\n content: "\\ea04";\n}\n\n.kolicon-check::before {\n content: "\\ea05";\n}\n\n.kolicon-chevron-double-left::before {\n content: "\\ea06";\n}\n\n.kolicon-chevron-double-right::before {\n content: "\\ea07";\n}\n\n.kolicon-chevron-down::before {\n content: "\\ea08";\n}\n\n.kolicon-chevron-left::before {\n content: "\\ea09";\n}\n\n.kolicon-chevron-right::before {\n content: "\\ea0a";\n}\n\n.kolicon-chevron-up::before {\n content: "\\ea0b";\n}\n\n.kolicon-cogwheel::before {\n content: "\\ea0c";\n}\n\n.kolicon-cross::before {\n content: "\\ea0d";\n}\n\n.kolicon-eye-closed::before {\n content: "\\ea0e";\n}\n\n.kolicon-eye::before {\n content: "\\ea0f";\n}\n\n.kolicon-house::before {\n content: "\\ea10";\n}\n\n.kolicon-kolibri::before {\n content: "\\ea11";\n}\n\n.kolicon-link-external::before {\n content: "\\ea12";\n}\n\n.kolicon-link::before {\n content: "\\ea13";\n}\n\n.kolicon-minus::before {\n content: "\\ea14";\n}\n\n.kolicon-plus::before {\n content: "\\ea15";\n}\n\n.kolicon-settings::before {\n content: "\\ea16";\n}\n\n.kolicon-sort-asc::before {\n content: "\\ea17";\n}\n\n.kolicon-sort-desc::before {\n content: "\\ea18";\n}\n\n.kolicon-sort-neutral::before {\n content: "\\ea19";\n}\n\n.kolicon-up::before {\n content: "\\ea1a";\n}\n\n.kolicon-version::before {\n content: "\\ea1b";\n}\n\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n .kol-tooltip {\n display: contents;\n }\n .kol-tooltip__floating {\n opacity: 0;\n display: none;\n position: fixed;\n /* Avoid layout interference - see https://floating-ui.com/docs/computePosition */\n top: 0;\n left: 0;\n /* Can be used to specify the tooltip-width from the outside. Unset by default. */\n width: var(--kol-tooltip-width, max-content);\n min-width: calc(8 * 1rem / var(--kolibri-root-font-size, 16));\n max-width: 90vw;\n max-height: 90vh;\n animation-direction: normal;\n /* Can be used to specify the animation duration from the outside. 250ms by default. */\n animation-duration: var(--kolibri-tooltip-animation-duration, 250ms);\n animation-fill-mode: forwards;\n animation-iteration-count: 1;\n animation-timing-function: ease-in;\n }\n .kol-tooltip__floating.hide {\n animation-name: hideTooltip;\n }\n .kol-tooltip__floating.show {\n animation-name: showTooltip;\n }\n .kol-tooltip__arrow {\n transform: rotate(45deg);\n color: #000;\n background-color: #fff;\n position: absolute;\n z-index: 999;\n width: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n height: calc(10 * 1rem / var(--kolibri-root-font-size, 16));\n }\n .kol-tooltip__content {\n color: #000;\n background-color: #fff;\n position: relative;\n z-index: 1000;\n }\n @keyframes hideTooltip {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n }\n @keyframes showTooltip {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n}\n@layer kol-component {\n .kol-icon {\n color: inherit;\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n line-height: inherit;\n }\n :host {\n display: inline-block;\n }\n .kol-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-button::before {\n /* Render zero-width character as first element to set the baseline correctly. */\n content: "​";\n }\n .kol-button__text {\n flex: 1 0 100%;\n }\n .kol-popover-button__popover {\n margin: 0;\n padding: 0;\n border: 0;\n }\n .kol-popover-button--inline .kol-popover-button__button {\n display: inline;\n }\n .kol-popover {\n opacity: 0;\n transition: 0.2s ease-out opacity;\n }\n .kol-popover-button--open + .kol-popover {\n opacity: 1;\n }\n .kol-popover-button--open .kol-button__tooltip {\n display: none;\n }\n .kol-popover-button--inline {\n display: inline-block;\n }\n .kol-popover-button--inline .kol-button {\n min-width: 0;\n min-height: 1em;\n }\n}',KolPopoverButton$1=proxyCustomElement(class extends HTMLElement{constructor(n){super(),!1!==n&&this.__registerHost(),this.__attachShadow(),this.setRef=n=>{this.ref=n},this._disabled=!1,this._hideLabel=!1,this._inline=!1,this._popoverAlign="bottom",this._tooltipAlign="top",this._type="button",this._variant="normal"}async hidePopover(){var n;null===(n=this.ref)||void 0===n||n.hidePopover()}async showPopover(){var n;null===(n=this.ref)||void 0===n||n.showPopover()}async focus(){return delegateFocus(this.host,()=>setFocus(this.ref))}render(){return h(KolPopoverButtonWcTag,{key:"c23cfecac27ef0322483968dd59817d4ffe83e24",ref:this.setRef,_accessKey:this._accessKey,_ariaDescription:this._ariaDescription,_customClass:this._customClass,_disabled:this._disabled,_hideLabel:this._hideLabel,_icons:this._icons,_inline:this._inline,_label:this._label,_name:this._name,_popoverAlign:this._popoverAlign,_shortKey:this._shortKey,_syncValueBySelector:this._syncValueBySelector,_tabIndex:this._tabIndex,_tooltipAlign:this._tooltipAlign,_type:this._type,_value:this._value,_variant:this._variant},h("slot",{key:"604c665d1a204675e99a57114afe15ce6aa3d45d",name:"expert",slot:"expert"}),h("slot",{key:"97aaf0fb8e4f96be21a5b1c18c007eb929ceeb1b"}))}get host(){return this}static get style(){return{default:defaultStyleCss}}},[289,"kol-popover-button",{_accessKey:[1,"_access-key"],_ariaDescription:[1,"_aria-description"],_customClass:[1,"_custom-class"],_disabled:[4],_hideLabel:[4,"_hide-label"],_icons:[1],_inline:[4],_label:[1],_name:[1],_popoverAlign:[1,"_popover-align"],_shortKey:[1,"_short-key"],_syncValueBySelector:[1,"_sync-value-by-selector"],_tabIndex:[2,"_tab-index"],_tooltipAlign:[1,"_tooltip-align"],_type:[1],_value:[8],_variant:[1],hidePopover:[64],showPopover:[64],focus:[64]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-popover-button"].forEach(n=>{if("kol-popover-button"===n)customElements.get(n)||customElements.define(n,KolPopoverButton$1)})}const KolPopoverButton=KolPopoverButton$1,defineCustomElement=defineCustomElement$1;export{KolPopoverButton,defineCustomElement};
@@ -1 +1 @@
1
- {"file":"kol-popover-button.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,uoUAAuoU;;MC8BlpUA,kBAAgB,GAAAC,kBAAA,CAAA,MAAA,gBAAA,SAAA,WAAA,CAAA;AAP7B,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;AA4BS,QAAA,IAAA,CAAA,QAAQ,GAAG,CAAC,GAAmC,KAAI;AAC1D,YAAA,IAAI,CAAC,GAAG,GAAG,GAAG;AACf,SAAC;AAwDc,QAAA,IAAS,CAAA,SAAA,GAAa,KAAK;AAO3B,QAAA,IAAU,CAAA,UAAA,GAAa,KAAK;AAU5B,QAAA,IAAO,CAAA,OAAA,GAAoB,KAAK;AAehC,QAAA,IAAa,CAAA,aAAA,GAA0B,QAAQ;AAqB/C,QAAA,IAAa,CAAA,aAAA,GAA0B,KAAK;AAK5C,QAAA,IAAK,CAAA,KAAA,GAAwB,QAAQ;AAUrC,QAAA,IAAQ,CAAA,QAAA,GAA2B,QAAQ;AAC1D;AA5IO,IAAA,MAAM,WAAW,GAAA;;AACvB,QAAA,MAAK,MAAA,IAAI,CAAC,GAAG,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,WAAW,EAAE,CAAA;;AAQtB,IAAA,MAAM,WAAW,GAAA;;AACvB,QAAA,MAAK,MAAA,IAAI,CAAC,GAAG,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,WAAW,EAAE,CAAA;;AAWtB,IAAA,MAAM,KAAK,GAAA;;AACjB,QAAA,OAAO,OAAO,CAAC,OAAO,CAAC,CAAA,EAAA,GAAA,IAAI,CAAC,GAAG,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,KAAK,EAAE,CAAC;;IAGnC,MAAM,GAAA;AACZ,QAAA,QACC,CAAC,CAAA,qBAAqB,EACrB,EAAA,GAAA,EAAA,0CAAA,EAAA,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAA,EAEvB,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,EAAQ,CAAA,EACzC,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolPopoverButton","__stencil_proxyCustomElement"],"sources":["src/components/popover-button/style.scss?tag=kol-popover-button&mode=default&encapsulation=shadow","src/components/popover-button/shadow.tsx"],"sourcesContent":["@use '../@shared/global' as *;\n@use '../@shared/button.mixin' as *;\n@use '../@shared/popover-button.mixin' as *;\n@use '../tooltip/style' as *;\n\n@layer kol-component {\n\t@include kol-button-styles('kol-button');\n\t@include kol-popover-button-styles;\n\n\t.kol-popover-button {\n\t\t&--open {\n\t\t\t.kol-button__tooltip {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\n\t\t&--inline {\n\t\t\t.kol-button {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmin-height: 1em;\n\t\t\t}\n\t\t}\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Method, Prop } from '@stencil/core';\nimport { KolPopoverButtonWcTag } from '../../core/component-names';\nimport type {\n\tAccessKeyPropType,\n\tAriaDescriptionPropType,\n\tButtonTypePropType,\n\tButtonVariantPropType,\n\tCustomClassPropType,\n\tIconsPropType,\n\tInlinePropType,\n\tLabelWithExpertSlotPropType,\n\tPopoverAlignPropType,\n\tShortKeyPropType,\n\tStencilUnknown,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport type { PopoverButtonProps } from '../../schema/components/popover-button';\n\n/**\n * @slot - The popover content.\n */\n@Component({\n\ttag: 'kol-popover-button',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolPopoverButton implements PopoverButtonProps {\n\tprivate ref?: HTMLKolPopoverButtonWcElement;\n\n\t/**\n\t * Hides the popover programmatically by forwarding the call to the web component.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async hidePopover() {\n\t\tvoid this.ref?.hidePopover();\n\t}\n\n\t/**\n\t * Shows the popover programmatically by forwarding the call to the web component.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async showPopover() {\n\t\tvoid this.ref?.showPopover();\n\t}\n\n\tprivate catchRef = (ref?: HTMLKolPopoverButtonWcElement) => {\n\t\tthis.ref = ref;\n\t};\n\n\t/**\n\t * Sets focus on the internal element.\n\t */\n\t@Method()\n\tpublic async focus() {\n\t\treturn Promise.resolve(this.ref?.focus());\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolPopoverButtonWcTag\n\t\t\t\tref={this.catchRef}\n\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t_ariaDescription={this._ariaDescription}\n\t\t\t\t_customClass={this._customClass}\n\t\t\t\t_disabled={this._disabled}\n\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t_icons={this._icons}\n\t\t\t\t_inline={this._inline}\n\t\t\t\t_label={this._label}\n\t\t\t\t_name={this._name}\n\t\t\t\t_popoverAlign={this._popoverAlign}\n\t\t\t\t_shortKey={this._shortKey}\n\t\t\t\t_syncValueBySelector={this._syncValueBySelector}\n\t\t\t\t_tabIndex={this._tabIndex}\n\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t_type={this._type}\n\t\t\t\t_value={this._value}\n\t\t\t\t_variant={this._variant}\n\t\t\t>\n\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t<slot />\n\t\t\t</KolPopoverButtonWcTag>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the key combination that can be used to trigger or focus the component's interactive element.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines whether the component is displayed as a standalone block or inline without enforcing a minimum size of 44px.\n\t */\n\t@Prop() public _inline?: InlinePropType = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: string;\n\n\t/**\n\t * Defines where to show the Popover preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _popoverAlign?: PopoverAlignPropType = 'bottom';\n\n\t/**\n\t * Adds a visual shortcut hint after the label and instructs the screen reader to read the shortcut aloud.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value of the element.\n\t */\n\t@Prop() public _value?: StencilUnknown;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: ButtonVariantPropType = 'normal';\n}\n"],"version":3}
1
+ {"file":"kol-popover-button.js","mappings":";;;;;;;AAAA,MAAM,eAAe,GAAG,61UAA61U;;MCoCx2UA,kBAAgB,GAAAC,kBAAA,CAAA,MAAA,gBAAA,SAAA,WAAA,CAAA;AAP7B,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;AA6BkB,QAAA,IAAA,CAAA,MAAM,GAAG,CAAC,GAAmC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M,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,oBAAoB,EAAE,IAAI,CAAC,oBAAoB,EAC/C,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAA,EAEvB,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,EAAQ,CAAA,EACzC,CAAQ,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolPopoverButton","__stencil_proxyCustomElement"],"sources":["src/components/popover-button/style.scss?tag=kol-popover-button&mode=default&encapsulation=shadow","src/components/popover-button/shadow.tsx"],"sourcesContent":["@use '../@shared/global' as *;\n@use '../@shared/button.mixin' as *;\n@use '../@shared/popover-button.mixin' as *;\n@use '../tooltip/style' as *;\n\n@layer kol-component {\n\t@include kol-button-styles('kol-button');\n\t@include kol-popover-button-styles;\n\n\t.kol-popover-button {\n\t\t&--open {\n\t\t\t.kol-button__tooltip {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\n\t\t&--inline {\n\t\t\tdisplay: inline-block;\n\n\t\t\t.kol-button {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmin-height: 1em;\n\t\t\t}\n\t\t}\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, Element, h, Method, Prop } from '@stencil/core';\nimport { KolPopoverButtonWcTag } from '../../core/component-names';\nimport type {\n\tAccessKeyPropType,\n\tAriaDescriptionPropType,\n\tButtonTypePropType,\n\tButtonVariantPropType,\n\tCustomClassPropType,\n\tFocusableElement,\n\tIconsPropType,\n\tInlinePropType,\n\tLabelWithExpertSlotPropType,\n\tPopoverAlignPropType,\n\tShortKeyPropType,\n\tStencilUnknown,\n\tSyncValueBySelectorPropType,\n\tTooltipAlignPropType,\n} from '../../schema';\nimport type { PopoverButtonProps } from '../../schema/components/popover-button';\nimport { delegateFocus, setFocus } from '../../utils/element-focus';\n\n/**\n * A button that toggles the visibility of a popover overlay containing arbitrary content.\n * The popover uses the native HTML Popover API for lightweight, non-modal overlays.\n *\n * @slot - The popover content (displayed when the button is clicked).\n * @slot expert - Custom label content for the button (when `_label` is `false`).\n */\n@Component({\n\ttag: 'kol-popover-button',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolPopoverButton implements PopoverButtonProps, FocusableElement {\n\t@Element() private readonly host?: HTMLKolPopoverButtonElement;\n\tprivate ref?: HTMLKolPopoverButtonWcElement;\n\n\t/**\n\t * Hides the popover programmatically by forwarding the call to the web component.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async hidePopover() {\n\t\tvoid this.ref?.hidePopover();\n\t}\n\n\t/**\n\t * Shows the popover programmatically by forwarding the call to the web component.\n\t */\n\t@Method()\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tpublic async showPopover() {\n\t\tvoid this.ref?.showPopover();\n\t}\n\n\tprivate readonly setRef = (ref?: HTMLKolPopoverButtonWcElement) => {\n\t\tthis.ref = ref;\n\t};\n\n\t/**\n\t * Sets focus on the internal element.\n\t */\n\t@Method()\n\tpublic async focus(): Promise<void> {\n\t\treturn delegateFocus(this.host!, () => setFocus(this.ref!));\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<KolPopoverButtonWcTag\n\t\t\t\tref={this.setRef}\n\t\t\t\t_accessKey={this._accessKey}\n\t\t\t\t_ariaDescription={this._ariaDescription}\n\t\t\t\t_customClass={this._customClass}\n\t\t\t\t_disabled={this._disabled}\n\t\t\t\t_hideLabel={this._hideLabel}\n\t\t\t\t_icons={this._icons}\n\t\t\t\t_inline={this._inline}\n\t\t\t\t_label={this._label}\n\t\t\t\t_name={this._name}\n\t\t\t\t_popoverAlign={this._popoverAlign}\n\t\t\t\t_shortKey={this._shortKey}\n\t\t\t\t_syncValueBySelector={this._syncValueBySelector}\n\t\t\t\t_tabIndex={this._tabIndex}\n\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t_type={this._type}\n\t\t\t\t_value={this._value}\n\t\t\t\t_variant={this._variant}\n\t\t\t>\n\t\t\t\t<slot name=\"expert\" slot=\"expert\"></slot>\n\t\t\t\t<slot />\n\t\t\t</KolPopoverButtonWcTag>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the key combination that can be used to trigger or focus the component's interactive element.\n\t */\n\t@Prop() public _accessKey?: AccessKeyPropType;\n\n\t/**\n\t * Defines the value for the aria-description attribute.\n\t */\n\t@Prop() public _ariaDescription?: AriaDescriptionPropType;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: IconsPropType;\n\n\t/**\n\t * Defines whether the component is displayed as a standalone block or inline without enforcing a minimum size of 44px.\n\t */\n\t@Prop() public _inline?: InlinePropType = false;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: string;\n\n\t/**\n\t * Defines where to show the Popover preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _popoverAlign?: PopoverAlignPropType = 'bottom';\n\n\t/**\n\t * Adds a visual shortcut hint after the label and instructs the screen reader to read the shortcut aloud.\n\t */\n\t@Prop() public _shortKey?: ShortKeyPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: ButtonTypePropType = 'button';\n\n\t/**\n\t * Defines the value of the element.\n\t */\n\t@Prop() public _value?: StencilUnknown;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: ButtonVariantPropType = 'normal';\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h,proxyCustomElement,Host}from"@stencil/core/internal/client";import{c as createPropDefinition,b as normalizeNumber,n as normalizeString,d as createDependentPropDefinition,B as BaseController,a as BaseWebComponent}from"./base-web-component.js";import"./common.js";import{l as labelProp}from"./label2.js";const maxProp=createPropDefinition("max",100,normalizeNumber,e=>e>0),unitProp=createPropDefinition("unit","%",normalizeString,e=>e.length>0),clampedNumberValueProp=createDependentPropDefinition("value",0,(e,n)=>{const t=normalizeNumber(e);return t<n.min?n.min:t>n.max?n.max:t},e=>e>=0),progressVariantOptions=["bar","cycle"],variantProgressProp=createPropDefinition("variant","bar",e=>{const n=normalizeString(e);if(progressVariantOptions.includes(n))return n;throw new Error(`Invalid progress variant: ${n}`)},()=>!0),FULL_CIRCLE=342,CycleSvg=({max:e,value:n})=>h("svg",{width:"100",viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg"},h("circle",{class:"kol-progress__cycle-background",cx:"60",cy:"60",r:"54.5",fill:"currentColor",stroke:"currentColor","stroke-width":"8"}),h("circle",{class:"kol-progress__cycle-whitespace",cx:"60",cy:"60",r:"59",fill:"currentColor",stroke:"currentColor","stroke-width":"3"}),h("circle",{class:"kol-progress__cycle-border",cx:"60",cy:"60",r:"59",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),h("circle",{class:"kol-progress__cycle-whitespace",cx:"60",cy:"60",r:"51",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),h("circle",{class:"kol-progress__cycle-border",cx:"60",cy:"60",r:"50",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),h("circle",{class:"kol-progress__cycle-progress",fill:"currentColor",stroke:"currentColor","stroke-linecap":"round","stroke-dasharray":`${Math.round(n/e*342)}px 342px`,"stroke-width":"6",cx:"60",cy:"60",r:"54.5"})),BarSvg=({max:e,value:n})=>{const t=n/e*100;return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"12",overflow:"visible"},h("rect",{class:"kol-progress__bar-background",x:"1",y:"1",height:"11",rx:"5",fill:"currentColor",stroke:"currentColor","stroke-width":"3",width:"100%"}),h("rect",{class:"kol-progress__bar-border",x:"1",y:"1",height:"11",rx:"5",fill:"currentColor",stroke:"currentColor","stroke-width":"1",width:"100%"}),h("rect",{class:"kol-progress__bar-progress",x:"3",y:"3",height:"7",rx:"3.5",fill:"currentColor",stroke:"currentColor","stroke-width":"3",style:{width:`calc(${t}% - 4px)`}}))},createProgressSVG=(e,n,t)=>{switch(e){case"cycle":return h(CycleSvg,{max:n,value:t});case"bar":return h(BarSvg,{max:n,value:t});default:throw new Error(`Progress variant ${e} not implemented.`)}},ProgressFC=e=>{const{label:n,max:t,unit:r,value:o,variant:a,liveValue:l}=e,s="%"===r,i=s?`${Math.round(l/t*100)}`:l,c=s?Math.round(o/t*100):o,d=`${`${(s?100:t)+1}`.length}ch`;return h("div",{class:"kol-progress"},h("div",{"aria-hidden":"true",class:{"kol-progress__cycle":"cycle"===a,"kol-progress__bar":"bar"===a}},"bar"===a&&n&&h("div",{class:"kol-progress__bar-label"},n),createProgressSVG(a,t,o),"cycle"===a&&h("div",{class:"kol-progress__cycle-text"},n&&h("div",{class:"kol-progress__cycle-label"},n),h("div",{class:"kol-progress__cycle-value"},`${c} ${r}`)),"bar"===a&&h("div",{class:"kol-progress__bar-value",style:{width:d}},c),"bar"===a&&h("div",{class:"kol-progress__bar-unit"},r)),h("progress",{class:"visually-hidden","aria-busy":o<t?"true":"false",max:t,value:o}),h("span",{"aria-live":"polite","aria-relevant":"removals text",class:"visually-hidden"},s?`${i} %`:`${i} von ${t} ${r}`))},progressPropsConfig={optional:[labelProp,unitProp,variantProgressProp],required:[maxProp,clampedNumberValueProp]};class ProgressController extends BaseController{constructor(e,n){super(progressPropsConfig,e,n)}componentWillLoad(e){const{label:n,max:t,unit:r,value:o,variant:a}=e;this.watchLabel(n),this.watchMax(t),this.watchUnit(r),this.watchValue(o),this.watchVariant(a),this.setState("liveValue",this.getRenderProp("value")),this.startLiveValueInterval()}watchLabel(e){labelProp.apply(e,e=>{this.setRenderProp("label",e)})}watchMax(e){maxProp.apply(e,e=>{this.setRenderProp("max",e),this.watchValue(this.getRawProp("value"))})}watchUnit(e){unitProp.apply(e,e=>{this.setRenderProp("unit",e)})}watchValue(e){this.setRawProp("value",e),clampedNumberValueProp.apply(e,e=>{this.setRenderProp("value",e)},{min:0,max:this.getRenderProp("max")})}watchVariant(e){variantProgressProp.apply(e,e=>{this.setRenderProp("variant",e)})}startLiveValueInterval(){this.interval=setInterval(()=>{const e=this.getRenderProp("value");this.setState("liveValue",e)},5e3)}destroy(){this.interval&&(clearInterval(this.interval),this.interval=void 0)}}const defaultStyleCss="/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n .kol-progress__bar {\n display: grid;\n column-gap: 0.05rem;\n align-items: center;\n grid-template-areas: \"LABEL LABEL LABEL\" \"BAR VALUE UNIT\";\n grid-template-columns: 1fr auto;\n }\n .kol-progress__bar-label {\n grid-column-end: 2;\n grid-area: LABEL;\n }\n .kol-progress__bar svg {\n grid-area: BAR;\n }\n .kol-progress__bar-value {\n grid-area: VALUE;\n text-align: right;\n }\n .kol-progress__bar-unit {\n grid-area: UNIT;\n }\n .kol-progress__bar-border {\n fill: transparent;\n stroke: black;\n }\n .kol-progress__bar-background {\n fill: lightgray;\n stroke: white;\n }\n .kol-progress__bar-progress {\n fill: #0075ff;\n stroke: transparent;\n }\n @media (prefers-reduced-motion: no-preference) {\n .kol-progress__bar-progress {\n transition: 250ms ease-in-out 50ms;\n }\n }\n .kol-progress__cycle {\n display: grid;\n align-content: center;\n justify-items: center;\n grid-template-areas: \"ALL\";\n grid-template-columns: auto;\n }\n .kol-progress__cycle > * {\n grid-area: ALL;\n }\n .kol-progress__cycle-text {\n display: flex;\n flex-direction: column;\n justify-content: center;\n font-size: x-small;\n text-align: center;\n }\n .kol-progress__cycle-text * {\n background-color: white;\n }\n .kol-progress__cycle-background {\n fill: transparent;\n stroke: lightgray;\n }\n .kol-progress__cycle-border {\n fill: transparent;\n stroke: black;\n }\n .kol-progress__cycle-whitespace {\n fill: transparent;\n stroke: white;\n }\n .kol-progress__cycle-progress {\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n fill: transparent;\n stroke: #0075ff;\n }\n @media (prefers-reduced-motion: no-preference) {\n .kol-progress__cycle-progress {\n transition: 250ms ease-in-out 50ms;\n }\n }\n}",KolProgress$1=proxyCustomElement(class extends BaseWebComponent{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.ctrl=new ProgressController(this.setState,this.getState),this.liveValue=0}watchLabel(e){this.ctrl.watchLabel(e)}watchMax(e){this.ctrl.watchMax(e)}watchUnit(e){this.ctrl.watchUnit(e)}watchValue(e){this.ctrl.watchValue(e)}watchVariant(e){this.ctrl.watchVariant(e)}componentWillLoad(){this.ctrl.componentWillLoad({label:this._label,max:this._max,unit:this._unit,value:this._value,variant:this._variant})}disconnectedCallback(){this.ctrl.destroy()}render(){return h(Host,{key:"8801c8e80e2ee4bfb96dd200064ee6c9da368eb6"},h(ProgressFC,{key:"00f2817835b0654a20cd11f7598f13b298616e06",label:this.ctrl.getRenderProp("label"),max:this.ctrl.getRenderProp("max"),unit:this.ctrl.getRenderProp("unit"),value:this.ctrl.getRenderProp("value"),variant:this.ctrl.getRenderProp("variant"),liveValue:this.liveValue}))}static get watchers(){return{_label:["watchLabel"],_max:["watchMax"],_unit:["watchUnit"],_value:["watchValue"],_variant:["watchVariant"]}}static get style(){return{default:defaultStyleCss}}},[801,"kol-progress",{_label:[1],_max:[2],_unit:[1],_value:[2],_variant:[1],liveValue:[32]},void 0,{_label:["watchLabel"],_max:["watchMax"],_unit:["watchUnit"],_value:["watchValue"],_variant:["watchVariant"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-progress"].forEach(e=>{if("kol-progress"===e)customElements.get(e)||customElements.define(e,KolProgress$1)})}const KolProgress=KolProgress$1,defineCustomElement=defineCustomElement$1;export{KolProgress,defineCustomElement};
4
+ import{h,proxyCustomElement,Host}from"@stencil/core/internal/client";import{B as BaseController,a as BaseWebComponent}from"./base-web-component.js";import"./common.js";import{l as labelProp}from"./label2.js";import{c as createPropDefinition,b as normalizeNumber,n as normalizeString,d as createDependentPropDefinition}from"./normalizers.js";const maxProp=createPropDefinition("max",100,normalizeNumber,e=>e>0),unitProp=createPropDefinition("unit","%",normalizeString,e=>e.length>0),clampedNumberValueProp=createDependentPropDefinition("value",0,(e,n)=>{const t=normalizeNumber(e);return t<n.min?n.min:t>n.max?n.max:t},e=>e>=0),progressVariantOptions=["bar","cycle"],variantProgressProp=createPropDefinition("variant","bar",e=>{const n=normalizeString(e);if(progressVariantOptions.includes(n))return n;throw new Error(`Invalid progress variant: ${n}`)},()=>!0),FULL_CIRCLE=342,CycleSvg=({max:e,value:n})=>h("svg",{width:"100",viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg"},h("circle",{class:"kol-progress__cycle-background",cx:"60",cy:"60",r:"54.5",fill:"currentColor",stroke:"currentColor","stroke-width":"8"}),h("circle",{class:"kol-progress__cycle-whitespace",cx:"60",cy:"60",r:"59",fill:"currentColor",stroke:"currentColor","stroke-width":"3"}),h("circle",{class:"kol-progress__cycle-border",cx:"60",cy:"60",r:"59",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),h("circle",{class:"kol-progress__cycle-whitespace",cx:"60",cy:"60",r:"51",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),h("circle",{class:"kol-progress__cycle-border",cx:"60",cy:"60",r:"50",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),h("circle",{class:"kol-progress__cycle-progress",fill:"currentColor",stroke:"currentColor","stroke-linecap":"round","stroke-dasharray":`${Math.round(n/e*342)}px 342px`,"stroke-width":"6",cx:"60",cy:"60",r:"54.5"})),BarSvg=({max:e,value:n})=>{const t=n/e*100;return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"12",overflow:"visible"},h("rect",{class:"kol-progress__bar-background",x:"1",y:"1",height:"11",rx:"5",fill:"currentColor",stroke:"currentColor","stroke-width":"3",width:"100%"}),h("rect",{class:"kol-progress__bar-border",x:"1",y:"1",height:"11",rx:"5",fill:"currentColor",stroke:"currentColor","stroke-width":"1",width:"100%"}),h("rect",{class:"kol-progress__bar-progress",x:"3",y:"3",height:"7",rx:"3.5",fill:"currentColor",stroke:"currentColor","stroke-width":"3",style:{width:`calc(${t}% - 4px)`}}))},createProgressSVG=(e,n,t)=>{switch(e){case"cycle":return h(CycleSvg,{max:n,value:t});case"bar":return h(BarSvg,{max:n,value:t});default:throw new Error(`Progress variant ${e} not implemented.`)}},ProgressFC=e=>{const{label:n,max:t,unit:r,value:o,variant:a,liveValue:l}=e,s="%"===r,i=s?`${Math.round(l/t*100)}`:l,c=s?Math.round(o/t*100):o,d=`${`${(s?100:t)+1}`.length}ch`;return h("div",{class:"kol-progress"},h("div",{"aria-hidden":"true",class:{"kol-progress__cycle":"cycle"===a,"kol-progress__bar":"bar"===a}},"bar"===a&&n&&h("div",{class:"kol-progress__bar-label"},n),createProgressSVG(a,t,o),"cycle"===a&&h("div",{class:"kol-progress__cycle-text"},n&&h("div",{class:"kol-progress__cycle-label"},n),h("div",{class:"kol-progress__cycle-value"},`${c} ${r}`)),"bar"===a&&h("div",{class:"kol-progress__bar-value",style:{width:d}},c),"bar"===a&&h("div",{class:"kol-progress__bar-unit"},r)),h("progress",{class:"visually-hidden","aria-busy":o<t?"true":"false",max:t,value:o}),h("span",{"aria-live":"polite","aria-relevant":"removals text",class:"visually-hidden"},s?`${i} %`:`${i} von ${t} ${r}`))},progressPropsConfig={optional:[labelProp,unitProp,variantProgressProp],required:[maxProp,clampedNumberValueProp]};class ProgressController extends BaseController{constructor(e,n){super(progressPropsConfig,e,n)}componentWillLoad(e){const{label:n,max:t,unit:r,value:o,variant:a}=e;this.watchLabel(n),this.watchMax(t),this.watchUnit(r),this.watchValue(o),this.watchVariant(a),this.setState("liveValue",this.getRenderProp("value")),this.startLiveValueInterval()}watchLabel(e){labelProp.apply(e,e=>{this.setRenderProp("label",e)})}watchMax(e){maxProp.apply(e,e=>{this.setRenderProp("max",e),this.watchValue(this.getRawProp("value"))})}watchUnit(e){unitProp.apply(e,e=>{this.setRenderProp("unit",e)})}watchValue(e){this.setRawProp("value",e),clampedNumberValueProp.apply(e,e=>{this.setRenderProp("value",e)},{min:0,max:this.getRenderProp("max")})}watchVariant(e){variantProgressProp.apply(e,e=>{this.setRenderProp("variant",e)})}startLiveValueInterval(){this.interval=setInterval(()=>{const e=this.getRenderProp("value");this.setState("liveValue",e)},5e3)}destroy(){this.interval&&(clearInterval(this.interval),this.interval=void 0)}}const defaultStyleCss="/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n .kol-progress__bar {\n display: grid;\n align-items: center;\n grid-template-areas: \"LABEL LABEL LABEL\" \"BAR VALUE UNIT\";\n grid-template-columns: 1fr auto;\n }\n .kol-progress__bar-label {\n grid-column-end: 2;\n grid-area: LABEL;\n }\n .kol-progress__bar svg {\n grid-area: BAR;\n }\n .kol-progress__bar-value {\n grid-area: VALUE;\n text-align: right;\n }\n .kol-progress__bar-unit {\n grid-area: UNIT;\n }\n .kol-progress__bar-border {\n fill: transparent;\n stroke: black;\n }\n .kol-progress__bar-background {\n fill: lightgray;\n stroke: white;\n }\n .kol-progress__bar-progress {\n fill: #0075ff;\n stroke: transparent;\n }\n @media (prefers-reduced-motion: no-preference) {\n .kol-progress__bar-progress {\n transition: 250ms ease-in-out 50ms;\n }\n }\n .kol-progress__cycle {\n display: grid;\n align-content: center;\n justify-items: center;\n grid-template-areas: \"ALL\";\n grid-template-columns: auto;\n }\n .kol-progress__cycle > * {\n grid-area: ALL;\n }\n .kol-progress__cycle-text {\n display: flex;\n flex-direction: column;\n justify-content: center;\n font-size: x-small;\n text-align: center;\n }\n .kol-progress__cycle-text * {\n background-color: white;\n }\n .kol-progress__cycle-background {\n fill: transparent;\n stroke: lightgray;\n }\n .kol-progress__cycle-border {\n fill: transparent;\n stroke: black;\n }\n .kol-progress__cycle-whitespace {\n fill: transparent;\n stroke: white;\n }\n .kol-progress__cycle-progress {\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n fill: transparent;\n stroke: #0075ff;\n }\n @media (prefers-reduced-motion: no-preference) {\n .kol-progress__cycle-progress {\n transition: 250ms ease-in-out 50ms;\n }\n }\n}",KolProgress$1=proxyCustomElement(class extends BaseWebComponent{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.ctrl=new ProgressController(this.setState,this.getState),this.liveValue=0}watchLabel(e){this.ctrl.watchLabel(e)}watchMax(e){this.ctrl.watchMax(e)}watchUnit(e){this.ctrl.watchUnit(e)}watchValue(e){this.ctrl.watchValue(e)}watchVariant(e){this.ctrl.watchVariant(e)}componentWillLoad(){this.ctrl.componentWillLoad({label:this._label,max:this._max,unit:this._unit,value:this._value,variant:this._variant})}disconnectedCallback(){this.ctrl.destroy()}render(){return h(Host,{key:"f4ac31d34bcf5b79af35229f3ffea6243af399a6"},h(ProgressFC,{key:"587e065337158c4301d523f2d2330ce1c46b7bbc",label:this.ctrl.getRenderProp("label"),max:this.ctrl.getRenderProp("max"),unit:this.ctrl.getRenderProp("unit"),value:this.ctrl.getRenderProp("value"),variant:this.ctrl.getRenderProp("variant"),liveValue:this.liveValue}))}static get watchers(){return{_label:["watchLabel"],_max:["watchMax"],_unit:["watchUnit"],_value:["watchValue"],_variant:["watchVariant"]}}static get style(){return{default:defaultStyleCss}}},[801,"kol-progress",{_label:[1],_max:[2],_unit:[1],_value:[2],_variant:[1],liveValue:[32]},void 0,{_label:["watchLabel"],_max:["watchMax"],_unit:["watchUnit"],_value:["watchValue"],_variant:["watchVariant"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-progress"].forEach(e=>{if("kol-progress"===e)customElements.get(e)||customElements.define(e,KolProgress$1)})}const KolProgress=KolProgress$1,defineCustomElement=defineCustomElement$1;export{KolProgress,defineCustomElement};
@@ -1 +1 @@
1
- {"file":"kol-progress.js","mappings":";;;;;;;;AA0BO,MAAM,OAAO,GAAG,oBAAoB,CAAU,KAAK,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;;ACExF,MAAM,QAAQ,GAAG,oBAAoB,CAAW,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;;ACOlG,MAAM,sBAAsB,GAAG,6BAA6B,CAClE,OAAO,EACP,CAAC,EACD,CAAC,KAAK,EAAE,IAAI,KAAI;AACf,IAAA,MAAM,UAAU,GAAG,eAAe,CAAC,KAAK,CAAC;AACzC,IAAA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;;;;;;;;;;;;;;;;;;","names":["KolProgress","__stencil_proxyCustomElement"],"sources":["src/internal/props/max.ts","src/internal/props/unit.ts","src/internal/props/value-number-clamped.ts","src/internal/props/variant-progress.ts","src/internal/functional-components/progress/component.tsx","src/internal/functional-components/progress/api.tsx","src/internal/functional-components/progress/controller.ts","src/components/progress/style.scss?tag=kol-progress&mode=default&encapsulation=shadow","src/components/progress/component.tsx"],"sourcesContent":["import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeNumber } from './helpers/normalizers';\n\n/**\n * Max prop for upper boundary of progress and meter elements\n *\n * Description:\n * The max attribute defines the upper bound of a range. It is used by progress bars and\n * meter elements to indicate the total or maximum achievable value.\n *\n * Usage (according to W3C HTML specification and WAI-ARIA):\n * - Must be a positive number greater than 0\n * - Corresponds to the HTML progress element's max attribute\n * - Maps to aria-valuemax in WAI-ARIA to communicate the upper limit to assistive technologies\n * - Default value is 100 (representing 100%)\n *\n * Accessibility:\n * - Screen readers use aria-valuemax together with aria-valuenow to announce progress status\n * - The relationship between value and max must be programmatically determinable (WCAG 1.3.1 Info and Relationships)\n *\n * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-progress-max\n * @see https://www.w3.org/TR/wai-aria-1.2/#aria-valuemax\n * @see https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships.html\n */\nexport type MaxProp = SimpleProp<'max', number>;\nexport const maxProp = createPropDefinition<MaxProp>('max', 100, normalizeNumber, (v) => v > 0);\n","import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\n/**\n * Unit prop for value display formatting\n *\n * Description:\n * Defines the unit of measurement to display alongside a numeric value (e.g., \"%\", \"MB\", \"km/h\").\n * The unit helps users understand the meaning and scale of the displayed value.\n *\n * Usage:\n * - Must be a non-empty string\n * - Default is \"%\" (percentage)\n * - The unit is appended to the displayed value for visual users\n * - Common units: \"%\", \"MB\", \"s\", \"€\", \"kg\"\n *\n * Accessibility:\n * - The unit must be part of the accessible value description for screen reader users\n * - Consider using aria-valuetext to create human-readable descriptions that include the unit\n * (e.g., aria-valuetext=\"75 percent\" instead of just the number 75)\n * - Units convey meaningful information and must be programmatically determinable\n * (WCAG 1.3.1 Info and Relationships)\n *\n * @see https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships.html\n * @see https://www.w3.org/TR/wai-aria-1.2/#aria-valuetext\n */\nexport type UnitProp = SimpleProp<'unit', string>;\nexport const unitProp = createPropDefinition<UnitProp>('unit', '%', normalizeString, (v) => v.length > 0);\n","import type { SimpleProp } from './helpers/factory';\nimport { createDependentPropDefinition } from './helpers/factory';\nimport { normalizeNumber } from './helpers/normalizers';\n\n/**\n * Clamped value prop for bounded numeric ranges\n *\n * Description:\n * Represents a numeric value that is automatically clamped between a minimum and maximum.\n * If the provided value falls outside the allowed range, it is silently adjusted to the\n * nearest boundary. This ensures the value always stays within valid bounds.\n *\n * Usage (according to W3C HTML specification and WAI-ARIA):\n * - Depends on min and max props to define the valid range\n * - Corresponds to the HTML <progress> or <meter> element's value, min, and max attributes\n * - Maps to aria-valuenow, aria-valuemin, and aria-valuemax in WAI-ARIA\n * - Clamping happens transparently; no error is raised for out-of-range inputs\n *\n * Accessibility:\n * - The value boundaries must be programmatically determinable (WCAG 1.3.1 Info and Relationships)\n * - Screen readers use aria-valuemin, aria-valuenow, and aria-valuemax to announce range status\n * - Consider providing aria-valuetext for a human-readable description of the value\n *\n * @see https://html.spec.whatwg.org/multipage/form-elements.html#the-meter-element\n * @see https://www.w3.org/TR/wai-aria-1.2/#aria-valuenow\n * @see https://www.w3.org/TR/wai-aria-1.2/#aria-valuemin\n * @see https://www.w3.org/TR/wai-aria-1.2/#aria-valuemax\n */\nexport type ClampedNumberValueProp = SimpleProp<'value', number>;\n\nexport type ClampedNumberValueDeps = {\n\tmin: number;\n\tmax: number;\n};\n\nexport const clampedNumberValueProp = createDependentPropDefinition<ClampedNumberValueProp, ClampedNumberValueDeps>(\n\t'value',\n\t0,\n\t(value, deps) => {\n\t\tconst normalized = normalizeNumber(value);\n\t\tif (normalized < deps.min) {\n\t\t\treturn deps.min;\n\t\t} else if (normalized > deps.max) {\n\t\t\treturn deps.max;\n\t\t}\n\t\treturn normalized;\n\t},\n\t(v) => v >= 0,\n);\n","import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\n/**\n * Variant prop for progress display style\n *\n * Description:\n * Determines the visual presentation of a progress indicator. Both variants use the\n * WAI-ARIA progressbar role and convey the same semantic information to assistive technologies.\n *\n * Usage (according to W3C HTML specification and WAI-ARIA):\n * - \"bar\": Linear horizontal progress bar (default)\n * - \"cycle\": Circular/radial progress indicator\n * - Both variants must expose role=\"progressbar\" with aria-valuenow, aria-valuemin, and aria-valuemax\n * - The visual variant choice is presentation-only and does not affect the accessible semantics\n *\n * Accessibility:\n * - Progress state must be announced to screen readers (WCAG 4.1.3 Status Messages)\n * - The progress indicator must be perceivable through non-visual means (WCAG 1.1.1 Non-text Content)\n * - Animation in the cycle variant must respect prefers-reduced-motion (WCAG 2.3.3 Animation from Interactions)\n *\n * @see https://html.spec.whatwg.org/multipage/form-elements.html#the-progress-element\n * @see https://www.w3.org/TR/wai-aria-1.2/#progressbar\n * @see https://www.w3.org/WAI/WCAG21/Understanding/status-messages.html\n */\nexport const progressVariantOptions = ['bar', 'cycle'] as const;\nexport type ProgressVariantType = (typeof progressVariantOptions)[number];\n\nexport type VariantProgressProp = SimpleProp<'variant', ProgressVariantType>;\nexport const variantProgressProp = createPropDefinition<VariantProgressProp>(\n\t'variant',\n\t'bar',\n\t(value: unknown) => {\n\t\tconst str = normalizeString(value);\n\t\tif (progressVariantOptions.includes(str as ProgressVariantType)) {\n\t\t\treturn str as ProgressVariantType;\n\t\t}\n\t\tthrow new Error(`Invalid progress variant: ${str}`);\n\t},\n\t() => true,\n);\n","import type { FunctionalComponent as FC } from '@stencil/core';\nimport { h } from '@stencil/core';\n\nimport type { ProgressVariantType } from '../../props';\nimport type { FunctionalComponentProps } from '../generic-types';\nimport type { ProgressApi } from './api';\n\nconst FULL_CIRCLE = 342;\n\nconst CycleSvg: FC<{ max: number; value: number }> = ({ max, value }) => (\n\t<svg width=\"100\" viewBox=\"0 0 120 120\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<circle class=\"kol-progress__cycle-background\" cx=\"60\" cy=\"60\" r=\"54.5\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"8\"></circle>\n\t\t<circle class=\"kol-progress__cycle-whitespace\" cx=\"60\" cy=\"60\" r=\"59\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"3\"></circle>\n\t\t<circle class=\"kol-progress__cycle-border\" cx=\"60\" cy=\"60\" r=\"59\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1\"></circle>\n\t\t<circle class=\"kol-progress__cycle-whitespace\" cx=\"60\" cy=\"60\" r=\"51\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1\"></circle>\n\t\t<circle class=\"kol-progress__cycle-border\" cx=\"60\" cy=\"60\" r=\"50\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1\"></circle>\n\t\t<circle\n\t\t\tclass=\"kol-progress__cycle-progress\"\n\t\t\tfill=\"currentColor\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstroke-linecap=\"round\"\n\t\t\tstroke-dasharray={`${Math.round((value / max) * FULL_CIRCLE)}px ${FULL_CIRCLE}px`}\n\t\t\tstroke-width=\"6\"\n\t\t\tcx=\"60\"\n\t\t\tcy=\"60\"\n\t\t\tr=\"54.5\"\n\t\t></circle>\n\t</svg>\n);\n\nconst BarSvg: FC<{ max: number; value: number }> = ({ max, value }) => {\n\tconst percentage = 100 * (value / max);\n\treturn (\n\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"100%\" height=\"12\" overflow=\"visible\">\n\t\t\t<rect class=\"kol-progress__bar-background\" x=\"1\" y=\"1\" height=\"11\" rx=\"5\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"3\" width=\"100%\"></rect>\n\t\t\t<rect class=\"kol-progress__bar-border\" x=\"1\" y=\"1\" height=\"11\" rx=\"5\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1\" width=\"100%\"></rect>\n\t\t\t<rect\n\t\t\t\tclass=\"kol-progress__bar-progress\"\n\t\t\t\tx=\"3\"\n\t\t\t\ty=\"3\"\n\t\t\t\theight=\"7\"\n\t\t\t\trx=\"3.5\"\n\t\t\t\tfill=\"currentColor\"\n\t\t\t\tstroke=\"currentColor\"\n\t\t\t\tstroke-width=\"3\"\n\t\t\t\tstyle={{ width: `calc(${percentage}% - 4px)` }}\n\t\t\t></rect>\n\t\t</svg>\n\t);\n};\n\nconst createProgressSVG = (variant: ProgressVariantType, max: number, value: number) => {\n\tswitch (variant) {\n\t\tcase 'cycle':\n\t\t\treturn <CycleSvg max={max} value={value} />;\n\t\tcase 'bar':\n\t\t\treturn <BarSvg max={max} value={value} />;\n\t\tdefault:\n\t\t\tthrow new Error(`Progress variant ${variant as string} not implemented.`);\n\t}\n};\n\nexport const ProgressFC: FC<FunctionalComponentProps<ProgressApi>> = (props) => {\n\tconst { label, max, unit, value, variant, liveValue } = props;\n\tconst isPercentage = unit === '%';\n\tconst liveProgressValue = isPercentage ? `${Math.round((liveValue / max) * 100)}` : liveValue;\n\tconst displayValue = isPercentage ? Math.round((value / max) * 100) : value;\n\tconst valueColumnWidth = `${`${(isPercentage ? 100 : max) + 1}`.length}ch`;\n\n\treturn (\n\t\t<div class=\"kol-progress\">\n\t\t\t<div\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tclass={{\n\t\t\t\t\t'kol-progress__cycle': variant === 'cycle',\n\t\t\t\t\t'kol-progress__bar': variant === 'bar',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{variant === 'bar' && label && <div class=\"kol-progress__bar-label\">{label}</div>}\n\t\t\t\t{createProgressSVG(variant, max, value)}\n\t\t\t\t{variant === 'cycle' && (\n\t\t\t\t\t<div class=\"kol-progress__cycle-text\">\n\t\t\t\t\t\t{label && <div class=\"kol-progress__cycle-label\">{label}</div>}\n\t\t\t\t\t\t<div class=\"kol-progress__cycle-value\">{`${displayValue} ${unit}`}</div>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t{variant === 'bar' && (\n\t\t\t\t\t<div class=\"kol-progress__bar-value\" style={{ width: valueColumnWidth }}>\n\t\t\t\t\t\t{displayValue}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t{variant === 'bar' && <div class=\"kol-progress__bar-unit\">{unit}</div>}\n\t\t\t</div>\n\n\t\t\t{/* https://css-tricks.com/html5-progress-element/ */}\n\t\t\t<progress class=\"visually-hidden\" aria-busy={value < max ? 'true' : 'false'} max={max} value={value}></progress>\n\t\t\t<span aria-live=\"polite\" aria-relevant=\"removals text\" class=\"visually-hidden\">\n\t\t\t\t{isPercentage ? `${liveProgressValue} %` : `${liveProgressValue} von ${max} ${unit}`}\n\t\t\t</span>\n\t\t</div>\n\t);\n};\n","import { clampedNumberValueProp, labelProp, maxProp, unitProp, variantProgressProp } from '../../props';\nimport type { ApiFromConfig, PropsConfigShape } from '../generic-types';\n\nexport const progressPropsConfig = {\n\toptional: [labelProp, unitProp, variantProgressProp],\n\trequired: [maxProp, clampedNumberValueProp],\n} as const satisfies PropsConfigShape;\n\nexport type ProgressApi = ApiFromConfig<typeof progressPropsConfig, { States: { liveValue: number } }>;\n","import { clampedNumberValueProp, labelProp, maxProp, unitProp, variantProgressProp } from '../../props';\nimport { BaseController } from '../base-controller';\nimport type { ControllerInterface, GetStateFn, ResolvedInputProps, SetStateFn } from '../generic-types';\nimport type { ProgressApi } from './api';\nimport { progressPropsConfig } from './api';\n\nexport class ProgressController extends BaseController<ProgressApi> implements ControllerInterface<ProgressApi> {\n\tprivate interval?: ReturnType<typeof setInterval>;\n\n\tpublic constructor(setState: SetStateFn<ProgressApi>, getState: GetStateFn<ProgressApi>) {\n\t\tsuper(progressPropsConfig, setState, getState);\n\t}\n\n\tpublic componentWillLoad(props: ResolvedInputProps<ProgressApi>): void {\n\t\tconst { label, max, unit, value, variant } = props;\n\t\tthis.watchLabel(label);\n\t\tthis.watchMax(max);\n\t\tthis.watchUnit(unit);\n\t\tthis.watchValue(value);\n\t\tthis.watchVariant(variant);\n\n\t\tthis.setState('liveValue', this.getRenderProp('value'));\n\t\tthis.startLiveValueInterval();\n\t}\n\n\tpublic watchLabel(value?: string): void {\n\t\tlabelProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('label', v);\n\t\t});\n\t}\n\n\tpublic watchMax(value?: number): void {\n\t\tmaxProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('max', v);\n\t\t\tthis.watchValue(this.getRawProp('value'));\n\t\t});\n\t}\n\n\tpublic watchUnit(value?: string): void {\n\t\tunitProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('unit', v);\n\t\t});\n\t}\n\n\tpublic watchValue(value?: number): void {\n\t\tthis.setRawProp('value', value);\n\t\tclampedNumberValueProp.apply(\n\t\t\tvalue,\n\t\t\t(v) => {\n\t\t\t\tthis.setRenderProp('value', v);\n\t\t\t},\n\t\t\t{ min: 0, max: this.getRenderProp('max') },\n\t\t);\n\t}\n\n\tpublic watchVariant(value?: string): void {\n\t\tvariantProgressProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('variant', v);\n\t\t});\n\t}\n\n\t// a11y: says the value of the component every 5s\n\tprivate startLiveValueInterval(): void {\n\t\tthis.interval = setInterval(() => {\n\t\t\tconst value = this.getRenderProp('value');\n\t\t\tthis.setState('liveValue', value);\n\t\t}, 5000);\n\t}\n\n\tpublic destroy(): void {\n\t\tif (this.interval) {\n\t\t\tclearInterval(this.interval);\n\t\t\tthis.interval = undefined;\n\t\t}\n\t}\n}\n","@use '../@shared/mixins' as *;\n@use '../@shared/global' as *;\n\n@layer kol-component {\n\t.kol-progress {\n\t\t&__bar {\n\t\t\tdisplay: grid;\n\t\t\tcolumn-gap: 0.05rem;\n\t\t\talign-items: center;\n\t\t\tgrid-template-areas:\n\t\t\t\t'LABEL LABEL LABEL'\n\t\t\t\t'BAR VALUE UNIT';\n\t\t\tgrid-template-columns: 1fr auto;\n\n\t\t\t&-label {\n\t\t\t\tgrid-column-end: 2;\n\t\t\t\tgrid-area: LABEL;\n\t\t\t}\n\n\t\t\tsvg {\n\t\t\t\tgrid-area: BAR;\n\t\t\t}\n\n\t\t\t&-value {\n\t\t\t\tgrid-area: VALUE;\n\t\t\t\ttext-align: right;\n\t\t\t}\n\n\t\t\t&-unit {\n\t\t\t\tgrid-area: UNIT;\n\t\t\t}\n\n\t\t\t&-border {\n\t\t\t\tfill: transparent;\n\t\t\t\tstroke: black;\n\t\t\t}\n\n\t\t\t&-background {\n\t\t\t\tfill: lightgray;\n\t\t\t\tstroke: white;\n\t\t\t}\n\n\t\t\t&-progress {\n\t\t\t\tfill: #0075ff;\n\t\t\t\tstroke: transparent;\n\n\t\t\t\t@media (prefers-reduced-motion: no-preference) {\n\t\t\t\t\ttransition: 250ms ease-in-out 50ms;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&__cycle {\n\t\t\tdisplay: grid;\n\t\t\talign-content: center;\n\t\t\tjustify-items: center;\n\t\t\tgrid-template-areas: 'ALL';\n\t\t\tgrid-template-columns: auto;\n\n\t\t\t> * {\n\t\t\t\tgrid-area: ALL;\n\t\t\t}\n\n\t\t\t&-text {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\tjustify-content: center;\n\n\t\t\t\tfont-size: x-small;\n\t\t\t\ttext-align: center;\n\n\t\t\t\t* {\n\t\t\t\t\tbackground-color: white;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-background {\n\t\t\t\tfill: transparent;\n\t\t\t\tstroke: lightgray;\n\t\t\t}\n\n\t\t\t&-border {\n\t\t\t\tfill: transparent;\n\t\t\t\tstroke: black;\n\t\t\t}\n\n\t\t\t&-whitespace {\n\t\t\t\tfill: transparent;\n\t\t\t\tstroke: white;\n\t\t\t}\n\n\t\t\t&-progress {\n\t\t\t\ttransform: rotate(-90deg);\n\t\t\t\ttransform-origin: 50% 50%;\n\t\t\t\tfill: transparent;\n\t\t\t\tstroke: #0075ff;\n\n\t\t\t\t@media (prefers-reduced-motion: no-preference) {\n\t\t\t\t\ttransition: 250ms ease-in-out 50ms;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Host, Prop, State, Watch } from '@stencil/core';\nimport { BaseWebComponent } from '../../internal/functional-components/base-web-component';\nimport type { WebComponentInterface } from '../../internal/functional-components/generic-types';\nimport type { ProgressApi } from '../../internal/functional-components/progress/api';\nimport { ProgressFC } from '../../internal/functional-components/progress/component';\nimport { ProgressController } from '../../internal/functional-components/progress/controller';\nimport type { ProgressVariantType } from '../../internal/props';\n\n/**\n * The **Progress** component visualizes the completion status of a task or process. It supports both determinate (percentage-based) and indeterminate variants.\n */\n@Component({\n\ttag: 'kol-progress',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolProgress extends BaseWebComponent<ProgressApi> implements WebComponentInterface<ProgressApi> {\n\tprivate readonly ctrl = new ProgressController(this.setState, this.getState);\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop()\n\tpublic _label?: string;\n\n\t@Watch('_label')\n\tpublic watchLabel(value?: string): void {\n\t\tthis.ctrl.watchLabel(value);\n\t}\n\n\t/**\n\t * Defines the maximum value of the element.\n\t */\n\t@Prop()\n\tpublic _max!: number;\n\n\t@Watch('_max')\n\tpublic watchMax(value?: number): void {\n\t\tthis.ctrl.watchMax(value);\n\t}\n\n\t/**\n\t * Defines the unit of the step values (not shown).\n\t */\n\t@Prop()\n\tpublic _unit?: string;\n\n\t@Watch('_unit')\n\tpublic watchUnit(value?: string): void {\n\t\tthis.ctrl.watchUnit(value);\n\t}\n\n\t/**\n\t * Defines the value of the element.\n\t */\n\t@Prop()\n\tpublic _value!: number;\n\n\t@Watch('_value')\n\tpublic watchValue(value?: number): void {\n\t\tthis.ctrl.watchValue(value);\n\t}\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop()\n\tpublic _variant?: ProgressVariantType;\n\n\t@Watch('_variant')\n\tpublic watchVariant(value?: ProgressVariantType): void {\n\t\tthis.ctrl.watchVariant(value);\n\t}\n\n\t/**\n\t * A11y: Aria live value\n\t */\n\t@State()\n\tpublic liveValue: number = 0;\n\n\tpublic componentWillLoad(): void {\n\t\tthis.ctrl.componentWillLoad({\n\t\t\tlabel: this._label,\n\t\t\tmax: this._max,\n\t\t\tunit: this._unit,\n\t\t\tvalue: this._value,\n\t\t\tvariant: this._variant,\n\t\t});\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tthis.ctrl.destroy();\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<ProgressFC\n\t\t\t\t\tlabel={this.ctrl.getRenderProp('label')}\n\t\t\t\t\tmax={this.ctrl.getRenderProp('max')}\n\t\t\t\t\tunit={this.ctrl.getRenderProp('unit')}\n\t\t\t\t\tvalue={this.ctrl.getRenderProp('value')}\n\t\t\t\t\tvariant={this.ctrl.getRenderProp('variant')}\n\t\t\t\t\tliveValue={this.liveValue}\n\t\t\t\t/>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-progress.js","mappings":";;;;;;;;;AA0BO,MAAM,OAAO,GAAG,oBAAoB,CAAU,KAAK,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;;ACExF,MAAM,QAAQ,GAAG,oBAAoB,CAAW,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC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C,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,EACvC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,EAC3C,SAAS,EAAE,IAAI,CAAC,SAAS,EACxB,CAAA,CACI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolProgress","__stencil_proxyCustomElement"],"sources":["src/internal/props/max.ts","src/internal/props/unit.ts","src/internal/props/value-number-clamped.ts","src/internal/props/variant-progress.ts","src/internal/functional-components/progress/component.tsx","src/internal/functional-components/progress/api.tsx","src/internal/functional-components/progress/controller.ts","src/components/progress/style.scss?tag=kol-progress&mode=default&encapsulation=shadow","src/components/progress/component.tsx"],"sourcesContent":["import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeNumber } from './helpers/normalizers';\n\n/**\n * Max prop for upper boundary of progress and meter elements\n *\n * Description:\n * The max attribute defines the upper bound of a range. It is used by progress bars and\n * meter elements to indicate the total or maximum achievable value.\n *\n * Usage (according to W3C HTML specification and WAI-ARIA):\n * - Must be a positive number greater than 0\n * - Corresponds to the HTML progress element's max attribute\n * - Maps to aria-valuemax in WAI-ARIA to communicate the upper limit to assistive technologies\n * - Default value is 100 (representing 100%)\n *\n * Accessibility:\n * - Screen readers use aria-valuemax together with aria-valuenow to announce progress status\n * - The relationship between value and max must be programmatically determinable (WCAG 1.3.1 Info and Relationships)\n *\n * @see https://html.spec.whatwg.org/multipage/form-elements.html#attr-progress-max\n * @see https://www.w3.org/TR/wai-aria-1.2/#aria-valuemax\n * @see https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships.html\n */\nexport type MaxProp = SimpleProp<'max', number>;\nexport const maxProp = createPropDefinition<MaxProp>('max', 100, normalizeNumber, (v) => v > 0);\n","import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\n/**\n * Unit prop for value display formatting\n *\n * Description:\n * Defines the unit of measurement to display alongside a numeric value (e.g., \"%\", \"MB\", \"km/h\").\n * The unit helps users understand the meaning and scale of the displayed value.\n *\n * Usage:\n * - Must be a non-empty string\n * - Default is \"%\" (percentage)\n * - The unit is appended to the displayed value for visual users\n * - Common units: \"%\", \"MB\", \"s\", \"€\", \"kg\"\n *\n * Accessibility:\n * - The unit must be part of the accessible value description for screen reader users\n * - Consider using aria-valuetext to create human-readable descriptions that include the unit\n * (e.g., aria-valuetext=\"75 percent\" instead of just the number 75)\n * - Units convey meaningful information and must be programmatically determinable\n * (WCAG 1.3.1 Info and Relationships)\n *\n * @see https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships.html\n * @see https://www.w3.org/TR/wai-aria-1.2/#aria-valuetext\n */\nexport type UnitProp = SimpleProp<'unit', string>;\nexport const unitProp = createPropDefinition<UnitProp>('unit', '%', normalizeString, (v) => v.length > 0);\n","import type { SimpleProp } from './helpers/factory';\nimport { createDependentPropDefinition } from './helpers/factory';\nimport { normalizeNumber } from './helpers/normalizers';\n\n/**\n * Clamped value prop for bounded numeric ranges\n *\n * Description:\n * Represents a numeric value that is automatically clamped between a minimum and maximum.\n * If the provided value falls outside the allowed range, it is silently adjusted to the\n * nearest boundary. This ensures the value always stays within valid bounds.\n *\n * Usage (according to W3C HTML specification and WAI-ARIA):\n * - Depends on min and max props to define the valid range\n * - Corresponds to the HTML <progress> or <meter> element's value, min, and max attributes\n * - Maps to aria-valuenow, aria-valuemin, and aria-valuemax in WAI-ARIA\n * - Clamping happens transparently; no error is raised for out-of-range inputs\n *\n * Accessibility:\n * - The value boundaries must be programmatically determinable (WCAG 1.3.1 Info and Relationships)\n * - Screen readers use aria-valuemin, aria-valuenow, and aria-valuemax to announce range status\n * - Consider providing aria-valuetext for a human-readable description of the value\n *\n * @see https://html.spec.whatwg.org/multipage/form-elements.html#the-meter-element\n * @see https://www.w3.org/TR/wai-aria-1.2/#aria-valuenow\n * @see https://www.w3.org/TR/wai-aria-1.2/#aria-valuemin\n * @see https://www.w3.org/TR/wai-aria-1.2/#aria-valuemax\n */\nexport type ClampedNumberValueProp = SimpleProp<'value', number>;\n\nexport type ClampedNumberValueDeps = {\n\tmin: number;\n\tmax: number;\n};\n\nexport const clampedNumberValueProp = createDependentPropDefinition<ClampedNumberValueProp, ClampedNumberValueDeps>(\n\t'value',\n\t0,\n\t(value, deps) => {\n\t\tconst normalized = normalizeNumber(value);\n\t\tif (normalized < deps.min) {\n\t\t\treturn deps.min;\n\t\t} else if (normalized > deps.max) {\n\t\t\treturn deps.max;\n\t\t}\n\t\treturn normalized;\n\t},\n\t(v) => v >= 0,\n);\n","import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\n/**\n * Variant prop for progress display style\n *\n * Description:\n * Determines the visual presentation of a progress indicator. Both variants use the\n * WAI-ARIA progressbar role and convey the same semantic information to assistive technologies.\n *\n * Usage (according to W3C HTML specification and WAI-ARIA):\n * - \"bar\": Linear horizontal progress bar (default)\n * - \"cycle\": Circular/radial progress indicator\n * - Both variants must expose role=\"progressbar\" with aria-valuenow, aria-valuemin, and aria-valuemax\n * - The visual variant choice is presentation-only and does not affect the accessible semantics\n *\n * Accessibility:\n * - Progress state must be announced to screen readers (WCAG 4.1.3 Status Messages)\n * - The progress indicator must be perceivable through non-visual means (WCAG 1.1.1 Non-text Content)\n * - Animation in the cycle variant must respect prefers-reduced-motion (WCAG 2.3.3 Animation from Interactions)\n *\n * @see https://html.spec.whatwg.org/multipage/form-elements.html#the-progress-element\n * @see https://www.w3.org/TR/wai-aria-1.2/#progressbar\n * @see https://www.w3.org/WAI/WCAG21/Understanding/status-messages.html\n */\nexport const progressVariantOptions = ['bar', 'cycle'] as const;\nexport type ProgressVariantType = (typeof progressVariantOptions)[number];\n\nexport type VariantProgressProp = SimpleProp<'variant', ProgressVariantType>;\nexport const variantProgressProp = createPropDefinition<VariantProgressProp>(\n\t'variant',\n\t'bar',\n\t(value: unknown) => {\n\t\tconst str = normalizeString(value);\n\t\tif (progressVariantOptions.includes(str as ProgressVariantType)) {\n\t\t\treturn str as ProgressVariantType;\n\t\t}\n\t\tthrow new Error(`Invalid progress variant: ${str}`);\n\t},\n\t() => true,\n);\n","import type { FunctionalComponent as FC } from '@stencil/core';\nimport { h } from '@stencil/core';\n\nimport type { ProgressVariantType } from '../../props';\nimport type { FunctionalComponentProps } from '../generic-types';\nimport type { ProgressApi } from './api';\n\nconst FULL_CIRCLE = 342;\n\nconst CycleSvg: FC<{ max: number; value: number }> = ({ max, value }) => (\n\t<svg width=\"100\" viewBox=\"0 0 120 120\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<circle class=\"kol-progress__cycle-background\" cx=\"60\" cy=\"60\" r=\"54.5\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"8\"></circle>\n\t\t<circle class=\"kol-progress__cycle-whitespace\" cx=\"60\" cy=\"60\" r=\"59\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"3\"></circle>\n\t\t<circle class=\"kol-progress__cycle-border\" cx=\"60\" cy=\"60\" r=\"59\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1\"></circle>\n\t\t<circle class=\"kol-progress__cycle-whitespace\" cx=\"60\" cy=\"60\" r=\"51\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1\"></circle>\n\t\t<circle class=\"kol-progress__cycle-border\" cx=\"60\" cy=\"60\" r=\"50\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1\"></circle>\n\t\t<circle\n\t\t\tclass=\"kol-progress__cycle-progress\"\n\t\t\tfill=\"currentColor\"\n\t\t\tstroke=\"currentColor\"\n\t\t\tstroke-linecap=\"round\"\n\t\t\tstroke-dasharray={`${Math.round((value / max) * FULL_CIRCLE)}px ${FULL_CIRCLE}px`}\n\t\t\tstroke-width=\"6\"\n\t\t\tcx=\"60\"\n\t\t\tcy=\"60\"\n\t\t\tr=\"54.5\"\n\t\t></circle>\n\t</svg>\n);\n\nconst BarSvg: FC<{ max: number; value: number }> = ({ max, value }) => {\n\tconst percentage = 100 * (value / max);\n\treturn (\n\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"100%\" height=\"12\" overflow=\"visible\">\n\t\t\t<rect class=\"kol-progress__bar-background\" x=\"1\" y=\"1\" height=\"11\" rx=\"5\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"3\" width=\"100%\"></rect>\n\t\t\t<rect class=\"kol-progress__bar-border\" x=\"1\" y=\"1\" height=\"11\" rx=\"5\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1\" width=\"100%\"></rect>\n\t\t\t<rect\n\t\t\t\tclass=\"kol-progress__bar-progress\"\n\t\t\t\tx=\"3\"\n\t\t\t\ty=\"3\"\n\t\t\t\theight=\"7\"\n\t\t\t\trx=\"3.5\"\n\t\t\t\tfill=\"currentColor\"\n\t\t\t\tstroke=\"currentColor\"\n\t\t\t\tstroke-width=\"3\"\n\t\t\t\tstyle={{ width: `calc(${percentage}% - 4px)` }}\n\t\t\t></rect>\n\t\t</svg>\n\t);\n};\n\nconst createProgressSVG = (variant: ProgressVariantType, max: number, value: number) => {\n\tswitch (variant) {\n\t\tcase 'cycle':\n\t\t\treturn <CycleSvg max={max} value={value} />;\n\t\tcase 'bar':\n\t\t\treturn <BarSvg max={max} value={value} />;\n\t\tdefault:\n\t\t\tthrow new Error(`Progress variant ${variant as string} not implemented.`);\n\t}\n};\n\nexport const ProgressFC: FC<FunctionalComponentProps<ProgressApi>> = (props) => {\n\tconst { label, max, unit, value, variant, liveValue } = props;\n\tconst isPercentage = unit === '%';\n\tconst liveProgressValue = isPercentage ? `${Math.round((liveValue / max) * 100)}` : liveValue;\n\tconst displayValue = isPercentage ? Math.round((value / max) * 100) : value;\n\tconst valueColumnWidth = `${`${(isPercentage ? 100 : max) + 1}`.length}ch`;\n\n\treturn (\n\t\t<div class=\"kol-progress\">\n\t\t\t<div\n\t\t\t\taria-hidden=\"true\"\n\t\t\t\tclass={{\n\t\t\t\t\t'kol-progress__cycle': variant === 'cycle',\n\t\t\t\t\t'kol-progress__bar': variant === 'bar',\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{variant === 'bar' && label && <div class=\"kol-progress__bar-label\">{label}</div>}\n\t\t\t\t{createProgressSVG(variant, max, value)}\n\t\t\t\t{variant === 'cycle' && (\n\t\t\t\t\t<div class=\"kol-progress__cycle-text\">\n\t\t\t\t\t\t{label && <div class=\"kol-progress__cycle-label\">{label}</div>}\n\t\t\t\t\t\t<div class=\"kol-progress__cycle-value\">{`${displayValue} ${unit}`}</div>\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t{variant === 'bar' && (\n\t\t\t\t\t<div class=\"kol-progress__bar-value\" style={{ width: valueColumnWidth }}>\n\t\t\t\t\t\t{displayValue}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t{variant === 'bar' && <div class=\"kol-progress__bar-unit\">{unit}</div>}\n\t\t\t</div>\n\n\t\t\t{/* https://css-tricks.com/html5-progress-element/ */}\n\t\t\t<progress class=\"visually-hidden\" aria-busy={value < max ? 'true' : 'false'} max={max} value={value}></progress>\n\t\t\t<span aria-live=\"polite\" aria-relevant=\"removals text\" class=\"visually-hidden\">\n\t\t\t\t{isPercentage ? `${liveProgressValue} %` : `${liveProgressValue} von ${max} ${unit}`}\n\t\t\t</span>\n\t\t</div>\n\t);\n};\n","import { clampedNumberValueProp, labelProp, maxProp, unitProp, variantProgressProp } from '../../props';\nimport type { ApiFromConfig, PropsConfigShape } from '../generic-types';\n\nexport const progressPropsConfig = {\n\toptional: [labelProp, unitProp, variantProgressProp],\n\trequired: [maxProp, clampedNumberValueProp],\n} as const satisfies PropsConfigShape;\n\nexport type ProgressApi = ApiFromConfig<typeof progressPropsConfig, { States: { liveValue: number } }>;\n","import { clampedNumberValueProp, labelProp, maxProp, unitProp, variantProgressProp } from '../../props';\nimport { BaseController } from '../base-controller';\nimport type { ControllerInterface, GetStateFn, ResolvedInputProps, SetStateFn } from '../generic-types';\nimport type { ProgressApi } from './api';\nimport { progressPropsConfig } from './api';\n\nexport class ProgressController extends BaseController<ProgressApi> implements ControllerInterface<ProgressApi> {\n\tprivate interval?: ReturnType<typeof setInterval>;\n\n\tpublic constructor(setState: SetStateFn<ProgressApi>, getState: GetStateFn<ProgressApi>) {\n\t\tsuper(progressPropsConfig, setState, getState);\n\t}\n\n\tpublic componentWillLoad(props: ResolvedInputProps<ProgressApi>): void {\n\t\tconst { label, max, unit, value, variant } = props;\n\t\tthis.watchLabel(label);\n\t\tthis.watchMax(max);\n\t\tthis.watchUnit(unit);\n\t\tthis.watchValue(value);\n\t\tthis.watchVariant(variant);\n\n\t\tthis.setState('liveValue', this.getRenderProp('value'));\n\t\tthis.startLiveValueInterval();\n\t}\n\n\tpublic watchLabel(value?: string): void {\n\t\tlabelProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('label', v);\n\t\t});\n\t}\n\n\tpublic watchMax(value?: number): void {\n\t\tmaxProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('max', v);\n\t\t\tthis.watchValue(this.getRawProp('value'));\n\t\t});\n\t}\n\n\tpublic watchUnit(value?: string): void {\n\t\tunitProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('unit', v);\n\t\t});\n\t}\n\n\tpublic watchValue(value?: number): void {\n\t\tthis.setRawProp('value', value);\n\t\tclampedNumberValueProp.apply(\n\t\t\tvalue,\n\t\t\t(v) => {\n\t\t\t\tthis.setRenderProp('value', v);\n\t\t\t},\n\t\t\t{ min: 0, max: this.getRenderProp('max') },\n\t\t);\n\t}\n\n\tpublic watchVariant(value?: string): void {\n\t\tvariantProgressProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('variant', v);\n\t\t});\n\t}\n\n\t// a11y: says the value of the component every 5s\n\tprivate startLiveValueInterval(): void {\n\t\tthis.interval = setInterval(() => {\n\t\t\tconst value = this.getRenderProp('value');\n\t\t\tthis.setState('liveValue', value);\n\t\t}, 5000);\n\t}\n\n\tpublic destroy(): void {\n\t\tif (this.interval) {\n\t\t\tclearInterval(this.interval);\n\t\t\tthis.interval = undefined;\n\t\t}\n\t}\n}\n","@use '../@shared/mixins' as *;\n@use '../@shared/global' as *;\n\n@layer kol-component {\n\t.kol-progress {\n\t\t&__bar {\n\t\t\tdisplay: grid;\n\t\t\talign-items: center;\n\t\t\tgrid-template-areas:\n\t\t\t\t'LABEL LABEL LABEL'\n\t\t\t\t'BAR VALUE UNIT';\n\t\t\tgrid-template-columns: 1fr auto;\n\n\t\t\t&-label {\n\t\t\t\tgrid-column-end: 2;\n\t\t\t\tgrid-area: LABEL;\n\t\t\t}\n\n\t\t\tsvg {\n\t\t\t\tgrid-area: BAR;\n\t\t\t}\n\n\t\t\t&-value {\n\t\t\t\tgrid-area: VALUE;\n\t\t\t\ttext-align: right;\n\t\t\t}\n\n\t\t\t&-unit {\n\t\t\t\tgrid-area: UNIT;\n\t\t\t}\n\n\t\t\t&-border {\n\t\t\t\tfill: transparent;\n\t\t\t\tstroke: black;\n\t\t\t}\n\n\t\t\t&-background {\n\t\t\t\tfill: lightgray;\n\t\t\t\tstroke: white;\n\t\t\t}\n\n\t\t\t&-progress {\n\t\t\t\tfill: #0075ff;\n\t\t\t\tstroke: transparent;\n\n\t\t\t\t@media (prefers-reduced-motion: no-preference) {\n\t\t\t\t\ttransition: 250ms ease-in-out 50ms;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&__cycle {\n\t\t\tdisplay: grid;\n\t\t\talign-content: center;\n\t\t\tjustify-items: center;\n\t\t\tgrid-template-areas: 'ALL';\n\t\t\tgrid-template-columns: auto;\n\n\t\t\t> * {\n\t\t\t\tgrid-area: ALL;\n\t\t\t}\n\n\t\t\t&-text {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column;\n\t\t\t\tjustify-content: center;\n\n\t\t\t\tfont-size: x-small;\n\t\t\t\ttext-align: center;\n\n\t\t\t\t* {\n\t\t\t\t\tbackground-color: white;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&-background {\n\t\t\t\tfill: transparent;\n\t\t\t\tstroke: lightgray;\n\t\t\t}\n\n\t\t\t&-border {\n\t\t\t\tfill: transparent;\n\t\t\t\tstroke: black;\n\t\t\t}\n\n\t\t\t&-whitespace {\n\t\t\t\tfill: transparent;\n\t\t\t\tstroke: white;\n\t\t\t}\n\n\t\t\t&-progress {\n\t\t\t\ttransform: rotate(-90deg);\n\t\t\t\ttransform-origin: 50% 50%;\n\t\t\t\tfill: transparent;\n\t\t\t\tstroke: #0075ff;\n\n\t\t\t\t@media (prefers-reduced-motion: no-preference) {\n\t\t\t\t\ttransition: 250ms ease-in-out 50ms;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Host, Prop, State, Watch } from '@stencil/core';\nimport { BaseWebComponent } from '../../internal/functional-components/base-web-component';\nimport type { WebComponentInterface } from '../../internal/functional-components/generic-types';\nimport type { ProgressApi } from '../../internal/functional-components/progress/api';\nimport { ProgressFC } from '../../internal/functional-components/progress/component';\nimport { ProgressController } from '../../internal/functional-components/progress/controller';\nimport type { ProgressVariantType } from '../../internal/props';\n\n/**\n * The **Progress** component visualizes the completion status of a task or process. It supports both determinate (percentage-based) and indeterminate variants.\n */\n@Component({\n\ttag: 'kol-progress',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolProgress extends BaseWebComponent<ProgressApi> implements WebComponentInterface<ProgressApi> {\n\tprivate readonly ctrl = new ProgressController(this.setState, this.getState);\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop()\n\tpublic _label?: string;\n\n\t@Watch('_label')\n\tpublic watchLabel(value?: string): void {\n\t\tthis.ctrl.watchLabel(value);\n\t}\n\n\t/**\n\t * Defines the maximum value of the element.\n\t */\n\t@Prop()\n\tpublic _max!: number;\n\n\t@Watch('_max')\n\tpublic watchMax(value?: number): void {\n\t\tthis.ctrl.watchMax(value);\n\t}\n\n\t/**\n\t * Defines the unit of the step values (not shown).\n\t */\n\t@Prop()\n\tpublic _unit?: string;\n\n\t@Watch('_unit')\n\tpublic watchUnit(value?: string): void {\n\t\tthis.ctrl.watchUnit(value);\n\t}\n\n\t/**\n\t * Defines the value of the element.\n\t */\n\t@Prop()\n\tpublic _value!: number;\n\n\t@Watch('_value')\n\tpublic watchValue(value?: number): void {\n\t\tthis.ctrl.watchValue(value);\n\t}\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop()\n\tpublic _variant?: ProgressVariantType;\n\n\t@Watch('_variant')\n\tpublic watchVariant(value?: ProgressVariantType): void {\n\t\tthis.ctrl.watchVariant(value);\n\t}\n\n\t/**\n\t * A11y: Aria live value\n\t */\n\t@State()\n\tpublic liveValue: number = 0;\n\n\tpublic componentWillLoad(): void {\n\t\tthis.ctrl.componentWillLoad({\n\t\t\tlabel: this._label,\n\t\t\tmax: this._max,\n\t\t\tunit: this._unit,\n\t\t\tvalue: this._value,\n\t\t\tvariant: this._variant,\n\t\t});\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tthis.ctrl.destroy();\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<ProgressFC\n\t\t\t\t\tlabel={this.ctrl.getRenderProp('label')}\n\t\t\t\t\tmax={this.ctrl.getRenderProp('max')}\n\t\t\t\t\tunit={this.ctrl.getRenderProp('unit')}\n\t\t\t\t\tvalue={this.ctrl.getRenderProp('value')}\n\t\t\t\t\tvariant={this.ctrl.getRenderProp('variant')}\n\t\t\t\t\tliveValue={this.liveValue}\n\t\t\t\t/>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h,proxyCustomElement,Host}from"@stencil/core/internal/client";import{c as createPropDefinition,n as normalizeString,v as variantQuoteProp,B as BaseController,a as BaseWebComponent}from"./base-web-component.js";import{k as KolLinkTag}from"./component-names.js";import{b as bem}from"./bem-registry.js";import"./common.js";import{l as labelProp}from"./label2.js";const hrefProp=createPropDefinition("href","",normalizeString,e=>"string"==typeof e),quoteProp=createPropDefinition("quote","",normalizeString),quoteBem=bem.forBlock("kol-quote"),BEM_CLASS_QUOTE__BLOCKQUOTE=quoteBem("blockquote"),BEM_CLASS_QUOTE__CITE=quoteBem("cite"),BEM_CLASS_QUOTE__FIGCAPTION=quoteBem("figcaption"),BEM_CLASS_QUOTE__QUOTE=quoteBem("quote"),QuoteFC=e=>{const{href:n,label:t,quote:o,variant:i}=e,a=""===o,l=quoteBem({[i]:!0});return h("figure",{class:l},"block"===i?h("blockquote",{class:BEM_CLASS_QUOTE__BLOCKQUOTE,cite:n},o,h("span",{"aria-hidden":a?void 0:"true",hidden:!a},h("slot",{name:"expert"}))):h("q",{class:BEM_CLASS_QUOTE__QUOTE,cite:n},o,h("span",{"aria-hidden":a?void 0:"true",hidden:!a},h("slot",{name:"expert"}))),"string"==typeof t&&t.length>0&&h("figcaption",{class:BEM_CLASS_QUOTE__FIGCAPTION},h("cite",{class:BEM_CLASS_QUOTE__CITE},h(KolLinkTag,{_href:n,_label:t,_target:"_blank"}))))},quotePropsConfig={optional:[labelProp,variantQuoteProp],required:[hrefProp,quoteProp]};class QuoteController extends BaseController{constructor(e,n){super(quotePropsConfig,e,n)}componentWillLoad(e){const{href:n,label:t,quote:o,variant:i}=e;this.watchHref(n),this.watchLabel(t),this.watchQuote(o),this.watchVariant(i)}watchHref(e){hrefProp.apply(e,e=>{this.setRenderProp("href",e)})}watchLabel(e){labelProp.apply(e,e=>{this.setRenderProp("label",e)})}watchQuote(e){quoteProp.apply(e,e=>{this.setRenderProp("quote",e)})}watchVariant(e){variantQuoteProp.apply(e,e=>{this.setRenderProp("variant",e)})}}const defaultStyleCss="@charset \"UTF-8\";\n/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n .kol-quote {\n display: inline;\n margin: 0;\n padding: 0;\n }\n .kol-quote__cite::before {\n content: \"—\";\n }\n .kol-quote--block .kol-quote__cite::before {\n padding-right: 0.5em;\n }\n .kol-quote--inline .kol-quote__cite::before {\n padding: 0.5em;\n }\n .kol-quote--block .kol-quote__figcaption {\n display: inline;\n margin: 0;\n padding: 0;\n }\n .kol-quote__blockquote::before {\n content: open-quote;\n }\n .kol-quote__blockquote::after {\n content: close-quote;\n }\n}",KolQuote$1=proxyCustomElement(class extends BaseWebComponent{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.ctrl=new QuoteController(this.setState,this.getState),this._variant="inline"}watchHref(e){this.ctrl.watchHref(e)}watchLabel(e){this.ctrl.watchLabel(e)}watchQuote(e){this.ctrl.watchQuote(e)}watchVariant(e){this.ctrl.watchVariant(e)}componentWillLoad(){this.ctrl.componentWillLoad({href:this._href,label:this._label,quote:this._quote,variant:this._variant})}render(){return h(Host,{key:"697513371a9f5e241807a6627c420133a8be763b"},h(QuoteFC,{key:"204884cac725647a5bc4b26c8b3278d78f5abd0b",href:this.ctrl.getRenderProp("href"),label:this.ctrl.getRenderProp("label"),quote:this.ctrl.getRenderProp("quote"),variant:this.ctrl.getRenderProp("variant")}))}static get watchers(){return{_href:["watchHref"],_label:["watchLabel"],_quote:["watchQuote"],_variant:["watchVariant"]}}static get style(){return{default:defaultStyleCss}}},[801,"kol-quote",{_href:[1],_label:[1],_quote:[1],_variant:[1]},void 0,{_href:["watchHref"],_label:["watchLabel"],_quote:["watchQuote"],_variant:["watchVariant"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-quote"].forEach(e=>{if("kol-quote"===e)customElements.get(e)||customElements.define(e,KolQuote$1)})}const KolQuote=KolQuote$1,defineCustomElement=defineCustomElement$1;export{KolQuote,defineCustomElement};
4
+ import{h,proxyCustomElement,Host}from"@stencil/core/internal/client";import{v as variantQuoteProp,B as BaseController,a as BaseWebComponent}from"./base-web-component.js";import{k as KolLinkTag}from"./component-names.js";import{b as bem}from"./bem-registry.js";import"./common.js";import{c as createPropDefinition,n as normalizeString}from"./normalizers.js";import{l as labelProp}from"./label2.js";const hrefProp=createPropDefinition("href","",normalizeString,e=>"string"==typeof e),quoteProp=createPropDefinition("quote","",normalizeString),quoteBem=bem.forBlock("kol-quote"),BEM_CLASS_QUOTE__BLOCKQUOTE=quoteBem("blockquote"),BEM_CLASS_QUOTE__CITE=quoteBem("cite"),BEM_CLASS_QUOTE__FIGCAPTION=quoteBem("figcaption"),BEM_CLASS_QUOTE__QUOTE=quoteBem("quote"),QuoteFC=e=>{const{href:n,label:t,quote:o,variant:i}=e,a=""===o,r=quoteBem({[i]:!0});return h("figure",{class:r},"block"===i?h("blockquote",{class:BEM_CLASS_QUOTE__BLOCKQUOTE,cite:n},o,h("span",{"aria-hidden":a?void 0:"true",hidden:!a},h("slot",{name:"expert"}))):h("q",{class:BEM_CLASS_QUOTE__QUOTE,cite:n},o,h("span",{"aria-hidden":a?void 0:"true",hidden:!a},h("slot",{name:"expert"}))),"string"==typeof t&&t.length>0&&h("figcaption",{class:BEM_CLASS_QUOTE__FIGCAPTION},h("cite",{class:BEM_CLASS_QUOTE__CITE},h(KolLinkTag,{_href:n,_label:t,_target:"_blank"}))))},quotePropsConfig={optional:[labelProp,variantQuoteProp],required:[hrefProp,quoteProp]};class QuoteController extends BaseController{constructor(e,n){super(quotePropsConfig,e,n)}componentWillLoad(e){const{href:n,label:t,quote:o,variant:i}=e;this.watchHref(n),this.watchLabel(t),this.watchQuote(o),this.watchVariant(i)}watchHref(e){hrefProp.apply(e,e=>{this.setRenderProp("href",e)})}watchLabel(e){labelProp.apply(e,e=>{this.setRenderProp("label",e)})}watchQuote(e){quoteProp.apply(e,e=>{this.setRenderProp("quote",e)})}watchVariant(e){variantQuoteProp.apply(e,e=>{this.setRenderProp("variant",e)})}}const defaultStyleCss="@charset \"UTF-8\";\n/* forward the rem function */\n/*\n* This file defines the layer order for all CSS layers used in KoliBri.\n* The order is important as it determines the cascade priority.\n*\n* Layer order (lowest to highest priority):\n* 1. kol-a11y - Accessibility defaults and requirements\n* 2. kol-global - Global component styles and resets\n* 3. kol-component - Component-specific styles\n* 4. kol-theme-global - Theme-specific global styles\n* 5. kol-theme-component - Theme-specific component styles\n*/\n@layer kol-a11y, kol-global, kol-component, kol-theme-global, kol-theme-component;\n/*\n * This file contains all rules for accessibility.\n */\n@layer kol-a11y {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: calc(44 * 1rem / var(--kolibri-root-font-size, 16));\n /*\n * No element should be used without verifying the contrast ratio of its background and font colors.\n * By initially setting the background color to white and the font color to black,\n * the contrast ratio is ensured and explicit adjustment is forced.\n */\n color: black;\n background-color: white;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n /*\n * Text should be aligned left by default to provide a predictable starting point.\n */\n text-align: left;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n }\n /*\n * All interactive elements should have a minimum size of to-rem(44).\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n button,\n .kol-input .input {\n min-width: var(--a11y-min-size);\n min-height: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the text color from his parent element.\n */\n color: inherit;\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n .visually-hidden {\n position: fixed;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n white-space: nowrap;\n clip-path: inset(50%);\n }\n}\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n width: 100%;\n margin: 0;\n padding: 0;\n border: none;\n /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n .badge-text-hint {\n color: black;\n background-color: lightgray;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n font-size: calc(16 * 1rem / var(--kolibri-root-font-size, 16));\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n .kol-span {\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n }\n .kol-span__container {\n display: flex;\n align-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n .kol-span .kol-span__label--hide-label .kol-span__label {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n opacity: 0.5;\n outline: none;\n cursor: not-allowed;\n }\n [aria-disabled=true]:focus .kol-span,\n [disabled]:focus .kol-span {\n outline: none !important;\n }\n .hastooltip {\n z-index: 900 !important;\n }\n}\n@layer kol-component {\n .kol-quote {\n display: inline;\n margin: 0;\n padding: 0;\n }\n .kol-quote__cite::before {\n content: \"—\";\n }\n .kol-quote--block .kol-quote__figcaption {\n display: inline;\n margin: 0;\n padding: 0;\n }\n .kol-quote__blockquote::before {\n content: open-quote;\n }\n .kol-quote__blockquote::after {\n content: close-quote;\n }\n}",KolQuote$1=proxyCustomElement(class extends BaseWebComponent{constructor(e){super(!1),!1!==e&&this.__registerHost(),this.__attachShadow(),this.ctrl=new QuoteController(this.setState,this.getState),this._variant="inline"}watchHref(e){this.ctrl.watchHref(e)}watchLabel(e){this.ctrl.watchLabel(e)}watchQuote(e){this.ctrl.watchQuote(e)}watchVariant(e){this.ctrl.watchVariant(e)}componentWillLoad(){this.ctrl.componentWillLoad({href:this._href,label:this._label,quote:this._quote,variant:this._variant})}render(){return h(Host,{key:"f447a4d3e7350d1bef5337fe61c098d0d916c44b"},h(QuoteFC,{key:"3f62e1b79d24030ab8011debe385a2b2c145e578",href:this.ctrl.getRenderProp("href"),label:this.ctrl.getRenderProp("label"),quote:this.ctrl.getRenderProp("quote"),variant:this.ctrl.getRenderProp("variant")}))}static get watchers(){return{_href:["watchHref"],_label:["watchLabel"],_quote:["watchQuote"],_variant:["watchVariant"]}}static get style(){return{default:defaultStyleCss}}},[801,"kol-quote",{_href:[1],_label:[1],_quote:[1],_variant:[1]},void 0,{_href:["watchHref"],_label:["watchLabel"],_quote:["watchQuote"],_variant:["watchVariant"]}]);function defineCustomElement$1(){if("undefined"==typeof customElements)return;["kol-quote"].forEach(e=>{if("kol-quote"===e)customElements.get(e)||customElements.define(e,KolQuote$1)})}const KolQuote=KolQuote$1,defineCustomElement=defineCustomElement$1;export{KolQuote,defineCustomElement};
@@ -1 +1 @@
1
- {"file":"kol-quote.js","mappings":";;;;;;;;;;AAuBO,MAAM,QAAQ,GAAG,oBAAoB,CAAW,MAAM,EAAE,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC,KAAK,OAAO,CAAC,KAAK,QAAQ,CAAC;;ACG1G,MAAM,SAAS,GAA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AAI,EAAE,IAAI,CAAC,KAAK;YAChB,KAAK,EAAE,IAAI,CAAC,MAAM;YAClB,KAAK,EAAE,IAAI,CAAC,MAAM;YAClB,OAAO,EAAE,IAAI,CAAC,QAAQ;AACtB,SAAA,CAAC;;IAGI,MAAM,GAAA;AACZ,QAAA,QACC,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACJ,CAAC,CAAA,OAAO,qDACP,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,EACrC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,EACvC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,EACvC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,EAAA,CAC1C,CACI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolQuote","__stencil_proxyCustomElement"],"sources":["src/internal/props/href.ts","src/internal/props/quote.ts","src/internal/functional-components/quote/component.tsx","src/internal/functional-components/quote/api.tsx","src/internal/functional-components/quote/controller.ts","src/components/quote/style.scss?tag=kol-quote&mode=default&encapsulation=shadow","src/components/quote/component.tsx"],"sourcesContent":["import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\n/**\n * Href prop for links and navigation\n *\n * Description:\n * The href attribute defines the URL target for a link. Using a sentinel value like '#no-href-set'\n * as a default can break expected link behavior and prevent consumers from clearing the href to an empty string.\n *\n * Usage:\n * - Valid URL: href=\"https://example.com\"\n * - Relative path: href=\"/page\"\n * - Fragment: href=\"#section\"\n * - Empty/undefined: href=\"\" (no link target, should prevent navigation)\n *\n * Consumers should check if href is non-empty before rendering clickable links.\n * An empty href means the component should not resolve to a link.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a\n */\nexport type HrefProp = SimpleProp<'href', string>;\nexport const hrefProp = createPropDefinition<HrefProp>('href', '', normalizeString, (v) => typeof v === 'string');\n","import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\n/**\n * Quote prop for cited text content\n *\n * Description:\n * Contains the quoted text to be rendered. The content is displayed within semantically\n * correct HTML quotation elements (<blockquote> or <q>) depending on the variant.\n *\n * Usage (according to W3C HTML specification):\n * - The quote text should be attributed to its source using the cite attribute or a visible citation\n * - Block quotes (<blockquote>) are for extended quotations from an external source\n * - Inline quotes (<q>) are for short inline quotations\n * - Quotation marks are automatically added by the browser for <q> elements\n *\n * Accessibility:\n * - Semantic quotation elements help assistive technologies convey the nature of the content\n * - The structure must be programmatically determinable (WCAG 1.3.1 Info and Relationships)\n *\n * @see https://html.spec.whatwg.org/multipage/grouping-content.html#the-blockquote-element\n * @see https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-q-element\n * @see https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships.html\n */\nexport type QuoteProp = SimpleProp<'quote', string>;\nexport const quoteProp = createPropDefinition<QuoteProp>('quote', '', normalizeString);\n","import type { FunctionalComponent as FC } from '@stencil/core';\nimport { h } from '@stencil/core';\n\nimport { KolLinkTag } from '../../../core/component-names';\nimport { bem } from '../../../schema/bem-registry';\nimport type { FunctionalComponentProps } from '../generic-types';\nimport type { QuoteApi } from './api';\n\nconst quoteBem = bem.forBlock('kol-quote');\nconst BEM_CLASS_QUOTE__BLOCKQUOTE = quoteBem('blockquote');\nconst BEM_CLASS_QUOTE__CITE = quoteBem('cite');\nconst BEM_CLASS_QUOTE__FIGCAPTION = quoteBem('figcaption');\nconst BEM_CLASS_QUOTE__QUOTE = quoteBem('quote');\n\nexport const QuoteFC: FC<FunctionalComponentProps<QuoteApi>> = (props) => {\n\tconst { href, label, quote, variant } = props;\n\tconst hasExpertSlot = quote === '';\n\tconst BEM_CLASS_ROOT = quoteBem({ [variant]: true });\n\treturn (\n\t\t<figure class={BEM_CLASS_ROOT}>\n\t\t\t{variant === 'block' ? (\n\t\t\t\t<blockquote class={BEM_CLASS_QUOTE__BLOCKQUOTE} cite={href}>\n\t\t\t\t\t{quote}\n\t\t\t\t\t<span aria-hidden={!hasExpertSlot ? 'true' : undefined} hidden={!hasExpertSlot}>\n\t\t\t\t\t\t<slot name=\"expert\" />\n\t\t\t\t\t</span>\n\t\t\t\t</blockquote>\n\t\t\t) : (\n\t\t\t\t<q class={BEM_CLASS_QUOTE__QUOTE} cite={href}>\n\t\t\t\t\t{quote}\n\t\t\t\t\t<span aria-hidden={!hasExpertSlot ? 'true' : undefined} hidden={!hasExpertSlot}>\n\t\t\t\t\t\t<slot name=\"expert\" />\n\t\t\t\t\t</span>\n\t\t\t\t</q>\n\t\t\t)}\n\t\t\t{typeof label === 'string' && label.length > 0 && (\n\t\t\t\t<figcaption class={BEM_CLASS_QUOTE__FIGCAPTION}>\n\t\t\t\t\t<cite class={BEM_CLASS_QUOTE__CITE}>\n\t\t\t\t\t\t<KolLinkTag _href={href} _label={label} _target=\"_blank\" />\n\t\t\t\t\t</cite>\n\t\t\t\t</figcaption>\n\t\t\t)}\n\t\t</figure>\n\t);\n};\n","import { hrefProp, labelProp, quoteProp, variantQuoteProp } from '../../props';\nimport type { ApiFromConfig, PropsConfigShape } from '../generic-types';\n\nexport const quotePropsConfig = {\n\toptional: [labelProp, variantQuoteProp],\n\trequired: [hrefProp, quoteProp],\n} as const satisfies PropsConfigShape;\n\nexport type QuoteApi = ApiFromConfig<typeof quotePropsConfig>;\n","import { hrefProp, labelProp, quoteProp, variantQuoteProp } from '../../props';\nimport { BaseController } from '../base-controller';\nimport type { ControllerInterface, GetStateFn, ResolvedInputProps, SetStateFn } from '../generic-types';\nimport type { QuoteApi } from './api';\nimport { quotePropsConfig } from './api';\n\nexport class QuoteController extends BaseController<QuoteApi> implements ControllerInterface<QuoteApi> {\n\tpublic constructor(setState: SetStateFn<QuoteApi>, getState: GetStateFn<QuoteApi>) {\n\t\tsuper(quotePropsConfig, setState, getState);\n\t}\n\tpublic componentWillLoad(props: ResolvedInputProps<QuoteApi>): void {\n\t\tconst { href, label, quote, variant } = props;\n\t\tthis.watchHref(href);\n\t\tthis.watchLabel(label);\n\t\tthis.watchQuote(quote);\n\t\tthis.watchVariant(variant);\n\t}\n\n\tpublic watchHref(value?: string): void {\n\t\threfProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('href', v);\n\t\t});\n\t}\n\n\tpublic watchLabel(value?: string): void {\n\t\tlabelProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('label', v);\n\t\t});\n\t}\n\n\tpublic watchQuote(value?: string): void {\n\t\tquoteProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('quote', v);\n\t\t});\n\t}\n\n\tpublic watchVariant(value?: string): void {\n\t\tvariantQuoteProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('variant', v);\n\t\t});\n\t}\n}\n","@use '../@shared/mixins' as *;\n@use '../@shared/global' as *;\n\n@layer kol-component {\n\t.kol-quote {\n\t\tdisplay: inline;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\t.kol-quote__cite {\n\t\t&::before {\n\t\t\tcontent: '—';\n\n\t\t\t.kol-quote--block & {\n\t\t\t\tpadding-right: 0.5em;\n\t\t\t}\n\n\t\t\t.kol-quote--inline & {\n\t\t\t\tpadding: 0.5em;\n\t\t\t}\n\t\t}\n\t}\n\n\t.kol-quote__figcaption {\n\t\t.kol-quote--block & {\n\t\t\tdisplay: inline;\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t}\n\t}\n\n\t.kol-quote__blockquote {\n\t\t&::before {\n\t\t\tcontent: open-quote;\n\t\t}\n\n\t\t&::after {\n\t\t\tcontent: close-quote;\n\t\t}\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Host, Prop, Watch } from '@stencil/core';\nimport { BaseWebComponent } from '../../internal/functional-components/base-web-component';\nimport type { WebComponentInterface } from '../../internal/functional-components/generic-types';\nimport type { QuoteApi } from '../../internal/functional-components/quote/api';\nimport { QuoteFC } from '../../internal/functional-components/quote/component';\nimport { QuoteController } from '../../internal/functional-components/quote/controller';\nimport type { QuoteVariantType } from '../../internal/props/variant-quote';\n\n/**\n * The **Quote** component has two variants: a short inline (`inline`) and an indented block (`block`) variant. Both variants include a link to the source of the quote.\n */\n@Component({\n\ttag: 'kol-quote',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolQuote extends BaseWebComponent<QuoteApi> implements WebComponentInterface<QuoteApi> {\n\tprivate readonly ctrl = new QuoteController(this.setState, this.getState);\n\n\t/**\n\t * Sets the target URI of the link or citation source.\n\t */\n\t@Prop()\n\tpublic _href!: string;\n\n\t@Watch('_href')\n\tpublic watchHref(value?: string): void {\n\t\tthis.ctrl.watchHref(value);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop()\n\tpublic _label?: string;\n\n\t@Watch('_label')\n\tpublic watchLabel(value?: string): void {\n\t\tthis.ctrl.watchLabel(value);\n\t}\n\n\t/**\n\t * Defines the text of the quote.\n\t */\n\t@Prop()\n\tpublic _quote!: string;\n\n\t@Watch('_quote')\n\tpublic watchQuote(value?: string): void {\n\t\tthis.ctrl.watchQuote(value);\n\t}\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop()\n\tpublic _variant?: QuoteVariantType = 'inline';\n\n\t@Watch('_variant')\n\tpublic watchVariant(value?: QuoteVariantType): void {\n\t\tthis.ctrl.watchVariant(value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.ctrl.componentWillLoad({\n\t\t\thref: this._href,\n\t\t\tlabel: this._label,\n\t\t\tquote: this._quote,\n\t\t\tvariant: this._variant,\n\t\t});\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<QuoteFC\n\t\t\t\t\thref={this.ctrl.getRenderProp('href')}\n\t\t\t\t\tlabel={this.ctrl.getRenderProp('label')}\n\t\t\t\t\tquote={this.ctrl.getRenderProp('quote')}\n\t\t\t\t\tvariant={this.ctrl.getRenderProp('variant')}\n\t\t\t\t/>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-quote.js","mappings":";;;;;;;;;;;AAuBO,MAAM,QAAQ,GAAG,oBAAoB,CAAW,MAAM,EAAE,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC,KAAK,OAAO,CAAC,KAAK,QAAQ,CAAC;;ACG1G,MAAM,SAAS,GAAG,oBAAoB,CAAY,OAAO,EAAE,EAAE,EAAE,eAAe,CAAC;;AClBtF,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC;AAC1C,MAAM,2BAA2B,GAAG,QAAQ,CAAC,YAAY,CAAC;AAC1D,MAAM,qBAAqB,GAAG,QAAQ,CAAC,MAAM,CAAC;AAC9C,MAAM,2BAA2B,GAAG,QAAQ,CAAC,YAAY,CAAC;AAC1D,MAAM,sBAAsB,GAAG,QAAQ,CAAC,OAAO,CAAC;AAEzC,MAAM,OAAO,GAA2C,CAAC,KAAK,KAAI;IACxE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,KAAK;AAC7C,IAAA,MAAM,aAAa,GAAG,KAAK,KAAK,EAAE;AAClC,IAAA,MAAM,cAAc,GAAG,QAAQ,CAAC,EAAE,CAAC,OAAO,GAAG,IAAI,EAAE,CAAC;AACpD,IAAA,QACC,CAAA,CAAA,QAAA,EAAA,EAAQ,KAAK,EAAE,cAAc,EAAA,EAC3B,OAAO,KAAK,OAAO,IACnB,CAAY,CAAA,YAAA,EAAA,EAAA,KAAK,EAAE,2BAA2B,EAAE,IAAI,EAAE,IAAI,EAAA,EACxD,KAAK,EACN,CAAA,CAAA,MAAA,EAAA,EAAA,aAAA,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,SAAS,CAAC,KAAK,CAAC;;AAUpB,IAAA,UAAU,CAAC,KAAc,EAAA;AAC/B,QAAA,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;;AAUrB,IAAA,UAAU,CAAC,KAAc,EAAA;AAC/B,QAAA,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;;AAUrB,IAAA,YAAY,CAAC,KAAwB,EAAA;AAC3C,QAAA,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC;;IAGvB,iBAAiB,GAAA;AACvB,QAAA,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC;YAC3B,IAAI,EAAE,IAAI,CAAC,KAAK;YAChB,KAAK,EAAE,IAAI,CAAC,MAAM;YAClB,KAAK,EAAE,IAAI,CAAC,MAAM;YAClB,OAAO,EAAE,IAAI,CAAC,QAAQ;AACtB,SAAA,CAAC;;IAGI,MAAM,GAAA;AACZ,QAAA,QACC,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACJ,CAAC,CAAA,OAAO,qDACP,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,EACrC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,EACvC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,EACvC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,EAAA,CAC1C,CACI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["KolQuote","__stencil_proxyCustomElement"],"sources":["src/internal/props/href.ts","src/internal/props/quote.ts","src/internal/functional-components/quote/component.tsx","src/internal/functional-components/quote/api.tsx","src/internal/functional-components/quote/controller.ts","src/components/quote/style.scss?tag=kol-quote&mode=default&encapsulation=shadow","src/components/quote/component.tsx"],"sourcesContent":["import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\n/**\n * Href prop for links and navigation\n *\n * Description:\n * The href attribute defines the URL target for a link. Using a sentinel value like '#no-href-set'\n * as a default can break expected link behavior and prevent consumers from clearing the href to an empty string.\n *\n * Usage:\n * - Valid URL: href=\"https://example.com\"\n * - Relative path: href=\"/page\"\n * - Fragment: href=\"#section\"\n * - Empty/undefined: href=\"\" (no link target, should prevent navigation)\n *\n * Consumers should check if href is non-empty before rendering clickable links.\n * An empty href means the component should not resolve to a link.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a\n */\nexport type HrefProp = SimpleProp<'href', string>;\nexport const hrefProp = createPropDefinition<HrefProp>('href', '', normalizeString, (v) => typeof v === 'string');\n","import type { SimpleProp } from './helpers/factory';\nimport { createPropDefinition } from './helpers/factory';\nimport { normalizeString } from './helpers/normalizers';\n\n/**\n * Quote prop for cited text content\n *\n * Description:\n * Contains the quoted text to be rendered. The content is displayed within semantically\n * correct HTML quotation elements (<blockquote> or <q>) depending on the variant.\n *\n * Usage (according to W3C HTML specification):\n * - The quote text should be attributed to its source using the cite attribute or a visible citation\n * - Block quotes (<blockquote>) are for extended quotations from an external source\n * - Inline quotes (<q>) are for short inline quotations\n * - Quotation marks are automatically added by the browser for <q> elements\n *\n * Accessibility:\n * - Semantic quotation elements help assistive technologies convey the nature of the content\n * - The structure must be programmatically determinable (WCAG 1.3.1 Info and Relationships)\n *\n * @see https://html.spec.whatwg.org/multipage/grouping-content.html#the-blockquote-element\n * @see https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-q-element\n * @see https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships.html\n */\nexport type QuoteProp = SimpleProp<'quote', string>;\nexport const quoteProp = createPropDefinition<QuoteProp>('quote', '', normalizeString);\n","import type { FunctionalComponent as FC } from '@stencil/core';\nimport { h } from '@stencil/core';\n\nimport { KolLinkTag } from '../../../core/component-names';\nimport { bem } from '../../../schema/bem-registry';\nimport type { FunctionalComponentProps } from '../generic-types';\nimport type { QuoteApi } from './api';\n\nconst quoteBem = bem.forBlock('kol-quote');\nconst BEM_CLASS_QUOTE__BLOCKQUOTE = quoteBem('blockquote');\nconst BEM_CLASS_QUOTE__CITE = quoteBem('cite');\nconst BEM_CLASS_QUOTE__FIGCAPTION = quoteBem('figcaption');\nconst BEM_CLASS_QUOTE__QUOTE = quoteBem('quote');\n\nexport const QuoteFC: FC<FunctionalComponentProps<QuoteApi>> = (props) => {\n\tconst { href, label, quote, variant } = props;\n\tconst hasExpertSlot = quote === '';\n\tconst BEM_CLASS_ROOT = quoteBem({ [variant]: true });\n\treturn (\n\t\t<figure class={BEM_CLASS_ROOT}>\n\t\t\t{variant === 'block' ? (\n\t\t\t\t<blockquote class={BEM_CLASS_QUOTE__BLOCKQUOTE} cite={href}>\n\t\t\t\t\t{quote}\n\t\t\t\t\t<span aria-hidden={!hasExpertSlot ? 'true' : undefined} hidden={!hasExpertSlot}>\n\t\t\t\t\t\t<slot name=\"expert\" />\n\t\t\t\t\t</span>\n\t\t\t\t</blockquote>\n\t\t\t) : (\n\t\t\t\t<q class={BEM_CLASS_QUOTE__QUOTE} cite={href}>\n\t\t\t\t\t{quote}\n\t\t\t\t\t<span aria-hidden={!hasExpertSlot ? 'true' : undefined} hidden={!hasExpertSlot}>\n\t\t\t\t\t\t<slot name=\"expert\" />\n\t\t\t\t\t</span>\n\t\t\t\t</q>\n\t\t\t)}\n\t\t\t{typeof label === 'string' && label.length > 0 && (\n\t\t\t\t<figcaption class={BEM_CLASS_QUOTE__FIGCAPTION}>\n\t\t\t\t\t<cite class={BEM_CLASS_QUOTE__CITE}>\n\t\t\t\t\t\t<KolLinkTag _href={href} _label={label} _target=\"_blank\" />\n\t\t\t\t\t</cite>\n\t\t\t\t</figcaption>\n\t\t\t)}\n\t\t</figure>\n\t);\n};\n","import { hrefProp, labelProp, quoteProp, variantQuoteProp } from '../../props';\nimport type { ApiFromConfig, PropsConfigShape } from '../generic-types';\n\nexport const quotePropsConfig = {\n\toptional: [labelProp, variantQuoteProp],\n\trequired: [hrefProp, quoteProp],\n} as const satisfies PropsConfigShape;\n\nexport type QuoteApi = ApiFromConfig<typeof quotePropsConfig>;\n","import { hrefProp, labelProp, quoteProp, variantQuoteProp } from '../../props';\nimport { BaseController } from '../base-controller';\nimport type { ControllerInterface, GetStateFn, ResolvedInputProps, SetStateFn } from '../generic-types';\nimport type { QuoteApi } from './api';\nimport { quotePropsConfig } from './api';\n\nexport class QuoteController extends BaseController<QuoteApi> implements ControllerInterface<QuoteApi> {\n\tpublic constructor(setState: SetStateFn<QuoteApi>, getState: GetStateFn<QuoteApi>) {\n\t\tsuper(quotePropsConfig, setState, getState);\n\t}\n\tpublic componentWillLoad(props: ResolvedInputProps<QuoteApi>): void {\n\t\tconst { href, label, quote, variant } = props;\n\t\tthis.watchHref(href);\n\t\tthis.watchLabel(label);\n\t\tthis.watchQuote(quote);\n\t\tthis.watchVariant(variant);\n\t}\n\n\tpublic watchHref(value?: string): void {\n\t\threfProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('href', v);\n\t\t});\n\t}\n\n\tpublic watchLabel(value?: string): void {\n\t\tlabelProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('label', v);\n\t\t});\n\t}\n\n\tpublic watchQuote(value?: string): void {\n\t\tquoteProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('quote', v);\n\t\t});\n\t}\n\n\tpublic watchVariant(value?: string): void {\n\t\tvariantQuoteProp.apply(value, (v) => {\n\t\t\tthis.setRenderProp('variant', v);\n\t\t});\n\t}\n}\n","@use '../@shared/mixins' as *;\n@use '../@shared/global' as *;\n\n@layer kol-component {\n\t.kol-quote {\n\t\tdisplay: inline;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\t.kol-quote__cite {\n\t\t&::before {\n\t\t\tcontent: '—';\n\t\t}\n\t}\n\n\t.kol-quote__figcaption {\n\t\t.kol-quote--block & {\n\t\t\tdisplay: inline;\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t}\n\t}\n\n\t.kol-quote__blockquote {\n\t\t&::before {\n\t\t\tcontent: open-quote;\n\t\t}\n\n\t\t&::after {\n\t\t\tcontent: close-quote;\n\t\t}\n\t}\n}\n","import type { JSX } from '@stencil/core';\nimport { Component, h, Host, Prop, Watch } from '@stencil/core';\nimport { BaseWebComponent } from '../../internal/functional-components/base-web-component';\nimport type { WebComponentInterface } from '../../internal/functional-components/generic-types';\nimport type { QuoteApi } from '../../internal/functional-components/quote/api';\nimport { QuoteFC } from '../../internal/functional-components/quote/component';\nimport { QuoteController } from '../../internal/functional-components/quote/controller';\nimport type { QuoteVariantType } from '../../internal/props/variant-quote';\n\n/**\n * The **Quote** component has two variants: a short inline (`inline`) and an indented block (`block`) variant. Both variants include a link to the source of the quote.\n */\n@Component({\n\ttag: 'kol-quote',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolQuote extends BaseWebComponent<QuoteApi> implements WebComponentInterface<QuoteApi> {\n\tprivate readonly ctrl = new QuoteController(this.setState, this.getState);\n\n\t/**\n\t * Sets the target URI of the link or citation source.\n\t */\n\t@Prop()\n\tpublic _href!: string;\n\n\t@Watch('_href')\n\tpublic watchHref(value?: string): void {\n\t\tthis.ctrl.watchHref(value);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop()\n\tpublic _label?: string;\n\n\t@Watch('_label')\n\tpublic watchLabel(value?: string): void {\n\t\tthis.ctrl.watchLabel(value);\n\t}\n\n\t/**\n\t * Defines the text of the quote.\n\t */\n\t@Prop()\n\tpublic _quote!: string;\n\n\t@Watch('_quote')\n\tpublic watchQuote(value?: string): void {\n\t\tthis.ctrl.watchQuote(value);\n\t}\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop()\n\tpublic _variant?: QuoteVariantType = 'inline';\n\n\t@Watch('_variant')\n\tpublic watchVariant(value?: QuoteVariantType): void {\n\t\tthis.ctrl.watchVariant(value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.ctrl.componentWillLoad({\n\t\t\thref: this._href,\n\t\t\tlabel: this._label,\n\t\t\tquote: this._quote,\n\t\t\tvariant: this._variant,\n\t\t});\n\t}\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<QuoteFC\n\t\t\t\t\thref={this.ctrl.getRenderProp('href')}\n\t\t\t\t\tlabel={this.ctrl.getRenderProp('label')}\n\t\t\t\t\tquote={this.ctrl.getRenderProp('quote')}\n\t\t\t\t\tvariant={this.ctrl.getRenderProp('variant')}\n\t\t\t\t/>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}