@public-ui/components 1.5.0-rc.9 → 1.5.1

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 (989) hide show
  1. package/assets/codicons/LICENSE +395 -0
  2. package/assets/codicons/LICENSE-CODE +21 -0
  3. package/assets/codicons/codicon.css +571 -0
  4. package/assets/codicons/codicon.csv +421 -0
  5. package/assets/codicons/codicon.html +3871 -0
  6. package/assets/codicons/codicon.svg +1 -0
  7. package/assets/codicons/codicon.ttf +0 -0
  8. package/assets/kolibri.ico +0 -0
  9. package/cheat-sheet.html +182 -174
  10. package/custom-elements.json +552 -213
  11. package/dist/cjs/{app-globals-e0b8300a.js → app-globals-a5083cd8.js} +1 -1
  12. package/dist/cjs/{app-globals-e0b8300a.js.map → app-globals-a5083cd8.js.map} +1 -1
  13. package/dist/cjs/aria-selected-3d69f172.js +4 -0
  14. package/dist/cjs/aria-selected-3d69f172.js.map +1 -0
  15. package/dist/cjs/button-link-78099d0b.js +4 -0
  16. package/dist/cjs/button-link-78099d0b.js.map +1 -0
  17. package/dist/cjs/color-d9a0e2e9.js +4 -0
  18. package/dist/cjs/color-d9a0e2e9.js.map +1 -0
  19. package/dist/cjs/controller-0dc3063e.js +4 -0
  20. package/dist/cjs/controller-0dc3063e.js.map +1 -0
  21. package/dist/cjs/{controller-5895e8d6.js → controller-1a0e56e5.js} +1 -1
  22. package/dist/cjs/controller-1a0e56e5.js.map +1 -0
  23. package/dist/cjs/{controller-62ae6225.js → controller-47ec1d99.js} +1 -1
  24. package/dist/cjs/{controller-62ae6225.js.map → controller-47ec1d99.js.map} +1 -1
  25. package/dist/cjs/{controller-0e23dc48.js → controller-4c51f1d0.js} +1 -1
  26. package/dist/cjs/{controller-0e23dc48.js.map → controller-4c51f1d0.js.map} +1 -1
  27. package/dist/cjs/{controller-a753291e.js → controller-974e72cd.js} +1 -1
  28. package/dist/cjs/{controller-a753291e.js.map → controller-974e72cd.js.map} +1 -1
  29. package/dist/cjs/{controller-77bc2bc9.js → controller-f5d21db5.js} +1 -1
  30. package/dist/cjs/{controller-77bc2bc9.js.map → controller-f5d21db5.js.map} +1 -1
  31. package/dist/cjs/{controller-icon-2b5513c5.js → controller-icon-8a67d498.js} +1 -1
  32. package/dist/cjs/controller-icon-8a67d498.js.map +1 -0
  33. package/dist/cjs/{devtools-98551855.js → devtools-a1501143.js} +1 -1
  34. package/dist/cjs/{devtools-98551855.js.map → devtools-a1501143.js.map} +1 -1
  35. package/dist/cjs/disabled-0893d275.js +4 -0
  36. package/dist/cjs/disabled-0893d275.js.map +1 -0
  37. package/dist/cjs/floating-ui.dom.esm-3d05ccb5.js +4 -0
  38. package/dist/cjs/floating-ui.dom.esm-3d05ccb5.js.map +1 -0
  39. package/dist/cjs/hide-label-142676e3.js +4 -0
  40. package/dist/cjs/hide-label-142676e3.js.map +1 -0
  41. package/dist/cjs/{i18n-156cb272.js → i18n-c5c6847b.js} +1 -1
  42. package/dist/cjs/{i18n-156cb272.js.map → i18n-c5c6847b.js.map} +1 -1
  43. package/dist/cjs/{icon-52bb328d.js → icon-d0c5f305.js} +1 -1
  44. package/dist/cjs/icon-d0c5f305.js.map +1 -0
  45. package/dist/cjs/index-2f320bab.js +5 -0
  46. package/dist/cjs/index-2f320bab.js.map +1 -0
  47. package/dist/cjs/{index-eb52922f.js → index-7159f3d9.js} +1 -1
  48. package/dist/cjs/index-7159f3d9.js.map +1 -0
  49. package/dist/cjs/index-9c91e91b.js +4 -0
  50. package/dist/cjs/index-9c91e91b.js.map +1 -0
  51. package/dist/cjs/index.cjs.js +1 -1
  52. package/dist/cjs/index.cjs.js.map +1 -1
  53. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  55. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  57. package/dist/cjs/kol-alert-wc_2.cjs.entry.js +4 -0
  58. package/dist/cjs/kol-alert-wc_2.cjs.entry.js.map +1 -0
  59. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  61. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  63. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  65. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-button-group.cjs.entry.js.map +1 -1
  68. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  70. package/dist/cjs/kol-button-wc_3.cjs.entry.js +4 -0
  71. package/dist/cjs/kol-button-wc_3.cjs.entry.js.map +1 -0
  72. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  74. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  76. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  78. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  80. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  82. package/dist/cjs/kol-icon-font-awesome.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-icon-icofont.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  86. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  88. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-indented-text.cjs.entry.js.map +1 -1
  90. package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  93. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  95. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  97. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  99. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  101. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  103. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  105. package/dist/cjs/kol-input-radio-group.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-input-radio-group.cjs.entry.js.map +1 -1
  107. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  109. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  111. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  113. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  115. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  117. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-link-group.cjs.entry.js.map +1 -1
  119. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  121. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  123. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-logo.cjs.entry.js.map +1 -1
  125. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  127. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  129. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  131. package/dist/cjs/kol-popover.cjs.entry.js +4 -0
  132. package/dist/cjs/kol-popover.cjs.entry.js.map +1 -0
  133. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  135. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  136. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  137. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  139. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  141. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-span.cjs.entry.js.map +1 -1
  143. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  145. package/dist/cjs/kol-split-button.cjs.entry.js +4 -0
  146. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -0
  147. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  148. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  149. package/dist/cjs/kol-table.cjs.entry.js.map +1 -1
  150. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  151. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  152. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  153. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  154. package/dist/cjs/kol-toast.cjs.entry.js +1 -1
  155. package/dist/cjs/kol-toast.cjs.entry.js.map +1 -1
  156. package/dist/cjs/kol-tooltip.cjs.entry.js +1 -1
  157. package/dist/cjs/kol-tooltip.cjs.entry.js.map +1 -1
  158. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  159. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  160. package/dist/cjs/kolibri.cjs.js +1 -1
  161. package/dist/cjs/kolibri.cjs.js.map +1 -1
  162. package/dist/cjs/{label-dc5092d3.js → label-77683d7b.js} +1 -1
  163. package/dist/cjs/{label-dc5092d3.js.map → label-77683d7b.js.map} +1 -1
  164. package/dist/cjs/loader.cjs.js +1 -1
  165. package/dist/cjs/loader.cjs.js.map +1 -1
  166. package/dist/cjs/{prop.validators-dd1f7878.js → prop.validators-d6eed32b.js} +1 -1
  167. package/dist/cjs/{prop.validators-dd1f7878.js.map → prop.validators-d6eed32b.js.map} +1 -1
  168. package/dist/cjs/show-6e36cda5.js +4 -0
  169. package/dist/cjs/show-6e36cda5.js.map +1 -0
  170. package/dist/cjs/{tab-index-7bf0cb35.js → tab-index-9fcb9e3f.js} +1 -1
  171. package/dist/cjs/{tab-index-7bf0cb35.js.map → tab-index-9fcb9e3f.js.map} +1 -1
  172. package/dist/cjs/validation-423d5cd3.js +4 -0
  173. package/dist/cjs/{validation-b38b683c.js.map → validation-423d5cd3.js.map} +1 -1
  174. package/dist/cjs/{validation-60fd00e2.js → validation-5c91bbc8.js} +1 -1
  175. package/dist/cjs/{validation-60fd00e2.js.map → validation-5c91bbc8.js.map} +1 -1
  176. package/dist/components/aria-selected.js +4 -0
  177. package/dist/components/aria-selected.js.map +1 -0
  178. package/dist/components/color.js +4 -0
  179. package/dist/components/color.js.map +1 -0
  180. package/dist/components/component.js +1 -1
  181. package/dist/components/component.js.map +1 -1
  182. package/dist/components/component10.js +1 -1
  183. package/dist/components/component10.js.map +1 -1
  184. package/dist/components/component11.js +1 -1
  185. package/dist/components/component11.js.map +1 -1
  186. package/dist/components/component12.js +1 -1
  187. package/dist/components/component12.js.map +1 -1
  188. package/dist/components/component13.js +1 -1
  189. package/dist/components/component13.js.map +1 -1
  190. package/dist/components/component14.js +4 -0
  191. package/dist/components/component14.js.map +1 -0
  192. package/dist/components/component15.js +4 -0
  193. package/dist/components/component15.js.map +1 -0
  194. package/dist/components/component2.js +1 -1
  195. package/dist/components/component2.js.map +1 -1
  196. package/dist/components/component3.js +1 -1
  197. package/dist/components/component3.js.map +1 -1
  198. package/dist/components/component4.js +1 -1
  199. package/dist/components/component4.js.map +1 -1
  200. package/dist/components/component5.js +1 -1
  201. package/dist/components/component5.js.map +1 -1
  202. package/dist/components/component6.js +1 -1
  203. package/dist/components/component6.js.map +1 -1
  204. package/dist/components/component7.js +1 -1
  205. package/dist/components/component7.js.map +1 -1
  206. package/dist/components/component8.js +1 -1
  207. package/dist/components/component8.js.map +1 -1
  208. package/dist/components/component9.js +1 -1
  209. package/dist/components/component9.js.map +1 -1
  210. package/dist/components/controller-icon.js +1 -1
  211. package/dist/components/controller-icon.js.map +1 -1
  212. package/dist/components/controller.js +1 -1
  213. package/dist/components/controller.js.map +1 -1
  214. package/dist/components/controller2.js +1 -1
  215. package/dist/components/controller3.js +1 -1
  216. package/dist/components/controller3.js.map +1 -1
  217. package/dist/components/controller4.js +1 -1
  218. package/dist/components/devtools.js +1 -1
  219. package/dist/components/floating-ui.dom.esm.js +4 -0
  220. package/dist/components/floating-ui.dom.esm.js.map +1 -0
  221. package/dist/components/hide-label.js +4 -0
  222. package/dist/components/hide-label.js.map +1 -0
  223. package/dist/components/i18n.js +1 -1
  224. package/dist/components/i18n.js.map +1 -1
  225. package/dist/components/index.js +1 -1
  226. package/dist/components/index.js.map +1 -1
  227. package/dist/components/kol-abbr.js +1 -1
  228. package/dist/components/kol-abbr.js.map +1 -1
  229. package/dist/components/kol-accordion.js +1 -1
  230. package/dist/components/kol-accordion.js.map +1 -1
  231. package/dist/components/kol-alert-wc.d.ts +11 -0
  232. package/dist/components/kol-alert-wc.js +4 -0
  233. package/dist/components/kol-alert-wc.js.map +1 -0
  234. package/dist/components/kol-alert.js +1 -1
  235. package/dist/components/kol-badge.js +1 -1
  236. package/dist/components/kol-breadcrumb.js +1 -1
  237. package/dist/components/kol-breadcrumb.js.map +1 -1
  238. package/dist/components/kol-button-group-wc.js +1 -1
  239. package/dist/components/kol-button-group.js +1 -1
  240. package/dist/components/kol-button-group.js.map +1 -1
  241. package/dist/components/kol-button-link.js +1 -1
  242. package/dist/components/kol-button-link.js.map +1 -1
  243. package/dist/components/kol-button-wc.js +1 -1
  244. package/dist/components/kol-button.js +1 -1
  245. package/dist/components/kol-card.js +1 -1
  246. package/dist/components/kol-card.js.map +1 -1
  247. package/dist/components/kol-details.js +1 -1
  248. package/dist/components/kol-details.js.map +1 -1
  249. package/dist/components/kol-form.js +1 -1
  250. package/dist/components/kol-form.js.map +1 -1
  251. package/dist/components/kol-heading.js +1 -1
  252. package/dist/components/kol-heading.js.map +1 -1
  253. package/dist/components/kol-image.js +1 -1
  254. package/dist/components/kol-image.js.map +1 -1
  255. package/dist/components/kol-indented-text.js +1 -1
  256. package/dist/components/kol-input-adapter-leanup.js +1 -1
  257. package/dist/components/kol-input-adapter-leanup.js.map +1 -1
  258. package/dist/components/kol-input-checkbox.js +1 -1
  259. package/dist/components/kol-input-checkbox.js.map +1 -1
  260. package/dist/components/kol-input-color.js +1 -1
  261. package/dist/components/kol-input-color.js.map +1 -1
  262. package/dist/components/kol-input-date.js +1 -1
  263. package/dist/components/kol-input-date.js.map +1 -1
  264. package/dist/components/kol-input-email.js +1 -1
  265. package/dist/components/kol-input-email.js.map +1 -1
  266. package/dist/components/kol-input-file.js +1 -1
  267. package/dist/components/kol-input-file.js.map +1 -1
  268. package/dist/components/kol-input-number.js +1 -1
  269. package/dist/components/kol-input-password.js +1 -1
  270. package/dist/components/kol-input-password.js.map +1 -1
  271. package/dist/components/kol-input-radio-group.js +1 -1
  272. package/dist/components/kol-input-radio-group.js.map +1 -1
  273. package/dist/components/kol-input-radio.js +1 -1
  274. package/dist/components/kol-input-range.js +1 -1
  275. package/dist/components/kol-input-range.js.map +1 -1
  276. package/dist/components/kol-input-text.js +1 -1
  277. package/dist/components/kol-input-text.js.map +1 -1
  278. package/dist/components/kol-input.js +1 -1
  279. package/dist/components/kol-kolibri.js +1 -1
  280. package/dist/components/kol-kolibri.js.map +1 -1
  281. package/dist/components/kol-link-button.js +1 -1
  282. package/dist/components/kol-link-button.js.map +1 -1
  283. package/dist/components/kol-link-group.js +1 -1
  284. package/dist/components/kol-link-group.js.map +1 -1
  285. package/dist/components/kol-link-wc.js +1 -1
  286. package/dist/components/kol-link.js +1 -1
  287. package/dist/components/kol-logo.js +1 -1
  288. package/dist/components/kol-logo.js.map +1 -1
  289. package/dist/components/kol-modal.js +1 -1
  290. package/dist/components/kol-modal.js.map +1 -1
  291. package/dist/components/kol-nav.js +1 -1
  292. package/dist/components/kol-nav.js.map +1 -1
  293. package/dist/components/kol-pagination.js +1 -1
  294. package/dist/components/kol-popover.d.ts +11 -0
  295. package/dist/components/kol-popover.js +4 -0
  296. package/dist/components/kol-popover.js.map +1 -0
  297. package/dist/components/kol-progress.js +1 -1
  298. package/dist/components/kol-progress.js.map +1 -1
  299. package/dist/components/kol-quote.js +1 -1
  300. package/dist/components/kol-quote.js.map +1 -1
  301. package/dist/components/kol-select.js +1 -1
  302. package/dist/components/kol-skip-nav.js +1 -1
  303. package/dist/components/kol-skip-nav.js.map +1 -1
  304. package/dist/components/kol-span.js +1 -1
  305. package/dist/components/kol-span.js.map +1 -1
  306. package/dist/components/kol-spin.js +1 -1
  307. package/dist/components/kol-spin.js.map +1 -1
  308. package/dist/components/kol-split-button.d.ts +11 -0
  309. package/dist/components/kol-split-button.js +4 -0
  310. package/dist/components/kol-split-button.js.map +1 -0
  311. package/dist/components/kol-table.js +1 -1
  312. package/dist/components/kol-table.js.map +1 -1
  313. package/dist/components/kol-tabs.js +1 -1
  314. package/dist/components/kol-tabs.js.map +1 -1
  315. package/dist/components/kol-textarea.js +1 -1
  316. package/dist/components/kol-textarea.js.map +1 -1
  317. package/dist/components/kol-toast.js +1 -1
  318. package/dist/components/kol-toast.js.map +1 -1
  319. package/dist/components/kol-tooltip.js +1 -1
  320. package/dist/components/kol-version.js +1 -1
  321. package/dist/components/kol-version.js.map +1 -1
  322. package/dist/components/prop.validators.js +1 -1
  323. package/dist/components/prop.validators.js.map +1 -1
  324. package/dist/components/shadow.js +1 -1
  325. package/dist/components/shadow.js.map +1 -1
  326. package/dist/components/shadow2.js +1 -1
  327. package/dist/components/shadow2.js.map +1 -1
  328. package/dist/components/shadow3.js +4 -0
  329. package/dist/components/shadow3.js.map +1 -0
  330. package/dist/components/show.js +4 -0
  331. package/dist/components/show.js.map +1 -0
  332. package/dist/components/tab-index.js +4 -0
  333. package/dist/components/tab-index.js.map +1 -0
  334. package/dist/components/validation.js +1 -1
  335. package/dist/esm/app-globals-6ba5ef2f.js +4 -0
  336. package/dist/esm/{app-globals-0b65686c.js.map → app-globals-6ba5ef2f.js.map} +1 -1
  337. package/dist/esm/aria-selected-aaf31182.js +4 -0
  338. package/dist/esm/aria-selected-aaf31182.js.map +1 -0
  339. package/dist/esm/{button-link-0f3cba87.js → button-link-4a7e6a2e.js} +1 -1
  340. package/dist/esm/button-link-4a7e6a2e.js.map +1 -0
  341. package/dist/esm/color-00a19ef0.js +4 -0
  342. package/dist/esm/color-00a19ef0.js.map +1 -0
  343. package/dist/esm/{controller-873db1b1.js → controller-0cf6cd75.js} +1 -1
  344. package/dist/esm/{controller-873db1b1.js.map → controller-0cf6cd75.js.map} +1 -1
  345. package/dist/esm/{controller-a01956a8.js → controller-1ec68c46.js} +1 -1
  346. package/dist/esm/{controller-a01956a8.js.map → controller-1ec68c46.js.map} +1 -1
  347. package/dist/esm/{controller-cf3cf5b2.js → controller-3e94c3f2.js} +1 -1
  348. package/dist/esm/{controller-cf3cf5b2.js.map → controller-3e94c3f2.js.map} +1 -1
  349. package/dist/esm/controller-53ddde7c.js +4 -0
  350. package/dist/esm/controller-53ddde7c.js.map +1 -0
  351. package/dist/esm/{controller-0cfe4cb7.js → controller-830cac3b.js} +1 -1
  352. package/dist/esm/controller-830cac3b.js.map +1 -0
  353. package/dist/esm/{controller-0b0c0e12.js → controller-985aff52.js} +1 -1
  354. package/dist/esm/{controller-0b0c0e12.js.map → controller-985aff52.js.map} +1 -1
  355. package/dist/esm/{controller-icon-3862c494.js → controller-icon-26c0e34a.js} +1 -1
  356. package/dist/esm/controller-icon-26c0e34a.js.map +1 -0
  357. package/dist/esm/{devtools-cb70c2f9.js → devtools-33f1b614.js} +1 -1
  358. package/dist/esm/{devtools-cb70c2f9.js.map → devtools-33f1b614.js.map} +1 -1
  359. package/dist/esm/disabled-9bd11a04.js +4 -0
  360. package/dist/esm/disabled-9bd11a04.js.map +1 -0
  361. package/dist/esm/floating-ui.dom.esm-706cb72a.js +4 -0
  362. package/dist/esm/floating-ui.dom.esm-706cb72a.js.map +1 -0
  363. package/dist/esm/hide-label-5d7003be.js +4 -0
  364. package/dist/esm/hide-label-5d7003be.js.map +1 -0
  365. package/dist/esm/{i18n-9efcb042.js → i18n-81ce19c0.js} +1 -1
  366. package/dist/esm/{i18n-9efcb042.js.map → i18n-81ce19c0.js.map} +1 -1
  367. package/dist/esm/{icon-8fbdb661.js → icon-dfcf642a.js} +1 -1
  368. package/dist/esm/icon-dfcf642a.js.map +1 -0
  369. package/dist/esm/index-0e29e47a.js +5 -0
  370. package/dist/esm/index-0e29e47a.js.map +1 -0
  371. package/dist/esm/index-133da8ac.js +4 -0
  372. package/dist/esm/index-133da8ac.js.map +1 -0
  373. package/dist/esm/{index-81bd9b41.js → index-f4596895.js} +1 -1
  374. package/dist/esm/index-f4596895.js.map +1 -0
  375. package/dist/esm/index.js +1 -1
  376. package/dist/esm/index.js.map +1 -1
  377. package/dist/esm/kol-abbr.entry.js +1 -1
  378. package/dist/esm/kol-abbr.entry.js.map +1 -1
  379. package/dist/esm/kol-accordion.entry.js +1 -1
  380. package/dist/esm/kol-accordion.entry.js.map +1 -1
  381. package/dist/esm/kol-alert-wc_2.entry.js +4 -0
  382. package/dist/esm/kol-alert-wc_2.entry.js.map +1 -0
  383. package/dist/esm/kol-alert.entry.js +1 -1
  384. package/dist/esm/kol-alert.entry.js.map +1 -1
  385. package/dist/esm/kol-badge.entry.js +1 -1
  386. package/dist/esm/kol-badge.entry.js.map +1 -1
  387. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  388. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  389. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  390. package/dist/esm/kol-button-group.entry.js +1 -1
  391. package/dist/esm/kol-button-group.entry.js.map +1 -1
  392. package/dist/esm/kol-button-link.entry.js +1 -1
  393. package/dist/esm/kol-button-link.entry.js.map +1 -1
  394. package/dist/esm/kol-button-wc_3.entry.js +4 -0
  395. package/dist/esm/kol-button-wc_3.entry.js.map +1 -0
  396. package/dist/esm/kol-button.entry.js +1 -1
  397. package/dist/esm/kol-button.entry.js.map +1 -1
  398. package/dist/esm/kol-card.entry.js +1 -1
  399. package/dist/esm/kol-card.entry.js.map +1 -1
  400. package/dist/esm/kol-details.entry.js +1 -1
  401. package/dist/esm/kol-details.entry.js.map +1 -1
  402. package/dist/esm/kol-form.entry.js +1 -1
  403. package/dist/esm/kol-form.entry.js.map +1 -1
  404. package/dist/esm/kol-heading.entry.js +1 -1
  405. package/dist/esm/kol-heading.entry.js.map +1 -1
  406. package/dist/esm/kol-icon-font-awesome.entry.js +1 -1
  407. package/dist/esm/kol-icon-icofont.entry.js +1 -1
  408. package/dist/esm/kol-icon.entry.js +1 -1
  409. package/dist/esm/kol-icon.entry.js.map +1 -1
  410. package/dist/esm/kol-image.entry.js +1 -1
  411. package/dist/esm/kol-image.entry.js.map +1 -1
  412. package/dist/esm/kol-indented-text.entry.js +1 -1
  413. package/dist/esm/kol-indented-text.entry.js.map +1 -1
  414. package/dist/esm/kol-input-adapter-leanup.entry.js +1 -1
  415. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  416. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  417. package/dist/esm/kol-input-color.entry.js +1 -1
  418. package/dist/esm/kol-input-color.entry.js.map +1 -1
  419. package/dist/esm/kol-input-date.entry.js +1 -1
  420. package/dist/esm/kol-input-date.entry.js.map +1 -1
  421. package/dist/esm/kol-input-email.entry.js +1 -1
  422. package/dist/esm/kol-input-email.entry.js.map +1 -1
  423. package/dist/esm/kol-input-file.entry.js +1 -1
  424. package/dist/esm/kol-input-file.entry.js.map +1 -1
  425. package/dist/esm/kol-input-number.entry.js +1 -1
  426. package/dist/esm/kol-input-number.entry.js.map +1 -1
  427. package/dist/esm/kol-input-password.entry.js +1 -1
  428. package/dist/esm/kol-input-password.entry.js.map +1 -1
  429. package/dist/esm/kol-input-radio-group.entry.js +1 -1
  430. package/dist/esm/kol-input-radio-group.entry.js.map +1 -1
  431. package/dist/esm/kol-input-radio.entry.js +1 -1
  432. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  433. package/dist/esm/kol-input-range.entry.js +1 -1
  434. package/dist/esm/kol-input-range.entry.js.map +1 -1
  435. package/dist/esm/kol-input-text.entry.js +1 -1
  436. package/dist/esm/kol-input-text.entry.js.map +1 -1
  437. package/dist/esm/kol-kolibri.entry.js +1 -1
  438. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  439. package/dist/esm/kol-link-button.entry.js +1 -1
  440. package/dist/esm/kol-link-button.entry.js.map +1 -1
  441. package/dist/esm/kol-link-group.entry.js +1 -1
  442. package/dist/esm/kol-link-group.entry.js.map +1 -1
  443. package/dist/esm/kol-link-wc.entry.js +1 -1
  444. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  445. package/dist/esm/kol-link.entry.js +1 -1
  446. package/dist/esm/kol-link.entry.js.map +1 -1
  447. package/dist/esm/kol-logo.entry.js +1 -1
  448. package/dist/esm/kol-logo.entry.js.map +1 -1
  449. package/dist/esm/kol-modal.entry.js +1 -1
  450. package/dist/esm/kol-modal.entry.js.map +1 -1
  451. package/dist/esm/kol-nav.entry.js +1 -1
  452. package/dist/esm/kol-nav.entry.js.map +1 -1
  453. package/dist/esm/kol-pagination.entry.js +1 -1
  454. package/dist/esm/kol-pagination.entry.js.map +1 -1
  455. package/dist/esm/kol-popover.entry.js +4 -0
  456. package/dist/esm/kol-popover.entry.js.map +1 -0
  457. package/dist/esm/kol-progress.entry.js +1 -1
  458. package/dist/esm/kol-progress.entry.js.map +1 -1
  459. package/dist/esm/kol-quote.entry.js +1 -1
  460. package/dist/esm/kol-quote.entry.js.map +1 -1
  461. package/dist/esm/kol-select.entry.js +1 -1
  462. package/dist/esm/kol-select.entry.js.map +1 -1
  463. package/dist/esm/kol-skip-nav.entry.js +1 -1
  464. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  465. package/dist/esm/kol-span.entry.js +1 -1
  466. package/dist/esm/kol-span.entry.js.map +1 -1
  467. package/dist/esm/kol-spin.entry.js +1 -1
  468. package/dist/esm/kol-spin.entry.js.map +1 -1
  469. package/dist/esm/kol-split-button.entry.js +4 -0
  470. package/dist/esm/kol-split-button.entry.js.map +1 -0
  471. package/dist/esm/kol-symbol.entry.js +1 -1
  472. package/dist/esm/kol-table.entry.js +1 -1
  473. package/dist/esm/kol-table.entry.js.map +1 -1
  474. package/dist/esm/kol-tabs.entry.js +1 -1
  475. package/dist/esm/kol-tabs.entry.js.map +1 -1
  476. package/dist/esm/kol-textarea.entry.js +1 -1
  477. package/dist/esm/kol-textarea.entry.js.map +1 -1
  478. package/dist/esm/kol-toast.entry.js +1 -1
  479. package/dist/esm/kol-toast.entry.js.map +1 -1
  480. package/dist/esm/kol-tooltip.entry.js +1 -1
  481. package/dist/esm/kol-tooltip.entry.js.map +1 -1
  482. package/dist/esm/kol-version.entry.js +1 -1
  483. package/dist/esm/kol-version.entry.js.map +1 -1
  484. package/dist/esm/kolibri.js +1 -1
  485. package/dist/esm/kolibri.js.map +1 -1
  486. package/dist/esm/{label-d51b1a57.js → label-4bfc9d30.js} +1 -1
  487. package/dist/esm/{label-d51b1a57.js.map → label-4bfc9d30.js.map} +1 -1
  488. package/dist/esm/loader.js +1 -1
  489. package/dist/esm/loader.js.map +1 -1
  490. package/dist/esm/{prop.validators-e402ad49.js → prop.validators-e15a584f.js} +1 -1
  491. package/dist/esm/{prop.validators-e402ad49.js.map → prop.validators-e15a584f.js.map} +1 -1
  492. package/dist/esm/show-f85eb6d8.js +4 -0
  493. package/dist/esm/show-f85eb6d8.js.map +1 -0
  494. package/dist/esm/{tab-index-63d1379d.js → tab-index-eff012a1.js} +1 -1
  495. package/dist/esm/{tab-index-63d1379d.js.map → tab-index-eff012a1.js.map} +1 -1
  496. package/dist/esm/validation-d4aeea71.js +4 -0
  497. package/dist/esm/{validation-b331e3a7.js.map → validation-d4aeea71.js.map} +1 -1
  498. package/dist/esm/{validation-ab9a6c0d.js → validation-ec53a8be.js} +1 -1
  499. package/dist/esm/{validation-ab9a6c0d.js.map → validation-ec53a8be.js.map} +1 -1
  500. package/dist/kolibri/app-globals-6ba5ef2f.js +4 -0
  501. package/dist/kolibri/aria-selected-aaf31182.js +4 -0
  502. package/dist/kolibri/aria-selected-aaf31182.js.map +1 -0
  503. package/dist/kolibri/assets/codicons/LICENSE +394 -394
  504. package/dist/kolibri/assets/codicons/LICENSE-CODE +21 -21
  505. package/dist/kolibri/assets/popover-simulation.js +1 -0
  506. package/dist/kolibri/assets/progress-simulation.js +1 -1
  507. package/dist/kolibri/{button-link-0f3cba87.js → button-link-4a7e6a2e.js} +1 -1
  508. package/dist/kolibri/button-link-4a7e6a2e.js.map +1 -0
  509. package/dist/kolibri/color-00a19ef0.js +4 -0
  510. package/dist/kolibri/color-00a19ef0.js.map +1 -0
  511. package/dist/kolibri/{controller-873db1b1.js → controller-0cf6cd75.js} +1 -1
  512. package/dist/kolibri/{controller-a01956a8.js → controller-1ec68c46.js} +1 -1
  513. package/dist/kolibri/{controller-cf3cf5b2.js → controller-3e94c3f2.js} +1 -1
  514. package/dist/kolibri/controller-53ddde7c.js +4 -0
  515. package/dist/kolibri/controller-53ddde7c.js.map +1 -0
  516. package/dist/kolibri/controller-830cac3b.js +4 -0
  517. package/dist/kolibri/controller-830cac3b.js.map +1 -0
  518. package/dist/kolibri/{controller-0b0c0e12.js → controller-985aff52.js} +1 -1
  519. package/dist/kolibri/{controller-icon-3862c494.js → controller-icon-26c0e34a.js} +1 -1
  520. package/dist/kolibri/controller-icon-26c0e34a.js.map +1 -0
  521. package/dist/kolibri/{devtools-cb70c2f9.js → devtools-33f1b614.js} +1 -1
  522. package/dist/kolibri/disabled-9bd11a04.js +4 -0
  523. package/dist/kolibri/disabled-9bd11a04.js.map +1 -0
  524. package/dist/kolibri/floating-ui.dom.esm-706cb72a.js +4 -0
  525. package/dist/kolibri/floating-ui.dom.esm-706cb72a.js.map +1 -0
  526. package/dist/kolibri/hide-label-5d7003be.js +4 -0
  527. package/dist/kolibri/hide-label-5d7003be.js.map +1 -0
  528. package/dist/kolibri/{i18n-9efcb042.js → i18n-81ce19c0.js} +1 -1
  529. package/dist/kolibri/{icon-8fbdb661.js → icon-dfcf642a.js} +1 -1
  530. package/dist/kolibri/icon-dfcf642a.js.map +1 -0
  531. package/dist/kolibri/index-0e29e47a.js +5 -0
  532. package/dist/kolibri/index-0e29e47a.js.map +1 -0
  533. package/dist/kolibri/index-133da8ac.js +4 -0
  534. package/dist/kolibri/index-133da8ac.js.map +1 -0
  535. package/dist/kolibri/index-f4596895.js +4 -0
  536. package/dist/kolibri/index-f4596895.js.map +1 -0
  537. package/dist/kolibri/index.esm.js +1 -1
  538. package/dist/kolibri/index.esm.js.map +1 -1
  539. package/dist/kolibri/kol-abbr.entry.js +1 -1
  540. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  541. package/dist/kolibri/kol-accordion.entry.js +1 -1
  542. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  543. package/dist/kolibri/kol-alert-wc_2.entry.js +4 -0
  544. package/dist/kolibri/kol-alert-wc_2.entry.js.map +1 -0
  545. package/dist/kolibri/kol-alert.entry.js +1 -1
  546. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  547. package/dist/kolibri/kol-badge.entry.js +1 -1
  548. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  549. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  550. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  551. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  552. package/dist/kolibri/kol-button-group.entry.js +1 -1
  553. package/dist/kolibri/kol-button-group.entry.js.map +1 -1
  554. package/dist/kolibri/kol-button-link.entry.js +1 -1
  555. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  556. package/dist/kolibri/kol-button-wc_3.entry.js +4 -0
  557. package/dist/kolibri/kol-button-wc_3.entry.js.map +1 -0
  558. package/dist/kolibri/kol-button.entry.js +1 -1
  559. package/dist/kolibri/kol-button.entry.js.map +1 -1
  560. package/dist/kolibri/kol-card.entry.js +1 -1
  561. package/dist/kolibri/kol-card.entry.js.map +1 -1
  562. package/dist/kolibri/kol-details.entry.js +1 -1
  563. package/dist/kolibri/kol-details.entry.js.map +1 -1
  564. package/dist/kolibri/kol-form.entry.js +1 -1
  565. package/dist/kolibri/kol-form.entry.js.map +1 -1
  566. package/dist/kolibri/kol-heading.entry.js +1 -1
  567. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  568. package/dist/kolibri/kol-icon-font-awesome.entry.js +1 -1
  569. package/dist/kolibri/kol-icon-icofont.entry.js +1 -1
  570. package/dist/kolibri/kol-icon.entry.js +1 -1
  571. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  572. package/dist/kolibri/kol-image.entry.js +1 -1
  573. package/dist/kolibri/kol-image.entry.js.map +1 -1
  574. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  575. package/dist/kolibri/kol-indented-text.entry.js.map +1 -1
  576. package/dist/kolibri/kol-input-adapter-leanup.entry.js +1 -1
  577. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  578. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  579. package/dist/kolibri/kol-input-color.entry.js +1 -1
  580. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  581. package/dist/kolibri/kol-input-date.entry.js +1 -1
  582. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  583. package/dist/kolibri/kol-input-email.entry.js +1 -1
  584. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  585. package/dist/kolibri/kol-input-file.entry.js +1 -1
  586. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  587. package/dist/kolibri/kol-input-number.entry.js +1 -1
  588. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  589. package/dist/kolibri/kol-input-password.entry.js +1 -1
  590. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  591. package/dist/kolibri/kol-input-radio-group.entry.js +1 -1
  592. package/dist/kolibri/kol-input-radio-group.entry.js.map +1 -1
  593. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  594. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  595. package/dist/kolibri/kol-input-range.entry.js +1 -1
  596. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  597. package/dist/kolibri/kol-input-text.entry.js +1 -1
  598. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  599. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  600. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  601. package/dist/kolibri/kol-link-button.entry.js +1 -1
  602. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  603. package/dist/kolibri/kol-link-group.entry.js +1 -1
  604. package/dist/kolibri/kol-link-group.entry.js.map +1 -1
  605. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  606. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  607. package/dist/kolibri/kol-link.entry.js +1 -1
  608. package/dist/kolibri/kol-link.entry.js.map +1 -1
  609. package/dist/kolibri/kol-logo.entry.js +1 -1
  610. package/dist/kolibri/kol-logo.entry.js.map +1 -1
  611. package/dist/kolibri/kol-modal.entry.js +1 -1
  612. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  613. package/dist/kolibri/kol-nav.entry.js +1 -1
  614. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  615. package/dist/kolibri/kol-pagination.entry.js +1 -1
  616. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  617. package/dist/kolibri/kol-popover.entry.js +4 -0
  618. package/dist/kolibri/kol-popover.entry.js.map +1 -0
  619. package/dist/kolibri/kol-progress.entry.js +1 -1
  620. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  621. package/dist/kolibri/kol-quote.entry.js +1 -1
  622. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  623. package/dist/kolibri/kol-select.entry.js +1 -1
  624. package/dist/kolibri/kol-select.entry.js.map +1 -1
  625. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  626. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  627. package/dist/kolibri/kol-span.entry.js +1 -1
  628. package/dist/kolibri/kol-span.entry.js.map +1 -1
  629. package/dist/kolibri/kol-spin.entry.js +1 -1
  630. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  631. package/dist/kolibri/kol-split-button.entry.js +4 -0
  632. package/dist/kolibri/kol-split-button.entry.js.map +1 -0
  633. package/dist/kolibri/kol-symbol.entry.js +1 -1
  634. package/dist/kolibri/kol-table.entry.js +1 -1
  635. package/dist/kolibri/kol-table.entry.js.map +1 -1
  636. package/dist/kolibri/kol-tabs.entry.js +1 -1
  637. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  638. package/dist/kolibri/kol-textarea.entry.js +1 -1
  639. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  640. package/dist/kolibri/kol-toast.entry.js +1 -1
  641. package/dist/kolibri/kol-toast.entry.js.map +1 -1
  642. package/dist/kolibri/kol-tooltip.entry.js +1 -1
  643. package/dist/kolibri/kol-tooltip.entry.js.map +1 -1
  644. package/dist/kolibri/kol-version.entry.js +1 -1
  645. package/dist/kolibri/kol-version.entry.js.map +1 -1
  646. package/dist/kolibri/kolibri.esm.js +1 -1
  647. package/dist/kolibri/kolibri.esm.js.map +1 -1
  648. package/dist/kolibri/{label-d51b1a57.js → label-4bfc9d30.js} +1 -1
  649. package/dist/kolibri/{prop.validators-e402ad49.js → prop.validators-e15a584f.js} +1 -1
  650. package/dist/kolibri/prop.validators-e15a584f.js.map +1 -0
  651. package/dist/kolibri/show-f85eb6d8.js +4 -0
  652. package/dist/kolibri/show-f85eb6d8.js.map +1 -0
  653. package/dist/kolibri/{tab-index-63d1379d.js → tab-index-eff012a1.js} +1 -1
  654. package/dist/kolibri/validation-d4aeea71.js +4 -0
  655. package/dist/kolibri/{validation-b331e3a7.js.map → validation-d4aeea71.js.map} +1 -1
  656. package/dist/kolibri/{validation-ab9a6c0d.js → validation-ec53a8be.js} +1 -1
  657. package/dist/loader/index.d.ts +1 -1
  658. package/dist/types/components/abbr/component.d.ts +3 -3
  659. package/dist/types/components/abbr/types.d.ts +2 -2
  660. package/dist/types/components/accordion/component.d.ts +7 -0
  661. package/dist/types/components/alert/component.d.ts +1 -1
  662. package/dist/types/components/alert/shadow.d.ts +14 -0
  663. package/dist/types/components/badge/component.d.ts +5 -8
  664. package/dist/types/components/button/component.d.ts +5 -5
  665. package/dist/types/components/button/shadow.d.ts +3 -3
  666. package/dist/types/components/button-link/component.d.ts +2 -2
  667. package/dist/types/components/heading/component.d.ts +4 -4
  668. package/dist/types/components/heading/shadow.d.ts +1 -1
  669. package/dist/types/components/input/controller.d.ts +1 -1
  670. package/dist/types/components/input/types.d.ts +3 -1
  671. package/dist/types/components/input-checkbox/component.d.ts +1 -1
  672. package/dist/types/components/input-checkbox/types.d.ts +1 -1
  673. package/dist/types/components/input-color/component.d.ts +1 -1
  674. package/dist/types/components/input-date/component.d.ts +1 -1
  675. package/dist/types/components/input-email/component.d.ts +1 -1
  676. package/dist/types/components/input-file/component.d.ts +1 -1
  677. package/dist/types/components/input-number/component.d.ts +1 -1
  678. package/dist/types/components/input-number/types.d.ts +1 -1
  679. package/dist/types/components/input-password/component.d.ts +1 -1
  680. package/dist/types/components/input-radio/component.d.ts +1 -1
  681. package/dist/types/components/input-radio-group/component.d.ts +1 -1
  682. package/dist/types/components/input-range/component.d.ts +1 -1
  683. package/dist/types/components/input-text/component.d.ts +1 -1
  684. package/dist/types/components/input-text/controller.d.ts +2 -3
  685. package/dist/types/components/input-text/types.d.ts +2 -3
  686. package/dist/types/components/kolibri/component.d.ts +5 -3
  687. package/dist/types/components/link/component.d.ts +7 -5
  688. package/dist/types/components/link/shadow.d.ts +4 -3
  689. package/dist/types/components/link-button/component.d.ts +3 -2
  690. package/dist/types/components/nav/component.d.ts +0 -1
  691. package/dist/types/components/pagination/component.d.ts +5 -5
  692. package/dist/types/components/popover/component.d.ts +37 -0
  693. package/dist/types/components/popover/test/html.mock.d.ts +4 -0
  694. package/dist/types/components/progress/component.d.ts +4 -1
  695. package/dist/types/components/select/component.d.ts +1 -1
  696. package/dist/types/components/split-button/component.d.ts +61 -0
  697. package/dist/types/components/split-button/types.d.ts +23 -0
  698. package/dist/types/components/table/component.d.ts +0 -1
  699. package/dist/types/components/tabs/component.d.ts +6 -6
  700. package/dist/types/components/textarea/component.d.ts +1 -1
  701. package/dist/types/components/tooltip/component.d.ts +4 -4
  702. package/dist/types/components.d.ts +679 -366
  703. package/dist/types/index.d.ts +1 -1
  704. package/dist/types/stencil-public-runtime.d.ts +1 -0
  705. package/dist/types/types/button-link-text.d.ts +2 -4
  706. package/dist/types/types/button-link.d.ts +8 -9
  707. package/dist/types/types/props/alignment.d.ts +6 -1
  708. package/dist/types/types/props/color.d.ts +20 -0
  709. package/dist/types/types/props/download.d.ts +5 -0
  710. package/dist/types/{utils/validators → types/props}/icon.d.ts +8 -4
  711. package/dist/types/types/props/index.d.ts +1 -1
  712. package/dist/types/utils/overlay.d.ts +2 -0
  713. package/dist/types/utils/prop.validators.d.ts +1 -1
  714. package/dist/types/utils/validators/alignment.d.ts +2 -2
  715. package/doc/abbr.md +16 -9
  716. package/doc/accordion.md +51 -27
  717. package/doc/alert.md +27 -26
  718. package/doc/badge.md +21 -30
  719. package/doc/breadcrumb.md +11 -13
  720. package/doc/button-link.md +17 -19
  721. package/doc/button.md +41 -81
  722. package/doc/card.md +18 -62
  723. package/doc/components.md +1 -1
  724. package/doc/details.md +20 -10
  725. package/doc/form.md +11 -4
  726. package/doc/heading.md +27 -13
  727. package/doc/icon-font-awesome.md +3 -3
  728. package/doc/icon-icofont.md +2 -2
  729. package/doc/icon.md +13 -17
  730. package/doc/image.md +29 -20
  731. package/doc/indented-text.md +7 -6
  732. package/doc/input-adapter-leanup.md +5 -6
  733. package/doc/input-checkbox.md +40 -30
  734. package/doc/input-color.md +35 -32
  735. package/doc/input-date.md +40 -37
  736. package/doc/input-email.md +43 -36
  737. package/doc/input-file.md +35 -27
  738. package/doc/input-number.md +41 -64
  739. package/doc/input-password.md +40 -32
  740. package/doc/input-radio-group.md +20 -21
  741. package/doc/input-radio.md +49 -25
  742. package/doc/input-range.md +35 -32
  743. package/doc/input-text.md +50 -40
  744. package/doc/kolibri.md +17 -12
  745. package/doc/link-button.md +20 -28
  746. package/doc/link-group.md +21 -23
  747. package/doc/link.md +35 -59
  748. package/doc/logo.md +6 -10
  749. package/doc/modal.md +45 -56
  750. package/doc/nav.md +50 -47
  751. package/doc/pagination.md +27 -33
  752. package/doc/popover.md +28 -0
  753. package/doc/progress.md +13 -10
  754. package/doc/quote.md +14 -13
  755. package/doc/select.md +52 -37
  756. package/doc/skip-nav.md +11 -10
  757. package/doc/span.md +5 -5
  758. package/doc/spin.md +5 -6
  759. package/doc/split-button.md +85 -0
  760. package/doc/table.md +24 -77
  761. package/doc/tabs.md +28 -42
  762. package/doc/textarea.md +40 -35
  763. package/doc/toast.md +34 -21
  764. package/doc/tooltip.md +10 -12
  765. package/doc/version.md +6 -9
  766. package/jest-test-results.json +1 -1
  767. package/package.json +3 -2
  768. package/vscode-custom-data.json +430 -169
  769. package/dist/cjs/button-link-19d8a9a8.js +0 -4
  770. package/dist/cjs/button-link-19d8a9a8.js.map +0 -1
  771. package/dist/cjs/controller-5895e8d6.js.map +0 -1
  772. package/dist/cjs/controller-c3d640d1.js +0 -4
  773. package/dist/cjs/controller-c3d640d1.js.map +0 -1
  774. package/dist/cjs/controller-icon-2b5513c5.js.map +0 -1
  775. package/dist/cjs/icon-52bb328d.js.map +0 -1
  776. package/dist/cjs/index-1266b30d.js +0 -4
  777. package/dist/cjs/index-1266b30d.js.map +0 -1
  778. package/dist/cjs/index-26858caf.js +0 -4
  779. package/dist/cjs/index-26858caf.js.map +0 -1
  780. package/dist/cjs/index-29c5d3c6.js +0 -5
  781. package/dist/cjs/index-29c5d3c6.js.map +0 -1
  782. package/dist/cjs/index-eb52922f.js.map +0 -1
  783. package/dist/cjs/kol-button-wc_2.cjs.entry.js +0 -4
  784. package/dist/cjs/kol-button-wc_2.cjs.entry.js.map +0 -1
  785. package/dist/cjs/kol-heading-wc_2.cjs.entry.js +0 -4
  786. package/dist/cjs/kol-heading-wc_2.cjs.entry.js.map +0 -1
  787. package/dist/cjs/validation-b38b683c.js +0 -4
  788. package/dist/components/index2.js +0 -4
  789. package/dist/components/index2.js.map +0 -1
  790. package/dist/esm/app-globals-0b65686c.js +0 -4
  791. package/dist/esm/button-link-0f3cba87.js.map +0 -1
  792. package/dist/esm/controller-0cfe4cb7.js.map +0 -1
  793. package/dist/esm/controller-6ae13480.js +0 -4
  794. package/dist/esm/controller-6ae13480.js.map +0 -1
  795. package/dist/esm/controller-icon-3862c494.js.map +0 -1
  796. package/dist/esm/icon-8fbdb661.js.map +0 -1
  797. package/dist/esm/index-50adf9a0.js +0 -5
  798. package/dist/esm/index-50adf9a0.js.map +0 -1
  799. package/dist/esm/index-81bd9b41.js.map +0 -1
  800. package/dist/esm/index-d14da386.js +0 -4
  801. package/dist/esm/index-d14da386.js.map +0 -1
  802. package/dist/esm/index-f3c76945.js +0 -4
  803. package/dist/esm/index-f3c76945.js.map +0 -1
  804. package/dist/esm/kol-button-wc_2.entry.js +0 -4
  805. package/dist/esm/kol-button-wc_2.entry.js.map +0 -1
  806. package/dist/esm/kol-heading-wc_2.entry.js +0 -4
  807. package/dist/esm/kol-heading-wc_2.entry.js.map +0 -1
  808. package/dist/esm/validation-b331e3a7.js +0 -4
  809. package/dist/kolibri/app-globals-0b65686c.js +0 -4
  810. package/dist/kolibri/assets/bpa-icons/bpa-icons.eot +0 -0
  811. package/dist/kolibri/assets/bpa-icons/bpa-icons.json +0 -1115
  812. package/dist/kolibri/assets/bpa-icons/bpa-icons.svg +0 -432
  813. package/dist/kolibri/assets/bpa-icons/bpa-icons.symbol.svg +0 -1449
  814. package/dist/kolibri/assets/bpa-icons/bpa-icons.ttf +0 -0
  815. package/dist/kolibri/assets/bpa-icons/bpa-icons.woff +0 -0
  816. package/dist/kolibri/assets/bpa-icons/bpa-icons.woff2 +0 -0
  817. package/dist/kolibri/assets/bpa-icons/style.css +0 -159
  818. package/dist/kolibri/assets/bpa-icons/style.less +0 -157
  819. package/dist/kolibri/assets/bpa-icons/style.module.less +0 -160
  820. package/dist/kolibri/assets/bpa-icons/style.scss +0 -299
  821. package/dist/kolibri/assets/bpa-icons/style.styl +0 -157
  822. package/dist/kolibri/assets/bundes/LICENSE.md +0 -1
  823. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-Black.ttf +0 -0
  824. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-Black.woff +0 -0
  825. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-Black.woff2 +0 -0
  826. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-BlackItalic.ttf +0 -0
  827. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-BlackItalic.woff +0 -0
  828. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-BlackItalic.woff2 +0 -0
  829. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-Bold.ttf +0 -0
  830. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-Bold.woff +0 -0
  831. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-Bold.woff2 +0 -0
  832. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-BoldItalic.ttf +0 -0
  833. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-BoldItalic.woff +0 -0
  834. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-BoldItalic.woff2 +0 -0
  835. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-Light.ttf +0 -0
  836. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-Light.woff +0 -0
  837. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-Light.woff2 +0 -0
  838. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-LightItalic.ttf +0 -0
  839. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-LightItalic.woff +0 -0
  840. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-LightItalic.woff2 +0 -0
  841. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-Medium.ttf +0 -0
  842. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-Medium.woff +0 -0
  843. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-Medium.woff2 +0 -0
  844. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-MediumItalic.ttf +0 -0
  845. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-MediumItalic.woff +0 -0
  846. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-MediumItalic.woff2 +0 -0
  847. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-Regular.ttf +0 -0
  848. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-Regular.woff +0 -0
  849. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-Regular.woff2 +0 -0
  850. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-RegularItalic.ttf +0 -0
  851. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-RegularItalic.woff +0 -0
  852. package/dist/kolibri/assets/bundes/sans/BundesSans-Web-RegularItalic.woff2 +0 -0
  853. package/dist/kolibri/assets/bundes/sans-cond/BundesSansCond-Web-Regular.ttf +0 -0
  854. package/dist/kolibri/assets/bundes/sans-cond/BundesSansCond-Web-Regular.woff +0 -0
  855. package/dist/kolibri/assets/bundes/sans-cond/BundesSansCond-Web-Regular.woff2 +0 -0
  856. package/dist/kolibri/assets/bundes/serif/BundesSerif-Web-Bold.ttf +0 -0
  857. package/dist/kolibri/assets/bundes/serif/BundesSerif-Web-Bold.woff +0 -0
  858. package/dist/kolibri/assets/bundes/serif/BundesSerif-Web-Bold.woff2 +0 -0
  859. package/dist/kolibri/assets/bundes/serif/BundesSerif-Web-BoldItalic.ttf +0 -0
  860. package/dist/kolibri/assets/bundes/serif/BundesSerif-Web-BoldItalic.woff +0 -0
  861. package/dist/kolibri/assets/bundes/serif/BundesSerif-Web-BoldItalic.woff2 +0 -0
  862. package/dist/kolibri/assets/bundes/serif/BundesSerif-Web-Italic.ttf +0 -0
  863. package/dist/kolibri/assets/bundes/serif/BundesSerif-Web-Italic.woff +0 -0
  864. package/dist/kolibri/assets/bundes/serif/BundesSerif-Web-Italic.woff2 +0 -0
  865. package/dist/kolibri/assets/bundes/serif/BundesSerif-Web-Regular.ttf +0 -0
  866. package/dist/kolibri/assets/bundes/serif/BundesSerif-Web-Regular.woff +0 -0
  867. package/dist/kolibri/assets/bundes/serif/BundesSerif-Web-Regular.woff2 +0 -0
  868. package/dist/kolibri/assets/bundes/style.css +0 -84
  869. package/dist/kolibri/assets/fontawesome-free/LICENSE.txt +0 -165
  870. package/dist/kolibri/assets/fontawesome-free/css/all.css +0 -7831
  871. package/dist/kolibri/assets/fontawesome-free/css/all.min.css +0 -6
  872. package/dist/kolibri/assets/fontawesome-free/css/brands.css +0 -1432
  873. package/dist/kolibri/assets/fontawesome-free/css/brands.min.css +0 -6
  874. package/dist/kolibri/assets/fontawesome-free/css/fontawesome.css +0 -6338
  875. package/dist/kolibri/assets/fontawesome-free/css/fontawesome.min.css +0 -6
  876. package/dist/kolibri/assets/fontawesome-free/css/regular.css +0 -19
  877. package/dist/kolibri/assets/fontawesome-free/css/regular.min.css +0 -6
  878. package/dist/kolibri/assets/fontawesome-free/css/solid.css +0 -19
  879. package/dist/kolibri/assets/fontawesome-free/css/solid.min.css +0 -6
  880. package/dist/kolibri/assets/fontawesome-free/css/svg-with-js.css +0 -634
  881. package/dist/kolibri/assets/fontawesome-free/css/svg-with-js.min.css +0 -6
  882. package/dist/kolibri/assets/fontawesome-free/css/v4-font-face.css +0 -26
  883. package/dist/kolibri/assets/fontawesome-free/css/v4-font-face.min.css +0 -6
  884. package/dist/kolibri/assets/fontawesome-free/css/v4-shims.css +0 -2146
  885. package/dist/kolibri/assets/fontawesome-free/css/v4-shims.min.css +0 -6
  886. package/dist/kolibri/assets/fontawesome-free/css/v5-font-face.css +0 -22
  887. package/dist/kolibri/assets/fontawesome-free/css/v5-font-face.min.css +0 -6
  888. package/dist/kolibri/assets/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
  889. package/dist/kolibri/assets/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
  890. package/dist/kolibri/assets/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
  891. package/dist/kolibri/assets/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
  892. package/dist/kolibri/assets/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
  893. package/dist/kolibri/assets/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
  894. package/dist/kolibri/assets/fontawesome-free/webfonts/fa-v4compatibility.ttf +0 -0
  895. package/dist/kolibri/assets/fontawesome-free/webfonts/fa-v4compatibility.woff2 +0 -0
  896. package/dist/kolibri/assets/icofont/demo.html +0 -18939
  897. package/dist/kolibri/assets/icofont/fonts/icofont.eot +0 -0
  898. package/dist/kolibri/assets/icofont/fonts/icofont.svg +0 -2105
  899. package/dist/kolibri/assets/icofont/fonts/icofont.ttf +0 -0
  900. package/dist/kolibri/assets/icofont/fonts/icofont.woff +0 -0
  901. package/dist/kolibri/assets/icofont/fonts/icofont.woff2 +0 -0
  902. package/dist/kolibri/assets/icofont/icofont.css +0 -10757
  903. package/dist/kolibri/assets/icofont/icofont.min.css +0 -7
  904. package/dist/kolibri/assets/kreon/Kreon-VariableFont_wght.ttf +0 -0
  905. package/dist/kolibri/assets/kreon/OFL.txt +0 -93
  906. package/dist/kolibri/assets/kreon/README.txt +0 -67
  907. package/dist/kolibri/assets/kreon/static/Kreon-Bold.ttf +0 -0
  908. package/dist/kolibri/assets/kreon/static/Kreon-Light.ttf +0 -0
  909. package/dist/kolibri/assets/kreon/static/Kreon-Medium.ttf +0 -0
  910. package/dist/kolibri/assets/kreon/static/Kreon-Regular.ttf +0 -0
  911. package/dist/kolibri/assets/kreon/static/Kreon-SemiBold.ttf +0 -0
  912. package/dist/kolibri/assets/kreon/style.css +0 -41
  913. package/dist/kolibri/assets/noto-sans/fonts/NotoSans-Black.ttf +0 -0
  914. package/dist/kolibri/assets/noto-sans/fonts/NotoSans-BlackItalic.ttf +0 -0
  915. package/dist/kolibri/assets/noto-sans/fonts/NotoSans-Bold.ttf +0 -0
  916. package/dist/kolibri/assets/noto-sans/fonts/NotoSans-BoldItalic.ttf +0 -0
  917. package/dist/kolibri/assets/noto-sans/fonts/NotoSans-ExtraBold.ttf +0 -0
  918. package/dist/kolibri/assets/noto-sans/fonts/NotoSans-ExtraBoldItalic.ttf +0 -0
  919. package/dist/kolibri/assets/noto-sans/fonts/NotoSans-ExtraLight.ttf +0 -0
  920. package/dist/kolibri/assets/noto-sans/fonts/NotoSans-ExtraLightItalic.ttf +0 -0
  921. package/dist/kolibri/assets/noto-sans/fonts/NotoSans-Italic.ttf +0 -0
  922. package/dist/kolibri/assets/noto-sans/fonts/NotoSans-Light.ttf +0 -0
  923. package/dist/kolibri/assets/noto-sans/fonts/NotoSans-LightItalic.ttf +0 -0
  924. package/dist/kolibri/assets/noto-sans/fonts/NotoSans-Medium.ttf +0 -0
  925. package/dist/kolibri/assets/noto-sans/fonts/NotoSans-MediumItalic.ttf +0 -0
  926. package/dist/kolibri/assets/noto-sans/fonts/NotoSans-Regular.ttf +0 -0
  927. package/dist/kolibri/assets/noto-sans/fonts/NotoSans-SemiBold.ttf +0 -0
  928. package/dist/kolibri/assets/noto-sans/fonts/NotoSans-SemiBoldItalic.ttf +0 -0
  929. package/dist/kolibri/assets/noto-sans/fonts/NotoSans-Thin.ttf +0 -0
  930. package/dist/kolibri/assets/noto-sans/fonts/NotoSans-ThinItalic.ttf +0 -0
  931. package/dist/kolibri/assets/noto-sans/fonts/OFL.txt +0 -93
  932. package/dist/kolibri/assets/noto-sans/noto-sans.css +0 -11
  933. package/dist/kolibri/assets/roboto/LICENSE.txt +0 -202
  934. package/dist/kolibri/assets/roboto/Roboto-Black.ttf +0 -0
  935. package/dist/kolibri/assets/roboto/Roboto-BlackItalic.ttf +0 -0
  936. package/dist/kolibri/assets/roboto/Roboto-Bold.ttf +0 -0
  937. package/dist/kolibri/assets/roboto/Roboto-BoldItalic.ttf +0 -0
  938. package/dist/kolibri/assets/roboto/Roboto-Italic.ttf +0 -0
  939. package/dist/kolibri/assets/roboto/Roboto-Light.ttf +0 -0
  940. package/dist/kolibri/assets/roboto/Roboto-LightItalic.ttf +0 -0
  941. package/dist/kolibri/assets/roboto/Roboto-Medium.ttf +0 -0
  942. package/dist/kolibri/assets/roboto/Roboto-MediumItalic.ttf +0 -0
  943. package/dist/kolibri/assets/roboto/Roboto-Regular.ttf +0 -0
  944. package/dist/kolibri/assets/roboto/Roboto-Thin.ttf +0 -0
  945. package/dist/kolibri/assets/roboto/Roboto-ThinItalic.ttf +0 -0
  946. package/dist/kolibri/assets/roboto/roboto.css +0 -27
  947. package/dist/kolibri/assets/tabler-icons/fonts/tabler-icons.eot +0 -0
  948. package/dist/kolibri/assets/tabler-icons/fonts/tabler-icons.ttf +0 -0
  949. package/dist/kolibri/assets/tabler-icons/fonts/tabler-icons.woff +0 -0
  950. package/dist/kolibri/assets/tabler-icons/fonts/tabler-icons.woff2 +0 -0
  951. package/dist/kolibri/assets/tabler-icons/tabler-icons.css +0 -16057
  952. package/dist/kolibri/assets/tabler-icons/tabler-icons.html +0 -36226
  953. package/dist/kolibri/assets/tabler-icons/tabler-icons.min.css +0 -4
  954. package/dist/kolibri/assets/tabler-icons/tabler-icons.png +0 -0
  955. package/dist/kolibri/assets/tabler-icons/tabler-icons.scss +0 -8058
  956. package/dist/kolibri/button-link-0f3cba87.js.map +0 -1
  957. package/dist/kolibri/controller-0cfe4cb7.js +0 -4
  958. package/dist/kolibri/controller-0cfe4cb7.js.map +0 -1
  959. package/dist/kolibri/controller-6ae13480.js +0 -4
  960. package/dist/kolibri/controller-6ae13480.js.map +0 -1
  961. package/dist/kolibri/controller-icon-3862c494.js.map +0 -1
  962. package/dist/kolibri/icon-8fbdb661.js.map +0 -1
  963. package/dist/kolibri/index-50adf9a0.js +0 -5
  964. package/dist/kolibri/index-50adf9a0.js.map +0 -1
  965. package/dist/kolibri/index-81bd9b41.js +0 -4
  966. package/dist/kolibri/index-81bd9b41.js.map +0 -1
  967. package/dist/kolibri/index-d14da386.js +0 -4
  968. package/dist/kolibri/index-d14da386.js.map +0 -1
  969. package/dist/kolibri/index-f3c76945.js +0 -4
  970. package/dist/kolibri/index-f3c76945.js.map +0 -1
  971. package/dist/kolibri/kol-button-wc_2.entry.js +0 -4
  972. package/dist/kolibri/kol-button-wc_2.entry.js.map +0 -1
  973. package/dist/kolibri/kol-heading-wc_2.entry.js +0 -4
  974. package/dist/kolibri/kol-heading-wc_2.entry.js.map +0 -1
  975. package/dist/kolibri/prop.validators-e402ad49.js.map +0 -1
  976. package/dist/kolibri/validation-b331e3a7.js +0 -4
  977. package/dist/types/schema/i18n-keys.d.ts +0 -29
  978. package/dist/types/schema/index.d.ts +0 -2
  979. package/dist/types/schema/tag-names.d.ts +0 -50
  980. /package/dist/kolibri/{app-globals-0b65686c.js.map → app-globals-6ba5ef2f.js.map} +0 -0
  981. /package/dist/kolibri/{controller-873db1b1.js.map → controller-0cf6cd75.js.map} +0 -0
  982. /package/dist/kolibri/{controller-a01956a8.js.map → controller-1ec68c46.js.map} +0 -0
  983. /package/dist/kolibri/{controller-cf3cf5b2.js.map → controller-3e94c3f2.js.map} +0 -0
  984. /package/dist/kolibri/{controller-0b0c0e12.js.map → controller-985aff52.js.map} +0 -0
  985. /package/dist/kolibri/{devtools-cb70c2f9.js.map → devtools-33f1b614.js.map} +0 -0
  986. /package/dist/kolibri/{i18n-9efcb042.js.map → i18n-81ce19c0.js.map} +0 -0
  987. /package/dist/kolibri/{label-d51b1a57.js.map → label-4bfc9d30.js.map} +0 -0
  988. /package/dist/kolibri/{tab-index-63d1379d.js.map → tab-index-eff012a1.js.map} +0 -0
  989. /package/dist/kolibri/{validation-ab9a6c0d.js.map → validation-ec53a8be.js.map} +0 -0
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{j as a11yHint,w as watchString,F as watchJsonArrayString,l as watchBoolean,B as watchNumber,M as STATE_CHANGE_EVENT,v as propagateFocus,n as nonce}from"./prop.validators.js";import{g as getRenderStates}from"./controller.js";import{I as InputIconController}from"./controller-icon.js";import{f as fillKeyOptionMap}from"./controller2.js";import{h as hasEnoughReadableChars,e as containsOnlyNumbers,d as defineCustomElement$2}from"./component3.js";import{d as defineCustomElement$8}from"./shadow.js";import{d as defineCustomElement$7}from"./component6.js";import{d as defineCustomElement$6}from"./component5.js";import{d as defineCustomElement$5}from"./component4.js";import{d as defineCustomElement$4}from"./component2.js";import{d as defineCustomElement$3}from"./component11.js";import{d as defineCustomElement$1}from"./component.js";const validateInputSelectList=e=>{if("object"==typeof e&&null!==e){if("string"==typeof e.label&&e.label.length>0)return e.disabled=!0===e.disabled,e.label=`${e.label}`.trim(),!1===hasEnoughReadableChars(e.label,3)&&!1===containsOnlyNumbers(e.label)&&a11yHint(`Ein abweichendes Aria-Label (${e.label}) ist nicht barrierefrei. Ein abweichendes Aria-Label sollte aus mindestens drei lesbaren Zeichen bestehen.`),!Array.isArray(e.options)||void 0===e.options.find((e=>!1===validateInputSelectList(e)));if("number"==typeof e.label)return!0}return!1};class SelectController extends InputIconController{constructor(e,t,i){super(e,t,i),this.keyOptionMap=new Map,this.getOptionByKey=e=>this.keyOptionMap.get(e),this.isValueInOptions=(e,t)=>void 0!==t.find((t=>"string"==typeof t.value?t.value===e:!!Array.isArray(t.options)&&this.isValueInOptions(e,t.options))),this.filterValuesInOptions=(e,t)=>e.filter((e=>void 0!==this.isValueInOptions(e,t))),this.beforePatchListValue=(e,t)=>{const i=t.has("_list")?t.get("_list"):this.component.state._list;if(Array.isArray(i)&&i.length>0){this.keyOptionMap.clear(),fillKeyOptionMap(this.keyOptionMap,i);const e=t.has("_value")?t.get("_value"):this.component.state._value,a=this.filterValuesInOptions(Array.isArray(e)&&e.length>0?e:[],i);!1===this.component._multiple&&0===a.length?(t.set("_value",[i[0].value]),this.onStateChange()):Array.isArray(e)&&a.length<e.length&&(t.set("_value",a),this.onStateChange())}},this.component=e}validateHeight(e){watchString(this.component,"_height",e)}validateList(e){watchJsonArrayString(this.component,"_list",validateInputSelectList,e,void 0,{hooks:{beforePatch:this.beforePatchListValue}})}validateMultiple(e){watchBoolean(this.component,"_multiple",e,{hooks:{beforePatch:this.beforePatchListValue}})}validateRequired(e){watchBoolean(this.component,"_required",e)}validateSize(e){watchNumber(this.component,"_size",e,{min:1})}validateValue(e){watchJsonArrayString(this.component,"_value",(()=>!0),e,void 0,{hooks:{beforePatch:this.beforePatchListValue}}),this.setFormAssociatedValue(this.component._value)}componentWillLoad(e){super.componentWillLoad(),this.onStateChange=()=>{if("function"==typeof e){const t=setTimeout((()=>{clearTimeout(t),e(STATE_CHANGE_EVENT)}))}},this.validateHeight(this.component._height),this.validateList(this.component._list),this.validateMultiple(this.component._multiple),this.validateRequired(this.component._required),this.validateSize(this.component._size),this.validateValue(this.component._value)}}const defaultStyleCss=":host{--a11y-min-size:44px}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role='button'],button:not([role='link']),kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}button,input,option,select,textarea{font-family:inherit}.icon-only>kol-span-wc>span>span{display:none}.required label>span::after,.required legend>span::after{content:'*'}:host{display:block}input,textarea{cursor:text}input[type='checkbox'],input[type='color'],input[type='file'],input[type='radio'],input[type='range'],label,option,select{cursor:pointer}input[type='color'],input[type='date'],input[type='datetime-local'],input[type='email'],input[type='file'],input[type='month'],input[type='number'],input[type='password'],input[type='search'],input[type='tel'],input[type='text'],input[type='time'],input[type='url'],input[type='week'],select:not([multiple]),select[multiple] option,textarea{font-size:1rem;width:100%}input[type='file']{padding:calc((var(--a11y-min-size) - 1rem) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - 1rem) / 2) 0.5em}kol-input.disabled :is(button,input,label,option,select,textarea){cursor:not-allowed;opacity:0.5}kol-input{display:grid}kol-input [slot='input']{flex-grow:1}input:not([type='checkbox'],[type='radio']),select:not([multiple]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}",isSelected=(e,t)=>Array.isArray(e)&&e.includes(t),KolSelect=proxyCustomElement(class extends HTMLElement{renderOptgroup(e,t){var i;return h("optgroup",{disabled:!0===e.disabled,label:e.label},null===(i=e.options)||void 0===i?void 0:i.map(((e,i)=>{const a=`${t}-${i}`;return Array.isArray(e.options)?this.renderOptgroup(e,a):h("option",{disabled:!0===e.disabled,key:a,selected:isSelected(this.state._value,e.value),value:a},e.label)})))}render(){const{ariaDescribedBy:e}=getRenderStates(this.state);return h(Host,{class:{"has-value":this.state._hasValue}},h("kol-input",{class:{select:!0},_disabled:this.state._disabled,_error:this.state._error,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icon:this.state._icon,_id:this.state._id,_required:this.state._required,_touched:this.state._touched,onClick:()=>{var e;return null===(e=this.ref)||void 0===e?void 0:e.focus()}},h("span",{slot:"label"},h("slot",null)),h("select",Object.assign({ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":e.length>0?e.join(" "):void 0,"aria-labelledby":`${this.state._id}-label`,autoCapitalize:"off",autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,multiple:this.state._multiple,name:this.state._name,required:this.state._required,size:this.state._size,slot:"input",spellcheck:"false",style:{height:this.state._height}},{onClick:this.controller.onFacade.onClick,onBlur:this.controller.onFacade.onBlur,onFocus:this.controller.onFacade.onFocus},{onChange:this.onChange}),this.state._list.map(((e,t)=>{const i=`-${t}`;return Array.isArray(e.options)?this.renderOptgroup(e,i):h("option",{disabled:!0===e.disabled,key:i,selected:isSelected(this.state._value,e.value),value:i},e.label)})))))}constructor(){super(),this.__registerHost(),this.__attachShadow(),this.catchRef=e=>{this.ref=e,propagateFocus(this.host,this.ref)},this.onChange=e=>{var t,i;this._value=Array.from((null===(t=this.ref)||void 0===t?void 0:t.options)||[]).filter((e=>!0===e.selected)).map((e=>{var t;return null===(t=this.controller.getOptionByKey(e.value))||void 0===t?void 0:t.value})),this.controller.setFormAssociatedValue(this._value),"function"==typeof(null===(i=this.state._on)||void 0===i?void 0:i.onChange)&&this.state._on.onChange(e,this._value)},this._accessKey=void 0,this._alert=!0,this._disabled=void 0,this._error=void 0,this._height=void 0,this._hideLabel=void 0,this._hint="",this._icon=void 0,this._id=void 0,this._list=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._required=void 0,this._size=void 0,this._tabIndex=void 0,this._touched=!1,this._value=void 0,this.state={_hasValue:!1,_height:"",_id:nonce(),_list:[],_multiple:!1,_value:[]},this.controller=new SelectController(this,"textarea",this.host)}validateAccessKey(e){this.controller.validateAccessKey(e)}validateAlert(e){this.controller.validateAlert(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateError(e){this.controller.validateError(e)}validateHeight(e){this.controller.validateHeight(e)}validateHideLabel(e){this.controller.validateHideLabel(e)}validateHint(e){this.controller.validateHint(e)}validateIcon(e){this.controller.validateIcon(e)}validateId(e){this.controller.validateId(e)}validateList(e){this.controller.validateList(e)}validateMultiple(e){this.controller.validateMultiple(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validateRequired(e){this.controller.validateRequired(e)}validateSize(e){this.controller.validateSize(e)}validateTabIndex(e){this.controller.validateTabIndex(e)}validateTouched(e){this.controller.validateTouched(e)}validateValue(e){this.controller.validateValue(e)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(this.onChange),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((e=>this.state._hasValue=!!e))}get host(){return this}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_disabled:["validateDisabled"],_error:["validateError"],_height:["validateHeight"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_id:["validateId"],_list:["validateList"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_required:["validateRequired"],_size:["validateSize"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}static get style(){return{default:defaultStyleCss}}},[33,"kol-select",{_accessKey:[1,"_access-key"],_alert:[1540],_disabled:[516],_error:[1],_height:[1],_hideLabel:[516,"_hide-label"],_hint:[1],_icon:[1],_id:[1],_list:[1],_multiple:[516],_name:[1],_on:[16],_required:[516],_size:[2],_tabIndex:[2,"_tab-index"],_touched:[1540],_value:[1025],state:[32]}]);function defineCustomElement(){if("undefined"==typeof customElements)return;["kol-select","kol-alert","kol-alert-wc","kol-button-wc","kol-heading-wc","kol-icon","kol-input","kol-span-wc","kol-tooltip"].forEach((e=>{switch(e){case"kol-select":customElements.get(e)||customElements.define(e,KolSelect);break;case"kol-alert":customElements.get(e)||defineCustomElement$8();break;case"kol-alert-wc":customElements.get(e)||defineCustomElement$7();break;case"kol-button-wc":customElements.get(e)||defineCustomElement$6();break;case"kol-heading-wc":customElements.get(e)||defineCustomElement$5();break;case"kol-icon":customElements.get(e)||defineCustomElement$4();break;case"kol-input":customElements.get(e)||defineCustomElement$3();break;case"kol-span-wc":customElements.get(e)||defineCustomElement$2();break;case"kol-tooltip":customElements.get(e)||defineCustomElement$1()}}))}export{KolSelect as K,defineCustomElement as d};
@@ -0,0 +1 @@
1
+ {"file":"component15.js","mappings":";;;;;;;;;;;;;;;;;AAIO,MAAM,uBAAuB,GAAG,CAAI,MAAuB;EACjE,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,EAAE;IAClD,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;MAChE,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,KAAK,IAAI,CAAC;MAC3C,MAAM,CAAC,KAAK,GAAG,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC;MACxC,IAAI,sBAAsB,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,KAAK,IAAI,mBAAmB,CAAC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AgB,CAAC,KAAe;IACtC,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;GACxC;EAGM,YAAY,CAAC,KAAc;IACjC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;GACpC;EAGM,gBAAgB,CAAC,KAAc;IACrC,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;GACxC;EAGM,eAAe,CAAC,KAAe;IACrC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;GACvC;EAGM,aAAa,CAAC,KAAoC;IACxD,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;GACrC;EAEM,iBAAiB;IACvB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC;IACnC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC;IACvC,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAEjD,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;IAC3C,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;GAC5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/utils/validators/list.ts","./src/components/select/controller.ts","./src/components/select/style.css?tag=kol-select&mode=default&encapsulation=shadow","./src/components/select/component.tsx"],"sourcesContent":["import { Optgroup, SelectOption } from '../../types/input/types';\nimport { a11yHint } from '../a11y.tipps';\nimport { containsOnlyNumbers, hasEnoughReadableChars } from '../../types/props/label';\n\nexport const validateInputSelectList = <T>(option: SelectOption<T>): boolean => {\n\tif (typeof option === 'object' && option !== null) {\n\t\tif (typeof option.label === 'string' && option.label.length > 0) {\n\t\t\toption.disabled = option.disabled === true;\n\t\t\toption.label = `${option.label}`.trim();\n\t\t\tif (hasEnoughReadableChars(option.label, 3) === false && containsOnlyNumbers(option.label) === false) {\n\t\t\t\ta11yHint(\n\t\t\t\t\t`Ein abweichendes Aria-Label (${option.label}) ist nicht barrierefrei. Ein abweichendes Aria-Label sollte aus mindestens drei lesbaren Zeichen bestehen.`\n\t\t\t\t);\n\t\t\t}\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\treturn (\n\t\t\t\t\t(option as Optgroup<T>).options.find((item) => {\n\t\t\t\t\t\treturn validateInputSelectList(item) === false;\n\t\t\t\t\t}) === undefined\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (typeof option.label === 'number') {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n","import { Generic } from '@a11y-ui/core';\nimport { Stringified } from '../../types/common';\nimport { Optgroup, Option, SelectOption } from '../../types/input/types';\nimport { W3CInputValue } from '../../types/w3c';\nimport { watchBoolean, watchJsonArrayString, watchNumber, watchString } from '../../utils/prop.validators';\nimport { STATE_CHANGE_EVENT } from '../../utils/validator';\nimport { InputIconController } from '../@deprecated/input/controller-icon';\nimport { fillKeyOptionMap } from '../input-radio/controller';\nimport { Props, Watches } from './types';\nimport { validateInputSelectList } from '../../utils/validators/list';\n\nexport class SelectController extends InputIconController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprivate onStateChange!: () => void;\n\tprivate readonly keyOptionMap = new Map<string, Option<W3CInputValue>>();\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic readonly getOptionByKey = (key: string): Option<W3CInputValue> | undefined => this.keyOptionMap.get(key);\n\n\tprivate readonly isValueInOptions = (value: string, options: SelectOption<W3CInputValue>[]): boolean => {\n\t\treturn (\n\t\t\toptions.find((option) =>\n\t\t\t\ttypeof (option as Option<W3CInputValue>).value === 'string'\n\t\t\t\t\t? (option as Option<W3CInputValue>).value === value\n\t\t\t\t\t: Array.isArray((option as Optgroup<string>).options)\n\t\t\t\t\t? this.isValueInOptions(value, (option as Optgroup<string>).options)\n\t\t\t\t\t: false\n\t\t\t) !== undefined\n\t\t);\n\t};\n\n\tprivate readonly filterValuesInOptions = (values: string[], options: SelectOption<W3CInputValue>[]): string[] => {\n\t\treturn values.filter((value) => this.isValueInOptions(value, options) !== undefined);\n\t};\n\n\tprivate readonly beforePatchListValue = (_value: unknown, nextState: Map<string, unknown>): void => {\n\t\tconst list = nextState.has('_list') ? nextState.get('_list') : this.component.state._list;\n\t\tif (Array.isArray(list) && list.length > 0) {\n\t\t\tthis.keyOptionMap.clear();\n\t\t\tfillKeyOptionMap(this.keyOptionMap, list as SelectOption<W3CInputValue>[]);\n\t\t\tconst value = nextState.has('_value') ? nextState.get('_value') : this.component.state._value;\n\t\t\tconst selected = this.filterValuesInOptions(Array.isArray(value) && value.length > 0 ? (value as string[]) : [], list as SelectOption<W3CInputValue>[]);\n\t\t\tif (this.component._multiple === false && selected.length === 0) {\n\t\t\t\tnextState.set('_value', [\n\t\t\t\t\t(\n\t\t\t\t\t\tlist[0] as {\n\t\t\t\t\t\t\tvalue: string;\n\t\t\t\t\t\t}\n\t\t\t\t\t).value,\n\t\t\t\t]);\n\t\t\t\tthis.onStateChange();\n\t\t\t} else if (Array.isArray(value) && selected.length < value.length) {\n\t\t\t\tnextState.set('_value', selected);\n\t\t\t\tthis.onStateChange();\n\t\t\t}\n\t\t}\n\t};\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t * @deprecated Use _size instead.\n\t */\n\tpublic validateHeight(value?: string): void {\n\t\twatchString(this.component, '_height', value);\n\t}\n\n\tpublic validateList<T>(value?: SelectOption<T>[] | string): void {\n\t\twatchJsonArrayString(this.component, '_list', validateInputSelectList, value, undefined, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.beforePatchListValue,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateMultiple(value?: boolean): void {\n\t\twatchBoolean(this.component, '_multiple', value, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.beforePatchListValue,\n\t\t\t},\n\t\t});\n\t\t// if (value === true) {\n\t\t// \tdevHint(\n\t\t// \t\t'[KolSelect] Aktuell wird die Mehrfachauswahl noch nicht unterstützt. Wir sind dran die Mehrfachauswahl funktionsfähig zu implementieren, da der Browser-Standard hier ein paar Lücken hat.'\n\t\t// \t);\n\t\t// \tdevHint('[KolSelect] Bei der Mehrfachauswahl sollte zusätzlich auch die Listenlänge (size) gesetzt werden.');\n\t\t// }\n\t}\n\n\tpublic validateRequired(value?: boolean): void {\n\t\twatchBoolean(this.component, '_required', value);\n\t}\n\n\tpublic validateSize(value?: number): void {\n\t\twatchNumber(this.component, '_size', value, {\n\t\t\tmin: 1,\n\t\t});\n\t}\n\n\tpublic validateValue(value?: Stringified<W3CInputValue[]>): void {\n\t\twatchJsonArrayString(this.component, '_value', () => true, value, undefined, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.beforePatchListValue,\n\t\t\t},\n\t\t});\n\t\tthis.setFormAssociatedValue(this.component._value as string);\n\t}\n\n\tpublic componentWillLoad(onChange?: (event: Event) => void): void {\n\t\tsuper.componentWillLoad();\n\n\t\tthis.onStateChange = () => {\n\t\t\tif (typeof onChange === 'function') {\n\t\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\t\tclearTimeout(timeout);\n\t\t\t\t\tonChange(STATE_CHANGE_EVENT);\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\n\t\tthis.validateHeight(this.component._height);\n\t\tthis.validateList(this.component._list);\n\t\tthis.validateMultiple(this.component._multiple);\n\t\tthis.validateRequired(this.component._required);\n\t\tthis.validateSize(this.component._size);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n","@import url(../input-line.css);\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\nimport { Stringified } from '../../types/common';\n\nimport { InputTypeOnDefault, Optgroup, Option, SelectOption } from '../../types/input/types';\nimport { W3CInputValue } from '../../types/w3c';\nimport { propagateFocus } from '../../utils/reuse';\nimport { KoliBriHorizontalIcon } from '../../types/icon';\nimport { getRenderStates } from '../input/controller';\nimport { SelectController } from './controller';\nimport { ComponentApi, States } from './types';\nimport { nonce } from '../../utils/dev.utils';\n\nconst isSelected = (valueList: unknown[] | null, optionValue: unknown): boolean => {\n\treturn Array.isArray(valueList) && valueList.includes(optionValue);\n};\n\n/**\n * @slot default Die Beschriftung des Eingabefeldes.\n */\n@Component({\n\ttag: 'kol-select',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolSelect implements ComponentApi {\n\t@Element() private readonly host?: HTMLKolSelectElement;\n\tprivate ref?: HTMLSelectElement;\n\n\tprivate readonly catchRef = (ref?: HTMLSelectElement) => {\n\t\tthis.ref = ref;\n\t\tpropagateFocus(this.host, this.ref);\n\t};\n\n\tprivate renderOptgroup(optgroup: Optgroup<string>, preKey: string): JSX.Element {\n\t\treturn (\n\t\t\t<optgroup disabled={optgroup.disabled === true} label={optgroup.label}>\n\t\t\t\t{optgroup.options?.map((option: SelectOption<W3CInputValue>, index: number) => {\n\t\t\t\t\tconst key = `${preKey}-${index}`;\n\t\t\t\t\tif (Array.isArray((option as Optgroup<string>).options)) {\n\t\t\t\t\t\treturn this.renderOptgroup(option as Optgroup<string>, key);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<option\n\t\t\t\t\t\t\t\tdisabled={option.disabled === true}\n\t\t\t\t\t\t\t\tkey={key}\n\t\t\t\t\t\t\t\t// label={option.label}\n\t\t\t\t\t\t\t\tselected={isSelected(this.state._value, (option as Option<W3CInputValue>).value)}\n\t\t\t\t\t\t\t\tvalue={key}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{option.label}\n\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t})}\n\t\t\t</optgroup>\n\t\t);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst { ariaDescribedBy } = getRenderStates(this.state);\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={{\n\t\t\t\t\t'has-value': this.state._hasValue,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<kol-input\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tselect: true,\n\t\t\t\t\t}}\n\t\t\t\t\t_disabled={this.state._disabled}\n\t\t\t\t\t_error={this.state._error}\n\t\t\t\t\t_hideLabel={this.state._hideLabel}\n\t\t\t\t\t_hint={this.state._hint}\n\t\t\t\t\t_icon={this.state._icon}\n\t\t\t\t\t_id={this.state._id}\n\t\t\t\t\t_required={this.state._required}\n\t\t\t\t\t_touched={this.state._touched}\n\t\t\t\t\tonClick={() => this.ref?.focus()}\n\t\t\t\t>\n\t\t\t\t\t<span slot=\"label\">\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</span>\n\t\t\t\t\t<select\n\t\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\t\t\t\t\t\taria-labelledby={`${this.state._id}-label`}\n\t\t\t\t\t\tautoCapitalize=\"off\"\n\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\tid={this.state._id}\n\t\t\t\t\t\tmultiple={this.state._multiple}\n\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\tsize={this.state._size}\n\t\t\t\t\t\tslot=\"input\"\n\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\theight: this.state._height,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\t{...{\n\t\t\t\t\t\t\tonClick: this.controller.onFacade.onClick,\n\t\t\t\t\t\t\tonBlur: this.controller.onFacade.onBlur,\n\t\t\t\t\t\t\tonFocus: this.controller.onFacade.onFocus,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\tonChange={this.onChange}\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.state._list.map((option, index) => {\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * Damit der Value einer Option ein beliebigen Typ haben kann\n\t\t\t\t\t\t\t * muss man auf HTML-Ebene den Value auf einen String-Wert\n\t\t\t\t\t\t\t * mappen. Das tun wir mittels der Map.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tconst key = `-${index}`;\n\t\t\t\t\t\t\tif (Array.isArray((option as unknown as Optgroup<string>).options)) {\n\t\t\t\t\t\t\t\treturn this.renderOptgroup(option as unknown as Optgroup<string>, key);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t<option\n\t\t\t\t\t\t\t\t\t\tdisabled={option.disabled === true}\n\t\t\t\t\t\t\t\t\t\tkey={key}\n\t\t\t\t\t\t\t\t\t\t// label={option.label}\n\t\t\t\t\t\t\t\t\t\tselected={isSelected(this.state._value, (option as unknown as Option<W3CInputValue>).value)}\n\t\t\t\t\t\t\t\t\t\tvalue={key}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{option.label}\n\t\t\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})}\n\t\t\t\t\t</select>\n\t\t\t\t</kol-input>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: SelectController;\n\n\t/**\n\t * Gibt an, mit welcher Tastenkombination man das Input auslösen oder fokussieren kann.\n\t */\n\t@Prop() public _accessKey?: string;\n\n\t/**\n\t * Gibt an, ob die Fehlermeldung vorgelesen werden soll, wenn es eine gibt.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: boolean = true;\n\n\t/**\n\t * Setzt das Feld in einen inaktiven Zustand, in dem es keine Interaktion erlaubt.\n\t */\n\t@Prop({ reflect: true }) public _disabled?: boolean;\n\n\t/**\n\t * Gibt den Text für eine Fehlermeldung an.\n\t */\n\t@Prop() public _error?: string;\n\n\t/**\n\t * Gibt an, ob eine individuelle Höhe übergeben werden soll.\n\t *\n\t * @deprecated Use _size instead.\n\t */\n\t@Prop() public _height?: string;\n\n\t/**\n\t * Versteckt das sichtbare Label des Elements.\n\t */\n\t@Prop({ reflect: true }) public _hideLabel?: boolean;\n\n\t/**\n\t * Gibt den Hinweistext an.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * Ermöglicht das Anzeigen von Icons links und/oder rechts am Rand des Eingabefeldes.\n\t */\n\t@Prop() public _icon?: Stringified<KoliBriHorizontalIcon>;\n\n\t/**\n\t * Gibt die technische ID des Eingabefeldes an.\n\t */\n\t@Prop() public _id?: string;\n\n\t/**\n\t * Gibt den technischen Namen des Eingabefeldes an.\n\t */\n\t@Prop() public _list!: Stringified<SelectOption<W3CInputValue>[]>;\n\n\t/**\n\t * Gibt an, ob mehrere Werte eingegeben werden können.\n\t */\n\t@Prop({ reflect: true }) public _multiple?: boolean = false;\n\n\t/**\n\t * Gibt den technischen Namen des Eingabefeldes an.\n\t */\n\t@Prop() public _name?: string;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für das Input-Event an.\n\t */\n\t@Prop() public _on?: InputTypeOnDefault;\n\n\t/**\n\t * Macht das Eingabeelement zu einem Pflichtfeld.\n\t */\n\t@Prop({ reflect: true }) public _required?: boolean;\n\n\t/**\n\t * Wechselt das Eingabeelement in den Auswahlfeld modus und setzt die Höhe des Feldes.\n\t */\n\t@Prop() public _size?: number;\n\n\t/**\n\t * Gibt an, welchen Tab-Index dieses Input hat.\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Gibt an, ob dieses Eingabefeld von Nutzer:innen einmal besucht/berührt wurde.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _touched?: boolean = false;\n\n\t/**\n\t * Gibt den Wert des Eingabefeldes an.\n\t */\n\t@Prop({ mutable: true, reflect: false }) public _value?: Stringified<W3CInputValue[]>;\n\n\t@State() public state: States = {\n\t\t_hasValue: false,\n\t\t_height: '',\n\t\t_id: nonce(), // ⚠ required\n\t\t_list: [],\n\t\t_multiple: false,\n\t\t_value: [],\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new SelectController(this, 'textarea', this.host);\n\t}\n\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: string): void {\n\t\tthis.controller.validateAccessKey(value);\n\t}\n\n\t@Watch('_alert')\n\tpublic validateAlert(value?: boolean): void {\n\t\tthis.controller.validateAlert(value);\n\t}\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: boolean): void {\n\t\tthis.controller.validateDisabled(value);\n\t}\n\n\t@Watch('_error')\n\tpublic validateError(value?: string): void {\n\t\tthis.controller.validateError(value);\n\t}\n\n\t@Watch('_height')\n\tpublic validateHeight(value?: string): void {\n\t\tthis.controller.validateHeight(value);\n\t}\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tthis.controller.validateHideLabel(value);\n\t}\n\n\t@Watch('_hint')\n\tpublic validateHint(value?: string): void {\n\t\tthis.controller.validateHint(value);\n\t}\n\n\t@Watch('_icon')\n\tpublic validateIcon(value?: Stringified<KoliBriHorizontalIcon>): void {\n\t\tthis.controller.validateIcon(value);\n\t}\n\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\tthis.controller.validateId(value);\n\t}\n\n\t@Watch('_list')\n\tpublic validateList(value?: Stringified<SelectOption<W3CInputValue>[]>): void {\n\t\tthis.controller.validateList(value);\n\t}\n\n\t@Watch('_multiple')\n\tpublic validateMultiple(value?: boolean): void {\n\t\tthis.controller.validateMultiple(value);\n\t}\n\n\t@Watch('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tthis.controller.validateOn(value);\n\t}\n\n\t@Watch('_required')\n\tpublic validateRequired(value?: boolean): void {\n\t\tthis.controller.validateRequired(value);\n\t}\n\n\t@Watch('_size')\n\tpublic validateSize(value?: number): void {\n\t\tthis.controller.validateSize(value);\n\t}\n\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tthis.controller.validateTabIndex(value);\n\t}\n\n\t@Watch('_touched')\n\tpublic validateTouched(value?: boolean): void {\n\t\tthis.controller.validateTouched(value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: Stringified<W3CInputValue[]>): void {\n\t\tthis.controller.validateValue(value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis._alert = this._alert === true;\n\t\tthis._touched = this._touched === true;\n\t\tthis.controller.componentWillLoad(this.onChange);\n\n\t\tthis.state._hasValue = !!this.state._value;\n\t\tthis.controller.addValueChangeListener((v) => (this.state._hasValue = !!v));\n\t}\n\n\tprivate onChange = (event: Event): void => {\n\t\t/**\n\t\t * TODO: Find values via value keys.\n\t\t */\n\t\tthis._value = Array.from(this.ref?.options || [])\n\t\t\t.filter((option) => option.selected === true)\n\t\t\t.map((option) => this.controller.getOptionByKey(option.value)?.value as string);\n\t\tthis.controller.setFormAssociatedValue(this._value as unknown as string);\n\t\tif (typeof this.state._on?.onChange === 'function') {\n\t\t\tthis.state._on.onChange(event, this._value);\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{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{w as watchString,d as devHint}from"./prop.validators.js";const defaultStyleCss='@font-face{font-family:"codicon";font-display:block;src:url("./codicon.ttf?0e5b0adf625a37fbcd638d31f0fe72aa") format("truetype")}.codicon[class*=\'codicon-\']{font:normal normal normal 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;-webkit-user-select:none;-ms-user-select:none}@keyframes codicon-spin{100%{transform:rotate(360deg)}}.codicon-sync.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-gear.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:0.5}.codicon-modifier-hidden{opacity:0}.codicon-loading{animation-duration:1s !important;animation-timing-function:cubic-bezier(0.53, 0.21, 0.29, 0.67) !important}.codicon-add:before{content:"\\ea60"}.codicon-plus:before{content:"\\ea60"}.codicon-gist-new:before{content:"\\ea60"}.codicon-repo-create:before{content:"\\ea60"}.codicon-lightbulb:before{content:"\\ea61"}.codicon-light-bulb:before{content:"\\ea61"}.codicon-repo:before{content:"\\ea62"}.codicon-repo-delete:before{content:"\\ea62"}.codicon-gist-fork:before{content:"\\ea63"}.codicon-repo-forked:before{content:"\\ea63"}.codicon-git-pull-request:before{content:"\\ea64"}.codicon-git-pull-request-abandoned:before{content:"\\ea64"}.codicon-record-keys:before{content:"\\ea65"}.codicon-keyboard:before{content:"\\ea65"}.codicon-tag:before{content:"\\ea66"}.codicon-tag-add:before{content:"\\ea66"}.codicon-tag-remove:before{content:"\\ea66"}.codicon-person:before{content:"\\ea67"}.codicon-person-follow:before{content:"\\ea67"}.codicon-person-outline:before{content:"\\ea67"}.codicon-person-filled:before{content:"\\ea67"}.codicon-git-branch:before{content:"\\ea68"}.codicon-git-branch-create:before{content:"\\ea68"}.codicon-git-branch-delete:before{content:"\\ea68"}.codicon-source-control:before{content:"\\ea68"}.codicon-mirror:before{content:"\\ea69"}.codicon-mirror-public:before{content:"\\ea69"}.codicon-star:before{content:"\\ea6a"}.codicon-star-add:before{content:"\\ea6a"}.codicon-star-delete:before{content:"\\ea6a"}.codicon-star-empty:before{content:"\\ea6a"}.codicon-comment:before{content:"\\ea6b"}.codicon-comment-add:before{content:"\\ea6b"}.codicon-alert:before{content:"\\ea6c"}.codicon-warning:before{content:"\\ea6c"}.codicon-search:before{content:"\\ea6d"}.codicon-search-save:before{content:"\\ea6d"}.codicon-log-out:before{content:"\\ea6e"}.codicon-sign-out:before{content:"\\ea6e"}.codicon-log-in:before{content:"\\ea6f"}.codicon-sign-in:before{content:"\\ea6f"}.codicon-eye:before{content:"\\ea70"}.codicon-eye-unwatch:before{content:"\\ea70"}.codicon-eye-watch:before{content:"\\ea70"}.codicon-circle-filled:before{content:"\\ea71"}.codicon-primitive-dot:before{content:"\\ea71"}.codicon-close-dirty:before{content:"\\ea71"}.codicon-debug-breakpoint:before{content:"\\ea71"}.codicon-debug-breakpoint-disabled:before{content:"\\ea71"}.codicon-debug-hint:before{content:"\\ea71"}.codicon-primitive-square:before{content:"\\ea72"}.codicon-edit:before{content:"\\ea73"}.codicon-pencil:before{content:"\\ea73"}.codicon-info:before{content:"\\ea74"}.codicon-issue-opened:before{content:"\\ea74"}.codicon-gist-private:before{content:"\\ea75"}.codicon-git-fork-private:before{content:"\\ea75"}.codicon-lock:before{content:"\\ea75"}.codicon-mirror-private:before{content:"\\ea75"}.codicon-close:before{content:"\\ea76"}.codicon-remove-close:before{content:"\\ea76"}.codicon-x:before{content:"\\ea76"}.codicon-repo-sync:before{content:"\\ea77"}.codicon-sync:before{content:"\\ea77"}.codicon-clone:before{content:"\\ea78"}.codicon-desktop-download:before{content:"\\ea78"}.codicon-beaker:before{content:"\\ea79"}.codicon-microscope:before{content:"\\ea79"}.codicon-vm:before{content:"\\ea7a"}.codicon-device-desktop:before{content:"\\ea7a"}.codicon-file:before{content:"\\ea7b"}.codicon-file-text:before{content:"\\ea7b"}.codicon-more:before{content:"\\ea7c"}.codicon-ellipsis:before{content:"\\ea7c"}.codicon-kebab-horizontal:before{content:"\\ea7c"}.codicon-mail-reply:before{content:"\\ea7d"}.codicon-reply:before{content:"\\ea7d"}.codicon-organization:before{content:"\\ea7e"}.codicon-organization-filled:before{content:"\\ea7e"}.codicon-organization-outline:before{content:"\\ea7e"}.codicon-new-file:before{content:"\\ea7f"}.codicon-file-add:before{content:"\\ea7f"}.codicon-new-folder:before{content:"\\ea80"}.codicon-file-directory-create:before{content:"\\ea80"}.codicon-trash:before{content:"\\ea81"}.codicon-trashcan:before{content:"\\ea81"}.codicon-history:before{content:"\\ea82"}.codicon-clock:before{content:"\\ea82"}.codicon-folder:before{content:"\\ea83"}.codicon-file-directory:before{content:"\\ea83"}.codicon-symbol-folder:before{content:"\\ea83"}.codicon-logo-github:before{content:"\\ea84"}.codicon-mark-github:before{content:"\\ea84"}.codicon-github:before{content:"\\ea84"}.codicon-terminal:before{content:"\\ea85"}.codicon-console:before{content:"\\ea85"}.codicon-repl:before{content:"\\ea85"}.codicon-zap:before{content:"\\ea86"}.codicon-symbol-event:before{content:"\\ea86"}.codicon-error:before{content:"\\ea87"}.codicon-stop:before{content:"\\ea87"}.codicon-variable:before{content:"\\ea88"}.codicon-symbol-variable:before{content:"\\ea88"}.codicon-array:before{content:"\\ea8a"}.codicon-symbol-array:before{content:"\\ea8a"}.codicon-symbol-module:before{content:"\\ea8b"}.codicon-symbol-package:before{content:"\\ea8b"}.codicon-symbol-namespace:before{content:"\\ea8b"}.codicon-symbol-object:before{content:"\\ea8b"}.codicon-symbol-method:before{content:"\\ea8c"}.codicon-symbol-function:before{content:"\\ea8c"}.codicon-symbol-constructor:before{content:"\\ea8c"}.codicon-symbol-boolean:before{content:"\\ea8f"}.codicon-symbol-null:before{content:"\\ea8f"}.codicon-symbol-numeric:before{content:"\\ea90"}.codicon-symbol-number:before{content:"\\ea90"}.codicon-symbol-structure:before{content:"\\ea91"}.codicon-symbol-struct:before{content:"\\ea91"}.codicon-symbol-parameter:before{content:"\\ea92"}.codicon-symbol-type-parameter:before{content:"\\ea92"}.codicon-symbol-key:before{content:"\\ea93"}.codicon-symbol-text:before{content:"\\ea93"}.codicon-symbol-reference:before{content:"\\ea94"}.codicon-go-to-file:before{content:"\\ea94"}.codicon-symbol-enum:before{content:"\\ea95"}.codicon-symbol-value:before{content:"\\ea95"}.codicon-symbol-ruler:before{content:"\\ea96"}.codicon-symbol-unit:before{content:"\\ea96"}.codicon-activate-breakpoints:before{content:"\\ea97"}.codicon-archive:before{content:"\\ea98"}.codicon-arrow-both:before{content:"\\ea99"}.codicon-arrow-down:before{content:"\\ea9a"}.codicon-arrow-left:before{content:"\\ea9b"}.codicon-arrow-right:before{content:"\\ea9c"}.codicon-arrow-small-down:before{content:"\\ea9d"}.codicon-arrow-small-left:before{content:"\\ea9e"}.codicon-arrow-small-right:before{content:"\\ea9f"}.codicon-arrow-small-up:before{content:"\\eaa0"}.codicon-arrow-up:before{content:"\\eaa1"}.codicon-bell:before{content:"\\eaa2"}.codicon-bold:before{content:"\\eaa3"}.codicon-book:before{content:"\\eaa4"}.codicon-bookmark:before{content:"\\eaa5"}.codicon-debug-breakpoint-conditional-unverified:before{content:"\\eaa6"}.codicon-debug-breakpoint-conditional:before{content:"\\eaa7"}.codicon-debug-breakpoint-conditional-disabled:before{content:"\\eaa7"}.codicon-debug-breakpoint-data-unverified:before{content:"\\eaa8"}.codicon-debug-breakpoint-data:before{content:"\\eaa9"}.codicon-debug-breakpoint-data-disabled:before{content:"\\eaa9"}.codicon-debug-breakpoint-log-unverified:before{content:"\\eaaa"}.codicon-debug-breakpoint-log:before{content:"\\eaab"}.codicon-debug-breakpoint-log-disabled:before{content:"\\eaab"}.codicon-briefcase:before{content:"\\eaac"}.codicon-broadcast:before{content:"\\eaad"}.codicon-browser:before{content:"\\eaae"}.codicon-bug:before{content:"\\eaaf"}.codicon-calendar:before{content:"\\eab0"}.codicon-case-sensitive:before{content:"\\eab1"}.codicon-check:before{content:"\\eab2"}.codicon-checklist:before{content:"\\eab3"}.codicon-chevron-down:before{content:"\\eab4"}.codicon-chevron-left:before{content:"\\eab5"}.codicon-chevron-right:before{content:"\\eab6"}.codicon-chevron-up:before{content:"\\eab7"}.codicon-chrome-close:before{content:"\\eab8"}.codicon-chrome-maximize:before{content:"\\eab9"}.codicon-chrome-minimize:before{content:"\\eaba"}.codicon-chrome-restore:before{content:"\\eabb"}.codicon-circle-outline:before{content:"\\eabc"}.codicon-debug-breakpoint-unverified:before{content:"\\eabc"}.codicon-circle-slash:before{content:"\\eabd"}.codicon-circuit-board:before{content:"\\eabe"}.codicon-clear-all:before{content:"\\eabf"}.codicon-clippy:before{content:"\\eac0"}.codicon-close-all:before{content:"\\eac1"}.codicon-cloud-download:before{content:"\\eac2"}.codicon-cloud-upload:before{content:"\\eac3"}.codicon-code:before{content:"\\eac4"}.codicon-collapse-all:before{content:"\\eac5"}.codicon-color-mode:before{content:"\\eac6"}.codicon-comment-discussion:before{content:"\\eac7"}.codicon-credit-card:before{content:"\\eac9"}.codicon-dash:before{content:"\\eacc"}.codicon-dashboard:before{content:"\\eacd"}.codicon-database:before{content:"\\eace"}.codicon-debug-continue:before{content:"\\eacf"}.codicon-debug-disconnect:before{content:"\\ead0"}.codicon-debug-pause:before{content:"\\ead1"}.codicon-debug-restart:before{content:"\\ead2"}.codicon-debug-start:before{content:"\\ead3"}.codicon-debug-step-into:before{content:"\\ead4"}.codicon-debug-step-out:before{content:"\\ead5"}.codicon-debug-step-over:before{content:"\\ead6"}.codicon-debug-stop:before{content:"\\ead7"}.codicon-debug:before{content:"\\ead8"}.codicon-device-camera-video:before{content:"\\ead9"}.codicon-device-camera:before{content:"\\eada"}.codicon-device-mobile:before{content:"\\eadb"}.codicon-diff-added:before{content:"\\eadc"}.codicon-diff-ignored:before{content:"\\eadd"}.codicon-diff-modified:before{content:"\\eade"}.codicon-diff-removed:before{content:"\\eadf"}.codicon-diff-renamed:before{content:"\\eae0"}.codicon-diff:before{content:"\\eae1"}.codicon-discard:before{content:"\\eae2"}.codicon-editor-layout:before{content:"\\eae3"}.codicon-empty-window:before{content:"\\eae4"}.codicon-exclude:before{content:"\\eae5"}.codicon-extensions:before{content:"\\eae6"}.codicon-eye-closed:before{content:"\\eae7"}.codicon-file-binary:before{content:"\\eae8"}.codicon-file-code:before{content:"\\eae9"}.codicon-file-media:before{content:"\\eaea"}.codicon-file-pdf:before{content:"\\eaeb"}.codicon-file-submodule:before{content:"\\eaec"}.codicon-file-symlink-directory:before{content:"\\eaed"}.codicon-file-symlink-file:before{content:"\\eaee"}.codicon-file-zip:before{content:"\\eaef"}.codicon-files:before{content:"\\eaf0"}.codicon-filter:before{content:"\\eaf1"}.codicon-flame:before{content:"\\eaf2"}.codicon-fold-down:before{content:"\\eaf3"}.codicon-fold-up:before{content:"\\eaf4"}.codicon-fold:before{content:"\\eaf5"}.codicon-folder-active:before{content:"\\eaf6"}.codicon-folder-opened:before{content:"\\eaf7"}.codicon-gear:before{content:"\\eaf8"}.codicon-gift:before{content:"\\eaf9"}.codicon-gist-secret:before{content:"\\eafa"}.codicon-gist:before{content:"\\eafb"}.codicon-git-commit:before{content:"\\eafc"}.codicon-git-compare:before{content:"\\eafd"}.codicon-compare-changes:before{content:"\\eafd"}.codicon-git-merge:before{content:"\\eafe"}.codicon-github-action:before{content:"\\eaff"}.codicon-github-alt:before{content:"\\eb00"}.codicon-globe:before{content:"\\eb01"}.codicon-grabber:before{content:"\\eb02"}.codicon-graph:before{content:"\\eb03"}.codicon-gripper:before{content:"\\eb04"}.codicon-heart:before{content:"\\eb05"}.codicon-home:before{content:"\\eb06"}.codicon-horizontal-rule:before{content:"\\eb07"}.codicon-hubot:before{content:"\\eb08"}.codicon-inbox:before{content:"\\eb09"}.codicon-issue-reopened:before{content:"\\eb0b"}.codicon-issues:before{content:"\\eb0c"}.codicon-italic:before{content:"\\eb0d"}.codicon-jersey:before{content:"\\eb0e"}.codicon-json:before{content:"\\eb0f"}.codicon-kebab-vertical:before{content:"\\eb10"}.codicon-key:before{content:"\\eb11"}.codicon-law:before{content:"\\eb12"}.codicon-lightbulb-autofix:before{content:"\\eb13"}.codicon-link-external:before{content:"\\eb14"}.codicon-link:before{content:"\\eb15"}.codicon-list-ordered:before{content:"\\eb16"}.codicon-list-unordered:before{content:"\\eb17"}.codicon-live-share:before{content:"\\eb18"}.codicon-loading:before{content:"\\eb19"}.codicon-location:before{content:"\\eb1a"}.codicon-mail-read:before{content:"\\eb1b"}.codicon-mail:before{content:"\\eb1c"}.codicon-markdown:before{content:"\\eb1d"}.codicon-megaphone:before{content:"\\eb1e"}.codicon-mention:before{content:"\\eb1f"}.codicon-milestone:before{content:"\\eb20"}.codicon-mortar-board:before{content:"\\eb21"}.codicon-move:before{content:"\\eb22"}.codicon-multiple-windows:before{content:"\\eb23"}.codicon-mute:before{content:"\\eb24"}.codicon-no-newline:before{content:"\\eb25"}.codicon-note:before{content:"\\eb26"}.codicon-octoface:before{content:"\\eb27"}.codicon-open-preview:before{content:"\\eb28"}.codicon-package:before{content:"\\eb29"}.codicon-paintcan:before{content:"\\eb2a"}.codicon-pin:before{content:"\\eb2b"}.codicon-play:before{content:"\\eb2c"}.codicon-run:before{content:"\\eb2c"}.codicon-plug:before{content:"\\eb2d"}.codicon-preserve-case:before{content:"\\eb2e"}.codicon-preview:before{content:"\\eb2f"}.codicon-project:before{content:"\\eb30"}.codicon-pulse:before{content:"\\eb31"}.codicon-question:before{content:"\\eb32"}.codicon-quote:before{content:"\\eb33"}.codicon-radio-tower:before{content:"\\eb34"}.codicon-reactions:before{content:"\\eb35"}.codicon-references:before{content:"\\eb36"}.codicon-refresh:before{content:"\\eb37"}.codicon-regex:before{content:"\\eb38"}.codicon-remote-explorer:before{content:"\\eb39"}.codicon-remote:before{content:"\\eb3a"}.codicon-remove:before{content:"\\eb3b"}.codicon-replace-all:before{content:"\\eb3c"}.codicon-replace:before{content:"\\eb3d"}.codicon-repo-clone:before{content:"\\eb3e"}.codicon-repo-force-push:before{content:"\\eb3f"}.codicon-repo-pull:before{content:"\\eb40"}.codicon-repo-push:before{content:"\\eb41"}.codicon-report:before{content:"\\eb42"}.codicon-request-changes:before{content:"\\eb43"}.codicon-rocket:before{content:"\\eb44"}.codicon-root-folder-opened:before{content:"\\eb45"}.codicon-root-folder:before{content:"\\eb46"}.codicon-rss:before{content:"\\eb47"}.codicon-ruby:before{content:"\\eb48"}.codicon-save-all:before{content:"\\eb49"}.codicon-save-as:before{content:"\\eb4a"}.codicon-save:before{content:"\\eb4b"}.codicon-screen-full:before{content:"\\eb4c"}.codicon-screen-normal:before{content:"\\eb4d"}.codicon-search-stop:before{content:"\\eb4e"}.codicon-server:before{content:"\\eb50"}.codicon-settings-gear:before{content:"\\eb51"}.codicon-settings:before{content:"\\eb52"}.codicon-shield:before{content:"\\eb53"}.codicon-smiley:before{content:"\\eb54"}.codicon-sort-precedence:before{content:"\\eb55"}.codicon-split-horizontal:before{content:"\\eb56"}.codicon-split-vertical:before{content:"\\eb57"}.codicon-squirrel:before{content:"\\eb58"}.codicon-star-full:before{content:"\\eb59"}.codicon-star-half:before{content:"\\eb5a"}.codicon-symbol-class:before{content:"\\eb5b"}.codicon-symbol-color:before{content:"\\eb5c"}.codicon-symbol-constant:before{content:"\\eb5d"}.codicon-symbol-enum-member:before{content:"\\eb5e"}.codicon-symbol-field:before{content:"\\eb5f"}.codicon-symbol-file:before{content:"\\eb60"}.codicon-symbol-interface:before{content:"\\eb61"}.codicon-symbol-keyword:before{content:"\\eb62"}.codicon-symbol-misc:before{content:"\\eb63"}.codicon-symbol-operator:before{content:"\\eb64"}.codicon-symbol-property:before{content:"\\eb65"}.codicon-wrench:before{content:"\\eb65"}.codicon-wrench-subaction:before{content:"\\eb65"}.codicon-symbol-snippet:before{content:"\\eb66"}.codicon-tasklist:before{content:"\\eb67"}.codicon-telescope:before{content:"\\eb68"}.codicon-text-size:before{content:"\\eb69"}.codicon-three-bars:before{content:"\\eb6a"}.codicon-thumbsdown:before{content:"\\eb6b"}.codicon-thumbsup:before{content:"\\eb6c"}.codicon-tools:before{content:"\\eb6d"}.codicon-triangle-down:before{content:"\\eb6e"}.codicon-triangle-left:before{content:"\\eb6f"}.codicon-triangle-right:before{content:"\\eb70"}.codicon-triangle-up:before{content:"\\eb71"}.codicon-twitter:before{content:"\\eb72"}.codicon-unfold:before{content:"\\eb73"}.codicon-unlock:before{content:"\\eb74"}.codicon-unmute:before{content:"\\eb75"}.codicon-unverified:before{content:"\\eb76"}.codicon-verified:before{content:"\\eb77"}.codicon-versions:before{content:"\\eb78"}.codicon-vm-active:before{content:"\\eb79"}.codicon-vm-outline:before{content:"\\eb7a"}.codicon-vm-running:before{content:"\\eb7b"}.codicon-watch:before{content:"\\eb7c"}.codicon-whitespace:before{content:"\\eb7d"}.codicon-whole-word:before{content:"\\eb7e"}.codicon-window:before{content:"\\eb7f"}.codicon-word-wrap:before{content:"\\eb80"}.codicon-zoom-in:before{content:"\\eb81"}.codicon-zoom-out:before{content:"\\eb82"}.codicon-list-filter:before{content:"\\eb83"}.codicon-list-flat:before{content:"\\eb84"}.codicon-list-selection:before{content:"\\eb85"}.codicon-selection:before{content:"\\eb85"}.codicon-list-tree:before{content:"\\eb86"}.codicon-debug-breakpoint-function-unverified:before{content:"\\eb87"}.codicon-debug-breakpoint-function:before{content:"\\eb88"}.codicon-debug-breakpoint-function-disabled:before{content:"\\eb88"}.codicon-debug-stackframe-active:before{content:"\\eb89"}.codicon-circle-small-filled:before{content:"\\eb8a"}.codicon-debug-stackframe-dot:before{content:"\\eb8a"}.codicon-debug-stackframe:before{content:"\\eb8b"}.codicon-debug-stackframe-focused:before{content:"\\eb8b"}.codicon-debug-breakpoint-unsupported:before{content:"\\eb8c"}.codicon-symbol-string:before{content:"\\eb8d"}.codicon-debug-reverse-continue:before{content:"\\eb8e"}.codicon-debug-step-back:before{content:"\\eb8f"}.codicon-debug-restart-frame:before{content:"\\eb90"}.codicon-debug-alt:before{content:"\\eb91"}.codicon-call-incoming:before{content:"\\eb92"}.codicon-call-outgoing:before{content:"\\eb93"}.codicon-menu:before{content:"\\eb94"}.codicon-expand-all:before{content:"\\eb95"}.codicon-feedback:before{content:"\\eb96"}.codicon-group-by-ref-type:before{content:"\\eb97"}.codicon-ungroup-by-ref-type:before{content:"\\eb98"}.codicon-account:before{content:"\\eb99"}.codicon-bell-dot:before{content:"\\eb9a"}.codicon-debug-console:before{content:"\\eb9b"}.codicon-library:before{content:"\\eb9c"}.codicon-output:before{content:"\\eb9d"}.codicon-run-all:before{content:"\\eb9e"}.codicon-sync-ignored:before{content:"\\eb9f"}.codicon-pinned:before{content:"\\eba0"}.codicon-github-inverted:before{content:"\\eba1"}.codicon-server-process:before{content:"\\eba2"}.codicon-server-environment:before{content:"\\eba3"}.codicon-pass:before{content:"\\eba4"}.codicon-issue-closed:before{content:"\\eba4"}.codicon-stop-circle:before{content:"\\eba5"}.codicon-play-circle:before{content:"\\eba6"}.codicon-record:before{content:"\\eba7"}.codicon-debug-alt-small:before{content:"\\eba8"}.codicon-vm-connect:before{content:"\\eba9"}.codicon-cloud:before{content:"\\ebaa"}.codicon-merge:before{content:"\\ebab"}.codicon-export:before{content:"\\ebac"}.codicon-graph-left:before{content:"\\ebad"}.codicon-magnet:before{content:"\\ebae"}.codicon-notebook:before{content:"\\ebaf"}.codicon-redo:before{content:"\\ebb0"}.codicon-check-all:before{content:"\\ebb1"}.codicon-pinned-dirty:before{content:"\\ebb2"}.codicon-pass-filled:before{content:"\\ebb3"}.codicon-circle-large-filled:before{content:"\\ebb4"}.codicon-circle-large-outline:before{content:"\\ebb5"}.codicon-combine:before{content:"\\ebb6"}.codicon-gather:before{content:"\\ebb6"}.codicon-table:before{content:"\\ebb7"}.codicon-variable-group:before{content:"\\ebb8"}.codicon-type-hierarchy:before{content:"\\ebb9"}.codicon-type-hierarchy-sub:before{content:"\\ebba"}.codicon-type-hierarchy-super:before{content:"\\ebbb"}.codicon-git-pull-request-create:before{content:"\\ebbc"}.codicon-run-above:before{content:"\\ebbd"}.codicon-run-below:before{content:"\\ebbe"}.codicon-notebook-template:before{content:"\\ebbf"}.codicon-debug-rerun:before{content:"\\ebc0"}.codicon-workspace-trusted:before{content:"\\ebc1"}.codicon-workspace-untrusted:before{content:"\\ebc2"}.codicon-workspace-unknown:before{content:"\\ebc3"}.codicon-terminal-cmd:before{content:"\\ebc4"}.codicon-terminal-debian:before{content:"\\ebc5"}.codicon-terminal-linux:before{content:"\\ebc6"}.codicon-terminal-powershell:before{content:"\\ebc7"}.codicon-terminal-tmux:before{content:"\\ebc8"}.codicon-terminal-ubuntu:before{content:"\\ebc9"}.codicon-terminal-bash:before{content:"\\ebca"}.codicon-arrow-swap:before{content:"\\ebcb"}.codicon-copy:before{content:"\\ebcc"}.codicon-person-add:before{content:"\\ebcd"}.codicon-filter-filled:before{content:"\\ebce"}.codicon-wand:before{content:"\\ebcf"}.codicon-debug-line-by-line:before{content:"\\ebd0"}.codicon-inspect:before{content:"\\ebd1"}.codicon-layers:before{content:"\\ebd2"}.codicon-layers-dot:before{content:"\\ebd3"}.codicon-layers-active:before{content:"\\ebd4"}.codicon-compass:before{content:"\\ebd5"}.codicon-compass-dot:before{content:"\\ebd6"}.codicon-compass-active:before{content:"\\ebd7"}.codicon-azure:before{content:"\\ebd8"}.codicon-issue-draft:before{content:"\\ebd9"}.codicon-git-pull-request-closed:before{content:"\\ebda"}.codicon-git-pull-request-draft:before{content:"\\ebdb"}.codicon-debug-all:before{content:"\\ebdc"}.codicon-debug-coverage:before{content:"\\ebdd"}.codicon-run-errors:before{content:"\\ebde"}.codicon-folder-library:before{content:"\\ebdf"}.codicon-debug-continue-small:before{content:"\\ebe0"}.codicon-beaker-stop:before{content:"\\ebe1"}.codicon-graph-line:before{content:"\\ebe2"}.codicon-graph-scatter:before{content:"\\ebe3"}.codicon-pie-chart:before{content:"\\ebe4"}.codicon-bracket:before{content:"\\eb0f"}.codicon-bracket-dot:before{content:"\\ebe5"}.codicon-bracket-error:before{content:"\\ebe6"}.codicon-lock-small:before{content:"\\ebe7"}.codicon-azure-devops:before{content:"\\ebe8"}.codicon-verified-filled:before{content:"\\ebe9"}.codicon-newline:before{content:"\\ebea"}.codicon-layout:before{content:"\\ebeb"}.codicon-layout-activitybar-left:before{content:"\\ebec"}.codicon-layout-activitybar-right:before{content:"\\ebed"}.codicon-layout-panel-left:before{content:"\\ebee"}.codicon-layout-panel-center:before{content:"\\ebef"}.codicon-layout-panel-justify:before{content:"\\ebf0"}.codicon-layout-panel-right:before{content:"\\ebf1"}.codicon-layout-panel:before{content:"\\ebf2"}.codicon-layout-sidebar-left:before{content:"\\ebf3"}.codicon-layout-sidebar-right:before{content:"\\ebf4"}.codicon-layout-statusbar:before{content:"\\ebf5"}.codicon-layout-menubar:before{content:"\\ebf6"}.codicon-layout-centered:before{content:"\\ebf7"}.codicon-target:before{content:"\\ebf8"}.codicon-indent:before{content:"\\ebf9"}.codicon-record-small:before{content:"\\ebfa"}.codicon-error-small:before{content:"\\ebfb"}.codicon-arrow-circle-down:before{content:"\\ebfc"}.codicon-arrow-circle-left:before{content:"\\ebfd"}.codicon-arrow-circle-right:before{content:"\\ebfe"}.codicon-arrow-circle-up:before{content:"\\ebff"}.codicon-layout-sidebar-right-off:before{content:"\\ec00"}.codicon-layout-panel-off:before{content:"\\ec01"}.codicon-layout-sidebar-left-off:before{content:"\\ec02"}.codicon-blank:before{content:"\\ec03"}.codicon-heart-filled:before{content:"\\ec04"}.codicon-map:before{content:"\\ec05"}.codicon-map-filled:before{content:"\\ec06"}.codicon-circle-small:before{content:"\\ec07"}.codicon-bell-slash:before{content:"\\ec08"}.codicon-bell-slash-dot:before{content:"\\ec09"}.codicon-comment-unresolved:before{content:"\\ec0a"}.codicon-git-pull-request-go-to-changes:before{content:"\\ec0b"}.codicon-git-pull-request-new-changes:before{content:"\\ec0c"}:host{color:inherit;display:contents;height:1em;line-height:inherit;width:1em}:host>i,:host>i::before{font-size:inherit !important}',KolIcon=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this._ariaLabel=void 0,this._icon=void 0,this._part=void 0,this.state={_ariaLabel:"…",_icon:"codicon codicon-home"}}render(){return h(Host,{exportparts:"icon"},h("i",{"aria-hidden":this.state._ariaLabel.length>0?void 0:"true","aria-label":this.state._ariaLabel.length>0?this.state._ariaLabel:void 0,class:this.state._icon,part:"icon",role:"img"}))}validateAriaLabel(e){watchString(this,"_ariaLabel",e,{required:!0})}validateIcon(e){watchString(this,"_icon",e,{required:!0})}validatePart(){devHint("ICON: The usage of the part attribute is deprecated and has no effect.")}componentWillLoad(){this.validateAriaLabel(this._ariaLabel),this.validateIcon(this._icon),this.validatePart()}static get watchers(){return{_ariaLabel:["validateAriaLabel"],_icon:["validateIcon"],_part:["validatePart"]}}static get style(){return{default:defaultStyleCss}}},[33,"kol-icon",{_ariaLabel:[1,"_aria-label"],_icon:[1],_part:[1],state:[32]}]);function defineCustomElement(){if("undefined"==typeof customElements)return;["kol-icon"].forEach((e=>{if("kol-icon"===e)customElements.get(e)||customElements.define(e,KolIcon)}))}export{KolIcon as K,defineCustomElement as d};
4
+ import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{w as watchString,d as devHint}from"./prop.validators.js";const defaultStyleCss='@font-face{font-family:"codicon";font-display:block;src:url("./codicon.ttf?0e5b0adf625a37fbcd638d31f0fe72aa") format("truetype")}.codicon[class*=\'codicon-\']{font:normal normal normal 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;-webkit-user-select:none;-ms-user-select:none}@keyframes codicon-spin{100%{transform:rotate(360deg)}}.codicon-sync.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-gear.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:0.5}.codicon-modifier-hidden{opacity:0}.codicon-loading{animation-duration:1s !important;animation-timing-function:cubic-bezier(0.53, 0.21, 0.29, 0.67) !important}.codicon-add:before{content:"\\ea60"}.codicon-plus:before{content:"\\ea60"}.codicon-gist-new:before{content:"\\ea60"}.codicon-repo-create:before{content:"\\ea60"}.codicon-lightbulb:before{content:"\\ea61"}.codicon-light-bulb:before{content:"\\ea61"}.codicon-repo:before{content:"\\ea62"}.codicon-repo-delete:before{content:"\\ea62"}.codicon-gist-fork:before{content:"\\ea63"}.codicon-repo-forked:before{content:"\\ea63"}.codicon-git-pull-request:before{content:"\\ea64"}.codicon-git-pull-request-abandoned:before{content:"\\ea64"}.codicon-record-keys:before{content:"\\ea65"}.codicon-keyboard:before{content:"\\ea65"}.codicon-tag:before{content:"\\ea66"}.codicon-tag-add:before{content:"\\ea66"}.codicon-tag-remove:before{content:"\\ea66"}.codicon-person:before{content:"\\ea67"}.codicon-person-follow:before{content:"\\ea67"}.codicon-person-outline:before{content:"\\ea67"}.codicon-person-filled:before{content:"\\ea67"}.codicon-git-branch:before{content:"\\ea68"}.codicon-git-branch-create:before{content:"\\ea68"}.codicon-git-branch-delete:before{content:"\\ea68"}.codicon-source-control:before{content:"\\ea68"}.codicon-mirror:before{content:"\\ea69"}.codicon-mirror-public:before{content:"\\ea69"}.codicon-star:before{content:"\\ea6a"}.codicon-star-add:before{content:"\\ea6a"}.codicon-star-delete:before{content:"\\ea6a"}.codicon-star-empty:before{content:"\\ea6a"}.codicon-comment:before{content:"\\ea6b"}.codicon-comment-add:before{content:"\\ea6b"}.codicon-alert:before{content:"\\ea6c"}.codicon-warning:before{content:"\\ea6c"}.codicon-search:before{content:"\\ea6d"}.codicon-search-save:before{content:"\\ea6d"}.codicon-log-out:before{content:"\\ea6e"}.codicon-sign-out:before{content:"\\ea6e"}.codicon-log-in:before{content:"\\ea6f"}.codicon-sign-in:before{content:"\\ea6f"}.codicon-eye:before{content:"\\ea70"}.codicon-eye-unwatch:before{content:"\\ea70"}.codicon-eye-watch:before{content:"\\ea70"}.codicon-circle-filled:before{content:"\\ea71"}.codicon-primitive-dot:before{content:"\\ea71"}.codicon-close-dirty:before{content:"\\ea71"}.codicon-debug-breakpoint:before{content:"\\ea71"}.codicon-debug-breakpoint-disabled:before{content:"\\ea71"}.codicon-debug-hint:before{content:"\\ea71"}.codicon-primitive-square:before{content:"\\ea72"}.codicon-edit:before{content:"\\ea73"}.codicon-pencil:before{content:"\\ea73"}.codicon-info:before{content:"\\ea74"}.codicon-issue-opened:before{content:"\\ea74"}.codicon-gist-private:before{content:"\\ea75"}.codicon-git-fork-private:before{content:"\\ea75"}.codicon-lock:before{content:"\\ea75"}.codicon-mirror-private:before{content:"\\ea75"}.codicon-close:before{content:"\\ea76"}.codicon-remove-close:before{content:"\\ea76"}.codicon-x:before{content:"\\ea76"}.codicon-repo-sync:before{content:"\\ea77"}.codicon-sync:before{content:"\\ea77"}.codicon-clone:before{content:"\\ea78"}.codicon-desktop-download:before{content:"\\ea78"}.codicon-beaker:before{content:"\\ea79"}.codicon-microscope:before{content:"\\ea79"}.codicon-vm:before{content:"\\ea7a"}.codicon-device-desktop:before{content:"\\ea7a"}.codicon-file:before{content:"\\ea7b"}.codicon-file-text:before{content:"\\ea7b"}.codicon-more:before{content:"\\ea7c"}.codicon-ellipsis:before{content:"\\ea7c"}.codicon-kebab-horizontal:before{content:"\\ea7c"}.codicon-mail-reply:before{content:"\\ea7d"}.codicon-reply:before{content:"\\ea7d"}.codicon-organization:before{content:"\\ea7e"}.codicon-organization-filled:before{content:"\\ea7e"}.codicon-organization-outline:before{content:"\\ea7e"}.codicon-new-file:before{content:"\\ea7f"}.codicon-file-add:before{content:"\\ea7f"}.codicon-new-folder:before{content:"\\ea80"}.codicon-file-directory-create:before{content:"\\ea80"}.codicon-trash:before{content:"\\ea81"}.codicon-trashcan:before{content:"\\ea81"}.codicon-history:before{content:"\\ea82"}.codicon-clock:before{content:"\\ea82"}.codicon-folder:before{content:"\\ea83"}.codicon-file-directory:before{content:"\\ea83"}.codicon-symbol-folder:before{content:"\\ea83"}.codicon-logo-github:before{content:"\\ea84"}.codicon-mark-github:before{content:"\\ea84"}.codicon-github:before{content:"\\ea84"}.codicon-terminal:before{content:"\\ea85"}.codicon-console:before{content:"\\ea85"}.codicon-repl:before{content:"\\ea85"}.codicon-zap:before{content:"\\ea86"}.codicon-symbol-event:before{content:"\\ea86"}.codicon-error:before{content:"\\ea87"}.codicon-stop:before{content:"\\ea87"}.codicon-variable:before{content:"\\ea88"}.codicon-symbol-variable:before{content:"\\ea88"}.codicon-array:before{content:"\\ea8a"}.codicon-symbol-array:before{content:"\\ea8a"}.codicon-symbol-module:before{content:"\\ea8b"}.codicon-symbol-package:before{content:"\\ea8b"}.codicon-symbol-namespace:before{content:"\\ea8b"}.codicon-symbol-object:before{content:"\\ea8b"}.codicon-symbol-method:before{content:"\\ea8c"}.codicon-symbol-function:before{content:"\\ea8c"}.codicon-symbol-constructor:before{content:"\\ea8c"}.codicon-symbol-boolean:before{content:"\\ea8f"}.codicon-symbol-null:before{content:"\\ea8f"}.codicon-symbol-numeric:before{content:"\\ea90"}.codicon-symbol-number:before{content:"\\ea90"}.codicon-symbol-structure:before{content:"\\ea91"}.codicon-symbol-struct:before{content:"\\ea91"}.codicon-symbol-parameter:before{content:"\\ea92"}.codicon-symbol-type-parameter:before{content:"\\ea92"}.codicon-symbol-key:before{content:"\\ea93"}.codicon-symbol-text:before{content:"\\ea93"}.codicon-symbol-reference:before{content:"\\ea94"}.codicon-go-to-file:before{content:"\\ea94"}.codicon-symbol-enum:before{content:"\\ea95"}.codicon-symbol-value:before{content:"\\ea95"}.codicon-symbol-ruler:before{content:"\\ea96"}.codicon-symbol-unit:before{content:"\\ea96"}.codicon-activate-breakpoints:before{content:"\\ea97"}.codicon-archive:before{content:"\\ea98"}.codicon-arrow-both:before{content:"\\ea99"}.codicon-arrow-down:before{content:"\\ea9a"}.codicon-arrow-left:before{content:"\\ea9b"}.codicon-arrow-right:before{content:"\\ea9c"}.codicon-arrow-small-down:before{content:"\\ea9d"}.codicon-arrow-small-left:before{content:"\\ea9e"}.codicon-arrow-small-right:before{content:"\\ea9f"}.codicon-arrow-small-up:before{content:"\\eaa0"}.codicon-arrow-up:before{content:"\\eaa1"}.codicon-bell:before{content:"\\eaa2"}.codicon-bold:before{content:"\\eaa3"}.codicon-book:before{content:"\\eaa4"}.codicon-bookmark:before{content:"\\eaa5"}.codicon-debug-breakpoint-conditional-unverified:before{content:"\\eaa6"}.codicon-debug-breakpoint-conditional:before{content:"\\eaa7"}.codicon-debug-breakpoint-conditional-disabled:before{content:"\\eaa7"}.codicon-debug-breakpoint-data-unverified:before{content:"\\eaa8"}.codicon-debug-breakpoint-data:before{content:"\\eaa9"}.codicon-debug-breakpoint-data-disabled:before{content:"\\eaa9"}.codicon-debug-breakpoint-log-unverified:before{content:"\\eaaa"}.codicon-debug-breakpoint-log:before{content:"\\eaab"}.codicon-debug-breakpoint-log-disabled:before{content:"\\eaab"}.codicon-briefcase:before{content:"\\eaac"}.codicon-broadcast:before{content:"\\eaad"}.codicon-browser:before{content:"\\eaae"}.codicon-bug:before{content:"\\eaaf"}.codicon-calendar:before{content:"\\eab0"}.codicon-case-sensitive:before{content:"\\eab1"}.codicon-check:before{content:"\\eab2"}.codicon-checklist:before{content:"\\eab3"}.codicon-chevron-down:before{content:"\\eab4"}.codicon-chevron-left:before{content:"\\eab5"}.codicon-chevron-right:before{content:"\\eab6"}.codicon-chevron-up:before{content:"\\eab7"}.codicon-chrome-close:before{content:"\\eab8"}.codicon-chrome-maximize:before{content:"\\eab9"}.codicon-chrome-minimize:before{content:"\\eaba"}.codicon-chrome-restore:before{content:"\\eabb"}.codicon-circle-outline:before{content:"\\eabc"}.codicon-debug-breakpoint-unverified:before{content:"\\eabc"}.codicon-circle-slash:before{content:"\\eabd"}.codicon-circuit-board:before{content:"\\eabe"}.codicon-clear-all:before{content:"\\eabf"}.codicon-clippy:before{content:"\\eac0"}.codicon-close-all:before{content:"\\eac1"}.codicon-cloud-download:before{content:"\\eac2"}.codicon-cloud-upload:before{content:"\\eac3"}.codicon-code:before{content:"\\eac4"}.codicon-collapse-all:before{content:"\\eac5"}.codicon-color-mode:before{content:"\\eac6"}.codicon-comment-discussion:before{content:"\\eac7"}.codicon-credit-card:before{content:"\\eac9"}.codicon-dash:before{content:"\\eacc"}.codicon-dashboard:before{content:"\\eacd"}.codicon-database:before{content:"\\eace"}.codicon-debug-continue:before{content:"\\eacf"}.codicon-debug-disconnect:before{content:"\\ead0"}.codicon-debug-pause:before{content:"\\ead1"}.codicon-debug-restart:before{content:"\\ead2"}.codicon-debug-start:before{content:"\\ead3"}.codicon-debug-step-into:before{content:"\\ead4"}.codicon-debug-step-out:before{content:"\\ead5"}.codicon-debug-step-over:before{content:"\\ead6"}.codicon-debug-stop:before{content:"\\ead7"}.codicon-debug:before{content:"\\ead8"}.codicon-device-camera-video:before{content:"\\ead9"}.codicon-device-camera:before{content:"\\eada"}.codicon-device-mobile:before{content:"\\eadb"}.codicon-diff-added:before{content:"\\eadc"}.codicon-diff-ignored:before{content:"\\eadd"}.codicon-diff-modified:before{content:"\\eade"}.codicon-diff-removed:before{content:"\\eadf"}.codicon-diff-renamed:before{content:"\\eae0"}.codicon-diff:before{content:"\\eae1"}.codicon-discard:before{content:"\\eae2"}.codicon-editor-layout:before{content:"\\eae3"}.codicon-empty-window:before{content:"\\eae4"}.codicon-exclude:before{content:"\\eae5"}.codicon-extensions:before{content:"\\eae6"}.codicon-eye-closed:before{content:"\\eae7"}.codicon-file-binary:before{content:"\\eae8"}.codicon-file-code:before{content:"\\eae9"}.codicon-file-media:before{content:"\\eaea"}.codicon-file-pdf:before{content:"\\eaeb"}.codicon-file-submodule:before{content:"\\eaec"}.codicon-file-symlink-directory:before{content:"\\eaed"}.codicon-file-symlink-file:before{content:"\\eaee"}.codicon-file-zip:before{content:"\\eaef"}.codicon-files:before{content:"\\eaf0"}.codicon-filter:before{content:"\\eaf1"}.codicon-flame:before{content:"\\eaf2"}.codicon-fold-down:before{content:"\\eaf3"}.codicon-fold-up:before{content:"\\eaf4"}.codicon-fold:before{content:"\\eaf5"}.codicon-folder-active:before{content:"\\eaf6"}.codicon-folder-opened:before{content:"\\eaf7"}.codicon-gear:before{content:"\\eaf8"}.codicon-gift:before{content:"\\eaf9"}.codicon-gist-secret:before{content:"\\eafa"}.codicon-gist:before{content:"\\eafb"}.codicon-git-commit:before{content:"\\eafc"}.codicon-git-compare:before{content:"\\eafd"}.codicon-compare-changes:before{content:"\\eafd"}.codicon-git-merge:before{content:"\\eafe"}.codicon-github-action:before{content:"\\eaff"}.codicon-github-alt:before{content:"\\eb00"}.codicon-globe:before{content:"\\eb01"}.codicon-grabber:before{content:"\\eb02"}.codicon-graph:before{content:"\\eb03"}.codicon-gripper:before{content:"\\eb04"}.codicon-heart:before{content:"\\eb05"}.codicon-home:before{content:"\\eb06"}.codicon-horizontal-rule:before{content:"\\eb07"}.codicon-hubot:before{content:"\\eb08"}.codicon-inbox:before{content:"\\eb09"}.codicon-issue-reopened:before{content:"\\eb0b"}.codicon-issues:before{content:"\\eb0c"}.codicon-italic:before{content:"\\eb0d"}.codicon-jersey:before{content:"\\eb0e"}.codicon-json:before{content:"\\eb0f"}.codicon-kebab-vertical:before{content:"\\eb10"}.codicon-key:before{content:"\\eb11"}.codicon-law:before{content:"\\eb12"}.codicon-lightbulb-autofix:before{content:"\\eb13"}.codicon-link-external:before{content:"\\eb14"}.codicon-link:before{content:"\\eb15"}.codicon-list-ordered:before{content:"\\eb16"}.codicon-list-unordered:before{content:"\\eb17"}.codicon-live-share:before{content:"\\eb18"}.codicon-loading:before{content:"\\eb19"}.codicon-location:before{content:"\\eb1a"}.codicon-mail-read:before{content:"\\eb1b"}.codicon-mail:before{content:"\\eb1c"}.codicon-markdown:before{content:"\\eb1d"}.codicon-megaphone:before{content:"\\eb1e"}.codicon-mention:before{content:"\\eb1f"}.codicon-milestone:before{content:"\\eb20"}.codicon-mortar-board:before{content:"\\eb21"}.codicon-move:before{content:"\\eb22"}.codicon-multiple-windows:before{content:"\\eb23"}.codicon-mute:before{content:"\\eb24"}.codicon-no-newline:before{content:"\\eb25"}.codicon-note:before{content:"\\eb26"}.codicon-octoface:before{content:"\\eb27"}.codicon-open-preview:before{content:"\\eb28"}.codicon-package:before{content:"\\eb29"}.codicon-paintcan:before{content:"\\eb2a"}.codicon-pin:before{content:"\\eb2b"}.codicon-play:before{content:"\\eb2c"}.codicon-run:before{content:"\\eb2c"}.codicon-plug:before{content:"\\eb2d"}.codicon-preserve-case:before{content:"\\eb2e"}.codicon-preview:before{content:"\\eb2f"}.codicon-project:before{content:"\\eb30"}.codicon-pulse:before{content:"\\eb31"}.codicon-question:before{content:"\\eb32"}.codicon-quote:before{content:"\\eb33"}.codicon-radio-tower:before{content:"\\eb34"}.codicon-reactions:before{content:"\\eb35"}.codicon-references:before{content:"\\eb36"}.codicon-refresh:before{content:"\\eb37"}.codicon-regex:before{content:"\\eb38"}.codicon-remote-explorer:before{content:"\\eb39"}.codicon-remote:before{content:"\\eb3a"}.codicon-remove:before{content:"\\eb3b"}.codicon-replace-all:before{content:"\\eb3c"}.codicon-replace:before{content:"\\eb3d"}.codicon-repo-clone:before{content:"\\eb3e"}.codicon-repo-force-push:before{content:"\\eb3f"}.codicon-repo-pull:before{content:"\\eb40"}.codicon-repo-push:before{content:"\\eb41"}.codicon-report:before{content:"\\eb42"}.codicon-request-changes:before{content:"\\eb43"}.codicon-rocket:before{content:"\\eb44"}.codicon-root-folder-opened:before{content:"\\eb45"}.codicon-root-folder:before{content:"\\eb46"}.codicon-rss:before{content:"\\eb47"}.codicon-ruby:before{content:"\\eb48"}.codicon-save-all:before{content:"\\eb49"}.codicon-save-as:before{content:"\\eb4a"}.codicon-save:before{content:"\\eb4b"}.codicon-screen-full:before{content:"\\eb4c"}.codicon-screen-normal:before{content:"\\eb4d"}.codicon-search-stop:before{content:"\\eb4e"}.codicon-server:before{content:"\\eb50"}.codicon-settings-gear:before{content:"\\eb51"}.codicon-settings:before{content:"\\eb52"}.codicon-shield:before{content:"\\eb53"}.codicon-smiley:before{content:"\\eb54"}.codicon-sort-precedence:before{content:"\\eb55"}.codicon-split-horizontal:before{content:"\\eb56"}.codicon-split-vertical:before{content:"\\eb57"}.codicon-squirrel:before{content:"\\eb58"}.codicon-star-full:before{content:"\\eb59"}.codicon-star-half:before{content:"\\eb5a"}.codicon-symbol-class:before{content:"\\eb5b"}.codicon-symbol-color:before{content:"\\eb5c"}.codicon-symbol-constant:before{content:"\\eb5d"}.codicon-symbol-enum-member:before{content:"\\eb5e"}.codicon-symbol-field:before{content:"\\eb5f"}.codicon-symbol-file:before{content:"\\eb60"}.codicon-symbol-interface:before{content:"\\eb61"}.codicon-symbol-keyword:before{content:"\\eb62"}.codicon-symbol-misc:before{content:"\\eb63"}.codicon-symbol-operator:before{content:"\\eb64"}.codicon-symbol-property:before{content:"\\eb65"}.codicon-wrench:before{content:"\\eb65"}.codicon-wrench-subaction:before{content:"\\eb65"}.codicon-symbol-snippet:before{content:"\\eb66"}.codicon-tasklist:before{content:"\\eb67"}.codicon-telescope:before{content:"\\eb68"}.codicon-text-size:before{content:"\\eb69"}.codicon-three-bars:before{content:"\\eb6a"}.codicon-thumbsdown:before{content:"\\eb6b"}.codicon-thumbsup:before{content:"\\eb6c"}.codicon-tools:before{content:"\\eb6d"}.codicon-triangle-down:before{content:"\\eb6e"}.codicon-triangle-left:before{content:"\\eb6f"}.codicon-triangle-right:before{content:"\\eb70"}.codicon-triangle-up:before{content:"\\eb71"}.codicon-twitter:before{content:"\\eb72"}.codicon-unfold:before{content:"\\eb73"}.codicon-unlock:before{content:"\\eb74"}.codicon-unmute:before{content:"\\eb75"}.codicon-unverified:before{content:"\\eb76"}.codicon-verified:before{content:"\\eb77"}.codicon-versions:before{content:"\\eb78"}.codicon-vm-active:before{content:"\\eb79"}.codicon-vm-outline:before{content:"\\eb7a"}.codicon-vm-running:before{content:"\\eb7b"}.codicon-watch:before{content:"\\eb7c"}.codicon-whitespace:before{content:"\\eb7d"}.codicon-whole-word:before{content:"\\eb7e"}.codicon-window:before{content:"\\eb7f"}.codicon-word-wrap:before{content:"\\eb80"}.codicon-zoom-in:before{content:"\\eb81"}.codicon-zoom-out:before{content:"\\eb82"}.codicon-list-filter:before{content:"\\eb83"}.codicon-list-flat:before{content:"\\eb84"}.codicon-list-selection:before{content:"\\eb85"}.codicon-selection:before{content:"\\eb85"}.codicon-list-tree:before{content:"\\eb86"}.codicon-debug-breakpoint-function-unverified:before{content:"\\eb87"}.codicon-debug-breakpoint-function:before{content:"\\eb88"}.codicon-debug-breakpoint-function-disabled:before{content:"\\eb88"}.codicon-debug-stackframe-active:before{content:"\\eb89"}.codicon-circle-small-filled:before{content:"\\eb8a"}.codicon-debug-stackframe-dot:before{content:"\\eb8a"}.codicon-debug-stackframe:before{content:"\\eb8b"}.codicon-debug-stackframe-focused:before{content:"\\eb8b"}.codicon-debug-breakpoint-unsupported:before{content:"\\eb8c"}.codicon-symbol-string:before{content:"\\eb8d"}.codicon-debug-reverse-continue:before{content:"\\eb8e"}.codicon-debug-step-back:before{content:"\\eb8f"}.codicon-debug-restart-frame:before{content:"\\eb90"}.codicon-debug-alt:before{content:"\\eb91"}.codicon-call-incoming:before{content:"\\eb92"}.codicon-call-outgoing:before{content:"\\eb93"}.codicon-menu:before{content:"\\eb94"}.codicon-expand-all:before{content:"\\eb95"}.codicon-feedback:before{content:"\\eb96"}.codicon-group-by-ref-type:before{content:"\\eb97"}.codicon-ungroup-by-ref-type:before{content:"\\eb98"}.codicon-account:before{content:"\\eb99"}.codicon-bell-dot:before{content:"\\eb9a"}.codicon-debug-console:before{content:"\\eb9b"}.codicon-library:before{content:"\\eb9c"}.codicon-output:before{content:"\\eb9d"}.codicon-run-all:before{content:"\\eb9e"}.codicon-sync-ignored:before{content:"\\eb9f"}.codicon-pinned:before{content:"\\eba0"}.codicon-github-inverted:before{content:"\\eba1"}.codicon-server-process:before{content:"\\eba2"}.codicon-server-environment:before{content:"\\eba3"}.codicon-pass:before{content:"\\eba4"}.codicon-issue-closed:before{content:"\\eba4"}.codicon-stop-circle:before{content:"\\eba5"}.codicon-play-circle:before{content:"\\eba6"}.codicon-record:before{content:"\\eba7"}.codicon-debug-alt-small:before{content:"\\eba8"}.codicon-vm-connect:before{content:"\\eba9"}.codicon-cloud:before{content:"\\ebaa"}.codicon-merge:before{content:"\\ebab"}.codicon-export:before{content:"\\ebac"}.codicon-graph-left:before{content:"\\ebad"}.codicon-magnet:before{content:"\\ebae"}.codicon-notebook:before{content:"\\ebaf"}.codicon-redo:before{content:"\\ebb0"}.codicon-check-all:before{content:"\\ebb1"}.codicon-pinned-dirty:before{content:"\\ebb2"}.codicon-pass-filled:before{content:"\\ebb3"}.codicon-circle-large-filled:before{content:"\\ebb4"}.codicon-circle-large-outline:before{content:"\\ebb5"}.codicon-combine:before{content:"\\ebb6"}.codicon-gather:before{content:"\\ebb6"}.codicon-table:before{content:"\\ebb7"}.codicon-variable-group:before{content:"\\ebb8"}.codicon-type-hierarchy:before{content:"\\ebb9"}.codicon-type-hierarchy-sub:before{content:"\\ebba"}.codicon-type-hierarchy-super:before{content:"\\ebbb"}.codicon-git-pull-request-create:before{content:"\\ebbc"}.codicon-run-above:before{content:"\\ebbd"}.codicon-run-below:before{content:"\\ebbe"}.codicon-notebook-template:before{content:"\\ebbf"}.codicon-debug-rerun:before{content:"\\ebc0"}.codicon-workspace-trusted:before{content:"\\ebc1"}.codicon-workspace-untrusted:before{content:"\\ebc2"}.codicon-workspace-unknown:before{content:"\\ebc3"}.codicon-terminal-cmd:before{content:"\\ebc4"}.codicon-terminal-debian:before{content:"\\ebc5"}.codicon-terminal-linux:before{content:"\\ebc6"}.codicon-terminal-powershell:before{content:"\\ebc7"}.codicon-terminal-tmux:before{content:"\\ebc8"}.codicon-terminal-ubuntu:before{content:"\\ebc9"}.codicon-terminal-bash:before{content:"\\ebca"}.codicon-arrow-swap:before{content:"\\ebcb"}.codicon-copy:before{content:"\\ebcc"}.codicon-person-add:before{content:"\\ebcd"}.codicon-filter-filled:before{content:"\\ebce"}.codicon-wand:before{content:"\\ebcf"}.codicon-debug-line-by-line:before{content:"\\ebd0"}.codicon-inspect:before{content:"\\ebd1"}.codicon-layers:before{content:"\\ebd2"}.codicon-layers-dot:before{content:"\\ebd3"}.codicon-layers-active:before{content:"\\ebd4"}.codicon-compass:before{content:"\\ebd5"}.codicon-compass-dot:before{content:"\\ebd6"}.codicon-compass-active:before{content:"\\ebd7"}.codicon-azure:before{content:"\\ebd8"}.codicon-issue-draft:before{content:"\\ebd9"}.codicon-git-pull-request-closed:before{content:"\\ebda"}.codicon-git-pull-request-draft:before{content:"\\ebdb"}.codicon-debug-all:before{content:"\\ebdc"}.codicon-debug-coverage:before{content:"\\ebdd"}.codicon-run-errors:before{content:"\\ebde"}.codicon-folder-library:before{content:"\\ebdf"}.codicon-debug-continue-small:before{content:"\\ebe0"}.codicon-beaker-stop:before{content:"\\ebe1"}.codicon-graph-line:before{content:"\\ebe2"}.codicon-graph-scatter:before{content:"\\ebe3"}.codicon-pie-chart:before{content:"\\ebe4"}.codicon-bracket:before{content:"\\eb0f"}.codicon-bracket-dot:before{content:"\\ebe5"}.codicon-bracket-error:before{content:"\\ebe6"}.codicon-lock-small:before{content:"\\ebe7"}.codicon-azure-devops:before{content:"\\ebe8"}.codicon-verified-filled:before{content:"\\ebe9"}.codicon-newline:before{content:"\\ebea"}.codicon-layout:before{content:"\\ebeb"}.codicon-layout-activitybar-left:before{content:"\\ebec"}.codicon-layout-activitybar-right:before{content:"\\ebed"}.codicon-layout-panel-left:before{content:"\\ebee"}.codicon-layout-panel-center:before{content:"\\ebef"}.codicon-layout-panel-justify:before{content:"\\ebf0"}.codicon-layout-panel-right:before{content:"\\ebf1"}.codicon-layout-panel:before{content:"\\ebf2"}.codicon-layout-sidebar-left:before{content:"\\ebf3"}.codicon-layout-sidebar-right:before{content:"\\ebf4"}.codicon-layout-statusbar:before{content:"\\ebf5"}.codicon-layout-menubar:before{content:"\\ebf6"}.codicon-layout-centered:before{content:"\\ebf7"}.codicon-target:before{content:"\\ebf8"}.codicon-indent:before{content:"\\ebf9"}.codicon-record-small:before{content:"\\ebfa"}.codicon-error-small:before{content:"\\ebfb"}.codicon-arrow-circle-down:before{content:"\\ebfc"}.codicon-arrow-circle-left:before{content:"\\ebfd"}.codicon-arrow-circle-right:before{content:"\\ebfe"}.codicon-arrow-circle-up:before{content:"\\ebff"}.codicon-layout-sidebar-right-off:before{content:"\\ec00"}.codicon-layout-panel-off:before{content:"\\ec01"}.codicon-layout-sidebar-left-off:before{content:"\\ec02"}.codicon-blank:before{content:"\\ec03"}.codicon-heart-filled:before{content:"\\ec04"}.codicon-map:before{content:"\\ec05"}.codicon-map-filled:before{content:"\\ec06"}.codicon-circle-small:before{content:"\\ec07"}.codicon-bell-slash:before{content:"\\ec08"}.codicon-bell-slash-dot:before{content:"\\ec09"}.codicon-comment-unresolved:before{content:"\\ec0a"}.codicon-git-pull-request-go-to-changes:before{content:"\\ec0b"}.codicon-git-pull-request-new-changes:before{content:"\\ec0c"}:host{color:inherit;display:contents;height:1em;line-height:inherit;width:1em}:host>i{height:1em;width:1em}:host>i,:host>i:before{font-size:inherit !important}',KolIcon=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this._ariaLabel=void 0,this._icon=void 0,this._part=void 0,this.state={_ariaLabel:"…",_icon:"codicon codicon-home"}}render(){return h(Host,{exportparts:"icon"},h("i",{"aria-hidden":this.state._ariaLabel.length>0?void 0:"true","aria-label":this.state._ariaLabel.length>0?this.state._ariaLabel:void 0,class:this.state._icon,part:"icon",role:"img"}))}validateAriaLabel(e){watchString(this,"_ariaLabel",e,{required:!0})}validateIcon(e){watchString(this,"_icon",e,{required:!0})}validatePart(){devHint("ICON: The usage of the part attribute is deprecated and has no effect.")}componentWillLoad(){this.validateAriaLabel(this._ariaLabel),this.validateIcon(this._icon),this.validatePart()}static get watchers(){return{_ariaLabel:["validateAriaLabel"],_icon:["validateIcon"],_part:["validatePart"]}}static get style(){return{default:defaultStyleCss}}},[33,"kol-icon",{_ariaLabel:[1,"_aria-label"],_icon:[1],_part:[1],state:[32]}]);function defineCustomElement(){if("undefined"==typeof customElements)return;["kol-icon"].forEach((e=>{if("kol-icon"===e)customElements.get(e)||customElements.define(e,KolIcon)}))}export{KolIcon as K,defineCustomElement as d};
@@ -1 +1 @@
1
- {"file":"component2.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,mkxBAAmkxB;;MCiC9kxB,OAAO;;;;;;;;iBAsCa;MAC/B,UAAU,EAAE,GAAG;MACf,KAAK,EAAE,sBAAsB;KAC7B;;EAxCM,MAAM;IACZ,QACC,EAAC,IAAI,IAAC,WAAW,EAAC,MAAM,IACvB,wBACc,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,GAAG,SAAS,GAAG,MAAM,gBAOtD,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,SAAS,EAChF,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,KAAK,GACN,CACC,EACN;GACF;EAyBM,iBAAiB,CAAC,KAAc;IACtC,WAAW,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE;MACtC,QAAQ,EAAE,IAAI;KACd,CAAC,CAAC;GACH;EAGM,YAAY,CAAC,KAAc;IACjC,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE;MACjC,QAAQ,EAAE,IAAI;KACd,CAAC,CAAC;GACH;EAMM,YAAY;IAClB,OAAO,CAAC,wEAAwE,CAAC,CAAC;GAClF;EAEM,iBAAiB;IACvB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACxC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9B,IAAI,CAAC,YAAY,EAAE,CAAC;GACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/icon/style.css?tag=kol-icon&mode=default&encapsulation=shadow","./src/components/icon/component.tsx"],"sourcesContent":["@import '../../assets/codicons/codicon.css';\n\n:host {\n\tcolor: inherit;\n\tdisplay: contents;\n\theight: 1em;\n\tline-height: inherit;\n\twidth: 1em;\n}\n\n/**\n * The <code>:important</code> is important, because we should always override the font icon style.\n */\n:host > i,\n:host > i::before {\n\tfont-size: inherit !important;\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Generic } from '@a11y-ui/core';\nimport { AriaLabel } from '../../types/aria-label';\nimport { watchString } from '../../utils/prop.validators';\nimport { devHint } from '../../utils/a11y.tipps';\n\ntype RequiredProps = AriaLabel & {\n\ticon: string;\n};\ntype OptionalProps = {\n\tpart: string;\n};\nexport type Props = Generic.Element.Members<RequiredProps, OptionalProps>;\n\ntype RequiredStates = RequiredProps;\ntype OptionalStates = OptionalProps;\ntype States = Generic.Element.Members<RequiredStates, OptionalStates>;\n\n/**\n * TODO: Wy we provide not a icon-wc component instead?!\n */\n\n/**\n * @part icon - Ermöglicht das Styling des inneren Icons.\n */\n@Component({\n\ttag: 'kol-icon',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolIcon implements Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates> {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host exportparts=\"icon\">\n\t\t\t\t<i\n\t\t\t\t\taria-hidden={this.state._ariaLabel.length > 0 ? undefined : 'true'}\n\t\t\t\t\t/**\n\t\t\t\t\t * Die Auszeichnung `aria-hidden` ist eigentlich nicht erforderlich, da die aktuellen\n\t\t\t\t\t * Screenreader, wie NVDA und JAWS, es auch ohne `aria-hidden` nicht vorlesen.\n\t\t\t\t\t *\n\t\t\t\t\t * Referenz: https://www.w3.org/TR/wai-aria/states_and_properties#aria-hidden\n\t\t\t\t\t */\n\t\t\t\t\taria-label={this.state._ariaLabel.length > 0 ? this.state._ariaLabel : undefined}\n\t\t\t\t\tclass={this.state._icon}\n\t\t\t\t\tpart=\"icon\"\n\t\t\t\t\trole=\"img\"\n\t\t\t\t></i>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Gibt das Aria-Label am Icon an.\n\t */\n\t@Prop() public _ariaLabel!: string;\n\n\t/**\n\t * Gibt einen Identifier eines Icons aus den Icon's an.\n\t */\n\t@Prop() public _icon!: string;\n\n\t/**\n\t * Gibt den Identifier für den CSS-Part an, um das Icon von Außen ändern zu können. (https://meowni.ca/posts/part-theme-explainer/)\n\t *\n\t * @deprecated Das Styling sollte stets über CSS erfolgen.\n\t */\n\t@Prop() public _part?: string;\n\n\t@State() public state: States = {\n\t\t_ariaLabel: '…', // ⚠ required\n\t\t_icon: 'codicon codicon-home',\n\t};\n\n\t@Watch('_ariaLabel')\n\tpublic validateAriaLabel(value?: string): void {\n\t\twatchString(this, '_ariaLabel', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_icon')\n\tpublic validateIcon(value?: string): void {\n\t\twatchString(this, '_icon', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t/**\n\t * @deprecated\n\t */\n\t@Watch('_part')\n\tpublic validatePart(): void {\n\t\tdevHint(`ICON: The usage of the part attribute is deprecated and has no effect.`);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAriaLabel(this._ariaLabel);\n\t\tthis.validateIcon(this._icon);\n\t\tthis.validatePart();\n\t}\n}\n"],"version":3}
1
+ {"file":"component2.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,+lxBAA+lxB;;MCiC1mxB,OAAO;;;;;;;;iBAsCa;MAC/B,UAAU,EAAE,GAAG;MACf,KAAK,EAAE,sBAAsB;KAC7B;;EAxCM,MAAM;IACZ,QACC,EAAC,IAAI,IAAC,WAAW,EAAC,MAAM,IACvB,wBACc,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,GAAG,SAAS,GAAG,MAAM,gBAOtD,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,SAAS,EAChF,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,KAAK,GACN,CACC,EACN;GACF;EAyBM,iBAAiB,CAAC,KAAc;IACtC,WAAW,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE;MACtC,QAAQ,EAAE,IAAI;KACd,CAAC,CAAC;GACH;EAGM,YAAY,CAAC,KAAc;IACjC,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE;MACjC,QAAQ,EAAE,IAAI;KACd,CAAC,CAAC;GACH;EAMM,YAAY;IAClB,OAAO,CAAC,wEAAwE,CAAC,CAAC;GAClF;EAEM,iBAAiB;IACvB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACxC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9B,IAAI,CAAC,YAAY,EAAE,CAAC;GACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/icon/style.css?tag=kol-icon&mode=default&encapsulation=shadow","./src/components/icon/component.tsx"],"sourcesContent":["@import url(../../assets/codicons/codicon.css);\n:host {\n\tcolor: inherit;\n\tdisplay: contents;\n\theight: 1em;\n\tline-height: inherit;\n\twidth: 1em;\n}\n:host > i {\n\theight: 1em;\n\twidth: 1em;\n}\n/*\n * The <code>:important</code> is important, because we should always override the font icon style.\n */\n:host > i,\n:host > i:before {\n\tfont-size: inherit !important;\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Generic } from '@a11y-ui/core';\nimport { AriaLabel } from '../../types/aria-label';\nimport { watchString } from '../../utils/prop.validators';\nimport { devHint } from '../../utils/a11y.tipps';\n\ntype RequiredProps = AriaLabel & {\n\ticon: string;\n};\ntype OptionalProps = {\n\tpart: string;\n};\nexport type Props = Generic.Element.Members<RequiredProps, OptionalProps>;\n\ntype RequiredStates = RequiredProps;\ntype OptionalStates = OptionalProps;\ntype States = Generic.Element.Members<RequiredStates, OptionalStates>;\n\n/**\n * TODO: Wy we provide not a icon-wc component instead?!\n */\n\n/**\n * @part icon - Ermöglicht das Styling des inneren Icons.\n */\n@Component({\n\ttag: 'kol-icon',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolIcon implements Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates> {\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host exportparts=\"icon\">\n\t\t\t\t<i\n\t\t\t\t\taria-hidden={this.state._ariaLabel.length > 0 ? undefined : 'true'}\n\t\t\t\t\t/**\n\t\t\t\t\t * Die Auszeichnung `aria-hidden` ist eigentlich nicht erforderlich, da die aktuellen\n\t\t\t\t\t * Screenreader, wie NVDA und JAWS, es auch ohne `aria-hidden` nicht vorlesen.\n\t\t\t\t\t *\n\t\t\t\t\t * Referenz: https://www.w3.org/TR/wai-aria/states_and_properties#aria-hidden\n\t\t\t\t\t */\n\t\t\t\t\taria-label={this.state._ariaLabel.length > 0 ? this.state._ariaLabel : undefined}\n\t\t\t\t\tclass={this.state._icon}\n\t\t\t\t\tpart=\"icon\"\n\t\t\t\t\trole=\"img\"\n\t\t\t\t></i>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Gibt das Aria-Label am Icon an.\n\t */\n\t@Prop() public _ariaLabel!: string;\n\n\t/**\n\t * Setzt die Iconklasse (z.B.: `_icon=\"codicon codicon-home`).\n\t */\n\t@Prop() public _icon!: string;\n\n\t/**\n\t * Gibt den Identifier für den CSS-Part an, um das Icon von Außen ändern zu können. (https://meowni.ca/posts/part-theme-explainer/)\n\t *\n\t * @deprecated Das Styling sollte stets über CSS erfolgen.\n\t */\n\t@Prop() public _part?: string;\n\n\t@State() public state: States = {\n\t\t_ariaLabel: '…', // ⚠ required\n\t\t_icon: 'codicon codicon-home',\n\t};\n\n\t@Watch('_ariaLabel')\n\tpublic validateAriaLabel(value?: string): void {\n\t\twatchString(this, '_ariaLabel', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_icon')\n\tpublic validateIcon(value?: string): void {\n\t\twatchString(this, '_icon', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t/**\n\t * @deprecated\n\t */\n\t@Watch('_part')\n\tpublic validatePart(): void {\n\t\tdevHint(`ICON: The usage of the part attribute is deprecated and has no effect.`);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAriaLabel(this._ariaLabel);\n\t\tthis.validateIcon(this._icon);\n\t\tthis.validatePart();\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,Host}from"@stencil/core/internal/client";import{w as watchString,j as a11yHint,B as isEmptyOrPrefixOf,z as objectObjectHandler,A as parseJson,b as watchValidator,C as isString,D as isStyle,E as isObject,h as watchBoolean}from"./prop.validators.js";import{d as defineCustomElement$1}from"./component2.js";const READABLE_CHARS=/[a-zA-Z0-9äöüÄÖÜß]/g,ONLY_NUMBERS=/^\d+$/;function countReadableChars(t){var e;return"string"==typeof t&&(null===(e=t.match(READABLE_CHARS))||void 0===e?void 0:e.length)||0}function hasEnoughReadableChars(t,e=1){return countReadableChars(t)>=e}function containsOnlyNumbers(t){return ONLY_NUMBERS.test(t)}const syncAriaLabelBeforePatch=(t,e,a,i)=>{const n=e.has("_ariaLabel")?e.get("_ariaLabel"):a.state._ariaLabel;if("string"==typeof n){const t=e.has("_label")?e.get("_label"):a.state._label;!1===isEmptyOrPrefixOf(t,n)&&("_ariaLabel"===i?e.set("_label",n):e.set("_ariaLabel",void 0),a11yHint("Das abweichende Aria-Label ist nicht barrierefrei. Ein abweichendes Aria-Label muss aus Gründern der Barrierefreiheit für die Sprachsteuerung mit dem Label-Text beginnen."))}},validateAriaLabel=(t,e,a={})=>{var i;watchString(t,"_ariaLabel",e,{hooks:{afterPatch:(t,e,i,n)=>{var o,s;"function"==typeof(null===(o=a.hooks)||void 0===o?void 0:o.afterPatch)&&(null===(s=a.hooks)||void 0===s||s.afterPatch(t,e,i,n)),"string"==typeof t&&t.length>0&&!1===hasEnoughReadableChars(t,3)&&!1===containsOnlyNumbers(t)&&a11yHint(`Ein abweichendes Aria-Label (${t}) ist nicht barrierefrei. Ein abweichendes Aria-Label sollte aus mindestens drei lesbaren Zeichen bestehen.`)},beforePatch:null===(i=a.hooks)||void 0===i?void 0:i.beforePatch}})},validateAriaLabelWithLabel=(t,e)=>{validateAriaLabel(t,e,{hooks:{beforePatch:syncAriaLabelBeforePatch}})},validateLabel=(t,e,a={})=>{var i;watchString(t,"_label",e,{hooks:{afterPatch:(t,e,i,n)=>{var o,s;"function"==typeof(null===(o=a.hooks)||void 0===o?void 0:o.afterPatch)&&(null===(s=a.hooks)||void 0===s||s.afterPatch(t,e,i,n)),"string"==typeof t&&!1===hasEnoughReadableChars(t,3)&&!1===containsOnlyNumbers(t)&&a11yHint(`Ein Label (${t}) ist nicht barrierefrei. Ein Label sollte aus mindestens drei lesbaren Zeichen bestehen.`)},beforePatch:null===(i=a.hooks)||void 0===i?void 0:i.beforePatch},required:!0})},validateLabelWithAriaLabel=(t,e)=>{validateLabel(t,e,{hooks:{beforePatch:syncAriaLabelBeforePatch}})},mapCustomIcon=(t,e,a)=>{isObject(a)?t[e]=a:isString(a,1)&&(t[e]={icon:a})},mapIconProp2State=(t,e)=>{let a={};if(isString(t,1))if("right"===e)a={right:{icon:t}};else a={left:{icon:t}};else"object"==typeof t&&null!==t&&(mapCustomIcon(a,"top",t.top),mapCustomIcon(a,"right",t.right),mapCustomIcon(a,"bottom",t.bottom),mapCustomIcon(a,"left",t.left));return a},beforePatchIcon=t=>{var e,a,i,n,o,s,l;if(null===(e=t.nextState)||void 0===e?void 0:e.has("_icon")){const e=null===(a=t.nextState)||void 0===a?void 0:a.get("_icon"),o=(null===(i=t.nextState)||void 0===i?void 0:i.get("_iconAlign"))||t.state._iconAlign;null===(n=t.nextState)||void 0===n||n.set("_icon",mapIconProp2State(e,o))}else if(null===(o=t.nextState)||void 0===o?void 0:o.has("_iconAlign")){const e=t.state._iconAlign;null===(s=t.nextState)||void 0===s||s.set("_icon",{[e]:void 0,[null===(l=t.nextState)||void 0===l?void 0:l.get("_iconAlign")]:t.state._icon[e]})}},isIcon=t=>"object"==typeof t&&null!==t&&(void 0===t.style||isStyle(t.style))&&isString(t.icon,1),validateIcon=(t,e)=>{objectObjectHandler(e,(()=>{try{e=parseJson(e)}catch(t){}watchValidator(t,"_icon",(t=>null===t||isString(t,1)||"object"==typeof t&&null!==t&&(isString(t.left,1)||isIcon(t.left)||isString(t.right,1)||isIcon(t.right)||isString(t.top,1)||isIcon(t.top)||isString(t.bottom,1)||isIcon(t.bottom))),new Set(["KoliBriIcon"]),e,{hooks:{beforePatch:(e,a)=>{null===e&&a.set("_icon",{}),beforePatchIcon(t)}},required:!0})}))},watchIconAlign=(t,e)=>{watchValidator(t,"_iconAlign",(t=>"left"===t||"right"===t),new Set(["Alignment {left, right, top, bottom}"]),e,{hooks:{beforePatch:()=>{beforePatchIcon(t)}}})},KolSpanWc=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this._icon=void 0,this._iconOnly=!1,this._label=void 0,this.state={_icon:{},_iconOnly:!1,_label:"…"}}render(){const t=this.state._label.length>0;return h(Host,{class:{"icon-only":this.state._iconOnly}},this.state._icon.top&&h("kol-icon",{class:"icon top",style:this.state._icon.top.style,_ariaLabel:"",_icon:this.state._icon.top.icon}),h("span",null,this.state._icon.left&&h("kol-icon",{class:"icon left",style:this.state._icon.left.style,_ariaLabel:"",_icon:this.state._icon.left.icon}),!0!==this.state._iconOnly&&this.state._label.length>0?h("span",null,this.state._label):"",h("span",{"aria-hidden":t?"true":void 0,hidden:t},h("slot",{name:"expert"})),this.state._icon.right&&h("kol-icon",{class:"icon right",style:this.state._icon.right.style,_ariaLabel:"",_icon:this.state._icon.right.icon})),this.state._icon.bottom&&h("kol-icon",{class:"icon bottom",style:this.state._icon.bottom.style,_ariaLabel:"",_icon:this.state._icon.bottom.icon}))}validateIcon(t){validateIcon(this,t)}validateIconOnly(t){watchBoolean(this,"_iconOnly",t)}validateLabel(t){validateLabelWithAriaLabel(this,t)}componentWillLoad(){this.validateIcon(this._icon),this.validateIconOnly(this._iconOnly),this.validateLabel(this._label)}static get watchers(){return{_icon:["validateIcon"],_iconOnly:["validateIconOnly"],_label:["validateLabel"]}}},[4,"kol-span-wc",{_icon:[1],_iconOnly:[516,"_icon-only"],_label:[1],state:[32]}]);function defineCustomElement(){if("undefined"==typeof customElements)return;["kol-span-wc","kol-icon"].forEach((t=>{switch(t){case"kol-span-wc":customElements.get(t)||customElements.define(t,KolSpanWc);break;case"kol-icon":customElements.get(t)||defineCustomElement$1()}}))}export{KolSpanWc as K,validateIcon as a,validateLabelWithAriaLabel as b,validateLabel as c,defineCustomElement as d,containsOnlyNumbers as e,hasEnoughReadableChars as h,isIcon as i,validateAriaLabelWithLabel as v,watchIconAlign as w};
4
+ import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{o as objectObjectHandler,e as parseJson,a as watchValidator,i as isString,f as isStyle,h as isObject,w as watchString,j as a11yHint,k as isEmptyOrPrefixOf,l as watchBoolean}from"./prop.validators.js";import{d as defineCustomElement$1}from"./component2.js";const mapCustomIcon=(t,e,a)=>{isObject(a)?t[e]=a:isString(a,1)&&(t[e]={icon:a})},mapIconProp2State=(t,e)=>{let a={};if(isString(t,1))if("right"===e)a={right:{icon:t}};else a={left:{icon:t}};else"object"==typeof t&&null!==t&&(mapCustomIcon(a,"top",t.top),mapCustomIcon(a,"right",t.right),mapCustomIcon(a,"bottom",t.bottom),mapCustomIcon(a,"left",t.left));return a},beforePatchIcon=t=>{var e,a,i,o,n,s,l;if(null===(e=t.nextState)||void 0===e?void 0:e.has("_icon")){const e=null===(a=t.nextState)||void 0===a?void 0:a.get("_icon"),n=(null===(i=t.nextState)||void 0===i?void 0:i.get("_iconAlign"))||t.state._iconAlign;null===(o=t.nextState)||void 0===o||o.set("_icon",mapIconProp2State(e,n))}else if(null===(n=t.nextState)||void 0===n?void 0:n.has("_iconAlign")){const e=t.state._iconAlign;null===(s=t.nextState)||void 0===s||s.set("_icon",{[e]:void 0,[null===(l=t.nextState)||void 0===l?void 0:l.get("_iconAlign")]:t.state._icon[e]})}},isIcon=t=>"object"==typeof t&&null!==t&&(void 0===t.style||isStyle(t.style))&&isString(t.icon,1),validateIcon=(t,e)=>{objectObjectHandler(e,(()=>{try{e=parseJson(e)}catch(t){}watchValidator(t,"_icon",(t=>null===t||isString(t,1)||"object"==typeof t&&null!==t&&(isString(t.left,1)||isIcon(t.left)||isString(t.right,1)||isIcon(t.right)||isString(t.top,1)||isIcon(t.top)||isString(t.bottom,1)||isIcon(t.bottom))),new Set(["KoliBriIcon"]),e,{hooks:{beforePatch:(e,a)=>{null===e&&a.set("_icon",{}),beforePatchIcon(t)}},required:!0})}))},watchIconAlign=(t,e)=>{watchValidator(t,"_iconAlign",(t=>"left"===t||"right"===t),new Set(["Alignment {left, right, top, bottom}"]),e,{hooks:{beforePatch:()=>{beforePatchIcon(t)}}})},READABLE_CHARS=/[a-zA-Z0-9äöüÄÖÜß]/g,ONLY_NUMBERS=/^\d+$/;function countReadableChars(t){var e;return"string"==typeof t&&(null===(e=t.match(READABLE_CHARS))||void 0===e?void 0:e.length)||0}function hasEnoughReadableChars(t,e=1){return countReadableChars(t)>=e}function containsOnlyNumbers(t){return ONLY_NUMBERS.test(t)}const syncAriaLabelBeforePatch=(t,e,a,i)=>{const o=e.has("_ariaLabel")?e.get("_ariaLabel"):a.state._ariaLabel;if("string"==typeof o){const t=e.has("_label")?e.get("_label"):a.state._label;!1===isEmptyOrPrefixOf(t,o)&&("_ariaLabel"===i?e.set("_label",o):e.set("_ariaLabel",void 0),a11yHint("Das abweichende Aria-Label ist nicht barrierefrei. Ein abweichendes Aria-Label muss aus Gründern der Barrierefreiheit für die Sprachsteuerung mit dem Label-Text beginnen."))}},validateAriaLabel=(t,e,a={})=>{var i;watchString(t,"_ariaLabel",e,{hooks:{afterPatch:(t,e,i,o)=>{var n,s;"function"==typeof(null===(n=a.hooks)||void 0===n?void 0:n.afterPatch)&&(null===(s=a.hooks)||void 0===s||s.afterPatch(t,e,i,o)),"string"==typeof t&&t.length>0&&!1===hasEnoughReadableChars(t,3)&&!1===containsOnlyNumbers(t)&&a11yHint(`Ein abweichendes Aria-Label (${t}) ist nicht barrierefrei. Ein abweichendes Aria-Label sollte aus mindestens drei lesbaren Zeichen bestehen.`)},beforePatch:null===(i=a.hooks)||void 0===i?void 0:i.beforePatch}})},validateAriaLabelWithLabel=(t,e)=>{validateAriaLabel(t,e,{hooks:{beforePatch:syncAriaLabelBeforePatch}})},validateLabel=(t,e,a={})=>{var i;watchString(t,"_label",e,{hooks:{afterPatch:(t,e,i,o)=>{var n,s;"function"==typeof(null===(n=a.hooks)||void 0===n?void 0:n.afterPatch)&&(null===(s=a.hooks)||void 0===s||s.afterPatch(t,e,i,o)),"string"==typeof t&&!1===hasEnoughReadableChars(t,3)&&!1===containsOnlyNumbers(t)&&a11yHint(`Ein Label (${t}) ist nicht barrierefrei. Ein Label sollte aus mindestens drei lesbaren Zeichen bestehen.`)},beforePatch:null===(i=a.hooks)||void 0===i?void 0:i.beforePatch},required:!0})},validateLabelWithAriaLabel=(t,e)=>{validateLabel(t,e,{hooks:{beforePatch:syncAriaLabelBeforePatch}})},KolSpanWc=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this._icon=void 0,this._iconOnly=!1,this._label=void 0,this.state={_icon:{},_iconOnly:!1,_label:"…"}}render(){const t=this.state._label.length>0;return h(Host,{class:{"icon-only":this.state._iconOnly}},this.state._icon.top&&h("kol-icon",{class:"icon top",style:this.state._icon.top.style,_ariaLabel:"",_icon:this.state._icon.top.icon}),h("span",null,this.state._icon.left&&h("kol-icon",{class:"icon left",style:this.state._icon.left.style,_ariaLabel:"",_icon:this.state._icon.left.icon}),!0!==this.state._iconOnly&&this.state._label.length>0?h("span",null,this.state._label):"",h("span",{"aria-hidden":t?"true":void 0,hidden:t},h("slot",{name:"expert"})),this.state._icon.right&&h("kol-icon",{class:"icon right",style:this.state._icon.right.style,_ariaLabel:"",_icon:this.state._icon.right.icon})),this.state._icon.bottom&&h("kol-icon",{class:"icon bottom",style:this.state._icon.bottom.style,_ariaLabel:"",_icon:this.state._icon.bottom.icon}))}validateIcon(t){validateIcon(this,t)}validateIconOnly(t){watchBoolean(this,"_iconOnly",t)}validateLabel(t){validateLabelWithAriaLabel(this,t)}componentWillLoad(){this.validateIcon(this._icon),this.validateIconOnly(this._iconOnly),this.validateLabel(this._label)}static get watchers(){return{_icon:["validateIcon"],_iconOnly:["validateIconOnly"],_label:["validateLabel"]}}},[4,"kol-span-wc",{_icon:[1],_iconOnly:[516,"_icon-only"],_label:[1],state:[32]}]);function defineCustomElement(){if("undefined"==typeof customElements)return;["kol-span-wc","kol-icon"].forEach((t=>{switch(t){case"kol-span-wc":customElements.get(t)||customElements.define(t,KolSpanWc);break;case"kol-icon":customElements.get(t)||defineCustomElement$1()}}))}export{KolSpanWc as K,validateIcon as a,validateLabelWithAriaLabel as b,validateLabel as c,defineCustomElement as d,containsOnlyNumbers as e,hasEnoughReadableChars as h,isIcon as i,validateAriaLabelWithLabel as v,watchIconAlign as w};
@@ -1 +1 @@
1
- {"file":"component3.js","mappings":";;;;;;;AAUA,MAAM,cAAc,GAAG,qBAAqB,CAAC;AAK7C,MAAM,YAAY,GAAG,OAAO,CAAC;AAO7B,SAAS,kBAAkB,CAAC,GAAW;;EACtC,OAAO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ils/validators/icon.ts","./src/components/span/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\nimport { a11yHint } from '../../utils/a11y.tipps';\nimport { watchString, WatchStringOptions } from '../../utils/prop.validators';\nimport { isEmptyOrPrefixOf } from '../../utils/validator';\n\n/* types */\n\n/**\n * This is a regular expression that matches all readable characters.\n */\nconst READABLE_CHARS = /[a-zA-Z0-9äöüÄÖÜß]/g;\n\n/**\n * This is a regular expression that matches only numbers.\n */\nconst ONLY_NUMBERS = /^\\d+$/;\n\n/**\n * This function counts the number of readable characters in a string.\n * @param str The string to count.\n * @returns The number of readable characters in the string.\n */\nfunction countReadableChars(str: string): number {\n\treturn typeof str === 'string' ? str.match(READABLE_CHARS)?.length || 0 : 0;\n}\n\n/**\n * This function checks if a string has at least a certain number of readable characters.\n * @param str The string to check.\n * @param min The minimum number of readable characters.\n * @returns True if the string has at least the minimum number of readable characters, false otherwise.\n */\nexport function hasEnoughReadableChars(str: string, min = 1): boolean {\n\treturn countReadableChars(str) >= min;\n}\n\n/**\n * This function checks if a string contains only numbers.\n * @param str The string to check.\n * @returns True if the string contains only numbers, false otherwise.\n */\nexport function containsOnlyNumbers(str: string): boolean {\n\treturn ONLY_NUMBERS.test(str);\n}\n\n/** de\n * Das Label dient der Beschriftung unterschiedlicher Elemente.\n * - Button -> label text\n * - Heading -> headline text\n * - Input, Select und Textarea -> label text\n * - Summary -> summary text\n * - Table -> caption text\n * - etc.\n *\n * Das Label ist häufig ein Pflichtattribut und kann leer gesetzt werden,\n * wenn man das Label mittels dem Expert-Slot überschreiben will.\n */\n/** en\n * The label is used to label different elements.\n * -Button -> label text\n * -Heading -> headline text\n * -Input, Select and Textarea -> label text\n * -Summary -> summary text\n * -Table -> caption text\n * -Etc.\n *\n * The label is often a mandatory attribute and can be set empty,\n * if you want to overwrite the label using the expert slot.\n */\nexport type PropLabel = {\n\tlabel: string;\n};\n\nexport type LabelProp = Generic.Element.Members<PropLabel, unknown>;\n\n/* validator */\n/**\n * Ein abweichendes Aria-Label muss aus Gründern der Barrierefreiheit für\n * die Sprachsteuerung mit dem Label-Text beginnen.\n */\nconst syncAriaLabelBeforePatch: Generic.Element.NextStateHooksCallback = (_nextValue, nextState, component: Generic.Element.Component, key): void => {\n\tconst ariaLabel: string | undefined = nextState.has('_ariaLabel') ? (nextState.get('_ariaLabel') as string) : (component.state._ariaLabel as string);\n\tif (typeof ariaLabel === 'string') {\n\t\tconst label: string = nextState.has('_label') ? (nextState.get('_label') as string) : (component.state._label as string);\n\t\tif (isEmptyOrPrefixOf(label, ariaLabel) === false) {\n\t\t\tif (key === '_ariaLabel') {\n\t\t\t\tnextState.set('_label', ariaLabel);\n\t\t\t\t// smartSetTimeout(() => ((component as Generic.Element.Component & { _label: string })._label = ariaLabel), 50);\n\t\t\t} else {\n\t\t\t\tnextState.set('_ariaLabel', undefined);\n\t\t\t\t// smartSetTimeout(() => ((component as Generic.Element.Component & { _ariaLabel: string })._ariaLabel = label), 50);\n\t\t\t}\n\t\t\ta11yHint(\n\t\t\t\t`Das abweichende Aria-Label ist nicht barrierefrei. Ein abweichendes Aria-Label muss aus Gründern der Barrierefreiheit für die Sprachsteuerung mit dem Label-Text beginnen.`\n\t\t\t);\n\t\t}\n\t}\n};\n\nconst validateAriaLabel = (component: Generic.Element.Component, value?: string, options: WatchStringOptions = {}): void => {\n\twatchString(component, '_ariaLabel', value, {\n\t\thooks: {\n\t\t\tafterPatch: (value, state, component, key) => {\n\t\t\t\tif (typeof options.hooks?.afterPatch === 'function') {\n\t\t\t\t\toptions.hooks?.afterPatch(value, state, component, key);\n\t\t\t\t}\n\t\t\t\tif (typeof value === 'string' && value.length > 0 && hasEnoughReadableChars(value, 3) === false && containsOnlyNumbers(value) === false) {\n\t\t\t\t\ta11yHint(\n\t\t\t\t\t\t`Ein abweichendes Aria-Label (${value}) ist nicht barrierefrei. Ein abweichendes Aria-Label sollte aus mindestens drei lesbaren Zeichen bestehen.`\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t},\n\t\t\tbeforePatch: options.hooks?.beforePatch,\n\t\t},\n\t});\n};\n\nexport const validateAriaLabelWithLabel = (component: Generic.Element.Component, value?: string): void => {\n\tvalidateAriaLabel(component, value, {\n\t\thooks: {\n\t\t\tbeforePatch: syncAriaLabelBeforePatch,\n\t\t},\n\t});\n};\n\nexport const validateLabel = (component: Generic.Element.Component, value?: string, options: WatchStringOptions = {}): void => {\n\twatchString(component, '_label', value, {\n\t\thooks: {\n\t\t\tafterPatch: (value, state, component, key) => {\n\t\t\t\tif (typeof options.hooks?.afterPatch === 'function') {\n\t\t\t\t\toptions.hooks?.afterPatch(value, state, component, key);\n\t\t\t\t}\n\t\t\t\tif (typeof value === 'string' && hasEnoughReadableChars(value, 3) === false && containsOnlyNumbers(value) === false) {\n\t\t\t\t\ta11yHint(`Ein Label (${value}) ist nicht barrierefrei. Ein Label sollte aus mindestens drei lesbaren Zeichen bestehen.`);\n\t\t\t\t}\n\t\t\t},\n\t\t\tbeforePatch: options.hooks?.beforePatch,\n\t\t},\n\t\trequired: true,\n\t});\n};\n\nexport const validateLabelWithAriaLabel = (component: Generic.Element.Component, value?: string): void => {\n\tvalidateLabel(component, value, {\n\t\thooks: {\n\t\t\tbeforePatch: syncAriaLabelBeforePatch,\n\t\t},\n\t});\n};\n","import { Generic } from '@a11y-ui/core';\nimport { ButtonStates } from '../../types/button-link';\nimport { AnyIconFontClass, KoliBriCustomIcon, KoliBriIconProp, KoliBriIconState } from '../../types/icon';\nimport { PropAlignment } from '../../types/props';\nimport { objectObjectHandler, parseJson, watchValidator } from '../prop.validators';\nimport { isObject, isString, isStyle } from '../validator';\n\nconst mapCustomIcon = (state: KoliBriIconState, alignment: PropAlignment, icon?: AnyIconFontClass | KoliBriCustomIcon) => {\n\tif (isObject(icon)) {\n\t\tstate[alignment] = icon as KoliBriCustomIcon;\n\t} else if (isString(icon, 1)) {\n\t\tstate[alignment] = {\n\t\t\ticon: icon as AnyIconFontClass,\n\t\t};\n\t}\n};\n\nexport const mapIconProp2State = (icon: KoliBriIconProp, iconAlign?: PropAlignment): KoliBriIconState => {\n\tlet state: KoliBriIconState = {};\n\tif (isString(icon, 1)) {\n\t\tswitch (iconAlign) {\n\t\t\tcase 'right':\n\t\t\t\tstate = {\n\t\t\t\t\tright: {\n\t\t\t\t\t\ticon: icon as AnyIconFontClass,\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstate = {\n\t\t\t\t\tleft: {\n\t\t\t\t\t\ticon: icon as AnyIconFontClass,\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t}\n\t} else if (typeof icon === 'object' && icon !== null) {\n\t\tmapCustomIcon(state, 'top', icon.top);\n\t\tmapCustomIcon(state, 'right', icon.right);\n\t\tmapCustomIcon(state, 'bottom', icon.bottom);\n\t\tmapCustomIcon(state, 'left', icon.left);\n\t}\n\treturn state;\n};\n\nconst beforePatchIcon = (component: Generic.Element.Component): void => {\n\tif (component.nextState?.has('_icon')) {\n\t\tconst icon = component.nextState?.get('_icon') as KoliBriIconProp;\n\t\tconst iconAlign = (component.nextState?.get('_iconAlign') as PropAlignment) || (component.state as ButtonStates)._iconAlign;\n\t\tcomponent.nextState?.set('_icon', mapIconProp2State(icon, iconAlign));\n\t} else if (component.nextState?.has('_iconAlign')) {\n\t\tconst lastIconAlign = (component.state as ButtonStates)._iconAlign as PropAlignment;\n\t\tcomponent.nextState?.set('_icon', {\n\t\t\t[lastIconAlign]: undefined,\n\t\t\t[component.nextState?.get('_iconAlign') as PropAlignment]: (component.state as ButtonStates)._icon[lastIconAlign],\n\t\t});\n\t}\n};\n\nexport const isIcon = (value?: unknown): boolean =>\n\ttypeof value === 'object' &&\n\tvalue !== null &&\n\t(typeof (value as KoliBriCustomIcon).style === 'undefined' || isStyle((value as KoliBriCustomIcon).style)) &&\n\tisString((value as KoliBriCustomIcon).icon, 1);\n\nexport const validateIcon = (component: Generic.Element.Component, value?: KoliBriIconProp): void => {\n\tobjectObjectHandler(value, () => {\n\t\ttry {\n\t\t\tvalue = parseJson<KoliBriIconProp>(value as string);\n\t\t} catch (e) {\n\t\t\t// value behält den ursprünglichen Wert\n\t\t}\n\t\twatchValidator(\n\t\t\tcomponent,\n\t\t\t'_icon',\n\t\t\t(value): boolean => {\n\t\t\t\treturn (\n\t\t\t\t\tvalue === null ||\n\t\t\t\t\tisString(value, 1) ||\n\t\t\t\t\t(typeof value === 'object' &&\n\t\t\t\t\t\tvalue !== null &&\n\t\t\t\t\t\t(isString(value.left, 1) ||\n\t\t\t\t\t\t\tisIcon(value.left) ||\n\t\t\t\t\t\t\tisString(value.right, 1) ||\n\t\t\t\t\t\t\tisIcon(value.right) ||\n\t\t\t\t\t\t\tisString(value.top, 1) ||\n\t\t\t\t\t\t\tisIcon(value.top) ||\n\t\t\t\t\t\t\tisString(value.bottom, 1) ||\n\t\t\t\t\t\t\tisIcon(value.bottom)))\n\t\t\t\t);\n\t\t\t},\n\t\t\tnew Set(['KoliBriIcon']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\thooks: {\n\t\t\t\t\tbeforePatch: (nextValue: unknown, nextState: Map<string, unknown>) => {\n\t\t\t\t\t\tif (nextValue === null) {\n\t\t\t\t\t\t\tnextState.set('_icon', {});\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbeforePatchIcon(component);\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\trequired: true,\n\t\t\t}\n\t\t);\n\t});\n};\n\nexport const watchIconAlign = (component: Generic.Element.Component, value?: PropAlignment): void => {\n\twatchValidator(component, '_iconAlign', (value) => value === 'left' || value === 'right', new Set(['Alignment {left, right, top, bottom}']), value, {\n\t\thooks: {\n\t\t\tbeforePatch: () => {\n\t\t\t\tbeforePatchIcon(component);\n\t\t\t},\n\t\t},\n\t});\n};\n","import { Generic } from '@a11y-ui/core';\nimport { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\nimport { Stringified } from '../../types/common';\n\nimport { KoliBriCustomIcon, KoliBriIconProp } from '../../types/icon';\nimport { watchBoolean } from '../../utils/prop.validators';\nimport { validateIcon } from '../../utils/validators/icon';\nimport { validateLabelWithAriaLabel } from '../../types/props/label';\n\ntype RequiredProps = {\n\tlabel: string;\n};\ntype OptionalProps = {\n\ticon: Stringified<KoliBriIconProp>;\n\ticonOnly: boolean;\n};\nexport type Props = Generic.Element.Members<RequiredProps, OptionalProps>;\n\ntype RequiredStates = {\n\ticon: {\n\t\ttop?: KoliBriCustomIcon;\n\t\tright?: KoliBriCustomIcon;\n\t\tbottom?: KoliBriCustomIcon;\n\t\tleft?: KoliBriCustomIcon;\n\t};\n\ticonOnly: boolean;\n\tlabel: string;\n};\ntype OptionalStates = unknown;\nexport type States = Generic.Element.Members<RequiredStates, OptionalStates>;\n\n/**\n * @internal\n */\n@Component({\n\ttag: 'kol-span-wc',\n\tshadow: false,\n})\nexport class KolSpanWc implements Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates> {\n\tpublic render(): JSX.Element {\n\t\tconst hideExpertSlot = this.state._label.length > 0;\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={{\n\t\t\t\t\t'icon-only': this.state._iconOnly,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{this.state._icon.top && <kol-icon class=\"icon top\" style={this.state._icon.top.style} _ariaLabel=\"\" _icon={this.state._icon.top.icon} />}\n\t\t\t\t<span>\n\t\t\t\t\t{this.state._icon.left && <kol-icon class=\"icon left\" style={this.state._icon.left.style} _ariaLabel=\"\" _icon={this.state._icon.left.icon} />}\n\t\t\t\t\t{this.state._iconOnly !== true && this.state._label.length > 0 ? <span>{this.state._label}</span> : ''}\n\t\t\t\t\t<span aria-hidden={hideExpertSlot ? 'true' : undefined} hidden={hideExpertSlot}>\n\t\t\t\t\t\t<slot name=\"expert\" />\n\t\t\t\t\t</span>\n\t\t\t\t\t{this.state._icon.right && <kol-icon class=\"icon right\" style={this.state._icon.right.style} _ariaLabel=\"\" _icon={this.state._icon.right.icon} />}\n\t\t\t\t</span>\n\t\t\t\t{this.state._icon.bottom && <kol-icon class=\"icon bottom\" style={this.state._icon.bottom.style} _ariaLabel=\"\" _icon={this.state._icon.bottom.icon} />}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Gibt den Class-Identifier eines Icons eine eingebunden Icofont an. (z.B. https://icofont.com/)\n\t */\n\t@Prop() public _icon?: Stringified<KoliBriIconProp>;\n\n\t/**\n\t * Gibt an, ob nur das Icon angezeigt wird.\n\t */\n\t@Prop({ reflect: true }) public _iconOnly?: boolean = false;\n\n\t/**\n\t * Gibt einen beschreibenden Text für das Text-Element an.\n\t */\n\t@Prop() public _label!: string;\n\n\t@State() public state: States = {\n\t\t_icon: {},\n\t\t_iconOnly: false,\n\t\t_label: '…', // ⚠ required\n\t};\n\n\t@Watch('_icon')\n\tpublic validateIcon(value?: KoliBriIconProp): void {\n\t\tvalidateIcon(this, value);\n\t}\n\n\t@Watch('_iconOnly')\n\tpublic validateIconOnly(value?: boolean): void {\n\t\twatchBoolean(this, '_iconOnly', value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: string): void {\n\t\tvalidateLabelWithAriaLabel(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateIcon(this._icon);\n\t\tthis.validateIconOnly(this._iconOnly);\n\t\tthis.validateLabel(this._label);\n\t}\n}\n"],"version":3}
1
+ {"file":"component3.js","mappings":";;;;;;;AAqBA,MAAM,aAAa,GAAG,CAAC,KAAuB,EAAE,SAAoB,EAAE,IAA2C;EAChH,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE;IACnB,KAAK,CAAC,SAAS,CAAC,GAAG,IAAyB,CAAC;GAC7C;OAAM,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE;IAC7B,KAAK,CAAC,SAAS,CAAC,GAAG;MAClB,IAAI,EAAE,IAAwB;KAC9B,CAAC;GACF;AACF,CAAC,CAAC;AAEK,M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AK,CAAC,KAAK,IAAI,gBAAU,KAAK,EAAC,YAAY,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,UAAU,EAAC,EAAE,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAI,CAC3I,EACN,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,IAAI,gBAAU,KAAK,EAAC,aAAa,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,EAAC,EAAE,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,GAAI,CAC/I,EACN;GACF;EAwBM,YAAY,CAAC,KAAuB;IAC1C,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;GAC1B;EAGM,gBAAgB,CAAC,KAAe;IACtC,YAAY,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;GACvC;EAGM,aAAa,CAAC,KAAc;IAClC,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;GACxC;EAEM,iBAAiB;IACvB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACtC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;GAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/types/props/icon.ts","./src/types/props/label.ts","./src/components/span/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\nimport { ButtonStates } from '../button-link';\nimport { AnyIconFontClass, KoliBriCustomIcon, KoliBriIconProp, KoliBriIconState } from '../icon';\nimport { Alignment } from '.';\nimport { objectObjectHandler, parseJson, watchValidator } from '../../utils/prop.validators';\nimport { isObject, isString, isStyle } from '../../utils/validator';\nimport { Stringified } from '../common';\n\n/* types */\n/** de\n * Setzt den unbestimmten Zustand auf der Checkbox, hat keine Auswirkung auf _checked.\n */\n/** en\n * Puts the checkbox in the indeterminate state, does not change the value of _checked.\n */\nexport type PropIcon = {\n\ticon: Stringified<KoliBriIconProp>;\n};\n\n/* validator */\n\nconst mapCustomIcon = (state: KoliBriIconState, alignment: Alignment, icon?: AnyIconFontClass | KoliBriCustomIcon) => {\n\tif (isObject(icon)) {\n\t\tstate[alignment] = icon as KoliBriCustomIcon;\n\t} else if (isString(icon, 1)) {\n\t\tstate[alignment] = {\n\t\t\ticon: icon as AnyIconFontClass,\n\t\t};\n\t}\n};\n\nexport const mapIconProp2State = (icon: KoliBriIconProp, iconAlign?: Alignment): KoliBriIconState => {\n\tlet state: KoliBriIconState = {};\n\tif (isString(icon, 1)) {\n\t\tswitch (iconAlign) {\n\t\t\tcase 'right':\n\t\t\t\tstate = {\n\t\t\t\t\tright: {\n\t\t\t\t\t\ticon: icon as AnyIconFontClass,\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstate = {\n\t\t\t\t\tleft: {\n\t\t\t\t\t\ticon: icon as AnyIconFontClass,\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t}\n\t} else if (typeof icon === 'object' && icon !== null) {\n\t\tmapCustomIcon(state, 'top', icon.top);\n\t\tmapCustomIcon(state, 'right', icon.right);\n\t\tmapCustomIcon(state, 'bottom', icon.bottom);\n\t\tmapCustomIcon(state, 'left', icon.left);\n\t}\n\treturn state;\n};\n\nconst beforePatchIcon = (component: Generic.Element.Component): void => {\n\tif (component.nextState?.has('_icon')) {\n\t\tconst icon = component.nextState?.get('_icon') as KoliBriIconProp;\n\t\tconst iconAlign = (component.nextState?.get('_iconAlign') as Alignment) || (component.state as ButtonStates)._iconAlign;\n\t\tcomponent.nextState?.set('_icon', mapIconProp2State(icon, iconAlign));\n\t} else if (component.nextState?.has('_iconAlign')) {\n\t\tconst lastIconAlign = (component.state as ButtonStates)._iconAlign as Alignment;\n\t\tcomponent.nextState?.set('_icon', {\n\t\t\t[lastIconAlign]: undefined,\n\t\t\t[component.nextState?.get('_iconAlign') as Alignment]: (component.state as ButtonStates)._icon[lastIconAlign],\n\t\t});\n\t}\n};\n\nexport const isIcon = (value?: unknown): boolean =>\n\ttypeof value === 'object' &&\n\tvalue !== null &&\n\t(typeof (value as KoliBriCustomIcon).style === 'undefined' || isStyle((value as KoliBriCustomIcon).style)) &&\n\tisString((value as KoliBriCustomIcon).icon, 1);\n\nexport const validateIcon = (component: Generic.Element.Component, value?: KoliBriIconProp): void => {\n\tobjectObjectHandler(value, () => {\n\t\ttry {\n\t\t\tvalue = parseJson<KoliBriIconProp>(value as string);\n\t\t} catch (e) {\n\t\t\t// value behält den ursprünglichen Wert\n\t\t}\n\t\twatchValidator(\n\t\t\tcomponent,\n\t\t\t'_icon',\n\t\t\t(value): boolean => {\n\t\t\t\treturn (\n\t\t\t\t\tvalue === null ||\n\t\t\t\t\tisString(value, 1) ||\n\t\t\t\t\t(typeof value === 'object' &&\n\t\t\t\t\t\tvalue !== null &&\n\t\t\t\t\t\t(isString(value.left, 1) ||\n\t\t\t\t\t\t\tisIcon(value.left) ||\n\t\t\t\t\t\t\tisString(value.right, 1) ||\n\t\t\t\t\t\t\tisIcon(value.right) ||\n\t\t\t\t\t\t\tisString(value.top, 1) ||\n\t\t\t\t\t\t\tisIcon(value.top) ||\n\t\t\t\t\t\t\tisString(value.bottom, 1) ||\n\t\t\t\t\t\t\tisIcon(value.bottom)))\n\t\t\t\t);\n\t\t\t},\n\t\t\tnew Set(['KoliBriIcon']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\thooks: {\n\t\t\t\t\tbeforePatch: (nextValue: unknown, nextState: Map<string, unknown>) => {\n\t\t\t\t\t\tif (nextValue === null) {\n\t\t\t\t\t\t\tnextState.set('_icon', {});\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbeforePatchIcon(component);\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\trequired: true,\n\t\t\t}\n\t\t);\n\t});\n};\n\nexport const watchIconAlign = (component: Generic.Element.Component, value?: Alignment): void => {\n\twatchValidator(component, '_iconAlign', (value) => value === 'left' || value === 'right', new Set(['Alignment {left, right, top, bottom}']), value, {\n\t\thooks: {\n\t\t\tbeforePatch: () => {\n\t\t\t\tbeforePatchIcon(component);\n\t\t\t},\n\t\t},\n\t});\n};\n","import { Generic } from '@a11y-ui/core';\nimport { a11yHint } from '../../utils/a11y.tipps';\nimport { watchString, WatchStringOptions } from '../../utils/prop.validators';\nimport { isEmptyOrPrefixOf } from '../../utils/validator';\n\n/* types */\n\n/**\n * This is a regular expression that matches all readable characters.\n */\nconst READABLE_CHARS = /[a-zA-Z0-9äöüÄÖÜß]/g;\n\n/**\n * This is a regular expression that matches only numbers.\n */\nconst ONLY_NUMBERS = /^\\d+$/;\n\n/**\n * This function counts the number of readable characters in a string.\n * @param str The string to count.\n * @returns The number of readable characters in the string.\n */\nfunction countReadableChars(str: string): number {\n\treturn typeof str === 'string' ? str.match(READABLE_CHARS)?.length || 0 : 0;\n}\n\n/**\n * This function checks if a string has at least a certain number of readable characters.\n * @param str The string to check.\n * @param min The minimum number of readable characters.\n * @returns True if the string has at least the minimum number of readable characters, false otherwise.\n */\nexport function hasEnoughReadableChars(str: string, min = 1): boolean {\n\treturn countReadableChars(str) >= min;\n}\n\n/**\n * This function checks if a string contains only numbers.\n * @param str The string to check.\n * @returns True if the string contains only numbers, false otherwise.\n */\nexport function containsOnlyNumbers(str: string): boolean {\n\treturn ONLY_NUMBERS.test(str);\n}\n\n/** de\n * Das Label dient der Beschriftung unterschiedlicher Elemente.\n * - Button -> label text\n * - Heading -> headline text\n * - Input, Select und Textarea -> label text\n * - Summary -> summary text\n * - Table -> caption text\n * - etc.\n *\n * Das Label ist häufig ein Pflichtattribut und kann leer gesetzt werden,\n * wenn man das Label mittels dem Expert-Slot überschreiben will.\n */\n/** en\n * The label is used to label different elements.\n * -Button -> label text\n * -Heading -> headline text\n * -Input, Select and Textarea -> label text\n * -Summary -> summary text\n * -Table -> caption text\n * -Etc.\n *\n * The label is often a mandatory attribute and can be set empty,\n * if you want to overwrite the label using the expert slot.\n */\nexport type PropLabel = {\n\tlabel: string;\n};\n\nexport type LabelProp = Generic.Element.Members<PropLabel, unknown>;\n\n/* validator */\n/**\n * Ein abweichendes Aria-Label muss aus Gründern der Barrierefreiheit für\n * die Sprachsteuerung mit dem Label-Text beginnen.\n */\nconst syncAriaLabelBeforePatch: Generic.Element.NextStateHooksCallback = (_nextValue, nextState, component: Generic.Element.Component, key): void => {\n\tconst ariaLabel: string | undefined = nextState.has('_ariaLabel') ? (nextState.get('_ariaLabel') as string) : (component.state._ariaLabel as string);\n\tif (typeof ariaLabel === 'string') {\n\t\tconst label: string = nextState.has('_label') ? (nextState.get('_label') as string) : (component.state._label as string);\n\t\tif (isEmptyOrPrefixOf(label, ariaLabel) === false) {\n\t\t\tif (key === '_ariaLabel') {\n\t\t\t\tnextState.set('_label', ariaLabel);\n\t\t\t\t// smartSetTimeout(() => ((component as Generic.Element.Component & { _label: string })._label = ariaLabel), 50);\n\t\t\t} else {\n\t\t\t\tnextState.set('_ariaLabel', undefined);\n\t\t\t\t// smartSetTimeout(() => ((component as Generic.Element.Component & { _ariaLabel: string })._ariaLabel = label), 50);\n\t\t\t}\n\t\t\ta11yHint(\n\t\t\t\t`Das abweichende Aria-Label ist nicht barrierefrei. Ein abweichendes Aria-Label muss aus Gründern der Barrierefreiheit für die Sprachsteuerung mit dem Label-Text beginnen.`\n\t\t\t);\n\t\t}\n\t}\n};\n\nconst validateAriaLabel = (component: Generic.Element.Component, value?: string, options: WatchStringOptions = {}): void => {\n\twatchString(component, '_ariaLabel', value, {\n\t\thooks: {\n\t\t\tafterPatch: (value, state, component, key) => {\n\t\t\t\tif (typeof options.hooks?.afterPatch === 'function') {\n\t\t\t\t\toptions.hooks?.afterPatch(value, state, component, key);\n\t\t\t\t}\n\t\t\t\tif (typeof value === 'string' && value.length > 0 && hasEnoughReadableChars(value, 3) === false && containsOnlyNumbers(value) === false) {\n\t\t\t\t\ta11yHint(\n\t\t\t\t\t\t`Ein abweichendes Aria-Label (${value}) ist nicht barrierefrei. Ein abweichendes Aria-Label sollte aus mindestens drei lesbaren Zeichen bestehen.`\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t},\n\t\t\tbeforePatch: options.hooks?.beforePatch,\n\t\t},\n\t});\n};\n\nexport const validateAriaLabelWithLabel = (component: Generic.Element.Component, value?: string): void => {\n\tvalidateAriaLabel(component, value, {\n\t\thooks: {\n\t\t\tbeforePatch: syncAriaLabelBeforePatch,\n\t\t},\n\t});\n};\n\nexport const validateLabel = (component: Generic.Element.Component, value?: string, options: WatchStringOptions = {}): void => {\n\twatchString(component, '_label', value, {\n\t\thooks: {\n\t\t\tafterPatch: (value, state, component, key) => {\n\t\t\t\tif (typeof options.hooks?.afterPatch === 'function') {\n\t\t\t\t\toptions.hooks?.afterPatch(value, state, component, key);\n\t\t\t\t}\n\t\t\t\tif (typeof value === 'string' && hasEnoughReadableChars(value, 3) === false && containsOnlyNumbers(value) === false) {\n\t\t\t\t\ta11yHint(`Ein Label (${value}) ist nicht barrierefrei. Ein Label sollte aus mindestens drei lesbaren Zeichen bestehen.`);\n\t\t\t\t}\n\t\t\t},\n\t\t\tbeforePatch: options.hooks?.beforePatch,\n\t\t},\n\t\trequired: true,\n\t});\n};\n\nexport const validateLabelWithAriaLabel = (component: Generic.Element.Component, value?: string): void => {\n\tvalidateLabel(component, value, {\n\t\thooks: {\n\t\t\tbeforePatch: syncAriaLabelBeforePatch,\n\t\t},\n\t});\n};\n","import { Generic } from '@a11y-ui/core';\nimport { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\nimport { Stringified } from '../../types/common';\n\nimport { KoliBriCustomIcon, KoliBriIconProp } from '../../types/icon';\nimport { watchBoolean } from '../../utils/prop.validators';\nimport { validateIcon } from '../../types/props/icon';\nimport { validateLabelWithAriaLabel } from '../../types/props/label';\n\ntype RequiredProps = {\n\tlabel: string;\n};\ntype OptionalProps = {\n\ticon: Stringified<KoliBriIconProp>;\n\ticonOnly: boolean;\n};\nexport type Props = Generic.Element.Members<RequiredProps, OptionalProps>;\n\ntype RequiredStates = {\n\ticon: {\n\t\ttop?: KoliBriCustomIcon;\n\t\tright?: KoliBriCustomIcon;\n\t\tbottom?: KoliBriCustomIcon;\n\t\tleft?: KoliBriCustomIcon;\n\t};\n\ticonOnly: boolean;\n\tlabel: string;\n};\ntype OptionalStates = unknown;\nexport type States = Generic.Element.Members<RequiredStates, OptionalStates>;\n\n/**\n * @internal\n */\n@Component({\n\ttag: 'kol-span-wc',\n\tshadow: false,\n})\nexport class KolSpanWc implements Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates> {\n\tpublic render(): JSX.Element {\n\t\tconst hideExpertSlot = this.state._label.length > 0;\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={{\n\t\t\t\t\t'icon-only': this.state._iconOnly,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{this.state._icon.top && <kol-icon class=\"icon top\" style={this.state._icon.top.style} _ariaLabel=\"\" _icon={this.state._icon.top.icon} />}\n\t\t\t\t<span>\n\t\t\t\t\t{this.state._icon.left && <kol-icon class=\"icon left\" style={this.state._icon.left.style} _ariaLabel=\"\" _icon={this.state._icon.left.icon} />}\n\t\t\t\t\t{this.state._iconOnly !== true && this.state._label.length > 0 ? <span>{this.state._label}</span> : ''}\n\t\t\t\t\t<span aria-hidden={hideExpertSlot ? 'true' : undefined} hidden={hideExpertSlot}>\n\t\t\t\t\t\t<slot name=\"expert\" />\n\t\t\t\t\t</span>\n\t\t\t\t\t{this.state._icon.right && <kol-icon class=\"icon right\" style={this.state._icon.right.style} _ariaLabel=\"\" _icon={this.state._icon.right.icon} />}\n\t\t\t\t</span>\n\t\t\t\t{this.state._icon.bottom && <kol-icon class=\"icon bottom\" style={this.state._icon.bottom.style} _ariaLabel=\"\" _icon={this.state._icon.bottom.icon} />}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Iconklasse (z.B.: \"codicon codicon-home\")\n\t */\n\t@Prop() public _icon?: Stringified<KoliBriIconProp>;\n\n\t/**\n\t * Gibt an, ob nur das Icon angezeigt wird.\n\t */\n\t@Prop({ reflect: true }) public _iconOnly?: boolean = false;\n\n\t/**\n\t * Setzt den sichtbaren Text des Elements.\n\t */\n\t@Prop() public _label!: string;\n\n\t@State() public state: States = {\n\t\t_icon: {},\n\t\t_iconOnly: false,\n\t\t_label: '…', // ⚠ required\n\t};\n\n\t@Watch('_icon')\n\tpublic validateIcon(value?: KoliBriIconProp): void {\n\t\tvalidateIcon(this, value);\n\t}\n\n\t@Watch('_iconOnly')\n\tpublic validateIconOnly(value?: boolean): void {\n\t\twatchBoolean(this, '_iconOnly', value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: string): void {\n\t\tvalidateLabelWithAriaLabel(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateIcon(this._icon);\n\t\tthis.validateIconOnly(this._iconOnly);\n\t\tthis.validateLabel(this._label);\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,Host}from"@stencil/core/internal/client";import{b as watchValidator,w as watchString}from"./prop.validators.js";const watchHeadingLevel=(e,a)=>{watchValidator(e,"_level",(e=>"number"==typeof e&&1<=e&&e<=6),new Set(["Number {1, 2, 3, 4, 5, 6}"]),a,{defaultValue:1,required:!0})},KolHeadingWc=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.renderHeadline=(e,a)=>{switch(a){case 1:return h("h1",{class:"headline"},e,h("slot",null));case 2:return h("h2",{class:"headline"},e,h("slot",null));case 3:return h("h3",{class:"headline"},e,h("slot",null));case 4:return h("h4",{class:"headline"},e,h("slot",null));case 5:return h("h5",{class:"headline"},e,h("slot",null));case 6:return h("h6",{class:"headline"},e,h("slot",null));default:return h("strong",{class:"headline"},e,h("slot",null))}},this.renderSecondaryHeadline=(e,a)=>{switch(a){case 1:return h("h1",{class:"secondary-headline"},e);case 2:return h("h2",{class:"secondary-headline"},e);case 3:return h("h3",{class:"secondary-headline"},e);case 4:return h("h4",{class:"secondary-headline"},e);case 5:return h("h5",{class:"secondary-headline"},e);case 6:return h("h6",{class:"secondary-headline"},e);default:return h("strong",{class:"secondary-headline"},e)}},this._headline=void 0,this._level=1,this._secondaryHeadline=void 0,this.state={_headline:"…",_level:1}}validateHeadline(e){watchString(this,"_headline",e)}validateLevel(e){watchHeadingLevel(this,e)}validateSecondaryHeadline(e){watchString(this,"_secondaryHeadline",e)}componentWillLoad(){this.validateHeadline(this._headline),this.validateLevel(this._level),this.validateSecondaryHeadline(this._secondaryHeadline)}render(){return h(Host,null,"string"==typeof this.state._secondaryHeadline&&this.state._secondaryHeadline.length>0?h("hgroup",null,this.renderHeadline(this.state._headline,this.state._level),this.state._secondaryHeadline&&this.renderSecondaryHeadline(this.state._secondaryHeadline,this.state._level+1)):this.renderHeadline(this.state._headline,this.state._level))}static get watchers(){return{_headline:["validateHeadline"],_level:["validateLevel"],_secondaryHeadline:["validateSecondaryHeadline"]}}},[4,"kol-heading-wc",{_headline:[1],_level:[2],_secondaryHeadline:[1,"_secondary-headline"],state:[32]}]);function defineCustomElement(){if("undefined"==typeof customElements)return;["kol-heading-wc"].forEach((e=>{if("kol-heading-wc"===e)customElements.get(e)||customElements.define(e,KolHeadingWc)}))}export{KolHeadingWc as K,defineCustomElement as d,watchHeadingLevel as w};
4
+ import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{a as watchValidator,w as watchString}from"./prop.validators.js";const watchHeadingLevel=(e,a)=>{watchValidator(e,"_level",(e=>"number"==typeof e&&0<=e&&e<=6),new Set(["Number {0, 1, 2, 3, 4, 5, 6}"]),a,{defaultValue:1,required:!0})},KolHeadingWc=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.renderHeadline=(e,a)=>{switch(a){case 1:return h("h1",{class:"headline"},e,h("slot",null));case 2:return h("h2",{class:"headline"},e,h("slot",null));case 3:return h("h3",{class:"headline"},e,h("slot",null));case 4:return h("h4",{class:"headline"},e,h("slot",null));case 5:return h("h5",{class:"headline"},e,h("slot",null));case 6:return h("h6",{class:"headline"},e,h("slot",null));default:return h("strong",{class:"headline"},e,h("slot",null))}},this.renderSecondaryHeadline=(e,a)=>{switch(a){case 1:return h("span",{class:"secondary-headline"},e);case 2:return h("h2",{class:"secondary-headline"},e);case 3:return h("h3",{class:"secondary-headline"},e);case 4:return h("h4",{class:"secondary-headline"},e);case 5:return h("h5",{class:"secondary-headline"},e);case 6:return h("h6",{class:"secondary-headline"},e);default:return h("strong",{class:"secondary-headline"},e)}},this._label=void 0,this._level=1,this._secondaryHeadline=void 0,this.state={_label:"…",_level:1}}validateLabel(e){watchString(this,"_label",e)}validateLevel(e){watchHeadingLevel(this,e)}validateSecondaryHeadline(e){watchString(this,"_secondaryHeadline",e)}componentWillLoad(){this.validateLabel(this._label),this.validateLevel(this._level),this.validateSecondaryHeadline(this._secondaryHeadline)}render(){return h(Host,null,"string"==typeof this.state._secondaryHeadline&&this.state._secondaryHeadline.length>0?h("hgroup",null,this.renderHeadline(this.state._label,this.state._level),this.state._secondaryHeadline&&this.renderSecondaryHeadline(this.state._secondaryHeadline,this.state._level+1)):this.renderHeadline(this.state._label,this.state._level))}static get watchers(){return{_label:["validateLabel"],_level:["validateLevel"],_secondaryHeadline:["validateSecondaryHeadline"]}}},[4,"kol-heading-wc",{_label:[1],_level:[2],_secondaryHeadline:[1,"_secondary-headline"],state:[32]}]);function defineCustomElement(){if("undefined"==typeof customElements)return;["kol-heading-wc"].forEach((e=>{if("kol-heading-wc"===e)customElements.get(e)||customElements.define(e,KolHeadingWc)}))}export{KolHeadingWc as K,defineCustomElement as d,watchHeadingLevel as w};
@@ -1 +1 @@
1
- {"file":"component4.js","mappings":";;;;;;MAGa,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAc;EACrF,cAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAK;IACL,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,IAAI,KAAK,IAAI,KAAK,IAAI,CAAC,CAAC;GAC7D,EACD,IAAI,GAAG,CAAC,CAAC,2BAA2B,CAAC,CAAC,EACtC,KAAK,EACL;IACC,YAAY,EAAE,CAAC;IACf,QAAQ,EAAE,IAAI;GACd,CACD,CAAC;AACH;;MCYa,YAAY;;;;IA0CP,mBAAc,GAAG,CAAC,QAAgB,EAAE,KAAc;MAClE,QAAQ,KAAK;QACZ,KAAK,CAAC;UACL,QACC,UAAI,KAAK,EAAC,UAAU,IAClB,QAAQ,EACT,eAAQ,CACJ,EACJ;QACH,KAAK,CAAC;UACL,QACC,UAAI,KAAK,EAAC,UAAU,IAClB,QAAQ,EACT,eAAQ,CACJ,EACJ;QACH,KAAK,CAAC;UACL,QACC,UAAI,KAAK,EAAC,UAAU,IAClB,QAAQ,EACT,eAAQ,CACJ,EACJ;QACH,KAAK,CAAC;UACL,QACC,UAAI,KAAK,EAAC,UAAU,IAClB,QAAQ,EACT,eAAQ,CACJ,EACJ;QACH,KAAK,CAAC;UACL,QACC,UAAI,KAAK,EAAC,UAAU,IAClB,QAAQ,EACT,eAAQ,CACJ,EACJ;QACH,KAAK,CAAC;UACL,QACC,UAAI,KAAK,EAAC,UAAU,IAClB,QAAQ,EACT,eAAQ,CACJ,EACJ;QACH;UACC,QACC,cAAQ,KAAK,EAAC,UAAU,IACtB,QAAQ,EACT,eAAQ,CACA,EACR;OACH;KACD,CAAC;IAEe,4BAAuB,GAAG,CAAC,QAAgB,EAAE,KAAc;MAC3E,QAAQ,KAAK;QACZ,KAAK,CAAC;UACL,OAAO,U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,CAAC,MAAM,GAAG,CAAC,IAC7F,kBACE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAC5D,IAAI,CAAC,KAAK,CAAC,kBAAkB,IAAI,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,kBAAkB,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAC5G,KAET,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAC5D,CACK,EACN;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/heading/validation.ts","./src/components/heading/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\nimport { watchValidator } from '../../utils/prop.validators';\n\nexport const watchHeadingLevel = (component: Generic.Element.Component, value?: number): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t'_level',\n\t\t(value): boolean => {\n\t\t\treturn typeof value === 'number' && 1 <= value && value <= 6;\n\t\t},\n\t\tnew Set(['Number {1, 2, 3, 4, 5, 6}']),\n\t\tvalue,\n\t\t{\n\t\t\tdefaultValue: 1,\n\t\t\trequired: true,\n\t\t}\n\t);\n};\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Generic } from '@a11y-ui/core';\nimport { HeadingLevel } from '../../types/heading-level';\nimport { watchString } from '../../utils/prop.validators';\nimport { watchHeadingLevel } from './validation';\n\ntype RequiredProps = {\n\theadline: string;\n};\ntype OptionalProps = {\n\tsecondaryHeadline: string;\n\tlevel: HeadingLevel;\n};\nexport type Props = Generic.Element.Members<RequiredProps, OptionalProps>;\n\ntype RequiredStates = {\n\theadline: string;\n\tlevel: HeadingLevel;\n};\ntype OptionalStates = {\n\tsecondaryHeadline: string;\n};\nexport type States = Generic.Element.Members<RequiredStates, OptionalStates>;\n\n@Component({\n\ttag: 'kol-heading-wc',\n\tshadow: false,\n})\nexport class KolHeadingWc implements Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates> {\n\t/**\n\t * Gibt den Text der Überschrift an.\n\t */\n\t@Prop() public _headline!: string;\n\n\t/**\n\t * Gibt an, welchen H-Level von 1 bis 6 die Überschrift hat. Oder ob es keine Überschrift ist, sondern nur fett gedruckt.\n\t */\n\t@Prop() public _level?: HeadingLevel = 1;\n\n\t/**\n\t * Gibt den Text der zusätzlichen Überschrift an.\n\t */\n\t@Prop() public _secondaryHeadline?: string;\n\n\t@State() public state: States = {\n\t\t_headline: '…', // ⚠ required\n\t\t_level: 1,\n\t};\n\n\t@Watch('_headline')\n\tpublic validateHeadline(value?: string): void {\n\t\twatchString(this, '_headline', value);\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\t@Watch('_secondaryHeadline')\n\tpublic validateSecondaryHeadline(value?: string): void {\n\t\twatchString(this, '_secondaryHeadline', value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateHeadline(this._headline);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateSecondaryHeadline(this._secondaryHeadline);\n\t}\n\n\tprivate readonly renderHeadline = (headline: string, level?: number): JSX.Element => {\n\t\tswitch (level) {\n\t\t\tcase 1:\n\t\t\t\treturn (\n\t\t\t\t\t<h1 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h1>\n\t\t\t\t);\n\t\t\tcase 2:\n\t\t\t\treturn (\n\t\t\t\t\t<h2 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h2>\n\t\t\t\t);\n\t\t\tcase 3:\n\t\t\t\treturn (\n\t\t\t\t\t<h3 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h3>\n\t\t\t\t);\n\t\t\tcase 4:\n\t\t\t\treturn (\n\t\t\t\t\t<h4 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h4>\n\t\t\t\t);\n\t\t\tcase 5:\n\t\t\t\treturn (\n\t\t\t\t\t<h5 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h5>\n\t\t\t\t);\n\t\t\tcase 6:\n\t\t\t\treturn (\n\t\t\t\t\t<h6 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h6>\n\t\t\t\t);\n\t\t\tdefault:\n\t\t\t\treturn (\n\t\t\t\t\t<strong class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</strong>\n\t\t\t\t);\n\t\t}\n\t};\n\n\tprivate readonly renderSecondaryHeadline = (headline: string, level?: number): JSX.Element => {\n\t\tswitch (level) {\n\t\t\tcase 1:\n\t\t\t\treturn <h1 class=\"secondary-headline\">{headline}</h1>;\n\t\t\tcase 2:\n\t\t\t\treturn <h2 class=\"secondary-headline\">{headline}</h2>;\n\t\t\tcase 3:\n\t\t\t\treturn <h3 class=\"secondary-headline\">{headline}</h3>;\n\t\t\tcase 4:\n\t\t\t\treturn <h4 class=\"secondary-headline\">{headline}</h4>;\n\t\t\tcase 5:\n\t\t\t\treturn <h5 class=\"secondary-headline\">{headline}</h5>;\n\t\t\tcase 6:\n\t\t\t\treturn <h6 class=\"secondary-headline\">{headline}</h6>;\n\t\t\tdefault:\n\t\t\t\treturn <strong class=\"secondary-headline\">{headline}</strong>;\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t{typeof this.state._secondaryHeadline === 'string' && this.state._secondaryHeadline.length > 0 ? (\n\t\t\t\t\t<hgroup>\n\t\t\t\t\t\t{this.renderHeadline(this.state._headline, this.state._level)}\n\t\t\t\t\t\t{this.state._secondaryHeadline && this.renderSecondaryHeadline(this.state._secondaryHeadline, this.state._level + 1)}\n\t\t\t\t\t</hgroup>\n\t\t\t\t) : (\n\t\t\t\t\tthis.renderHeadline(this.state._headline, this.state._level)\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"component4.js","mappings":";;;;;;MAGa,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAc;EACrF,cAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAK;IACL,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,IAAI,KAAK,IAAI,KAAK,IAAI,CAAC,CAAC;GAC7D,EACD,IAAI,GAAG,CAAC,CAAC,8BAA8B,CAAC,CAAC,EACzC,KAAK,EACL;IAEC,YAAY,EAAE,CAAC;IACf,QAAQ,EAAE,IAAI;GACd,CACD,CAAC;AACH;;MCca,YAAY;;;;IA0CP,mBAAc,GAAG,CAAC,QAAgB,EAAE,KAAc;MAClE,QAAQ,KAAK;QACZ,KAAK,CAAC;UACL,QACC,UAAI,KAAK,EAAC,UAAU,IAClB,QAAQ,EACT,eAAQ,CACJ,EACJ;QACH,KAAK,CAAC;UACL,QACC,UAAI,KAAK,EAAC,UAAU,IAClB,QAAQ,EACT,eAAQ,CACJ,EACJ;QACH,KAAK,CAAC;UACL,QACC,UAAI,KAAK,EAAC,UAAU,IAClB,QAAQ,EACT,eAAQ,CACJ,EACJ;QACH,KAAK,CAAC;UACL,QACC,UAAI,KAAK,EAAC,UAAU,IAClB,QAAQ,EACT,eAAQ,CACJ,EACJ;QACH,KAAK,CAAC;UACL,QACC,UAAI,KAAK,EAAC,UAAU,IAClB,QAAQ,EACT,eAAQ,CACJ,EACJ;QACH,KAAK,CAAC;UACL,QACC,UAAI,KAAK,EAAC,UAAU,IAClB,QAAQ,EACT,eAAQ,CACJ,EACJ;QACH;UACC,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,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;GACxD;EA2EM,MAAM;IACZ,QACC,EAAC,IAAI,QACH,OAAO,IAAI,CAAC,KAAK,CAAC,kBAAkB,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC,IAC7F,kBACE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzD,IAAI,CAAC,KAAK,CAAC,kBAAkB,IAAI,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,kBAAkB,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAC5G,KAET,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CACzD,CACK,EACN;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/heading/validation.ts","./src/components/heading/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\nimport { watchValidator } from '../../utils/prop.validators';\n\nexport const watchHeadingLevel = (component: Generic.Element.Component, value?: number): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t'_level',\n\t\t(value): boolean => {\n\t\t\treturn typeof value === 'number' && 0 <= value && value <= 6;\n\t\t},\n\t\tnew Set(['Number {0, 1, 2, 3, 4, 5, 6}']),\n\t\tvalue,\n\t\t{\n\t\t\t// TODO: options not in the validator\n\t\t\tdefaultValue: 1,\n\t\t\trequired: true,\n\t\t}\n\t);\n};\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Generic } from '@a11y-ui/core';\nimport { HeadingLevel } from '../../types/heading-level';\nimport { watchString } from '../../utils/prop.validators';\nimport { watchHeadingLevel } from './validation';\n\ntype RequiredProps = {\n\tlabel: string;\n};\ntype OptionalProps = {\n\tsecondaryHeadline: string;\n\tlevel: HeadingLevel;\n};\nexport type Props = Generic.Element.Members<RequiredProps, OptionalProps>;\n\ntype RequiredStates = {\n\tlabel: string;\n\tlevel: HeadingLevel;\n};\ntype OptionalStates = {\n\tsecondaryHeadline: string;\n};\nexport type States = Generic.Element.Members<RequiredStates, OptionalStates>;\n\n/**\n * @slot default Inhalt der Überschrift.\n */\n@Component({\n\ttag: 'kol-heading-wc',\n\tshadow: false,\n})\nexport class KolHeadingWc implements Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates> {\n\t/**\n\t * Gibt den Text der Überschrift an.\n\t */\n\t@Prop() public _label!: string;\n\n\t/**\n\t * Setzt den H-Level, von 1 bis 6, der Überschrift.\n\t */\n\t@Prop() public _level?: HeadingLevel = 1;\n\n\t/**\n\t * Setzt den Text einer weiteren Überschrift, einen Level kleiner, unter der Ersten.\n\t */\n\t@Prop() public _secondaryHeadline?: string;\n\n\t@State() public state: States = {\n\t\t_label: '…', // ⚠ required\n\t\t_level: 1,\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: string): void {\n\t\twatchString(this, '_label', value);\n\t}\n\n\t@Watch('_level')\n\tpublic validateLevel(value?: HeadingLevel): void {\n\t\twatchHeadingLevel(this, value);\n\t}\n\n\t@Watch('_secondaryHeadline')\n\tpublic validateSecondaryHeadline(value?: string): void {\n\t\twatchString(this, '_secondaryHeadline', value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateLevel(this._level);\n\t\tthis.validateSecondaryHeadline(this._secondaryHeadline);\n\t}\n\n\tprivate readonly renderHeadline = (headline: string, level?: number): JSX.Element => {\n\t\tswitch (level) {\n\t\t\tcase 1:\n\t\t\t\treturn (\n\t\t\t\t\t<h1 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h1>\n\t\t\t\t);\n\t\t\tcase 2:\n\t\t\t\treturn (\n\t\t\t\t\t<h2 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h2>\n\t\t\t\t);\n\t\t\tcase 3:\n\t\t\t\treturn (\n\t\t\t\t\t<h3 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h3>\n\t\t\t\t);\n\t\t\tcase 4:\n\t\t\t\treturn (\n\t\t\t\t\t<h4 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h4>\n\t\t\t\t);\n\t\t\tcase 5:\n\t\t\t\treturn (\n\t\t\t\t\t<h5 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h5>\n\t\t\t\t);\n\t\t\tcase 6:\n\t\t\t\treturn (\n\t\t\t\t\t<h6 class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</h6>\n\t\t\t\t);\n\t\t\tdefault:\n\t\t\t\treturn (\n\t\t\t\t\t<strong class=\"headline\">\n\t\t\t\t\t\t{headline}\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</strong>\n\t\t\t\t);\n\t\t}\n\t};\n\n\tprivate readonly renderSecondaryHeadline = (headline: string, level?: number): JSX.Element => {\n\t\tswitch (level) {\n\t\t\tcase 1: // if the headline is only strong\n\t\t\t\treturn <span class=\"secondary-headline\">{headline}</span>;\n\t\t\tcase 2: // if the headline is h1\n\t\t\t\treturn <h2 class=\"secondary-headline\">{headline}</h2>;\n\t\t\tcase 3: // if the headline is h2\n\t\t\t\treturn <h3 class=\"secondary-headline\">{headline}</h3>;\n\t\t\tcase 4: // if the headline is h3\n\t\t\t\treturn <h4 class=\"secondary-headline\">{headline}</h4>;\n\t\t\tcase 5: // if the headline is h4\n\t\t\t\treturn <h5 class=\"secondary-headline\">{headline}</h5>;\n\t\t\tcase 6: // if the headline is h5\n\t\t\t\treturn <h6 class=\"secondary-headline\">{headline}</h6>;\n\t\t\tdefault: // if the headline is h6\n\t\t\t\treturn <strong class=\"secondary-headline\">{headline}</strong>;\n\t\t}\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t{typeof this.state._secondaryHeadline === 'string' && this.state._secondaryHeadline.length > 0 ? (\n\t\t\t\t\t<hgroup>\n\t\t\t\t\t\t{this.renderHeadline(this.state._label, this.state._level)}\n\t\t\t\t\t\t{this.state._secondaryHeadline && this.renderSecondaryHeadline(this.state._secondaryHeadline, this.state._level + 1)}\n\t\t\t\t\t</hgroup>\n\t\t\t\t) : (\n\t\t\t\t\tthis.renderHeadline(this.state._label, this.state._level)\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{L as Log,h as watchBoolean,w as watchString,x as setState,b as watchValidator}from"./prop.validators.js";import{w as watchHeadingLevel,d as defineCustomElement$4}from"./component4.js";import{a as translate}from"./i18n.js";import{d as defineCustomElement$1,a as defineCustomElement$5,b as defineCustomElement$6}from"./component.js";import{d as defineCustomElement$3}from"./component2.js";import{d as defineCustomElement$2}from"./component3.js";const defaultStyleCss=":host{--a11y-min-size:44px}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}*[role='button'],button:not([role='link']),input[type='color'],input[type='date'],input[type='datetime-local'],input[type='email'],input[type='file'],input[type='month'],input[type='number'],input[type='password'],input[type='search'],input[type='tel'],input[type='text'],input[type='time'],input[type='url'],input[type='week'],option,select,textarea{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}:host{max-width:100%}*{box-sizing:border-box}kol-span-wc{display:grid;place-items:center}kol-span-wc>span{display:flex;place-items:center}a,button,input[type='checkbox'],input[type='color'],input[type='file'],input[type='radio'],option,select{cursor:pointer;font-family:inherit;font-size:inherit}.icon-only>kol-span-wc>span>span{display:none}:host{display:block}:host>div{display:grid;place-items:stretch;overflow:hidden}.heading{display:grid;grid-template-columns:auto 1fr auto;place-items:center}.heading>div{display:grid;justify-self:start}.heading .heading-icon{align-items:center;align-self:stretch;display:inline-flex}",Icon=e=>h("kol-icon",{class:"heading-icon",_ariaLabel:"string"==typeof e.heading&&e.heading.length>0?"":e.ariaLabel,_icon:e.icon}),AlertIcon=e=>{switch(e.type){case"error":return h(Icon,{ariaLabel:translate("kol-error"),icon:"codicon codicon-error",heading:e.heading});case"info":return h(Icon,{ariaLabel:translate("kol-info"),icon:"codicon codicon-info",heading:e.heading});case"warning":return h(Icon,{ariaLabel:translate("kol-warning"),icon:"codicon codicon-warning",heading:e.heading});case"success":return h(Icon,{ariaLabel:translate("kol-success"),icon:"codicon codicon-pass",heading:e.heading});default:return h(Icon,{ariaLabel:translate("kol-message"),icon:"codicon codicon-comment",heading:e.heading})}},KolAlert=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.close=()=>{var e;void 0!==(null===(e=this._on)||void 0===e?void 0:e.onClose)&&this._on.onClose(new Event("Close"))},this.on={onClick:this.close},this.validateOnValue=e=>"object"==typeof e&&null!==e&&"function"==typeof e.onClose,this._alert=!1,this._hasCloser=!1,this._heading=void 0,this._level=1,this._on=void 0,this._type="default",this._variant="msg",this.state={_level:1}}render(){var e;if(this.state._alert){try{Log.debug(["Navigator should vibrate ...",navigator.vibrate([100,75,100,75,100])])}catch(e){Log.debug("Navigator does not support vibration.")}setTimeout((()=>{this.validateAlert(!1)}),1e4)}return h(Host,null,h("div",{class:{[this.state._type]:!0,[this.state._variant]:!0},role:this.state._alert?"alert":void 0},h("div",{class:"heading"},h(AlertIcon,{heading:this.state._heading,type:this.state._type}),h("div",null,"string"==typeof this.state._heading&&(null===(e=this.state._heading)||void 0===e?void 0:e.length)>0&&h("kol-heading-wc",{_headline:this.state._heading,_level:this.state._level}),"msg"===this._variant&&h("div",{class:"content"},h("slot",null))),this.state._hasCloser&&h("kol-button-wc",{class:"close",_icon:{left:{icon:"codicon codicon-close"}},_iconOnly:!0,_label:translate("kol-close"),_on:this.on,_tooltipAlign:"left"})),"card"===this._variant&&h("div",{class:"content"},h("slot",null))))}validateAlert(e){watchBoolean(this,"_alert",e)}validateHasCloser(e){watchBoolean(this,"_hasCloser",e)}validateHeading(e){watchString(this,"_heading",e)}validateLevel(e){watchHeadingLevel(this,e)}validateOn(e){this.validateOnValue(e)&&setState(this,"_on",{onClose:e.onClose})}validateType(e){watchValidator(this,"_type",(e=>"string"==typeof e&&("default"===e||"error"===e||"info"===e||"success"===e||"warning"===e)),new Set("String {success, info, warning, error}"),e)}validateVariant(e){watchValidator(this,"_variant",(e=>"card"===e||"msg"===e),new Set("AlertVariant {card, msg}"),e)}componentWillLoad(){this.validateAlert(this._alert),this.validateHasCloser(this._hasCloser),this.validateHeading(this._heading),this.validateLevel(this._level),this.validateOn(this._on),this.validateType(this._type),this.validateVariant(this._variant)}static get watchers(){return{_alert:["validateAlert"],_hasCloser:["validateHasCloser"],_heading:["validateHeading"],_level:["validateLevel"],_on:["validateOn"],_type:["validateType"],_variant:["validateVariant"]}}static get style(){return{default:defaultStyleCss}}},[33,"kol-alert",{_alert:[516],_hasCloser:[516,"_has-closer"],_heading:[1],_level:[2],_on:[16],_type:[1],_variant:[1],state:[32]}]);function defineCustomElement(){if("undefined"==typeof customElements)return;["kol-alert","kol-badge","kol-button-wc","kol-heading-wc","kol-icon","kol-span-wc","kol-tooltip"].forEach((e=>{switch(e){case"kol-alert":customElements.get(e)||customElements.define(e,KolAlert);break;case"kol-badge":customElements.get(e)||defineCustomElement$6();break;case"kol-button-wc":customElements.get(e)||defineCustomElement$5();break;case"kol-heading-wc":customElements.get(e)||defineCustomElement$4();break;case"kol-icon":customElements.get(e)||defineCustomElement$3();break;case"kol-span-wc":customElements.get(e)||defineCustomElement$2();break;case"kol-tooltip":customElements.get(e)||defineCustomElement$1()}}))}export{KolAlert as K,defineCustomElement as d};
4
+ import{proxyCustomElement,HTMLElement as HTMLElement$1,h,Host}from"@stencil/core/internal/client";import{w as watchTooltipAlignment,d as defineCustomElement$1}from"./component.js";import{l as watchBoolean,t as setEventTarget,K as KoliBriDevHelper,u as getExperimalMode,d as devHint,a as watchValidator,n as nonce,v as propagateFocus,x as devWarning,y as mapStringOrBoolean2String,z as mapBoolean2String,w as watchString,A as a11yHintDisabled,q as setState}from"./prop.validators.js";import{v as validateAriaLabelWithLabel,a as validateIcon,w as watchIconAlign,b as validateLabelWithAriaLabel,d as defineCustomElement$2}from"./component3.js";import{v as validateTabIndex}from"./tab-index.js";import{d as defineCustomElement$3}from"./component2.js";const validateAriaExpanded=(t,a)=>{watchBoolean(t,"_ariaExpanded",a)},validateDisabled=(t,a)=>{watchBoolean(t,"_disabled",a)},searchFormElement=t=>{for(getExperimalMode()&&(devHint("↓ Search form element start."),console.log(t));t instanceof HTMLElement&&"FORM"!==t.tagName&&"KOL-FORM"!==t.tagName;)t=t.parentElement instanceof HTMLElement?t.parentElement:t.parentNode instanceof ShadowRoot?t.parentNode.host:null,getExperimalMode()&&console.log(t);return getExperimalMode()&&devHint("↑ Search form element finished."),t},propagateResetEventToForm=(t={})=>{const a=searchFormElement(t.form);if(a instanceof HTMLElement){const t=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===a.tagName)setEventTarget(t,a),a.dispatchEvent(t);else if("KOL-FORM"===a.tagName){setEventTarget(t,KoliBriDevHelper.querySelector("form",a));const e=a;"object"==typeof e._on&&null!==typeof e._on&&"function"==typeof e._on.onReset&&e._on.onReset(t)}}},propagateSubmitEventToForm=(t={})=>{const a=searchFormElement(t.form);if(a instanceof HTMLElement){const t=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:a});if("FORM"===a.tagName)setEventTarget(t,a),a.dispatchEvent(t);else if("KOL-FORM"===a.tagName){setEventTarget(t,KoliBriDevHelper.querySelector("form",a));const e=a;"object"==typeof e._on&&null!==typeof e._on&&"function"==typeof e._on.onSubmit&&e._on.onSubmit(t)}}},watchButtonType=(t,a,e)=>{watchValidator(t,a,(t=>"button"===t||"reset"===t||"submit"===t),new Set(["KoliBriButtonType {button, reset, submit}"]),e)},watchButtonVariant=(t,a,e)=>{watchValidator(t,a,(t=>"primary"===t||"secondary"===t||"normal"===t||"danger"===t||"ghost"===t||"custom"===t),new Set(["KoliBriButtonVariant {primary, secondary, normal, danger, ghost, custom}"]),e,{defaultValue:"normal"})},KolButtonWc=proxyCustomElement(class extends HTMLElement$1{constructor(){super(),this.__registerHost(),this.nonce=nonce(),this.catchRef=t=>{this.ref=t,propagateFocus(this.host,this.ref)},this.onClick=t=>{var a,e;"submit"===this.state._type?propagateSubmitEventToForm({form:this.host,ref:this.ref}):"reset"===this.state._type?propagateResetEventToForm({form:this.host,ref:this.ref}):"function"==typeof(null===(a=this.state._on)||void 0===a?void 0:a.onClick)?(t.stopPropagation(),setEventTarget(t,this.ref),null===(e=this.state._on)||void 0===e||e.onClick(t,this.state._value)):devWarning("There was no button click callback configured! (_on.onClick)")},this._accessKey=void 0,this._ariaControls=void 0,this._ariaCurrent=void 0,this._ariaExpanded=void 0,this._ariaLabel=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._icon=void 0,this._iconAlign=void 0,this._iconOnly=!1,this._id=void 0,this._label=void 0,this._on=void 0,this._role=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._type="button",this._value=void 0,this._variant="normal",this.state={_icon:{},_label:"",_on:{},_type:"button",_variant:"normal"}}render(){return h(Host,null,h("button",Object.assign({ref:this.catchRef,accessKey:this.state._accessKey,"aria-controls":this.state._ariaControls,"aria-current":mapStringOrBoolean2String(this.state._ariaCurrent),"aria-expanded":mapBoolean2String(this.state._ariaExpanded),"aria-label":!1===this.state._iconOnly?this.state._ariaLabel:void 0,"aria-labelledby":!0===this.state._iconOnly?this.nonce:void 0,"aria-selected":mapStringOrBoolean2String(this.state._ariaSelected),class:{[this.state._variant]:"custom"!==this.state._variant,[this.state._customClass]:"custom"===this.state._variant&&"string"==typeof this.state._customClass&&this.state._customClass.length>0,"icon-only":!0===this.state._iconOnly},disabled:this.state._disabled,id:this.state._id},this.state._on,{onClick:this.onClick,role:this.state._role,tabIndex:this.state._tabIndex,type:this.state._type}),h("kol-span-wc",{_icon:this._icon,_iconOnly:this._iconOnly,_label:this.state._label},h("slot",{name:"expert",slot:"expert"}))),!0===this.state._iconOnly&&h("kol-tooltip",{"aria-hidden":"true",_align:this.state._tooltipAlign,_id:this.nonce,_label:this.state._ariaLabel||this.state._label}))}validateAccessKey(t){watchString(this,"_accessKey",t)}validateAriaControls(t){watchString(this,"_ariaControls",t)}validateAriaCurrent(t){watchValidator(this,"_ariaControls",(t=>!0===t||"date"===t||"location"===t||"page"===t||"step"===t||"time"===t),new Set(["boolean","String {data, location, page, step, time}"]),t)}validateAriaExpanded(t){validateAriaExpanded(this,t)}validateAriaLabel(t){validateAriaLabelWithLabel(this,t)}validateAriaSelected(t){watchBoolean(this,"_ariaSelected",t)}validateCustomClass(t){watchString(this,"_customClass",t,{defaultValue:void 0})}validateDisabled(t){validateDisabled(this,t),!0===t&&a11yHintDisabled()}validateIcon(t){validateIcon(this,t)}validateIconAlign(t){watchIconAlign(this,t)}validateIconOnly(t){watchBoolean(this,"_iconOnly",t,{defaultValue:!1})}validateId(t){watchString(this,"_id",t)}validateLabel(t){validateLabelWithAriaLabel(this,t)}validateOn(t){"object"==typeof t&&null!==t&&(this.state=Object.assign(Object.assign({},this.state),{_on:t}))}validateRole(t){watchString(this,"_role",t)}validateTabIndex(t){validateTabIndex(this,t)}validateTooltipAlign(t){watchTooltipAlignment(this,"_tooltipAlign",t)}validateType(t){watchButtonType(this,"_type",t)}validateValue(t){setState(this,"_value",t)}validateVariant(t){watchButtonVariant(this,"_variant",t)}componentWillLoad(){this.validateAccessKey(this._accessKey),this.validateAriaControls(this._ariaControls),this.validateAriaCurrent(this._ariaCurrent),this.validateAriaExpanded(this._ariaExpanded),this.validateAriaLabel(this._ariaLabel),this.validateAriaSelected(this._ariaSelected),this.validateCustomClass(this._customClass),this.validateDisabled(this._disabled),this.validateIcon(this._icon),this.validateIconAlign(this._iconAlign),this.validateIconOnly(this._iconOnly),this.validateId(this._id),this.validateLabel(this._label),this.validateOn(this._on),this.validateRole(this._role),this.validateTabIndex(this._tabIndex),this.validateTooltipAlign(this._tooltipAlign),this.validateType(this._type),this.validateValue(this._value),this.validateVariant(this._variant)}get host(){return this}static get watchers(){return{_accessKey:["validateAccessKey"],_ariaControls:["validateAriaControls"],_ariaCurrent:["validateAriaCurrent"],_ariaExpanded:["validateAriaExpanded"],_ariaLabel:["validateAriaLabel"],_ariaSelected:["validateAriaSelected"],_customClass:["validateCustomClass"],_disabled:["validateDisabled"],_icon:["validateIcon"],_iconAlign:["validateIconAlign"],_iconOnly:["validateIconOnly"],_id:["validateId"],_label:["validateLabel"],_on:["validateOn"],_role:["validateRole"],_tabIndex:["validateTabIndex"],_tooltipAlign:["validateTooltipAlign"],_type:["validateType"],_value:["validateValue"],_variant:["validateVariant"]}}},[4,"kol-button-wc",{_accessKey:[1,"_access-key"],_ariaControls:[1,"_aria-controls"],_ariaCurrent:[8,"_aria-current"],_ariaExpanded:[516,"_aria-expanded"],_ariaLabel:[1025,"_aria-label"],_ariaSelected:[516,"_aria-selected"],_customClass:[1,"_custom-class"],_disabled:[516],_icon:[1],_iconAlign:[1,"_icon-align"],_iconOnly:[516,"_icon-only"],_id:[1],_label:[1025],_on:[16],_role:[1],_tabIndex:[2,"_tab-index"],_tooltipAlign:[1,"_tooltip-align"],_type:[1],_value:[16],_variant:[1],state:[32]}]);function defineCustomElement(){if("undefined"==typeof customElements)return;["kol-button-wc","kol-icon","kol-span-wc","kol-tooltip"].forEach((t=>{switch(t){case"kol-button-wc":customElements.get(t)||customElements.define(t,KolButtonWc);break;case"kol-icon":customElements.get(t)||defineCustomElement$3();break;case"kol-span-wc":customElements.get(t)||defineCustomElement$2();break;case"kol-tooltip":customElements.get(t)||defineCustomElement$1()}}))}export{KolButtonWc as K,validateDisabled as a,watchButtonType as b,defineCustomElement as d,propagateSubmitEventToForm as p,validateAriaExpanded as v,watchButtonVariant as w};