@public-ui/components 1.5.0-rc.1 → 1.5.0-rc.11

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 (866) hide show
  1. package/cheat-sheet.html +43 -33
  2. package/custom-elements.json +172 -3034
  3. package/dist/cjs/a11y.tipps-6f0ad06e.js +4 -0
  4. package/dist/cjs/a11y.tipps-6f0ad06e.js.map +1 -0
  5. package/dist/cjs/{app-globals-c6303780.js → app-globals-0cf91d90.js} +1 -1
  6. package/dist/cjs/{app-globals-c6303780.js.map → app-globals-0cf91d90.js.map} +1 -1
  7. package/dist/cjs/{button-link-89ed5382.js → button-link-19d8a9a8.js} +1 -1
  8. package/dist/cjs/button-link-19d8a9a8.js.map +1 -0
  9. package/dist/cjs/{controller-d0743a95.js → controller-34b64835.js} +1 -1
  10. package/dist/cjs/controller-34b64835.js.map +1 -0
  11. package/dist/cjs/{controller-ce13f0a2.js → controller-62ae6225.js} +1 -1
  12. package/dist/cjs/{controller-ce13f0a2.js.map → controller-62ae6225.js.map} +1 -1
  13. package/dist/cjs/{controller-94b357a3.js → controller-6dbcc733.js} +1 -1
  14. package/dist/cjs/controller-6dbcc733.js.map +1 -0
  15. package/dist/cjs/controller-a1c1ce64.js +4 -0
  16. package/dist/cjs/controller-a1c1ce64.js.map +1 -0
  17. package/dist/cjs/controller-a753291e.js +4 -0
  18. package/dist/cjs/controller-a753291e.js.map +1 -0
  19. package/dist/cjs/{controller-2405dd04.js → controller-ae0aa1fb.js} +1 -1
  20. package/dist/cjs/controller-ae0aa1fb.js.map +1 -0
  21. package/dist/cjs/{controller-icon-b87565c4.js → controller-icon-295d3454.js} +1 -1
  22. package/dist/cjs/controller-icon-295d3454.js.map +1 -0
  23. package/dist/cjs/{dev.utils-7123fb34.js → dev.utils-d69c0a9f.js} +1 -1
  24. package/dist/cjs/{dev.utils-7123fb34.js.map → dev.utils-d69c0a9f.js.map} +1 -1
  25. package/dist/cjs/{devtools-a9a95b0a.js → devtools-98551855.js} +1 -1
  26. package/dist/cjs/{devtools-a9a95b0a.js.map → devtools-98551855.js.map} +1 -1
  27. package/dist/cjs/{i18n-5d946612.js → i18n-32046f50.js} +1 -1
  28. package/dist/cjs/{i18n-5d946612.js.map → i18n-32046f50.js.map} +1 -1
  29. package/dist/cjs/{icon-ccf4ad42.js → icon-71b1bd66.js} +1 -1
  30. package/dist/cjs/icon-71b1bd66.js.map +1 -0
  31. package/dist/cjs/index-a96d7f87.js +4 -0
  32. package/dist/cjs/index-a96d7f87.js.map +1 -0
  33. package/dist/cjs/index-eb52922f.js +4 -0
  34. package/dist/cjs/index-eb52922f.js.map +1 -0
  35. package/dist/cjs/index.cjs.js +1 -1
  36. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  37. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  38. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  39. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  40. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  41. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  42. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  43. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  44. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  45. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  46. package/dist/cjs/kol-button-group-wc.cjs.entry.js.map +1 -1
  47. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  48. package/dist/cjs/kol-button-group.cjs.entry.js.map +1 -1
  49. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  50. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  51. package/dist/cjs/kol-button-wc_3.cjs.entry.js +4 -0
  52. package/dist/cjs/kol-button-wc_3.cjs.entry.js.map +1 -0
  53. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  55. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  57. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  59. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  61. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  63. package/dist/cjs/kol-icon-font-awesome.cjs.entry.js.map +1 -1
  64. package/dist/cjs/kol-icon-icofont.cjs.entry.js.map +1 -1
  65. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  67. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  69. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-indented-text.cjs.entry.js.map +1 -1
  71. package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  74. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  76. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  78. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  80. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  82. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  84. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  86. package/dist/cjs/kol-input-radio-group.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-input-radio-group.cjs.entry.js.map +1 -1
  88. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  90. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  92. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  94. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  96. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  98. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-link-group.cjs.entry.js.map +1 -1
  100. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  102. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  104. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-logo.cjs.entry.js.map +1 -1
  106. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  108. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  110. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  112. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  114. package/dist/cjs/kol-quote.cjs.entry.js +4 -0
  115. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -0
  116. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  118. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  120. package/dist/cjs/kol-span-wc.cjs.entry.js +4 -0
  121. package/dist/cjs/kol-span-wc.cjs.entry.js.map +1 -0
  122. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-span.cjs.entry.js.map +1 -1
  124. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  126. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-symbol.cjs.entry.js.map +1 -1
  128. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-table.cjs.entry.js.map +1 -1
  130. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  132. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  134. package/dist/cjs/kol-toast.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-toast.cjs.entry.js.map +1 -1
  136. package/dist/cjs/kol-tooltip.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-tooltip.cjs.entry.js.map +1 -1
  138. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  140. package/dist/cjs/kolibri.cjs.js +1 -1
  141. package/dist/cjs/label-dc5092d3.js +4 -0
  142. package/dist/cjs/label-dc5092d3.js.map +1 -0
  143. package/dist/cjs/loader.cjs.js +1 -1
  144. package/dist/cjs/prop.validators-dd1f7878.js +4 -0
  145. package/dist/cjs/prop.validators-dd1f7878.js.map +1 -0
  146. package/dist/cjs/reuse-0fe7470f.js +4 -0
  147. package/dist/cjs/{reuse-bbd0b4e7.js.map → reuse-0fe7470f.js.map} +1 -1
  148. package/dist/cjs/{tab-index-1d448ede.js → tab-index-7bf0cb35.js} +1 -1
  149. package/dist/cjs/{tab-index-1d448ede.js.map → tab-index-7bf0cb35.js.map} +1 -1
  150. package/dist/cjs/{validation-1e8663e2.js → validation-60fd00e2.js} +1 -1
  151. package/dist/cjs/validation-60fd00e2.js.map +1 -0
  152. package/dist/cjs/{validation-2b3c81d9.js → validation-b38b683c.js} +1 -1
  153. package/dist/cjs/{validation-2b3c81d9.js.map → validation-b38b683c.js.map} +1 -1
  154. package/dist/components/component.js +1 -1
  155. package/dist/components/component.js.map +1 -1
  156. package/dist/components/component10.js +1 -1
  157. package/dist/components/component10.js.map +1 -1
  158. package/dist/components/component11.js +1 -1
  159. package/dist/components/component11.js.map +1 -1
  160. package/dist/components/component12.js +1 -1
  161. package/dist/components/component12.js.map +1 -1
  162. package/dist/components/component13.js +1 -1
  163. package/dist/components/component13.js.map +1 -1
  164. package/dist/components/component14.js +4 -0
  165. package/dist/components/component14.js.map +1 -0
  166. package/dist/components/component15.js +4 -0
  167. package/dist/components/component15.js.map +1 -0
  168. package/dist/components/component2.js +1 -1
  169. package/dist/components/component2.js.map +1 -1
  170. package/dist/components/component3.js +1 -1
  171. package/dist/components/component3.js.map +1 -1
  172. package/dist/components/component4.js.map +1 -1
  173. package/dist/components/component5.js +1 -1
  174. package/dist/components/component5.js.map +1 -1
  175. package/dist/components/component6.js +1 -1
  176. package/dist/components/component6.js.map +1 -1
  177. package/dist/components/component7.js +1 -1
  178. package/dist/components/component7.js.map +1 -1
  179. package/dist/components/component8.js +1 -1
  180. package/dist/components/component8.js.map +1 -1
  181. package/dist/components/component9.js +1 -1
  182. package/dist/components/component9.js.map +1 -1
  183. package/dist/components/controller-icon.js +1 -1
  184. package/dist/components/controller-icon.js.map +1 -1
  185. package/dist/components/controller.js +1 -1
  186. package/dist/components/controller.js.map +1 -1
  187. package/dist/components/controller2.js +1 -1
  188. package/dist/components/controller2.js.map +1 -1
  189. package/dist/components/controller3.js +1 -1
  190. package/dist/components/controller3.js.map +1 -1
  191. package/dist/components/controller4.js +1 -1
  192. package/dist/components/controller4.js.map +1 -1
  193. package/dist/components/devtools.js +1 -1
  194. package/dist/components/i18n.js +1 -1
  195. package/dist/components/i18n.js.map +1 -1
  196. package/dist/components/index.js +1 -1
  197. package/dist/components/kol-abbr.js +1 -1
  198. package/dist/components/kol-abbr.js.map +1 -1
  199. package/dist/components/kol-accordion.js +1 -1
  200. package/dist/components/kol-accordion.js.map +1 -1
  201. package/dist/components/kol-alert.js +1 -1
  202. package/dist/components/kol-badge.js +1 -1
  203. package/dist/components/kol-breadcrumb.js +1 -1
  204. package/dist/components/kol-breadcrumb.js.map +1 -1
  205. package/dist/components/kol-button-group-wc.js +1 -1
  206. package/dist/components/kol-button-group.js +1 -1
  207. package/dist/components/kol-button-group.js.map +1 -1
  208. package/dist/components/kol-button-link.js +1 -1
  209. package/dist/components/kol-button-link.js.map +1 -1
  210. package/dist/components/kol-button-wc.js +1 -1
  211. package/dist/components/kol-card.js +1 -1
  212. package/dist/components/kol-card.js.map +1 -1
  213. package/dist/components/kol-details.js +1 -1
  214. package/dist/components/kol-details.js.map +1 -1
  215. package/dist/components/kol-form.js +1 -1
  216. package/dist/components/kol-form.js.map +1 -1
  217. package/dist/components/kol-heading.js +1 -1
  218. package/dist/components/kol-heading.js.map +1 -1
  219. package/dist/components/kol-icon-font-awesome.js.map +1 -1
  220. package/dist/components/kol-icon-icofont.js.map +1 -1
  221. package/dist/components/kol-image.js +1 -1
  222. package/dist/components/kol-image.js.map +1 -1
  223. package/dist/components/kol-indented-text.js +1 -1
  224. package/dist/components/kol-input-adapter-leanup.js +1 -1
  225. package/dist/components/kol-input-adapter-leanup.js.map +1 -1
  226. package/dist/components/kol-input-checkbox.js +1 -1
  227. package/dist/components/kol-input-checkbox.js.map +1 -1
  228. package/dist/components/kol-input-color.js +1 -1
  229. package/dist/components/kol-input-color.js.map +1 -1
  230. package/dist/components/kol-input-date.js +1 -1
  231. package/dist/components/kol-input-date.js.map +1 -1
  232. package/dist/components/kol-input-email.js +1 -1
  233. package/dist/components/kol-input-email.js.map +1 -1
  234. package/dist/components/kol-input-file.js +1 -1
  235. package/dist/components/kol-input-file.js.map +1 -1
  236. package/dist/components/kol-input-number.js +1 -1
  237. package/dist/components/kol-input-password.js +1 -1
  238. package/dist/components/kol-input-password.js.map +1 -1
  239. package/dist/components/kol-input-radio-group.js +1 -1
  240. package/dist/components/kol-input-radio-group.js.map +1 -1
  241. package/dist/components/kol-input-radio.js +1 -1
  242. package/dist/components/kol-input-range.js +1 -1
  243. package/dist/components/kol-input-range.js.map +1 -1
  244. package/dist/components/kol-input-text.js +1 -1
  245. package/dist/components/kol-input-text.js.map +1 -1
  246. package/dist/components/kol-input.js +1 -1
  247. package/dist/components/kol-kolibri.js +1 -1
  248. package/dist/components/kol-kolibri.js.map +1 -1
  249. package/dist/components/kol-link-button.js +1 -1
  250. package/dist/components/kol-link-button.js.map +1 -1
  251. package/dist/components/kol-link-group.js +1 -1
  252. package/dist/components/kol-link-group.js.map +1 -1
  253. package/dist/components/kol-link-wc.js +1 -1
  254. package/dist/components/kol-logo.js +1 -1
  255. package/dist/components/kol-logo.js.map +1 -1
  256. package/dist/components/kol-modal.js +1 -1
  257. package/dist/components/kol-modal.js.map +1 -1
  258. package/dist/components/kol-nav.js +1 -1
  259. package/dist/components/kol-nav.js.map +1 -1
  260. package/dist/components/kol-pagination.js +1 -1
  261. package/dist/components/kol-progress.js +1 -1
  262. package/dist/components/kol-progress.js.map +1 -1
  263. package/dist/components/kol-quote.d.ts +11 -0
  264. package/dist/components/kol-quote.js +4 -0
  265. package/dist/components/kol-quote.js.map +1 -0
  266. package/dist/components/kol-select.js +1 -1
  267. package/dist/components/kol-skip-nav.js +1 -1
  268. package/dist/components/kol-skip-nav.js.map +1 -1
  269. package/dist/components/kol-span.js +1 -1
  270. package/dist/components/kol-span.js.map +1 -1
  271. package/dist/components/kol-spin.js +1 -1
  272. package/dist/components/kol-spin.js.map +1 -1
  273. package/dist/components/kol-symbol.js.map +1 -1
  274. package/dist/components/kol-table.js +1 -1
  275. package/dist/components/kol-table.js.map +1 -1
  276. package/dist/components/kol-tabs.js +1 -1
  277. package/dist/components/kol-tabs.js.map +1 -1
  278. package/dist/components/kol-textarea.js +1 -1
  279. package/dist/components/kol-textarea.js.map +1 -1
  280. package/dist/components/kol-toast.js +1 -1
  281. package/dist/components/kol-toast.js.map +1 -1
  282. package/dist/components/kol-tooltip.js +1 -1
  283. package/dist/components/kol-version.js +1 -1
  284. package/dist/components/kol-version.js.map +1 -1
  285. package/dist/components/prop.validators.js +1 -1
  286. package/dist/components/prop.validators.js.map +1 -1
  287. package/dist/components/shadow.js +1 -1
  288. package/dist/components/shadow.js.map +1 -1
  289. package/dist/components/shadow2.js +1 -1
  290. package/dist/components/shadow2.js.map +1 -1
  291. package/dist/components/tab-index.js +4 -0
  292. package/dist/components/tab-index.js.map +1 -0
  293. package/dist/components/validation.js +1 -1
  294. package/dist/components/validation.js.map +1 -1
  295. package/dist/esm/a11y.tipps-1cea9822.js +4 -0
  296. package/dist/esm/a11y.tipps-1cea9822.js.map +1 -0
  297. package/dist/esm/app-globals-84870228.js +4 -0
  298. package/dist/esm/{app-globals-81f5e91d.js.map → app-globals-84870228.js.map} +1 -1
  299. package/dist/esm/{button-link-3d1888e3.js → button-link-0f3cba87.js} +1 -1
  300. package/dist/esm/button-link-0f3cba87.js.map +1 -0
  301. package/dist/esm/{controller-5bd06546.js → controller-0b0c0e12.js} +1 -1
  302. package/dist/esm/{controller-5bd06546.js.map → controller-0b0c0e12.js.map} +1 -1
  303. package/dist/esm/{controller-9926eaee.js → controller-0bcb86ac.js} +1 -1
  304. package/dist/esm/controller-0bcb86ac.js.map +1 -0
  305. package/dist/esm/{controller-ea28fcf8.js → controller-1827c5e4.js} +1 -1
  306. package/dist/esm/controller-1827c5e4.js.map +1 -0
  307. package/dist/esm/controller-873db1b1.js +4 -0
  308. package/dist/esm/controller-873db1b1.js.map +1 -0
  309. package/dist/esm/{controller-04bee517.js → controller-bc7e1fb9.js} +1 -1
  310. package/dist/esm/controller-bc7e1fb9.js.map +1 -0
  311. package/dist/esm/controller-fd64aa81.js +4 -0
  312. package/dist/esm/controller-fd64aa81.js.map +1 -0
  313. package/dist/esm/{controller-icon-2a9f5c13.js → controller-icon-b3feb2a8.js} +1 -1
  314. package/dist/esm/controller-icon-b3feb2a8.js.map +1 -0
  315. package/dist/esm/{dev.utils-05f4e663.js → dev.utils-157f0499.js} +1 -1
  316. package/dist/esm/{dev.utils-05f4e663.js.map → dev.utils-157f0499.js.map} +1 -1
  317. package/dist/esm/{devtools-640ace8d.js → devtools-cb70c2f9.js} +1 -1
  318. package/dist/esm/{devtools-640ace8d.js.map → devtools-cb70c2f9.js.map} +1 -1
  319. package/dist/esm/{i18n-8e14d822.js → i18n-c97dc260.js} +1 -1
  320. package/dist/esm/{i18n-8e14d822.js.map → i18n-c97dc260.js.map} +1 -1
  321. package/dist/esm/{icon-cab2d129.js → icon-00018c54.js} +1 -1
  322. package/dist/esm/icon-00018c54.js.map +1 -0
  323. package/dist/esm/index-81bd9b41.js +4 -0
  324. package/dist/esm/index-81bd9b41.js.map +1 -0
  325. package/dist/esm/index-a007a589.js +4 -0
  326. package/dist/esm/index-a007a589.js.map +1 -0
  327. package/dist/esm/index.js +1 -1
  328. package/dist/esm/kol-abbr.entry.js +1 -1
  329. package/dist/esm/kol-abbr.entry.js.map +1 -1
  330. package/dist/esm/kol-accordion.entry.js +1 -1
  331. package/dist/esm/kol-accordion.entry.js.map +1 -1
  332. package/dist/esm/kol-alert.entry.js +1 -1
  333. package/dist/esm/kol-alert.entry.js.map +1 -1
  334. package/dist/esm/kol-badge.entry.js +1 -1
  335. package/dist/esm/kol-badge.entry.js.map +1 -1
  336. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  337. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  338. package/dist/esm/kol-button-group-wc.entry.js.map +1 -1
  339. package/dist/esm/kol-button-group.entry.js +1 -1
  340. package/dist/esm/kol-button-group.entry.js.map +1 -1
  341. package/dist/esm/kol-button-link.entry.js +1 -1
  342. package/dist/esm/kol-button-link.entry.js.map +1 -1
  343. package/dist/esm/kol-button-wc_3.entry.js +4 -0
  344. package/dist/esm/kol-button-wc_3.entry.js.map +1 -0
  345. package/dist/esm/kol-button.entry.js +1 -1
  346. package/dist/esm/kol-button.entry.js.map +1 -1
  347. package/dist/esm/kol-card.entry.js +1 -1
  348. package/dist/esm/kol-card.entry.js.map +1 -1
  349. package/dist/esm/kol-details.entry.js +1 -1
  350. package/dist/esm/kol-details.entry.js.map +1 -1
  351. package/dist/esm/kol-form.entry.js +1 -1
  352. package/dist/esm/kol-form.entry.js.map +1 -1
  353. package/dist/esm/kol-heading.entry.js +1 -1
  354. package/dist/esm/kol-heading.entry.js.map +1 -1
  355. package/dist/esm/kol-icon-font-awesome.entry.js.map +1 -1
  356. package/dist/esm/kol-icon-icofont.entry.js.map +1 -1
  357. package/dist/esm/kol-icon.entry.js +1 -1
  358. package/dist/esm/kol-icon.entry.js.map +1 -1
  359. package/dist/esm/kol-image.entry.js +1 -1
  360. package/dist/esm/kol-image.entry.js.map +1 -1
  361. package/dist/esm/kol-indented-text.entry.js +1 -1
  362. package/dist/esm/kol-indented-text.entry.js.map +1 -1
  363. package/dist/esm/kol-input-adapter-leanup.entry.js +1 -1
  364. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  365. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  366. package/dist/esm/kol-input-color.entry.js +1 -1
  367. package/dist/esm/kol-input-color.entry.js.map +1 -1
  368. package/dist/esm/kol-input-date.entry.js +1 -1
  369. package/dist/esm/kol-input-date.entry.js.map +1 -1
  370. package/dist/esm/kol-input-email.entry.js +1 -1
  371. package/dist/esm/kol-input-email.entry.js.map +1 -1
  372. package/dist/esm/kol-input-file.entry.js +1 -1
  373. package/dist/esm/kol-input-file.entry.js.map +1 -1
  374. package/dist/esm/kol-input-number.entry.js +1 -1
  375. package/dist/esm/kol-input-number.entry.js.map +1 -1
  376. package/dist/esm/kol-input-password.entry.js +1 -1
  377. package/dist/esm/kol-input-password.entry.js.map +1 -1
  378. package/dist/esm/kol-input-radio-group.entry.js +1 -1
  379. package/dist/esm/kol-input-radio-group.entry.js.map +1 -1
  380. package/dist/esm/kol-input-radio.entry.js +1 -1
  381. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  382. package/dist/esm/kol-input-range.entry.js +1 -1
  383. package/dist/esm/kol-input-range.entry.js.map +1 -1
  384. package/dist/esm/kol-input-text.entry.js +1 -1
  385. package/dist/esm/kol-input-text.entry.js.map +1 -1
  386. package/dist/esm/kol-kolibri.entry.js +1 -1
  387. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  388. package/dist/esm/kol-link-button.entry.js +1 -1
  389. package/dist/esm/kol-link-button.entry.js.map +1 -1
  390. package/dist/esm/kol-link-group.entry.js +1 -1
  391. package/dist/esm/kol-link-group.entry.js.map +1 -1
  392. package/dist/esm/kol-link-wc.entry.js +1 -1
  393. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  394. package/dist/esm/kol-link.entry.js +1 -1
  395. package/dist/esm/kol-link.entry.js.map +1 -1
  396. package/dist/esm/kol-logo.entry.js +1 -1
  397. package/dist/esm/kol-logo.entry.js.map +1 -1
  398. package/dist/esm/kol-modal.entry.js +1 -1
  399. package/dist/esm/kol-modal.entry.js.map +1 -1
  400. package/dist/esm/kol-nav.entry.js +1 -1
  401. package/dist/esm/kol-nav.entry.js.map +1 -1
  402. package/dist/esm/kol-pagination.entry.js +1 -1
  403. package/dist/esm/kol-pagination.entry.js.map +1 -1
  404. package/dist/esm/kol-progress.entry.js +1 -1
  405. package/dist/esm/kol-progress.entry.js.map +1 -1
  406. package/dist/esm/kol-quote.entry.js +4 -0
  407. package/dist/esm/kol-quote.entry.js.map +1 -0
  408. package/dist/esm/kol-select.entry.js +1 -1
  409. package/dist/esm/kol-select.entry.js.map +1 -1
  410. package/dist/esm/kol-skip-nav.entry.js +1 -1
  411. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  412. package/dist/esm/kol-span-wc.entry.js +4 -0
  413. package/dist/esm/kol-span-wc.entry.js.map +1 -0
  414. package/dist/esm/kol-span.entry.js +1 -1
  415. package/dist/esm/kol-span.entry.js.map +1 -1
  416. package/dist/esm/kol-spin.entry.js +1 -1
  417. package/dist/esm/kol-spin.entry.js.map +1 -1
  418. package/dist/esm/kol-symbol.entry.js +1 -1
  419. package/dist/esm/kol-symbol.entry.js.map +1 -1
  420. package/dist/esm/kol-table.entry.js +1 -1
  421. package/dist/esm/kol-table.entry.js.map +1 -1
  422. package/dist/esm/kol-tabs.entry.js +1 -1
  423. package/dist/esm/kol-tabs.entry.js.map +1 -1
  424. package/dist/esm/kol-textarea.entry.js +1 -1
  425. package/dist/esm/kol-textarea.entry.js.map +1 -1
  426. package/dist/esm/kol-toast.entry.js +1 -1
  427. package/dist/esm/kol-toast.entry.js.map +1 -1
  428. package/dist/esm/kol-tooltip.entry.js +1 -1
  429. package/dist/esm/kol-tooltip.entry.js.map +1 -1
  430. package/dist/esm/kol-version.entry.js +1 -1
  431. package/dist/esm/kol-version.entry.js.map +1 -1
  432. package/dist/esm/kolibri.js +1 -1
  433. package/dist/esm/label-d51b1a57.js +4 -0
  434. package/dist/esm/label-d51b1a57.js.map +1 -0
  435. package/dist/esm/loader.js +1 -1
  436. package/dist/esm/prop.validators-e402ad49.js +4 -0
  437. package/dist/esm/prop.validators-e402ad49.js.map +1 -0
  438. package/dist/esm/{reuse-56bb5a4b.js → reuse-3a02afb9.js} +1 -1
  439. package/dist/esm/{reuse-56bb5a4b.js.map → reuse-3a02afb9.js.map} +1 -1
  440. package/dist/esm/{tab-index-22c62334.js → tab-index-63d1379d.js} +1 -1
  441. package/dist/esm/{tab-index-22c62334.js.map → tab-index-63d1379d.js.map} +1 -1
  442. package/dist/esm/validation-ab9a6c0d.js +4 -0
  443. package/dist/esm/validation-ab9a6c0d.js.map +1 -0
  444. package/dist/esm/validation-b331e3a7.js +4 -0
  445. package/dist/esm/{validation-d9821b54.js.map → validation-b331e3a7.js.map} +1 -1
  446. package/dist/kolibri/a11y.tipps-1cea9822.js +4 -0
  447. package/dist/kolibri/a11y.tipps-1cea9822.js.map +1 -0
  448. package/dist/kolibri/app-globals-84870228.js +4 -0
  449. package/dist/kolibri/assets/bpa-icons/bpa-icons.eot +0 -0
  450. package/dist/kolibri/assets/bpa-icons/bpa-icons.json +1115 -0
  451. package/dist/kolibri/assets/bpa-icons/bpa-icons.svg +432 -0
  452. package/dist/kolibri/assets/bpa-icons/bpa-icons.symbol.svg +1449 -0
  453. package/dist/kolibri/assets/bpa-icons/bpa-icons.ttf +0 -0
  454. package/dist/kolibri/assets/bpa-icons/bpa-icons.woff +0 -0
  455. package/dist/kolibri/assets/bpa-icons/bpa-icons.woff2 +0 -0
  456. package/dist/kolibri/assets/bpa-icons/style.css +159 -0
  457. package/dist/kolibri/assets/bpa-icons/style.less +157 -0
  458. package/dist/kolibri/assets/bpa-icons/style.module.less +160 -0
  459. package/dist/kolibri/assets/bpa-icons/style.scss +299 -0
  460. package/dist/kolibri/assets/bpa-icons/style.styl +157 -0
  461. package/dist/kolibri/assets/codicons/LICENSE +395 -0
  462. package/dist/kolibri/assets/codicons/LICENSE-CODE +21 -0
  463. package/dist/kolibri/assets/codicons/codicon.css +19 -1
  464. package/dist/kolibri/assets/codicons/codicon.csv +14 -1
  465. package/dist/kolibri/assets/codicons/codicon.html +112 -8
  466. package/dist/kolibri/assets/codicons/codicon.svg +1 -1
  467. package/dist/kolibri/assets/codicons/codicon.ttf +0 -0
  468. package/dist/kolibri/assets/modal-simulation.js +1 -1
  469. package/dist/kolibri/assets/nav-simulation.js +1 -1
  470. package/dist/kolibri/assets/progress-simulation.js +1 -1
  471. package/dist/kolibri/assets/smart-button-simulation.js +1 -1
  472. package/dist/kolibri/assets/style.css +40 -12
  473. package/dist/kolibri/assets/table-simulation.js +1 -1
  474. package/dist/kolibri/assets/tabler-icons/fonts/tabler-icons.eot +0 -0
  475. package/dist/kolibri/assets/tabler-icons/fonts/tabler-icons.ttf +0 -0
  476. package/dist/kolibri/assets/tabler-icons/fonts/tabler-icons.woff +0 -0
  477. package/dist/kolibri/assets/tabler-icons/fonts/tabler-icons.woff2 +0 -0
  478. package/dist/kolibri/assets/tabler-icons/tabler-icons.css +16057 -0
  479. package/dist/kolibri/assets/tabler-icons/tabler-icons.html +36226 -0
  480. package/dist/kolibri/assets/tabler-icons/tabler-icons.min.css +4 -0
  481. package/dist/kolibri/assets/tabler-icons/tabler-icons.png +0 -0
  482. package/dist/kolibri/assets/tabler-icons/tabler-icons.scss +8058 -0
  483. package/dist/kolibri/assets/toast-simulation.js +1 -1
  484. package/dist/kolibri/assets/tooltip-simulation.js +1 -0
  485. package/dist/kolibri/button-link-0f3cba87.js +4 -0
  486. package/dist/kolibri/button-link-0f3cba87.js.map +1 -0
  487. package/dist/kolibri/controller-0b0c0e12.js +4 -0
  488. package/dist/kolibri/{controller-9926eaee.js → controller-0bcb86ac.js} +1 -1
  489. package/dist/kolibri/controller-0bcb86ac.js.map +1 -0
  490. package/dist/kolibri/{controller-ea28fcf8.js → controller-1827c5e4.js} +1 -1
  491. package/dist/kolibri/controller-1827c5e4.js.map +1 -0
  492. package/dist/kolibri/{controller-32fdeebb.js → controller-873db1b1.js} +1 -1
  493. package/dist/kolibri/controller-873db1b1.js.map +1 -0
  494. package/dist/kolibri/{controller-04bee517.js → controller-bc7e1fb9.js} +1 -1
  495. package/dist/kolibri/controller-bc7e1fb9.js.map +1 -0
  496. package/dist/kolibri/controller-fd64aa81.js +4 -0
  497. package/dist/kolibri/controller-fd64aa81.js.map +1 -0
  498. package/dist/kolibri/controller-icon-b3feb2a8.js +4 -0
  499. package/dist/kolibri/controller-icon-b3feb2a8.js.map +1 -0
  500. package/dist/kolibri/{dev.utils-05f4e663.js → dev.utils-157f0499.js} +1 -1
  501. package/dist/kolibri/dev.utils-157f0499.js.map +1 -0
  502. package/dist/kolibri/{devtools-640ace8d.js → devtools-cb70c2f9.js} +1 -1
  503. package/dist/kolibri/{i18n-8e14d822.js → i18n-c97dc260.js} +1 -1
  504. package/dist/kolibri/{icon-cab2d129.js → icon-00018c54.js} +1 -1
  505. package/dist/kolibri/icon-00018c54.js.map +1 -0
  506. package/dist/kolibri/index-81bd9b41.js +4 -0
  507. package/dist/kolibri/index-81bd9b41.js.map +1 -0
  508. package/dist/kolibri/index-a007a589.js +4 -0
  509. package/dist/kolibri/index-a007a589.js.map +1 -0
  510. package/dist/kolibri/index.esm.js +1 -1
  511. package/dist/kolibri/kol-abbr.entry.js +1 -1
  512. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  513. package/dist/kolibri/kol-accordion.entry.js +1 -1
  514. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  515. package/dist/kolibri/kol-alert.entry.js +1 -1
  516. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  517. package/dist/kolibri/kol-badge.entry.js +1 -1
  518. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  519. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  520. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  521. package/dist/kolibri/kol-button-group-wc.entry.js.map +1 -1
  522. package/dist/kolibri/kol-button-group.entry.js +1 -1
  523. package/dist/kolibri/kol-button-group.entry.js.map +1 -1
  524. package/dist/kolibri/kol-button-link.entry.js +1 -1
  525. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  526. package/dist/kolibri/kol-button-wc_3.entry.js +4 -0
  527. package/dist/kolibri/kol-button-wc_3.entry.js.map +1 -0
  528. package/dist/kolibri/kol-button.entry.js +1 -1
  529. package/dist/kolibri/kol-button.entry.js.map +1 -1
  530. package/dist/kolibri/kol-card.entry.js +1 -1
  531. package/dist/kolibri/kol-card.entry.js.map +1 -1
  532. package/dist/kolibri/kol-details.entry.js +1 -1
  533. package/dist/kolibri/kol-details.entry.js.map +1 -1
  534. package/dist/kolibri/kol-form.entry.js +1 -1
  535. package/dist/kolibri/kol-form.entry.js.map +1 -1
  536. package/dist/kolibri/kol-heading.entry.js +1 -1
  537. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  538. package/dist/kolibri/kol-icon-font-awesome.entry.js.map +1 -1
  539. package/dist/kolibri/kol-icon-icofont.entry.js.map +1 -1
  540. package/dist/kolibri/kol-icon.entry.js +1 -1
  541. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  542. package/dist/kolibri/kol-image.entry.js +1 -1
  543. package/dist/kolibri/kol-image.entry.js.map +1 -1
  544. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  545. package/dist/kolibri/kol-indented-text.entry.js.map +1 -1
  546. package/dist/kolibri/kol-input-adapter-leanup.entry.js +1 -1
  547. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  548. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  549. package/dist/kolibri/kol-input-color.entry.js +1 -1
  550. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  551. package/dist/kolibri/kol-input-date.entry.js +1 -1
  552. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  553. package/dist/kolibri/kol-input-email.entry.js +1 -1
  554. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  555. package/dist/kolibri/kol-input-file.entry.js +1 -1
  556. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  557. package/dist/kolibri/kol-input-number.entry.js +1 -1
  558. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  559. package/dist/kolibri/kol-input-password.entry.js +1 -1
  560. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  561. package/dist/kolibri/kol-input-radio-group.entry.js +1 -1
  562. package/dist/kolibri/kol-input-radio-group.entry.js.map +1 -1
  563. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  564. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  565. package/dist/kolibri/kol-input-range.entry.js +1 -1
  566. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  567. package/dist/kolibri/kol-input-text.entry.js +1 -1
  568. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  569. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  570. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  571. package/dist/kolibri/kol-link-button.entry.js +1 -1
  572. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  573. package/dist/kolibri/kol-link-group.entry.js +1 -1
  574. package/dist/kolibri/kol-link-group.entry.js.map +1 -1
  575. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  576. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  577. package/dist/kolibri/kol-link.entry.js +1 -1
  578. package/dist/kolibri/kol-link.entry.js.map +1 -1
  579. package/dist/kolibri/kol-logo.entry.js +1 -1
  580. package/dist/kolibri/kol-logo.entry.js.map +1 -1
  581. package/dist/kolibri/kol-modal.entry.js +1 -1
  582. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  583. package/dist/kolibri/kol-nav.entry.js +1 -1
  584. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  585. package/dist/kolibri/kol-pagination.entry.js +1 -1
  586. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  587. package/dist/kolibri/kol-progress.entry.js +1 -1
  588. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  589. package/dist/kolibri/kol-quote.entry.js +4 -0
  590. package/dist/kolibri/kol-quote.entry.js.map +1 -0
  591. package/dist/kolibri/kol-select.entry.js +1 -1
  592. package/dist/kolibri/kol-select.entry.js.map +1 -1
  593. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  594. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  595. package/dist/kolibri/kol-span-wc.entry.js +4 -0
  596. package/dist/kolibri/kol-span-wc.entry.js.map +1 -0
  597. package/dist/kolibri/kol-span.entry.js +1 -1
  598. package/dist/kolibri/kol-span.entry.js.map +1 -1
  599. package/dist/kolibri/kol-spin.entry.js +1 -1
  600. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  601. package/dist/kolibri/kol-symbol.entry.js +1 -1
  602. package/dist/kolibri/kol-symbol.entry.js.map +1 -1
  603. package/dist/kolibri/kol-table.entry.js +1 -1
  604. package/dist/kolibri/kol-table.entry.js.map +1 -1
  605. package/dist/kolibri/kol-tabs.entry.js +1 -1
  606. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  607. package/dist/kolibri/kol-textarea.entry.js +1 -1
  608. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  609. package/dist/kolibri/kol-toast.entry.js +1 -1
  610. package/dist/kolibri/kol-toast.entry.js.map +1 -1
  611. package/dist/kolibri/kol-tooltip.entry.js +1 -1
  612. package/dist/kolibri/kol-tooltip.entry.js.map +1 -1
  613. package/dist/kolibri/kol-version.entry.js +1 -1
  614. package/dist/kolibri/kol-version.entry.js.map +1 -1
  615. package/dist/kolibri/kolibri.esm.js +1 -1
  616. package/dist/kolibri/kolibri.esm.js.map +1 -1
  617. package/dist/kolibri/label-d51b1a57.js +4 -0
  618. package/dist/kolibri/label-d51b1a57.js.map +1 -0
  619. package/dist/kolibri/prop.validators-e402ad49.js +4 -0
  620. package/dist/kolibri/prop.validators-e402ad49.js.map +1 -0
  621. package/dist/kolibri/reuse-3a02afb9.js.map +1 -0
  622. package/dist/kolibri/tab-index-63d1379d.js +4 -0
  623. package/dist/kolibri/validation-ab9a6c0d.js +4 -0
  624. package/dist/kolibri/validation-ab9a6c0d.js.map +1 -0
  625. package/dist/kolibri/{validation-d9821b54.js → validation-b331e3a7.js} +1 -1
  626. package/dist/types/components/@deprecated/input/controller.d.ts +4 -0
  627. package/dist/types/components/abbr/component.d.ts +5 -16
  628. package/dist/types/components/abbr/test/html.mock.d.ts +1 -1
  629. package/dist/types/components/abbr/types.d.ts +14 -0
  630. package/dist/types/components/accordion/component.d.ts +2 -20
  631. package/dist/types/components/accordion/test/html.mock.d.ts +1 -1
  632. package/dist/types/components/accordion/types.d.ts +21 -0
  633. package/dist/types/components/alert/component.d.ts +2 -18
  634. package/dist/types/components/alert/test/html.mock.d.ts +1 -1
  635. package/dist/types/components/alert/types.d.ts +24 -0
  636. package/dist/types/components/breadcrumb/component.d.ts +5 -5
  637. package/dist/types/components/button/component.d.ts +6 -6
  638. package/dist/types/components/button/shadow.d.ts +4 -4
  639. package/dist/types/components/button/test/html.mock.d.ts +1 -1
  640. package/dist/types/components/button-link/component.d.ts +3 -3
  641. package/dist/types/components/card/component.d.ts +2 -2
  642. package/dist/types/components/form/controller.d.ts +2 -2
  643. package/dist/types/components/icon/component.d.ts +1 -1
  644. package/dist/types/components/image/test/html.mock.d.ts +2 -0
  645. package/dist/types/components/image/types.d.ts +1 -0
  646. package/dist/types/components/input/types.d.ts +5 -8
  647. package/dist/types/components/input-checkbox/component.d.ts +2 -2
  648. package/dist/types/components/input-checkbox/controller.d.ts +1 -1
  649. package/dist/types/components/input-checkbox/types.d.ts +5 -8
  650. package/dist/types/components/input-color/component.d.ts +1 -1
  651. package/dist/types/components/input-date/component.d.ts +1 -1
  652. package/dist/types/components/input-date/types.d.ts +1 -1
  653. package/dist/types/components/input-email/component.d.ts +1 -1
  654. package/dist/types/components/input-email/types.d.ts +3 -2
  655. package/dist/types/components/input-file/component.d.ts +1 -1
  656. package/dist/types/components/input-number/component.d.ts +1 -1
  657. package/dist/types/components/input-number/types.d.ts +1 -0
  658. package/dist/types/components/input-password/component.d.ts +1 -1
  659. package/dist/types/components/input-password/types.d.ts +1 -0
  660. package/dist/types/components/input-radio/component.d.ts +1 -1
  661. package/dist/types/components/input-radio-group/component.d.ts +1 -1
  662. package/dist/types/components/input-range/component.d.ts +1 -1
  663. package/dist/types/components/input-text/component.d.ts +2 -2
  664. package/dist/types/components/input-text/controller.d.ts +2 -3
  665. package/dist/types/components/input-text/types.d.ts +3 -3
  666. package/dist/types/components/link/component.d.ts +6 -12
  667. package/dist/types/components/link/shadow.d.ts +4 -4
  668. package/dist/types/components/link-button/component.d.ts +5 -13
  669. package/dist/types/components/link-group/component.d.ts +7 -7
  670. package/dist/types/components/modal/component.d.ts +0 -4
  671. package/dist/types/components/nav/component.d.ts +18 -19
  672. package/dist/types/components/nav/validation.d.ts +3 -3
  673. package/dist/types/components/pagination/component.d.ts +5 -5
  674. package/dist/types/components/quote/shadow.d.ts +15 -0
  675. package/dist/types/components/quote/test/html.mock.d.ts +6 -0
  676. package/dist/types/components/quote/types.d.ts +22 -0
  677. package/dist/types/components/select/component.d.ts +1 -1
  678. package/dist/types/components/select/types.d.ts +1 -0
  679. package/dist/types/components/skip-nav/component.d.ts +5 -5
  680. package/dist/types/components/tabs/component.d.ts +6 -6
  681. package/dist/types/components/textarea/component.d.ts +1 -1
  682. package/dist/types/components/textarea/types.d.ts +5 -6
  683. package/dist/types/components/toast/component.d.ts +3 -4
  684. package/dist/types/components/toast/toaster.d.ts +1 -1
  685. package/dist/types/components/tooltip/component.d.ts +4 -4
  686. package/dist/types/components.d.ts +139 -92
  687. package/dist/types/core/declare.d.ts +10 -0
  688. package/dist/types/i18n.d.ts +1 -1
  689. package/dist/types/index.d.ts +1 -1
  690. package/dist/types/schema/index.d.ts +1 -1
  691. package/dist/types/types/button-link-text.d.ts +30 -0
  692. package/dist/types/types/button-link.d.ts +17 -34
  693. package/dist/types/types/icon.d.ts +10 -32
  694. package/dist/types/types/props/adjust-height.d.ts +5 -0
  695. package/dist/types/types/props/alert.d.ts +5 -0
  696. package/dist/types/types/props/alignment.d.ts +1 -1
  697. package/dist/types/types/props/aria-current.d.ts +6 -0
  698. package/dist/types/types/props/aria-expanded.d.ts +5 -0
  699. package/dist/types/types/props/aria-selected.d.ts +5 -0
  700. package/dist/types/types/props/checked.d.ts +5 -0
  701. package/dist/types/types/props/collapsible.d.ts +5 -0
  702. package/dist/types/types/props/compact.d.ts +5 -0
  703. package/dist/types/types/props/disabled.d.ts +5 -0
  704. package/dist/types/types/props/has-closer.d.ts +5 -0
  705. package/dist/types/types/props/has-compact-button.d.ts +5 -0
  706. package/dist/types/types/props/has-counter.d.ts +5 -0
  707. package/dist/types/types/props/has-footer.d.ts +5 -0
  708. package/dist/types/types/props/hide-label.d.ts +5 -0
  709. package/dist/types/{utils/validators → types/props}/icon.d.ts +8 -4
  710. package/dist/types/types/props/indeterminate.d.ts +5 -0
  711. package/dist/types/types/props/index.d.ts +1 -0
  712. package/dist/types/{utils/validators → types/props}/label.d.ts +7 -3
  713. package/dist/types/types/props/multiple.d.ts +5 -0
  714. package/dist/types/types/props/open.d.ts +5 -0
  715. package/dist/types/types/props/read-only.d.ts +5 -0
  716. package/dist/types/types/props/required.d.ts +5 -0
  717. package/dist/types/types/props/show.d.ts +6 -0
  718. package/dist/types/types/props/stealth.d.ts +5 -0
  719. package/dist/types/types/props/touched.d.ts +5 -0
  720. package/dist/types/utils/a11y.tipps.d.ts +1 -0
  721. package/dist/types/utils/prop.validators.d.ts +2 -2
  722. package/dist/types/utils/reuse.d.ts +1 -1
  723. package/dist/types/utils/validators/alignment.d.ts +2 -2
  724. package/doc/abbr.md +1 -28
  725. package/doc/accordion.md +1 -38
  726. package/doc/alert.md +1 -26
  727. package/doc/badge.md +8 -32
  728. package/doc/breadcrumb.md +5 -40
  729. package/doc/button-link.md +20 -45
  730. package/doc/button.md +28 -53
  731. package/doc/card.md +0 -30
  732. package/doc/components.md +3 -3
  733. package/doc/details.md +0 -23
  734. package/doc/icon-font-awesome.md +1 -1
  735. package/doc/icon-icofont.md +1 -1
  736. package/doc/icon.md +14 -7
  737. package/doc/indented-text.md +0 -23
  738. package/doc/input-adapter-leanup.md +1 -3
  739. package/doc/input-checkbox.md +21 -46
  740. package/doc/input-color.md +26 -51
  741. package/doc/input-date.md +25 -50
  742. package/doc/input-email.md +26 -51
  743. package/doc/input-file.md +20 -45
  744. package/doc/input-number.md +26 -51
  745. package/doc/input-password.md +24 -49
  746. package/doc/input-radio-group.md +2 -4
  747. package/doc/input-radio.md +2 -27
  748. package/doc/input-range.md +21 -46
  749. package/doc/input-text.md +26 -51
  750. package/doc/kolibri.md +0 -23
  751. package/doc/link-button.md +21 -48
  752. package/doc/link-group.md +2 -29
  753. package/doc/link.md +25 -59
  754. package/doc/logo.md +0 -23
  755. package/doc/modal.md +0 -24
  756. package/doc/nav.md +19 -47
  757. package/doc/pagination.md +1 -26
  758. package/doc/progress.md +0 -23
  759. package/doc/quote.md +49 -0
  760. package/doc/select.md +26 -58
  761. package/doc/skip-nav.md +5 -39
  762. package/doc/span.md +7 -30
  763. package/doc/spin.md +0 -23
  764. package/doc/table.md +8 -33
  765. package/doc/tabs.md +2 -27
  766. package/doc/textarea.md +23 -48
  767. package/doc/toast.md +1 -26
  768. package/doc/tooltip.md +3 -28
  769. package/doc/version.md +1 -24
  770. package/jest-test-results.json +1 -1
  771. package/package.json +1 -1
  772. package/vscode-custom-data.json +50 -21
  773. package/dist/cjs/a11y.tipps-4af0092d.js +0 -4
  774. package/dist/cjs/a11y.tipps-4af0092d.js.map +0 -1
  775. package/dist/cjs/button-link-89ed5382.js.map +0 -1
  776. package/dist/cjs/controller-2405dd04.js.map +0 -1
  777. package/dist/cjs/controller-8e2cebc1.js +0 -4
  778. package/dist/cjs/controller-8e2cebc1.js.map +0 -1
  779. package/dist/cjs/controller-94b357a3.js.map +0 -1
  780. package/dist/cjs/controller-d0743a95.js.map +0 -1
  781. package/dist/cjs/controller-dbbddbe7.js +0 -4
  782. package/dist/cjs/controller-dbbddbe7.js.map +0 -1
  783. package/dist/cjs/controller-icon-b87565c4.js.map +0 -1
  784. package/dist/cjs/icon-ccf4ad42.js.map +0 -1
  785. package/dist/cjs/index-e9fcaeca.js +0 -4
  786. package/dist/cjs/index-e9fcaeca.js.map +0 -1
  787. package/dist/cjs/index-ecda65e0.js +0 -4
  788. package/dist/cjs/index-ecda65e0.js.map +0 -1
  789. package/dist/cjs/kol-button-wc_2.cjs.entry.js +0 -4
  790. package/dist/cjs/kol-button-wc_2.cjs.entry.js.map +0 -1
  791. package/dist/cjs/kol-heading-wc_2.cjs.entry.js +0 -4
  792. package/dist/cjs/kol-heading-wc_2.cjs.entry.js.map +0 -1
  793. package/dist/cjs/label-ce9fe285.js +0 -4
  794. package/dist/cjs/label-ce9fe285.js.map +0 -1
  795. package/dist/cjs/prop.validators-69d5cf89.js +0 -4
  796. package/dist/cjs/prop.validators-69d5cf89.js.map +0 -1
  797. package/dist/cjs/reuse-bbd0b4e7.js +0 -4
  798. package/dist/cjs/validation-1e8663e2.js.map +0 -1
  799. package/dist/esm/a11y.tipps-5cdbd5e2.js +0 -4
  800. package/dist/esm/a11y.tipps-5cdbd5e2.js.map +0 -1
  801. package/dist/esm/app-globals-81f5e91d.js +0 -4
  802. package/dist/esm/button-link-3d1888e3.js.map +0 -1
  803. package/dist/esm/controller-04bee517.js.map +0 -1
  804. package/dist/esm/controller-32fdeebb.js +0 -4
  805. package/dist/esm/controller-32fdeebb.js.map +0 -1
  806. package/dist/esm/controller-944c3e03.js +0 -4
  807. package/dist/esm/controller-944c3e03.js.map +0 -1
  808. package/dist/esm/controller-9926eaee.js.map +0 -1
  809. package/dist/esm/controller-ea28fcf8.js.map +0 -1
  810. package/dist/esm/controller-icon-2a9f5c13.js.map +0 -1
  811. package/dist/esm/icon-cab2d129.js.map +0 -1
  812. package/dist/esm/index-4f2a12cc.js +0 -4
  813. package/dist/esm/index-4f2a12cc.js.map +0 -1
  814. package/dist/esm/index-676dbf61.js +0 -4
  815. package/dist/esm/index-676dbf61.js.map +0 -1
  816. package/dist/esm/kol-button-wc_2.entry.js +0 -4
  817. package/dist/esm/kol-button-wc_2.entry.js.map +0 -1
  818. package/dist/esm/kol-heading-wc_2.entry.js +0 -4
  819. package/dist/esm/kol-heading-wc_2.entry.js.map +0 -1
  820. package/dist/esm/label-ea9f2a1a.js +0 -4
  821. package/dist/esm/label-ea9f2a1a.js.map +0 -1
  822. package/dist/esm/prop.validators-769a843a.js +0 -4
  823. package/dist/esm/prop.validators-769a843a.js.map +0 -1
  824. package/dist/esm/validation-d9821b54.js +0 -4
  825. package/dist/esm/validation-f13f1eed.js +0 -4
  826. package/dist/esm/validation-f13f1eed.js.map +0 -1
  827. package/dist/kolibri/a11y.tipps-5cdbd5e2.js +0 -4
  828. package/dist/kolibri/a11y.tipps-5cdbd5e2.js.map +0 -1
  829. package/dist/kolibri/app-globals-81f5e91d.js +0 -4
  830. package/dist/kolibri/button-link-3d1888e3.js +0 -4
  831. package/dist/kolibri/button-link-3d1888e3.js.map +0 -1
  832. package/dist/kolibri/controller-04bee517.js.map +0 -1
  833. package/dist/kolibri/controller-32fdeebb.js.map +0 -1
  834. package/dist/kolibri/controller-5bd06546.js +0 -4
  835. package/dist/kolibri/controller-944c3e03.js +0 -4
  836. package/dist/kolibri/controller-944c3e03.js.map +0 -1
  837. package/dist/kolibri/controller-9926eaee.js.map +0 -1
  838. package/dist/kolibri/controller-ea28fcf8.js.map +0 -1
  839. package/dist/kolibri/controller-icon-2a9f5c13.js +0 -4
  840. package/dist/kolibri/controller-icon-2a9f5c13.js.map +0 -1
  841. package/dist/kolibri/dev.utils-05f4e663.js.map +0 -1
  842. package/dist/kolibri/icon-cab2d129.js.map +0 -1
  843. package/dist/kolibri/index-4f2a12cc.js +0 -4
  844. package/dist/kolibri/index-4f2a12cc.js.map +0 -1
  845. package/dist/kolibri/index-676dbf61.js +0 -4
  846. package/dist/kolibri/index-676dbf61.js.map +0 -1
  847. package/dist/kolibri/kol-button-wc_2.entry.js +0 -4
  848. package/dist/kolibri/kol-button-wc_2.entry.js.map +0 -1
  849. package/dist/kolibri/kol-heading-wc_2.entry.js +0 -4
  850. package/dist/kolibri/kol-heading-wc_2.entry.js.map +0 -1
  851. package/dist/kolibri/label-ea9f2a1a.js +0 -4
  852. package/dist/kolibri/label-ea9f2a1a.js.map +0 -1
  853. package/dist/kolibri/prop.validators-769a843a.js +0 -4
  854. package/dist/kolibri/prop.validators-769a843a.js.map +0 -1
  855. package/dist/kolibri/reuse-56bb5a4b.js.map +0 -1
  856. package/dist/kolibri/tab-index-22c62334.js +0 -4
  857. package/dist/kolibri/validation-f13f1eed.js +0 -4
  858. package/dist/kolibri/validation-f13f1eed.js.map +0 -1
  859. package/dist/types/types/alert.d.ts +0 -6
  860. /package/dist/kolibri/{app-globals-81f5e91d.js.map → app-globals-84870228.js.map} +0 -0
  861. /package/dist/kolibri/{controller-5bd06546.js.map → controller-0b0c0e12.js.map} +0 -0
  862. /package/dist/kolibri/{devtools-640ace8d.js.map → devtools-cb70c2f9.js.map} +0 -0
  863. /package/dist/kolibri/{i18n-8e14d822.js.map → i18n-c97dc260.js.map} +0 -0
  864. /package/dist/kolibri/{reuse-56bb5a4b.js → reuse-3a02afb9.js} +0 -0
  865. /package/dist/kolibri/{tab-index-22c62334.js.map → tab-index-63d1379d.js.map} +0 -0
  866. /package/dist/kolibri/{validation-d9821b54.js.map → validation-b331e3a7.js.map} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@public-ui/components",
