@public-ui/components 2.0.0-rc.8 → 2.0.0

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 (1186) hide show
  1. package/custom-elements.json +138 -38
  2. package/dist/cjs/{InternalUnderlinedAccessKey-2c4875d5.js → InternalUnderlinedAccessKey-13d98585.js} +1 -1
  3. package/dist/cjs/{InternalUnderlinedAccessKey-2c4875d5.js.map → InternalUnderlinedAccessKey-13d98585.js.map} +1 -1
  4. package/dist/cjs/{a11y.tipps-c9682dc9.js → a11y.tipps-3cff218a.js} +1 -1
  5. package/dist/cjs/{a11y.tipps-c9682dc9.js.map → a11y.tipps-3cff218a.js.map} +1 -1
  6. package/dist/cjs/access-key-3f7e20a4.js +4 -0
  7. package/dist/cjs/{access-key-9c2d35b1.js.map → access-key-3f7e20a4.js.map} +1 -1
  8. package/dist/cjs/align-floating-elements-dca98687.js +4 -0
  9. package/dist/cjs/align-floating-elements-dca98687.js.map +1 -0
  10. package/dist/cjs/{alignment-a8499755.js → alignment-516753a3.js} +1 -1
  11. package/dist/cjs/{alignment-a8499755.js.map → alignment-516753a3.js.map} +1 -1
  12. package/dist/cjs/alternative-button-link-role-e640cd3e.js +4 -0
  13. package/dist/cjs/{alternative-button-link-role-c28b468f.js.map → alternative-button-link-role-e640cd3e.js.map} +1 -1
  14. package/dist/cjs/{app-globals-52d99c30.js → app-globals-c1bdbf21.js} +1 -1
  15. package/dist/cjs/app-globals-c1bdbf21.js.map +1 -0
  16. package/dist/cjs/ariaCurrentService-53afa476.js +4 -0
  17. package/dist/cjs/ariaCurrentService-53afa476.js.map +1 -0
  18. package/dist/cjs/{associated.controller-e37fdad4.js → associated.controller-66de4b43.js} +1 -1
  19. package/dist/cjs/associated.controller-66de4b43.js.map +1 -0
  20. package/dist/cjs/{bund-f5184e9e.js.map → bund-4be96755.js.map} +1 -1
  21. package/dist/cjs/{color-cf957ff4.js → color-1cc0d5df.js} +1 -1
  22. package/dist/cjs/color-1cc0d5df.js.map +1 -0
  23. package/dist/cjs/{controller-cd27f197.js → controller-7f8062fe.js} +1 -1
  24. package/dist/cjs/controller-7f8062fe.js.map +1 -0
  25. package/dist/cjs/controller-b237a488.js +4 -0
  26. package/dist/cjs/controller-b237a488.js.map +1 -0
  27. package/dist/cjs/controller-bff44c4c.js +4 -0
  28. package/dist/cjs/controller-bff44c4c.js.map +1 -0
  29. package/dist/cjs/controller-c32a52d6.js +4 -0
  30. package/dist/cjs/controller-c32a52d6.js.map +1 -0
  31. package/dist/cjs/{controller-62e7f4d4.js → controller-d5f2264d.js} +1 -1
  32. package/dist/cjs/controller-d5f2264d.js.map +1 -0
  33. package/dist/cjs/{controller-icon-8b602e6a.js → controller-icon-7021badf.js} +1 -1
  34. package/dist/cjs/controller-icon-7021badf.js.map +1 -0
  35. package/dist/cjs/custom-class-f6c69910.js +4 -0
  36. package/dist/cjs/{custom-class-82b756d7.js.map → custom-class-f6c69910.js.map} +1 -1
  37. package/dist/cjs/{details-synced-open-state-01d46fbc.js.map → details-synced-open-state-e88811c7.js.map} +1 -1
  38. package/dist/cjs/dev.utils-dd53475e.js +4 -0
  39. package/dist/cjs/dev.utils-dd53475e.js.map +1 -0
  40. package/dist/cjs/{devtools-a49b8ec9.js → devtools-5b98bd4e.js} +1 -1
  41. package/dist/cjs/devtools-5b98bd4e.js.map +1 -0
  42. package/dist/cjs/{events-a0c291ce.js.map → events-e348a615.js.map} +1 -1
  43. package/dist/cjs/has-closer-884ff2c9.js +4 -0
  44. package/dist/cjs/{has-closer-21f24bf0.js.map → has-closer-884ff2c9.js.map} +1 -1
  45. package/dist/cjs/hide-label-c4baa68a.js +4 -0
  46. package/dist/cjs/{hide-label-63295094.js.map → hide-label-c4baa68a.js.map} +1 -1
  47. package/dist/cjs/i18n-b7ec2d1b.js +4 -0
  48. package/dist/cjs/i18n-b7ec2d1b.js.map +1 -0
  49. package/dist/cjs/{icons-26b30637.js → icons-20f8bfb5.js} +1 -1
  50. package/dist/cjs/icons-20f8bfb5.js.map +1 -0
  51. package/dist/cjs/image-source-0601c693.js +4 -0
  52. package/dist/cjs/{image-source-fe99810d.js.map → image-source-0601c693.js.map} +1 -1
  53. package/dist/cjs/index-759bf886.js +4 -0
  54. package/dist/cjs/{index-d7eb404f.js.map → index-759bf886.js.map} +1 -1
  55. package/dist/cjs/index-a2400b65.js +5 -0
  56. package/dist/cjs/index-a2400b65.js.map +1 -0
  57. package/dist/cjs/index-bb49d83a.js +4 -0
  58. package/dist/cjs/index-bb49d83a.js.map +1 -0
  59. package/dist/cjs/index.cjs.js +1 -1
  60. package/dist/cjs/index.cjs.js.map +1 -1
  61. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  63. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  65. package/dist/cjs/kol-alert-wc_2.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-alert-wc_2.cjs.entry.js.map +1 -1
  67. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  69. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-avatar-wc.cjs.entry.js.map +1 -1
  71. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  73. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  75. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  77. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-button-group-wc.cjs.entry.js.map +1 -1
  79. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-button-group.cjs.entry.js.map +1 -1
  81. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js.map +1 -1
  83. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  85. package/dist/cjs/kol-button-wc_2.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-button-wc_2.cjs.entry.js.map +1 -1
  87. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  89. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  91. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  93. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  95. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  97. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  99. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  101. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-indented-text.cjs.entry.js.map +1 -1
  103. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  105. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  107. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  109. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  111. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  113. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  115. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  117. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  119. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  121. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  123. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-input.cjs.entry.js.map +1 -1
  125. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  127. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  129. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-link-group.cjs.entry.js.map +1 -1
  131. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  133. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  135. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  136. package/dist/cjs/kol-logo.cjs.entry.js.map +1 -1
  137. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  139. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  141. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  143. package/dist/cjs/kol-popover-wc.cjs.entry.js +4 -0
  144. package/dist/cjs/kol-popover-wc.cjs.entry.js.map +1 -0
  145. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  146. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  147. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  148. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  149. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  150. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  151. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  152. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  153. package/dist/cjs/kol-span-wc.cjs.entry.js +1 -1
  154. package/dist/cjs/kol-span-wc.cjs.entry.js.map +1 -1
  155. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  156. package/dist/cjs/kol-span.cjs.entry.js.map +1 -1
  157. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  158. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  159. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  160. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  161. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  162. package/dist/cjs/kol-symbol.cjs.entry.js.map +1 -1
  163. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  164. package/dist/cjs/kol-table.cjs.entry.js.map +1 -1
  165. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  166. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  167. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  168. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  169. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  170. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  171. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  172. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  173. package/dist/cjs/kolibri.cjs.js +1 -1
  174. package/dist/cjs/kolibri.cjs.js.map +1 -1
  175. package/dist/cjs/{label-a9e9ea83.js → label-de5ebf4b.js} +1 -1
  176. package/dist/cjs/label-de5ebf4b.js.map +1 -0
  177. package/dist/cjs/loader.cjs.js +1 -1
  178. package/dist/cjs/open-4a152c75.js +4 -0
  179. package/dist/cjs/{open-d4905ad3.js.map → open-4a152c75.js.map} +1 -1
  180. package/dist/cjs/prop.validators-5f352bbf.js +4 -0
  181. package/dist/cjs/prop.validators-5f352bbf.js.map +1 -0
  182. package/dist/cjs/reprod-accordion-does-not-toggle-with-open-092e559d.js.map +1 -0
  183. package/dist/cjs/reuse-a4c8450e.js.map +1 -0
  184. package/dist/cjs/rows-4798c8ee.js +4 -0
  185. package/dist/cjs/{rows-78a948f1.js.map → rows-4798c8ee.js.map} +1 -1
  186. package/dist/cjs/show-705b299e.js +4 -0
  187. package/dist/cjs/{show-eda88962.js.map → show-705b299e.js.map} +1 -1
  188. package/dist/cjs/{suggestions-d7efef3e.js → suggestions-54b14d40.js} +1 -1
  189. package/dist/cjs/suggestions-54b14d40.js.map +1 -0
  190. package/dist/cjs/{tab-index-c327027d.js → tab-index-1cc9cecb.js} +1 -1
  191. package/dist/cjs/tab-index-1cc9cecb.js.map +1 -0
  192. package/dist/cjs/toaster-29a344ee.js +4 -0
  193. package/dist/cjs/toaster-29a344ee.js.map +1 -0
  194. package/dist/cjs/{toaster-1659a44f.js → toaster-693c93ec.js} +1 -1
  195. package/dist/cjs/{toaster-1659a44f.js.map → toaster-693c93ec.js.map} +1 -1
  196. package/dist/cjs/{tooltip-align-b2dc9c08.js → tooltip-align-d0446059.js} +1 -1
  197. package/dist/cjs/{tooltip-align-b2dc9c08.js.map → tooltip-align-d0446059.js.map} +1 -1
  198. package/dist/cjs/{unique-nav-labels-9784a4c5.js.map → unique-nav-labels-363e1d71.js.map} +1 -1
  199. package/dist/cjs/{validation-d2ef4d42.js → validation-26535d0c.js} +1 -1
  200. package/dist/cjs/{validation-d2ef4d42.js.map → validation-26535d0c.js.map} +1 -1
  201. package/dist/cjs/{validation-c73ef686.js → validation-90a278d7.js} +1 -1
  202. package/dist/cjs/{validation-c73ef686.js.map → validation-90a278d7.js.map} +1 -1
  203. package/dist/components/align-floating-elements.js +4 -0
  204. package/dist/components/align-floating-elements.js.map +1 -0
  205. package/dist/components/ariaCurrentService.js +4 -0
  206. package/dist/components/ariaCurrentService.js.map +1 -0
  207. package/dist/components/bund.js.map +1 -1
  208. package/dist/components/color.js.map +1 -1
  209. package/dist/components/component.js.map +1 -1
  210. package/dist/components/component10.js.map +1 -1
  211. package/dist/components/component11.js.map +1 -1
  212. package/dist/components/component12.js +1 -1
  213. package/dist/components/component12.js.map +1 -1
  214. package/dist/components/component13.js +1 -1
  215. package/dist/components/component13.js.map +1 -1
  216. package/dist/components/component14.js +1 -1
  217. package/dist/components/component14.js.map +1 -1
  218. package/dist/components/component15.js +1 -1
  219. package/dist/components/component15.js.map +1 -1
  220. package/dist/components/component2.js.map +1 -1
  221. package/dist/components/component3.js +1 -1
  222. package/dist/components/component3.js.map +1 -1
  223. package/dist/components/component4.js +1 -1
  224. package/dist/components/component4.js.map +1 -1
  225. package/dist/components/component5.js.map +1 -1
  226. package/dist/components/component6.js +1 -1
  227. package/dist/components/component6.js.map +1 -1
  228. package/dist/components/component7.js +1 -1
  229. package/dist/components/component7.js.map +1 -1
  230. package/dist/components/component8.js +1 -1
  231. package/dist/components/component8.js.map +1 -1
  232. package/dist/components/component9.js +1 -1
  233. package/dist/components/component9.js.map +1 -1
  234. package/dist/components/controller-icon.js.map +1 -1
  235. package/dist/components/controller.js +1 -1
  236. package/dist/components/controller.js.map +1 -1
  237. package/dist/components/controller2.js +1 -1
  238. package/dist/components/controller2.js.map +1 -1
  239. package/dist/components/controller3.js +1 -1
  240. package/dist/components/controller3.js.map +1 -1
  241. package/dist/components/controller4.js +1 -1
  242. package/dist/components/controller4.js.map +1 -1
  243. package/dist/components/details-synced-open-state.js.map +1 -1
  244. package/dist/components/devtools.js +1 -1
  245. package/dist/components/devtools.js.map +1 -1
  246. package/dist/components/events.js.map +1 -1
  247. package/dist/components/has-closer.js.map +1 -1
  248. package/dist/components/i18n.js +1 -1
  249. package/dist/components/i18n.js.map +1 -1
  250. package/dist/components/image-source.js.map +1 -1
  251. package/dist/components/index.js +1 -1
  252. package/dist/components/index.js.map +1 -1
  253. package/dist/components/index2.js.map +1 -1
  254. package/dist/components/kol-abbr.d.ts +2 -2
  255. package/dist/components/kol-abbr.js +1 -1
  256. package/dist/components/kol-abbr.js.map +1 -1
  257. package/dist/components/kol-accordion.d.ts +2 -2
  258. package/dist/components/kol-accordion.js +1 -1
  259. package/dist/components/kol-accordion.js.map +1 -1
  260. package/dist/components/kol-alert-wc.d.ts +2 -2
  261. package/dist/components/kol-alert.d.ts +2 -2
  262. package/dist/components/kol-avatar-wc.d.ts +2 -2
  263. package/dist/components/kol-avatar.d.ts +2 -2
  264. package/dist/components/kol-avatar.js +1 -1
  265. package/dist/components/kol-avatar.js.map +1 -1
  266. package/dist/components/kol-badge.d.ts +2 -2
  267. package/dist/components/kol-breadcrumb.d.ts +2 -2
  268. package/dist/components/kol-breadcrumb.js +1 -1
  269. package/dist/components/kol-breadcrumb.js.map +1 -1
  270. package/dist/components/kol-button-group-wc.d.ts +2 -2
  271. package/dist/components/kol-button-group.d.ts +2 -2
  272. package/dist/components/kol-button-group.js +1 -1
  273. package/dist/components/kol-button-group.js.map +1 -1
  274. package/dist/components/kol-button-link-text-switch.d.ts +2 -2
  275. package/dist/components/kol-button-link.d.ts +2 -2
  276. package/dist/components/kol-button-link.js +1 -1
  277. package/dist/components/kol-button-link.js.map +1 -1
  278. package/dist/components/kol-button-wc.d.ts +2 -2
  279. package/dist/components/kol-button.d.ts +2 -2
  280. package/dist/components/kol-card.d.ts +2 -2
  281. package/dist/components/kol-card.js +1 -1
  282. package/dist/components/kol-card.js.map +1 -1
  283. package/dist/components/kol-details.d.ts +2 -2
  284. package/dist/components/kol-details.js +1 -1
  285. package/dist/components/kol-details.js.map +1 -1
  286. package/dist/components/kol-form.d.ts +2 -2
  287. package/dist/components/kol-form.js.map +1 -1
  288. package/dist/components/kol-heading-wc.d.ts +2 -2
  289. package/dist/components/kol-heading.d.ts +2 -2
  290. package/dist/components/kol-heading.js +1 -1
  291. package/dist/components/kol-heading.js.map +1 -1
  292. package/dist/components/kol-icon.d.ts +2 -2
  293. package/dist/components/kol-image.d.ts +2 -2
  294. package/dist/components/kol-image.js.map +1 -1
  295. package/dist/components/kol-indented-text.d.ts +2 -2
  296. package/dist/components/kol-input-checkbox.d.ts +2 -2
  297. package/dist/components/kol-input-checkbox.js +1 -1
  298. package/dist/components/kol-input-checkbox.js.map +1 -1
  299. package/dist/components/kol-input-color.d.ts +2 -2
  300. package/dist/components/kol-input-color.js +1 -1
  301. package/dist/components/kol-input-color.js.map +1 -1
  302. package/dist/components/kol-input-date.d.ts +2 -2
  303. package/dist/components/kol-input-date.js +1 -1
  304. package/dist/components/kol-input-date.js.map +1 -1
  305. package/dist/components/kol-input-email.d.ts +2 -2
  306. package/dist/components/kol-input-email.js +1 -1
  307. package/dist/components/kol-input-email.js.map +1 -1
  308. package/dist/components/kol-input-file.d.ts +2 -2
  309. package/dist/components/kol-input-file.js +1 -1
  310. package/dist/components/kol-input-file.js.map +1 -1
  311. package/dist/components/kol-input-number.d.ts +2 -2
  312. package/dist/components/kol-input-number.js +1 -1
  313. package/dist/components/kol-input-number.js.map +1 -1
  314. package/dist/components/kol-input-password.d.ts +2 -2
  315. package/dist/components/kol-input-password.js +1 -1
  316. package/dist/components/kol-input-password.js.map +1 -1
  317. package/dist/components/kol-input-radio.d.ts +2 -2
  318. package/dist/components/kol-input-radio.js +1 -1
  319. package/dist/components/kol-input-radio.js.map +1 -1
  320. package/dist/components/kol-input-range.d.ts +2 -2
  321. package/dist/components/kol-input-range.js +1 -1
  322. package/dist/components/kol-input-range.js.map +1 -1
  323. package/dist/components/kol-input-text.d.ts +2 -2
  324. package/dist/components/kol-input-text.js +1 -1
  325. package/dist/components/kol-input-text.js.map +1 -1
  326. package/dist/components/kol-input.d.ts +2 -2
  327. package/dist/components/kol-kolibri.d.ts +2 -2
  328. package/dist/components/kol-kolibri.js +1 -1
  329. package/dist/components/kol-kolibri.js.map +1 -1
  330. package/dist/components/kol-link-button.d.ts +2 -2
  331. package/dist/components/kol-link-button.js +1 -1
  332. package/dist/components/kol-link-button.js.map +1 -1
  333. package/dist/components/kol-link-group.d.ts +2 -2
  334. package/dist/components/kol-link-group.js +1 -1
  335. package/dist/components/kol-link-group.js.map +1 -1
  336. package/dist/components/kol-link-wc.d.ts +2 -2
  337. package/dist/components/kol-link.d.ts +2 -2
  338. package/dist/components/kol-logo.d.ts +2 -2
  339. package/dist/components/kol-logo.js +1 -1
  340. package/dist/components/kol-logo.js.map +1 -1
  341. package/dist/components/kol-modal.d.ts +2 -2
  342. package/dist/components/kol-modal.js +1 -1
  343. package/dist/components/kol-modal.js.map +1 -1
  344. package/dist/components/kol-nav.d.ts +2 -2
  345. package/dist/components/kol-nav.js +1 -1
  346. package/dist/components/kol-nav.js.map +1 -1
  347. package/dist/components/kol-pagination.d.ts +2 -2
  348. package/dist/components/{kol-popover.d.ts → kol-popover-wc.d.ts} +4 -4
  349. package/dist/components/kol-popover-wc.js +4 -0
  350. package/dist/components/kol-popover-wc.js.map +1 -0
  351. package/dist/components/kol-progress.d.ts +2 -2
  352. package/dist/components/kol-progress.js +1 -1
  353. package/dist/components/kol-progress.js.map +1 -1
  354. package/dist/components/kol-quote.d.ts +2 -2
  355. package/dist/components/kol-quote.js +1 -1
  356. package/dist/components/kol-quote.js.map +1 -1
  357. package/dist/components/kol-select.d.ts +2 -2
  358. package/dist/components/kol-skip-nav.d.ts +2 -2
  359. package/dist/components/kol-skip-nav.js +1 -1
  360. package/dist/components/kol-skip-nav.js.map +1 -1
  361. package/dist/components/kol-span-wc.d.ts +2 -2
  362. package/dist/components/kol-span.d.ts +2 -2
  363. package/dist/components/kol-span.js +1 -1
  364. package/dist/components/kol-span.js.map +1 -1
  365. package/dist/components/kol-spin.d.ts +2 -2
  366. package/dist/components/kol-spin.js +1 -1
  367. package/dist/components/kol-spin.js.map +1 -1
  368. package/dist/components/kol-split-button.d.ts +2 -2
  369. package/dist/components/kol-split-button.js +1 -1
  370. package/dist/components/kol-split-button.js.map +1 -1
  371. package/dist/components/kol-symbol.d.ts +2 -2
  372. package/dist/components/kol-symbol.js.map +1 -1
  373. package/dist/components/kol-table.d.ts +2 -2
  374. package/dist/components/kol-table.js +1 -1
  375. package/dist/components/kol-table.js.map +1 -1
  376. package/dist/components/kol-tabs.d.ts +2 -2
  377. package/dist/components/kol-tabs.js +1 -1
  378. package/dist/components/kol-tabs.js.map +1 -1
  379. package/dist/components/kol-textarea.d.ts +2 -2
  380. package/dist/components/kol-textarea.js +1 -1
  381. package/dist/components/kol-textarea.js.map +1 -1
  382. package/dist/components/kol-toast-container.d.ts +2 -2
  383. package/dist/components/kol-toast-container.js +1 -1
  384. package/dist/components/kol-toast-container.js.map +1 -1
  385. package/dist/components/kol-tooltip-wc.d.ts +2 -2
  386. package/dist/components/kol-version.d.ts +2 -2
  387. package/dist/components/kol-version.js +1 -1
  388. package/dist/components/kol-version.js.map +1 -1
  389. package/dist/components/label.js.map +1 -1
  390. package/dist/components/open.js.map +1 -1
  391. package/dist/components/prop.validators.js +1 -1
  392. package/dist/components/prop.validators.js.map +1 -1
  393. package/dist/components/reprod-accordion-does-not-toggle-with-open.js.map +1 -1
  394. package/dist/components/rows.js.map +1 -1
  395. package/dist/components/shadow.js +1 -1
  396. package/dist/components/shadow.js.map +1 -1
  397. package/dist/components/shadow2.js +1 -1
  398. package/dist/components/shadow2.js.map +1 -1
  399. package/dist/components/shadow3.js +1 -1
  400. package/dist/components/shadow3.js.map +1 -1
  401. package/dist/components/show.js.map +1 -1
  402. package/dist/components/suggestions.js.map +1 -1
  403. package/dist/components/tab-index.js.map +1 -1
  404. package/dist/components/toaster.js.map +1 -1
  405. package/dist/components/tooltip-align.js +1 -1
  406. package/dist/components/tooltip-align.js.map +1 -1
  407. package/dist/components/unique-nav-labels.js.map +1 -1
  408. package/dist/components/validation.js.map +1 -1
  409. package/dist/esm/{InternalUnderlinedAccessKey-f593c389.js → InternalUnderlinedAccessKey-2c5af489.js} +1 -1
  410. package/dist/esm/{InternalUnderlinedAccessKey-f593c389.js.map → InternalUnderlinedAccessKey-2c5af489.js.map} +1 -1
  411. package/dist/esm/{a11y.tipps-ce35f0ba.js → a11y.tipps-e9cad37c.js} +1 -1
  412. package/dist/esm/{a11y.tipps-ce35f0ba.js.map → a11y.tipps-e9cad37c.js.map} +1 -1
  413. package/dist/esm/access-key-1625dd20.js +4 -0
  414. package/dist/esm/{access-key-8240737c.js.map → access-key-1625dd20.js.map} +1 -1
  415. package/dist/esm/align-floating-elements-cadb5c5b.js +4 -0
  416. package/dist/esm/align-floating-elements-cadb5c5b.js.map +1 -0
  417. package/dist/esm/{alignment-e4b01638.js → alignment-2f00e22b.js} +1 -1
  418. package/dist/esm/{alignment-e4b01638.js.map → alignment-2f00e22b.js.map} +1 -1
  419. package/dist/esm/alternative-button-link-role-f981a27b.js +4 -0
  420. package/dist/esm/{alternative-button-link-role-6e40ea00.js.map → alternative-button-link-role-f981a27b.js.map} +1 -1
  421. package/dist/esm/app-globals-b23d4e7b.js +4 -0
  422. package/dist/esm/app-globals-b23d4e7b.js.map +1 -0
  423. package/dist/esm/ariaCurrentService-6fe36ebc.js +4 -0
  424. package/dist/esm/ariaCurrentService-6fe36ebc.js.map +1 -0
  425. package/dist/esm/{associated.controller-6fc585ca.js → associated.controller-4725864a.js} +1 -1
  426. package/dist/esm/associated.controller-4725864a.js.map +1 -0
  427. package/dist/esm/{bund-056aa89a.js.map → bund-ad41b762.js.map} +1 -1
  428. package/dist/esm/{color-d643b48d.js → color-4fd77675.js} +1 -1
  429. package/dist/esm/color-4fd77675.js.map +1 -0
  430. package/dist/esm/{controller-5fe68410.js → controller-15b86c4c.js} +1 -1
  431. package/dist/esm/controller-15b86c4c.js.map +1 -0
  432. package/dist/esm/controller-24fd3c96.js +4 -0
  433. package/dist/esm/controller-24fd3c96.js.map +1 -0
  434. package/dist/esm/controller-8eba0306.js +4 -0
  435. package/dist/esm/controller-8eba0306.js.map +1 -0
  436. package/dist/esm/controller-b59b53b5.js +4 -0
  437. package/dist/esm/controller-b59b53b5.js.map +1 -0
  438. package/dist/esm/controller-bca2b59f.js +4 -0
  439. package/dist/esm/controller-bca2b59f.js.map +1 -0
  440. package/dist/esm/{controller-icon-d242ea16.js → controller-icon-745779e5.js} +1 -1
  441. package/dist/esm/controller-icon-745779e5.js.map +1 -0
  442. package/dist/esm/custom-class-f42c69f8.js +4 -0
  443. package/dist/esm/{custom-class-4f50e79f.js.map → custom-class-f42c69f8.js.map} +1 -1
  444. package/dist/esm/{details-synced-open-state-66c07ea5.js.map → details-synced-open-state-45ecc035.js.map} +1 -1
  445. package/dist/esm/dev.utils-61c61d76.js +4 -0
  446. package/dist/esm/dev.utils-61c61d76.js.map +1 -0
  447. package/dist/esm/{devtools-5924cad9.js → devtools-2ad36829.js} +1 -1
  448. package/dist/esm/devtools-2ad36829.js.map +1 -0
  449. package/dist/esm/{events-2bb1065b.js.map → events-fa760b68.js.map} +1 -1
  450. package/dist/esm/{has-closer-1b322deb.js → has-closer-4da7b42f.js} +1 -1
  451. package/dist/esm/{has-closer-1b322deb.js.map → has-closer-4da7b42f.js.map} +1 -1
  452. package/dist/esm/{hide-label-29f1b0eb.js → hide-label-aca36293.js} +1 -1
  453. package/dist/esm/{hide-label-29f1b0eb.js.map → hide-label-aca36293.js.map} +1 -1
  454. package/dist/esm/i18n-e1b2767a.js +4 -0
  455. package/dist/esm/i18n-e1b2767a.js.map +1 -0
  456. package/dist/esm/{icons-7806a223.js → icons-6e5f46e1.js} +1 -1
  457. package/dist/esm/icons-6e5f46e1.js.map +1 -0
  458. package/dist/esm/{image-source-bdd50deb.js → image-source-9e600678.js} +1 -1
  459. package/dist/esm/{image-source-bdd50deb.js.map → image-source-9e600678.js.map} +1 -1
  460. package/dist/esm/index-a4a4df51.js +4 -0
  461. package/dist/esm/{index-a098db81.js.map → index-a4a4df51.js.map} +1 -1
  462. package/dist/esm/index-c1312005.js +4 -0
  463. package/dist/esm/index-c1312005.js.map +1 -0
  464. package/dist/esm/index-e9d20d00.js +5 -0
  465. package/dist/esm/index-e9d20d00.js.map +1 -0
  466. package/dist/esm/index.js +1 -1
  467. package/dist/esm/index.js.map +1 -1
  468. package/dist/esm/kol-abbr.entry.js +1 -1
  469. package/dist/esm/kol-abbr.entry.js.map +1 -1
  470. package/dist/esm/kol-accordion.entry.js +1 -1
  471. package/dist/esm/kol-accordion.entry.js.map +1 -1
  472. package/dist/esm/kol-alert-wc_2.entry.js +1 -1
  473. package/dist/esm/kol-alert-wc_2.entry.js.map +1 -1
  474. package/dist/esm/kol-alert.entry.js +1 -1
  475. package/dist/esm/kol-alert.entry.js.map +1 -1
  476. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  477. package/dist/esm/kol-avatar-wc.entry.js.map +1 -1
  478. package/dist/esm/kol-avatar.entry.js +1 -1
  479. package/dist/esm/kol-avatar.entry.js.map +1 -1
  480. package/dist/esm/kol-badge.entry.js +1 -1
  481. package/dist/esm/kol-badge.entry.js.map +1 -1
  482. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  483. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  484. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  485. package/dist/esm/kol-button-group-wc.entry.js.map +1 -1
  486. package/dist/esm/kol-button-group.entry.js +1 -1
  487. package/dist/esm/kol-button-group.entry.js.map +1 -1
  488. package/dist/esm/kol-button-link-text-switch.entry.js +1 -1
  489. package/dist/esm/kol-button-link-text-switch.entry.js.map +1 -1
  490. package/dist/esm/kol-button-link.entry.js +1 -1
  491. package/dist/esm/kol-button-link.entry.js.map +1 -1
  492. package/dist/esm/kol-button-wc_2.entry.js +1 -1
  493. package/dist/esm/kol-button-wc_2.entry.js.map +1 -1
  494. package/dist/esm/kol-button.entry.js +1 -1
  495. package/dist/esm/kol-button.entry.js.map +1 -1
  496. package/dist/esm/kol-card.entry.js +1 -1
  497. package/dist/esm/kol-card.entry.js.map +1 -1
  498. package/dist/esm/kol-details.entry.js +1 -1
  499. package/dist/esm/kol-details.entry.js.map +1 -1
  500. package/dist/esm/kol-form.entry.js +1 -1
  501. package/dist/esm/kol-form.entry.js.map +1 -1
  502. package/dist/esm/kol-heading.entry.js +1 -1
  503. package/dist/esm/kol-heading.entry.js.map +1 -1
  504. package/dist/esm/kol-icon.entry.js +1 -1
  505. package/dist/esm/kol-icon.entry.js.map +1 -1
  506. package/dist/esm/kol-image.entry.js +1 -1
  507. package/dist/esm/kol-image.entry.js.map +1 -1
  508. package/dist/esm/kol-indented-text.entry.js +1 -1
  509. package/dist/esm/kol-indented-text.entry.js.map +1 -1
  510. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  511. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  512. package/dist/esm/kol-input-color.entry.js +1 -1
  513. package/dist/esm/kol-input-color.entry.js.map +1 -1
  514. package/dist/esm/kol-input-date.entry.js +1 -1
  515. package/dist/esm/kol-input-date.entry.js.map +1 -1
  516. package/dist/esm/kol-input-email.entry.js +1 -1
  517. package/dist/esm/kol-input-email.entry.js.map +1 -1
  518. package/dist/esm/kol-input-file.entry.js +1 -1
  519. package/dist/esm/kol-input-file.entry.js.map +1 -1
  520. package/dist/esm/kol-input-number.entry.js +1 -1
  521. package/dist/esm/kol-input-number.entry.js.map +1 -1
  522. package/dist/esm/kol-input-password.entry.js +1 -1
  523. package/dist/esm/kol-input-password.entry.js.map +1 -1
  524. package/dist/esm/kol-input-radio.entry.js +1 -1
  525. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  526. package/dist/esm/kol-input-range.entry.js +1 -1
  527. package/dist/esm/kol-input-range.entry.js.map +1 -1
  528. package/dist/esm/kol-input-text.entry.js +1 -1
  529. package/dist/esm/kol-input-text.entry.js.map +1 -1
  530. package/dist/esm/kol-input.entry.js +1 -1
  531. package/dist/esm/kol-input.entry.js.map +1 -1
  532. package/dist/esm/kol-kolibri.entry.js +1 -1
  533. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  534. package/dist/esm/kol-link-button.entry.js +1 -1
  535. package/dist/esm/kol-link-button.entry.js.map +1 -1
  536. package/dist/esm/kol-link-group.entry.js +1 -1
  537. package/dist/esm/kol-link-group.entry.js.map +1 -1
  538. package/dist/esm/kol-link-wc.entry.js +1 -1
  539. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  540. package/dist/esm/kol-link.entry.js +1 -1
  541. package/dist/esm/kol-link.entry.js.map +1 -1
  542. package/dist/esm/kol-logo.entry.js +1 -1
  543. package/dist/esm/kol-logo.entry.js.map +1 -1
  544. package/dist/esm/kol-modal.entry.js +1 -1
  545. package/dist/esm/kol-modal.entry.js.map +1 -1
  546. package/dist/esm/kol-nav.entry.js +1 -1
  547. package/dist/esm/kol-nav.entry.js.map +1 -1
  548. package/dist/esm/kol-pagination.entry.js +1 -1
  549. package/dist/esm/kol-pagination.entry.js.map +1 -1
  550. package/dist/esm/kol-popover-wc.entry.js +4 -0
  551. package/dist/esm/kol-popover-wc.entry.js.map +1 -0
  552. package/dist/esm/kol-progress.entry.js +1 -1
  553. package/dist/esm/kol-progress.entry.js.map +1 -1
  554. package/dist/esm/kol-quote.entry.js +1 -1
  555. package/dist/esm/kol-quote.entry.js.map +1 -1
  556. package/dist/esm/kol-select.entry.js +1 -1
  557. package/dist/esm/kol-select.entry.js.map +1 -1
  558. package/dist/esm/kol-skip-nav.entry.js +1 -1
  559. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  560. package/dist/esm/kol-span-wc.entry.js +1 -1
  561. package/dist/esm/kol-span-wc.entry.js.map +1 -1
  562. package/dist/esm/kol-span.entry.js +1 -1
  563. package/dist/esm/kol-span.entry.js.map +1 -1
  564. package/dist/esm/kol-spin.entry.js +1 -1
  565. package/dist/esm/kol-spin.entry.js.map +1 -1
  566. package/dist/esm/kol-split-button.entry.js +1 -1
  567. package/dist/esm/kol-split-button.entry.js.map +1 -1
  568. package/dist/esm/kol-symbol.entry.js +1 -1
  569. package/dist/esm/kol-symbol.entry.js.map +1 -1
  570. package/dist/esm/kol-table.entry.js +1 -1
  571. package/dist/esm/kol-table.entry.js.map +1 -1
  572. package/dist/esm/kol-tabs.entry.js +1 -1
  573. package/dist/esm/kol-tabs.entry.js.map +1 -1
  574. package/dist/esm/kol-textarea.entry.js +1 -1
  575. package/dist/esm/kol-textarea.entry.js.map +1 -1
  576. package/dist/esm/kol-toast-container.entry.js +1 -1
  577. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  578. package/dist/esm/kol-version.entry.js +1 -1
  579. package/dist/esm/kol-version.entry.js.map +1 -1
  580. package/dist/esm/kolibri.js +1 -1
  581. package/dist/esm/kolibri.js.map +1 -1
  582. package/dist/esm/{label-2cb169c2.js → label-32f655e1.js} +1 -1
  583. package/dist/esm/label-32f655e1.js.map +1 -0
  584. package/dist/esm/loader.js +1 -1
  585. package/dist/esm/{open-590f675d.js → open-4fee4c52.js} +1 -1
  586. package/dist/esm/{open-590f675d.js.map → open-4fee4c52.js.map} +1 -1
  587. package/dist/esm/prop.validators-2e3fde52.js +4 -0
  588. package/dist/esm/prop.validators-2e3fde52.js.map +1 -0
  589. package/dist/esm/reprod-accordion-does-not-toggle-with-open-930fccf8.js.map +1 -0
  590. package/dist/esm/reuse-d79ab469.js.map +1 -0
  591. package/dist/esm/{rows-16012802.js → rows-32475866.js} +1 -1
  592. package/dist/esm/{rows-16012802.js.map → rows-32475866.js.map} +1 -1
  593. package/dist/esm/{show-caf52695.js → show-0ced7b04.js} +1 -1
  594. package/dist/esm/{show-caf52695.js.map → show-0ced7b04.js.map} +1 -1
  595. package/dist/esm/{suggestions-ef03081f.js → suggestions-4347211e.js} +1 -1
  596. package/dist/esm/suggestions-4347211e.js.map +1 -0
  597. package/dist/esm/{tab-index-9201352c.js → tab-index-555bc0fc.js} +1 -1
  598. package/dist/esm/tab-index-555bc0fc.js.map +1 -0
  599. package/dist/esm/toaster-bd34d3c2.js +4 -0
  600. package/dist/esm/toaster-bd34d3c2.js.map +1 -0
  601. package/dist/esm/{toaster-6901baa3.js → toaster-f89ddf4f.js} +1 -1
  602. package/dist/esm/{toaster-6901baa3.js.map → toaster-f89ddf4f.js.map} +1 -1
  603. package/dist/esm/{tooltip-align-f2f68cbf.js → tooltip-align-9f02b487.js} +1 -1
  604. package/dist/esm/{tooltip-align-f2f68cbf.js.map → tooltip-align-9f02b487.js.map} +1 -1
  605. package/dist/esm/{unique-nav-labels-c6750f60.js.map → unique-nav-labels-62d9802d.js.map} +1 -1
  606. package/dist/esm/{validation-b1ee30aa.js → validation-54b01567.js} +1 -1
  607. package/dist/esm/{validation-b1ee30aa.js.map → validation-54b01567.js.map} +1 -1
  608. package/dist/esm/validation-b86b914b.js +4 -0
  609. package/dist/esm/{validation-6962a682.js.map → validation-b86b914b.js.map} +1 -1
  610. package/dist/kolibri/{InternalUnderlinedAccessKey-f593c389.js → InternalUnderlinedAccessKey-2c5af489.js} +1 -1
  611. package/dist/kolibri/{a11y.tipps-ce35f0ba.js → a11y.tipps-e9cad37c.js} +1 -1
  612. package/dist/kolibri/access-key-1625dd20.js +4 -0
  613. package/dist/kolibri/align-floating-elements-cadb5c5b.js +4 -0
  614. package/dist/kolibri/align-floating-elements-cadb5c5b.js.map +1 -0
  615. package/dist/kolibri/alignment-2f00e22b.js +4 -0
  616. package/dist/kolibri/alternative-button-link-role-f981a27b.js +4 -0
  617. package/dist/kolibri/app-globals-b23d4e7b.js +4 -0
  618. package/dist/kolibri/ariaCurrentService-6fe36ebc.js +4 -0
  619. package/dist/kolibri/ariaCurrentService-6fe36ebc.js.map +1 -0
  620. package/dist/kolibri/assets/simulations/table-simulation.js +1 -1
  621. package/dist/kolibri/{associated.controller-6fc585ca.js → associated.controller-4725864a.js} +1 -1
  622. package/dist/kolibri/{color-d643b48d.js → color-4fd77675.js} +1 -1
  623. package/dist/kolibri/{controller-5fe68410.js → controller-15b86c4c.js} +1 -1
  624. package/dist/kolibri/controller-24fd3c96.js +4 -0
  625. package/dist/kolibri/controller-24fd3c96.js.map +1 -0
  626. package/dist/kolibri/controller-8eba0306.js +4 -0
  627. package/dist/kolibri/controller-8eba0306.js.map +1 -0
  628. package/dist/kolibri/controller-b59b53b5.js +4 -0
  629. package/dist/kolibri/controller-b59b53b5.js.map +1 -0
  630. package/dist/kolibri/controller-bca2b59f.js +4 -0
  631. package/dist/kolibri/controller-bca2b59f.js.map +1 -0
  632. package/dist/kolibri/controller-icon-745779e5.js +4 -0
  633. package/dist/kolibri/custom-class-f42c69f8.js +4 -0
  634. package/dist/kolibri/dev.utils-61c61d76.js +4 -0
  635. package/dist/kolibri/dev.utils-61c61d76.js.map +1 -0
  636. package/dist/kolibri/{devtools-5924cad9.js → devtools-2ad36829.js} +1 -1
  637. package/dist/kolibri/has-closer-4da7b42f.js +4 -0
  638. package/dist/kolibri/{has-closer-1b322deb.js.map → has-closer-4da7b42f.js.map} +1 -1
  639. package/dist/kolibri/hide-label-aca36293.js +4 -0
  640. package/dist/kolibri/i18n-e1b2767a.js +4 -0
  641. package/dist/kolibri/i18n-e1b2767a.js.map +1 -0
  642. package/dist/kolibri/icons-6e5f46e1.js +4 -0
  643. package/dist/kolibri/{icons-7806a223.js.map → icons-6e5f46e1.js.map} +1 -1
  644. package/dist/kolibri/image-source-9e600678.js +4 -0
  645. package/dist/kolibri/index-a4a4df51.js +4 -0
  646. package/dist/kolibri/index-c1312005.js +4 -0
  647. package/dist/kolibri/index-c1312005.js.map +1 -0
  648. package/dist/kolibri/index-e9d20d00.js +5 -0
  649. package/dist/kolibri/index-e9d20d00.js.map +1 -0
  650. package/dist/kolibri/index.esm.js +1 -1
  651. package/dist/kolibri/kol-abbr.entry.js +1 -1
  652. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  653. package/dist/kolibri/kol-accordion.entry.js +1 -1
  654. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  655. package/dist/kolibri/kol-alert-wc_2.entry.js +1 -1
  656. package/dist/kolibri/kol-alert-wc_2.entry.js.map +1 -1
  657. package/dist/kolibri/kol-alert.entry.js +1 -1
  658. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  659. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  660. package/dist/kolibri/kol-avatar-wc.entry.js.map +1 -1
  661. package/dist/kolibri/kol-avatar.entry.js +1 -1
  662. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  663. package/dist/kolibri/kol-badge.entry.js +1 -1
  664. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  665. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  666. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  667. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  668. package/dist/kolibri/kol-button-group.entry.js +1 -1
  669. package/dist/kolibri/kol-button-group.entry.js.map +1 -1
  670. package/dist/kolibri/kol-button-link-text-switch.entry.js +1 -1
  671. package/dist/kolibri/kol-button-link.entry.js +1 -1
  672. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  673. package/dist/kolibri/kol-button-wc_2.entry.js +1 -1
  674. package/dist/kolibri/kol-button-wc_2.entry.js.map +1 -1
  675. package/dist/kolibri/kol-button.entry.js +1 -1
  676. package/dist/kolibri/kol-button.entry.js.map +1 -1
  677. package/dist/kolibri/kol-card.entry.js +1 -1
  678. package/dist/kolibri/kol-card.entry.js.map +1 -1
  679. package/dist/kolibri/kol-details.entry.js +1 -1
  680. package/dist/kolibri/kol-details.entry.js.map +1 -1
  681. package/dist/kolibri/kol-form.entry.js +1 -1
  682. package/dist/kolibri/kol-heading.entry.js +1 -1
  683. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  684. package/dist/kolibri/kol-icon.entry.js +1 -1
  685. package/dist/kolibri/kol-image.entry.js +1 -1
  686. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  687. package/dist/kolibri/kol-indented-text.entry.js.map +1 -1
  688. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  689. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  690. package/dist/kolibri/kol-input-color.entry.js +1 -1
  691. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  692. package/dist/kolibri/kol-input-date.entry.js +1 -1
  693. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  694. package/dist/kolibri/kol-input-email.entry.js +1 -1
  695. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  696. package/dist/kolibri/kol-input-file.entry.js +1 -1
  697. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  698. package/dist/kolibri/kol-input-number.entry.js +1 -1
  699. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  700. package/dist/kolibri/kol-input-password.entry.js +1 -1
  701. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  702. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  703. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  704. package/dist/kolibri/kol-input-range.entry.js +1 -1
  705. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  706. package/dist/kolibri/kol-input-text.entry.js +1 -1
  707. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  708. package/dist/kolibri/kol-input.entry.js +1 -1
  709. package/dist/kolibri/kol-input.entry.js.map +1 -1
  710. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  711. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  712. package/dist/kolibri/kol-link-button.entry.js +1 -1
  713. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  714. package/dist/kolibri/kol-link-group.entry.js +1 -1
  715. package/dist/kolibri/kol-link-group.entry.js.map +1 -1
  716. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  717. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  718. package/dist/kolibri/kol-link.entry.js +1 -1
  719. package/dist/kolibri/kol-link.entry.js.map +1 -1
  720. package/dist/kolibri/kol-logo.entry.js +1 -1
  721. package/dist/kolibri/kol-logo.entry.js.map +1 -1
  722. package/dist/kolibri/kol-modal.entry.js +1 -1
  723. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  724. package/dist/kolibri/kol-nav.entry.js +1 -1
  725. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  726. package/dist/kolibri/kol-pagination.entry.js +1 -1
  727. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  728. package/dist/kolibri/kol-popover-wc.entry.js +4 -0
  729. package/dist/kolibri/kol-popover-wc.entry.js.map +1 -0
  730. package/dist/kolibri/kol-progress.entry.js +1 -1
  731. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  732. package/dist/kolibri/kol-quote.entry.js +1 -1
  733. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  734. package/dist/kolibri/kol-select.entry.js +1 -1
  735. package/dist/kolibri/kol-select.entry.js.map +1 -1
  736. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  737. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  738. package/dist/kolibri/kol-span-wc.entry.js +1 -1
  739. package/dist/kolibri/kol-span.entry.js +1 -1
  740. package/dist/kolibri/kol-span.entry.js.map +1 -1
  741. package/dist/kolibri/kol-spin.entry.js +1 -1
  742. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  743. package/dist/kolibri/kol-split-button.entry.js +1 -1
  744. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  745. package/dist/kolibri/kol-symbol.entry.js +1 -1
  746. package/dist/kolibri/kol-table.entry.js +1 -1
  747. package/dist/kolibri/kol-table.entry.js.map +1 -1
  748. package/dist/kolibri/kol-tabs.entry.js +1 -1
  749. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  750. package/dist/kolibri/kol-textarea.entry.js +1 -1
  751. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  752. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  753. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  754. package/dist/kolibri/kol-version.entry.js +1 -1
  755. package/dist/kolibri/kol-version.entry.js.map +1 -1
  756. package/dist/kolibri/kolibri.esm.js +1 -1
  757. package/dist/kolibri/kolibri.esm.js.map +1 -1
  758. package/dist/kolibri/label-32f655e1.js +4 -0
  759. package/dist/kolibri/open-4fee4c52.js +4 -0
  760. package/dist/kolibri/prop.validators-2e3fde52.js +4 -0
  761. package/dist/kolibri/prop.validators-2e3fde52.js.map +1 -0
  762. package/dist/kolibri/rows-32475866.js +4 -0
  763. package/dist/kolibri/show-0ced7b04.js +4 -0
  764. package/dist/kolibri/suggestions-4347211e.js +4 -0
  765. package/dist/kolibri/tab-index-555bc0fc.js +4 -0
  766. package/dist/kolibri/{tab-index-9201352c.js.map → tab-index-555bc0fc.js.map} +1 -1
  767. package/dist/kolibri/toaster-bd34d3c2.js +4 -0
  768. package/dist/kolibri/toaster-bd34d3c2.js.map +1 -0
  769. package/dist/kolibri/{toaster-6901baa3.js → toaster-f89ddf4f.js} +1 -1
  770. package/dist/kolibri/tooltip-align-9f02b487.js +4 -0
  771. package/dist/kolibri/{validation-b1ee30aa.js → validation-54b01567.js} +1 -1
  772. package/dist/kolibri/validation-b86b914b.js +4 -0
  773. package/dist/types/components/@deprecated/input/controller-icon.d.ts +5 -5
  774. package/dist/types/components/@deprecated/input/controller.d.ts +28 -27
  775. package/dist/types/components/@deprecated/input/types-icon.d.ts +2 -2
  776. package/dist/types/components/@deprecated/input/types.d.ts +12 -11
  777. package/dist/types/components/@else/all/component.d.ts +2 -2
  778. package/dist/types/components/@else/counter/component.d.ts +6 -6
  779. package/dist/types/components/abbr/component.d.ts +8 -8
  780. package/dist/types/components/accordion/component.d.ts +15 -15
  781. package/dist/types/components/accordion/test/html.mock.d.ts +2 -2
  782. package/dist/types/components/accordion/types.d.ts +3 -3
  783. package/dist/types/components/alert/component.d.ts +20 -20
  784. package/dist/types/components/alert/shadow.d.ts +9 -9
  785. package/dist/types/components/alert/types.d.ts +5 -5
  786. package/dist/types/components/avatar/component.d.ts +7 -7
  787. package/dist/types/components/avatar/shadow.d.ts +3 -3
  788. package/dist/types/components/badge/component.d.ts +14 -14
  789. package/dist/types/components/badge/contrast.d.ts +3 -3
  790. package/dist/types/components/badge/types.d.ts +5 -5
  791. package/dist/types/components/breadcrumb/component.d.ts +9 -9
  792. package/dist/types/components/breadcrumb/types.d.ts +2 -2
  793. package/dist/types/components/button/component.d.ts +47 -47
  794. package/dist/types/components/button/shadow.d.ts +23 -22
  795. package/dist/types/components/button/test/html.mock.d.ts +1 -1
  796. package/dist/types/components/button/types.d.ts +3 -3
  797. package/dist/types/components/button-group/component.d.ts +2 -2
  798. package/dist/types/components/button-group/shadow.d.ts +1 -1
  799. package/dist/types/components/button-link/component.d.ts +21 -20
  800. package/dist/types/components/button-link-text-switch/component.d.ts +6 -6
  801. package/dist/types/components/button-link-text-switch/types.d.ts +3 -3
  802. package/dist/types/components/card/component.d.ts +14 -14
  803. package/dist/types/components/card/types.d.ts +3 -3
  804. package/dist/types/components/details/DetailsAnimationController.d.ts +13 -13
  805. package/dist/types/components/details/component.d.ts +17 -17
  806. package/dist/types/components/details/test/html.mock.d.ts +1 -1
  807. package/dist/types/components/details/types.d.ts +2 -2
  808. package/dist/types/components/form/component.d.ts +9 -9
  809. package/dist/types/components/form/controller.d.ts +4 -4
  810. package/dist/types/components/form/types.d.ts +4 -4
  811. package/dist/types/components/heading/component.d.ts +14 -11
  812. package/dist/types/components/heading/shadow.d.ts +6 -4
  813. package/dist/types/components/heading/test/html.mock.d.ts +2 -2
  814. package/dist/types/components/heading/types.d.ts +7 -6
  815. package/dist/types/components/icon/component.d.ts +7 -7
  816. package/dist/types/components/icon/types.d.ts +1 -1
  817. package/dist/types/components/image/shadow.d.ts +13 -13
  818. package/dist/types/components/image/types.d.ts +7 -7
  819. package/dist/types/components/indented-text/component.d.ts +2 -2
  820. package/dist/types/components/indented-text/test/html.mock.d.ts +1 -1
  821. package/dist/types/components/input/component.d.ts +27 -27
  822. package/dist/types/components/input/controller.d.ts +7 -7
  823. package/dist/types/components/input/types.d.ts +7 -7
  824. package/dist/types/components/input-adapter-leanup/associated.controller.d.ts +15 -15
  825. package/dist/types/components/input-adapter-leanup/controller.d.ts +5 -5
  826. package/dist/types/components/input-adapter-leanup/types.d.ts +2 -2
  827. package/dist/types/components/input-checkbox/component.d.ts +51 -50
  828. package/dist/types/components/input-checkbox/controller.d.ts +9 -11
  829. package/dist/types/components/input-checkbox/types.d.ts +31 -31
  830. package/dist/types/components/input-color/component.d.ts +48 -47
  831. package/dist/types/components/input-color/controller.d.ts +6 -8
  832. package/dist/types/components/input-color/types.d.ts +22 -22
  833. package/dist/types/components/input-date/component.d.ts +61 -60
  834. package/dist/types/components/input-date/controller.d.ts +24 -26
  835. package/dist/types/components/input-date/types.d.ts +18 -18
  836. package/dist/types/components/input-email/component.d.ts +63 -62
  837. package/dist/types/components/input-email/controller.d.ts +4 -6
  838. package/dist/types/components/input-email/types.d.ts +29 -29
  839. package/dist/types/components/input-file/component.d.ts +51 -50
  840. package/dist/types/components/input-file/controller.d.ts +7 -9
  841. package/dist/types/components/input-file/types.d.ts +20 -20
  842. package/dist/types/components/input-number/component.d.ts +61 -60
  843. package/dist/types/components/input-number/controller.d.ts +17 -19
  844. package/dist/types/components/input-number/types.d.ts +17 -17
  845. package/dist/types/components/input-password/component.d.ts +59 -58
  846. package/dist/types/components/input-password/controller.d.ts +14 -16
  847. package/dist/types/components/input-password/types.d.ts +28 -28
  848. package/dist/types/components/input-radio/component.d.ts +47 -45
  849. package/dist/types/components/input-radio/controller.d.ts +16 -18
  850. package/dist/types/components/input-radio/types.d.ts +17 -17
  851. package/dist/types/components/input-range/component.d.ts +55 -53
  852. package/dist/types/components/input-range/controller.d.ts +9 -11
  853. package/dist/types/components/input-range/types.d.ts +25 -25
  854. package/dist/types/components/input-text/component.d.ts +66 -65
  855. package/dist/types/components/input-text/controller.d.ts +11 -13
  856. package/dist/types/components/input-text/types.d.ts +31 -31
  857. package/dist/types/components/kolibri/component.d.ts +13 -13
  858. package/dist/types/components/kolibri/types.d.ts +10 -10
  859. package/dist/types/components/link/ariaCurrentService.d.ts +5 -0
  860. package/dist/types/components/link/component.d.ts +37 -38
  861. package/dist/types/components/link/shadow.d.ts +17 -17
  862. package/dist/types/components/link/types.d.ts +8 -6
  863. package/dist/types/components/link-button/component.d.ts +19 -19
  864. package/dist/types/components/link-group/component.d.ts +13 -13
  865. package/dist/types/components/link-group/types.d.ts +6 -6
  866. package/dist/types/components/logo/component.d.ts +5 -5
  867. package/dist/types/components/logo/types.d.ts +1 -1
  868. package/dist/types/components/modal/component.d.ts +15 -15
  869. package/dist/types/components/modal/service.d.ts +9 -9
  870. package/dist/types/components/modal/types.d.ts +6 -6
  871. package/dist/types/components/nav/component.d.ts +22 -25
  872. package/dist/types/components/nav/types.d.ts +4 -7
  873. package/dist/types/components/nav/validation.d.ts +3 -3
  874. package/dist/types/components/pagination/component.d.ts +41 -41
  875. package/dist/types/components/pagination/types.d.ts +21 -21
  876. package/dist/types/components/popover/component.d.ts +20 -22
  877. package/dist/types/components/popover/test/html.mock.d.ts +1 -1
  878. package/dist/types/components/popover/types.d.ts +1 -1
  879. package/dist/types/components/progress/component.d.ts +15 -15
  880. package/dist/types/components/progress/types.d.ts +7 -7
  881. package/dist/types/components/quote/shadow.d.ts +11 -11
  882. package/dist/types/components/quote/test/html.mock.d.ts +1 -1
  883. package/dist/types/components/quote/types.d.ts +4 -4
  884. package/dist/types/components/select/component.d.ts +52 -51
  885. package/dist/types/components/select/controller.d.ts +14 -16
  886. package/dist/types/components/select/types.d.ts +18 -18
  887. package/dist/types/components/skip-nav/component.d.ts +8 -8
  888. package/dist/types/components/skip-nav/types.d.ts +2 -2
  889. package/dist/types/components/span/InternalUnderlinedAccessKey.d.ts +2 -2
  890. package/dist/types/components/span/component.d.ts +13 -13
  891. package/dist/types/components/span/shadow.d.ts +5 -5
  892. package/dist/types/components/span/test/html.mock.d.ts +4 -4
  893. package/dist/types/components/span/types.d.ts +9 -9
  894. package/dist/types/components/spin/component.d.ts +8 -8
  895. package/dist/types/components/split-button/component.d.ts +28 -28
  896. package/dist/types/components/split-button/types.d.ts +1 -1
  897. package/dist/types/components/symbol/component.d.ts +7 -7
  898. package/dist/types/components/symbol/types.d.ts +1 -1
  899. package/dist/types/components/table/component.d.ts +42 -38
  900. package/dist/types/components/table/types.d.ts +38 -34
  901. package/dist/types/components/tabs/component.d.ts +32 -32
  902. package/dist/types/components/tabs/types.d.ts +12 -12
  903. package/dist/types/components/textarea/component.d.ts +57 -56
  904. package/dist/types/components/textarea/controller.d.ts +12 -14
  905. package/dist/types/components/textarea/types.d.ts +23 -23
  906. package/dist/types/components/toaster/InternalToast.d.ts +3 -3
  907. package/dist/types/components/toaster/component.d.ts +5 -5
  908. package/dist/types/components/toaster/toaster.d.ts +10 -8
  909. package/dist/types/components/toaster/types.d.ts +15 -11
  910. package/dist/types/components/tooltip/component.d.ts +34 -34
  911. package/dist/types/components/version/component.d.ts +5 -5
  912. package/dist/types/components.d.ts +77 -44
  913. package/dist/types/core/i18n.d.ts +13 -12
  914. package/dist/types/enums/bund.d.ts +58 -58
  915. package/dist/types/enums/events.d.ts +17 -17
  916. package/dist/types/i18n.d.ts +5 -5
  917. package/dist/types/index.d.ts +11 -1
  918. package/dist/types/locales/de.d.ts +39 -34
  919. package/dist/types/locales/en.d.ts +39 -34
  920. package/dist/types/stencil-public-runtime.d.ts +8 -0
  921. package/dist/types/types/button-link-text.d.ts +5 -5
  922. package/dist/types/types/icons.d.ts +6 -6
  923. package/dist/types/types/input/control/number.d.ts +19 -19
  924. package/dist/types/types/input/types.d.ts +10 -10
  925. package/dist/types/types/modal.d.ts +1 -1
  926. package/dist/types/types/progress.d.ts +4 -4
  927. package/dist/types/types/props/access-key.d.ts +1 -1
  928. package/dist/types/types/props/adjust-height.d.ts +1 -1
  929. package/dist/types/types/props/alert.d.ts +1 -1
  930. package/dist/types/types/props/align.d.ts +1 -1
  931. package/dist/types/types/props/alternative-button-link-role.d.ts +1 -1
  932. package/dist/types/types/props/aria-controls.d.ts +1 -1
  933. package/dist/types/types/props/aria-current-value.d.ts +8 -0
  934. package/dist/types/types/props/aria-expanded.d.ts +1 -1
  935. package/dist/types/types/props/aria-selected.d.ts +1 -1
  936. package/dist/types/types/props/button-callbacks.d.ts +3 -3
  937. package/dist/types/types/props/button-type.d.ts +1 -1
  938. package/dist/types/types/props/button-variant.d.ts +1 -1
  939. package/dist/types/types/props/checked.d.ts +1 -1
  940. package/dist/types/types/props/collapsible.d.ts +1 -1
  941. package/dist/types/types/props/color.d.ts +5 -5
  942. package/dist/types/types/props/custom-class.d.ts +1 -1
  943. package/dist/types/types/props/disabled.d.ts +1 -1
  944. package/dist/types/types/props/download.d.ts +1 -1
  945. package/dist/types/types/props/has-closer.d.ts +1 -1
  946. package/dist/types/types/props/has-compact-button.d.ts +1 -1
  947. package/dist/types/types/props/has-counter.d.ts +1 -1
  948. package/dist/types/types/props/heading-variant.d.ts +8 -0
  949. package/dist/types/types/props/hide-error.d.ts +1 -1
  950. package/dist/types/types/props/hide-label.d.ts +1 -1
  951. package/dist/types/types/props/href.d.ts +1 -1
  952. package/dist/types/types/props/icons.d.ts +1 -1
  953. package/dist/types/types/props/id.d.ts +1 -1
  954. package/dist/types/types/props/image-source.d.ts +1 -1
  955. package/dist/types/types/props/indeterminate.d.ts +1 -1
  956. package/dist/types/types/props/label.d.ts +2 -2
  957. package/dist/types/types/props/link-on-callbacks.d.ts +2 -2
  958. package/dist/types/types/props/link-target.d.ts +1 -1
  959. package/dist/types/types/props/max.d.ts +1 -1
  960. package/dist/types/types/props/multiple.d.ts +1 -1
  961. package/dist/types/types/props/name.d.ts +1 -1
  962. package/dist/types/types/props/open.d.ts +1 -1
  963. package/dist/types/types/props/options.d.ts +2 -2
  964. package/dist/types/types/props/read-only.d.ts +1 -1
  965. package/dist/types/types/props/required.d.ts +1 -1
  966. package/dist/types/types/props/rows.d.ts +1 -1
  967. package/dist/types/types/props/show.d.ts +1 -1
  968. package/dist/types/types/props/suggestions.d.ts +1 -1
  969. package/dist/types/types/props/sync-value-by-selector.d.ts +1 -1
  970. package/dist/types/types/props/tooltip-align.d.ts +1 -1
  971. package/dist/types/types/props/touched.d.ts +1 -1
  972. package/dist/types/types/props/variant/spin.d.ts +1 -1
  973. package/dist/types/utils/a11y.tipps.d.ts +2 -2
  974. package/dist/types/utils/align-floating-elements.d.ts +9 -0
  975. package/dist/types/utils/color.utils.d.ts +8 -8
  976. package/dist/types/utils/dev.utils.d.ts +13 -13
  977. package/dist/types/utils/prop.validators.d.ts +25 -32
  978. package/doc/alert.md +2 -2
  979. package/doc/button-link.md +13 -0
  980. package/doc/button.md +13 -0
  981. package/doc/components.md +40 -2
  982. package/doc/heading.md +6 -5
  983. package/doc/input-checkbox.md +13 -0
  984. package/doc/input-color.md +13 -0
  985. package/doc/input-date.md +13 -0
  986. package/doc/input-email.md +13 -0
  987. package/doc/input-file.md +13 -0
  988. package/doc/input-number.md +13 -0
  989. package/doc/input-password.md +13 -0
  990. package/doc/input-radio.md +13 -0
  991. package/doc/input-range.md +13 -0
  992. package/doc/input-text.md +13 -0
  993. package/doc/link-button.md +17 -17
  994. package/doc/link.md +41 -30
  995. package/doc/nav.md +8 -9
  996. package/doc/select.md +13 -0
  997. package/doc/spin.md +4 -2
  998. package/doc/table.md +9 -8
  999. package/doc/textarea.md +13 -0
  1000. package/doc/toaster.md +23 -3
  1001. package/doc/tooltip.md +11 -0
  1002. package/package.json +1 -1
  1003. package/vscode-custom-data.json +113 -64
  1004. package/dist/cjs/access-key-9c2d35b1.js +0 -4
  1005. package/dist/cjs/alternative-button-link-role-c28b468f.js +0 -4
  1006. package/dist/cjs/app-globals-52d99c30.js.map +0 -1
  1007. package/dist/cjs/associated.controller-e37fdad4.js.map +0 -1
  1008. package/dist/cjs/color-cf957ff4.js.map +0 -1
  1009. package/dist/cjs/controller-5a6a89c4.js +0 -4
  1010. package/dist/cjs/controller-5a6a89c4.js.map +0 -1
  1011. package/dist/cjs/controller-5e82e39c.js +0 -4
  1012. package/dist/cjs/controller-5e82e39c.js.map +0 -1
  1013. package/dist/cjs/controller-5f33446f.js +0 -4
  1014. package/dist/cjs/controller-5f33446f.js.map +0 -1
  1015. package/dist/cjs/controller-62e7f4d4.js.map +0 -1
  1016. package/dist/cjs/controller-cd27f197.js.map +0 -1
  1017. package/dist/cjs/controller-icon-8b602e6a.js.map +0 -1
  1018. package/dist/cjs/custom-class-82b756d7.js +0 -4
  1019. package/dist/cjs/dev.utils-80099077.js +0 -4
  1020. package/dist/cjs/dev.utils-80099077.js.map +0 -1
  1021. package/dist/cjs/devtools-a49b8ec9.js.map +0 -1
  1022. package/dist/cjs/floating-ui.dom.esm-c21c7751.js +0 -4
  1023. package/dist/cjs/floating-ui.dom.esm-c21c7751.js.map +0 -1
  1024. package/dist/cjs/has-closer-21f24bf0.js +0 -4
  1025. package/dist/cjs/hide-label-63295094.js +0 -4
  1026. package/dist/cjs/i18n-b0531c4a.js +0 -4
  1027. package/dist/cjs/i18n-b0531c4a.js.map +0 -1
  1028. package/dist/cjs/icons-26b30637.js.map +0 -1
  1029. package/dist/cjs/image-source-fe99810d.js +0 -4
  1030. package/dist/cjs/index-01cee031.js +0 -4
  1031. package/dist/cjs/index-01cee031.js.map +0 -1
  1032. package/dist/cjs/index-d310c51c.js +0 -5
  1033. package/dist/cjs/index-d310c51c.js.map +0 -1
  1034. package/dist/cjs/index-d7eb404f.js +0 -4
  1035. package/dist/cjs/kol-popover.cjs.entry.js +0 -4
  1036. package/dist/cjs/kol-popover.cjs.entry.js.map +0 -1
  1037. package/dist/cjs/label-a9e9ea83.js.map +0 -1
  1038. package/dist/cjs/open-d4905ad3.js +0 -4
  1039. package/dist/cjs/prop.validators-4653485a.js +0 -4
  1040. package/dist/cjs/prop.validators-4653485a.js.map +0 -1
  1041. package/dist/cjs/reprod-accordion-does-not-toggle-with-open-53004853.js.map +0 -1
  1042. package/dist/cjs/reuse-786396d6.js.map +0 -1
  1043. package/dist/cjs/rows-78a948f1.js +0 -4
  1044. package/dist/cjs/show-eda88962.js +0 -4
  1045. package/dist/cjs/suggestions-d7efef3e.js.map +0 -1
  1046. package/dist/cjs/tab-index-c327027d.js.map +0 -1
  1047. package/dist/cjs/toaster-ae4331b1.js +0 -4
  1048. package/dist/cjs/toaster-ae4331b1.js.map +0 -1
  1049. package/dist/components/floating-ui.dom.esm.js +0 -4
  1050. package/dist/components/floating-ui.dom.esm.js.map +0 -1
  1051. package/dist/components/kol-popover.js +0 -4
  1052. package/dist/components/kol-popover.js.map +0 -1
  1053. package/dist/esm/access-key-8240737c.js +0 -4
  1054. package/dist/esm/alternative-button-link-role-6e40ea00.js +0 -4
  1055. package/dist/esm/app-globals-c9725f59.js +0 -4
  1056. package/dist/esm/app-globals-c9725f59.js.map +0 -1
  1057. package/dist/esm/associated.controller-6fc585ca.js.map +0 -1
  1058. package/dist/esm/color-d643b48d.js.map +0 -1
  1059. package/dist/esm/controller-2924ea0a.js +0 -4
  1060. package/dist/esm/controller-2924ea0a.js.map +0 -1
  1061. package/dist/esm/controller-5fe68410.js.map +0 -1
  1062. package/dist/esm/controller-b4e5201d.js +0 -4
  1063. package/dist/esm/controller-b4e5201d.js.map +0 -1
  1064. package/dist/esm/controller-be4224bb.js +0 -4
  1065. package/dist/esm/controller-be4224bb.js.map +0 -1
  1066. package/dist/esm/controller-ca2640db.js +0 -4
  1067. package/dist/esm/controller-ca2640db.js.map +0 -1
  1068. package/dist/esm/controller-icon-d242ea16.js.map +0 -1
  1069. package/dist/esm/custom-class-4f50e79f.js +0 -4
  1070. package/dist/esm/dev.utils-34544843.js +0 -4
  1071. package/dist/esm/dev.utils-34544843.js.map +0 -1
  1072. package/dist/esm/devtools-5924cad9.js.map +0 -1
  1073. package/dist/esm/floating-ui.dom.esm-e435ab9f.js +0 -4
  1074. package/dist/esm/floating-ui.dom.esm-e435ab9f.js.map +0 -1
  1075. package/dist/esm/i18n-bb569ab8.js +0 -4
  1076. package/dist/esm/i18n-bb569ab8.js.map +0 -1
  1077. package/dist/esm/icons-7806a223.js.map +0 -1
  1078. package/dist/esm/index-7a38e9a3.js +0 -4
  1079. package/dist/esm/index-7a38e9a3.js.map +0 -1
  1080. package/dist/esm/index-9c30809b.js +0 -5
  1081. package/dist/esm/index-9c30809b.js.map +0 -1
  1082. package/dist/esm/index-a098db81.js +0 -4
  1083. package/dist/esm/kol-popover.entry.js +0 -4
  1084. package/dist/esm/kol-popover.entry.js.map +0 -1
  1085. package/dist/esm/label-2cb169c2.js.map +0 -1
  1086. package/dist/esm/prop.validators-b0d023a4.js +0 -4
  1087. package/dist/esm/prop.validators-b0d023a4.js.map +0 -1
  1088. package/dist/esm/reprod-accordion-does-not-toggle-with-open-542a45b3.js.map +0 -1
  1089. package/dist/esm/reuse-b3566e4c.js.map +0 -1
  1090. package/dist/esm/suggestions-ef03081f.js.map +0 -1
  1091. package/dist/esm/tab-index-9201352c.js.map +0 -1
  1092. package/dist/esm/toaster-2063df5a.js +0 -4
  1093. package/dist/esm/toaster-2063df5a.js.map +0 -1
  1094. package/dist/esm/validation-6962a682.js +0 -4
  1095. package/dist/kolibri/access-key-8240737c.js +0 -4
  1096. package/dist/kolibri/alignment-e4b01638.js +0 -4
  1097. package/dist/kolibri/alternative-button-link-role-6e40ea00.js +0 -4
  1098. package/dist/kolibri/app-globals-c9725f59.js +0 -4
  1099. package/dist/kolibri/controller-2924ea0a.js +0 -4
  1100. package/dist/kolibri/controller-2924ea0a.js.map +0 -1
  1101. package/dist/kolibri/controller-b4e5201d.js +0 -4
  1102. package/dist/kolibri/controller-b4e5201d.js.map +0 -1
  1103. package/dist/kolibri/controller-be4224bb.js +0 -4
  1104. package/dist/kolibri/controller-be4224bb.js.map +0 -1
  1105. package/dist/kolibri/controller-ca2640db.js +0 -4
  1106. package/dist/kolibri/controller-ca2640db.js.map +0 -1
  1107. package/dist/kolibri/controller-icon-d242ea16.js +0 -4
  1108. package/dist/kolibri/custom-class-4f50e79f.js +0 -4
  1109. package/dist/kolibri/dev.utils-34544843.js +0 -4
  1110. package/dist/kolibri/dev.utils-34544843.js.map +0 -1
  1111. package/dist/kolibri/floating-ui.dom.esm-e435ab9f.js +0 -4
  1112. package/dist/kolibri/floating-ui.dom.esm-e435ab9f.js.map +0 -1
  1113. package/dist/kolibri/has-closer-1b322deb.js +0 -4
  1114. package/dist/kolibri/hide-label-29f1b0eb.js +0 -4
  1115. package/dist/kolibri/i18n-bb569ab8.js +0 -4
  1116. package/dist/kolibri/i18n-bb569ab8.js.map +0 -1
  1117. package/dist/kolibri/icons-7806a223.js +0 -4
  1118. package/dist/kolibri/image-source-bdd50deb.js +0 -4
  1119. package/dist/kolibri/index-7a38e9a3.js +0 -4
  1120. package/dist/kolibri/index-7a38e9a3.js.map +0 -1
  1121. package/dist/kolibri/index-9c30809b.js +0 -5
  1122. package/dist/kolibri/index-9c30809b.js.map +0 -1
  1123. package/dist/kolibri/index-a098db81.js +0 -4
  1124. package/dist/kolibri/kol-popover.entry.js +0 -4
  1125. package/dist/kolibri/kol-popover.entry.js.map +0 -1
  1126. package/dist/kolibri/label-2cb169c2.js +0 -4
  1127. package/dist/kolibri/open-590f675d.js +0 -4
  1128. package/dist/kolibri/prop.validators-b0d023a4.js +0 -4
  1129. package/dist/kolibri/prop.validators-b0d023a4.js.map +0 -1
  1130. package/dist/kolibri/rows-16012802.js +0 -4
  1131. package/dist/kolibri/show-caf52695.js +0 -4
  1132. package/dist/kolibri/suggestions-ef03081f.js +0 -4
  1133. package/dist/kolibri/tab-index-9201352c.js +0 -4
  1134. package/dist/kolibri/toaster-2063df5a.js +0 -4
  1135. package/dist/kolibri/toaster-2063df5a.js.map +0 -1
  1136. package/dist/kolibri/tooltip-align-f2f68cbf.js +0 -4
  1137. package/dist/kolibri/validation-6962a682.js +0 -4
  1138. package/dist/types/types/props/aria-current.d.ts +0 -12
  1139. /package/dist/cjs/{bund-f5184e9e.js → bund-4be96755.js} +0 -0
  1140. /package/dist/cjs/{details-synced-open-state-01d46fbc.js → details-synced-open-state-e88811c7.js} +0 -0
  1141. /package/dist/cjs/{events-a0c291ce.js → events-e348a615.js} +0 -0
  1142. /package/dist/cjs/{reprod-accordion-does-not-toggle-with-open-53004853.js → reprod-accordion-does-not-toggle-with-open-092e559d.js} +0 -0
  1143. /package/dist/cjs/{reuse-786396d6.js → reuse-a4c8450e.js} +0 -0
  1144. /package/dist/cjs/{unique-nav-labels-9784a4c5.js → unique-nav-labels-363e1d71.js} +0 -0
  1145. /package/dist/esm/{bund-056aa89a.js → bund-ad41b762.js} +0 -0
  1146. /package/dist/esm/{details-synced-open-state-66c07ea5.js → details-synced-open-state-45ecc035.js} +0 -0
  1147. /package/dist/esm/{events-2bb1065b.js → events-fa760b68.js} +0 -0
  1148. /package/dist/esm/{reprod-accordion-does-not-toggle-with-open-542a45b3.js → reprod-accordion-does-not-toggle-with-open-930fccf8.js} +0 -0
  1149. /package/dist/esm/{reuse-b3566e4c.js → reuse-d79ab469.js} +0 -0
  1150. /package/dist/esm/{unique-nav-labels-c6750f60.js → unique-nav-labels-62d9802d.js} +0 -0
  1151. /package/dist/kolibri/{InternalUnderlinedAccessKey-f593c389.js.map → InternalUnderlinedAccessKey-2c5af489.js.map} +0 -0
  1152. /package/dist/kolibri/{a11y.tipps-ce35f0ba.js.map → a11y.tipps-e9cad37c.js.map} +0 -0
  1153. /package/dist/kolibri/{access-key-8240737c.js.map → access-key-1625dd20.js.map} +0 -0
  1154. /package/dist/kolibri/{alignment-e4b01638.js.map → alignment-2f00e22b.js.map} +0 -0
  1155. /package/dist/kolibri/{alternative-button-link-role-6e40ea00.js.map → alternative-button-link-role-f981a27b.js.map} +0 -0
  1156. /package/dist/kolibri/{app-globals-c9725f59.js.map → app-globals-b23d4e7b.js.map} +0 -0
  1157. /package/dist/kolibri/{associated.controller-6fc585ca.js.map → associated.controller-4725864a.js.map} +0 -0
  1158. /package/dist/kolibri/{bund-056aa89a.js → bund-ad41b762.js} +0 -0
  1159. /package/dist/kolibri/{bund-056aa89a.js.map → bund-ad41b762.js.map} +0 -0
  1160. /package/dist/kolibri/{color-d643b48d.js.map → color-4fd77675.js.map} +0 -0
  1161. /package/dist/kolibri/{controller-5fe68410.js.map → controller-15b86c4c.js.map} +0 -0
  1162. /package/dist/kolibri/{controller-icon-d242ea16.js.map → controller-icon-745779e5.js.map} +0 -0
  1163. /package/dist/kolibri/{custom-class-4f50e79f.js.map → custom-class-f42c69f8.js.map} +0 -0
  1164. /package/dist/kolibri/{details-synced-open-state-66c07ea5.js → details-synced-open-state-45ecc035.js} +0 -0
  1165. /package/dist/kolibri/{details-synced-open-state-66c07ea5.js.map → details-synced-open-state-45ecc035.js.map} +0 -0
  1166. /package/dist/kolibri/{devtools-5924cad9.js.map → devtools-2ad36829.js.map} +0 -0
  1167. /package/dist/kolibri/{events-2bb1065b.js → events-fa760b68.js} +0 -0
  1168. /package/dist/kolibri/{events-2bb1065b.js.map → events-fa760b68.js.map} +0 -0
  1169. /package/dist/kolibri/{hide-label-29f1b0eb.js.map → hide-label-aca36293.js.map} +0 -0
  1170. /package/dist/kolibri/{image-source-bdd50deb.js.map → image-source-9e600678.js.map} +0 -0
  1171. /package/dist/kolibri/{index-a098db81.js.map → index-a4a4df51.js.map} +0 -0
  1172. /package/dist/kolibri/{label-2cb169c2.js.map → label-32f655e1.js.map} +0 -0
  1173. /package/dist/kolibri/{open-590f675d.js.map → open-4fee4c52.js.map} +0 -0
  1174. /package/dist/kolibri/{reprod-accordion-does-not-toggle-with-open-542a45b3.js → reprod-accordion-does-not-toggle-with-open-930fccf8.js} +0 -0
  1175. /package/dist/kolibri/{reprod-accordion-does-not-toggle-with-open-542a45b3.js.map → reprod-accordion-does-not-toggle-with-open-930fccf8.js.map} +0 -0
  1176. /package/dist/kolibri/{reuse-b3566e4c.js → reuse-d79ab469.js} +0 -0
  1177. /package/dist/kolibri/{reuse-b3566e4c.js.map → reuse-d79ab469.js.map} +0 -0
  1178. /package/dist/kolibri/{rows-16012802.js.map → rows-32475866.js.map} +0 -0
  1179. /package/dist/kolibri/{show-caf52695.js.map → show-0ced7b04.js.map} +0 -0
  1180. /package/dist/kolibri/{suggestions-ef03081f.js.map → suggestions-4347211e.js.map} +0 -0
  1181. /package/dist/kolibri/{toaster-6901baa3.js.map → toaster-f89ddf4f.js.map} +0 -0
  1182. /package/dist/kolibri/{tooltip-align-f2f68cbf.js.map → tooltip-align-9f02b487.js.map} +0 -0
  1183. /package/dist/kolibri/{unique-nav-labels-c6750f60.js → unique-nav-labels-62d9802d.js} +0 -0
  1184. /package/dist/kolibri/{unique-nav-labels-c6750f60.js.map → unique-nav-labels-62d9802d.js.map} +0 -0
  1185. /package/dist/kolibri/{validation-b1ee30aa.js.map → validation-54b01567.js.map} +0 -0
  1186. /package/dist/kolibri/{validation-6962a682.js.map → validation-b86b914b.js.map} +0 -0
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-d310c51c.js"),i18n=require("./i18n-b0531c4a.js"),customClass=require("./custom-class-82b756d7.js"),label=require("./label-a9e9ea83.js"),tooltipAlign=require("./tooltip-align-b2dc9c08.js"),dev_utils=require("./dev.utils-80099077.js"),prop_validators=require("./prop.validators-4653485a.js"),uniqueNavLabels=require("./unique-nav-labels-9784a4c5.js"),reuse=require("./reuse-786396d6.js");require("./index-01cee031.js"),require("./a11y.tipps-c9682dc9.js"),require("./alignment-a8499755.js");const validateMax=(t,e,n)=>{prop_validators.watchNumber(t,"_max",e,n)},defaultStyleCss="@layer kol-global {\n\t/*\n\t * This file contains all rules for accessibility.\n\t */\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\tfont-size: inherit;\n\t}\n\n\t* {\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* font-family is NOT inherited all HTML elements. */\n\tbutton,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\tfont-family: inherit;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\talign-items: center;\n\t\tdisplay: grid;\n\t\tgap: 1rem;\n\t\tgrid-template-columns: 1fr auto;\n\t}\n\t.navigation-list {\n\t\talign-items: center;\n\t\tdisplay: inline-flex;\n\t\tflex-wrap: wrap;\n\t\tgap: 0.5em;\n\t\tlist-style: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\t.separator:before {\n\t\tcontent: '•••';\n\t}\n}\n",leftDoubleArrowIcon={left:"codicon codicon-debug-reverse-continue"},leftSingleArrow={left:"codicon codicon-chevron-left"},rightSingleArrowIcon={right:"codicon codicon-chevron-right"},rightDoubleArrowIcon={right:"codicon codicon-debug-continue"},KolPagination=class{constructor(t){index.registerInstance(this,t),this.nonce=dev_utils.nonce(),this.calcCount=(t,e=1)=>Math.ceil(t/e),this.getCount=()=>this.calcCount(this.state._max,this.state._pageSize),this.onClick=(t,e)=>{"function"==typeof this.state._on.onClick&&this.state._on.onClick(t,e),this.onChangePage(t,e)},this.onChangePage=(t,e)=>{const n=setTimeout((()=>{clearTimeout(n),"function"==typeof this.state._on.onChangePage&&this.state._on.onChangePage(t,e)}))},this.onChangePageSize=(t,e)=>{if("number"==typeof(e=parseInt(e[0]))&&e>0&&this._pageSize!==e){this._pageSize=e;const n=setTimeout((()=>{clearTimeout(n),"function"==typeof this.state._on.onChangePageSize&&this.state._on.onChangePageSize(t,this._pageSize)}))}},this.onGoToFirst={onClick:t=>{this.onClick(t,1)}},this.onGoToEnd={onClick:t=>{this.onClick(t,this.getCount())}},this.onGoBackward={onClick:t=>{this.onClick(t,this.state._page-1)}},this.onGoForward={onClick:t=>{this.onClick(t,this.state._page+1)}},this.beforePageSize=(t,e)=>{let n=e.has("_pageSize")?e.get("_pageSize"):this.state._pageSize;const i=e.has("_pageSizeOptions")?e.get("_pageSizeOptions"):this.state._pageSizeOptions;if(Array.isArray(i)&&i.length>0){const t=i.find((t=>t.value===n));n=void 0===t?i[0].value:t.value,e.set("_pageSize",n)}const a=e.has("_page")?e.get("_page"):this.state._page,s=e.has("_max")?e.get("_max"):this.state._max;this.syncPage(e,a,e.get("_pageSize"),s)},this.syncPage=(t,e,n,i)=>{if(i>0){const a=this.calcCount(i,n);a>0&&(e>a?(t.set("_page",a),this.onChangePage(reuse.STATE_CHANGE_EVENT,a)):e<1&&(t.set("_page",1),this.onChangePage(reuse.STATE_CHANGE_EVENT,1)))}},this.beforePageSizeOptions=(t,e)=>{const n=[];if(Array.isArray(t))for(const e of t)"number"==typeof e&&n.push({label:i18n.translate("kol-page-per-site",{placeholders:{entries:`${e}`}}),value:e});e.set("_pageSizeOptions",n),this.beforePageSize(n,e)},this._boundaryCount=1,this._customClass=void 0,this._label=void 0,this._hasButtons=!0,this._page=void 0,this._pageSize=1,this._pageSizeOptions=[],this._on=void 0,this._siblingCount=1,this._tooltipAlign="top",this._max=void 0,this.state={_boundaryCount:1,_label:i18n.translate("kol-pagination"),_hasButtons:{first:!0,last:!0,next:!0,previous:!0},_on:{onClick:()=>null},_page:0,_pageSize:1,_pageSizeOptions:[],_siblingCount:1,_max:0}}render(){var t;let e=!1;const n=this.getCount(),i=Array.from(Array(n).keys()).map((t=>t+1)).map((t=>t<=this.state._boundaryCount||t>n-this.state._boundaryCount||t>=this.state._page-this.state._siblingCount&&t<=this.state._page+this.state._siblingCount?(e=!0,this.state._page===t?this.getSelectedPageButton(t):this.getUnselectedPageButton(t)):!0===e?(e=!1,index.h("li",null,index.h("span",{class:"separator",key:`${this.nonce}-el-${t}`,"aria-hidden":"true"}))):null));return index.h(index.Host,null,index.h("nav",{"aria-label":this.state._label},index.h("ul",{class:"navigation-list"},this.state._hasButtons.first&&index.h("li",null,index.h("kol-button-wc",{class:"first",exportparts:"icon",_customClass:this.state._customClass,_disabled:this.state._page<=1,_icons:leftDoubleArrowIcon,_hideLabel:!0,_label:i18n.translate("kol-page-first"),_on:this.onGoToFirst,_tooltipAlign:this.state._tooltipAlign})),this.state._hasButtons.previous&&index.h("li",null,index.h("kol-button-wc",{class:"previous",exportparts:"icon",_customClass:this.state._customClass,_disabled:this.state._page<=1,_icons:leftSingleArrow,_hideLabel:!0,_label:i18n.translate("kol-page-back"),_on:this.onGoBackward,_tooltipAlign:this.state._tooltipAlign})),i,this.state._hasButtons.next&&index.h("li",null,index.h("kol-button-wc",{class:"next",exportparts:"icon",_customClass:this.state._customClass,_disabled:n<=this.state._page,_icons:rightSingleArrowIcon,_hideLabel:!0,_label:i18n.translate("kol-page-next"),_on:this.onGoForward,_tooltipAlign:this.state._tooltipAlign})),this.state._hasButtons.last&&index.h("li",null,index.h("kol-button-wc",{class:"last",exportparts:"icon",_customClass:this.state._customClass,_disabled:n<=this.state._page,_icons:rightDoubleArrowIcon,_hideLabel:!0,_label:i18n.translate("kol-page-last"),_on:this.onGoToEnd,_tooltipAlign:this.state._tooltipAlign})))),(null===(t=this.state._pageSizeOptions)||void 0===t?void 0:t.length)>0&&index.h("kol-select",{_hideLabel:!0,_id:`pagination-size-${this.nonce}`,_label:i18n.translate("kol-entries-per-site"),_options:this.state._pageSizeOptions,_on:{onChange:this.onChangePageSize},_value:[this.state._pageSize]}))}getUnselectedPageButton(t){return index.h("li",null,index.h("kol-button-wc",{exportparts:"icon",key:`${this.nonce}-${t}`,_customClass:this.state._customClass,_label:`${t}`,_on:{onClick:e=>{this.onClick(e,t)}}}))}getSelectedPageButton(t){return index.h("li",null,index.h("kol-button-wc",{class:"selected",key:`${this.nonce}-selected`,_customClass:this.state._customClass,_disabled:!0,_label:`${t}`}))}validateBoundaryCount(t){prop_validators.watchNumber(this,"_boundaryCount",Math.max(0,null!=t?t:1))}validateCustomClass(t){customClass.validateCustomClass(this,t)}validateLabel(t,e,n=!1){n||uniqueNavLabels.removeNavLabel(this.state._label),label.validateLabel(this,t),uniqueNavLabels.addNavLabel(this.state._label)}validateHasButtons(t){prop_validators.watchValidator(this,"_hasButtons",(t=>"boolean"==typeof t||"string"==typeof t||"object"==typeof t&&null!==t),new Set(["Boolean","PaginationHasButton"]),t,{hooks:{beforePatch:(t,e)=>{if("boolean"==typeof t)e.set("_hasButtons",{first:t,last:t,next:t,previous:t});else{if("string"==typeof t)try{t=prop_validators.parseJson(t)}catch(t){e.delete("_hasButtons")}"object"==typeof t&&null!==t&&e.set("_hasButtons",Object.assign(Object.assign({},this.state._hasButtons),{first:"boolean"==typeof t.first?!0===t.first:this.state._hasButtons.first,last:"boolean"==typeof t.last?!0===t.last:this.state._hasButtons.last,next:"boolean"==typeof t.next?!0===t.next:this.state._hasButtons.next,previous:"boolean"==typeof t.previous?!0===t.previous:this.state._hasButtons.previous}))}}}})}validateOn(t){"object"==typeof t&&null!==t&&(this.state=Object.assign(Object.assign({},this.state),{_on:t}))}validatePage(t){prop_validators.watchNumber(this,"_page",t,{hooks:{beforePatch:(t,e)=>{const n=e.has("_pageSize")?e.get("_pageSize"):this.state._pageSize,i=e.has("_max")?e.get("_max"):this.state._max;this.syncPage(e,t,n,i)}}})}validatePageSize(t){prop_validators.watchNumber(this,"_pageSize",t,{hooks:{beforePatch:this.beforePageSize}})}validatePageSizeOptions(t){prop_validators.watchJsonArrayString(this,"_pageSizeOptions",(t=>"number"==typeof t),t,void 0,{hooks:{beforePatch:this.beforePageSizeOptions}})}validateSiblingCount(t){prop_validators.watchNumber(this,"_siblingCount",Math.max(0,null!=t?t:1))}validateMax(t){validateMax(this,t,{hooks:{beforePatch:(t,e)=>{const n=e.has("_page")?e.get("_page"):this.state._page,i=e.has("_pageSize")?e.get("_pageSize"):this.state._pageSize;this.syncPage(e,n,i,t)}}})}validateTooltipAlign(t){tooltipAlign.validateTooltipAlign(this,t)}componentWillLoad(){this.validateBoundaryCount(this._boundaryCount),this.validateCustomClass(this._customClass),this.validateHasButtons(this._hasButtons),this.validateLabel(this._label,void 0,!0),this.validateOn(this._on),this.validatePage(this._page),this.validatePageSize(this._pageSize),this.validatePageSizeOptions(this._pageSizeOptions),this.validateSiblingCount(this._siblingCount),this.validateTooltipAlign(this._tooltipAlign),this.validateMax(this._max),this.validatePage(this._page)}disconnectedCallback(){uniqueNavLabels.removeNavLabel(this.state._label)}static get watchers(){return{_boundaryCount:["validateBoundaryCount"],_customClass:["validateCustomClass"],_label:["validateLabel"],_hasButtons:["validateHasButtons"],_on:["validateOn"],_page:["validatePage"],_pageSize:["validatePageSize"],_pageSizeOptions:["validatePageSizeOptions"],_siblingCount:["validateSiblingCount"],_max:["validateMax"],_tooltipAlign:["validateTooltipAlign"]}}};KolPagination.style={default:defaultStyleCss},exports.kol_pagination=KolPagination;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-a2400b65.js"),i18n=require("./i18n-b7ec2d1b.js"),customClass=require("./custom-class-f6c69910.js"),label=require("./label-de5ebf4b.js"),tooltipAlign=require("./tooltip-align-d0446059.js"),dev_utils=require("./dev.utils-dd53475e.js"),prop_validators=require("./prop.validators-5f352bbf.js"),uniqueNavLabels=require("./unique-nav-labels-363e1d71.js"),reuse=require("./reuse-a4c8450e.js");require("./index-bb49d83a.js"),require("./a11y.tipps-3cff218a.js"),require("./alignment-516753a3.js");const validateMax=(t,e,n)=>{prop_validators.watchNumber(t,"_max",e,n)},defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\talign-items: center;\n\t\tdisplay: grid;\n\t\tgap: 1rem;\n\t\tgrid-template-columns: 1fr auto;\n\t}\n\t.navigation-list {\n\t\talign-items: center;\n\t\tdisplay: inline-flex;\n\t\tflex-wrap: wrap;\n\t\tgap: 0.5em;\n\t\tlist-style: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\t.separator:before {\n\t\tcontent: '•••';\n\t}\n}\n",leftDoubleArrowIcon={left:"codicon codicon-debug-reverse-continue"},leftSingleArrow={left:"codicon codicon-chevron-left"},rightSingleArrowIcon={right:"codicon codicon-chevron-right"},rightDoubleArrowIcon={right:"codicon codicon-debug-continue"},KolPagination=class{constructor(t){index.registerInstance(this,t),this.nonce=dev_utils.nonce(),this.calcCount=(t,e=1)=>Math.ceil(t/e),this.getCount=()=>this.calcCount(this.state._max,this.state._pageSize),this.onClick=(t,e)=>{"function"==typeof this.state._on.onClick&&this.state._on.onClick(t,e),this.onChangePage(t,e)},this.onChangePage=(t,e)=>{const n=setTimeout((()=>{clearTimeout(n),"function"==typeof this.state._on.onChangePage&&this.state._on.onChangePage(t,e)}))},this.onChangePageSize=(t,e)=>{if("number"==typeof(e=parseInt(e[0]))&&e>0&&this._pageSize!==e){this._pageSize=e;const n=setTimeout((()=>{clearTimeout(n),"function"==typeof this.state._on.onChangePageSize&&this.state._on.onChangePageSize(t,this._pageSize)}))}},this.onGoToFirst={onClick:t=>{this.onClick(t,1)}},this.onGoToEnd={onClick:t=>{this.onClick(t,this.getCount())}},this.onGoBackward={onClick:t=>{this.onClick(t,this.state._page-1)}},this.onGoForward={onClick:t=>{this.onClick(t,this.state._page+1)}},this.beforePageSize=(t,e)=>{let n=e.has("_pageSize")?e.get("_pageSize"):this.state._pageSize;const i=e.has("_pageSizeOptions")?e.get("_pageSizeOptions"):this.state._pageSizeOptions;if(Array.isArray(i)&&i.length>0){const t=i.find((t=>t.value===n));n=void 0===t?i[0].value:t.value,e.set("_pageSize",n)}const a=e.has("_page")?e.get("_page"):this.state._page,s=e.has("_max")?e.get("_max"):this.state._max;this.syncPage(e,a,e.get("_pageSize"),s)},this.syncPage=(t,e,n,i)=>{if(i>0){const a=this.calcCount(i,n);a>0&&(e>a?(t.set("_page",a),this.onChangePage(reuse.STATE_CHANGE_EVENT,a)):e<1&&(t.set("_page",1),this.onChangePage(reuse.STATE_CHANGE_EVENT,1)))}},this.beforePageSizeOptions=(t,e)=>{const n=[];if(Array.isArray(t))for(const e of t)"number"==typeof e&&n.push({label:i18n.translate("kol-page-per-site",{placeholders:{entries:`${e}`}}),value:e});e.set("_pageSizeOptions",n),this.beforePageSize(n,e)},this._boundaryCount=1,this._customClass=void 0,this._label=void 0,this._hasButtons=!0,this._page=void 0,this._pageSize=1,this._pageSizeOptions=[],this._on=void 0,this._siblingCount=1,this._tooltipAlign="top",this._max=void 0,this.state={_boundaryCount:1,_label:i18n.translate("kol-pagination"),_hasButtons:{first:!0,last:!0,next:!0,previous:!0},_on:{onClick:()=>null},_page:0,_pageSize:1,_pageSizeOptions:[],_siblingCount:1,_max:0}}render(){var t;let e=!1;const n=this.getCount(),i=Array.from(Array(n).keys()).map((t=>t+1)).map((t=>t<=this.state._boundaryCount||t>n-this.state._boundaryCount||t>=this.state._page-this.state._siblingCount&&t<=this.state._page+this.state._siblingCount?(e=!0,this.state._page===t?this.getSelectedPageButton(t):this.getUnselectedPageButton(t)):!0===e?(e=!1,index.h("li",null,index.h("span",{class:"separator",key:`${this.nonce}-el-${t}`,"aria-hidden":"true"}))):null));return index.h(index.Host,null,index.h("nav",{"aria-label":this.state._label},index.h("ul",{class:"navigation-list"},this.state._hasButtons.first&&index.h("li",null,index.h("kol-button-wc",{class:"first",exportparts:"icon",_customClass:this.state._customClass,_disabled:this.state._page<=1,_icons:leftDoubleArrowIcon,_hideLabel:!0,_label:i18n.translate("kol-page-first"),_on:this.onGoToFirst,_tooltipAlign:this.state._tooltipAlign})),this.state._hasButtons.previous&&index.h("li",null,index.h("kol-button-wc",{class:"previous",exportparts:"icon",_customClass:this.state._customClass,_disabled:this.state._page<=1,_icons:leftSingleArrow,_hideLabel:!0,_label:i18n.translate("kol-page-back"),_on:this.onGoBackward,_tooltipAlign:this.state._tooltipAlign})),i,this.state._hasButtons.next&&index.h("li",null,index.h("kol-button-wc",{class:"next",exportparts:"icon",_customClass:this.state._customClass,_disabled:n<=this.state._page,_icons:rightSingleArrowIcon,_hideLabel:!0,_label:i18n.translate("kol-page-next"),_on:this.onGoForward,_tooltipAlign:this.state._tooltipAlign})),this.state._hasButtons.last&&index.h("li",null,index.h("kol-button-wc",{class:"last",exportparts:"icon",_customClass:this.state._customClass,_disabled:n<=this.state._page,_icons:rightDoubleArrowIcon,_hideLabel:!0,_label:i18n.translate("kol-page-last"),_on:this.onGoToEnd,_tooltipAlign:this.state._tooltipAlign})))),(null===(t=this.state._pageSizeOptions)||void 0===t?void 0:t.length)>0&&index.h("kol-select",{_hideLabel:!0,_id:`pagination-size-${this.nonce}`,_label:i18n.translate("kol-entries-per-site"),_options:this.state._pageSizeOptions,_on:{onChange:this.onChangePageSize},_value:[this.state._pageSize]}))}getUnselectedPageButton(t){return index.h("li",null,index.h("kol-button-wc",{exportparts:"icon",key:`${this.nonce}-${t}`,_customClass:this.state._customClass,_label:`${t}`,_on:{onClick:e=>{this.onClick(e,t)}}}))}getSelectedPageButton(t){return index.h("li",null,index.h("kol-button-wc",{class:"selected",key:`${this.nonce}-selected`,_customClass:this.state._customClass,_disabled:!0,_label:`${t}`}))}validateBoundaryCount(t){prop_validators.watchNumber(this,"_boundaryCount",Math.max(0,null!=t?t:1))}validateCustomClass(t){customClass.validateCustomClass(this,t)}validateLabel(t,e,n=!1){n||uniqueNavLabels.removeNavLabel(this.state._label),label.validateLabel(this,t),uniqueNavLabels.addNavLabel(this.state._label)}validateHasButtons(t){prop_validators.watchValidator(this,"_hasButtons",(t=>"boolean"==typeof t||"string"==typeof t||"object"==typeof t&&null!==t),new Set(["Boolean","PaginationHasButton"]),t,{hooks:{beforePatch:(t,e)=>{if("boolean"==typeof t)e.set("_hasButtons",{first:t,last:t,next:t,previous:t});else{if("string"==typeof t)try{t=prop_validators.parseJson(t)}catch(t){e.delete("_hasButtons")}"object"==typeof t&&null!==t&&e.set("_hasButtons",Object.assign(Object.assign({},this.state._hasButtons),{first:"boolean"==typeof t.first?!0===t.first:this.state._hasButtons.first,last:"boolean"==typeof t.last?!0===t.last:this.state._hasButtons.last,next:"boolean"==typeof t.next?!0===t.next:this.state._hasButtons.next,previous:"boolean"==typeof t.previous?!0===t.previous:this.state._hasButtons.previous}))}}}})}validateOn(t){"object"==typeof t&&null!==t&&(this.state=Object.assign(Object.assign({},this.state),{_on:t}))}validatePage(t){prop_validators.watchNumber(this,"_page",t,{hooks:{beforePatch:(t,e)=>{const n=e.has("_pageSize")?e.get("_pageSize"):this.state._pageSize,i=e.has("_max")?e.get("_max"):this.state._max;this.syncPage(e,t,n,i)}}})}validatePageSize(t){prop_validators.watchNumber(this,"_pageSize",t,{hooks:{beforePatch:this.beforePageSize}})}validatePageSizeOptions(t){prop_validators.watchJsonArrayString(this,"_pageSizeOptions",(t=>"number"==typeof t),t,void 0,{hooks:{beforePatch:this.beforePageSizeOptions}})}validateSiblingCount(t){prop_validators.watchNumber(this,"_siblingCount",Math.max(0,null!=t?t:1))}validateMax(t){validateMax(this,t,{hooks:{beforePatch:(t,e)=>{const n=e.has("_page")?e.get("_page"):this.state._page,i=e.has("_pageSize")?e.get("_pageSize"):this.state._pageSize;this.syncPage(e,n,i,t)}}})}validateTooltipAlign(t){tooltipAlign.validateTooltipAlign(this,t)}componentWillLoad(){this.validateBoundaryCount(this._boundaryCount),this.validateCustomClass(this._customClass),this.validateHasButtons(this._hasButtons),this.validateLabel(this._label,void 0,!0),this.validateOn(this._on),this.validatePage(this._page),this.validatePageSize(this._pageSize),this.validatePageSizeOptions(this._pageSizeOptions),this.validateSiblingCount(this._siblingCount),this.validateTooltipAlign(this._tooltipAlign),this.validateMax(this._max),this.validatePage(this._page)}disconnectedCallback(){uniqueNavLabels.removeNavLabel(this.state._label)}static get watchers(){return{_boundaryCount:["validateBoundaryCount"],_customClass:["validateCustomClass"],_label:["validateLabel"],_hasButtons:["validateHasButtons"],_on:["validateOn"],_page:["validatePage"],_pageSize:["validatePageSize"],_pageSizeOptions:["validatePageSizeOptions"],_siblingCount:["validateSiblingCount"],_max:["validateMax"],_tooltipAlign:["validateTooltipAlign"]}}};Kol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G,CAAC,CAAC;IAC1B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACtC,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IACpD,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAC9C,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAC9C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAM5B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;GAC9B;EAEM,oBAAoB;IAC1BN,8BAAc,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;GAClC;;;;;;;;;;;;;;;;;;;;;","names":["watchNumber","nonce","STATE_CHANGE_EVENT","translate","h","Host","validateCustomClass","label","removeNavLabel","validateLabel","addNavLabel","watchValidator","parseJson","watchJsonArrayString","validateTooltipAlign"],"sources":["src/types/props/max.ts","src/components/pagination/style.css?tag=kol-pagination&mode=default&encapsulation=shadow","src/components/pagination/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchNumber, WatchNumberOptions } from '../../utils/prop.validators';\nimport { RowsPropType } from './rows';\n\n/* types */\nexport type MaxPropType = number;\n\n/**\n * Number of rows of the input element that should be visible at the same time.\n */\nexport type PropMax = {\n\tmax: MaxPropType;\n};\n\n/* validator */\nexport const validateMax = (component: Generic.Element.Component, value?: RowsPropType, options?: WatchNumberOptions): void => {\n\twatchNumber(component, '_max', value, options);\n};\n","@import url(../style.css);\n@layer kol-component {\n\t:host {\n\t\talign-items: center;\n\t\tdisplay: grid;\n\t\tgap: 1rem;\n\t\tgrid-template-columns: 1fr auto;\n\t}\n\t.navigation-list {\n\t\talign-items: center;\n\t\tdisplay: inline-flex;\n\t\tflex-wrap: wrap;\n\t\tgap: 0.5em;\n\t\tlist-style: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\t.separator:before {\n\t\tcontent: '•••';\n\t}\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { Stringified } from '../../types/common';\nimport { Option } from '../../types/input/types';\nimport { CustomClassPropType, validateCustomClass } from '../../types/props/custom-class';\nimport { LabelPropType, validateLabel } from '../../types/props/label';\nimport { TooltipAlignPropType, validateTooltipAlign } from '../../types/props/tooltip-align';\nimport { nonce } from '../../utils/dev.utils';\nimport { parseJson, watchJsonArrayString, watchNumber, watchValidator } from '../../utils/prop.validators';\nimport { addNavLabel, removeNavLabel } from '../../utils/unique-nav-labels';\nimport { STATE_CHANGE_EVENT } from '../../utils/validator';\nimport { API, KoliBriPaginationButtonCallbacks, PaginationHasButton, States } from './types';\nimport { MaxPropType, validateMax } from '../../types/props/max';\n\nconst leftDoubleArrowIcon = {\n\tleft: 'codicon codicon-debug-reverse-continue',\n};\nconst leftSingleArrow = {\n\tleft: 'codicon codicon-chevron-left',\n};\nconst rightSingleArrowIcon = {\n\tright: 'codicon codicon-chevron-right',\n};\nconst rightDoubleArrowIcon = {\n\tright: 'codicon codicon-debug-continue',\n};\n\n@Component({\n\ttag: 'kol-pagination',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolPagination implements API {\n\tprivate readonly nonce = nonce();\n\n\tprivate readonly calcCount = (total: number, pageSize = 1): number => Math.ceil(total / pageSize);\n\n\tprivate readonly getCount = (): number => this.calcCount(this.state._max, this.state._pageSize);\n\n\tpublic render(): JSX.Element {\n\t\tlet ellipsis = false;\n\t\tconst count = this.getCount();\n\t\tconst pageButtons = Array.from(Array(count).keys())\n\t\t\t.map((index: number) => index + 1)\n\t\t\t.map((page: number) => {\n\t\t\t\tif (\n\t\t\t\t\tpage <= this.state._boundaryCount ||\n\t\t\t\t\tpage > count - this.state._boundaryCount ||\n\t\t\t\t\t(page >= this.state._page - this.state._siblingCount && page <= this.state._page + this.state._siblingCount)\n\t\t\t\t) {\n\t\t\t\t\tellipsis = true;\n\t\t\t\t\tif (this.state._page === page) {\n\t\t\t\t\t\treturn this.getSelectedPageButton(page);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn this.getUnselectedPageButton(page);\n\t\t\t\t\t}\n\t\t\t\t} else if (ellipsis === true) {\n\t\t\t\t\tellipsis = false;\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<span class=\"separator\" key={`${this.nonce}-el-${page}`} aria-hidden=\"true\"></span>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t});\n\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<nav aria-label={this.state._label}>\n\t\t\t\t\t<ul class=\"navigation-list\">\n\t\t\t\t\t\t{this.state._hasButtons.first && (\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<kol-button-wc\n\t\t\t\t\t\t\t\t\tclass=\"first\"\n\t\t\t\t\t\t\t\t\texportparts=\"icon\"\n\t\t\t\t\t\t\t\t\t_customClass={this.state._customClass}\n\t\t\t\t\t\t\t\t\t_disabled={this.state._page <= 1}\n\t\t\t\t\t\t\t\t\t_icons={leftDoubleArrowIcon}\n\t\t\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t\t\t_label={translate('kol-page-first')}\n\t\t\t\t\t\t\t\t\t_on={this.onGoToFirst}\n\t\t\t\t\t\t\t\t\t_tooltipAlign={this.state._tooltipAlign}\n\t\t\t\t\t\t\t\t></kol-button-wc>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{this.state._hasButtons.previous && (\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<kol-button-wc\n\t\t\t\t\t\t\t\t\tclass=\"previous\"\n\t\t\t\t\t\t\t\t\texportparts=\"icon\"\n\t\t\t\t\t\t\t\t\t_customClass={this.state._customClass}\n\t\t\t\t\t\t\t\t\t_disabled={this.state._page <= 1}\n\t\t\t\t\t\t\t\t\t_icons={leftSingleArrow}\n\t\t\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t\t\t_label={translate('kol-page-back')}\n\t\t\t\t\t\t\t\t\t_on={this.onGoBackward}\n\t\t\t\t\t\t\t\t\t_tooltipAlign={this.state._tooltipAlign}\n\t\t\t\t\t\t\t\t></kol-button-wc>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{pageButtons}\n\t\t\t\t\t\t{this.state._hasButtons.next && (\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<kol-button-wc\n\t\t\t\t\t\t\t\t\tclass=\"next\"\n\t\t\t\t\t\t\t\t\texportparts=\"icon\"\n\t\t\t\t\t\t\t\t\t_customClass={this.state._customClass}\n\t\t\t\t\t\t\t\t\t_disabled={count <= this.state._page}\n\t\t\t\t\t\t\t\t\t_icons={rightSingleArrowIcon}\n\t\t\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t\t\t_label={translate('kol-page-next')}\n\t\t\t\t\t\t\t\t\t_on={this.onGoForward}\n\t\t\t\t\t\t\t\t\t_tooltipAlign={this.state._tooltipAlign}\n\t\t\t\t\t\t\t\t></kol-button-wc>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{this.state._hasButtons.last && (\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<kol-button-wc\n\t\t\t\t\t\t\t\t\tclass=\"last\"\n\t\t\t\t\t\t\t\t\texportparts=\"icon\"\n\t\t\t\t\t\t\t\t\t_customClass={this.state._customClass}\n\t\t\t\t\t\t\t\t\t_disabled={count <= this.state._page}\n\t\t\t\t\t\t\t\t\t_icons={rightDoubleArrowIcon}\n\t\t\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t\t\t_label={translate('kol-page-last')}\n\t\t\t\t\t\t\t\t\t_on={this.onGoToEnd}\n\t\t\t\t\t\t\t\t\t_tooltipAlign={this.state._tooltipAlign}\n\t\t\t\t\t\t\t\t></kol-button-wc>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</ul>\n\t\t\t\t</nav>\n\t\t\t\t{this.state._pageSizeOptions?.length > 0 && (\n\t\t\t\t\t<kol-select\n\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t_id={`pagination-size-${this.nonce}`}\n\t\t\t\t\t\t_label={translate('kol-entries-per-site')}\n\t\t\t\t\t\t_options={this.state._pageSizeOptions}\n\t\t\t\t\t\t_on={{\n\t\t\t\t\t\t\tonChange: this.onChangePageSize,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\t_value={[this.state._pageSize]}\n\t\t\t\t\t></kol-select>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the amount of pages to show next to the outer arrow buttons.\n\t */\n\t@Prop() public _boundaryCount?: number = 1;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label?: LabelPropType;\n\n\t/**\n\t * Defines which navigation buttons to render (first, last, next, previous buttons).\n\t */\n\t@Prop() public _hasButtons?: boolean | Stringified<PaginationHasButton> = true;\n\n\t/**\n\t * Defines the current page.\n\t */\n\t@Prop() public _page!: number;\n\n\t/**\n\t * Defines the amount of entries to show per page.\n\t */\n\t@Prop({ mutable: true, reflect: false }) public _pageSize = 1;\n\n\t/**\n\t * Defines the options for the page-size-select.\n\t */\n\t@Prop() public _pageSizeOptions: Stringified<number[]> = [];\n\n\t/**\n\t * Gibt an, auf welche Callback-Events reagiert werden.\n\t */\n\t@Prop() public _on!: KoliBriPaginationButtonCallbacks;\n\n\t/**\n\t * Defines the amount of pages to show next to the current page.\n\t */\n\t@Prop() public _siblingCount?: number = 1;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines the maximum number of pages.\n\t */\n\t@Prop() public _max!: MaxPropType;\n\n\t@State() public state: States = {\n\t\t_boundaryCount: 1,\n\t\t_label: translate('kol-pagination'),\n\t\t_hasButtons: {\n\t\t\tfirst: true,\n\t\t\tlast: true,\n\t\t\tnext: true,\n\t\t\tprevious: true,\n\t\t},\n\t\t_on: {\n\t\t\tonClick: () => null,\n\t\t},\n\t\t_page: 0,\n\t\t_pageSize: 1,\n\t\t_pageSizeOptions: [],\n\t\t_siblingCount: 1,\n\t\t_max: 0,\n\t};\n\n\tprivate onClick = (event: Event, page: number) => {\n\t\tif (typeof this.state._on.onClick === 'function') {\n\t\t\tthis.state._on.onClick(event, page);\n\t\t}\n\t\tthis.onChangePage(event, page);\n\t};\n\n\tprivate onChangePage = (event: Event, page: number) => {\n\t\tconst timeout = setTimeout(() => {\n\t\t\tclearTimeout(timeout);\n\t\t\tif (typeof this.state._on.onChangePage === 'function') {\n\t\t\t\tthis.state._on.onChangePage(event, page);\n\t\t\t}\n\t\t});\n\t};\n\n\tprivate onChangePageSize = (event: Event, value: unknown) => {\n\t\tvalue = parseInt((value as string[])[0]);\n\t\tif (typeof value === 'number' && value > 0 && this._pageSize !== value) {\n\t\t\tthis._pageSize = value;\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\tif (typeof this.state._on.onChangePageSize === 'function') {\n\t\t\t\t\tthis.state._on.onChangePageSize(event, this._pageSize);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t};\n\n\tprivate readonly onGoToFirst = {\n\t\tonClick: (event: Event) => {\n\t\t\tthis.onClick(event, 1);\n\t\t},\n\t};\n\tprivate readonly onGoToEnd = {\n\t\tonClick: (event: Event) => {\n\t\t\tthis.onClick(event, this.getCount());\n\t\t},\n\t};\n\tprivate readonly onGoBackward = {\n\t\tonClick: (event: Event) => {\n\t\t\tthis.onClick(event, this.state._page - 1);\n\t\t},\n\t};\n\tprivate readonly onGoForward = {\n\t\tonClick: (event: Event) => {\n\t\t\tthis.onClick(event, this.state._page + 1);\n\t\t},\n\t};\n\n\tprivate getUnselectedPageButton(page: number): JSX.Element {\n\t\treturn (\n\t\t\t<li>\n\t\t\t\t<kol-button-wc\n\t\t\t\t\texportparts=\"icon\"\n\t\t\t\t\tkey={`${this.nonce}-${page}`}\n\t\t\t\t\t_customClass={this.state._customClass}\n\t\t\t\t\t_label={`${page}`}\n\t\t\t\t\t_on={{\n\t\t\t\t\t\tonClick: (event: Event) => {\n\t\t\t\t\t\t\tthis.onClick(event, page);\n\t\t\t\t\t\t},\n\t\t\t\t\t}}\n\t\t\t\t></kol-button-wc>\n\t\t\t</li>\n\t\t);\n\t}\n\n\tprivate getSelectedPageButton(page: number): JSX.Element {\n\t\treturn (\n\t\t\t<li>\n\t\t\t\t<kol-button-wc class=\"selected\" key={`${this.nonce}-selected`} _customClass={this.state._customClass} _disabled={true} _label={`${page}`} />\n\t\t\t</li>\n\t\t);\n\t}\n\n\t@Watch('_boundaryCount')\n\tpublic validateBoundaryCount(value?: number): void {\n\t\twatchNumber(this, '_boundaryCount', Math.max(0, value ?? 1));\n\t}\n\n\t@Watch('_customClass')\n\tpublic validateCustomClass(value?: CustomClassPropType): void {\n\t\tvalidateCustomClass(this, value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(label?: LabelPropType, _oldValue?: LabelPropType, initial = false) {\n\t\tif (!initial) {\n\t\t\tremoveNavLabel(this.state._label);\n\t\t}\n\t\tvalidateLabel(this, label);\n\t\taddNavLabel(this.state._label); // add the state instead of prop, because the prop could be invalid and not set as new label\n\t}\n\n\t@Watch('_hasButtons')\n\tpublic validateHasButtons(value?: string | boolean | Stringified<PaginationHasButton>): void {\n\t\twatchValidator(\n\t\t\tthis,\n\t\t\t'_hasButtons',\n\t\t\t(value) => typeof value === 'boolean' || typeof value === 'string' || (typeof value === 'object' && value !== null),\n\t\t\tnew Set(['Boolean', 'PaginationHasButton']),\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 (typeof nextValue === 'boolean') {\n\t\t\t\t\t\t\tnextState.set('_hasButtons', {\n\t\t\t\t\t\t\t\tfirst: nextValue,\n\t\t\t\t\t\t\t\tlast: nextValue,\n\t\t\t\t\t\t\t\tnext: nextValue,\n\t\t\t\t\t\t\t\tprevious: nextValue,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (typeof nextValue === 'string') {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tnextValue = parseJson<PaginationHasButton>(nextValue);\n\t\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\t\tnextState.delete('_hasButtons');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (typeof nextValue === 'object' && nextValue !== null) {\n\t\t\t\t\t\t\t\tnextState.set('_hasButtons', {\n\t\t\t\t\t\t\t\t\t...this.state._hasButtons,\n\t\t\t\t\t\t\t\t\tfirst:\n\t\t\t\t\t\t\t\t\t\ttypeof (nextValue as PaginationHasButton).first === 'boolean'\n\t\t\t\t\t\t\t\t\t\t\t? (nextValue as PaginationHasButton).first === true\n\t\t\t\t\t\t\t\t\t\t\t: this.state._hasButtons.first,\n\t\t\t\t\t\t\t\t\tlast:\n\t\t\t\t\t\t\t\t\t\ttypeof (nextValue as PaginationHasButton).last === 'boolean'\n\t\t\t\t\t\t\t\t\t\t\t? (nextValue as PaginationHasButton).last === true\n\t\t\t\t\t\t\t\t\t\t\t: this.state._hasButtons.last,\n\t\t\t\t\t\t\t\t\tnext:\n\t\t\t\t\t\t\t\t\t\ttypeof (nextValue as PaginationHasButton).next === 'boolean'\n\t\t\t\t\t\t\t\t\t\t\t? (nextValue as PaginationHasButton).next === true\n\t\t\t\t\t\t\t\t\t\t\t: this.state._hasButtons.next,\n\t\t\t\t\t\t\t\t\tprevious:\n\t\t\t\t\t\t\t\t\t\ttypeof (nextValue as PaginationHasButton).previous === 'boolean'\n\t\t\t\t\t\t\t\t\t\t\t? (nextValue as PaginationHasButton).previous === true\n\t\t\t\t\t\t\t\t\t\t\t: this.state._hasButtons.previous,\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}\n\t\t);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: KoliBriPaginationButtonCallbacks): void {\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tthis.state = {\n\t\t\t\t...this.state,\n\t\t\t\t_on: value,\n\t\t\t};\n\t\t}\n\t}\n\n\t@Watch('_page')\n\tpublic validatePage(value?: number): void {\n\t\twatchNumber(this, '_page', value, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: (_nextValue: unknown, nextState: Map<string, unknown>) => {\n\t\t\t\t\tconst pageSize = nextState.has('_pageSize') ? (nextState.get('_pageSize') as number) : this.state._pageSize;\n\t\t\t\t\tconst total = nextState.has('_max') ? (nextState.get('_max') as number) : this.state._max;\n\t\t\t\t\tthis.syncPage(nextState, _nextValue as number, pageSize, total);\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t}\n\n\tprivate beforePageSize = (_nextValue: unknown, nextState: Map<string, unknown>) => {\n\t\tlet pageSize = nextState.has('_pageSize') ? (nextState.get('_pageSize') as number) : this.state._pageSize;\n\t\tconst pageSizeOptions = nextState.has('_pageSizeOptions') ? (nextState.get('_pageSizeOptions') as Option<number>[]) : this.state._pageSizeOptions;\n\t\tif (Array.isArray(pageSizeOptions) && pageSizeOptions.length > 0) {\n\t\t\tconst find = pageSizeOptions.find((option) => option.value === pageSize);\n\t\t\tif (find === undefined) {\n\t\t\t\tpageSize = pageSizeOptions[0].value;\n\t\t\t} else {\n\t\t\t\tpageSize = find.value;\n\t\t\t}\n\t\t\tnextState.set('_pageSize', pageSize);\n\t\t}\n\t\tconst page = nextState.has('_page') ? (nextState.get('_page') as number) : this.state._page;\n\t\tconst total = nextState.has('_max') ? (nextState.get('_max') as number) : this.state._max;\n\t\tthis.syncPage(nextState, page, nextState.get('_pageSize') as number, total);\n\t};\n\n\tprivate syncPage = (nextState: Map<string, unknown>, page: number, pageSize: number, total: number) => {\n\t\t// count === 0 means no data\n\t\tif (total > 0) {\n\t\t\tconst count = this.calcCount(total, pageSize);\n\t\t\tif (count > 0) {\n\t\t\t\tif (page > count) {\n\t\t\t\t\tnextState.set('_page', count);\n\t\t\t\t\tthis.onChangePage(STATE_CHANGE_EVENT, count);\n\t\t\t\t} else if (page < 1) {\n\t\t\t\t\tnextState.set('_page', 1);\n\t\t\t\t\tthis.onChangePage(STATE_CHANGE_EVENT, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\tprivate beforePageSizeOptions = (nextValue: unknown, nextState: Map<string, unknown>) => {\n\t\tconst options: Option<number>[] = [];\n\t\tif (Array.isArray(nextValue)) {\n\t\t\tfor (const value of nextValue) {\n\t\t\t\tif (typeof value === 'number') {\n\t\t\t\t\toptions.push({\n\t\t\t\t\t\tlabel: translate('kol-page-per-site', { placeholders: { entries: `${value}` } }),\n\t\t\t\t\t\tvalue: value,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tnextState.set('_pageSizeOptions', options);\n\t\tthis.beforePageSize(options, nextState);\n\t};\n\n\t@Watch('_pageSize')\n\tpublic validatePageSize(value?: number): void {\n\t\twatchNumber(this, '_pageSize', value, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.beforePageSize,\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_pageSizeOptions')\n\tpublic validatePageSizeOptions(value?: Stringified<number[]>): void {\n\t\twatchJsonArrayString(this, '_pageSizeOptions', (value) => typeof value === 'number', value, undefined, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.beforePageSizeOptions,\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_siblingCount')\n\tpublic validateSiblingCount(value?: number): void {\n\t\twatchNumber(this, '_siblingCount', Math.max(0, value ?? 1));\n\t}\n\n\t@Watch('_max')\n\tpublic validateMax(value?: MaxPropType): void {\n\t\tvalidateMax(this, value, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: (_nextValue: unknown, nextState: Map<string, unknown>) => {\n\t\t\t\t\tconst page = nextState.has('_page') ? (nextState.get('_page') as number) : this.state._page;\n\t\t\t\t\tconst pageSize = nextState.has('_pageSize') ? (nextState.get('_pageSize') as number) : this.state._pageSize;\n\t\t\t\t\tthis.syncPage(nextState, page, pageSize, _nextValue as number);\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_tooltipAlign')\n\tpublic validateTooltipAlign(value?: TooltipAlignPropType): void {\n\t\tvalidateTooltipAlign(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateBoundaryCount(this._boundaryCount);\n\t\tthis.validateCustomClass(this._customClass);\n\t\tthis.validateHasButtons(this._hasButtons);\n\t\tthis.validateLabel(this._label, undefined, true);\n\t\tthis.validateOn(this._on);\n\t\tthis.validatePage(this._page);\n\t\tthis.validatePageSize(this._pageSize);\n\t\tthis.validatePageSizeOptions(this._pageSizeOptions);\n\t\tthis.validateSiblingCount(this._siblingCount);\n\t\tthis.validateTooltipAlign(this._tooltipAlign);\n\t\tthis.validateMax(this._max);\n\n\t\t/**\n\t\t * Die Seite muss als letztes gesetzt werden, da sonst die Seite\n\t\t * nicht korrekt berechnet wird.\n\t\t */\n\t\tthis.validatePage(this._page);\n\t}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AAC;QAC1C,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtC,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACpD,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC9C,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC9C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAM5B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC9B;IAEM,oBAAoB;QAC1BN,8BAAc,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;KAClC;;;;;;;;;;;;;;;;;;;;;","names":["watchNumber","nonce","STATE_CHANGE_EVENT","translate","h","Host","validateCustomClass","label","removeNavLabel","validateLabel","addNavLabel","watchValidator","parseJson","watchJsonArrayString","validateTooltipAlign"],"sources":["src/types/props/max.ts","src/components/pagination/style.css?tag=kol-pagination&mode=default&encapsulation=shadow","src/components/pagination/component.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { watchNumber, WatchNumberOptions } from '../../utils/prop.validators';\nimport { RowsPropType } from './rows';\n\n/* types */\nexport type MaxPropType = number;\n\n/**\n * Number of rows of the input element that should be visible at the same time.\n */\nexport type PropMax = {\n\tmax: MaxPropType;\n};\n\n/* validator */\nexport const validateMax = (component: Generic.Element.Component, value?: RowsPropType, options?: WatchNumberOptions): void => {\n\twatchNumber(component, '_max', value, options);\n};\n","@import url(../style.css);\n@layer kol-component {\n\t:host {\n\t\talign-items: center;\n\t\tdisplay: grid;\n\t\tgap: 1rem;\n\t\tgrid-template-columns: 1fr auto;\n\t}\n\t.navigation-list {\n\t\talign-items: center;\n\t\tdisplay: inline-flex;\n\t\tflex-wrap: wrap;\n\t\tgap: 0.5em;\n\t\tlist-style: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\t.separator:before {\n\t\tcontent: '•••';\n\t}\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { Stringified } from '../../types/common';\nimport { Option } from '../../types/input/types';\nimport { CustomClassPropType, validateCustomClass } from '../../types/props/custom-class';\nimport { LabelPropType, validateLabel } from '../../types/props/label';\nimport { TooltipAlignPropType, validateTooltipAlign } from '../../types/props/tooltip-align';\nimport { nonce } from '../../utils/dev.utils';\nimport { parseJson, watchJsonArrayString, watchNumber, watchValidator } from '../../utils/prop.validators';\nimport { addNavLabel, removeNavLabel } from '../../utils/unique-nav-labels';\nimport { STATE_CHANGE_EVENT } from '../../utils/validator';\nimport { API, KoliBriPaginationButtonCallbacks, PaginationHasButton, States } from './types';\nimport { MaxPropType, validateMax } from '../../types/props/max';\n\nconst leftDoubleArrowIcon = {\n\tleft: 'codicon codicon-debug-reverse-continue',\n};\nconst leftSingleArrow = {\n\tleft: 'codicon codicon-chevron-left',\n};\nconst rightSingleArrowIcon = {\n\tright: 'codicon codicon-chevron-right',\n};\nconst rightDoubleArrowIcon = {\n\tright: 'codicon codicon-debug-continue',\n};\n\n@Component({\n\ttag: 'kol-pagination',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolPagination implements API {\n\tprivate readonly nonce = nonce();\n\n\tprivate readonly calcCount = (total: number, pageSize = 1): number => Math.ceil(total / pageSize);\n\n\tprivate readonly getCount = (): number => this.calcCount(this.state._max, this.state._pageSize);\n\n\tpublic render(): JSX.Element {\n\t\tlet ellipsis = false;\n\t\tconst count = this.getCount();\n\t\tconst pageButtons = Array.from(Array(count).keys())\n\t\t\t.map((index: number) => index + 1)\n\t\t\t.map((page: number) => {\n\t\t\t\tif (\n\t\t\t\t\tpage <= this.state._boundaryCount ||\n\t\t\t\t\tpage > count - this.state._boundaryCount ||\n\t\t\t\t\t(page >= this.state._page - this.state._siblingCount && page <= this.state._page + this.state._siblingCount)\n\t\t\t\t) {\n\t\t\t\t\tellipsis = true;\n\t\t\t\t\tif (this.state._page === page) {\n\t\t\t\t\t\treturn this.getSelectedPageButton(page);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn this.getUnselectedPageButton(page);\n\t\t\t\t\t}\n\t\t\t\t} else if (ellipsis === true) {\n\t\t\t\t\tellipsis = false;\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<span class=\"separator\" key={`${this.nonce}-el-${page}`} aria-hidden=\"true\"></span>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t});\n\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<nav aria-label={this.state._label}>\n\t\t\t\t\t<ul class=\"navigation-list\">\n\t\t\t\t\t\t{this.state._hasButtons.first && (\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<kol-button-wc\n\t\t\t\t\t\t\t\t\tclass=\"first\"\n\t\t\t\t\t\t\t\t\texportparts=\"icon\"\n\t\t\t\t\t\t\t\t\t_customClass={this.state._customClass}\n\t\t\t\t\t\t\t\t\t_disabled={this.state._page <= 1}\n\t\t\t\t\t\t\t\t\t_icons={leftDoubleArrowIcon}\n\t\t\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t\t\t_label={translate('kol-page-first')}\n\t\t\t\t\t\t\t\t\t_on={this.onGoToFirst}\n\t\t\t\t\t\t\t\t\t_tooltipAlign={this.state._tooltipAlign}\n\t\t\t\t\t\t\t\t></kol-button-wc>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{this.state._hasButtons.previous && (\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<kol-button-wc\n\t\t\t\t\t\t\t\t\tclass=\"previous\"\n\t\t\t\t\t\t\t\t\texportparts=\"icon\"\n\t\t\t\t\t\t\t\t\t_customClass={this.state._customClass}\n\t\t\t\t\t\t\t\t\t_disabled={this.state._page <= 1}\n\t\t\t\t\t\t\t\t\t_icons={leftSingleArrow}\n\t\t\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t\t\t_label={translate('kol-page-back')}\n\t\t\t\t\t\t\t\t\t_on={this.onGoBackward}\n\t\t\t\t\t\t\t\t\t_tooltipAlign={this.state._tooltipAlign}\n\t\t\t\t\t\t\t\t></kol-button-wc>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{pageButtons}\n\t\t\t\t\t\t{this.state._hasButtons.next && (\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<kol-button-wc\n\t\t\t\t\t\t\t\t\tclass=\"next\"\n\t\t\t\t\t\t\t\t\texportparts=\"icon\"\n\t\t\t\t\t\t\t\t\t_customClass={this.state._customClass}\n\t\t\t\t\t\t\t\t\t_disabled={count <= this.state._page}\n\t\t\t\t\t\t\t\t\t_icons={rightSingleArrowIcon}\n\t\t\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t\t\t_label={translate('kol-page-next')}\n\t\t\t\t\t\t\t\t\t_on={this.onGoForward}\n\t\t\t\t\t\t\t\t\t_tooltipAlign={this.state._tooltipAlign}\n\t\t\t\t\t\t\t\t></kol-button-wc>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{this.state._hasButtons.last && (\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<kol-button-wc\n\t\t\t\t\t\t\t\t\tclass=\"last\"\n\t\t\t\t\t\t\t\t\texportparts=\"icon\"\n\t\t\t\t\t\t\t\t\t_customClass={this.state._customClass}\n\t\t\t\t\t\t\t\t\t_disabled={count <= this.state._page}\n\t\t\t\t\t\t\t\t\t_icons={rightDoubleArrowIcon}\n\t\t\t\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t\t\t\t_label={translate('kol-page-last')}\n\t\t\t\t\t\t\t\t\t_on={this.onGoToEnd}\n\t\t\t\t\t\t\t\t\t_tooltipAlign={this.state._tooltipAlign}\n\t\t\t\t\t\t\t\t></kol-button-wc>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</ul>\n\t\t\t\t</nav>\n\t\t\t\t{this.state._pageSizeOptions?.length > 0 && (\n\t\t\t\t\t<kol-select\n\t\t\t\t\t\t_hideLabel\n\t\t\t\t\t\t_id={`pagination-size-${this.nonce}`}\n\t\t\t\t\t\t_label={translate('kol-entries-per-site')}\n\t\t\t\t\t\t_options={this.state._pageSizeOptions}\n\t\t\t\t\t\t_on={{\n\t\t\t\t\t\t\tonChange: this.onChangePageSize,\n\t\t\t\t\t\t}}\n\t\t\t\t\t\t_value={[this.state._pageSize]}\n\t\t\t\t\t></kol-select>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the amount of pages to show next to the outer arrow buttons.\n\t */\n\t@Prop() public _boundaryCount?: number = 1;\n\n\t/**\n\t * Defines the custom class attribute if _variant=\"custom\" is set.\n\t */\n\t@Prop() public _customClass?: CustomClassPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label?: LabelPropType;\n\n\t/**\n\t * Defines which navigation buttons to render (first, last, next, previous buttons).\n\t */\n\t@Prop() public _hasButtons?: boolean | Stringified<PaginationHasButton> = true;\n\n\t/**\n\t * Defines the current page.\n\t */\n\t@Prop() public _page!: number;\n\n\t/**\n\t * Defines the amount of entries to show per page.\n\t */\n\t@Prop({ mutable: true, reflect: false }) public _pageSize = 1;\n\n\t/**\n\t * Defines the options for the page-size-select.\n\t */\n\t@Prop() public _pageSizeOptions: Stringified<number[]> = [];\n\n\t/**\n\t * Gibt an, auf welche Callback-Events reagiert werden.\n\t */\n\t@Prop() public _on!: KoliBriPaginationButtonCallbacks;\n\n\t/**\n\t * Defines the amount of pages to show next to the current page.\n\t */\n\t@Prop() public _siblingCount?: number = 1;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Defines the maximum number of pages.\n\t */\n\t@Prop() public _max!: MaxPropType;\n\n\t@State() public state: States = {\n\t\t_boundaryCount: 1,\n\t\t_label: translate('kol-pagination'),\n\t\t_hasButtons: {\n\t\t\tfirst: true,\n\t\t\tlast: true,\n\t\t\tnext: true,\n\t\t\tprevious: true,\n\t\t},\n\t\t_on: {\n\t\t\tonClick: () => null,\n\t\t},\n\t\t_page: 0,\n\t\t_pageSize: 1,\n\t\t_pageSizeOptions: [],\n\t\t_siblingCount: 1,\n\t\t_max: 0,\n\t};\n\n\tprivate onClick = (event: Event, page: number) => {\n\t\tif (typeof this.state._on.onClick === 'function') {\n\t\t\tthis.state._on.onClick(event, page);\n\t\t}\n\t\tthis.onChangePage(event, page);\n\t};\n\n\tprivate onChangePage = (event: Event, page: number) => {\n\t\tconst timeout = setTimeout(() => {\n\t\t\tclearTimeout(timeout);\n\t\t\tif (typeof this.state._on.onChangePage === 'function') {\n\t\t\t\tthis.state._on.onChangePage(event, page);\n\t\t\t}\n\t\t});\n\t};\n\n\tprivate onChangePageSize = (event: Event, value: unknown) => {\n\t\tvalue = parseInt((value as string[])[0]);\n\t\tif (typeof value === 'number' && value > 0 && this._pageSize !== value) {\n\t\t\tthis._pageSize = value;\n\t\t\tconst timeout = setTimeout(() => {\n\t\t\t\tclearTimeout(timeout);\n\t\t\t\tif (typeof this.state._on.onChangePageSize === 'function') {\n\t\t\t\t\tthis.state._on.onChangePageSize(event, this._pageSize);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t};\n\n\tprivate readonly onGoToFirst = {\n\t\tonClick: (event: Event) => {\n\t\t\tthis.onClick(event, 1);\n\t\t},\n\t};\n\tprivate readonly onGoToEnd = {\n\t\tonClick: (event: Event) => {\n\t\t\tthis.onClick(event, this.getCount());\n\t\t},\n\t};\n\tprivate readonly onGoBackward = {\n\t\tonClick: (event: Event) => {\n\t\t\tthis.onClick(event, this.state._page - 1);\n\t\t},\n\t};\n\tprivate readonly onGoForward = {\n\t\tonClick: (event: Event) => {\n\t\t\tthis.onClick(event, this.state._page + 1);\n\t\t},\n\t};\n\n\tprivate getUnselectedPageButton(page: number): JSX.Element {\n\t\treturn (\n\t\t\t<li>\n\t\t\t\t<kol-button-wc\n\t\t\t\t\texportparts=\"icon\"\n\t\t\t\t\tkey={`${this.nonce}-${page}`}\n\t\t\t\t\t_customClass={this.state._customClass}\n\t\t\t\t\t_label={`${page}`}\n\t\t\t\t\t_on={{\n\t\t\t\t\t\tonClick: (event: Event) => {\n\t\t\t\t\t\t\tthis.onClick(event, page);\n\t\t\t\t\t\t},\n\t\t\t\t\t}}\n\t\t\t\t></kol-button-wc>\n\t\t\t</li>\n\t\t);\n\t}\n\n\tprivate getSelectedPageButton(page: number): JSX.Element {\n\t\treturn (\n\t\t\t<li>\n\t\t\t\t<kol-button-wc class=\"selected\" key={`${this.nonce}-selected`} _customClass={this.state._customClass} _disabled={true} _label={`${page}`} />\n\t\t\t</li>\n\t\t);\n\t}\n\n\t@Watch('_boundaryCount')\n\tpublic validateBoundaryCount(value?: number): void {\n\t\twatchNumber(this, '_boundaryCount', Math.max(0, value ?? 1));\n\t}\n\n\t@Watch('_customClass')\n\tpublic validateCustomClass(value?: CustomClassPropType): void {\n\t\tvalidateCustomClass(this, value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(label?: LabelPropType, _oldValue?: LabelPropType, initial = false) {\n\t\tif (!initial) {\n\t\t\tremoveNavLabel(this.state._label);\n\t\t}\n\t\tvalidateLabel(this, label);\n\t\taddNavLabel(this.state._label); // add the state instead of prop, because the prop could be invalid and not set as new label\n\t}\n\n\t@Watch('_hasButtons')\n\tpublic validateHasButtons(value?: string | boolean | Stringified<PaginationHasButton>): void {\n\t\twatchValidator(\n\t\t\tthis,\n\t\t\t'_hasButtons',\n\t\t\t(value) => typeof value === 'boolean' || typeof value === 'string' || (typeof value === 'object' && value !== null),\n\t\t\tnew Set(['Boolean', 'PaginationHasButton']),\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 (typeof nextValue === 'boolean') {\n\t\t\t\t\t\t\tnextState.set('_hasButtons', {\n\t\t\t\t\t\t\t\tfirst: nextValue,\n\t\t\t\t\t\t\t\tlast: nextValue,\n\t\t\t\t\t\t\t\tnext: nextValue,\n\t\t\t\t\t\t\t\tprevious: nextValue,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (typeof nextValue === 'string') {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tnextValue = parseJson<PaginationHasButton>(nextValue);\n\t\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\t\tnextState.delete('_hasButtons');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (typeof nextValue === 'object' && nextValue !== null) {\n\t\t\t\t\t\t\t\tnextState.set('_hasButtons', {\n\t\t\t\t\t\t\t\t\t...this.state._hasButtons,\n\t\t\t\t\t\t\t\t\tfirst:\n\t\t\t\t\t\t\t\t\t\ttypeof (nextValue as PaginationHasButton).first === 'boolean'\n\t\t\t\t\t\t\t\t\t\t\t? (nextValue as PaginationHasButton).first === true\n\t\t\t\t\t\t\t\t\t\t\t: this.state._hasButtons.first,\n\t\t\t\t\t\t\t\t\tlast:\n\t\t\t\t\t\t\t\t\t\ttypeof (nextValue as PaginationHasButton).last === 'boolean'\n\t\t\t\t\t\t\t\t\t\t\t? (nextValue as PaginationHasButton).last === true\n\t\t\t\t\t\t\t\t\t\t\t: this.state._hasButtons.last,\n\t\t\t\t\t\t\t\t\tnext:\n\t\t\t\t\t\t\t\t\t\ttypeof (nextValue as PaginationHasButton).next === 'boolean'\n\t\t\t\t\t\t\t\t\t\t\t? (nextValue as PaginationHasButton).next === true\n\t\t\t\t\t\t\t\t\t\t\t: this.state._hasButtons.next,\n\t\t\t\t\t\t\t\t\tprevious:\n\t\t\t\t\t\t\t\t\t\ttypeof (nextValue as PaginationHasButton).previous === 'boolean'\n\t\t\t\t\t\t\t\t\t\t\t? (nextValue as PaginationHasButton).previous === true\n\t\t\t\t\t\t\t\t\t\t\t: this.state._hasButtons.previous,\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}\n\t\t);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: KoliBriPaginationButtonCallbacks): void {\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tthis.state = {\n\t\t\t\t...this.state,\n\t\t\t\t_on: value,\n\t\t\t};\n\t\t}\n\t}\n\n\t@Watch('_page')\n\tpublic validatePage(value?: number): void {\n\t\twatchNumber(this, '_page', value, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: (_nextValue: unknown, nextState: Map<string, unknown>) => {\n\t\t\t\t\tconst pageSize = nextState.has('_pageSize') ? (nextState.get('_pageSize') as number) : this.state._pageSize;\n\t\t\t\t\tconst total = nextState.has('_max') ? (nextState.get('_max') as number) : this.state._max;\n\t\t\t\t\tthis.syncPage(nextState, _nextValue as number, pageSize, total);\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t}\n\n\tprivate beforePageSize = (_nextValue: unknown, nextState: Map<string, unknown>) => {\n\t\tlet pageSize = nextState.has('_pageSize') ? (nextState.get('_pageSize') as number) : this.state._pageSize;\n\t\tconst pageSizeOptions = nextState.has('_pageSizeOptions') ? (nextState.get('_pageSizeOptions') as Option<number>[]) : this.state._pageSizeOptions;\n\t\tif (Array.isArray(pageSizeOptions) && pageSizeOptions.length > 0) {\n\t\t\tconst find = pageSizeOptions.find((option) => option.value === pageSize);\n\t\t\tif (find === undefined) {\n\t\t\t\tpageSize = pageSizeOptions[0].value;\n\t\t\t} else {\n\t\t\t\tpageSize = find.value;\n\t\t\t}\n\t\t\tnextState.set('_pageSize', pageSize);\n\t\t}\n\t\tconst page = nextState.has('_page') ? (nextState.get('_page') as number) : this.state._page;\n\t\tconst total = nextState.has('_max') ? (nextState.get('_max') as number) : this.state._max;\n\t\tthis.syncPage(nextState, page, nextState.get('_pageSize') as number, total);\n\t};\n\n\tprivate syncPage = (nextState: Map<string, unknown>, page: number, pageSize: number, total: number) => {\n\t\t// count === 0 means no data\n\t\tif (total > 0) {\n\t\t\tconst count = this.calcCount(total, pageSize);\n\t\t\tif (count > 0) {\n\t\t\t\tif (page > count) {\n\t\t\t\t\tnextState.set('_page', count);\n\t\t\t\t\tthis.onChangePage(STATE_CHANGE_EVENT, count);\n\t\t\t\t} else if (page < 1) {\n\t\t\t\t\tnextState.set('_page', 1);\n\t\t\t\t\tthis.onChangePage(STATE_CHANGE_EVENT, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\tprivate beforePageSizeOptions = (nextValue: unknown, nextState: Map<string, unknown>) => {\n\t\tconst options: Option<number>[] = [];\n\t\tif (Array.isArray(nextValue)) {\n\t\t\tfor (const value of nextValue) {\n\t\t\t\tif (typeof value === 'number') {\n\t\t\t\t\toptions.push({\n\t\t\t\t\t\tlabel: translate('kol-page-per-site', { placeholders: { entries: `${value}` } }),\n\t\t\t\t\t\tvalue: value,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tnextState.set('_pageSizeOptions', options);\n\t\tthis.beforePageSize(options, nextState);\n\t};\n\n\t@Watch('_pageSize')\n\tpublic validatePageSize(value?: number): void {\n\t\twatchNumber(this, '_pageSize', value, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.beforePageSize,\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_pageSizeOptions')\n\tpublic validatePageSizeOptions(value?: Stringified<number[]>): void {\n\t\twatchJsonArrayString(this, '_pageSizeOptions', (value) => typeof value === 'number', value, undefined, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.beforePageSizeOptions,\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_siblingCount')\n\tpublic validateSiblingCount(value?: number): void {\n\t\twatchNumber(this, '_siblingCount', Math.max(0, value ?? 1));\n\t}\n\n\t@Watch('_max')\n\tpublic validateMax(value?: MaxPropType): void {\n\t\tvalidateMax(this, value, {\n\t\t\thooks: {\n\t\t\t\tbeforePatch: (_nextValue: unknown, nextState: Map<string, unknown>) => {\n\t\t\t\t\tconst page = nextState.has('_page') ? (nextState.get('_page') as number) : this.state._page;\n\t\t\t\t\tconst pageSize = nextState.has('_pageSize') ? (nextState.get('_pageSize') as number) : this.state._pageSize;\n\t\t\t\t\tthis.syncPage(nextState, page, pageSize, _nextValue as number);\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_tooltipAlign')\n\tpublic validateTooltipAlign(value?: TooltipAlignPropType): void {\n\t\tvalidateTooltipAlign(this, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateBoundaryCount(this._boundaryCount);\n\t\tthis.validateCustomClass(this._customClass);\n\t\tthis.validateHasButtons(this._hasButtons);\n\t\tthis.validateLabel(this._label, undefined, true);\n\t\tthis.validateOn(this._on);\n\t\tthis.validatePage(this._page);\n\t\tthis.validatePageSize(this._pageSize);\n\t\tthis.validatePageSizeOptions(this._pageSizeOptions);\n\t\tthis.validateSiblingCount(this._siblingCount);\n\t\tthis.validateTooltipAlign(this._tooltipAlign);\n\t\tthis.validateMax(this._max);\n\n\t\t/**\n\t\t * Die Seite muss als letztes gesetzt werden, da sonst die Seite\n\t\t * nicht korrekt berechnet wird.\n\t\t */\n\t\tthis.validatePage(this._page);\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tremoveNavLabel(this.state._label);\n\t}\n}\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-a2400b65.js"),alignment=require("./alignment-516753a3.js"),show=require("./show-705b299e.js"),dev_utils=require("./dev.utils-dd53475e.js"),alignFloatingElements=require("./align-floating-elements-dca98687.js");require("./prop.validators-5f352bbf.js"),require("./a11y.tipps-3cff218a.js"),require("./reuse-a4c8450e.js");const styleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\tkol-popover {\n\t\theight: 0;\n\t\tposition: absolute;\n\t}\n\n\tkol-popover .popover {\n\t\tbackground-color: #fff;\n\t\tmin-height: max-content;\n\t\tmin-width: max-content;\n\t\topacity: 0;\n\t\tposition: absolute;\n\t}\n\n\tkol-popover .hidden {\n\t\tdisplay: none;\n\t}\n\n\tkol-popover .show {\n\t\tanimation: 0.3s ease-in forwards fadeInOpacity;\n\t}\n\n\tkol-popover .disappear {\n\t\tanimation: 0.3s ease-in backwards fadeInOpacity;\n\t}\n\n\tkol-popover .arrow {\n\t\tbackground-color: inherit;\n\t\theight: var(--font-size);\n\t\tposition: absolute;\n\t\trotate: 0.125turn;\n\t\twidth: var(--font-size);\n\t\tz-index: -1;\n\t}\n\n\t@keyframes fadeInOpacity {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n}\n",KolPopover=class{constructor(t){index.registerInstance(this,t),this.hidePopoverByEscape=t=>{"Escape"===t.key&&this.hidePopover()},this.hidePopoverByClickOutside=t=>{this.host&&!this.host.contains(t.target)&&this.hidePopover()},this.catchHostAndTriggerElement=t=>{t&&(this.host=t,this.triggerElement=t.previousElementSibling)},this.catchPopoverElement=t=>{this.popoverElement=t},this.catchArrowElement=t=>{this.arrowElement=t},this._align="top",this._show=!1,this.state={_align:"top",_show:!1,_visible:!1}}async showPopover(){this.addListenersToBody(),this.triggerElement&&this.popoverElement&&(await alignFloatingElements.alignFloatingElements({align:this._align,referenceElement:this.triggerElement,arrowElement:this.arrowElement,floatingElement:this.popoverElement}),this.state=Object.assign(Object.assign({},this.state),{_visible:!0}))}hidePopover(){var t;this.state=Object.assign(Object.assign({},this.state),{_visible:!1}),this._show=!1,null===(t=this.triggerElement)||void 0===t||t.focus(),this.removeListenersToBody()}addListenersToBody(){var t;const e=dev_utils.getDocument().body;e.addEventListener("keyup",this.hidePopoverByEscape),e.addEventListener("click",this.hidePopoverByClickOutside),null===(t=document.scrollingElement)||void 0===t||t.addEventListener("scroll",(()=>{this.showPopover()}),{passive:!0})}removeListenersToBody(){var t;const e=dev_utils.getDocument().body;e.removeEventListener("keyup",this.hidePopoverByEscape),e.removeEventListener("click",this.hidePopoverByClickOutside),null===(t=document.scrollingElement)||void 0===t||t.removeEventListener("scroll",(()=>{this.showPopover()}))}render(){return index.h(index.Host,{ref:this.catchHostAndTriggerElement},index.h("div",{class:{popover:!0,hidden:!this.state._show,show:this.state._visible},ref:this.catchPopoverElement},index.h("div",{class:`arrow ${this.state._align}`,ref:this.catchArrowElement}),index.h("slot",null)))}validateAlign(t){alignment.validateAlign(this,t)}validateShow(t){show.validateShow(this,t),t&&this.showPopover()}componentWillLoad(){this.validateAlign(this._align),this.validateShow(this._show)}static get watchers(){return{_align:["validateAlign"],_show:["validateShow"]}}};KolPopover.style=styleCss,exports.kol_popover_wc=KolPopover;
@@ -0,0 +1 @@
1
+ {"file":"kol-popover-wc.entry.cjs.js","mappings":";;;;;;;;;;;;;;;;AAAA,MAAM,QAAQ,GAAG,u2IAAu2I;;MCgB32I,UAAU;;;QA4Bd,wBAAmB,GAAG,CAAC,KAAoB;YAClD,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ;gBAAE,IAAI,CAAC,WAAW,EAAE,CAAC;SAC/C,CAAC;QACM,8BAAyB,GAAG,CAAC,KAAiB;YACrD,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAqB,CAAC,EAAE;gBAClE,IAAI,CAAC,WAAW,EAAE,CAAC;aACnB;SACD,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C,CAAC;QAC1B,IAAI,KAAK;YAAE,KAAK,IAAI,CAAC,WAAW,EAAE,CAAC;KACnC;IAEM,iBAAiB;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAC9B;;;;;;;;;;","names":["alignFloatingElements","getDocument","h","Host","validateAlign","validateShow"],"sources":["src/components/popover/style.css?tag=kol-popover-wc","src/components/popover/component.tsx"],"sourcesContent":["@import url(../style.css);\n@layer kol-component {\n\tkol-popover {\n\t\theight: 0;\n\t\tposition: absolute;\n\t}\n\n\tkol-popover .popover {\n\t\tbackground-color: #fff;\n\t\tmin-height: max-content;\n\t\tmin-width: max-content;\n\t\topacity: 0;\n\t\tposition: absolute;\n\t}\n\n\tkol-popover .hidden {\n\t\tdisplay: none;\n\t}\n\n\tkol-popover .show {\n\t\tanimation: 0.3s ease-in forwards fadeInOpacity;\n\t}\n\n\tkol-popover .disappear {\n\t\tanimation: 0.3s ease-in backwards fadeInOpacity;\n\t}\n\n\tkol-popover .arrow {\n\t\tbackground-color: inherit;\n\t\theight: var(--font-size);\n\t\tposition: absolute;\n\t\trotate: 0.125turn;\n\t\twidth: var(--font-size);\n\t\tz-index: -1;\n\t}\n\n\t@keyframes fadeInOpacity {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { AlignPropType, validateAlign } from '../../types/props/align';\nimport { ShowPropType, validateShow } from '../../types/props/show';\nimport { getDocument } from '../../utils/dev.utils';\nimport { API, States } from './types';\nimport { alignFloatingElements } from '../../utils/align-floating-elements';\n\n/**\n * @slot - Der Inhalt des Popover.\n */\n@Component({\n\ttag: 'kol-popover-wc',\n\tstyleUrl: './style.css',\n\tshadow: false,\n})\nexport class KolPopover implements API {\n\tprivate arrowElement?: HTMLDivElement;\n\tprivate popoverElement?: HTMLDivElement;\n\tprivate triggerElement?: HTMLElement | null;\n\tprivate host?: HTMLElement;\n\n\tprivate async showPopover(): Promise<void> {\n\t\tthis.addListenersToBody();\n\n\t\tif (this.triggerElement && this.popoverElement) {\n\t\t\tawait alignFloatingElements({\n\t\t\t\talign: this._align,\n\t\t\t\treferenceElement: this.triggerElement,\n\t\t\t\tarrowElement: this.arrowElement,\n\t\t\t\tfloatingElement: this.popoverElement,\n\t\t\t});\n\t\t\tthis.state = { ...this.state, _visible: true };\n\t\t}\n\t}\n\tprivate hidePopover(): void {\n\t\tthis.state = {\n\t\t\t...this.state,\n\t\t\t_visible: false,\n\t\t};\n\t\tthis._show = false;\n\t\tthis.triggerElement?.focus();\n\t\tthis.removeListenersToBody();\n\t}\n\tprivate hidePopoverByEscape = (event: KeyboardEvent): void => {\n\t\tif (event.key === 'Escape') this.hidePopover();\n\t};\n\tprivate hidePopoverByClickOutside = (event: MouseEvent): void => {\n\t\tif (this.host && !this.host.contains(event.target as HTMLElement)) {\n\t\t\tthis.hidePopover();\n\t\t}\n\t};\n\n\t/* EventListener functions */\n\tprivate addListenersToBody(): void {\n\t\tconst body = getDocument().body;\n\t\tbody.addEventListener('keyup', this.hidePopoverByEscape);\n\t\tbody.addEventListener('click', this.hidePopoverByClickOutside);\n\t\tdocument.scrollingElement?.addEventListener(\n\t\t\t'scroll',\n\t\t\t() => {\n\t\t\t\tvoid this.showPopover();\n\t\t\t},\n\t\t\t{ passive: true }\n\t\t);\n\t}\n\tprivate removeListenersToBody(): void {\n\t\tconst body = getDocument().body;\n\t\tbody.removeEventListener('keyup', this.hidePopoverByEscape);\n\t\tbody.removeEventListener('click', this.hidePopoverByClickOutside);\n\t\tdocument.scrollingElement?.removeEventListener('scroll', () => {\n\t\t\tvoid this.showPopover();\n\t\t});\n\t}\n\n\t/* catchElement functions */\n\tprivate catchHostAndTriggerElement = (element: HTMLElement | null): void => {\n\t\tif (element) {\n\t\t\tthis.host = element;\n\t\t\tthis.triggerElement = element.previousElementSibling as HTMLElement | null;\n\t\t}\n\t};\n\tprivate catchPopoverElement = (element?: HTMLDivElement): void => {\n\t\tthis.popoverElement = element;\n\t};\n\tprivate catchArrowElement = (element?: HTMLDivElement): void => {\n\t\tthis.arrowElement = element;\n\t};\n\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host ref={this.catchHostAndTriggerElement}>\n\t\t\t\t<div class={{ popover: true, hidden: !this.state._show, show: this.state._visible }} ref={this.catchPopoverElement}>\n\t\t\t\t\t<div class={`arrow ${this.state._align}`} ref={this.catchArrowElement} />\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the alignment of the tooltip, popover or tabs in relation to the element.\n\t */\n\t@Prop() public _align?: AlignPropType = 'top';\n\n\t/**\n\t * Makes the element show up.\n\t * @TODO: Change type back to `ShowPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _show?: boolean = false;\n\n\t@State() public state: States = {\n\t\t_align: 'top',\n\t\t_show: false,\n\t\t_visible: false,\n\t};\n\n\t@Watch('_align')\n\tpublic validateAlign(value?: AlignPropType): void {\n\t\tvalidateAlign(this, value);\n\t}\n\n\t@Watch('_show')\n\tpublic validateShow(value?: ShowPropType): void {\n\t\tvalidateShow(this, value);\n\t\tif (value) void this.showPopover();\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateAlign(this._align);\n\t\tthis.validateShow(this._show);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-d310c51c.js"),label=require("./label-a9e9ea83.js"),prop_validators=require("./prop.validators-4653485a.js");var KoliBriProgressVariantEnum;require("./a11y.tipps-c9682dc9.js"),require("./dev.utils-80099077.js"),require("./reuse-786396d6.js"),function(t){t.bar="bar",t.cycle="cycle",t["cycle-value-label"]="cycle-value-label",t["cycle-label-value"]="cycle-label-value"}(KoliBriProgressVariantEnum||(KoliBriProgressVariantEnum={}));const defaultStyleCss="@layer kol-global {\n\t/*\n\t * This file contains all rules for accessibility.\n\t */\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\tfont-size: inherit;\n\t}\n\n\t* {\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* font-family is NOT inherited all HTML elements. */\n\tbutton,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\tfont-family: inherit;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\tprogress {\n\t\tdisplay: block;\n\t\theight: 0;\n\t\toverflow: hidden;\n\t\twidth: 0;\n\t}\n\n\t.bar .border {\n\t\tfill: transparent;\n\t\tstroke: black;\n\t}\n\n\t.bar .background {\n\t\tfill: lightgray;\n\t\tstroke: white;\n\t}\n\n\t.bar .progress {\n\t\tfill: #0075ff;\n\t\tstroke: transparent;\n\t\ttransition: 250ms ease-in-out 50ms;\n\t}\n\n\t.cycle .background {\n\t\tfill: transparent;\n\t\tstroke: lightgray;\n\t}\n\n\t.cycle .border {\n\t\tfill: transparent;\n\t\tstroke: black;\n\t}\n\n\t.cycle .whitespace {\n\t\tfill: transparent;\n\t\tstroke: white;\n\t}\n\n\t.cycle .progress {\n\t\tfill: transparent;\n\t\tstroke: #0075ff;\n\t\ttransform-origin: 50% 50%;\n\t\ttransform: rotate(-90deg);\n\t\ttransition: 250ms ease-in-out 50ms;\n\t}\n\n\t/* https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion */\n\t@media (prefers-reduced-motion) {\n\t\t.progress {\n\t\t\ttransition-duration: 0s;\n\t\t\ttransition-delay: 0s;\n\t\t}\n\t}\n}\n",VALID_VARIANTS=Object.keys(KoliBriProgressVariantEnum),createProgressSVG=t=>{let e="43%",n=t._label?"57%":"50%";switch(t._variant){case"cycle-value-label":t._label&&(e="57%",n="43%");case"cycle":case"cycle-label-value":return index.h("svg",{class:"cycle",width:"100",viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg"},index.h("circle",{class:"background",cx:"60",cy:"60",r:"54.5",fill:"currentColor",stroke:"currentColor","stroke-width":"8"}),index.h("circle",{class:"whitespace",cx:"60",cy:"60",r:"59",fill:"currentColor",stroke:"currentColor","stroke-width":"3"}),index.h("circle",{class:"border",cx:"60",cy:"60",r:"59",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),index.h("circle",{class:"whitespace",cx:"60",cy:"60",r:"51",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),index.h("circle",{class:"border",cx:"60",cy:"60",r:"50",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),index.h("circle",{class:"progress",fill:"currentColor",stroke:"currentColor","stroke-linecap":"round","stroke-dasharray":`${Math.round(t._value/t._max*342)}px 342px`,"stroke-width":"6",cx:"60",cy:"60",r:"54.5"}),t._label&&index.h("text",{"aria-hidden":"true",x:"50%",y:e,"text-anchor":"middle",fill:"currentColor"},t._label),index.h("text",{"aria-hidden":"true",x:"50%",y:n,"text-anchor":"middle",fill:"currentColor"},t._value,t._unit));default:return index.h("div",{class:"bar"},t._label&&index.h("div",null,t._label),index.h("div",{style:{display:"flex",gap:"0.3em"}},index.h("svg",{width:"100",viewBox:"0 0 102 8",xmlns:"http://www.w3.org/2000/svg"},index.h("rect",{class:"background",x:"1",y:"1",height:"10",rx:"5",fill:"currentColor",stroke:"currentColor","stroke-width":"3",width:"100"}),index.h("rect",{class:"progress",x:"2.5",y:"2.5",height:"7",rx:"3.5",fill:"currentColor",stroke:"currentColor","stroke-width":"3",width:t._value/t._max*95}),index.h("rect",{class:"border",x:"1",y:"1",height:"10",rx:"5",fill:"currentColor",stroke:"currentColor","stroke-width":"1",width:"100"})),index.h("text",{"aria-hidden":"true","text-anchor":"middle","dominant-baseline":"central",fill:"currentColor"},t._value,t._unit)))}},KolProcess=class{constructor(t){index.registerInstance(this,t),this._label=void 0,this._max=void 0,this._unit="%",this._value=void 0,this._variant=void 0,this.state={_max:100,_unit:"%",_value:0,_variant:"bar",_liveValue:0}}render(){return index.h(index.Host,null,createProgressSVG(this.state),index.h("progress",{"aria-busy":this.state._value<this.state._max?"true":"false",max:this.state._max,value:this.state._value}),index.h("span",{"aria-live":"polite","aria-relevant":"removals text",hidden:!0},this.state._liveValue," von ",this.state._max," ",this.state._unit))}validateLabel(t){label.validateLabel(this,t)}validateMax(t){"number"!=typeof t&&(t=100),prop_validators.watchNumber(this,"_max",t,{required:!0})}validateUnit(t){prop_validators.watchString(this,"_unit",t)}validateValue(t){"number"!=typeof t&&(t=0),prop_validators.watchNumber(this,"_value",t,{required:!0})}validateVariant(t){prop_validators.watchValidator(this,"_variant",(t=>"string"==typeof t&&VALID_VARIANTS.includes(t)),new Set(VALID_VARIANTS),t)}componentWillLoad(){this.validateLabel(this._label),this.validateMax(this._max),this.validateUnit(this._unit),this.validateValue(this._value),this.validateVariant(this._variant),this.interval=setInterval((()=>{this.state._liveValue!==this.state._value&&(this.state=Object.assign(Object.assign({},this.state),{_liveValue:this.state._value}))}),5e3)}disconnectedCallback(){clearInterval(this.interval)}static get watchers(){return{_label:["validateLabel"],_max:["validateMax"],_unit:["validateUnit"],_value:["validateValue"],_variant:["validateVariant"]}}};KolProcess.style={default:defaultStyleCss},exports.kol_progress=KolProcess;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-a2400b65.js"),label=require("./label-de5ebf4b.js"),prop_validators=require("./prop.validators-5f352bbf.js");var KoliBriProgressVariantEnum;require("./a11y.tipps-3cff218a.js"),require("./dev.utils-dd53475e.js"),require("./reuse-a4c8450e.js"),function(t){t.bar="bar",t.cycle="cycle",t["cycle-value-label"]="cycle-value-label",t["cycle-label-value"]="cycle-label-value"}(KoliBriProgressVariantEnum||(KoliBriProgressVariantEnum={}));const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\tprogress {\n\t\tdisplay: block;\n\t\theight: 0;\n\t\toverflow: hidden;\n\t\twidth: 0;\n\t}\n\n\t.bar .border {\n\t\tfill: transparent;\n\t\tstroke: black;\n\t}\n\n\t.bar .background {\n\t\tfill: lightgray;\n\t\tstroke: white;\n\t}\n\n\t.bar .progress {\n\t\tfill: #0075ff;\n\t\tstroke: transparent;\n\t\ttransition: 250ms ease-in-out 50ms;\n\t}\n\n\t.cycle .background {\n\t\tfill: transparent;\n\t\tstroke: lightgray;\n\t}\n\n\t.cycle .border {\n\t\tfill: transparent;\n\t\tstroke: black;\n\t}\n\n\t.cycle .whitespace {\n\t\tfill: transparent;\n\t\tstroke: white;\n\t}\n\n\t.cycle .progress {\n\t\tfill: transparent;\n\t\tstroke: #0075ff;\n\t\ttransform-origin: 50% 50%;\n\t\ttransform: rotate(-90deg);\n\t\ttransition: 250ms ease-in-out 50ms;\n\t}\n\n\t/* https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion */\n\t@media (prefers-reduced-motion) {\n\t\t.progress {\n\t\t\ttransition-duration: 0s;\n\t\t\ttransition-delay: 0s;\n\t\t}\n\t}\n}\n",VALID_VARIANTS=Object.keys(KoliBriProgressVariantEnum),createProgressSVG=t=>{let e="43%",n=t._label?"57%":"50%";switch(t._variant){case"cycle-value-label":t._label&&(e="57%",n="43%");case"cycle":case"cycle-label-value":return index.h("svg",{class:"cycle",width:"100",viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg"},index.h("circle",{class:"background",cx:"60",cy:"60",r:"54.5",fill:"currentColor",stroke:"currentColor","stroke-width":"8"}),index.h("circle",{class:"whitespace",cx:"60",cy:"60",r:"59",fill:"currentColor",stroke:"currentColor","stroke-width":"3"}),index.h("circle",{class:"border",cx:"60",cy:"60",r:"59",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),index.h("circle",{class:"whitespace",cx:"60",cy:"60",r:"51",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),index.h("circle",{class:"border",cx:"60",cy:"60",r:"50",fill:"currentColor",stroke:"currentColor","stroke-width":"1"}),index.h("circle",{class:"progress",fill:"currentColor",stroke:"currentColor","stroke-linecap":"round","stroke-dasharray":`${Math.round(t._value/t._max*342)}px 342px`,"stroke-width":"6",cx:"60",cy:"60",r:"54.5"}),t._label&&index.h("text",{"aria-hidden":"true",x:"50%",y:e,"text-anchor":"middle",fill:"currentColor"},t._label),index.h("text",{"aria-hidden":"true",x:"50%",y:n,"text-anchor":"middle",fill:"currentColor"},t._value,t._unit));default:return index.h("div",{class:"bar"},t._label&&index.h("div",null,t._label),index.h("div",{style:{display:"flex",gap:"0.3em"}},index.h("svg",{width:"100",viewBox:"0 0 102 8",xmlns:"http://www.w3.org/2000/svg"},index.h("rect",{class:"background",x:"1",y:"1",height:"10",rx:"5",fill:"currentColor",stroke:"currentColor","stroke-width":"3",width:"100"}),index.h("rect",{class:"progress",x:"2.5",y:"2.5",height:"7",rx:"3.5",fill:"currentColor",stroke:"currentColor","stroke-width":"3",width:t._value/t._max*95}),index.h("rect",{class:"border",x:"1",y:"1",height:"10",rx:"5",fill:"currentColor",stroke:"currentColor","stroke-width":"1",width:"100"})),index.h("text",{"aria-hidden":"true","text-anchor":"middle","dominant-baseline":"central",fill:"currentColor"},t._value,t._unit)))}},KolProcess=class{constructor(t){index.registerInstance(this,t),this._label=void 0,this._max=void 0,this._unit="%",this._value=void 0,this._variant=void 0,this.state={_max:100,_unit:"%",_value:0,_variant:"bar",_liveValue:0}}render(){return index.h(index.Host,null,createProgressSVG(this.state),index.h("progress",{"aria-busy":this.state._value<this.state._max?"true":"false",max:this.state._max,value:this.state._value}),index.h("span",{"aria-live":"polite","aria-relevant":"removals text",hidden:!0},this.state._liveValue," von ",this.state._max," ",this.state._unit))}validateLabel(t){label.validateLabel(this,t)}validateMax(t){"number"!=typeof t&&(t=100),prop_validators.watchNumber(this,"_max",t,{required:!0})}validateUnit(t){prop_validators.watchString(this,"_unit",t)}validateValue(t){"number"!=typeof t&&(t=0),prop_validators.watchNumber(this,"_value",t,{required:!0})}validateVariant(t){prop_validators.watchValidator(this,"_variant",(t=>"string"==typeof t&&VALID_VARIANTS.includes(t)),new Set(VALID_VARIANTS),t)}componentWillLoad(){this.validateLabel(this._label),this.validateMax(this._max),this.validateUnit(this._unit),this.validateValue(this._value),this.validateVariant(this._variant),this.interval=setInterval((()=>{this.state._liveValue!==this.state._value&&(this.state=Object.assign(Object.assign({},this.state),{_liveValue:this.state._value}))}),5e3)}disconnectedCallback(){clearInterval(this.interval)}static get watchers(){return{_label:["validateLabel"],_max:["validateMax"],_unit:["validateUnit"],_value:["validateValue"],_variant:["validateVariant"]}}};KolProcess.style={default:defaultStyleCss},exports.kol_progress=KolProcess;
@@ -1 +1 @@
1
- {"file":"kol-progress.entry.cjs.js","mappings":";;;;;;;;;;;;;;AAAA,IAAY,0BAKX;AALD,WAAY,0BAA0B;EACrC,yCAAa,CAAA;EACb,6CAAiB,CAAA;EACjB,qEAAyC,CAAA;EACzC,qEAAyC,CAAA;AAC1C,CAAC,EALW,0BAA0B,KAA1B,0BAA0B;;ACAtC,MAAM,eAAe,GAAG,q4HAAq4H;;ACO75H,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;AAG/D,MAAM,iBAAiB,GAAG,CAAC,KAAa;EACvC,MAAM,UAAU,GAAG,GAAG,CAAC;EACvB,MAAM,eAAe,GAAG,KAAK,CAAC;EAC9B,MAAM,kBAAkB,GAAG,KAAK,CAAC;EAEjC,IAAI,MAAM,GAAG,eAAe,CAAC;EAC7B,IAAI,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,kBAAkB,GAAG,KAAK,CAAC;EACvD,QAAQ,KAAK,CAAC,QAAQ;IACrB,KAAK,mBAAmB;MACvB,IAAI,KAAK,CAAC,MAAM,EAAE;QACjB,MAAM,GAAG,kBAAkB,CAAC;QAC5B,MAAM,GAAG,eAAe,CAAC;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;;;;;;;;;;;;;;;","names":["h","Host","validateLabel","watchNumber","watchString","watchValidator"],"sources":["src/types/progress.ts","src/components/progress/style.css?tag=kol-progress&mode=default&encapsulation=shadow","src/components/progress/component.tsx"],"sourcesContent":["export enum KoliBriProgressVariantEnum {\n\t'bar' = 'bar',\n\t'cycle' = 'cycle',\n\t'cycle-value-label' = 'cycle-value-label',\n\t'cycle-label-value' = 'cycle-label-value',\n}\n\nexport type KoliBriProgressVariantType = `${KoliBriProgressVariantEnum}`;\n","@import url(../style.css);\n@layer kol-component {\n\tprogress {\n\t\tdisplay: block;\n\t\theight: 0;\n\t\toverflow: hidden;\n\t\twidth: 0;\n\t}\n\n\t.bar .border {\n\t\tfill: transparent;\n\t\tstroke: black;\n\t}\n\n\t.bar .background {\n\t\tfill: lightgray;\n\t\tstroke: white;\n\t}\n\n\t.bar .progress {\n\t\tfill: #0075ff;\n\t\tstroke: transparent;\n\t\ttransition: 250ms ease-in-out 50ms;\n\t}\n\n\t.cycle .background {\n\t\tfill: transparent;\n\t\tstroke: lightgray;\n\t}\n\n\t.cycle .border {\n\t\tfill: transparent;\n\t\tstroke: black;\n\t}\n\n\t.cycle .whitespace {\n\t\tfill: transparent;\n\t\tstroke: white;\n\t}\n\n\t.cycle .progress {\n\t\tfill: transparent;\n\t\tstroke: #0075ff;\n\t\ttransform-origin: 50% 50%;\n\t\ttransform: rotate(-90deg);\n\t\ttransition: 250ms ease-in-out 50ms;\n\t}\n\n\t/* https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion */\n\t@media (prefers-reduced-motion) {\n\t\t.progress {\n\t\t\ttransition-duration: 0s;\n\t\t\ttransition-delay: 0s;\n\t\t}\n\t}\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { KoliBriProgressVariantEnum, KoliBriProgressVariantType } from '../../types/progress';\nimport { LabelPropType, validateLabel } from '../../types/props/label';\nimport { watchNumber, watchString, watchValidator } from '../../utils/prop.validators';\nimport { API, States } from './types';\n\nconst VALID_VARIANTS = Object.keys(KoliBriProgressVariantEnum);\n\n// https://css-tricks.com/html5-progress-element/\nconst createProgressSVG = (state: States): JSX.Element => {\n\tconst fullCircle = 342;\n\tconst textPositionTop = '43%';\n\tconst textPositionBottom = '57%';\n\n\tlet labelY = textPositionTop;\n\tlet valueY = state._label ? textPositionBottom : '50%';\n\tswitch (state._variant) {\n\t\tcase 'cycle-value-label':\n\t\t\tif (state._label) {\n\t\t\t\tlabelY = textPositionBottom;\n\t\t\t\tvalueY = textPositionTop;\n\t\t\t}\n\t\t// eslint-disable-next-line no-fallthrough\n\t\tcase 'cycle':\n\t\tcase 'cycle-label-value':\n\t\t\treturn (\n\t\t\t\t<svg class=\"cycle\" width=\"100\" viewBox=\"0 0 120 120\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t\t\t<circle class=\"background\" cx=\"60\" cy=\"60\" r=\"54.5\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"8\"></circle>\n\t\t\t\t\t<circle class=\"whitespace\" cx=\"60\" cy=\"60\" r=\"59\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"3\"></circle>\n\t\t\t\t\t<circle class=\"border\" cx=\"60\" cy=\"60\" r=\"59\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1\"></circle>\n\t\t\t\t\t<circle class=\"whitespace\" cx=\"60\" cy=\"60\" r=\"51\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1\"></circle>\n\t\t\t\t\t<circle class=\"border\" cx=\"60\" cy=\"60\" r=\"50\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1\"></circle>\n\t\t\t\t\t<circle\n\t\t\t\t\t\tclass=\"progress\"\n\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\t\tstroke-dasharray={`${Math.round((state._value / state._max) * fullCircle)}px ${fullCircle}px`}\n\t\t\t\t\t\tstroke-width=\"6\"\n\t\t\t\t\t\tcx=\"60\"\n\t\t\t\t\t\tcy=\"60\"\n\t\t\t\t\t\tr=\"54.5\"\n\t\t\t\t\t></circle>\n\t\t\t\t\t{state._label && (\n\t\t\t\t\t\t<text aria-hidden=\"true\" x=\"50%\" y={labelY} text-anchor=\"middle\" fill=\"currentColor\">\n\t\t\t\t\t\t\t{state._label}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t)}\n\t\t\t\t\t<text aria-hidden=\"true\" x=\"50%\" y={valueY} text-anchor=\"middle\" fill=\"currentColor\">\n\t\t\t\t\t\t{state._value}\n\t\t\t\t\t\t{state._unit}\n\t\t\t\t\t</text>\n\t\t\t\t</svg>\n\t\t\t);\n\t\tdefault:\n\t\t\treturn (\n\t\t\t\t<div class=\"bar\">\n\t\t\t\t\t{state._label && <div>{state._label}</div>}\n\t\t\t\t\t<div style={{ display: 'flex', gap: '0.3em' }}>\n\t\t\t\t\t\t<svg width=\"100\" viewBox=\"0 0 102 8\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t\t\t\t\t<rect class=\"background\" x=\"1\" y=\"1\" height=\"10\" rx=\"5\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"3\" width=\"100\"></rect>\n\t\t\t\t\t\t\t<rect\n\t\t\t\t\t\t\t\tclass=\"progress\"\n\t\t\t\t\t\t\t\tx=\"2.5\"\n\t\t\t\t\t\t\t\ty=\"2.5\"\n\t\t\t\t\t\t\t\theight=\"7\"\n\t\t\t\t\t\t\t\trx=\"3.5\"\n\t\t\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\t\t\tstroke-width=\"3\"\n\t\t\t\t\t\t\t\twidth={95 * (state._value / state._max)}\n\t\t\t\t\t\t\t></rect>\n\t\t\t\t\t\t\t<rect class=\"border\" x=\"1\" y=\"1\" height=\"10\" rx=\"5\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1\" width=\"100\"></rect>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t<text aria-hidden=\"true\" text-anchor=\"middle\" dominant-baseline=\"central\" fill=\"currentColor\">\n\t\t\t\t\t\t\t{state._value}\n\t\t\t\t\t\t\t{state._unit}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t);\n\t}\n};\n\n@Component({\n\ttag: 'kol-progress',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolProcess implements API {\n\tprivate interval?: number;\n\n\t// https://dequeuniversity.com/library/aria/progress-bar-bounded\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t{createProgressSVG(this.state)}\n\t\t\t\t<progress aria-busy={this.state._value < this.state._max ? 'true' : 'false'} max={this.state._max} value={this.state._value}></progress>\n\t\t\t\t<span aria-live=\"polite\" aria-relevant=\"removals text\" hidden>\n\t\t\t\t\t{this.state._liveValue} von {this.state._max} {this.state._unit}\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label?: LabelPropType;\n\n\t/**\n\t * Defines at which value the progress display is completed.\n\t */\n\t@Prop() public _max!: number;\n\n\t/**\n\t * Defines the unit of the step values (not shown).\n\t */\n\t@Prop() public _unit?: string = '%';\n\n\t/**\n\t * Defines the progress.\n\t */\n\t@Prop() public _value!: number;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: KoliBriProgressVariantType;\n\n\t@State() public state: States = {\n\t\t_max: 100,\n\t\t_unit: '%',\n\t\t_value: 0,\n\t\t_variant: 'bar',\n\t\t_liveValue: 0,\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t}\n\n\t@Watch('_max')\n\tpublic validateMax(value?: number): void {\n\t\tif (typeof value !== 'number') {\n\t\t\tvalue = 100;\n\t\t}\n\t\twatchNumber(this, '_max', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_unit')\n\tpublic validateUnit(value?: string): void {\n\t\twatchString(this, '_unit', value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: number): void {\n\t\tif (typeof value !== 'number') {\n\t\t\tvalue = 0;\n\t\t}\n\t\twatchNumber(this, '_value', value, {\n\t\t\t// max: this._max, TODO as Function\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_variant')\n\tpublic validateVariant(value?: KoliBriProgressVariantType): void {\n\t\twatchValidator(this, '_variant', (value) => typeof value === 'string' && VALID_VARIANTS.includes(value), new Set(VALID_VARIANTS), value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateMax(this._max);\n\t\tthis.validateUnit(this._unit);\n\t\tthis.validateValue(this._value);\n\t\tthis.validateVariant(this._variant);\n\n\t\tthis.interval = setInterval(() => {\n\t\t\tif (this.state._liveValue !== this.state._value) {\n\t\t\t\tthis.state = {\n\t\t\t\t\t...this.state,\n\t\t\t\t\t_liveValue: this.state._value,\n\t\t\t\t};\n\t\t\t}\n\t\t}, 5000) as unknown as number;\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tclearInterval(this.interval);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-progress.entry.cjs.js","mappings":";;;;;;;;;;;;;;AAAA,IAAY,0BAKX;AALD,WAAY,0BAA0B;IACrC,yCAAa,CAAA;IACb,6CAAiB,CAAA;IACjB,qEAAyC,CAAA;IACzC,qEAAyC,CAAA;AAC1C,CAAC,EALW,0BAA0B,KAA1B,0BAA0B;;ACAtC,MAAM,eAAe,GAAG,ikJAAikJ;;ACOzlJ,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;AAG/D,MAAM,iBAAiB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AAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAEpC,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC;YAC3B,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;gBAChD,IAAI,CAAC,KAAK,mCACN,IAAI,CAAC,KAAK,KACb,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,GAC7B,CAAC;aACF;SACD,EAAE,IAAI,CAAsB,CAAC;KAC9B;IAEM,oBAAoB;QAC1B,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KAC7B;;;;;;;;;;;;;;;","names":["h","Host","validateLabel","watchNumber","watchString","watchValidator"],"sources":["src/types/progress.ts","src/components/progress/style.css?tag=kol-progress&mode=default&encapsulation=shadow","src/components/progress/component.tsx"],"sourcesContent":["export enum KoliBriProgressVariantEnum {\n\t'bar' = 'bar',\n\t'cycle' = 'cycle',\n\t'cycle-value-label' = 'cycle-value-label',\n\t'cycle-label-value' = 'cycle-label-value',\n}\n\nexport type KoliBriProgressVariantType = `${KoliBriProgressVariantEnum}`;\n","@import url(../style.css);\n@layer kol-component {\n\tprogress {\n\t\tdisplay: block;\n\t\theight: 0;\n\t\toverflow: hidden;\n\t\twidth: 0;\n\t}\n\n\t.bar .border {\n\t\tfill: transparent;\n\t\tstroke: black;\n\t}\n\n\t.bar .background {\n\t\tfill: lightgray;\n\t\tstroke: white;\n\t}\n\n\t.bar .progress {\n\t\tfill: #0075ff;\n\t\tstroke: transparent;\n\t\ttransition: 250ms ease-in-out 50ms;\n\t}\n\n\t.cycle .background {\n\t\tfill: transparent;\n\t\tstroke: lightgray;\n\t}\n\n\t.cycle .border {\n\t\tfill: transparent;\n\t\tstroke: black;\n\t}\n\n\t.cycle .whitespace {\n\t\tfill: transparent;\n\t\tstroke: white;\n\t}\n\n\t.cycle .progress {\n\t\tfill: transparent;\n\t\tstroke: #0075ff;\n\t\ttransform-origin: 50% 50%;\n\t\ttransform: rotate(-90deg);\n\t\ttransition: 250ms ease-in-out 50ms;\n\t}\n\n\t/* https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion */\n\t@media (prefers-reduced-motion) {\n\t\t.progress {\n\t\t\ttransition-duration: 0s;\n\t\t\ttransition-delay: 0s;\n\t\t}\n\t}\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { KoliBriProgressVariantEnum, KoliBriProgressVariantType } from '../../types/progress';\nimport { LabelPropType, validateLabel } from '../../types/props/label';\nimport { watchNumber, watchString, watchValidator } from '../../utils/prop.validators';\nimport { API, States } from './types';\n\nconst VALID_VARIANTS = Object.keys(KoliBriProgressVariantEnum);\n\n// https://css-tricks.com/html5-progress-element/\nconst createProgressSVG = (state: States): JSX.Element => {\n\tconst fullCircle = 342;\n\tconst textPositionTop = '43%';\n\tconst textPositionBottom = '57%';\n\n\tlet labelY = textPositionTop;\n\tlet valueY = state._label ? textPositionBottom : '50%';\n\tswitch (state._variant) {\n\t\tcase 'cycle-value-label':\n\t\t\tif (state._label) {\n\t\t\t\tlabelY = textPositionBottom;\n\t\t\t\tvalueY = textPositionTop;\n\t\t\t}\n\t\t// eslint-disable-next-line no-fallthrough\n\t\tcase 'cycle':\n\t\tcase 'cycle-label-value':\n\t\t\treturn (\n\t\t\t\t<svg class=\"cycle\" width=\"100\" viewBox=\"0 0 120 120\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t\t\t<circle class=\"background\" cx=\"60\" cy=\"60\" r=\"54.5\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"8\"></circle>\n\t\t\t\t\t<circle class=\"whitespace\" cx=\"60\" cy=\"60\" r=\"59\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"3\"></circle>\n\t\t\t\t\t<circle class=\"border\" cx=\"60\" cy=\"60\" r=\"59\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1\"></circle>\n\t\t\t\t\t<circle class=\"whitespace\" cx=\"60\" cy=\"60\" r=\"51\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1\"></circle>\n\t\t\t\t\t<circle class=\"border\" cx=\"60\" cy=\"60\" r=\"50\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1\"></circle>\n\t\t\t\t\t<circle\n\t\t\t\t\t\tclass=\"progress\"\n\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\t\tstroke-dasharray={`${Math.round((state._value / state._max) * fullCircle)}px ${fullCircle}px`}\n\t\t\t\t\t\tstroke-width=\"6\"\n\t\t\t\t\t\tcx=\"60\"\n\t\t\t\t\t\tcy=\"60\"\n\t\t\t\t\t\tr=\"54.5\"\n\t\t\t\t\t></circle>\n\t\t\t\t\t{state._label && (\n\t\t\t\t\t\t<text aria-hidden=\"true\" x=\"50%\" y={labelY} text-anchor=\"middle\" fill=\"currentColor\">\n\t\t\t\t\t\t\t{state._label}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t)}\n\t\t\t\t\t<text aria-hidden=\"true\" x=\"50%\" y={valueY} text-anchor=\"middle\" fill=\"currentColor\">\n\t\t\t\t\t\t{state._value}\n\t\t\t\t\t\t{state._unit}\n\t\t\t\t\t</text>\n\t\t\t\t</svg>\n\t\t\t);\n\t\tdefault:\n\t\t\treturn (\n\t\t\t\t<div class=\"bar\">\n\t\t\t\t\t{state._label && <div>{state._label}</div>}\n\t\t\t\t\t<div style={{ display: 'flex', gap: '0.3em' }}>\n\t\t\t\t\t\t<svg width=\"100\" viewBox=\"0 0 102 8\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t\t\t\t\t<rect class=\"background\" x=\"1\" y=\"1\" height=\"10\" rx=\"5\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"3\" width=\"100\"></rect>\n\t\t\t\t\t\t\t<rect\n\t\t\t\t\t\t\t\tclass=\"progress\"\n\t\t\t\t\t\t\t\tx=\"2.5\"\n\t\t\t\t\t\t\t\ty=\"2.5\"\n\t\t\t\t\t\t\t\theight=\"7\"\n\t\t\t\t\t\t\t\trx=\"3.5\"\n\t\t\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\t\t\tstroke-width=\"3\"\n\t\t\t\t\t\t\t\twidth={95 * (state._value / state._max)}\n\t\t\t\t\t\t\t></rect>\n\t\t\t\t\t\t\t<rect class=\"border\" x=\"1\" y=\"1\" height=\"10\" rx=\"5\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"1\" width=\"100\"></rect>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t<text aria-hidden=\"true\" text-anchor=\"middle\" dominant-baseline=\"central\" fill=\"currentColor\">\n\t\t\t\t\t\t\t{state._value}\n\t\t\t\t\t\t\t{state._unit}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t);\n\t}\n};\n\n@Component({\n\ttag: 'kol-progress',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolProcess implements API {\n\tprivate interval?: number;\n\n\t// https://dequeuniversity.com/library/aria/progress-bar-bounded\n\tpublic render(): JSX.Element {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t{createProgressSVG(this.state)}\n\t\t\t\t<progress aria-busy={this.state._value < this.state._max ? 'true' : 'false'} max={this.state._max} value={this.state._value}></progress>\n\t\t\t\t<span aria-live=\"polite\" aria-relevant=\"removals text\" hidden>\n\t\t\t\t\t{this.state._liveValue} von {this.state._max} {this.state._unit}\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label?: LabelPropType;\n\n\t/**\n\t * Defines at which value the progress display is completed.\n\t */\n\t@Prop() public _max!: number;\n\n\t/**\n\t * Defines the unit of the step values (not shown).\n\t */\n\t@Prop() public _unit?: string = '%';\n\n\t/**\n\t * Defines the progress.\n\t */\n\t@Prop() public _value!: number;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: KoliBriProgressVariantType;\n\n\t@State() public state: States = {\n\t\t_max: 100,\n\t\t_unit: '%',\n\t\t_value: 0,\n\t\t_variant: 'bar',\n\t\t_liveValue: 0,\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t}\n\n\t@Watch('_max')\n\tpublic validateMax(value?: number): void {\n\t\tif (typeof value !== 'number') {\n\t\t\tvalue = 100;\n\t\t}\n\t\twatchNumber(this, '_max', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_unit')\n\tpublic validateUnit(value?: string): void {\n\t\twatchString(this, '_unit', value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: number): void {\n\t\tif (typeof value !== 'number') {\n\t\t\tvalue = 0;\n\t\t}\n\t\twatchNumber(this, '_value', value, {\n\t\t\t// max: this._max, TODO as Function\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_variant')\n\tpublic validateVariant(value?: KoliBriProgressVariantType): void {\n\t\twatchValidator(this, '_variant', (value) => typeof value === 'string' && VALID_VARIANTS.includes(value), new Set(VALID_VARIANTS), value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateMax(this._max);\n\t\tthis.validateUnit(this._unit);\n\t\tthis.validateValue(this._value);\n\t\tthis.validateVariant(this._variant);\n\n\t\tthis.interval = setInterval(() => {\n\t\t\tif (this.state._liveValue !== this.state._value) {\n\t\t\t\tthis.state = {\n\t\t\t\t\t...this.state,\n\t\t\t\t\t_liveValue: this.state._value,\n\t\t\t\t};\n\t\t\t}\n\t\t}, 5000) as unknown as number;\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tclearInterval(this.interval);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-d310c51c.js"),label=require("./label-a9e9ea83.js"),prop_validators=require("./prop.validators-4653485a.js"),reuse=require("./reuse-786396d6.js");require("./a11y.tipps-c9682dc9.js"),require("./dev.utils-80099077.js");const koliBriQuoteVariantOptions=["block","inline"],defaultStyleCss="@layer kol-global {\n\t/*\n\t * This file contains all rules for accessibility.\n\t */\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\tfont-size: inherit;\n\t}\n\n\t* {\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* font-family is NOT inherited all HTML elements. */\n\tbutton,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\tfont-family: inherit;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\tcite,\n\tfigure,\n\tq + figcaption {\n\t\tdisplay: inline;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\tblockquote:before {\n\t\tcontent: open-quote;\n\t}\n\n\tblockquote::after {\n\t\tcontent: close-quote;\n\t}\n\n\tcite:before {\n\t\tcontent: '—';\n\t}\n\n\t.block cite:before {\n\t\tpadding-right: 0.5em;\n\t}\n\n\t.inline cite:before {\n\t\tpadding: 0.5em;\n\t}\n}\n",KolQuote=class{constructor(t){index.registerInstance(this,t),this._label=void 0,this._href=void 0,this._quote=void 0,this._variant="inline",this.state={_href:"…",_quote:"…",_variant:"inline"}}validateLabel(t){label.validateLabel(this,t)}validateHref(t){prop_validators.watchString(this,"_href",t,{required:!0})}validateQuote(t){prop_validators.watchString(this,"_quote",t,{required:!0})}validateVariant(t){prop_validators.watchValidator(this,"_variant",(t=>"string"==typeof t&&koliBriQuoteVariantOptions.includes(t)),new Set(koliBriQuoteVariantOptions),t)}componentWillLoad(){this.validateHref(this._href),this.validateLabel(this._label),this.validateQuote(this._quote),this.validateVariant(this._variant)}render(){const t=reuse.showExpertSlot(this.state._quote);return index.h(index.Host,null,index.h("figure",{class:{[this.state._variant]:!0}},"block"===this.state._variant?index.h("blockquote",{cite:this.state._href},this.state._quote,index.h("span",{"aria-hidden":t?void 0:"true",hidden:!t},index.h("slot",{name:"expert"}))):index.h("q",{cite:this.state._href},this.state._quote,index.h("span",{"aria-hidden":t?void 0:"true",hidden:!t},index.h("slot",{name:"expert"}))),"string"==typeof this.state._label&&this.state._label.length>0&&index.h("figcaption",null,index.h("cite",null,index.h("kol-link",{_href:this.state._href,_label:this.state._label,_target:"_blank"})))))}static get watchers(){return{_label:["validateLabel"],_href:["validateHref"],_quote:["validateQuote"],_variant:["validateVariant"]}}};KolQuote.style={default:defaultStyleCss},exports.kol_quote=KolQuote;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-a2400b65.js"),label=require("./label-de5ebf4b.js"),prop_validators=require("./prop.validators-5f352bbf.js"),reuse=require("./reuse-a4c8450e.js");require("./a11y.tipps-3cff218a.js"),require("./dev.utils-dd53475e.js");const koliBriQuoteVariantOptions=["block","inline"],defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\tcite,\n\tfigure,\n\tq + figcaption {\n\t\tdisplay: inline;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\tblockquote:before {\n\t\tcontent: open-quote;\n\t}\n\n\tblockquote::after {\n\t\tcontent: close-quote;\n\t}\n\n\tcite:before {\n\t\tcontent: '—';\n\t}\n\n\t.block cite:before {\n\t\tpadding-right: 0.5em;\n\t}\n\n\t.inline cite:before {\n\t\tpadding: 0.5em;\n\t}\n}\n",KolQuote=class{constructor(t){index.registerInstance(this,t),this._label=void 0,this._href=void 0,this._quote=void 0,this._variant="inline",this.state={_href:"…",_quote:"…",_variant:"inline"}}validateLabel(t){label.validateLabel(this,t)}validateHref(t){prop_validators.watchString(this,"_href",t,{required:!0})}validateQuote(t){prop_validators.watchString(this,"_quote",t,{required:!0})}validateVariant(t){prop_validators.watchValidator(this,"_variant",(t=>"string"==typeof t&&koliBriQuoteVariantOptions.includes(t)),new Set(koliBriQuoteVariantOptions),t)}componentWillLoad(){this.validateHref(this._href),this.validateLabel(this._label),this.validateQuote(this._quote),this.validateVariant(this._variant)}render(){const t=reuse.showExpertSlot(this.state._quote);return index.h(index.Host,null,index.h("figure",{class:{[this.state._variant]:!0}},"block"===this.state._variant?index.h("blockquote",{cite:this.state._href},this.state._quote,index.h("span",{"aria-hidden":t?void 0:"true",hidden:!t},index.h("slot",{name:"expert"}))):index.h("q",{cite:this.state._href},this.state._quote,index.h("span",{"aria-hidden":t?void 0:"true",hidden:!t},index.h("slot",{name:"expert"}))),"string"==typeof this.state._label&&this.state._label.length>0&&index.h("figcaption",null,index.h("cite",null,index.h("kol-link",{_href:this.state._href,_label:this.state._label,_target:"_blank"})))))}static get watchers(){return{_label:["validateLabel"],_href:["validateHref"],_quote:["validateQuote"],_variant:["validateVariant"]}}};KolQuote.style={default:defaultStyleCss},exports.kol_quote=KolQuote;
@@ -1 +1 @@
1
- {"file":"kol-quote.entry.cjs.js","mappings":";;;;;;;;;;;;;;AAKO,MAAM,0BAA0B,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAU;;ACLtE,MAAM,eAAe,GAAG,0yGAA0yG;;MCerzG,QAAQ;;;;;;oBAmB4B,QAAQ;iBAExB;MAC/B,KAAK,EAAE,GAAG;MACV,MAAM,EAAE,GAAG;MACX,QAAQ,EAAE,QAAQ;KAClB;;EAGM,aAAa,CAAC,KAAqB;IACzCA,mBAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;GAC3B;EAGM,YAAY,CAAC,KAAoB;IACvCC,2BAAW,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE;MACjC,QAAQ,EAAE,IAAI;KACd,CAAC,CAAC;GACH;EAGM,aAAa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MAAM,EAAE,CAAC,aAAa,IAC7EA,kBAAM,IAAI,EAAC,QAAQ,GAAG,CAChB,CACJ,CACJ,EACA,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,KACrEA,4BACCA,sBACCA,sBAAU,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,EAAC,QAAQ,GAAG,CAC3E,CACK,CACb,CACO,CACH,EACN;GACF;;;;;;;;;;;;;;","names":["validateLabel","watchString","watchValidator","showExpertSlot","h","Host"],"sources":["src/components/quote/types.ts","src/components/quote/style.css?tag=kol-quote&mode=default&encapsulation=shadow","src/components/quote/shadow.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { PropHref } from '../../types/props/href';\nimport { PropLabel } from '../../types/props/label';\n\nexport const koliBriQuoteVariantOptions = ['block', 'inline'] as const;\nexport type KoliBriQuoteVariant = (typeof koliBriQuoteVariantOptions)[number];\n\ntype RequiredProps = {\n\tquote: string;\n} & PropHref; // URL to the source of the quote (cite)\ntype OptionalProps = {\n\tvariant: KoliBriQuoteVariant;\n} & PropLabel;\nexport type Props = Generic.Element.Members<RequiredProps, OptionalProps>;\n\ntype RequiredStates = {\n\tquote: string;\n\tvariant: KoliBriQuoteVariant;\n} & PropHref; // URL to the source of the quote (cite)\ntype OptionalStates = PropLabel;\nexport type States = Generic.Element.Members<RequiredStates, OptionalStates>;\n\nexport type API = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>;\n","@import url(../style.css);\n@layer kol-component {\n\tcite,\n\tfigure,\n\tq + figcaption {\n\t\tdisplay: inline;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\tblockquote:before {\n\t\tcontent: open-quote;\n\t}\n\n\tblockquote::after {\n\t\tcontent: close-quote;\n\t}\n\n\tcite:before {\n\t\tcontent: '—';\n\t}\n\n\t.block cite:before {\n\t\tpadding-right: 0.5em;\n\t}\n\n\t.inline cite:before {\n\t\tpadding: 0.5em;\n\t}\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { HrefPropType } from '../../types/props/href';\nimport { LabelPropType, validateLabel } from '../../types/props/label';\nimport { watchString, watchValidator } from '../../utils/prop.validators';\nimport { showExpertSlot } from '../../utils/reuse';\nimport { API, KoliBriQuoteVariant, koliBriQuoteVariantOptions, States } from './types';\n\n@Component({\n\ttag: 'kol-quote',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolQuote implements API {\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label?: string;\n\n\t/**\n\t * Sets the target URI of the link or citation source.\n\t */\n\t@Prop() public _href!: HrefPropType;\n\n\t/**\n\t * Defines the text of the quote.\n\t */\n\t@Prop() public _quote!: string;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: KoliBriQuoteVariant = 'inline';\n\n\t@State() public state: States = {\n\t\t_href: '…', // ⚠ required\n\t\t_quote: '…', // ⚠ required\n\t\t_variant: 'inline',\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t}\n\n\t@Watch('_href')\n\tpublic validateHref(value?: HrefPropType): void {\n\t\twatchString(this, '_href', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_quote')\n\tpublic validateQuote(value?: string): void {\n\t\twatchString(this, '_quote', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_variant')\n\tpublic validateVariant(value?: KoliBriQuoteVariant): void {\n\t\twatchValidator(\n\t\t\tthis,\n\t\t\t'_variant',\n\t\t\t(value) => typeof value === 'string' && koliBriQuoteVariantOptions.includes(value),\n\t\t\tnew Set(koliBriQuoteVariantOptions),\n\t\t\tvalue\n\t\t);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateHref(this._href);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateQuote(this._quote);\n\t\tthis.validateVariant(this._variant);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst hasExpertSlot = showExpertSlot(this.state._quote); // _quote instead of _caption as _label\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<figure\n\t\t\t\t\tclass={{\n\t\t\t\t\t\t[this.state._variant]: true,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{this.state._variant === 'block' ? (\n\t\t\t\t\t\t<blockquote cite={this.state._href}>\n\t\t\t\t\t\t\t{this.state._quote}\n\t\t\t\t\t\t\t<span aria-hidden={!hasExpertSlot ? 'true' : undefined} hidden={!hasExpertSlot}>\n\t\t\t\t\t\t\t\t<slot name=\"expert\" />\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</blockquote>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<q cite={this.state._href}>\n\t\t\t\t\t\t\t{this.state._quote}\n\t\t\t\t\t\t\t<span aria-hidden={!hasExpertSlot ? 'true' : undefined} hidden={!hasExpertSlot}>\n\t\t\t\t\t\t\t\t<slot name=\"expert\" />\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</q>\n\t\t\t\t\t)}\n\t\t\t\t\t{typeof this.state._label === 'string' && this.state._label.length > 0 && (\n\t\t\t\t\t\t<figcaption>\n\t\t\t\t\t\t\t<cite>\n\t\t\t\t\t\t\t\t<kol-link _href={this.state._href} _label={this.state._label} _target=\"_blank\" />\n\t\t\t\t\t\t\t</cite>\n\t\t\t\t\t\t</figcaption>\n\t\t\t\t\t)}\n\t\t\t\t</figure>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"kol-quote.entry.cjs.js","mappings":";;;;;;;;;;;;;;AAKO,MAAM,0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AC3B,IAEA,IAAI,CAAC,KAAK,CAAC,QAAQ,KAAK,OAAO,IAC/BA,wBAAY,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,IAChC,IAAI,CAAC,KAAK,CAAC,MAAM,EAClBA,iCAAmB,CAAC,aAAa,GAAG,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,CAAC,aAAa,IAC7EA,kBAAM,IAAI,EAAC,QAAQ,GAAG,CAChB,CACK,KAEbA,eAAG,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,IACvB,IAAI,CAAC,KAAK,CAAC,MAAM,EAClBA,iCAAmB,CAAC,aAAa,GAAG,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,CAAC,aAAa,IAC7EA,kBAAM,IAAI,EAAC,QAAQ,GAAG,CAChB,CACJ,CACJ,EACA,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,KACrEA,4BACCA,sBACCA,sBAAU,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,EAAC,QAAQ,GAAG,CAC3E,CACK,CACb,CACO,CACH,EACN;KACF;;;;;;;;;;;;;;","names":["validateLabel","watchString","watchValidator","showExpertSlot","h","Host"],"sources":["src/components/quote/types.ts","src/components/quote/style.css?tag=kol-quote&mode=default&encapsulation=shadow","src/components/quote/shadow.tsx"],"sourcesContent":["import { Generic } from '@a11y-ui/core';\n\nimport { PropHref } from '../../types/props/href';\nimport { PropLabel } from '../../types/props/label';\n\nexport const koliBriQuoteVariantOptions = ['block', 'inline'] as const;\nexport type KoliBriQuoteVariant = (typeof koliBriQuoteVariantOptions)[number];\n\ntype RequiredProps = {\n\tquote: string;\n} & PropHref; // URL to the source of the quote (cite)\ntype OptionalProps = {\n\tvariant: KoliBriQuoteVariant;\n} & PropLabel;\nexport type Props = Generic.Element.Members<RequiredProps, OptionalProps>;\n\ntype RequiredStates = {\n\tquote: string;\n\tvariant: KoliBriQuoteVariant;\n} & PropHref; // URL to the source of the quote (cite)\ntype OptionalStates = PropLabel;\nexport type States = Generic.Element.Members<RequiredStates, OptionalStates>;\n\nexport type API = Generic.Element.ComponentApi<RequiredProps, OptionalProps, RequiredStates, OptionalStates>;\n","@import url(../style.css);\n@layer kol-component {\n\tcite,\n\tfigure,\n\tq + figcaption {\n\t\tdisplay: inline;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\tblockquote:before {\n\t\tcontent: open-quote;\n\t}\n\n\tblockquote::after {\n\t\tcontent: close-quote;\n\t}\n\n\tcite:before {\n\t\tcontent: '—';\n\t}\n\n\t.block cite:before {\n\t\tpadding-right: 0.5em;\n\t}\n\n\t.inline cite:before {\n\t\tpadding: 0.5em;\n\t}\n}\n","import { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { HrefPropType } from '../../types/props/href';\nimport { LabelPropType, validateLabel } from '../../types/props/label';\nimport { watchString, watchValidator } from '../../utils/prop.validators';\nimport { showExpertSlot } from '../../utils/reuse';\nimport { API, KoliBriQuoteVariant, koliBriQuoteVariantOptions, States } from './types';\n\n@Component({\n\ttag: 'kol-quote',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolQuote implements API {\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).\n\t */\n\t@Prop() public _label?: string;\n\n\t/**\n\t * Sets the target URI of the link or citation source.\n\t */\n\t@Prop() public _href!: HrefPropType;\n\n\t/**\n\t * Defines the text of the quote.\n\t */\n\t@Prop() public _quote!: string;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: KoliBriQuoteVariant = 'inline';\n\n\t@State() public state: States = {\n\t\t_href: '…', // ⚠ required\n\t\t_quote: '…', // ⚠ required\n\t\t_variant: 'inline',\n\t};\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelPropType): void {\n\t\tvalidateLabel(this, value);\n\t}\n\n\t@Watch('_href')\n\tpublic validateHref(value?: HrefPropType): void {\n\t\twatchString(this, '_href', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_quote')\n\tpublic validateQuote(value?: string): void {\n\t\twatchString(this, '_quote', value, {\n\t\t\trequired: true,\n\t\t});\n\t}\n\n\t@Watch('_variant')\n\tpublic validateVariant(value?: KoliBriQuoteVariant): void {\n\t\twatchValidator(\n\t\t\tthis,\n\t\t\t'_variant',\n\t\t\t(value) => typeof value === 'string' && koliBriQuoteVariantOptions.includes(value),\n\t\t\tnew Set(koliBriQuoteVariantOptions),\n\t\t\tvalue\n\t\t);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateHref(this._href);\n\t\tthis.validateLabel(this._label);\n\t\tthis.validateQuote(this._quote);\n\t\tthis.validateVariant(this._variant);\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst hasExpertSlot = showExpertSlot(this.state._quote); // _quote instead of _caption as _label\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<figure\n\t\t\t\t\tclass={{\n\t\t\t\t\t\t[this.state._variant]: true,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{this.state._variant === 'block' ? (\n\t\t\t\t\t\t<blockquote cite={this.state._href}>\n\t\t\t\t\t\t\t{this.state._quote}\n\t\t\t\t\t\t\t<span aria-hidden={!hasExpertSlot ? 'true' : undefined} hidden={!hasExpertSlot}>\n\t\t\t\t\t\t\t\t<slot name=\"expert\" />\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</blockquote>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<q cite={this.state._href}>\n\t\t\t\t\t\t\t{this.state._quote}\n\t\t\t\t\t\t\t<span aria-hidden={!hasExpertSlot ? 'true' : undefined} hidden={!hasExpertSlot}>\n\t\t\t\t\t\t\t\t<slot name=\"expert\" />\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</q>\n\t\t\t\t\t)}\n\t\t\t\t\t{typeof this.state._label === 'string' && this.state._label.length > 0 && (\n\t\t\t\t\t\t<figcaption>\n\t\t\t\t\t\t\t<cite>\n\t\t\t\t\t\t\t\t<kol-link _href={this.state._href} _label={this.state._label} _target=\"_blank\" />\n\t\t\t\t\t\t\t</cite>\n\t\t\t\t\t\t</figcaption>\n\t\t\t\t\t)}\n\t\t\t\t</figure>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-d310c51c.js"),dev_utils=require("./dev.utils-80099077.js"),events=require("./events-a0c291ce.js"),reuse=require("./reuse-786396d6.js"),controller$1=require("./controller-5a6a89c4.js"),InternalUnderlinedAccessKey=require("./InternalUnderlinedAccessKey-2c4875d5.js"),controller=require("./controller-62e7f4d4.js"),rows=require("./rows-78a948f1.js"),a11y_tipps=require("./a11y.tipps-c9682dc9.js"),prop_validators=require("./prop.validators-4653485a.js"),controllerIcon=require("./controller-icon-8b602e6a.js");require("./hide-label-63295094.js"),require("./label-a9e9ea83.js"),require("./tab-index-c327027d.js"),require("./associated.controller-e37fdad4.js"),require("./icons-26b30637.js");class SelectController extends controllerIcon.InputIconController{constructor(t,e,n){super(t,e,n),this.keyOptionMap=new Map,this.getOptionByKey=t=>this.keyOptionMap.get(t),this.isValueInOptions=(t,e)=>void 0!==e.find((e=>"string"==typeof e.value?e.value===t:!!Array.isArray(e.options)&&this.isValueInOptions(t,e.options))),this.filterValuesInOptions=(t,e)=>t.filter((t=>void 0!==this.isValueInOptions(t,e))),this.beforePatchOptions=(t,e)=>{const n=e.has("_options")?e.get("_options"):this.component.state._options;if(Array.isArray(n)&&n.length>0){this.keyOptionMap.clear(),controller.fillKeyOptionMap(this.keyOptionMap,n);const t=e.has("_value")?e.get("_value"):this.component.state._value,i=this.filterValuesInOptions(Array.isArray(t)&&t.length>0?t:[],n);!1===this.component._multiple&&0===i.length?(e.set("_value",[n[0].value]),this.onStateChange()):Array.isArray(t)&&i.length<t.length&&(e.set("_value",i),this.onStateChange())}},this.component=t}validateHideError(t){controller$1.validateHideError(this.component,t,{hooks:{afterPatch:()=>{this.component.state._hideError&&a11y_tipps.a11yHint("Property hide-error for inputs: Only use when the error message is shown outside of the input component.")}}})}validateOptions(t){controller.validateOptionsWithOptgroup(this.component,t,{hooks:{beforePatch:this.beforePatchOptions}})}validateMultiple(t){prop_validators.watchBoolean(this.component,"_multiple",t,{hooks:{beforePatch:this.beforePatchOptions}})}validateRequired(t){prop_validators.watchBoolean(this.component,"_required",t)}validateRows(t){rows.validateRows(this.component,t)}validateValue(t){prop_validators.watchJsonArrayString(this.component,"_value",(()=>!0),t,void 0,{hooks:{beforePatch:this.beforePatchOptions}}),this.setFormAssociatedValue(this.component._value)}componentWillLoad(t){super.componentWillLoad(),this.onStateChange=()=>{if("function"==typeof t){const e=setTimeout((()=>{clearTimeout(e),t(reuse.STATE_CHANGE_EVENT)}))}},this.validateHideError(this.component._hideError),this.validateOptions(this.component._options),this.validateMultiple(this.component._multiple),this.validateRequired(this.component._required),this.validateRows(this.component._rows),this.validateValue(this.component._value)}}const defaultStyleCss="@layer kol-global {\n\t/*\n\t * This file contains all rules for accessibility.\n\t */\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\tfont-size: inherit;\n\t}\n\n\t* {\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* font-family is NOT inherited all HTML elements. */\n\tbutton,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\tfont-family: inherit;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t.required label > span::after,\n\t.required legend > span::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: block;\n\t}\n}\n\n@layer kol-component {\n\tinput,\n\ttextarea {\n\t\tcursor: text;\n\t}\n\n\tinput[type='checkbox'],\n\tinput[type='color'],\n\tinput[type='file'],\n\tinput[type='radio'],\n\tinput[type='range'],\n\tlabel,\n\toption,\n\tselect {\n\t\tcursor: pointer;\n\t}\n\n\t/* input[type='checkbox'], */\n\t/* input[type='radio'], */\n\t/* input[type='range'], */\n\tinput[type='color'],\n\tinput[type='date'],\n\tinput[type='datetime-local'],\n\tinput[type='email'],\n\tinput[type='file'],\n\tinput[type='month'],\n\tinput[type='number'],\n\tinput[type='password'],\n\tinput[type='search'],\n\tinput[type='tel'],\n\tinput[type='text'],\n\tinput[type='time'],\n\tinput[type='url'],\n\tinput[type='week'],\n\tselect,\n\tselect[multiple] option,\n\ttextarea {\n\t\tfont-size: 1rem;\n\t\twidth: 100%;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tinput[type='file'] {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 10) 0.5em;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tselect[multiple] option {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 2) 0.5em;\n\t}\n\n\tkol-input.disabled :is(button, input, label, option, select, textarea) {\n\t\tcursor: not-allowed;\n\t\topacity: 0.5;\n\t}\n}\n\n@layer kol-component {\n\tkol-input {\n\t\tdisplay: grid;\n\t}\n\n\tkol-input .input-slot {\n\t\tflex-grow: 1;\n\t}\n\n\tinput:not([type='checkbox'], [type='radio']),\n\tselect:not([multiple], [size]) {\n\t\theight: 2.75em;\n\t}\n\n\tinput:focus,\n\toption:focus,\n\tselect:focus,\n\ttextarea:focus {\n\t\toutline: 0;\n\t}\n\n\t.input {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\n\t.input > kol-icon {\n\t\tdisplay: grid;\n\t\theight: var(--a11y-min-size);\n\t\tplace-items: center;\n\t}\n\n\tkol-input.required .input-tooltip .span-label::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\t.error.hidden {\n\t\tdisplay: none;\n\t}\n}\n",isSelected=(t,e)=>Array.isArray(t)&&t.includes(e),KolSelect=class{renderOptgroup(t,e){var n;return index.h("optgroup",{disabled:t.disabled,label:t.label},null===(n=t.options)||void 0===n?void 0:n.map(((t,n)=>{const i=`${e}-${n}`;return Array.isArray(t.options)?this.renderOptgroup(t,i):index.h("option",{disabled:t.disabled,key:i,selected:isSelected(this.state._value,t.value),value:i},t.label)})))}render(){const{ariaDescribedBy:t}=controller$1.getRenderStates(this.state),e=reuse.showExpertSlot(this.state._label);return index.h(index.Host,{class:{"has-value":this.state._hasValue}},index.h("kol-input",{class:{"hide-label":!!this.state._hideLabel,select:!0},_accessKey:this.state._accessKey,_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_required:this.state._required,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched,onClick:()=>{var t;return null===(t=this.ref)||void 0===t?void 0:t.focus()}},index.h("span",{slot:"label"},e?index.h("slot",{name:"expert"}):"string"==typeof this.state._accessKey?index.h(index.Fragment,null,index.h(InternalUnderlinedAccessKey.InternalUnderlinedAccessKey,{accessKey:this.state._accessKey,label:this.state._label})," ",index.h("span",{class:"access-key-hint","aria-hidden":"true"},this.state._accessKey)):index.h("span",null,this.state._label)),index.h("div",{slot:"input"},index.h("select",{ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":t.length>0?t.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,multiple:this.state._multiple,name:this.state._name,required:this.state._required,size:this.state._rows,spellcheck:"false",onClick:this.controller.onFacade.onClick,onBlur:this.controller.onFacade.onBlur,onFocus:this.controller.onFacade.onFocus,onChange:this.onChange},this.state._options.map(((t,e)=>{const n=`-${e}`;return Array.isArray(t.options)?this.renderOptgroup(t,n):index.h("option",{disabled:t.disabled,key:n,selected:isSelected(this.state._value,t.value),value:n},t.label)}))))))}constructor(t){index.registerInstance(this,t),this.catchRef=t=>{this.ref=t,reuse.propagateFocus(this.host,this.ref)},this.onChange=t=>{var e,n;this._value=Array.from((null===(e=this.ref)||void 0===e?void 0:e.options)||[]).filter((t=>!0===t.selected)).map((t=>{var e;return null===(e=this.controller.getOptionByKey(t.value))||void 0===e?void 0:e.value})),events.stopPropagation(t),events.tryToDispatchKoliBriEvent("change",this.host,this._value),this.controller.setFormAssociatedValue(this._value),"function"==typeof(null===(n=this.state._on)||void 0===n?void 0:n.onChange)&&this.state._on.onChange(t,this._value)},this._accessKey=void 0,this._alert=!0,this._disabled=!1,this._error=void 0,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._id=void 0,this._label=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._options=void 0,this._required=!1,this._rows=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_hasValue:!1,_hideError:!1,_id:`id-${dev_utils.nonce()}`,_label:"",_multiple:!1,_options:[],_value:[]},this.controller=new SelectController(this,"select",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateMultiple(t){this.controller.validateMultiple(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateOptions(t){this.controller.validateOptions(t)}validateRequired(t){this.controller.validateRequired(t)}validateRows(t){this.controller.validateRows(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(this.onChange),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return index.getElement(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_options:["validateOptions"],_required:["validateRequired"],_rows:["validateRows"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};KolSelect.style={default:defaultStyleCss},exports.kol_select=KolSelect;
4
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const index=require("./index-a2400b65.js"),dev_utils=require("./dev.utils-dd53475e.js"),events=require("./events-e348a615.js"),reuse=require("./reuse-a4c8450e.js"),controller$1=require("./controller-b237a488.js"),InternalUnderlinedAccessKey=require("./InternalUnderlinedAccessKey-13d98585.js"),controller=require("./controller-d5f2264d.js"),rows=require("./rows-4798c8ee.js"),prop_validators=require("./prop.validators-5f352bbf.js"),controllerIcon=require("./controller-icon-7021badf.js");require("./hide-label-c4baa68a.js"),require("./label-de5ebf4b.js"),require("./a11y.tipps-3cff218a.js"),require("./tab-index-1cc9cecb.js"),require("./associated.controller-66de4b43.js"),require("./icons-20f8bfb5.js");class SelectController extends controllerIcon.InputIconController{constructor(t,e,n){super(t,e,n),this.keyOptionMap=new Map,this.getOptionByKey=t=>this.keyOptionMap.get(t),this.isValueInOptions=(t,e)=>void 0!==e.find((e=>"string"==typeof e.value?e.value===t:!!Array.isArray(e.options)&&this.isValueInOptions(t,e.options))),this.filterValuesInOptions=(t,e)=>t.filter((t=>void 0!==this.isValueInOptions(t,e))),this.beforePatchOptions=(t,e)=>{const n=e.has("_options")?e.get("_options"):this.component.state._options;if(Array.isArray(n)&&n.length>0){this.keyOptionMap.clear(),controller.fillKeyOptionMap(this.keyOptionMap,n);const t=e.has("_value")?e.get("_value"):this.component.state._value,i=this.filterValuesInOptions(Array.isArray(t)&&t.length>0?t:[],n);!1===this.component._multiple&&0===i.length?(e.set("_value",[n[0].value]),this.onStateChange()):Array.isArray(t)&&i.length<t.length&&(e.set("_value",i),this.onStateChange())}},this.component=t}validateOptions(t){controller.validateOptionsWithOptgroup(this.component,t,{hooks:{beforePatch:this.beforePatchOptions}})}validateMultiple(t){prop_validators.watchBoolean(this.component,"_multiple",t,{hooks:{beforePatch:this.beforePatchOptions}})}validateRequired(t){prop_validators.watchBoolean(this.component,"_required",t)}validateRows(t){rows.validateRows(this.component,t)}validateValue(t){prop_validators.watchJsonArrayString(this.component,"_value",(()=>!0),t,void 0,{hooks:{beforePatch:this.beforePatchOptions}}),this.setFormAssociatedValue(this.component._value)}componentWillLoad(t){super.componentWillLoad(),this.onStateChange=()=>{if("function"==typeof t){const e=setTimeout((()=>{clearTimeout(e),t(reuse.STATE_CHANGE_EVENT)}))}},this.validateOptions(this.component._options),this.validateMultiple(this.component._multiple),this.validateRequired(this.component._required),this.validateRows(this.component._rows),this.validateValue(this.component._value)}}const defaultStyleCss="/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * Minimum size of interactive elements.\n\t\t */\n\t\t--a11y-min-size: 44px;\n\t\t/*\n\t\t * No element should be used without a background and font color whose contrast ratio has\n\t\t * not been checked. By initially setting the background color to white and the font color\n\t\t * to black, the contrast ratio is ensured and explicit adjustment is forced.\n\t\t */\n\t\tbackground-color: white;\n\t\tcolor: black;\n\t\t/*\n\t\t * Verdana is an accessible font that can be used without requiring additional loading time.\n\t\t */\n\t\tfont-family: Verdana;\n\t}\n\n\t* {\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\thyphens: auto;\n\t\t/*\n\t\t * Letter spacing is required for all texts.\n\t\t */\n\t\tletter-spacing: inherit;\n\t\t/*\n\t\t * This rule enables the word dividing for all texts. That is important for high zoom levels.\n\t\t */\n\t\tword-break: break-word;\n\t\t/*\n\t\t * Word spacing is required for all texts.\n\t\t */\n\t\tword-spacing: inherit;\n\t}\n\n\t/*\n\t * All interactive elements should have a minimum size of 44px.\n\t */\n\t/* input:not([type='checkbox'], [type='radio'], [type='range']), */\n\t/* option, */\n\t/* select, */\n\t/* textarea, */\n\t[role='button'],\n\tbutton:not([role='link']),\n\tkol-input .input {\n\t\tmin-height: var(--a11y-min-size);\n\t\tmin-width: var(--a11y-min-size);\n\t}\n\n\t/*\n\t * Some interactive elements should not inherit the font-family and font-size.\n\t */\n\ta,\n\tbutton,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tinput,\n\toption,\n\tselect,\n\ttextarea {\n\t\t/*\n\t\t * All elements should inherit the font family from his parent element.\n\t\t */\n\t\tfont-family: inherit;\n\t\t/*\n\t\t * All elements should inherit the font size from his parent element.\n\t\t */\n\t\tfont-size: inherit;\n\t}\n}\n\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n\tclip: rect(0 0 0 0);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tposition: absolute;\n\twhite-space: nowrap;\n\twidth: 1px;\n}\n\n@layer kol-global {\n\t/*\n\t * Dieses CSS stellt sicher, dass der Standard-Style\n\t * von A und Button resettet werden.\n\t */\n\t:is(a, button) {\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\twidth: 100%; /* 100% needed for custom width from outside */\n\t}\n\n\t/*\n\t * Ensure elements with hidden attribute to be actually not visible\n\t * @see https://meowni.ca/hidden.is.a.lie.html\n\t */\n\t[hidden] {\n\t\tdisplay: none !important;\n\t}\n}\n\n@layer kol-global {\n\t:host {\n\t\t/*\n\t\t * The max-width is needed to prevent the table from overflowing the\n\t\t * parent node, if the table is wider than the parent node.\n\t\t */\n\t\tmax-width: 100%;\n\t}\n\n\t* {\n\t\t/*\n\t\t * We prefer to box-sizing: border-box for all elements.\n\t\t */\n\t\tbox-sizing: border-box;\n\t}\n\n\t/* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n\tkol-span-wc {\n\t\tdisplay: grid;\n\t\tplace-items: center;\n\t}\n\n\t/* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n\tkol-span-wc > span {\n\t\tdisplay: flex;\n\t\tplace-items: center;\n\t}\n\n\ta,\n\tbutton {\n\t\tcursor: pointer;\n\t}\n\n\t/* This is the text label. */\n\t.icon-only > kol-span-wc > span > span {\n\t\tdisplay: none;\n\t}\n}\n\n@layer kol-component {\n\t.required label > span::after,\n\t.required legend > span::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\t:host {\n\t\tdisplay: block;\n\t}\n}\n\n@layer kol-component {\n\tinput,\n\ttextarea {\n\t\tcursor: text;\n\t}\n\n\tinput[type='checkbox'],\n\tinput[type='color'],\n\tinput[type='file'],\n\tinput[type='radio'],\n\tinput[type='range'],\n\tlabel,\n\toption,\n\tselect {\n\t\tcursor: pointer;\n\t}\n\n\t/* input[type='checkbox'], */\n\t/* input[type='radio'], */\n\t/* input[type='range'], */\n\tinput[type='color'],\n\tinput[type='date'],\n\tinput[type='datetime-local'],\n\tinput[type='email'],\n\tinput[type='file'],\n\tinput[type='month'],\n\tinput[type='number'],\n\tinput[type='password'],\n\tinput[type='search'],\n\tinput[type='tel'],\n\tinput[type='text'],\n\tinput[type='time'],\n\tinput[type='url'],\n\tinput[type='week'],\n\tselect,\n\tselect[multiple] option,\n\ttextarea {\n\t\tfont-size: 1rem;\n\t\twidth: 100%;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tinput[type='file'] {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 10) 0.5em;\n\t}\n\n\t/* needed hack for vertical alignment */\n\tselect[multiple] option {\n\t\tpadding: calc((var(--a11y-min-size) - 1rem) / 2) 0.5em;\n\t}\n\n\tkol-input.disabled :is(button, input, option, select, textarea, .input-label) {\n\t\tcursor: not-allowed;\n\t\topacity: 0.5;\n\t}\n}\n\n@layer kol-component {\n\tkol-input {\n\t\tdisplay: grid;\n\t}\n\n\tkol-input .input-slot {\n\t\tflex-grow: 1;\n\t}\n\n\tinput:not([type='checkbox'], [type='radio']),\n\tselect:not([multiple], [size]) {\n\t\theight: 2.75em;\n\t}\n\n\tinput:focus,\n\toption:focus,\n\tselect:focus,\n\ttextarea:focus {\n\t\toutline: 0;\n\t}\n\n\t.input {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\n\t.input > kol-icon {\n\t\tdisplay: grid;\n\t\theight: var(--a11y-min-size);\n\t\tplace-items: center;\n\t}\n\n\tkol-input.required .input-tooltip .span-label::after {\n\t\tcontent: '*';\n\t}\n}\n\n@layer kol-component {\n\t.error.hidden {\n\t\tdisplay: none;\n\t}\n}\n",isSelected=(t,e)=>Array.isArray(t)&&t.includes(e),KolSelect=class{async getValue(){return this._value}renderOptgroup(t,e){var n;return index.h("optgroup",{disabled:t.disabled,label:t.label},null===(n=t.options)||void 0===n?void 0:n.map(((t,n)=>{const i=`${e}-${n}`;return Array.isArray(t.options)?this.renderOptgroup(t,i):index.h("option",{disabled:t.disabled,key:i,selected:isSelected(this.state._value,t.value),value:i},t.label)})))}render(){const{ariaDescribedBy:t}=controller$1.getRenderStates(this.state),e=reuse.showExpertSlot(this.state._label);return index.h(index.Host,{class:{"has-value":this.state._hasValue}},index.h("kol-input",{class:{"hide-label":!!this.state._hideLabel,select:!0},_accessKey:this.state._accessKey,_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_required:this.state._required,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched,onClick:()=>{var t;return null===(t=this.ref)||void 0===t?void 0:t.focus()}},index.h("span",{slot:"label"},e?index.h("slot",{name:"expert"}):"string"==typeof this.state._accessKey?index.h(index.Fragment,null,index.h(InternalUnderlinedAccessKey.InternalUnderlinedAccessKey,{accessKey:this.state._accessKey,label:this.state._label})," ",index.h("span",{class:"access-key-hint","aria-hidden":"true"},this.state._accessKey)):index.h("span",null,this.state._label)),index.h("div",{slot:"input"},index.h("select",{ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":t.length>0?t.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,multiple:this.state._multiple,name:this.state._name,required:this.state._required,size:this.state._rows,spellcheck:"false",onClick:this.controller.onFacade.onClick,onBlur:this.controller.onFacade.onBlur,onFocus:this.controller.onFacade.onFocus,onChange:this.onChange},this.state._options.map(((t,e)=>{const n=`-${e}`;return Array.isArray(t.options)?this.renderOptgroup(t,n):index.h("option",{disabled:t.disabled,key:n,selected:isSelected(this.state._value,t.value),value:n},t.label)}))))))}constructor(t){index.registerInstance(this,t),this.catchRef=t=>{this.ref=t,reuse.propagateFocus(this.host,this.ref)},this.onChange=t=>{var e,n;this._value=Array.from((null===(e=this.ref)||void 0===e?void 0:e.options)||[]).filter((t=>!0===t.selected)).map((t=>{var e;return null===(e=this.controller.getOptionByKey(t.value))||void 0===e?void 0:e.value})),events.stopPropagation(t),events.tryToDispatchKoliBriEvent("change",this.host,this._value),this.controller.setFormAssociatedValue(this._value),"function"==typeof(null===(n=this.state._on)||void 0===n?void 0:n.onChange)&&this.state._on.onChange(t,this._value)},this._accessKey=void 0,this._alert=!0,this._disabled=!1,this._error=void 0,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icons=void 0,this._id=void 0,this._label=void 0,this._multiple=!1,this._name=void 0,this._on=void 0,this._options=void 0,this._required=!1,this._rows=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_hasValue:!1,_hideError:!1,_id:`id-${dev_utils.nonce()}`,_label:"",_multiple:!1,_options:[],_value:[]},this.controller=new SelectController(this,"select",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateMultiple(t){this.controller.validateMultiple(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateOptions(t){this.controller.validateOptions(t)}validateRequired(t){this.controller.validateRequired(t)}validateRows(t){this.controller.validateRows(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(this.onChange),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return index.getElement(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_options:["validateOptions"],_required:["validateRequired"],_rows:["validateRows"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};KolSelect.style={default:defaultStyleCss},exports.kol_select=KolSelect;