3
- "version": "1.5.0-rc.1",
3
+ "version": "1.5.0-rc.11",
4
4
  "license": "EUPL-1.2",
5
5
  "homepage": "https://public-ui.github.io",
6
6
  "bugs": { "url": "https://github.com/public-ui/kolibri/issues", "email": "kolibri@itzbund.de" },
@@ -161,7 +161,7 @@
161
161
  "name": "kol-button",
162
162
  "description": {
163
163
  "kind": "markdown",
164
- "value": "**Buttons** dienen dazu, Benutzer:innen Auswahlmöglichkeiten für Aktionen anzuzeigen und diese in einer klaren Hierarchie anzuordnen. Sie helfen Nutzer:innen, die wichtigsten Aktionen einer Seite oder innerhalb eines Viewports zu finden und ermöglichen es ihm, diese Aktionen auszuführen. Die Beschriftung des Buttons wird verwendet, um Nutzer:innen klar anzuzeigen, welche Aktion ausgelöst wird. Buttons ermöglichen es Nutzer:innen, eine Änderung zu bestätigen, Schritte in einer Aufgabe abzuschließen oder Entscheidungen zu treffen."
164
+ "value": "**Buttons** dienen dazu, Benutzer:innen Auswahlmöglichkeiten für Aktionen anzuzeigen und diese in einer klaren Hierarchie anzuordnen. Sie helfen Nutzer:innen, die wichtigsten Aktionen einer Seite oder innerhalb eines Viewports zu finden und ermöglichen es ihnen, diese Aktionen auszuführen. Die Beschriftung des Buttons wird verwendet, um Nutzer:innen klar anzuzeigen, welche Aktion ausgelöst wird. Buttons ermöglichen es Nutzer:innen, eine Änderung zu bestätigen, Schritte in einer Aufgabe abzuschließen oder Entscheidungen zu treffen."
165
165
  },
166
166
  "attributes": [
167
167
  {
@@ -577,7 +577,7 @@
577
577
  },
578
578
  {
579
579
  "name": "_part",
580
- "description": "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/**"
580
+ "description": "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/)"
581
581
  }
582
582
  ]
583
583
  },
@@ -639,13 +639,10 @@
639
639
  "name": "stop"
640
640
  },
641
641
  {
642
- "name": "tag"
643
- },
644
- {
645
- "name": "heading"
642
+ "name": "ghost"
646
643
  },
647
644
  {
648
- "name": "ghost"
645
+ "name": "tag"
649
646
  },
650
647
  {
651
648
  "name": "search"
@@ -2591,6 +2588,9 @@
2591
2588
  {
2592
2589
  "name": "head-side-virus"
2593
2590
  },
2591
+ {
2592
+ "name": "heading"
2593
+ },
2594
2594
  {
2595
2595
  "name": "headphones"
2596
2596
  },
@@ -5062,15 +5062,6 @@
5062
5062
  {
5063
5063
  "name": "stop"
5064
5064
  },
5065
- {
5066
- "name": "tag"
5067
- },
5068
- {
5069
- "name": "heading"
5070
- },
5071
- {
5072
- "name": "close"
5073
- },
5074
5065
  {
5075
5066
  "name": "page"
5076
5067
  },
@@ -5080,6 +5071,9 @@
5080
5071
  {
5081
5072
  "name": "contrast"
5082
5073
  },
5074
+ {
5075
+ "name": "tag"
5076
+ },
5083
5077
  {
5084
5078
  "name": "disabled"
5085
5079
  },
@@ -5102,7 +5096,7 @@
5102
5096
  "name": "sort"
5103
5097
  },
5104
5098
  {
5105
- "name": "external-link"
5099
+ "name": "close"
5106
5100
  },
5107
5101
  {
5108
5102
  "name": "500px"
@@ -5524,6 +5518,9 @@
5524
5518
  {
5525
5519
  "name": "hammer"
5526
5520
  },
5521
+ {
5522
+ "name": "heading"
5523
+ },
5527
5524
  {
5528
5525
  "name": "heart"
5529
5526
  },
@@ -10744,6 +10741,9 @@
10744
10741
  {
10745
10742
  "name": "exit"
10746
10743
  },
10744
+ {
10745
+ "name": "external-link"
10746
+ },
10747
10747
  {
10748
10748
  "name": "external"
10749
10749
  },
@@ -12793,10 +12793,6 @@
12793
12793
  "name": "_aria-label",
12794
12794
  "description": "Gibt den Text an, der die Navigation von anderen Navigationen differenziert."
12795
12795
  },
12796
- {
12797
- "name": "_show",
12798
- "description": "Gibt an, ob das Modal angezeigt wird."
12799
- },
12800
12796
  {
12801
12797
  "name": "_width",
12802
12798
  "description": "Gibt an, wie breit der Anzeigebereich sein soll (<= max-width: 100%)."
@@ -12993,6 +12989,39 @@
12993
12989
  }
12994
12990
  ]
12995
12991
  },
12992
+ {
12993
+ "name": "kol-quote",
12994
+ "description": {
12995
+ "kind": "markdown",
12996
+ "value": "The quote component is implemented in two variants. The first variant is the default `short` variant as inline quote with quotation marks. The second variant is the indented `long` variant. The indented variant is used to highlight a text passage or information visually.\n\nBoth variants can be extended with a `cite` element. The `cite` element is used to identify the source of a quotation and will be displayed below the quote as a link."
12997
+ },
12998
+ "attributes": [
12999
+ {
13000
+ "name": "_caption",
13001
+ "description": "The caption of the quote."
13002
+ },
13003
+ {
13004
+ "name": "_href",
13005
+ "description": "The href is a URL that designates a source document or message for the information quoted."
13006
+ },
13007
+ {
13008
+ "name": "_quote",
13009
+ "description": "The text of the quote."
13010
+ },
13011
+ {
13012
+ "name": "_variant",
13013
+ "description": "The variant of the quote.",
13014
+ "values": [
13015
+ {
13016
+ "name": "block"
13017
+ },
13018
+ {
13019
+ "name": "inline"
13020
+ }
13021
+ ]
13022
+ }
13023
+ ]
13024
+ },
12996
13025
  {
12997
13026
  "name": "kol-select",
12998
13027
  "description": {
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- "use strict";const dev_utils=require("./dev.utils-7123fb34.js"),a11yCache=new Set,a11yHint=e=>{!1===a11yCache.has(e)&&(a11yCache.add(e),dev_utils.Log.debug(e,{classifier:"✋ a11y",overwriteStyle:"; background-color: #09f"}))},deprecatedCache=new Set,deprecatedHint=e=>{!1===deprecatedCache.has(e)&&(deprecatedCache.add(e),dev_utils.Log.warn(e,{classifier:"🔥 deprecated",forceLog:!0,overwriteStyle:"; background-color: #f00"}))},devCache=new Set,devHint=e=>{!1===devCache.has(e)&&(devCache.add(e),dev_utils.Log.debug(e,{classifier:"💻 dev",overwriteStyle:"; background-color: #f09"}))},featureCache=new Set,featureHint=(e,i=!1)=>{!1===featureCache.has(e)&&(featureCache.add(e),e+=!0===i?" ✅":"",dev_utils.Log.debug(e,{classifier:"🌟 feature",overwriteStyle:"; background-color: #309"}))};devHint("Wir freuen uns über jedes Feedback, Kommentare, Screenshots oder Demo-Links von einer auf KoliBri-basierenden Anwendung (kolibri@itzbund.de). Vielen Dank!");const uiUxCache=new Set,uiUxHint=e=>{!1===uiUxCache.has(e)&&(uiUxCache.add(e),dev_utils.Log.debug(e,{classifier:"📑 ui/ux",overwriteStyle:"; background-color: #060;"}))},a11yHintDisabled=()=>{a11yHint('"Disabled" schränkt die Zugänglichkeit und Sichtbarkeit ein. Wir empfehlen aus Sicht der Barrierefreiheit readonly- statt disabled-Attribut zu verwenden.\n- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae')},a11yHintLabelingLandmarks=e=>{"string"==typeof e&&""!==e||a11yHint("Manche Strukturelemente, wie bspw. der nav-Tag, können mehrfach in einer Webseite verwendet werden. Damit die gleichnamigen Strukturelemente voneinander unterschieden werden können, ist es erforderlich ein Aria-Label zu setzen.\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns")},uiUxHintMillerscheZahl=(e,i=8)=>{var t;i>7&&(t=`[${e}] Innerhalb von Navigationsstrukturen wird empfohlen nicht mehr als 7 Menüpunkte zu verwenden.\n\nLinks:\n- https://de.ryte.com/wiki/Millersche_Zahl\n- https://de.wikipedia.org/wiki/Millersche_Zahl`,!1===uiUxCache.has(t)&&(uiUxCache.add(t),dev_utils.Log.debug(t,{classifier:"📑 ui/ux",overwriteStyle:"; background-color: #060;"})))};exports.a11yHint=a11yHint,exports.a11yHintDisabled=a11yHintDisabled,exports.a11yHintLabelingLandmarks=a11yHintLabelingLandmarks,exports.deprecatedHint=deprecatedHint,exports.devHint=devHint,exports.featureHint=featureHint,exports.uiUxHintMillerscheZahl=uiUxHintMillerscheZahl;
@@ -1 +0,0 @@
1
- {"file":"a11y.tipps-4af0092d.js","mappings":";;;;;;;AAEA,MAAM,SAAS,GAAgB,IAAI,GAAG,EAAU,CAAC;MACpC,QAAQ,GAAG,CAAC,GAAW;EACnC,IAAI,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,KAAK,EAAE;IACjC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACnBA,aAAG,CAAC,KAAK,CAAC,GAAG,EAAE;MACd,UAAU,EAAE,QAAQ;MACpB,cAAc,EAAE,0BAA0B;KAC1C,CAAC,CAAC;GACH;AACF,EAAE;AAEF,MAAM,eAAe,GAAgB,IAAI,GAAG,EAAU,CAAC;MAC1C,cAAc,GAAG,CAAC,GAAW;EACzC,IAAI,eAAe,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,KAAK,EAAE;IACvC,eAAe,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzBA,aAAG,CAAC,IAAI,CAAC,GAAG,EAAE;MACb,UAAU,EAAE,eAAe;MAC3B,QAAQ,EAAE,IAAI;MACd,cAAc,EA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W,yBAAyB,GAAG,CAAC,KAAc;EACvD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,EAAE,EAAE;IAC9C,QAAQ,CACP,qVAAqV,CACrV,CAAC;GACF;AACF,EAAE;MAEW,sBAAsB,GAAG,CAAC,SAAiB,EAAE,MAAM,GAAG,CAAC;EACnE,IAAI,MAAM,GAAG,CAAC,EAAE;IACf,QAAQ,CACP,IAAI,SAAS;;;;gDAIgC,CAC7C,CAAC;GACF;AACF;;;;;;;;;;","names":["Log"],"sources":["./src/utils/a11y.tipps.ts"],"sourcesContent":["import { Log } from './dev.utils';\n\nconst a11yCache: Set<string> = new Set<string>();\nexport const a11yHint = (msg: string): void => {\n\tif (a11yCache.has(msg) === false) {\n\t\ta11yCache.add(msg);\n\t\tLog.debug(msg, {\n\t\t\tclassifier: `✋ a11y`,\n\t\t\toverwriteStyle: '; background-color: #09f',\n\t\t});\n\t}\n};\n\nconst deprecatedCache: Set<string> = new Set<string>();\nexport const deprecatedHint = (msg: string): void => {\n\tif (deprecatedCache.has(msg) === false) {\n\t\tdeprecatedCache.add(msg);\n\t\tLog.warn(msg, {\n\t\t\tclassifier: `🔥 deprecated`,\n\t\t\tforceLog: true,\n\t\t\toverwriteStyle: '; background-color: #f00',\n\t\t});\n\t}\n};\n\nconst devCache: Set<string> = new Set<string>();\nexport const devHint = (msg: string): void => {\n\tif (devCache.has(msg) === false) {\n\t\tdevCache.add(msg);\n\t\tLog.debug(msg, {\n\t\t\tclassifier: `💻 dev`,\n\t\t\toverwriteStyle: '; background-color: #f09',\n\t\t});\n\t}\n};\n\nconst featureCache: Set<string> = new Set<string>();\nexport const featureHint = (msg: string, done = false): void => {\n\tif (featureCache.has(msg) === false) {\n\t\tfeatureCache.add(msg);\n\t\tmsg += done === true ? ' ✅' : '';\n\t\tLog.debug(msg, {\n\t\t\tclassifier: `🌟 feature`,\n\t\t\toverwriteStyle: '; background-color: #309',\n\t\t});\n\t}\n};\ndevHint(\n\t`Wir freuen uns über jedes Feedback, Kommentare, Screenshots oder Demo-Links von einer auf KoliBri-basierenden Anwendung (kolibri@itzbund.de). Vielen Dank!`\n);\n\nconst uiUxCache: Set<string> = new Set<string>();\nconst uiUxHint = (msg: string): void => {\n\tif (uiUxCache.has(msg) === false) {\n\t\tuiUxCache.add(msg);\n\t\tLog.debug(msg, {\n\t\t\tclassifier: `📑 ui/ux`,\n\t\t\toverwriteStyle: '; background-color: #060;',\n\t\t});\n\t}\n};\n\nexport const a11yHintDisabled = (): void => {\n\ta11yHint(\n\t\t`\"Disabled\" schränkt die Zugänglichkeit und Sichtbarkeit ein. Wir empfehlen aus Sicht der Barrierefreiheit readonly- statt disabled-Attribut zu verwenden.\\n- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae`\n\t);\n};\n\nexport const a11yHintLabelingLandmarks = (value: unknown): void => {\n\tif (typeof value !== 'string' || value === '') {\n\t\ta11yHint(\n\t\t\t`Manche Strukturelemente, wie bspw. der nav-Tag, können mehrfach in einer Webseite verwendet werden. Damit die gleichnamigen Strukturelemente voneinander unterschieden werden können, ist es erforderlich ein Aria-Label zu setzen.\\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns`\n\t\t);\n\t}\n};\n\nexport const uiUxHintMillerscheZahl = (className: string, length = 8): void => {\n\tif (length > 7) {\n\t\tuiUxHint(\n\t\t\t`[${className}] Innerhalb von Navigationsstrukturen wird empfohlen nicht mehr als 7 Menüpunkte zu verwenden.\n\nLinks:\n- https://de.ryte.com/wiki/Millersche_Zahl\n- https://de.wikipedia.org/wiki/Millersche_Zahl`\n\t\t);\n\t}\n};\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"button-link-89ed5382.js","mappings":";;;;;;;MAqMa,qBAAqB,GAAG,CAAC,SAAoC,EAAE,QAAgB,EAAE,KAAiB;EAC9GA,8BAAc,CACb,SAAS,EACT,QAAQ,EACR,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,MAAM,EACzF,IAAI,GAAG,CAAC,CAAC,sCAAsC,CAAC,CAAC,EACjD,KAAK,EACL;IACC,YAAY,EAAE,KAAK;GACnB,CACD,CAAC;AACH;;;;","names":["watchValidator"],"sources":["./src/types/button-link.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\nimport { Events } from '../enums/events';\nimport { watchValidator } from '../utils/prop.validators';\nimport { EventCallback, EventValueOrEventCallback } from './callbacks';\nimport { Stringified } from './common';\nimport { KoliBriCustomIcon, KoliBriIconProp } from './icon';\nimport { Alignment } from './props/alignment';\n\n/**\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current#values\n */\nexport type AriaCurrent = boolean | 'page' | 'step' | 'location' | 'date' | 'time';\nexport type AlternativButtonLinkRole = 'button' | 'link' | 'tab';\n\n/**\n * https://twitter.com/housecor/status/1541037184622403584?t=HoUiOAZEcXFeuDl-VWAEZg\n * https://mui.com/material-ui/react-link/#accessibility\n * https://mui.com/material-ui/react-button/#text-button\n */\ntype RequiredButtonAndLinkProps = {\n\tlabel: string;\n};\ntype OptionalButtonAndLinkProps = {\n\tariaControls: string;\n\tariaCurrent: AriaCurrent;\n\tariaExpanded: boolean;\n\tariaLabel: string;\n\tariaSelected: boolean;\n\tdisabled: boolean; // TODO: Link disabled?!\n\ticon: Stringified<KoliBriIconProp>;\n\t/**\n\t * @deprecated\n\t */\n\ticonAlign: Alignment;\n\ticonOnly: boolean;\n\trole: AlternativButtonLinkRole;\n\ttabIndex: number;\n\ttooltipAlign: Alignment;\n};\n\ntype RequiredButtonAndLinkStates = {\n\ticon: {\n\t\ttop?: KoliBriCustomIcon;\n\t\tright?: KoliBriCustomIcon;\n\t\tbottom?: KoliBriCustomIcon;\n\t\tleft?: KoliBriCustomIcon;\n\t};\n\tlabel: string;\n};\ntype OptionalButtonAndLinkStates = {\n\tariaLabel: string;\n\tariaControls: string;\n\tariaCurrent: AriaCurrent;\n\tariaExpanded: boolean;\n\tariaSelected: boolean;\n\tdisabled: boolean;\n\t/**\n\t * @deprecated\n\t */\n\ticonAlign: Alignment;\n\ticonOnly: boolean;\n\trole: AlternativButtonLinkRole;\n\ttabIndex: number;\n\ttooltipAlign: Alignment;\n};\n\n/**\n * Button\n */\nexport type KoliBriButtonType = 'button' | 'reset' | 'submit';\nexport type KoliBriButtonVariant = 'primary' | 'secondary' | 'normal' | 'danger' | 'ghost' | 'custom';\n\nexport type KoliBriButtonCallbacks<T> = {\n\t[Events.onClick]?: EventValueOrEventCallback<MouseEvent, T>;\n\t[Events.onMouseDown]?: EventCallback<MouseEvent>;\n};\n\nexport type KoliBriButtonVariantPropState = {\n\tvariant: KoliBriButtonVariant;\n};\nexport type KoliBriButtonCustomClassPropState = {\n\tcustomClass: string;\n};\n\n/**\n * API ButtonLink\n */\nexport type RequiredButtonLinkProps = RequiredButtonAndLinkProps;\nexport type OptionalButtonLinkProps = OptionalButtonAndLinkProps & {\n\t/**\n\t * @deprecated Zweck?!\n\t */\n\taccessKey: string;\n\tid: string;\n\ton: KoliBriButtonCallbacks<unknown>;\n\ttype: KoliBriButtonType;\n\tvalue: Stringified<unknown>;\n};\n// type ButtonLinkProps = Generic.Element.Members<RequiredButtonProps, OptionalButtonProps>;\n\ntype RequiredButtonLinkStates = RequiredButtonAndLinkStates &\n\tKoliBriButtonVariantPropState & {\n\t\ttype: KoliBriButtonType;\n\t};\ntype OptionalButtonLinkStates = OptionalButtonAndLinkStates &\n\tKoliBriButtonCustomClassPropState & {\n\t\t/**\n\t\t * @deprecated Zweck?!\n\t\t */\n\t\taccessKey: string;\n\t\tid: string;\n\t\ton: KoliBriButtonCallbacks<unknown>;\n\t\tvalue: unknown;\n\t};\n// type ButtonLinkStates = Generic.Element.Members<RequiredButtonStates, OptionalButtonStates>;\n\n/**\n * API Button\n */\nexport type RequiredButtonProps = RequiredButtonLinkProps;\nexport type OptionalButtonProps = OptionalButtonLinkProps & KoliBriButtonVariantPropState & KoliBriButtonCustomClassPropState;\nexport type ButtonProps = Generic.Element.Members<RequiredButtonProps, OptionalButtonProps>;\n\nexport type RequiredButtonStates = RequiredButtonLinkStates & KoliBriButtonVariantPropState;\nexport type OptionalButtonStates = OptionalButtonLinkStates & KoliBriButtonCustomClassPropState;\nexport type ButtonStates = Generic.Element.Members<RequiredButtonStates, OptionalButtonStates>;\n\n/* LINK */\n\nexport type LinkOnCallbacks = {\n\t[Events.onClick]?: EventValueOrEventCallback<Event, string>;\n};\n\n// https://www.w3schools.com/tags/att_a_target.asp\nexport type LinkTarget = '_blank' | '_parent' | '_self' | '_top' | string;\n\nexport type LinkUseCase = 'text' | 'image' | 'nav';\n\n/**\n * API Link\n */\nexport type RequiredLinkProps = RequiredButtonAndLinkProps & {\n\thref: string;\n};\nexport type OptionalLinkProps = OptionalButtonAndLinkProps & {\n\ton: LinkOnCallbacks;\n\t/**\n\t * @deprecated Das Styling sollte stets über CSS erfolgen.\n\t */\n\tselector: string;\n\t/**\n\t * @deprecated Das Styling sollte stets über CSS erfolgen.\n\t */\n\tstealth: boolean;\n\ttarget: LinkTarget;\n\ttargetDescription: string;\n\t/**\n\t * @deprecated Das Styling sollte stets über CSS erfolgen.\n\t */\n\tuseCase: LinkUseCase;\n};\nexport type LinkProps = Generic.Element.Members<RequiredLinkProps, OptionalLinkProps>;\n\nexport type RequiredLinkStates = RequiredButtonAndLinkStates & {\n\thref: string;\n};\nexport type OptionalLinkStates = OptionalButtonAndLinkStates & {\n\tariaSelected: boolean;\n\ton: LinkOnCallbacks;\n\t/**\n\t * @deprecated Das Styling sollte stets über CSS erfolgen.\n\t */\n\tselector: string;\n\t/**\n\t * @deprecated Das Styling sollte stets über CSS erfolgen.\n\t */\n\tstealth: boolean;\n\ttarget: LinkTarget;\n\ttargetDescription: string;\n\t/**\n\t * @deprecated Das Styling sollte stets über CSS erfolgen.\n\t */\n\tuseCase: LinkUseCase;\n};\nexport type LinkStates = Generic.Element.Members<RequiredLinkStates, OptionalLinkStates>;\n\n/**\n * API LinkButton\n */\nexport type RequiredLinkButtonProps = RequiredLinkProps;\nexport type OptionalLinkButtonProps = OptionalLinkProps & KoliBriButtonVariantPropState & KoliBriButtonCustomClassPropState;\n// type LinkButtonProps = Generic.Element.Members<RequiredLinkButtonProps, OptionalLinkButtonProps>;\n\nexport type RequiredLinkButtonStates = KoliBriButtonVariantPropState;\nexport type OptionalLinkButtonStates = KoliBriButtonCustomClassPropState;\nexport type LinkButtonStates = Generic.Element.Members<RequiredLinkButtonStates, OptionalLinkButtonStates>;\n\nexport const watchTooltipAlignment = (component: Generic.Element.Component, propName: string, value?: Alignment): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\tpropName,\n\t\t(value) => value === 'top' || value === 'right' || value === 'bottom' || value === 'left',\n\t\tnew Set(['Alignment {top, right, buttom, left}']),\n\t\tvalue,\n\t\t{\n\t\t\tdefaultValue: 'top',\n\t\t}\n\t);\n};\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"controller-2405dd04.js","mappings":";;;;;;;;MAoBa,wBAAyB,SAAQA,kCAAuB;EAGpE,YAAmB,SAA0D,EAAE,IAAY,EAAE,IAAkB;IAC9G,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;GAC3B;EAKM,YAAY,CAAC,KAA6B;IAChDC,oCAAoB,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,EAAE,CAAC,IAAY,KAAK,OAAO,IAAI,KAAK,QAAQ,EAAE,KAAK,CAAC,CAAC;GACjG;EAKM,iBAAiB;IACvB,KAAK,CAAC,iBAAiB,EAAE,CAAC;IAC1B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;GACxC;CACD;MAEY,mBAAoB,SAAQ,wBAAwB;EAMhE,YAAmB,SAAqD,EAAE,IAAY,EAAE,IAAkB;IACzG,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAJvB,aAAQ,GAAG,KAAK,CAAC;IACjB,YAAO,GAAG,KAAK,CAAC;IAItB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;GAC3B;EAKM,YAAY,CAAC,KAAqB;IACxCC,8BAAc,CACb,IAAI,CAAC,SAAS,EACd,OAAO,EACP,CAAC,KAAK,KAAc,OAAO,KAAK,KAAK,QAAQ,KAAK,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,KAAK,CAAC,EAC/H,IAAI,GAAG,CAAC,CAAC,iCAAiC,CAAC,CAAC,EAC5C,KAAK,CACL,CAAC;GACF;EAKM,iBAAiB;IACvB,KAAK,CAAC,iBAAiB,EAAE,CAAC;IAC1B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;GACxC;;;;;;","names":["InputPasswordController","watchJsonArrayString","watchValidator"],"sources":["./src/components/input-text/controller.ts"],"sourcesContent":["import { watchJsonArrayString, watchValidator } from '../../utils/prop.validators';\nimport { InputPasswordController } from '../input-password/controller';\nimport { Props as InputTextProps, Watches as InputTextWatches } from './types';\n\nimport { Generic } from '@a11y-ui/core';\nimport { InputTextType } from '../../types/input/control/text';\nimport { Stringified } from '../../types/common';\n\n/**\n * API\n */\ntype RequiredProps = {\n\tid: string;\n};\ntype OptionalProps = {\n\tlist: Stringified<string[]>;\n};\ntype InputTextEmailProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputTextEmailWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputTextEmailController extends InputPasswordController implements InputTextEmailWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextEmailProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextEmailProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateList(value?: Stringified<string[]>): void {\n\t\twatchJsonArrayString(this.component, '_list', (item: string) => typeof item === 'string', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentWillLoad)\n\t */\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateList(this.component._list);\n\t}\n}\n\nexport class InputTextController extends InputTextEmailController implements InputTextWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextProps;\n\n\tpublic hasError = false;\n\tpublic hasList = false;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateType(value?: InputTextType): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_type',\n\t\t\t(value): boolean => typeof value === 'string' && (value === 'text' || value === 'search' || value === 'url' || value === 'tel'),\n\t\t\tnew Set(['String {text, search, url, tel}']),\n\t\t\tvalue\n\t\t);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentWillLoad)\n\t */\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateType(this.component._type);\n\t}\n}\n"],"version":3}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- "use strict";const a11y_tipps=require("./a11y.tipps-4af0092d.js"),prop_validators=require("./prop.validators-69d5cf89.js"),tabIndex=require("./tab-index-1d448ede.js"),dev_utils=require("./dev.utils-7123fb34.js"),getRenderStates=t=>{const e="string"==typeof t._error&&t._error.length>0&&!0===t._touched,o="string"==typeof t._hint&&t._hint.length>0,n=[];return!0===e&&n.push(`${t._id}-error`),!0===o&&n.push(`${t._id}-hint`),{hasError:e,hasHint:o,ariaDiscribedBy:n}},EXPERIMENTAL_MODE=dev_utils.getExperimalMode();class ControlledInputController{constructor(t,e,o){var n,i,a,s,r;if(this.syncFormAssociatedName=()=>{var t;EXPERIMENTAL_MODE&&(null===(t=this.formAssociated)||void 0===t||t.setAttribute("name",this.component.state._name||this.component.state._id))},this.setFormAssociatedValue=(t=null)=>{var e;EXPERIMENTAL_MODE&&(null===(e=this.formAssociated)||void 0===e||e.setAttribute("value",t))},this.component=t,this.name=e,this.host=o,EXPERIMENTAL_MODE){this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type","hidden");const t=(null===(n=this.host)||void 0===n?void 0:n.children)||[];for(let e=0;e<t.length;e++)"INPUT"===(null===(i=this.host)||void 0===i?void 0:i.children[e].tagName)&&(null===(a=this.host)||void 0===a||a.removeChild(null===(s=this.host)||void 0===s?void 0:s.children[e]));null===(r=this.host)||void 0===r||r.appendChild(this.formAssociated)}}validateAlert(t){prop_validators.watchBoolean(this.component,"_alert",t)}validateTouched(t){prop_validators.watchBoolean(this.component,"_touched",t)}componentWillLoad(){this.validateAlert(this.component._alert),this.validateTouched(this.component._touched)}}class InputController extends ControlledInputController{constructor(t,e,o){super(t,e,o),this.hideLabel=!1,this.onFacade={onBlur:this.onBlur.bind(this),onChange:this.onChange.bind(this),onClick:this.onClick.bind(this),onFocus:this.onFocus.bind(this)},this.component=t}validateAccessKey(t){prop_validators.watchString(this.component,"_accessKey",t)}validateAdjustHeight(t){prop_validators.watchBoolean(this.component,"_adjustHeight",t)}validateDisabled(t){prop_validators.watchBoolean(this.component,"_disabled",t),!0===t&&a11y_tipps.a11yHintDisabled()}validateError(t){prop_validators.watchString(this.component,"_error",t)}validateHideLabel(t){prop_validators.watchBoolean(this.component,"_hideLabel",t)}validateHint(t){prop_validators.watchString(this.component,"_hint",t)}validateId(t){prop_validators.watchString(this.component,"_id",t,{hooks:{afterPatch:this.syncFormAssociatedName}}),void 0===t&&a11y_tipps.devHint("Eine eindeutige ID an den Eingabefeldern ist nicht zwingend erforderlich, könnte aber für die E2E-Tests relevant sein.")}validateName(t){prop_validators.watchString(this.component,"_name",t,{hooks:{afterPatch:this.syncFormAssociatedName}}),void 0===t&&a11y_tipps.devHint("Ein Name an den Eingabefeldern ist nicht zwingend erforderlich, kann aber für die Autocomplete-Funktion des Eingabefeldes relevant sein.")}validateOn(t){"object"==typeof t&&prop_validators.setState(this.component,"_on",t)}validateSmartButton(t){prop_validators.objectObjectHandler(t,(()=>{try{t=prop_validators.parseJson(t)}catch(t){}prop_validators.setState(this.component,"_smartButton",t)}))}validateTabIndex(t){tabIndex.validateTabIndex(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateAccessKey(this.component._accessKey),this.validateAdjustHeight(this.component._adjustHeight),this.validateError(this.component._error),this.validateDisabled(this.component._disabled),this.validateHideLabel(this.component._hideLabel),this.validateHint(this.component._hint),this.validateId(this.component._id),this.validateName(this.component._name),this.validateSmartButton(this.component._smartButton),this.validateOn(this.component._on),this.validateTabIndex(this.component._tabIndex),this.syncFormAssociatedName()}onBlur(t){var e;this.component._alert=!0,this.component._touched=!0,"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onBlur)&&this.component._on.onBlur(t)}onChange(t){var e;this.setFormAssociatedValue(t.target.value),"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onChange)&&this.component._on.onChange(t,t.target.value)}onClick(t){var e;"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onClick)&&this.component._on.onClick(t)}onFocus(t){var e;this.component._alert=!0,"function"==typeof(null===(e=this.component._on)||void 0===e?void 0:e.onFocus)&&this.component._on.onFocus(t)}setValue(t,e){var o;this.setFormAssociatedValue(e),"function"==typeof(null===(o=this.component._on)||void 0===o?void 0:o.onChange)&&this.component._on.onChange(t,e)}}exports.InputController=InputController,exports.getRenderStates=getRenderStates;
@@ -1 +0,0 @@
1
- {"file":"controller-8e2cebc1.js","mappings":";;;;;;;;;;MAOa,eAAe,GAAG,CAAC,KAK/B;EAKA,MAAM,QAAQ,GAAG,OAAO,K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,CAAC,GAAG,0CAAE,OAAO,CAAA,KAAK,UAAU,EAAE;MACtD,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;KAClC;GACD;EAES,OAAO,CAAC,KAAY;;IAC7B,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC;IAC7B,IAAI,QAAO,MAAA,IAAI,CAAC,SAAS,CAAC,GAAG,0CAAE,OAAO,CAAA,KAAK,UAAU,EAAE;MACtD,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;KAClC;GACD;EAEM,QAAQ,CAAC,KAAY,EAAE,KAAgC;;IAC7D,IAAI,CAAC,sBAAsB,CAAC,KAAe,CAAC,CAAC;IAC7C,IAAI,QAAO,MAAA,IAAI,CAAC,SAAS,CAAC,GAAG,0CAAE,QAAQ,CAAA,KAAK,UAAU,EAAE;MACvD,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;KAC1C;GACD;;;;;;","names":["getExperimalMode","watchBoolean","watchString","a11yHintDisabled","devHint","setState","objectObjectHandler","parseJson","validateTabIndex"],"sources":["./src/components/input/controller.ts","./src/components/input-adapter-leanup/controller.ts","./src/components/@deprecated/input/controller.ts"],"sourcesContent":["/**\n * Berechnet in Abhängigkeit des Component-State, wie die\n * aria-describedby-Attributs gesetzt werden sollen.\n *\n * @param state State der Component\n * @returns Render-States\n */\nexport const getRenderStates = (state: {\n\t_error?: string;\n\t_hint?: string;\n\t_id: string;\n\t_touched?: boolean;\n}): {\n\thasError: boolean;\n\thasHint: boolean;\n\tariaDiscribedBy: string[];\n} => {\n\tconst hasError = typeof state._error === 'string' && state._error.length > 0 && state._touched === true;\n\tconst hasHint = typeof state._hint === 'string' && state._hint.length > 0;\n\n\tconst ariaDiscribedBy: string[] = [];\n\tif (hasError === true) {\n\t\tariaDiscribedBy.push(`${state._id}-error`);\n\t}\n\tif (hasHint === true) {\n\t\tariaDiscribedBy.push(`${state._id}-hint`);\n\t}\n\treturn { hasError, hasHint, ariaDiscribedBy };\n};\n","import { Generic } from '@a11y-ui/core';\nimport { getExperimalMode } from '../../utils/dev.utils';\nimport { watchBoolean } from '../../utils/prop.validators';\nimport { Props, Watches } from './types';\n\nconst EXPERIMENTAL_MODE = getExperimalMode();\n\nexport class ControlledInputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprotected readonly name: string;\n\tprotected readonly host?: HTMLElement;\n\n\tpublic readonly formAssociated?: HTMLInputElement;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tthis.component = component;\n\t\tthis.name = name;\n\t\tthis.host = host;\n\t\tif (EXPERIMENTAL_MODE) {\n\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\tthis.formAssociated.setAttribute('type', 'hidden');\n\t\t\tconst children = this.host?.children || [];\n\t\t\tfor (let i = 0; i < children.length; i++) {\n\t\t\t\tif (this.host?.children[i].tagName === 'INPUT') {\n\t\t\t\t\tthis.host?.removeChild(this.host?.children[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.host?.appendChild(this.formAssociated);\n\t\t}\n\t}\n\n\tprotected readonly syncFormAssociatedName = () => {\n\t\tif (EXPERIMENTAL_MODE) {\n\t\t\tthis.formAssociated?.setAttribute('name', (this.component.state._name as string) || (this.component.state._id as string));\n\t\t}\n\t};\n\n\tpublic readonly setFormAssociatedValue = (value: string | null = null) => {\n\t\tif (EXPERIMENTAL_MODE) {\n\t\t\tthis.formAssociated?.setAttribute('value', value as string);\n\t\t}\n\t};\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateAlert(value?: boolean): void {\n\t\twatchBoolean(this.component, '_alert', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateTouched(value?: boolean): void {\n\t\twatchBoolean(this.component, '_touched', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentWillLoad)\n\t */\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAlert(this.component._alert);\n\t\tthis.validateTouched(this.component._touched);\n\t}\n}\n","import { Generic } from '@a11y-ui/core';\nimport { ButtonProps } from '../../../types/button-link';\nimport { InputTypeOnDefault } from '../../../types/input/types';\nimport { a11yHintDisabled, devHint } from '../../../utils/a11y.tipps';\nimport { objectObjectHandler, parseJson, setState, watchBoolean, watchString } from '../../../utils/prop.validators';\nimport { validateTabIndex } from '../../../utils/validators/tab-index';\nimport { ControlledInputController } from '../../input-adapter-leanup/controller';\nimport { Props as AdapterProps } from '../../input-adapter-leanup/types';\nimport { Props, Watches } from './types';\n\nexport class InputController extends ControlledInputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props & AdapterProps;\n\n\tpublic hideLabel = false;\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\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateAccessKey(value?: string): void {\n\t\twatchString(this.component, '_accessKey', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateAdjustHeight(value?: boolean): void {\n\t\twatchBoolean(this.component, '_adjustHeight', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateDisabled(value?: boolean): void {\n\t\twatchBoolean(this.component, '_disabled', value);\n\t\tif (value === true) {\n\t\t\ta11yHintDisabled();\n\t\t}\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateError(value?: string): void {\n\t\twatchString(this.component, '_error', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateHideLabel(value?: boolean): void {\n\t\twatchBoolean(this.component, '_hideLabel', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateHint(value?: string): void {\n\t\twatchString(this.component, '_hint', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateId(value?: string): void {\n\t\twatchString(this.component, '_id', value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.syncFormAssociatedName,\n\t\t\t},\n\t\t});\n\t\tif (typeof value === 'undefined') {\n\t\t\tdevHint(`Eine eindeutige ID an den Eingabefeldern ist nicht zwingend erforderlich, könnte aber für die E2E-Tests relevant sein.`);\n\t\t}\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateName(value?: string): void {\n\t\twatchString(this.component, '_name', value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.syncFormAssociatedName,\n\t\t\t},\n\t\t});\n\t\tif (typeof value === 'undefined') {\n\t\t\tdevHint(`Ein Name an den Eingabefeldern ist nicht zwingend erforderlich, kann aber für die Autocomplete-Funktion des Eingabefeldes relevant sein.`);\n\t\t}\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tif (typeof value === 'object') {\n\t\t\tsetState(this.component, '_on', value);\n\t\t}\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateSmartButton(value?: ButtonProps | string): void {\n\t\tobjectObjectHandler(value, () => {\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<ButtonProps>(value as string);\n\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t} catch (e) {\n\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t}\n\t\t\tsetState(this.component, '_smartButton', value);\n\t\t});\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateTabIndex(value?: number): void {\n\t\tvalidateTabIndex(this.component, value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentWillLoad)\n\t */\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAccessKey(this.component._accessKey);\n\t\tthis.validateAdjustHeight(this.component._adjustHeight);\n\t\tthis.validateError(this.component._error);\n\t\tthis.validateDisabled(this.component._disabled);\n\t\tthis.validateHideLabel(this.component._hideLabel);\n\t\tthis.validateHint(this.component._hint);\n\t\tthis.validateId(this.component._id);\n\t\tthis.validateName(this.component._name);\n\t\tthis.validateSmartButton(this.component._smartButton);\n\t\tthis.validateOn(this.component._on);\n\t\tthis.validateTabIndex(this.component._tabIndex);\n\t\tthis.syncFormAssociatedName();\n\t}\n\n\tprotected onBlur(event: Event): void {\n\t\tthis.component._alert = true;\n\t\tthis.component._touched = true;\n\t\tif (typeof this.component._on?.onBlur === 'function') {\n\t\t\tthis.component._on.onBlur(event);\n\t\t}\n\t}\n\n\tprotected onChange(event: Event): void {\n\t\tthis.setFormAssociatedValue((event.target as HTMLInputElement).value);\n\t\tif (typeof this.component._on?.onChange === 'function') {\n\t\t\t/**\n\t\t\t * TODO\n\t\t\t * Value-Handling muss für InputDate und InputNumber optimiert werden\n\t\t\t * - value\n\t\t\t * - valueAsNumber\n\t\t\t * - valueAsDate\n\t\t\t */\n\t\t\tthis.component._on.onChange(event, (event.target as HTMLInputElement).value);\n\t\t}\n\t}\n\n\tprotected onClick(event: Event): void {\n\t\tif (typeof this.component._on?.onClick === 'function') {\n\t\t\tthis.component._on.onClick(event);\n\t\t}\n\t}\n\n\tprotected onFocus(event: Event): void {\n\t\tthis.component._alert = true;\n\t\tif (typeof this.component._on?.onFocus === 'function') {\n\t\t\tthis.component._on.onFocus(event);\n\t\t}\n\t}\n\n\tpublic setValue(event: Event, value: string | number | boolean): void {\n\t\tthis.setFormAssociatedValue(value as string);\n\t\tif (typeof this.component._on?.onChange === 'function') {\n\t\t\tthis.component._on.onChange(event, value);\n\t\t}\n\t}\n\n\t/**\n\t * Hinweis: In der Subklasse 'InputPasswordController'\n\t * werden die Methoden onBlur und onFocus\n\t * überschrieben.\n\t * Es werden somit zunächst die Methoden der\n\t * Subklasse ausgeführt und danach die der\n\t * Oberklassen.\n\t */\n\tpublic readonly onFacade = {\n\t\tonBlur: this.onBlur.bind(this),\n\t\tonChange: this.onChange.bind(this),\n\t\tonClick: this.onClick.bind(this),\n\t\tonFocus: this.onFocus.bind(this),\n\t};\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"controller-94b357a3.js","mappings":";;;;;;;;;MAUa,gBAAgB,GAAG,CAAI,YAAoC,EAAE,OAA0B,EAAE,MAAM,GAAG,EAAE;EAChH,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,KAAK;IAC7B,MAAM,GAAG,GAAG,GAAG,MAAM,IAAI,KAAK,EAAE,CAAC;IACjC,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;MACjH,IAAI,KAAK,CAAC,OAAO,CAAE,MAAsB,CAAC,OAAO,CAAC,EAAE;QACnD,gBAAgB,CAAC,YAAY,EAAG,MAAsB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;OACrE;WAAM;QACN,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,MAAmB,CAAC,CAAC;OAC3C;KACD;GACD,CAAC,CAAC;AACJ,EAAE;MAYW,4BAA6B,SAAQA,0BAAe;EAGhE,YAAmB,SAA8D,EAAE,IAAY,EAAE,IAAkB;IAClH,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;GAC3B;EAKM,gBAAgB,CAAC,KAAe;IACtCC,4BAAY,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;GACjD;EAKM,iBAAiB;IACvB,KAAK,C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iC;IACzD,KAAK,CAAC,iBAAiB,EAAE,CAAC;IAE1B,IAAI,CAAC,aAAa,GAAG;MACpB,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE;QACnC,MAAM,OAAO,GAAG,UAAU,CAAC;UAC1B,YAAY,CAAC,OAAO,CAAC,CAAC;UACtB,QAAQ,CAACC,wBAAkB,CAAC,CAAC;SAC7B,CAAC,CAAC;OACH;KACD,CAAC;IAEF,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IACtD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACxC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;GAC1C;;;;;;;","names":["InputController","watchBoolean","watchValidator","watchJsonArrayString","mapString2Unknown","setState","STATE_CHANGE_EVENT"],"sources":["./src/components/input-radio/controller.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\nimport { Stringified } from '../../types/common';\nimport { Optgroup, Option, SelectOption } from '../../types/input/types';\nimport { Orientation } from '../../types/orientation';\nimport { W3CInputValue } from '../../types/w3c';\nimport { mapString2Unknown, setState, watchBoolean, watchJsonArrayString, watchValidator } from '../../utils/prop.validators';\nimport { STATE_CHANGE_EVENT } from '../../utils/validator';\nimport { InputController } from '../@deprecated/input/controller';\nimport { Props, Watches } from './types';\n\nexport const fillKeyOptionMap = <T>(keyOptionMap: Map<string, Option<T>>, options: SelectOption<T>[], preKey = ''): void => {\n\toptions.forEach((option, index) => {\n\t\tconst key = `${preKey}-${index}`;\n\t\tif (typeof option === 'object' && option !== null && typeof option.label === 'string' && option.label.length > 0) {\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\tfillKeyOptionMap(keyOptionMap, (option as Optgroup<T>).options, key);\n\t\t\t} else {\n\t\t\t\tkeyOptionMap.set(key, option as Option<T>);\n\t\t\t}\n\t\t}\n\t});\n};\n\n/**\n * API\n */\ntype RequiredProps = unknown;\ntype OptionalProps = {\n\trequired: boolean;\n};\ntype InputCheckboxRadioProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputCheckboxRadioWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputCheckboxRadioController extends InputController implements InputCheckboxRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputCheckboxRadioProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputCheckboxRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateRequired(value?: boolean): void {\n\t\twatchBoolean(this.component, '_required', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentWillLoad)\n\t */\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateRequired(this.component._required);\n\t}\n}\n\nexport class InputRadioController extends InputCheckboxRadioController 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: unknown, options: Option<W3CInputValue>[]): boolean => {\n\t\treturn options.find((option) => option.value === value) !== undefined;\n\t};\n\n\tprotected 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\tif (this.isValueInOptions(value, list as Option<W3CInputValue>[]) === false) {\n\t\t\t\tconst newValue = (\n\t\t\t\t\tlist[0] as {\n\t\t\t\t\t\tvalue: string;\n\t\t\t\t\t}\n\t\t\t\t).value;\n\t\t\t\tnextState.set('_value', newValue);\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 */\n\tpublic validateOrientation(value?: Orientation): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_orientation',\n\t\t\t(value): boolean => value === 'horizontal' || value === 'vertical',\n\t\t\tnew Set(['Orientation {horizontal, vertical}']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\tdefaultValue: 'vertical',\n\t\t\t}\n\t\t);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateList(value?: Stringified<Option<W3CInputValue>[]>): void {\n\t\twatchJsonArrayString(\n\t\t\tthis.component,\n\t\t\t'_list',\n\t\t\t(item: Option<W3CInputValue>) => typeof item === 'object' && item !== null && typeof item.label === 'string' && item.label.length > 0,\n\t\t\tvalue,\n\t\t\tundefined,\n\t\t\t{\n\t\t\t\thooks: {\n\t\t\t\t\tbeforePatch: this.beforePatchListValue,\n\t\t\t\t},\n\t\t\t}\n\t\t);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateValue(value?: Stringified<unknown>): void {\n\t\tvalue = mapString2Unknown(value);\n\t\tvalue = Array.isArray(value) ? value[0] : value;\n\t\tsetState(this.component, '_value', value, {\n\t\t\tbeforePatch: this.beforePatchListValue,\n\t\t});\n\t\tthis.setFormAssociatedValue(this.component._value as string);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentWillLoad)\n\t */\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.validateOrientation(this.component._orientation);\n\t\tthis.validateList(this.component._list);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"controller-d0743a95.js","mappings":";;;;;;;;;MAOa,uBAAwB,SAAQA,kCAAmB;EAI/D,YAAmB,SAA4C,EAAE,IAAY,EAAE,IAAkB;IAChG,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAItB,iCAA4B,GAAG;MACtC,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,KAAK,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,KAAK,IAAI,EAAE;QACxFC,kBAAO,CAAC,kIAAkI,CAAC,CAAC;QAC5I,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;OACvB;WAAM;QACN,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;OAC1D;KACD,CAAC;IAVD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;GAC3B;EAcM,oBAAoB,CAAC,KAAsB;IACjDC,8BAAc,CACb,IAAI,CAAC,SAAS,EACd,eAAe,EACf,CAAC,KAAK,KAAc,OAAO,KAAK,KAAK,QAAQ,KAAK,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,CAAC,EACpF,IAAI,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,EACrB,KAAK,CACL,CAAC;GACF;EAKM,iBAAiB,CAAC,KAAe;IACvCC,4BAAY,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE;MACjD,KAAK,EAAE;QACN,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IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IACtD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IAChD,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IAChD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACxC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;GAC1C;EAES,MAAM,CAAC,KAAY;IAoB5B,IAAI,CAAC,SAAS,CAAC,KAAK,mCAChB,IAAI,CAAC,SAAS,CAAC,KAAK,KACvB,YAAY,EAAE,IAAI,CAAC,gBAAgB,GACnC,CAAC;IACF,IAAI,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAClC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;GACpB;EAES,OAAO,CAAC,KAAY;IAC7B,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,YAAsB,CAAC;IACpE,IAAI,CAAC,SAAS,CAAC,KAAK,mCAChB,IAAI,CAAC,SAAS,CAAC,KAAK,KACvB,YAAY,EAAE,SAAS,GACvB,CAAC;IACF,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;GACrB;;;;;","names":["InputIconController","devHint","watchValidator","watchBoolean","watchNumber","watchString"],"sources":["./src/components/input-password/controller.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\nimport { InputTypeOnOff } from '../../types/input/types';\nimport { devHint } from '../../utils/a11y.tipps';\nimport { watchBoolean, watchNumber, watchString, watchValidator } from '../../utils/prop.validators';\nimport { InputIconController } from '../@deprecated/input/controller-icon';\nimport { Props, Watches } from './types';\n\nexport class InputPasswordController extends InputIconController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprivate placeholderCache?: string;\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\tprivate handleHiddenLabelAndRequired = (): void => {\n\t\tif (this.component.state._hideLabel === true && this.component.state._required === true) {\n\t\t\tdevHint(`[KolInput*] Wenn man das Label ausblendet, dann kann der sehende Nutzer:in nicht mehr erkennen, ob die Eingabe erforderlich ist.`);\n\t\t\tthis.hideLabel = false;\n\t\t} else {\n\t\t\tthis.hideLabel = this.component.state._hideLabel === true;\n\t\t}\n\t};\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateAutoComplete(value?: InputTypeOnOff): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_autoComplete',\n\t\t\t(value): boolean => typeof value === 'string' && (value === 'on' || value === 'off'),\n\t\t\tnew Set(['on | off']),\n\t\t\tvalue\n\t\t);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateHideLabel(value?: boolean): void {\n\t\twatchBoolean(this.component, '_hideLabel', value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.handleHiddenLabelAndRequired,\n\t\t\t},\n\t\t});\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateMaxLength(value?: number): void {\n\t\twatchNumber(this.component, '_maxLength', value, {\n\t\t\tmin: 0,\n\t\t});\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validatePattern(value?: string): void {\n\t\twatchString(this.component, '_pattern', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validatePlaceholder(value?: string): void {\n\t\twatchString(this.component, '_placeholder', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateReadOnly(value?: boolean): void {\n\t\twatchBoolean(this.component, '_readOnly', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateRequired(value?: boolean): void {\n\t\twatchBoolean(this.component, '_required', value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.handleHiddenLabelAndRequired,\n\t\t\t},\n\t\t});\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\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\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateValue(value?: string): void {\n\t\twatchString(this.component, '_value', value);\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentWillLoad)\n\t */\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAutoComplete(this.component._autoComplete);\n\t\tthis.validateMaxLength(this.component._maxLength);\n\t\tthis.validatePattern(this.component._pattern);\n\t\tthis.validatePlaceholder(this.component._placeholder);\n\t\tthis.validateReadOnly(this.component._readOnly);\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\tprotected onBlur(event: Event): void {\n\t\t/**\n\t\t * Beim Screenreader NVDA wird der Placeholder mit\n\t\t * vorgelesen. Somit kann es vorkommen, dass das\n\t\t * Label und der Placeholder vorgelesen werden.\n\t\t *\n\t\t * Aufgrund dessen, dass das Label immer vorgelesen\n\t\t * werden muss, kann das zusätzliche Vorlesen des\n\t\t * Placeholders störend sein.\n\t\t *\n\t\t * Damit beim Fokussieren das \"doppelte\" vorlesen\n\t\t * vermieden werden kann, wird der Placeholder für\n\t\t * den fokussierten Feldstatus entfernt.\n\t\t *\n\t\t * Hinweis: Für alle Nutzenden müssen die all dar-\n\t\t * gestellten Inhalte, also auch der Place-\n\t\t * holder, gleichermaßen zugänglich sein.\n\t\t * Das oben beschriebene Handling erfüllt\n\t\t * diese Anforderung nicht.\n\t\t */\n\t\tthis.component.state = {\n\t\t\t...this.component.state,\n\t\t\t_placeholder: this.placeholderCache,\n\t\t};\n\t\tthis.placeholderCache = undefined;\n\t\tsuper.onBlur(event);\n\t}\n\n\tprotected onFocus(event: Event): void {\n\t\tthis.placeholderCache = this.component.state._placeholder as string;\n\t\tthis.component.state = {\n\t\t\t...this.component.state,\n\t\t\t_placeholder: undefined,\n\t\t};\n\t\tsuper.onFocus(event);\n\t}\n}\n"],"version":3}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- "use strict";const a11y_tipps=require("./a11y.tipps-4af0092d.js"),dev_utils=require("./dev.utils-7123fb34.js"),prop_validators=require("./prop.validators-69d5cf89.js"),searchFormElement=e=>{for(dev_utils.getExperimalMode()&&(a11y_tipps.devHint("↓ Search form element start."),console.log(e));e instanceof HTMLElement&&"FORM"!==e.tagName&&"KOL-FORM"!==e.tagName;)e=e.parentElement instanceof HTMLElement?e.parentElement:e.parentNode instanceof ShadowRoot?e.parentNode.host:null,dev_utils.getExperimalMode()&&console.log(e);return dev_utils.getExperimalMode()&&a11y_tipps.devHint("↑ Search form element finished."),e},propergateResetEventToForm=(e={})=>{const t=searchFormElement(e.form);if(t instanceof HTMLElement){const e=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===t.tagName)prop_validators.setEventTargetAndStopPropagation(e,t),t.dispatchEvent(e);else if("KOL-FORM"===t.tagName){prop_validators.setEventTargetAndStopPropagation(e,prop_validators.KoliBriDevHelper.querySelector("form",t));const o=t;"object"==typeof o._on&&null!==typeof o._on&&"function"==typeof o._on.onReset&&o._on.onReset(e)}}},propergateSubmitEventToForm=(e={})=>{const t=searchFormElement(e.form);if(t instanceof HTMLElement){const e=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:t});if("FORM"===t.tagName)prop_validators.setEventTargetAndStopPropagation(e,t),t.dispatchEvent(e);else if("KOL-FORM"===t.tagName){prop_validators.setEventTargetAndStopPropagation(e,prop_validators.KoliBriDevHelper.querySelector("form",t));const o=t;"object"==typeof o._on&&null!==typeof o._on&&"function"==typeof o._on.onSubmit&&o._on.onSubmit(e)}}};exports.propergateResetEventToForm=propergateResetEventToForm,exports.propergateSubmitEventToForm=propergateSubmitEventToForm;
@@ -1 +0,0 @@
1
- {"file":"controller-dbbddbe7.js","mappings":";;;;;;;;;AAIA,MAAM,iBAAiB,GAAG,CAAC,EAAoC;EAC9D,IAAIA,0BAAgB,EAAE,EAAE;IACvBC,kBAAO,CAAC,8BAA8B,CAAC,CAAC;IACxC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;GAChB;EACD,OAAO,EAAE,YAAY,WAAW,IAAI,EAAE,CAAC,OAAO,KAAK,MAAM,IAAI,EAAE,CAAC,OAAO,KAAK,UAAU,EAAE;IACvF,IAAI,EAAE,CAAC,aAAa,YAAY,WAAW,EAAE;MAC5C,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC;KACtB;SAAM,IAAI,EAAE,CAAC,UAAU,YAAY,UAAU,EAAE;MAC/C,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;KACxB;SAAM;MACN,EAAE,GAAG,IAAI,CAAC;KACV;IACD,IAAID,0BAAgB,EAAE,EAAE;MACvB,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;KAChB;GACD;EACD,IAAIA,0BAAgB,EAAE,EAAE;IACvBC,kBAAO,CAAC,iCAAiC,CAAC,CAAC;GAC3C;EACD,OAAO,EAAE,CAAC;AACX,CAAC,CAAC;MAEW,0BAA0B,GAAG,CACzC,UAGI,EAAE;EAEN,MAAM,IAAI,GAAG,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;EAC7C,IAAI,IAAI,YAAY,WAAW,EAAE;IAChC,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,OAAO,EAAE;MAChC,OAAO,EAAE,IAAI;MACb,UAAU,EAAE,IAAI;KAChB,CAAC,CAAC;IACH,IA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AC,GAAG,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,GAAG,KAAK,IAAI,IAAI,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,UAAU,EAAE;QACjH,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;OAC5B;KACD;GACD;AACF;;;;;","names":["getExperimalMode","devHint","setEventTargetAndStopPropagation","KoliBriDevHelper"],"sources":["./src/components/form/controller.ts"],"sourcesContent":["import { devHint } from '../../utils/a11y.tipps';\nimport { getExperimalMode } from '../../utils/dev.utils';\nimport { KoliBriDevHelper, setEventTargetAndStopPropagation } from '../../utils/prop.validators';\n\nconst searchFormElement = (el?: HTMLElement | ParentNode | null): HTMLElement | ParentNode | null | undefined => {\n\tif (getExperimalMode()) {\n\t\tdevHint(`↓ Search form element start.`);\n\t\tconsole.log(el);\n\t}\n\twhile (el instanceof HTMLElement && el.tagName !== 'FORM' && el.tagName !== 'KOL-FORM') {\n\t\tif (el.parentElement instanceof HTMLElement) {\n\t\t\tel = el.parentElement;\n\t\t} else if (el.parentNode instanceof ShadowRoot) {\n\t\t\tel = el.parentNode.host;\n\t\t} else {\n\t\t\tel = null;\n\t\t}\n\t\tif (getExperimalMode()) {\n\t\t\tconsole.log(el);\n\t\t}\n\t}\n\tif (getExperimalMode()) {\n\t\tdevHint(`↑ Search form element finished.`);\n\t}\n\treturn el;\n};\n\nexport const propergateResetEventToForm = (\n\toptions: {\n\t\tform?: HTMLElement | ParentNode | null;\n\t\tref?: HTMLElement;\n\t} = {}\n): void => {\n\tconst form = searchFormElement(options.form);\n\tif (form instanceof HTMLElement) {\n\t\tconst event = new Event('reset', {\n\t\t\tbubbles: true,\n\t\t\tcancelable: true,\n\t\t});\n\t\tif (form.tagName === 'FORM') {\n\t\t\tsetEventTargetAndStopPropagation(event, form);\n\t\t\tform.dispatchEvent(event);\n\t\t} else if (form.tagName === 'KOL-FORM') {\n\t\t\tsetEventTargetAndStopPropagation(event, KoliBriDevHelper.querySelector('form', form) as HTMLFormElement);\n\t\t\tconst kolForm = form as HTMLKolFormElement;\n\t\t\tif (typeof kolForm._on === 'object' && typeof kolForm._on !== null && typeof kolForm._on.onReset === 'function') {\n\t\t\t\tkolForm._on.onReset(event);\n\t\t\t}\n\t\t}\n\t}\n};\n\nexport const propergateSubmitEventToForm = (\n\toptions: {\n\t\tform?: HTMLElement | ParentNode | null;\n\t\tref?: HTMLElement;\n\t} = {}\n): void => {\n\tconst form = searchFormElement(options.form);\n\tif (form instanceof HTMLElement) {\n\t\tconst event = new SubmitEvent('submit', {\n\t\t\tbubbles: true,\n\t\t\tcancelable: true,\n\t\t\tsubmitter: form,\n\t\t});\n\t\t/**\n\t\t * TODO: Wenn Formular-Action (nicht Ajax oder JS) verwendet wird,\n\t\t * dann müssen wir das Event an das HTMLFormElement innerhalb\n\t\t * der HTMLKolFormElements propagieren, wenn kein onSubmit\n\t\t * gesetzt wurde.\n\t\t *\n\t\t * TODO: Form-associated custom elements:\n\t\t * - https://web.dev/more-capable-form-controls/\n\t\t * - https://github.com/public-ui/kolibri/issues/946\n\t\t */\n\t\tif (form.tagName === 'FORM') {\n\t\t\tsetEventTargetAndStopPropagation(event, form);\n\t\t\tform.dispatchEvent(event);\n\t\t} else if (form.tagName === 'KOL-FORM') {\n\t\t\tsetEventTargetAndStopPropagation(event, KoliBriDevHelper.querySelector('form', form) as HTMLFormElement);\n\t\t\tconst kolForm = form as HTMLKolFormElement;\n\t\t\tif (typeof kolForm._on === 'object' && typeof kolForm._on !== null && typeof kolForm._on.onSubmit === 'function') {\n\t\t\t\tkolForm._on.onSubmit(event);\n\t\t\t}\n\t\t}\n\t}\n};\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"controller-icon-b87565c4.js","mappings":";;;;;;;;;;AASA,MAAM,eAAe,GAAG,CAAC,KAAc,EAAE,SAA+B;EACvE,MAAM,IAAI,GAAG,KAA8B,CAAC;EAC5C,IAAI,OAAO,IAAI,KAAK,QAAQ,IA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,QAAQ,EAAE,IAAI;OACd,CACD,CAAC;KACF,CAAC,CAAC;GACH;EAKM,iBAAiB;IACvB,KAAK,CAAC,iBAAiB,EAAE,CAAC;IAC1B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;GACxC;;;;;","names":["isString","InputController","objectObjectHandler","parseJson","watchValidator","isIcon"],"sources":["./src/components/@deprecated/input/controller-icon.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\nimport { Stringified } from '../../../types/common';\nimport { KoliBriHorizontalIcon } from '../../../types/icon';\nimport { objectObjectHandler, parseJson, watchValidator } from '../../../utils/prop.validators';\nimport { isString } from '../../../utils/validator';\nimport { isIcon } from '../../../utils/validators/icon';\nimport { InputController } from './controller';\nimport { Props, Watches } from './types-icon';\n\nconst beforePatchIcon = (value: unknown, nextState: Map<string, unknown>): void => {\n\tconst icon = value as KoliBriHorizontalIcon;\n\tif (typeof icon === 'object' && icon !== null) {\n\t\tif (isString(icon.right, 1)) {\n\t\t\ticon.right = { icon: icon.right as string };\n\t\t}\n\t\tif (isString(icon.left, 1)) {\n\t\t\ticon.left = { icon: icon.left as string };\n\t\t}\n\t\tnextState.set('_icon', icon);\n\t}\n};\n\nexport class InputIconController extends InputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\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\t/**\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateIcon(value?: Stringified<KoliBriHorizontalIcon>): void {\n\t\tobjectObjectHandler(value, () => {\n\t\t\ttry {\n\t\t\t\tvalue = parseJson<KoliBriHorizontalIcon>(value as string);\n\t\t\t\t// eslint-disable-next-line no-empty\n\t\t\t} catch (e) {\n\t\t\t\t// value behält den ursprünglichen Wert\n\t\t\t}\n\t\t\twatchValidator(\n\t\t\t\tthis.component,\n\t\t\t\t'_icon',\n\t\t\t\t(value): boolean => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\ttypeof value === 'object' &&\n\t\t\t\t\t\tvalue !== null &&\n\t\t\t\t\t\t(isString((value as KoliBriHorizontalIcon).left, 1) ||\n\t\t\t\t\t\t\tisIcon((value as KoliBriHorizontalIcon).left) ||\n\t\t\t\t\t\t\tisString((value as KoliBriHorizontalIcon).right, 1) ||\n\t\t\t\t\t\t\tisIcon((value as KoliBriHorizontalIcon).right))\n\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t\tnew Set(['KoliBriHorizontalIcon']),\n\t\t\t\tvalue,\n\t\t\t\t{\n\t\t\t\t\thooks: {\n\t\t\t\t\t\tbeforePatch: beforePatchIcon,\n\t\t\t\t\t},\n\t\t\t\t\trequired: true,\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\t}\n\n\t/**\n\t * @see: components/abbr/component.tsx (componentWillLoad)\n\t */\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateIcon(this.component._icon);\n\t}\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"icon-ccf4ad42.js","mappings":";;;;;;;;AAOA,MAAM,aAAa,GAAG,CAAC,KAAuB,EAAE,SAAuC,EAAE,IAA2C;EACnI,IAAIA,cAAQ,CAAC,IAAI,CAAC,EAAE;IACnB,KAAK,CAAC,SAAS,CAAC,GAAG,IAAyB,CAAC;GAC7C;OAAM,IAAIC,cAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE;IAC7B,KAAK,CAAC,SAAS,CAAC,GAAG;MAClB,IAAI,EAAE,IAAwB;KAC9B,CAAC;GACF;AACF,CAAC,CAAC;AAEK,MAAM,iBAAiB,GAAG,CAAC,IAAqB,EAAE,SAAqB;EAC7E,IAAI,KAAK,GAAqB,EAAE,CAAC;EACjC,IAAIA,cAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE;IACtB,QAAQ,SAAS;MAChB,KAAK,OAAO;QACX,KAAK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AAC,aAAa,CAAC,CAAC,EACxB,KAAK,EACL;MACC,KAAK,EAAE;QACN,WAAW,EAAE,CAAC,SAAkB,EAAE,SAA+B;UAChE,IAAI,SAAS,KAAK,IAAI,EAAE;YACvB,SAAS,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;WAC3B;UACD,eAAe,CAAC,SAAS,CAAC,CAAC;SAC3B;OACD;MACD,QAAQ,EAAE,IAAI;KACd,CACD,CAAC;GACF,CAAC,CAAC;AACJ,EAAE;MAEW,cAAc,GAAG,CAAC,SAAoC,EAAE,KAAiB;EACrFI,8BAAc,CAAC,SAAS,EAAE,YAAY,EAAE,CAAC,KAAK,KAAK,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,OAAO,EAAE,IAAI,GAAG,CAAC,CAAC,sCAAsC,CAAC,CAAC,EAAE,KAAK,EAAE;IACnJ,KAAK,EAAE;MACN,WAAW,EAAE;QACZ,eAAe,CAAC,SAAS,CAAC,CAAC;OAC3B;KACD;GACD,CAAC,CAAC;AACJ;;;;;;","names":["isObject","isString","isStyle","objectObjectHandler","parseJson","watchValidator"],"sources":["./src/utils/validators/icon.ts"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\nimport { ButtonStates } from '../../types/button-link';\nimport { AnyIconFontClass, KoliBriAllIcon, KoliBriCustomIcon, KoliBriIconProp, KoliBriIconState } from '../../types/icon';\nimport { Alignment } from '../../types/props/alignment';\nimport { objectObjectHandler, parseJson, watchValidator } from '../prop.validators';\nimport { isObject, isString, isStyle } from '../validator';\n\nconst mapCustomIcon = (state: KoliBriIconState, alignment: Alignment | 'top' | 'bottom', 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 as KoliBriAllIcon).left, 1) ||\n\t\t\t\t\t\t\tisIcon((value as KoliBriAllIcon).left) ||\n\t\t\t\t\t\t\tisString((value as KoliBriAllIcon).right, 1) ||\n\t\t\t\t\t\t\tisIcon((value as KoliBriAllIcon).right) ||\n\t\t\t\t\t\t\tisString((value as KoliBriAllIcon).top, 1) ||\n\t\t\t\t\t\t\tisIcon((value as KoliBriAllIcon).top) ||\n\t\t\t\t\t\t\tisString((value as KoliBriAllIcon).bottom, 1) ||\n\t\t\t\t\t\t\tisIcon((value as KoliBriAllIcon).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"],"version":3}
@@ -1,4 +0,0 @@
1
- /*!
2
- * KoliBri - The accessible HTML-Standard
3
- */
4
- "use strict";var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(e,t,o){return e(o={path:t,exports:{},require:function(e,t){return commonjsRequire()}},o.exports),o.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var loglevel=createCommonjsModule((function(e){var t,o;t=commonjsGlobal,o=function(){var e=function(){},t="undefined",o=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function r(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(t,o){for(var r=0;r<n.length;r++){var s=n[r];this[s]=r<t?e:this.methodFactory(s,t,o)}this.log=this.debug}function a(e,o,n){return function(){typeof console!==t&&(l.call(this,o,n),this[e].apply(this,arguments))}}function i(n,l,i){return function(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&o?s:void 0!==console[n]?r(console,n):void 0!==console.log?r(console,"log"):e)}(n)||a.apply(this,arguments)}function c(e,o,r){var s,a=this;o=null==o?"WARN":o;var c="loglevel";function h(){var e;if(typeof window!==t&&c){try{e=window.localStorage[c]}catch(e){}if(typeof e===t)try{var o=window.document.cookie,n=o.indexOf(encodeURIComponent(c)+"=");-1!==n&&(e=/^([^;]+)/.exec(o.slice(n))[1])}catch(e){}return void 0===a.levels[e]&&(e=void 0),e}}"string"==typeof e?c+=":"+e:"symbol"==typeof e&&(c=void 0),a.name=e,a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},a.methodFactory=r||i,a.getLevel=function(){return s},a.setLevel=function(o,r){if("string"==typeof o&&void 0!==a.levels[o.toUpperCase()]&&(o=a.levels[o.toUpperCase()]),!("number"==typeof o&&o>=0&&o<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+o;if(s=o,!1!==r&&function(e){var o=(n[e]||"silent").toUpperCase();if(typeof window!==t&&c){try{return void(window.localStorage[c]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"="+o+";"}catch(e){}}}(o),l.call(a,o,e),typeof console===t&&o<a.levels.SILENT)return"No console available for logging"},a.setDefaultLevel=function(e){o=e,h()||a.setLevel(e,!1)},a.resetLevel=function(){a.setLevel(o,!1),function(){if(typeof window!==t&&c){try{return void window.localStorage.removeItem(c)}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},a.enableAll=function(e){a.setLevel(a.levels.TRACE,e)},a.disableAll=function(e){a.setLevel(a.levels.SILENT,e)};var T=h();null==T&&(T=o),a.setLevel(T,!1)}var h=new c,T={};h.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=T[e];return t||(t=T[e]=new c(e,h.getLevel(),h.methodFactory)),t};var y=typeof window!==t?window.log:void 0;return h.noConflict=function(){return typeof window!==t&&window.log===h&&(window.log=y),h},h.getLoggers=function(){return T},h.default=h,h},e.exports?e.exports=o():t.log=o()}));const createTranslation=(e,t)=>o=>o(e,t),createTheme=(e,t)=>o=>o(e,t),STORE="object"==typeof window?window:"object"==typeof global?global:"object"==typeof self?self:{};let lockThemePatching=!0,warrentyWarning=!1;const THEME_NAME_PATTERN=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,isThemeNameValid=e=>"string"==typeof e&&THEME_NAME_PATTERN.test(e),validateThemeName=e=>{if(!1===isThemeNameValid(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},patchThemeTag=(e,t,o)=>{validateThemeName(e),!0===lockThemePatching&&!1===warrentyWarning&&(warrentyWarning=!0,loglevel.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\nimport { register } from '@a11y-ui/core';\nimport { defineCustomElements } from '...';\nimport { THEME } from '...';\n\nregister(THEME, defineCustomElements)\n\t.then(() => {\n\t\tconst htmlDivElement: HTMLElement | null = document.querySelector<HTMLElement>('#my-app');\n if (htmlDivElement instanceof HTMLElement) {\n const root = createRoot(htmlDivElement);\n root.render(<App />);\n }\n })\n .catch(console.warn);`)),"object"==typeof STORE.A11yUi&&null!==STORE.A11yUi||(STORE.A11yUi={}),"object"!=typeof STORE.A11yUi||null===STORE.A11yUi||"object"==typeof STORE.A11yUi.Themes&&null!==STORE.A11yUi.Themes||(STORE.A11yUi.Themes={}),"object"!=typeof STORE.A11yUi||null===STORE.A11yUi||"object"!=typeof STORE.A11yUi.Themes||null===STORE.A11yUi.Themes||"object"==typeof STORE.A11yUi.Themes[e]&&null!==STORE.A11yUi.Themes[e]||(STORE.A11yUi.Themes[e]={}),"object"==typeof STORE.A11yUi&&null!==STORE.A11yUi&&"object"==typeof STORE.A11yUi.Themes&&null!==STORE.A11yUi.Themes&&"object"==typeof STORE.A11yUi.Themes[e]&&null!==STORE.A11yUi.Themes[e]&&(STORE.A11yUi.Themes[e][t]=o)},patchTheme=(e,t)=>{if(validateThemeName(e),"object"==typeof t&&null!==t){Object.getOwnPropertyNames(t).forEach((o=>{const n=t[o];"string"==typeof n&&n.length>0&&patchThemeTag(e,o,n)}))}return e},getThemeNode=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return getThemeNode(t)}}return null},getEncroachCss=(e={})=>"false"!==e.themeEncroachCss&&"true"!==e.themeReset&&{mode:"after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode?e.themeEncroachCssMode:"before"},isTheCurrentThemeConfigValid=()=>"object"==typeof STORE.A11yUi&&null!==STORE.A11yUi&&"object"==typeof STORE.A11yUi.Theme&&null!==STORE.A11yUi.Theme&&"boolean"==typeof STORE.A11yUi.Theme.cache&&"object"==typeof STORE.A11yUi.Theme.encroachCss&&null!==typeof STORE.A11yUi.Theme.encroachCss&&"string"==typeof STORE.A11yUi.Theme.encroachCss.mode&&"string"==typeof STORE.A11yUi.Theme.name,isTheCurrentThemeNotDefault=()=>!1==("object"==typeof STORE.A11yUi&&null!==STORE.A11yUi)||!1==("object"==typeof STORE.A11yUi.Theme&&null!==STORE.A11yUi.Theme)||"default"!==STORE.A11yUi.Theme.name,getThemeDetails=e=>{if(isTheCurrentThemeConfigValid())return STORE.A11yUi.Theme;{const t={cache:!0,encroachCss:getEncroachCss(),loglevel:"silent",name:null},o=getThemeNode(e);return o instanceof HTMLElement&&(t.cache="false"!==o.dataset.themeCache,t.encroachCss=getEncroachCss(o.dataset),t.loglevel="debug"===o.dataset.themeLoglevel?o.dataset.themeLoglevel:"silent",t.name=o.dataset.theme||null),t}},getThemeOptionDefaults=(e,t)=>({cache:!1!==t.cache,detect:"auto"===t.detect?"auto":"fixed",encroachCss:!1!==t.encroachCss&&("object"!=typeof t.encroachCss||null==t.encroachCss||"after"!==t.encroachCss.mode&&"before"!==t.encroachCss.mode?{mode:"before"}:t.encroachCss),loglevel:"debug"===t.loglevel?t.loglevel:"silent",name:"string"==typeof t.name?t.name:e}),setConfigureTheme=(e,t)=>{!1!==isTheCurrentThemeConfigValid()||0!=("object"==typeof STORE.A11yUi&&null!==STORE.A11yUi)&&0!=("object"==typeof STORE.A11yUi.Theme&&null!==STORE.A11yUi.Theme)&&"default"===STORE.A11yUi.Theme.name||"object"==typeof t&&null!==t&&("fixed"===(t=getThemeOptionDefaults(e,t)).detect?(null===t.name&&"string"==typeof e&&(t.name=e),e===t.name&&("object"==typeof STORE.A11yUi&&null!==STORE.A11yUi||(STORE.A11yUi={}),STORE.A11yUi.Theme=t,loglevel.info(`[Theming] Theme "${e}" was set as default theme.`))):loglevel.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode."))};let registered=!1;const register=(e,t,o={})=>{!1===registered&&(registered=!0,lockThemePatching=!1),"function"==typeof e?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach((e=>{"function"==typeof e&&1===e.length?setConfigureTheme(e(patchTheme),{cache:o.theme?.cache,detect:o.theme?.detect,encroachCss:o.theme?.encroachCss,name:o.theme?.name}):loglevel.error("[Theming] Es wurde versucht eine nicht kompatibles Theme zu laden.")})),lockThemePatching=!0,"function"==typeof t?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const n=[];return t.forEach((e=>n.push(e()))),Promise.all(n)},STYLING_TASK_QUEUE=new Map,HYDRATED_HISTORY=[],CSS_PROPERTIES_REGISTERED=new Set,CSS_STYLE_CACHE=new Map,REGEX_CSS_PROPERTIES=/--[^;]+/g,REGEX_SPLIT_CSS_PROPERTY=/:/;"object"==typeof STORE.A11yUi&&null!==STORE.A11yUi||(STORE.A11yUi={CSS_STYLE_CACHE:CSS_STYLE_CACHE,HYDRATED_HISTORY:HYDRATED_HISTORY,STYLING_TASK_QUEUE:STYLING_TASK_QUEUE});const extractProperties=(e,t)=>{let o=t.match(REGEX_CSS_PROPERTIES);if(Array.isArray(o)){o=o.filter((e=>REGEX_SPLIT_CSS_PROPERTY.test(e)));const t=document.createElement("style");t.innerHTML=`.${e} {${o.join(";")}}`,document.querySelector("head")?.appendChild(t)}CSS_PROPERTIES_REGISTERED.add(e)},getCssStyle=(e,t)=>"object"==typeof STORE.A11yUi&&null!==STORE.A11yUi&&"object"==typeof STORE.A11yUi.Themes&&null!==STORE.A11yUi.Themes&&"object"==typeof STORE.A11yUi.Themes[e]&&null!==STORE.A11yUi.Themes[e]&&"string"==typeof STORE.A11yUi.Themes[e][t]?STORE.A11yUi.Themes[e][t].replace(/\r?\n/g,""):"",removeStyle=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName))break;e.removeChild(t)}},patchStyle=(e,t)=>{try{const o=[];t.forEach((e=>{const t=new CSSStyleSheet;t.replaceSync(e),o.push(t)})),e.adoptedStyleSheets=o}catch(o){t.reverse().forEach((t=>{const o=document.createElement("style");o.innerHTML=t,e.insertBefore(o,e.firstChild)}))}},encroachStyles=(e,t,o)=>{if(!1!==o){const n=[...Array.from(e.childNodes).filter((e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName))];let r;try{r=[...Array.from(e.adoptedStyleSheets)]}catch(e){r=[]}"before"===o?.mode?(n.reverse().forEach((e=>t.unshift(e.innerHTML))),r.reverse().forEach((e=>t.unshift(Array.from(e.cssRules).map((e=>e.cssText)).join(""))))):"after"===o?.mode&&(n.forEach((e=>t.push(e.innerHTML))),r.forEach((e=>t.push(Array.from(e.cssRules).map((e=>e.cssText)).join("")))))}},setThemeStyleAfterHydrated=(e,t,o)=>{const n=t.name||"default";let r;try{if(null===e.shadowRoot)throw new Error("ShadowRoot is null");r=e.shadowRoot}catch(t){r=e}if(CSS_STYLE_CACHE.get(n)?.has(e.tagName))switchStyle(e,r,CSS_STYLE_CACHE.get(n)?.get(e.tagName),o);else{const s=getCssStyle(n,"PROPERTIES"),l=getCssStyle(n,"GLOBAL"),a=getCssStyle(n,e.tagName);!1===CSS_PROPERTIES_REGISTERED.has(n)&&extractProperties(n,l);const i=[s,l,a];encroachStyles(r,i,t.encroachCss),"debug"===t.loglevel&&console.log(e.tagName,i),!0===t.cache&&(!1===CSS_STYLE_CACHE.has(n)&&CSS_STYLE_CACHE.set(n,new Map),CSS_STYLE_CACHE.get(n)?.set(e.tagName,i)),switchStyle(e,r,i,o)}},switchStyle=(e,t,o,n)=>{removeStyle(t),patchStyle(t,o),e.style.display=n},logHydratedHistory=e=>{"debug"===e.loglevel&&HYDRATED_HISTORY.push({timestamp:Date.now(),numberOfTasks:STYLING_TASK_QUEUE.size})},pushToDoTask=(e,t)=>{STYLING_TASK_QUEUE.set(e,{styleDisplay:`${e.style.display}`,themeDetails:t})},loggedPushToDoTask=(e,t)=>{pushToDoTask(e,t),logHydratedHistory(t)},deleteDoneTask=e=>{STYLING_TASK_QUEUE.delete(e)},loggedDeleteDoneTask=(e,t)=>{deleteDoneTask(e),logHydratedHistory(t)},waitForHydrated=e=>{const t=setTimeout((()=>{if(clearTimeout(t),STYLING_TASK_QUEUE.has(e)&&e.classList.contains("hydrated")){const{styleDisplay:t,themeDetails:o}=STYLING_TASK_QUEUE.get(e);setThemeStyleAfterHydrated(e,o,t),loggedDeleteDoneTask(e,o)}else waitForHydrated(e)}),25)},observerCallback=e=>{for(const t of e)if(STYLING_TASK_QUEUE.has(t.target)&&t.target.classList.contains("hydrated")){const{styleDisplay:e,themeDetails:o}=STYLING_TASK_QUEUE.get(t.target);setThemeStyleAfterHydrated(t.target,o,e),loggedDeleteDoneTask(t.target,o)}},observerOptions={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1};let observer;try{observer=new MutationObserver(observerCallback)}catch(e){observer=null}const setThemeStyle=(e,t)=>{loggedPushToDoTask(e,t),observer?observer.observe(e,observerOptions):waitForHydrated(e),e.style.display="none"};class Theme{constructor(e,t,o){this.createTheme=(e,t)=>createTheme(e,t),this.createTranslation=(e,t)=>createTranslation(e,t),this.Prefix=e,this.Key=Object.getOwnPropertyNames(t),this.Tag=Object.getOwnPropertyNames(o)}}exports.STORE=STORE,exports.Theme=Theme,exports.getThemeDetails=getThemeDetails,exports.patchTheme=patchTheme,exports.patchThemeTag=patchThemeTag,exports.register=register,exports.setThemeStyle=setThemeStyle;
@@ -1 +0,0 @@
1
- {"file":"index-e9fcaeca.js","mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,UAAU,IAAI,EAAE,UAAU,EAAE;AAE7B,IAEW,IAAkC,MAAM,CAAC,OAAO,EAAE;AAC7D,QAAQ,cAAc,GAAG,UAAU,EAAE,CAAC;AACtC,KAAK,MAAM;AACX,QAAQ,IAA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e,CAAC,CAAC;AAC3C,GAAG,MAAM;AACT,IAAI,eAAe,CAAC,GAAG,CAAC,CAAC;AACzB,GAAG;AACH,EAAE,GAAG,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;AAC7B,EAAE;AACF;AACA,MAAM,KAAK,CAAC;AACZ,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE;AACxC,IAAI,IAAI,CAAC,WAAW,GAAG,CAAC,IAAI,EAAE,GAAG,KAAK,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAC7D,IAAI,IAAI,CAAC,iBAAiB,GAAG,CAAC,IAAI,EAAE,GAAG,KAAK,iBAAiB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AACzE,IAAI,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACzB,IAAI,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;AACnD,IAAI,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;AACnD,GAAG;AACH;;;;;;;;;;","names":["this","log"],"sources":["./node_modules/loglevel/lib/loglevel.js","./node_modules/@a11y-ui/core/dist/index.mjs"],"sourcesContent":["/*\n* loglevel - https://github.com/pimterry/loglevel\n*\n* Copyright (c) 2013 Tim Perry\n* Licensed under the MIT license.\n*/\n(function (root, definition) {\n \"use strict\";\n if (typeof define === 'function' && define.amd) {\n define(definition);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = definition();\n } else {\n root.log = definition();\n }\n}(this, function () {\n \"use strict\";\n\n // Slightly dubious tricks to cut down minimized file size\n var noop = function() {};\n var undefinedType = \"undefined\";\n var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (\n /Trident\\/|MSIE /.test(window.navigator.userAgent)\n );\n\n var logMethods = [\n \"trace\",\n \"debug\",\n \"info\",\n \"warn\",\n \"error\"\n ];\n\n // Cross-browser bind equivalent that works at least back to IE6\n function bindMethod(obj, methodName) {\n var method = obj[methodName];\n if (typeof method.bind === 'function') {\n return method.bind(obj);\n } else {\n try {\n return Function.prototype.bind.call(method, obj);\n } catch (e) {\n // Missing bind shim or IE8 + Modernizr, fallback to wrapping\n return function() {\n return Function.prototype.apply.apply(method, [obj, arguments]);\n };\n }\n }\n }\n\n // Trace() doesn't print the message in IE, so for that case we need to wrap it\n function traceForIE() {\n if (console.log) {\n if (console.log.apply) {\n console.log.apply(console, arguments);\n } else {\n // In old IE, native console methods themselves don't have apply().\n Function.prototype.apply.apply(console.log, [console, arguments]);\n }\n }\n if (console.trace) console.trace();\n }\n\n // Build the best logging method possible for this env\n // Wherever possible we want to bind, not wrap, to preserve stack traces\n function realMethod(methodName) {\n if (methodName === 'debug') {\n methodName = 'log';\n }\n\n if (typeof console === undefinedType) {\n return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives\n } else if (methodName === 'trace' && isIE) {\n return traceForIE;\n } else if (console[methodName] !== undefined) {\n return bindMethod(console, methodName);\n } else if (console.log !== undefined) {\n return bindMethod(console, 'log');\n } else {\n return noop;\n }\n }\n\n // These private functions always need `this` to be set properly\n\n function replaceLoggingMethods(level, loggerName) {\n /*jshint validthis:true */\n for (var i = 0; i < logMethods.length; i++) {\n var methodName = logMethods[i];\n this[methodName] = (i < level) ?\n noop :\n this.methodFactory(methodName, level, loggerName);\n }\n\n // Define log.log as an alias for log.debug\n this.log = this.debug;\n }\n\n // In old IE versions, the console isn't present until you first open it.\n // We build realMethod() replacements here that regenerate logging methods\n function enableLoggingWhenConsoleArrives(methodName, level, loggerName) {\n return function () {\n if (typeof console !== undefinedType) {\n replaceLoggingMethods.call(this, level, loggerName);\n this[methodName].apply(this, arguments);\n }\n };\n }\n\n // By default, we use closely bound real methods wherever possible, and\n // otherwise we wait for a console to appear, and then try again.\n function defaultMethodFactory(methodName, level, loggerName) {\n /*jshint validthis:true */\n return realMethod(methodName) ||\n enableLoggingWhenConsoleArrives.apply(this, arguments);\n }\n\n function Logger(name, defaultLevel, factory) {\n var self = this;\n var currentLevel;\n defaultLevel = defaultLevel == null ? \"WARN\" : defaultLevel;\n\n var storageKey = \"loglevel\";\n if (typeof name === \"string\") {\n storageKey += \":\" + name;\n } else if (typeof name === \"symbol\") {\n storageKey = undefined;\n }\n\n function persistLevelIfPossible(levelNum) {\n var levelName = (logMethods[levelNum] || 'silent').toUpperCase();\n\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage[storageKey] = levelName;\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=\" + levelName + \";\";\n } catch (ignore) {}\n }\n\n function getPersistedLevel() {\n var storedLevel;\n\n if (typeof window === undefinedType || !storageKey) return;\n\n try {\n storedLevel = window.localStorage[storageKey];\n } catch (ignore) {}\n\n // Fallback to cookies if local storage gives us nothing\n if (typeof storedLevel === undefinedType) {\n try {\n var cookie = window.document.cookie;\n var location = cookie.indexOf(\n encodeURIComponent(storageKey) + \"=\");\n if (location !== -1) {\n storedLevel = /^([^;]+)/.exec(cookie.slice(location))[1];\n }\n } catch (ignore) {}\n }\n\n // If the stored level is not valid, treat it as if nothing was stored.\n if (self.levels[storedLevel] === undefined) {\n storedLevel = undefined;\n }\n\n return storedLevel;\n }\n\n function clearPersistedLevel() {\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage.removeItem(storageKey);\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=; expires=Thu, 01 Jan 1970 00:00:00 UTC\";\n } catch (ignore) {}\n }\n\n /*\n *\n * Public logger API - see https://github.com/pimterry/loglevel for details\n *\n */\n\n self.name = name;\n\n self.levels = { \"TRACE\": 0, \"DEBUG\": 1, \"INFO\": 2, \"WARN\": 3,\n \"ERROR\": 4, \"SILENT\": 5};\n\n self.methodFactory = factory || defaultMethodFactory;\n\n self.getLevel = function () {\n return currentLevel;\n };\n\n self.setLevel = function (level, persist) {\n if (typeof level === \"string\" && self.levels[level.toUpperCase()] !== undefined) {\n level = self.levels[level.toUpperCase()];\n }\n if (typeof level === \"number\" && level >= 0 && level <= self.levels.SILENT) {\n currentLevel = level;\n if (persist !== false) { // defaults to true\n persistLevelIfPossible(level);\n }\n replaceLoggingMethods.call(self, level, name);\n if (typeof console === undefinedType && level < self.levels.SILENT) {\n return \"No console available for logging\";\n }\n } else {\n throw \"log.setLevel() called with invalid level: \" + level;\n }\n };\n\n self.setDefaultLevel = function (level) {\n defaultLevel = level;\n if (!getPersistedLevel()) {\n self.setLevel(level, false);\n }\n };\n\n self.resetLevel = function () {\n self.setLevel(defaultLevel, false);\n clearPersistedLevel();\n };\n\n self.enableAll = function(persist) {\n self.setLevel(self.levels.TRACE, persist);\n };\n\n self.disableAll = function(persist) {\n self.setLevel(self.levels.SILENT, persist);\n };\n\n // Initialize with the right level\n var initialLevel = getPersistedLevel();\n if (initialLevel == null) {\n initialLevel = defaultLevel;\n }\n self.setLevel(initialLevel, false);\n }\n\n /*\n *\n * Top-level API\n *\n */\n\n var defaultLogger = new Logger();\n\n var _loggersByName = {};\n defaultLogger.getLogger = function getLogger(name) {\n if ((typeof name !== \"symbol\" && typeof name !== \"string\") || name === \"\") {\n throw new TypeError(\"You must supply a name when creating a logger.\");\n }\n\n var logger = _loggersByName[name];\n if (!logger) {\n logger = _loggersByName[name] = new Logger(\n name, defaultLogger.getLevel(), defaultLogger.methodFactory);\n }\n return logger;\n };\n\n // Grab the current global log variable in case of overwrite\n var _log = (typeof window !== undefinedType) ? window.log : undefined;\n defaultLogger.noConflict = function() {\n if (typeof window !== undefinedType &&\n window.log === defaultLogger) {\n window.log = _log;\n }\n\n return defaultLogger;\n };\n\n defaultLogger.getLoggers = function getLoggers() {\n return _loggersByName;\n };\n\n // ES6 default export, for compatibility\n defaultLogger['default'] = defaultLogger;\n\n return defaultLogger;\n}));\n","import log from 'loglevel';\n\nconst createTranslation = (name, map) => {\n return (patch) => patch(name, map);\n};\n\nconst createTheme = (name, map) => {\n return (patch) => patch(name, map);\n};\n\nconst STORE = typeof window === \"object\" ? window : typeof global === \"object\" ? global : typeof self === \"object\" ? self : {};\n\nlet lockThemePatching = true;\nlet warrentyWarning = false;\nconst THEME_NAME_PATTERN = /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/;\nconst isThemeNameValid = (name) => {\n return typeof name === \"string\" && THEME_NAME_PATTERN.test(name);\n};\nconst validateThemeName = (name) => {\n if (isThemeNameValid(name) === false) {\n throw new Error(\n `[Theming] The theme identifier \"${typeof name === \"string\" ? name : \"\"}\" (Type: ${typeof name}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`\n );\n }\n};\nconst patchThemeTag = (themeName, tagName, css) => {\n validateThemeName(themeName);\n if (lockThemePatching === true && warrentyWarning === false) {\n warrentyWarning = true;\n log.warn(\n `[Theming] The theme process is locked. This means that the theme \"${themeName}\" should not be patched.\n\nimport { register } from '@a11y-ui/core';\nimport { defineCustomElements } from '...';\nimport { THEME } from '...';\n\nregister(THEME, defineCustomElements)\n\t.then(() => {\n\t\tconst htmlDivElement: HTMLElement | null = document.querySelector<HTMLElement>('#my-app');\n if (htmlDivElement instanceof HTMLElement) {\n const root = createRoot(htmlDivElement);\n root.render(<App />);\n }\n })\n .catch(console.warn);`\n );\n }\n if (typeof STORE.A11yUi !== \"object\" || STORE.A11yUi === null) {\n STORE.A11yUi = {};\n }\n if (typeof STORE.A11yUi === \"object\" && STORE.A11yUi !== null && (typeof STORE.A11yUi.Themes !== \"object\" || STORE.A11yUi.Themes === null)) {\n STORE.A11yUi.Themes = {};\n }\n if (typeof STORE.A11yUi === \"object\" && STORE.A11yUi !== null && typeof STORE.A11yUi.Themes === \"object\" && STORE.A11yUi.Themes !== null && (typeof STORE.A11yUi.Themes[themeName] !== \"object\" || STORE.A11yUi.Themes[themeName] === null)) {\n STORE.A11yUi.Themes[themeName] = {};\n }\n if (typeof STORE.A11yUi === \"object\" && STORE.A11yUi !== null && typeof STORE.A11yUi.Themes === \"object\" && STORE.A11yUi.Themes !== null && typeof STORE.A11yUi.Themes[themeName] === \"object\" && STORE.A11yUi.Themes[themeName] !== null) {\n STORE.A11yUi.Themes[themeName][tagName] = css;\n }\n};\nconst patchTheme = (name, map) => {\n validateThemeName(name);\n if (typeof map === \"object\" && map !== null) {\n const tagNames = Object.getOwnPropertyNames(map);\n tagNames.forEach((tagName) => {\n const cssStyle = map[tagName];\n if (typeof cssStyle === \"string\" && cssStyle.length > 0) {\n patchThemeTag(name, tagName, cssStyle);\n }\n });\n }\n return name;\n};\nconst getThemeNode = (element) => {\n if (element instanceof HTMLElement) {\n if (typeof element.dataset.theme === \"string\") {\n return element;\n } else {\n let parentNode = element.parentNode;\n while (parentNode instanceof ShadowRoot) {\n parentNode = parentNode.host;\n }\n return getThemeNode(parentNode);\n }\n } else {\n return null;\n }\n};\nconst getEncroachCss = (dataset = {}) => {\n if (dataset.themeEncroachCss === \"false\" || dataset.themeReset === \"true\") {\n return false;\n } else {\n return {\n mode: dataset.themeEncroachCssMode === \"after\" || dataset.themeEncroachCssMode === \"before\" ? dataset.themeEncroachCssMode : \"before\"\n };\n }\n};\nconst isTheCurrentThemeConfigValid = () => typeof STORE.A11yUi === \"object\" && STORE.A11yUi !== null && typeof STORE.A11yUi.Theme === \"object\" && STORE.A11yUi.Theme !== null && typeof STORE.A11yUi.Theme.cache === \"boolean\" && typeof STORE.A11yUi.Theme.encroachCss === \"object\" && typeof STORE.A11yUi.Theme.encroachCss !== null && typeof STORE.A11yUi.Theme.encroachCss.mode === \"string\" && typeof STORE.A11yUi.Theme.name === \"string\";\nconst isTheCurrentThemeNotDefault = () => (typeof STORE.A11yUi === \"object\" && STORE.A11yUi !== null) === false || (typeof STORE.A11yUi.Theme === \"object\" && STORE.A11yUi.Theme !== null) === false || STORE.A11yUi.Theme.name !== \"default\";\nconst getThemeDetails = (element) => {\n if (isTheCurrentThemeConfigValid()) {\n return STORE.A11yUi.Theme;\n } else {\n const details = {\n cache: true,\n encroachCss: getEncroachCss(),\n loglevel: \"silent\",\n name: null\n };\n const themeNode = getThemeNode(element);\n if (themeNode instanceof HTMLElement) {\n details.cache = themeNode.dataset.themeCache !== \"false\";\n details.encroachCss = getEncroachCss(themeNode.dataset);\n details.loglevel = themeNode.dataset.themeLoglevel === \"debug\" ? themeNode.dataset.themeLoglevel : \"silent\";\n details.name = themeNode.dataset.theme || null;\n }\n return details;\n }\n};\nconst getTheme = (element) => {\n return getThemeDetails(element).name;\n};\nconst getThemeOptionDefaults = (themeName, options) => {\n return {\n cache: options.cache !== false,\n // default: true\n detect: options.detect === \"auto\" ? \"auto\" : \"fixed\",\n // default: 'fixed'\n encroachCss: options.encroachCss === false ? false : typeof options.encroachCss === \"object\" && options.encroachCss != null && (options.encroachCss.mode === \"after\" || options.encroachCss.mode === \"before\") ? options.encroachCss : {\n mode: \"before\"\n // default: 'before'\n },\n loglevel: options.loglevel === \"debug\" ? options.loglevel : \"silent\",\n // default: 'silent'\n name: typeof options.name === \"string\" ? options.name : themeName\n // default: themeName\n };\n};\nconst setConfigureTheme = (themeName, options) => {\n if (isTheCurrentThemeConfigValid() === false && isTheCurrentThemeNotDefault()) {\n if (\n // Die Options müssen ein Objekt sein.\n typeof options === \"object\" && options !== null\n ) {\n options = getThemeOptionDefaults(themeName, options);\n if (\n /**\n * The presetting of theme options is only relevant by using 'fixed'\n * detection mode.\n */\n options.detect === \"fixed\"\n ) {\n if (options.name === null && typeof themeName === \"string\") {\n options.name = themeName;\n }\n if (\n /**\n * Wenn mehrere Themes geladen werden, dann wird nur der Theme-Name gesetzt,\n * der mit dem Name eines Themes übereinstimmt.\n */\n themeName === options.name\n ) {\n if (typeof STORE.A11yUi !== \"object\" || STORE.A11yUi === null) {\n STORE.A11yUi = {};\n }\n STORE.A11yUi.Theme = options;\n log.info(`[Theming] Theme \"${themeName}\" was set as default theme.`);\n }\n } else {\n log.warn(`[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.`);\n }\n }\n }\n};\nlet registered = false;\nconst register = (themes, loaders, options = {}) => {\n if (registered === false) {\n registered = true;\n lockThemePatching = false;\n }\n if (typeof themes === \"function\") {\n themes = /* @__PURE__ */ new Set([themes]);\n } else if (Array.isArray(themes)) {\n themes = new Set(themes);\n }\n if (themes instanceof Set) {\n themes.forEach((theme) => {\n if (typeof theme === \"function\" && theme.length === 1) {\n setConfigureTheme(theme(patchTheme), {\n cache: options.theme?.cache,\n detect: options.theme?.detect,\n encroachCss: options.theme?.encroachCss,\n name: options.theme?.name\n });\n } else {\n log.error(`[Theming] Es wurde versucht eine nicht kompatibles Theme zu laden.`);\n }\n });\n }\n lockThemePatching = true;\n if (typeof loaders === \"function\") {\n loaders = /* @__PURE__ */ new Set([loaders]);\n } else if (Array.isArray(loaders)) {\n loaders = new Set(loaders);\n }\n const promises = [];\n loaders.forEach((loader) => promises.push(loader()));\n return Promise.all(promises);\n};\n\nconst _RobustStore = class {\n constructor(object, identifier) {\n this.store = this.createStore(object, identifier);\n }\n static getInstance(identifier, object) {\n let instance = _RobustStore.instances.get(identifier);\n if (instance === void 0) {\n instance = new _RobustStore(object, identifier);\n _RobustStore.instances.set(identifier, instance);\n }\n return instance;\n }\n createStore(object, identifier) {\n Object.defineProperty(object, identifier, {\n enumerable: false,\n value: {},\n writable: false\n });\n return object[identifier];\n }\n recursiveSetItem(store, key, value, options = _RobustStore.options) {\n let storeValue = typeof value === \"object\" && value !== null ? {} : value;\n Object.defineProperty(store, key, {\n enumerable: options.enumerable === true,\n get: () => storeValue,\n /**\n * Die set Methode muss eigentlich ein this.recursiveSetItem aufrufen.\n */\n set: options.immutable === true ? void 0 : (value2) => storeValue = value2\n });\n if (typeof value === \"object\" && value !== null) {\n for (const [k, v] of Object.entries(value)) {\n this.recursiveSetItem(store[key], k, v, options);\n }\n }\n }\n setItem(key, value, options = _RobustStore.options) {\n this.recursiveSetItem(this.store, key, value, options);\n return this;\n }\n getItem(key) {\n if (Array.isArray(key)) {\n return key.map((k) => this.getItem(k));\n }\n return this.store[key];\n }\n};\nlet RobustStore = _RobustStore;\nRobustStore.options = {\n enumerable: false,\n immutable: false\n};\nRobustStore.instances = /* @__PURE__ */ new Map();\n\nconst STYLING_TASK_QUEUE = /* @__PURE__ */ new Map();\nconst HYDRATED_HISTORY = [];\nconst CSS_PROPERTIES_REGISTERED = /* @__PURE__ */ new Set();\nconst CSS_STYLE_CACHE = /* @__PURE__ */ new Map();\nconst REGEX_CSS_PROPERTIES = /--[^;]+/g;\nconst REGEX_SPLIT_CSS_PROPERTY = /:/;\nif (typeof STORE.A11yUi !== \"object\" || STORE.A11yUi === null) {\n STORE.A11yUi = {\n CSS_STYLE_CACHE,\n HYDRATED_HISTORY,\n STYLING_TASK_QUEUE\n };\n}\nconst extractProperties = (themeName, css) => {\n let properties = css.match(REGEX_CSS_PROPERTIES);\n if (Array.isArray(properties)) {\n properties = properties.filter((property) => REGEX_SPLIT_CSS_PROPERTY.test(property));\n const style = document.createElement(\"style\");\n style.innerHTML = `.${themeName} {${properties.join(\";\")}}`;\n document.querySelector(\"head\")?.appendChild(style);\n }\n CSS_PROPERTIES_REGISTERED.add(themeName);\n};\nconst getCssStyle = (themeName, tagName) => {\n if (\n /**\n * Search custom StyleSheet in Config\n * TODO: Performance???\n */\n typeof STORE.A11yUi === \"object\" && STORE.A11yUi !== null && typeof STORE.A11yUi.Themes === \"object\" && STORE.A11yUi.Themes !== null && typeof STORE.A11yUi.Themes[themeName] === \"object\" && STORE.A11yUi.Themes[themeName] !== null && typeof STORE.A11yUi.Themes[themeName][tagName] === \"string\"\n ) {\n return STORE.A11yUi.Themes[themeName][tagName].replace(\n /\\r?\\n/g,\n \"\"\n );\n } else {\n return \"\";\n }\n};\nconst removeStyle = (shadow) => {\n for (const childNode of Array.from(shadow.childNodes)) {\n if (childNode instanceof HTMLStyleElement && childNode.tagName === \"STYLE\") {\n shadow.removeChild(childNode);\n } else {\n break;\n }\n }\n};\nconst patchStyle = (shadow, styles) => {\n try {\n const styleSheets = [];\n styles.forEach((style) => {\n const styleSheet = new CSSStyleSheet();\n styleSheet.replaceSync(style);\n styleSheets.push(styleSheet);\n });\n shadow.adoptedStyleSheets = styleSheets;\n } catch (e) {\n styles.reverse().forEach((style) => {\n const styleElement = document.createElement(\"style\");\n styleElement.innerHTML = style;\n shadow.insertBefore(styleElement, shadow.firstChild);\n });\n }\n};\nconst encroachStyles = (shadow, styles, encroachCss) => {\n if (encroachCss !== false) {\n const defaultStyleNodes = [\n ...Array.from(shadow.childNodes).filter((node) => node instanceof HTMLStyleElement && node.tagName === \"STYLE\")\n ];\n let defaultStyleSheets;\n try {\n defaultStyleSheets = [...Array.from(shadow.adoptedStyleSheets)];\n } catch (e) {\n defaultStyleSheets = [];\n }\n if (encroachCss?.mode === \"before\") {\n defaultStyleNodes.reverse().forEach((style) => styles.unshift(style.innerHTML));\n defaultStyleSheets.reverse().forEach(\n (style) => styles.unshift(\n Array.from(style.cssRules).map((rule) => rule.cssText).join(\"\")\n )\n );\n } else if (encroachCss?.mode === \"after\") {\n defaultStyleNodes.forEach((style) => styles.push(style.innerHTML));\n defaultStyleSheets.forEach(\n (style) => styles.push(\n Array.from(style.cssRules).map((rule) => rule.cssText).join(\"\")\n )\n );\n }\n }\n};\nconst setThemeStyleAfterHydrated = (elm, themeDetails, styleDisplay) => {\n const themeName = themeDetails.name || \"default\";\n let shadow;\n try {\n if (elm.shadowRoot === null) {\n throw new Error(\"ShadowRoot is null\");\n }\n shadow = elm.shadowRoot;\n } catch (e) {\n shadow = elm;\n }\n if (CSS_STYLE_CACHE.get(themeName)?.has(elm.tagName)) {\n switchStyle(elm, shadow, CSS_STYLE_CACHE.get(themeName)?.get(elm.tagName), styleDisplay);\n } else {\n const PROPERTY_STYLE = getCssStyle(themeName, \"PROPERTIES\");\n const GLOBAL_STYLE = getCssStyle(themeName, \"GLOBAL\");\n const TAG_STYLE = getCssStyle(themeName, elm.tagName);\n if (CSS_PROPERTIES_REGISTERED.has(themeName) === false) {\n extractProperties(themeName, GLOBAL_STYLE);\n }\n const STYLES = [PROPERTY_STYLE, GLOBAL_STYLE, TAG_STYLE];\n encroachStyles(shadow, STYLES, themeDetails.encroachCss);\n if (themeDetails.loglevel === \"debug\") {\n console.log(elm.tagName, STYLES);\n }\n if (themeDetails.cache === true) {\n if (CSS_STYLE_CACHE.has(themeName) === false) {\n CSS_STYLE_CACHE.set(themeName, /* @__PURE__ */ new Map());\n }\n CSS_STYLE_CACHE.get(themeName)?.set(elm.tagName, STYLES);\n }\n switchStyle(elm, shadow, STYLES, styleDisplay);\n }\n};\nconst switchStyle = (elm, shadow, styles, styleDisplay) => {\n removeStyle(shadow);\n patchStyle(shadow, styles);\n elm.style.display = styleDisplay;\n};\nconst logHydratedHistory = (themeDetails) => {\n if (themeDetails.loglevel === \"debug\") {\n HYDRATED_HISTORY.push({\n timestamp: Date.now(),\n numberOfTasks: STYLING_TASK_QUEUE.size\n });\n }\n};\nconst pushToDoTask = (elm, themeDetails) => {\n STYLING_TASK_QUEUE.set(elm, {\n /**\n * Das Element soll solange nicht sichtbar bleiben\n * bis der Style im DOM gesetzt ist.\n */\n styleDisplay: `${elm.style.display}`,\n themeDetails\n });\n};\nconst loggedPushToDoTask = (elm, themeDetails) => {\n pushToDoTask(elm, themeDetails);\n logHydratedHistory(themeDetails);\n};\nconst deleteDoneTask = (elm) => {\n STYLING_TASK_QUEUE.delete(elm);\n};\nconst loggedDeleteDoneTask = (elm, themeDetails) => {\n deleteDoneTask(elm);\n logHydratedHistory(themeDetails);\n};\nconst waitForHydrated = (elm) => {\n const T = setTimeout(() => {\n clearTimeout(T);\n if (STYLING_TASK_QUEUE.has(elm) && elm.classList.contains(\"hydrated\")) {\n const { styleDisplay, themeDetails } = STYLING_TASK_QUEUE.get(elm);\n setThemeStyleAfterHydrated(elm, themeDetails, styleDisplay);\n loggedDeleteDoneTask(elm, themeDetails);\n } else {\n waitForHydrated(elm);\n }\n }, 25);\n};\nconst observerCallback = (mutationsList) => {\n for (const mutation of mutationsList) {\n if (\n /**\n * Save by observer config\n */\n // mutation.type === 'attributes' &&\n // mutation.attributeName === 'class' &&\n /**\n * Implizit check for HTMLElement\n */\n // mutation.target &&\n STYLING_TASK_QUEUE.has(mutation.target) && mutation.target.classList.contains(\"hydrated\")\n ) {\n const { styleDisplay, themeDetails } = STYLING_TASK_QUEUE.get(mutation.target);\n setThemeStyleAfterHydrated(mutation.target, themeDetails, styleDisplay);\n loggedDeleteDoneTask(mutation.target, themeDetails);\n }\n }\n};\nconst observerOptions = {\n attributes: true,\n attributeFilter: [\"class\"],\n childList: false,\n subtree: false\n};\nlet observer;\ntry {\n observer = new MutationObserver(observerCallback);\n} catch (e) {\n observer = null;\n}\nconst setThemeStyle = (elm, themeDetails) => {\n loggedPushToDoTask(elm, themeDetails);\n if (observer) {\n observer.observe(elm, observerOptions);\n } else {\n waitForHydrated(elm);\n }\n elm.style.display = \"none\";\n};\n\nclass Theme {\n constructor(prefix, keyEnum, tagEnum) {\n this.createTheme = (name, map) => createTheme(name, map);\n this.createTranslation = (name, map) => createTranslation(name, map);\n this.Prefix = prefix;\n this.Key = Object.getOwnPropertyNames(keyEnum);\n this.Tag = Object.getOwnPropertyNames(tagEnum);\n }\n}\n\nexport { RobustStore, STORE, Theme, getTheme, getThemeDetails, patchTheme, patchThemeTag, register, setThemeStyle };\n"],"version":3}