@public-ui/components 1.7.19 → 1.7.20

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 (584) hide show
  1. package/custom-elements.json +3 -3
  2. package/dist/cjs/{a11y.tipps-afe428df.js → a11y.tipps-20e2697a.js} +1 -1
  3. package/dist/cjs/{a11y.tipps-afe428df.js.map → a11y.tipps-20e2697a.js.map} +1 -1
  4. package/dist/cjs/align-a0c0b6c2.js +4 -0
  5. package/dist/cjs/{align-4d94a35f.js.map → align-a0c0b6c2.js.map} +1 -1
  6. package/dist/cjs/{alignment-f99d73c0.js → alignment-1a33a7b8.js} +1 -1
  7. package/dist/cjs/{alignment-f99d73c0.js.map → alignment-1a33a7b8.js.map} +1 -1
  8. package/dist/cjs/{app-globals-51e08069.js → app-globals-e6df1ca2.js} +1 -1
  9. package/dist/cjs/{app-globals-51e08069.js.map → app-globals-e6df1ca2.js.map} +1 -1
  10. package/dist/cjs/{aria-current-a786da32.js → aria-current-df4d0f40.js} +1 -1
  11. package/dist/cjs/{aria-current-a786da32.js.map → aria-current-df4d0f40.js.map} +1 -1
  12. package/dist/cjs/{associated.controller-5de04c8b.js → associated.controller-96ea9e87.js} +1 -1
  13. package/dist/cjs/{associated.controller-5de04c8b.js.map → associated.controller-96ea9e87.js.map} +1 -1
  14. package/dist/cjs/{color-ac886346.js → color-76ca6407.js} +1 -1
  15. package/dist/cjs/{color-ac886346.js.map → color-76ca6407.js.map} +1 -1
  16. package/dist/cjs/controller-0b2e2d06.js +4 -0
  17. package/dist/cjs/controller-0b2e2d06.js.map +1 -0
  18. package/dist/cjs/{controller-bcebf476.js → controller-358a1a26.js} +1 -1
  19. package/dist/cjs/{controller-bcebf476.js.map → controller-358a1a26.js.map} +1 -1
  20. package/dist/cjs/{controller-bd4cf842.js → controller-77a7ddb1.js} +1 -1
  21. package/dist/cjs/{controller-bd4cf842.js.map → controller-77a7ddb1.js.map} +1 -1
  22. package/dist/cjs/{controller-f6000875.js → controller-85a60241.js} +1 -1
  23. package/dist/cjs/{controller-f6000875.js.map → controller-85a60241.js.map} +1 -1
  24. package/dist/cjs/{controller-c99812e7.js → controller-b037968d.js} +1 -1
  25. package/dist/cjs/{controller-c99812e7.js.map → controller-b037968d.js.map} +1 -1
  26. package/dist/cjs/{controller-icon-fa43df86.js → controller-icon-4a6f1f13.js} +1 -1
  27. package/dist/cjs/{controller-icon-fa43df86.js.map → controller-icon-4a6f1f13.js.map} +1 -1
  28. package/dist/cjs/{custom-class-7651d477.js → custom-class-c186d14f.js} +1 -1
  29. package/dist/cjs/{custom-class-7651d477.js.map → custom-class-c186d14f.js.map} +1 -1
  30. package/dist/cjs/{dev.utils-334adaab.js → dev.utils-d9eec21e.js} +1 -1
  31. package/dist/cjs/{dev.utils-334adaab.js.map → dev.utils-d9eec21e.js.map} +1 -1
  32. package/dist/cjs/{devtools-900e9725.js → devtools-93b85e2b.js} +1 -1
  33. package/dist/cjs/{devtools-900e9725.js.map → devtools-93b85e2b.js.map} +1 -1
  34. package/dist/cjs/{form-field-msg-8043a6f2.js → form-field-msg-7fc04b0d.js} +1 -1
  35. package/dist/cjs/{form-field-msg-8043a6f2.js.map → form-field-msg-7fc04b0d.js.map} +1 -1
  36. package/dist/cjs/has-closer-7e3a6c5d.js +4 -0
  37. package/dist/cjs/{has-closer-2cae00d9.js.map → has-closer-7e3a6c5d.js.map} +1 -1
  38. package/dist/cjs/hide-label-a3bbd1bc.js +4 -0
  39. package/dist/cjs/{hide-label-b0beb21d.js.map → hide-label-a3bbd1bc.js.map} +1 -1
  40. package/dist/cjs/i18n-c3fa5bd7.js.map +1 -1
  41. package/dist/cjs/{icons-ffb304ec.js → icons-485a7a37.js} +1 -1
  42. package/dist/cjs/{icons-ffb304ec.js.map → icons-485a7a37.js.map} +1 -1
  43. package/dist/cjs/image-source-9c1a7288.js +4 -0
  44. package/dist/cjs/{image-source-7a3dc14e.js.map → image-source-9c1a7288.js.map} +1 -1
  45. package/dist/cjs/index-68c15fc9.js +4 -0
  46. package/dist/cjs/index-68c15fc9.js.map +1 -0
  47. package/dist/cjs/index.cjs.js +1 -1
  48. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  49. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  50. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  51. package/dist/cjs/kol-alert-wc.cjs.entry.js.map +1 -1
  52. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  53. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  57. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  58. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  66. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  69. package/dist/cjs/kol-heading-wc.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-icon-font-awesome.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-icon-icofont.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-input-radio-group.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  87. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  89. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-input.cjs.entry.js.map +1 -1
  92. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  94. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-link-group.cjs.entry.js.map +1 -1
  97. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  99. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  103. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  105. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  107. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  110. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  111. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-span-wc.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-span-wc.cjs.entry.js.map +1 -1
  115. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-table.cjs.entry.js.map +1 -1
  121. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  125. package/dist/cjs/kol-toast.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-toast.cjs.entry.js.map +1 -1
  127. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-tooltip-wc.cjs.entry.js.map +1 -1
  129. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  130. package/dist/cjs/kolibri.cjs.js +1 -1
  131. package/dist/cjs/kolibri.cjs.js.map +1 -1
  132. package/dist/cjs/{label-2c4c9c06.js → label-4f1fa2d9.js} +1 -1
  133. package/dist/cjs/{label-2c4c9c06.js.map → label-4f1fa2d9.js.map} +1 -1
  134. package/dist/cjs/loader.cjs.js +1 -1
  135. package/dist/cjs/open-57306280.js +4 -0
  136. package/dist/cjs/{open-1e28d73e.js.map → open-57306280.js.map} +1 -1
  137. package/dist/cjs/{prop.validators-3d1d4699.js → prop.validators-09b0c9d7.js} +1 -1
  138. package/dist/cjs/{prop.validators-3d1d4699.js.map → prop.validators-09b0c9d7.js.map} +1 -1
  139. package/dist/cjs/rows-d1faf399.js +4 -0
  140. package/dist/cjs/{rows-8d523947.js.map → rows-d1faf399.js.map} +1 -1
  141. package/dist/cjs/show-79c47b94.js +4 -0
  142. package/dist/cjs/{show-98b5bab8.js.map → show-79c47b94.js.map} +1 -1
  143. package/dist/cjs/{suggestions-fea0cdcf.js → suggestions-eef15e0e.js} +1 -1
  144. package/dist/cjs/{suggestions-fea0cdcf.js.map → suggestions-eef15e0e.js.map} +1 -1
  145. package/dist/cjs/{tab-index-d6ae0846.js → tab-index-94224eee.js} +1 -1
  146. package/dist/cjs/{tab-index-d6ae0846.js.map → tab-index-94224eee.js.map} +1 -1
  147. package/dist/cjs/{tooltip-align-c87c6d36.js → tooltip-align-441d97ed.js} +1 -1
  148. package/dist/cjs/{tooltip-align-c87c6d36.js.map → tooltip-align-441d97ed.js.map} +1 -1
  149. package/dist/cjs/{validation-72e01bc7.js → validation-6e3c598f.js} +1 -1
  150. package/dist/cjs/{validation-72e01bc7.js.map → validation-6e3c598f.js.map} +1 -1
  151. package/dist/cjs/{validation-b9d08ddc.js → validation-eee22f9f.js} +1 -1
  152. package/dist/cjs/{validation-b9d08ddc.js.map → validation-eee22f9f.js.map} +1 -1
  153. package/dist/components/controller.js +1 -1
  154. package/dist/components/controller.js.map +1 -1
  155. package/dist/components/dev.utils.js +1 -1
  156. package/dist/components/dev.utils.js.map +1 -1
  157. package/dist/components/i18n.js.map +1 -1
  158. package/dist/components/kol-abbr.js +1 -1
  159. package/dist/components/kol-accordion.js +1 -1
  160. package/dist/components/kol-alert-wc.js +1 -1
  161. package/dist/components/kol-alert-wc.js.map +1 -1
  162. package/dist/components/kol-alert.js +1 -1
  163. package/dist/components/kol-avatar-wc.js +1 -1
  164. package/dist/components/kol-avatar.js +1 -1
  165. package/dist/components/kol-badge.js +1 -1
  166. package/dist/components/kol-breadcrumb.js +1 -1
  167. package/dist/components/kol-breadcrumb.js.map +1 -1
  168. package/dist/components/kol-button-group-wc.js +1 -1
  169. package/dist/components/kol-button-group.js +1 -1
  170. package/dist/components/kol-button-link-text-switch.js +1 -1
  171. package/dist/components/kol-button-link.js +1 -1
  172. package/dist/components/kol-button-wc.js +1 -1
  173. package/dist/components/kol-button.js +1 -1
  174. package/dist/components/kol-card.js +1 -1
  175. package/dist/components/kol-card.js.map +1 -1
  176. package/dist/components/kol-details.js +1 -1
  177. package/dist/components/kol-form.js +1 -1
  178. package/dist/components/kol-form.js.map +1 -1
  179. package/dist/components/kol-heading-wc.js +1 -1
  180. package/dist/components/kol-heading.js +1 -1
  181. package/dist/components/kol-icon-font-awesome.js +1 -1
  182. package/dist/components/kol-icon-icofont.js +1 -1
  183. package/dist/components/kol-icon.js +1 -1
  184. package/dist/components/kol-image.js +1 -1
  185. package/dist/components/kol-indented-text.js +1 -1
  186. package/dist/components/kol-input-adapter-leanup.js +1 -1
  187. package/dist/components/kol-input-checkbox.js +1 -1
  188. package/dist/components/kol-input-color.js +1 -1
  189. package/dist/components/kol-input-date.js +1 -1
  190. package/dist/components/kol-input-email.js +1 -1
  191. package/dist/components/kol-input-file.js +1 -1
  192. package/dist/components/kol-input-number.js +1 -1
  193. package/dist/components/kol-input-password.js +1 -1
  194. package/dist/components/kol-input-radio-group.js +1 -1
  195. package/dist/components/kol-input-radio.js +1 -1
  196. package/dist/components/kol-input-radio.js.map +1 -1
  197. package/dist/components/kol-input-range.js +1 -1
  198. package/dist/components/kol-input-range.js.map +1 -1
  199. package/dist/components/kol-input-text.js +1 -1
  200. package/dist/components/kol-input.js +1 -1
  201. package/dist/components/kol-input.js.map +1 -1
  202. package/dist/components/kol-kolibri.js +1 -1
  203. package/dist/components/kol-kolibri.js.map +1 -1
  204. package/dist/components/kol-link-button.js +1 -1
  205. package/dist/components/kol-link-group.js +1 -1
  206. package/dist/components/kol-link-group.js.map +1 -1
  207. package/dist/components/kol-link-wc.js +1 -1
  208. package/dist/components/kol-link-wc.js.map +1 -1
  209. package/dist/components/kol-link.js +1 -1
  210. package/dist/components/kol-logo.js +1 -1
  211. package/dist/components/kol-modal.js +1 -1
  212. package/dist/components/kol-modal.js.map +1 -1
  213. package/dist/components/kol-nav.js +1 -1
  214. package/dist/components/kol-nav.js.map +1 -1
  215. package/dist/components/kol-pagination.js +1 -1
  216. package/dist/components/kol-pagination.js.map +1 -1
  217. package/dist/components/kol-popover-wc.js +1 -1
  218. package/dist/components/kol-progress.js +1 -1
  219. package/dist/components/kol-quote.js +1 -1
  220. package/dist/components/kol-quote.js.map +1 -1
  221. package/dist/components/kol-select.js +1 -1
  222. package/dist/components/kol-skip-nav.js +1 -1
  223. package/dist/components/kol-span-wc.js +1 -1
  224. package/dist/components/kol-span-wc.js.map +1 -1
  225. package/dist/components/kol-span.js +1 -1
  226. package/dist/components/kol-spin.js +1 -1
  227. package/dist/components/kol-split-button.js +1 -1
  228. package/dist/components/kol-symbol.js +1 -1
  229. package/dist/components/kol-table.js +1 -1
  230. package/dist/components/kol-table.js.map +1 -1
  231. package/dist/components/kol-tabs.js +1 -1
  232. package/dist/components/kol-textarea.js +1 -1
  233. package/dist/components/kol-toast-container.js +1 -1
  234. package/dist/components/kol-toast-container.js.map +1 -1
  235. package/dist/components/kol-toast.js +1 -1
  236. package/dist/components/kol-toast.js.map +1 -1
  237. package/dist/components/kol-tooltip-wc.js +1 -1
  238. package/dist/components/kol-tooltip-wc.js.map +1 -1
  239. package/dist/components/kol-version.js +1 -1
  240. package/dist/esm/{a11y.tipps-798efb1a.js → a11y.tipps-2fa5953b.js} +1 -1
  241. package/dist/esm/{a11y.tipps-798efb1a.js.map → a11y.tipps-2fa5953b.js.map} +1 -1
  242. package/dist/esm/{align-beb00370.js → align-d68fcc60.js} +1 -1
  243. package/dist/esm/{align-beb00370.js.map → align-d68fcc60.js.map} +1 -1
  244. package/dist/esm/{alignment-4c0cd265.js → alignment-ae1fa968.js} +1 -1
  245. package/dist/esm/{alignment-4c0cd265.js.map → alignment-ae1fa968.js.map} +1 -1
  246. package/dist/esm/app-globals-0ada6761.js +4 -0
  247. package/dist/esm/{app-globals-529eaac0.js.map → app-globals-0ada6761.js.map} +1 -1
  248. package/dist/esm/{aria-current-09b1cf77.js → aria-current-2533cca9.js} +1 -1
  249. package/dist/esm/{aria-current-09b1cf77.js.map → aria-current-2533cca9.js.map} +1 -1
  250. package/dist/esm/{associated.controller-367d4241.js → associated.controller-a9205263.js} +1 -1
  251. package/dist/esm/{associated.controller-367d4241.js.map → associated.controller-a9205263.js.map} +1 -1
  252. package/dist/esm/{color-51fda110.js → color-45ba7bb3.js} +1 -1
  253. package/dist/esm/{color-51fda110.js.map → color-45ba7bb3.js.map} +1 -1
  254. package/dist/esm/{controller-4693379a.js → controller-6ba49adb.js} +1 -1
  255. package/dist/esm/{controller-4693379a.js.map → controller-6ba49adb.js.map} +1 -1
  256. package/dist/esm/{controller-67717038.js → controller-9180c6ea.js} +1 -1
  257. package/dist/esm/{controller-67717038.js.map → controller-9180c6ea.js.map} +1 -1
  258. package/dist/esm/{controller-09b624a5.js → controller-be9041f0.js} +1 -1
  259. package/dist/esm/{controller-09b624a5.js.map → controller-be9041f0.js.map} +1 -1
  260. package/dist/esm/{controller-d9f61e71.js → controller-c37cc04c.js} +1 -1
  261. package/dist/esm/{controller-d9f61e71.js.map → controller-c37cc04c.js.map} +1 -1
  262. package/dist/esm/controller-fa605ac3.js +4 -0
  263. package/dist/esm/controller-fa605ac3.js.map +1 -0
  264. package/dist/esm/{controller-icon-7d98b00e.js → controller-icon-0429172d.js} +1 -1
  265. package/dist/esm/{controller-icon-7d98b00e.js.map → controller-icon-0429172d.js.map} +1 -1
  266. package/dist/esm/{custom-class-76b06f69.js → custom-class-ca4a362d.js} +1 -1
  267. package/dist/esm/{custom-class-76b06f69.js.map → custom-class-ca4a362d.js.map} +1 -1
  268. package/dist/esm/{dev.utils-f829063f.js → dev.utils-d7aa3c72.js} +1 -1
  269. package/dist/esm/{dev.utils-f829063f.js.map → dev.utils-d7aa3c72.js.map} +1 -1
  270. package/dist/esm/{devtools-2bd953c4.js → devtools-493a8172.js} +1 -1
  271. package/dist/esm/{devtools-2bd953c4.js.map → devtools-493a8172.js.map} +1 -1
  272. package/dist/esm/form-field-msg-975814de.js +4 -0
  273. package/dist/esm/{form-field-msg-85face25.js.map → form-field-msg-975814de.js.map} +1 -1
  274. package/dist/esm/{has-closer-1a36473f.js → has-closer-18441dc1.js} +1 -1
  275. package/dist/esm/{has-closer-1a36473f.js.map → has-closer-18441dc1.js.map} +1 -1
  276. package/dist/esm/{hide-label-000c16f6.js → hide-label-181cab2f.js} +1 -1
  277. package/dist/esm/{hide-label-000c16f6.js.map → hide-label-181cab2f.js.map} +1 -1
  278. package/dist/esm/i18n-fddf0324.js.map +1 -1
  279. package/dist/esm/{icons-82e358f3.js → icons-3d6a581a.js} +1 -1
  280. package/dist/esm/{icons-82e358f3.js.map → icons-3d6a581a.js.map} +1 -1
  281. package/dist/esm/{image-source-8584365e.js → image-source-e7abcbeb.js} +1 -1
  282. package/dist/esm/{image-source-8584365e.js.map → image-source-e7abcbeb.js.map} +1 -1
  283. package/dist/esm/index-6237c77d.js +4 -0
  284. package/dist/esm/index-6237c77d.js.map +1 -0
  285. package/dist/esm/index.js +1 -1
  286. package/dist/esm/kol-abbr.entry.js +1 -1
  287. package/dist/esm/kol-accordion.entry.js +1 -1
  288. package/dist/esm/kol-alert-wc.entry.js +1 -1
  289. package/dist/esm/kol-alert-wc.entry.js.map +1 -1
  290. package/dist/esm/kol-alert.entry.js +1 -1
  291. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  292. package/dist/esm/kol-avatar.entry.js +1 -1
  293. package/dist/esm/kol-badge.entry.js +1 -1
  294. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  295. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  296. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  297. package/dist/esm/kol-button-group.entry.js +1 -1
  298. package/dist/esm/kol-button-link-text-switch.entry.js +1 -1
  299. package/dist/esm/kol-button-link.entry.js +1 -1
  300. package/dist/esm/kol-button-wc.entry.js +1 -1
  301. package/dist/esm/kol-button.entry.js +1 -1
  302. package/dist/esm/kol-card.entry.js +1 -1
  303. package/dist/esm/kol-card.entry.js.map +1 -1
  304. package/dist/esm/kol-details.entry.js +1 -1
  305. package/dist/esm/kol-form.entry.js +1 -1
  306. package/dist/esm/kol-form.entry.js.map +1 -1
  307. package/dist/esm/kol-heading-wc.entry.js +1 -1
  308. package/dist/esm/kol-heading.entry.js +1 -1
  309. package/dist/esm/kol-icon-font-awesome.entry.js +1 -1
  310. package/dist/esm/kol-icon-icofont.entry.js +1 -1
  311. package/dist/esm/kol-icon.entry.js +1 -1
  312. package/dist/esm/kol-image.entry.js +1 -1
  313. package/dist/esm/kol-indented-text.entry.js +1 -1
  314. package/dist/esm/kol-input-adapter-leanup.entry.js +1 -1
  315. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  316. package/dist/esm/kol-input-color.entry.js +1 -1
  317. package/dist/esm/kol-input-date.entry.js +1 -1
  318. package/dist/esm/kol-input-email.entry.js +1 -1
  319. package/dist/esm/kol-input-file.entry.js +1 -1
  320. package/dist/esm/kol-input-number.entry.js +1 -1
  321. package/dist/esm/kol-input-password.entry.js +1 -1
  322. package/dist/esm/kol-input-radio-group.entry.js +1 -1
  323. package/dist/esm/kol-input-radio.entry.js +1 -1
  324. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  325. package/dist/esm/kol-input-range.entry.js +1 -1
  326. package/dist/esm/kol-input-range.entry.js.map +1 -1
  327. package/dist/esm/kol-input-text.entry.js +1 -1
  328. package/dist/esm/kol-input.entry.js +1 -1
  329. package/dist/esm/kol-input.entry.js.map +1 -1
  330. package/dist/esm/kol-kolibri.entry.js +1 -1
  331. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  332. package/dist/esm/kol-link-button.entry.js +1 -1
  333. package/dist/esm/kol-link-group.entry.js +1 -1
  334. package/dist/esm/kol-link-group.entry.js.map +1 -1
  335. package/dist/esm/kol-link-wc.entry.js +1 -1
  336. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  337. package/dist/esm/kol-link.entry.js +1 -1
  338. package/dist/esm/kol-logo.entry.js +1 -1
  339. package/dist/esm/kol-modal.entry.js +1 -1
  340. package/dist/esm/kol-modal.entry.js.map +1 -1
  341. package/dist/esm/kol-nav.entry.js +1 -1
  342. package/dist/esm/kol-nav.entry.js.map +1 -1
  343. package/dist/esm/kol-pagination.entry.js +1 -1
  344. package/dist/esm/kol-pagination.entry.js.map +1 -1
  345. package/dist/esm/kol-popover-wc.entry.js +1 -1
  346. package/dist/esm/kol-progress.entry.js +1 -1
  347. package/dist/esm/kol-quote.entry.js +1 -1
  348. package/dist/esm/kol-quote.entry.js.map +1 -1
  349. package/dist/esm/kol-select.entry.js +1 -1
  350. package/dist/esm/kol-skip-nav.entry.js +1 -1
  351. package/dist/esm/kol-span-wc.entry.js +1 -1
  352. package/dist/esm/kol-span-wc.entry.js.map +1 -1
  353. package/dist/esm/kol-span.entry.js +1 -1
  354. package/dist/esm/kol-spin.entry.js +1 -1
  355. package/dist/esm/kol-split-button.entry.js +1 -1
  356. package/dist/esm/kol-symbol.entry.js +1 -1
  357. package/dist/esm/kol-table.entry.js +1 -1
  358. package/dist/esm/kol-table.entry.js.map +1 -1
  359. package/dist/esm/kol-tabs.entry.js +1 -1
  360. package/dist/esm/kol-textarea.entry.js +1 -1
  361. package/dist/esm/kol-toast-container.entry.js +1 -1
  362. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  363. package/dist/esm/kol-toast.entry.js +1 -1
  364. package/dist/esm/kol-toast.entry.js.map +1 -1
  365. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  366. package/dist/esm/kol-tooltip-wc.entry.js.map +1 -1
  367. package/dist/esm/kol-version.entry.js +1 -1
  368. package/dist/esm/kolibri.js +1 -1
  369. package/dist/esm/kolibri.js.map +1 -1
  370. package/dist/esm/{label-bce4f328.js → label-218f516d.js} +1 -1
  371. package/dist/esm/{label-bce4f328.js.map → label-218f516d.js.map} +1 -1
  372. package/dist/esm/loader.js +1 -1
  373. package/dist/esm/{open-e11c786d.js → open-afad812b.js} +1 -1
  374. package/dist/esm/{open-e11c786d.js.map → open-afad812b.js.map} +1 -1
  375. package/dist/esm/{prop.validators-3017e14b.js → prop.validators-0872ab9e.js} +1 -1
  376. package/dist/esm/{prop.validators-3017e14b.js.map → prop.validators-0872ab9e.js.map} +1 -1
  377. package/dist/esm/{rows-4627c8c8.js → rows-b321b23e.js} +1 -1
  378. package/dist/esm/{rows-4627c8c8.js.map → rows-b321b23e.js.map} +1 -1
  379. package/dist/esm/{show-418f2510.js → show-8dc521bf.js} +1 -1
  380. package/dist/esm/{show-418f2510.js.map → show-8dc521bf.js.map} +1 -1
  381. package/dist/esm/{suggestions-f022cab2.js → suggestions-0d70b04d.js} +1 -1
  382. package/dist/esm/{suggestions-f022cab2.js.map → suggestions-0d70b04d.js.map} +1 -1
  383. package/dist/esm/{tab-index-22839788.js → tab-index-20b0daba.js} +1 -1
  384. package/dist/esm/{tab-index-22839788.js.map → tab-index-20b0daba.js.map} +1 -1
  385. package/dist/esm/{tooltip-align-a16d498e.js → tooltip-align-44ee374a.js} +1 -1
  386. package/dist/esm/{tooltip-align-a16d498e.js.map → tooltip-align-44ee374a.js.map} +1 -1
  387. package/dist/esm/validation-0a2240d1.js +4 -0
  388. package/dist/esm/{validation-8785c967.js.map → validation-0a2240d1.js.map} +1 -1
  389. package/dist/esm/{validation-f641b69f.js → validation-dc1ebfa2.js} +1 -1
  390. package/dist/esm/{validation-f641b69f.js.map → validation-dc1ebfa2.js.map} +1 -1
  391. package/dist/kolibri/{a11y.tipps-798efb1a.js → a11y.tipps-2fa5953b.js} +1 -1
  392. package/dist/kolibri/align-d68fcc60.js +4 -0
  393. package/dist/kolibri/alignment-ae1fa968.js +4 -0
  394. package/dist/kolibri/app-globals-0ada6761.js +4 -0
  395. package/dist/kolibri/{aria-current-09b1cf77.js → aria-current-2533cca9.js} +1 -1
  396. package/dist/kolibri/{associated.controller-367d4241.js → associated.controller-a9205263.js} +1 -1
  397. package/dist/kolibri/{color-51fda110.js → color-45ba7bb3.js} +1 -1
  398. package/dist/kolibri/{controller-4693379a.js → controller-6ba49adb.js} +1 -1
  399. package/dist/kolibri/{controller-67717038.js → controller-9180c6ea.js} +1 -1
  400. package/dist/kolibri/{controller-09b624a5.js → controller-be9041f0.js} +1 -1
  401. package/dist/kolibri/{controller-d9f61e71.js → controller-c37cc04c.js} +1 -1
  402. package/dist/kolibri/controller-fa605ac3.js +4 -0
  403. package/dist/kolibri/controller-fa605ac3.js.map +1 -0
  404. package/dist/kolibri/controller-icon-0429172d.js +4 -0
  405. package/dist/kolibri/{custom-class-76b06f69.js → custom-class-ca4a362d.js} +1 -1
  406. package/dist/kolibri/{dev.utils-f829063f.js → dev.utils-d7aa3c72.js} +1 -1
  407. package/dist/kolibri/{dev.utils-f829063f.js.map → dev.utils-d7aa3c72.js.map} +1 -1
  408. package/dist/kolibri/{devtools-2bd953c4.js → devtools-493a8172.js} +1 -1
  409. package/dist/kolibri/form-field-msg-975814de.js +4 -0
  410. package/dist/kolibri/has-closer-18441dc1.js +4 -0
  411. package/dist/kolibri/{has-closer-1a36473f.js.map → has-closer-18441dc1.js.map} +1 -1
  412. package/dist/kolibri/hide-label-181cab2f.js +4 -0
  413. package/dist/kolibri/i18n-fddf0324.js.map +1 -1
  414. package/dist/kolibri/{icons-82e358f3.js → icons-3d6a581a.js} +1 -1
  415. package/dist/kolibri/image-source-e7abcbeb.js +4 -0
  416. package/dist/kolibri/index-6237c77d.js +5 -0
  417. package/dist/kolibri/index-6237c77d.js.map +1 -0
  418. package/dist/kolibri/index.esm.js +1 -1
  419. package/dist/kolibri/kol-abbr.entry.js +1 -1
  420. package/dist/kolibri/kol-accordion.entry.js +1 -1
  421. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  422. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
  423. package/dist/kolibri/kol-alert.entry.js +1 -1
  424. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  425. package/dist/kolibri/kol-avatar.entry.js +1 -1
  426. package/dist/kolibri/kol-badge.entry.js +1 -1
  427. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  428. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  429. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  430. package/dist/kolibri/kol-button-group.entry.js +1 -1
  431. package/dist/kolibri/kol-button-link-text-switch.entry.js +1 -1
  432. package/dist/kolibri/kol-button-link.entry.js +1 -1
  433. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  434. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  435. package/dist/kolibri/kol-button.entry.js +1 -1
  436. package/dist/kolibri/kol-card.entry.js +1 -1
  437. package/dist/kolibri/kol-card.entry.js.map +1 -1
  438. package/dist/kolibri/kol-details.entry.js +1 -1
  439. package/dist/kolibri/kol-form.entry.js +1 -1
  440. package/dist/kolibri/kol-form.entry.js.map +1 -1
  441. package/dist/kolibri/kol-heading-wc.entry.js +1 -1
  442. package/dist/kolibri/kol-heading.entry.js +1 -1
  443. package/dist/kolibri/kol-icon-font-awesome.entry.js +1 -1
  444. package/dist/kolibri/kol-icon-icofont.entry.js +1 -1
  445. package/dist/kolibri/kol-icon.entry.js +1 -1
  446. package/dist/kolibri/kol-image.entry.js +1 -1
  447. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  448. package/dist/kolibri/kol-input-adapter-leanup.entry.js +1 -1
  449. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  450. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  451. package/dist/kolibri/kol-input-color.entry.js +1 -1
  452. package/dist/kolibri/kol-input-date.entry.js +1 -1
  453. package/dist/kolibri/kol-input-email.entry.js +1 -1
  454. package/dist/kolibri/kol-input-file.entry.js +1 -1
  455. package/dist/kolibri/kol-input-number.entry.js +1 -1
  456. package/dist/kolibri/kol-input-password.entry.js +1 -1
  457. package/dist/kolibri/kol-input-radio-group.entry.js +1 -1
  458. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  459. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  460. package/dist/kolibri/kol-input-range.entry.js +1 -1
  461. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  462. package/dist/kolibri/kol-input-text.entry.js +1 -1
  463. package/dist/kolibri/kol-input.entry.js +1 -1
  464. package/dist/kolibri/kol-input.entry.js.map +1 -1
  465. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  466. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  467. package/dist/kolibri/kol-link-button.entry.js +1 -1
  468. package/dist/kolibri/kol-link-group.entry.js +1 -1
  469. package/dist/kolibri/kol-link-group.entry.js.map +1 -1
  470. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  471. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  472. package/dist/kolibri/kol-link.entry.js +1 -1
  473. package/dist/kolibri/kol-logo.entry.js +1 -1
  474. package/dist/kolibri/kol-modal.entry.js +1 -1
  475. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  476. package/dist/kolibri/kol-nav.entry.js +1 -1
  477. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  478. package/dist/kolibri/kol-pagination.entry.js +1 -1
  479. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  480. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  481. package/dist/kolibri/kol-progress.entry.js +1 -1
  482. package/dist/kolibri/kol-quote.entry.js +1 -1
  483. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  484. package/dist/kolibri/kol-select.entry.js +1 -1
  485. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  486. package/dist/kolibri/kol-span-wc.entry.js +1 -1
  487. package/dist/kolibri/kol-span-wc.entry.js.map +1 -1
  488. package/dist/kolibri/kol-span.entry.js +1 -1
  489. package/dist/kolibri/kol-spin.entry.js +1 -1
  490. package/dist/kolibri/kol-split-button.entry.js +1 -1
  491. package/dist/kolibri/kol-symbol.entry.js +1 -1
  492. package/dist/kolibri/kol-table.entry.js +1 -1
  493. package/dist/kolibri/kol-table.entry.js.map +1 -1
  494. package/dist/kolibri/kol-tabs.entry.js +1 -1
  495. package/dist/kolibri/kol-textarea.entry.js +1 -1
  496. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  497. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  498. package/dist/kolibri/kol-toast.entry.js +1 -1
  499. package/dist/kolibri/kol-toast.entry.js.map +1 -1
  500. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  501. package/dist/kolibri/kol-tooltip-wc.entry.js.map +1 -1
  502. package/dist/kolibri/kol-version.entry.js +1 -1
  503. package/dist/kolibri/kolibri.esm.js +1 -1
  504. package/dist/kolibri/kolibri.esm.js.map +1 -1
  505. package/dist/kolibri/{label-bce4f328.js → label-218f516d.js} +1 -1
  506. package/dist/kolibri/open-afad812b.js +4 -0
  507. package/dist/kolibri/{prop.validators-3017e14b.js → prop.validators-0872ab9e.js} +1 -1
  508. package/dist/kolibri/rows-b321b23e.js +4 -0
  509. package/dist/kolibri/show-8dc521bf.js +4 -0
  510. package/dist/kolibri/suggestions-0d70b04d.js +4 -0
  511. package/dist/kolibri/tab-index-20b0daba.js +4 -0
  512. package/dist/kolibri/{tab-index-22839788.js.map → tab-index-20b0daba.js.map} +1 -1
  513. package/dist/kolibri/tooltip-align-44ee374a.js +4 -0
  514. package/dist/kolibri/validation-0a2240d1.js +4 -0
  515. package/dist/kolibri/validation-dc1ebfa2.js +4 -0
  516. package/doc/popover.md +2 -0
  517. package/doc/tooltip.md +1 -1
  518. package/package.json +1 -1
  519. package/vscode-custom-data.json +2 -2
  520. package/dist/cjs/align-4d94a35f.js +0 -4
  521. package/dist/cjs/controller-dbd30a67.js +0 -4
  522. package/dist/cjs/controller-dbd30a67.js.map +0 -1
  523. package/dist/cjs/has-closer-2cae00d9.js +0 -4
  524. package/dist/cjs/hide-label-b0beb21d.js +0 -4
  525. package/dist/cjs/image-source-7a3dc14e.js +0 -4
  526. package/dist/cjs/index-67d1914c.js +0 -4
  527. package/dist/cjs/index-67d1914c.js.map +0 -1
  528. package/dist/cjs/open-1e28d73e.js +0 -4
  529. package/dist/cjs/rows-8d523947.js +0 -4
  530. package/dist/cjs/show-98b5bab8.js +0 -4
  531. package/dist/esm/app-globals-529eaac0.js +0 -4
  532. package/dist/esm/controller-7832022a.js +0 -4
  533. package/dist/esm/controller-7832022a.js.map +0 -1
  534. package/dist/esm/form-field-msg-85face25.js +0 -4
  535. package/dist/esm/index-a051748e.js +0 -4
  536. package/dist/esm/index-a051748e.js.map +0 -1
  537. package/dist/esm/validation-8785c967.js +0 -4
  538. package/dist/kolibri/align-beb00370.js +0 -4
  539. package/dist/kolibri/alignment-4c0cd265.js +0 -4
  540. package/dist/kolibri/app-globals-529eaac0.js +0 -4
  541. package/dist/kolibri/controller-7832022a.js +0 -4
  542. package/dist/kolibri/controller-7832022a.js.map +0 -1
  543. package/dist/kolibri/controller-icon-7d98b00e.js +0 -4
  544. package/dist/kolibri/form-field-msg-85face25.js +0 -4
  545. package/dist/kolibri/has-closer-1a36473f.js +0 -4
  546. package/dist/kolibri/hide-label-000c16f6.js +0 -4
  547. package/dist/kolibri/image-source-8584365e.js +0 -4
  548. package/dist/kolibri/index-a051748e.js +0 -5
  549. package/dist/kolibri/index-a051748e.js.map +0 -1
  550. package/dist/kolibri/open-e11c786d.js +0 -4
  551. package/dist/kolibri/rows-4627c8c8.js +0 -4
  552. package/dist/kolibri/show-418f2510.js +0 -4
  553. package/dist/kolibri/suggestions-f022cab2.js +0 -4
  554. package/dist/kolibri/tab-index-22839788.js +0 -4
  555. package/dist/kolibri/tooltip-align-a16d498e.js +0 -4
  556. package/dist/kolibri/validation-8785c967.js +0 -4
  557. package/dist/kolibri/validation-f641b69f.js +0 -4
  558. /package/dist/kolibri/{a11y.tipps-798efb1a.js.map → a11y.tipps-2fa5953b.js.map} +0 -0
  559. /package/dist/kolibri/{align-beb00370.js.map → align-d68fcc60.js.map} +0 -0
  560. /package/dist/kolibri/{alignment-4c0cd265.js.map → alignment-ae1fa968.js.map} +0 -0
  561. /package/dist/kolibri/{app-globals-529eaac0.js.map → app-globals-0ada6761.js.map} +0 -0
  562. /package/dist/kolibri/{aria-current-09b1cf77.js.map → aria-current-2533cca9.js.map} +0 -0
  563. /package/dist/kolibri/{associated.controller-367d4241.js.map → associated.controller-a9205263.js.map} +0 -0
  564. /package/dist/kolibri/{color-51fda110.js.map → color-45ba7bb3.js.map} +0 -0
  565. /package/dist/kolibri/{controller-4693379a.js.map → controller-6ba49adb.js.map} +0 -0
  566. /package/dist/kolibri/{controller-67717038.js.map → controller-9180c6ea.js.map} +0 -0
  567. /package/dist/kolibri/{controller-09b624a5.js.map → controller-be9041f0.js.map} +0 -0
  568. /package/dist/kolibri/{controller-d9f61e71.js.map → controller-c37cc04c.js.map} +0 -0
  569. /package/dist/kolibri/{controller-icon-7d98b00e.js.map → controller-icon-0429172d.js.map} +0 -0
  570. /package/dist/kolibri/{custom-class-76b06f69.js.map → custom-class-ca4a362d.js.map} +0 -0
  571. /package/dist/kolibri/{devtools-2bd953c4.js.map → devtools-493a8172.js.map} +0 -0
  572. /package/dist/kolibri/{form-field-msg-85face25.js.map → form-field-msg-975814de.js.map} +0 -0
  573. /package/dist/kolibri/{hide-label-000c16f6.js.map → hide-label-181cab2f.js.map} +0 -0
  574. /package/dist/kolibri/{icons-82e358f3.js.map → icons-3d6a581a.js.map} +0 -0
  575. /package/dist/kolibri/{image-source-8584365e.js.map → image-source-e7abcbeb.js.map} +0 -0
  576. /package/dist/kolibri/{label-bce4f328.js.map → label-218f516d.js.map} +0 -0
  577. /package/dist/kolibri/{open-e11c786d.js.map → open-afad812b.js.map} +0 -0
  578. /package/dist/kolibri/{prop.validators-3017e14b.js.map → prop.validators-0872ab9e.js.map} +0 -0
  579. /package/dist/kolibri/{rows-4627c8c8.js.map → rows-b321b23e.js.map} +0 -0
  580. /package/dist/kolibri/{show-418f2510.js.map → show-8dc521bf.js.map} +0 -0
  581. /package/dist/kolibri/{suggestions-f022cab2.js.map → suggestions-0d70b04d.js.map} +0 -0
  582. /package/dist/kolibri/{tooltip-align-a16d498e.js.map → tooltip-align-44ee374a.js.map} +0 -0
  583. /package/dist/kolibri/{validation-8785c967.js.map → validation-0a2240d1.js.map} +0 -0
  584. /package/dist/kolibri/{validation-f641b69f.js.map → validation-dc1ebfa2.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["defaultStyleCss","KolInputRadioDefaultStyle0","KolInputRadio","render","ariaDescribedBy","hasError","getRenderStates","this","state","hasExpertSlot","showExpertSlot","_label","h","Host","key","class","disabled","_disabled","error","required","_required","_hideError","_orientation","slot","_options","map","option","index","customId","_id","slotName","KolInputTag","radio","Boolean","_hideLabel","_hint","label","_renderNoLabel","_slotName","_tooltipAlign","_touched","Object","assign","ref","_value","value","catchRef","undefined","title","accessKey","_accessKey","length","join","type","id","checked","name","_name","tabIndex","_tabIndex","controller","onFacade","onChange","onClick","htmlFor","style","height","margin","padding","visibility","FormFieldMsg","_alert","_error","constructor","hostRef","propagateFocus","host","event","target","HTMLInputElement","getOptionByKey","stopPropagation","tryToDispatchKoliBriEvent","setFormAssociatedValue","_a","_on","setValue","nonce","InputRadioController","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideLabel","validateHideError","validateHint","validateId","validateLabel","validateList","validateOptions","validateName","validateOn","validateOrientation","validateRequired","validateSyncValueBySelector","validateTabIndex","validateTouched","validateValue","componentWillLoad"],"sources":["src/components/input-radio/style.scss?tag=kol-input-radio&mode=default&encapsulation=shadow","src/components/input-radio/component.tsx"],"sourcesContent":["@import '../input';\n\n:host {\n\t--border-width: 2px;\n\t--input-size: 1.5em;\n}\n\n.kol-input .icons {\n\tdisplay: none;\n}\n\nlabel {\n\tcursor: pointer;\n}\n\ninput {\n\tappearance: none;\n\tborder-width: var(--border-width);\n\tborder-style: solid;\n\tborder-radius: 100%;\n\tcursor: pointer;\n\tdisplay: flex;\n\theight: var(--input-size);\n\tmargin: 0;\n\tmin-height: var(--input-size);\n\tmin-width: var(--input-size);\n\tpadding: 0;\n\twidth: var(--input-size);\n}\n\ninput:before {\n\tborder-radius: 100%;\n\tcontent: '';\n\tmargin: auto;\n\theight: calc(var(--input-size) / 2);\n\twidth: calc(var(--input-size) / 2);\n}\n\ninput:checked:before {\n\tbackground-color: #000;\n}\n\n@media (forced-colors: active) {\n\tinput:checked:before {\n\t\t/* Give it a visible background in forced colors mode */\n\t\tbackground: highlight !important;\n\t}\n}\n\nfieldset {\n\tdisplay: flex;\n}\n\nfieldset.vertical {\n\tflex-direction: column;\n}\n\nfieldset .input-slot {\n\talign-items: center;\n\tdisplay: flex;\n}\n\n/* required star is on fieldset legend */\n.required label > span::after {\n\tcontent: '';\n}\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { InputTypeOnDefault, Option } from '../../types/input/types';\nimport { Orientation } from '../../types/orientation';\nimport { HideErrorPropType } from '../../types/props/hide-error';\nimport { IdPropType } from '../../types/props/id';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { NamePropType } from '../../types/props/name';\nimport { OptionsPropType } from '../../types/props/options';\nimport { SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\nimport { TooltipAlignPropType } from '../../types/props/tooltip-align';\nimport { StencilUnknown } from '../../types/unknown';\nimport { W3CInputValue } from '../../types/w3c';\nimport { nonce } from '../../utils/dev.utils';\nimport { stopPropagation, tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { propagateFocus, showExpertSlot } from '../../utils/reuse';\nimport { FormFieldMsg } from '../@shared/form-field-msg';\nimport { getRenderStates } from '../input/controller';\nimport { InputRadioController } from './controller';\nimport { API, States } from './types';\nimport { KolInputTag } from '../../core/component-names';\n\n/**\n * @slot - Die Legende/Überschrift der Radiobuttons.\n */\n@Component({\n\ttag: 'kol-input-radio',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolInputRadio implements API {\n\t@Element() private readonly host?: HTMLKolInputRadioElement;\n\n\tprivate readonly catchRef = (ref?: HTMLInputElement) => {\n\t\tpropagateFocus(this.host, ref);\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst { ariaDescribedBy, hasError } = getRenderStates(this.state);\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\n\t\treturn (\n\t\t\t<Host class=\"kol-input-radio\">\n\t\t\t\t<fieldset\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tdisabled: this.state._disabled === true,\n\t\t\t\t\t\terror: hasError === true,\n\t\t\t\t\t\trequired: this.state._required === true,\n\t\t\t\t\t\t'hidden-error': this._hideError === true,\n\t\t\t\t\t\t[this.state._orientation]: true,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<legend class=\"block w-full mb-1 leading-normal\">\n\t\t\t\t\t\t{/* INFO: span is needed for css styling :after content like a star (*) or optional text ! */}\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t{/* INFO: label comes with any html tag or as plain text! */}\n\t\t\t\t\t\t\t{/* TODO: der folgende Slot ohne Name muss später entfernt werden */}\n\t\t\t\t\t\t\t<span slot=\"label\">{hasExpertSlot ? <slot></slot> : this.state._label}</span>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</legend>\n\t\t\t\t\t{this.state._options.map((option, index) => {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Damit der Value einer Option ein beliebigen Typ haben kann\n\t\t\t\t\t\t * muss man auf HTML-Ebene den Value auf einen String-Wert\n\t\t\t\t\t\t * mappen. Das tun wir mittels der Map.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tconst customId = `${this.state._id}-${index}`;\n\t\t\t\t\t\tconst slotName = `radio-${index}`;\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<KolInputTag\n\t\t\t\t\t\t\t\tclass={{\n\t\t\t\t\t\t\t\t\tradio: true,\n\t\t\t\t\t\t\t\t\tdisabled: Boolean(this.state._disabled || option.disabled),\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tkey={customId}\n\t\t\t\t\t\t\t\t_disabled={this.state._disabled || option.disabled}\n\t\t\t\t\t\t\t\t_hideLabel={this.state._hideLabel}\n\t\t\t\t\t\t\t\t_hint={this.state._hint}\n\t\t\t\t\t\t\t\t_id={customId}\n\t\t\t\t\t\t\t\t_label={option.label as string}\n\t\t\t\t\t\t\t\t_renderNoLabel={true}\n\t\t\t\t\t\t\t\t_required={this.state._required}\n\t\t\t\t\t\t\t\t_slotName={slotName}\n\t\t\t\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t\t\t\t_touched={this.state._touched}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<div slot={slotName} class=\"radio-input-wrapper\">\n\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\tref={this.state._value === option.value ? this.catchRef : undefined}\n\t\t\t\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\t\t\t\taccessKey={this.state._accessKey} // by radio?!\n\t\t\t\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\t\t\t\t\t\t\t\t\t\taria-label={this.state._hideLabel && typeof option.label === 'string' ? option.label : undefined}\n\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\tid={customId}\n\t\t\t\t\t\t\t\t\t\tchecked={this.state._value === option.value}\n\t\t\t\t\t\t\t\t\t\tname={this.state._name || this.state._id}\n\t\t\t\t\t\t\t\t\t\tdisabled={this.state._disabled || option.disabled}\n\t\t\t\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\t\t\t\ttabIndex={this.state._tabIndex}\n\t\t\t\t\t\t\t\t\t\tvalue={`-${index}`}\n\t\t\t\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\t\t\t\tonChange={this.onChange}\n\t\t\t\t\t\t\t\t\t\tonClick={undefined} // onClick is not needed since onChange already triggers the correct event\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<label\n\t\t\t\t\t\t\t\t\t\tclass=\"radio-label\"\n\t\t\t\t\t\t\t\t\t\thtmlFor={`${customId}`}\n\t\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\t\theight: this.state._hideLabel ? '0' : undefined,\n\t\t\t\t\t\t\t\t\t\t\tmargin: this.state._hideLabel ? '0' : undefined,\n\t\t\t\t\t\t\t\t\t\t\tpadding: this.state._hideLabel ? '0' : undefined,\n\t\t\t\t\t\t\t\t\t\t\tvisibility: this.state._hideLabel ? 'hidden' : undefined,\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\t\t\t\t<span>{option.label}</span>\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</KolInputTag>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t\t{hasError && <FormFieldMsg _alert={this.state._alert} _hideError={this.state._hideError} _error={this.state._error} _id={this.state._id} />}\n\t\t\t\t</fieldset>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: InputRadioController;\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: string;\n\n\t/**\n\t * Defines whether the screen-readers should read out the notification.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: boolean = true;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t * @TODO: Change type back to `DisabledPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Defines the error message text.\n\t */\n\t@Prop() public _error?: string;\n\n\t/**\n\t * Hides the error message but leaves it in the DOM for the input's aria-describedby.\n\t * @TODO: Change type back to `HideErrorPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _hideError?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the hint text.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: IdPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label?: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Deprecated: Gibt die Liste der Optionen für das Eingabefeld an.\n\t * @deprecated Use _options.\n\t */\n\t@Prop() public _list?: Stringified<Option<W3CInputValue>[]>;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: NamePropType;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für das Input-Event an.\n\t */\n\t@Prop() public _on?: InputTypeOnDefault;\n\n\t/**\n\t * Options the user can choose from.\n\t */\n\t@Prop() public _options?: OptionsPropType;\n\n\t/**\n\t * Defines whether the orientation of the component is horizontal or vertical.\n\t */\n\t@Prop() public _orientation?: Orientation = 'vertical';\n\n\t/**\n\t * Makes the input element required.\n\t * @TODO: Change type back to `RequiredPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _required?: boolean = false;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Shows if the input was touched by a user.\n\t * @TODO: Change type back to `TouchedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _touched?: boolean = false;\n\n\t/**\n\t * Defines the value of the input.\n\t * @see Known bug: https://github.com/ionic-team/stencil/issues/3902\n\t */\n\t@Prop() public _value?: Stringified<W3CInputValue>;\n\n\t@State() public state: States = {\n\t\t_hideError: false,\n\t\t_id: `id-${nonce()}`,\n\t\t_label: '…', // ⚠ required\n\t\t_options: [],\n\t\t_orientation: 'vertical',\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new InputRadioController(this, 'radio', this.host);\n\t}\n\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: string): void {\n\t\tthis.controller.validateAccessKey(value);\n\t}\n\n\t@Watch('_alert')\n\tpublic validateAlert(value?: boolean): void {\n\t\tthis.controller.validateAlert(value);\n\t}\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: boolean): void {\n\t\tthis.controller.validateDisabled(value);\n\t}\n\n\t@Watch('_error')\n\tpublic validateError(value?: string): void {\n\t\tthis.controller.validateError(value);\n\t}\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tthis.controller.validateHideLabel(value);\n\t}\n\n\t@Watch('_hideError')\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tthis.controller.validateHideError(value);\n\t}\n\n\t@Watch('_hint')\n\tpublic validateHint(value?: string): void {\n\t\tthis.controller.validateHint(value);\n\t}\n\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\tthis.controller.validateId(value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tthis.controller.validateLabel(value);\n\t}\n\n\t@Watch('_list')\n\tpublic validateList(value?: Stringified<Option<W3CInputValue>[]>): void {\n\t\tthis.validateOptions(value);\n\t}\n\n\t@Watch('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tthis.controller.validateOn(value);\n\t}\n\n\t@Watch('_options')\n\tpublic validateOptions(value?: OptionsPropType): void {\n\t\tthis.controller.validateOptions(value);\n\t}\n\n\t@Watch('_orientation')\n\tpublic validateOrientation(value?: Orientation): void {\n\t\tthis.controller.validateOrientation(value);\n\t}\n\n\t@Watch('_required')\n\tpublic validateRequired(value?: boolean): void {\n\t\tthis.controller.validateRequired(value);\n\t}\n\n\t@Watch('_syncValueBySelector')\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tthis.controller.validateSyncValueBySelector(value);\n\t}\n\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tthis.controller.validateTabIndex(value);\n\t}\n\n\t@Watch('_touched')\n\tpublic validateTouched(value?: boolean): void {\n\t\tthis.controller.validateTouched(value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: Stringified<StencilUnknown>): void {\n\t\tthis.controller.validateValue(value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis._alert = this._alert === true;\n\t\tthis._touched = this._touched === true;\n\t\tthis.controller.componentWillLoad(this.onChange);\n\t}\n\n\tprivate onChange = (event: Event): void => {\n\t\tif (event.target instanceof HTMLInputElement) {\n\t\t\tconst option = this.controller.getOptionByKey(event.target.value);\n\t\t\tif (option !== undefined) {\n\t\t\t\t// Event handling\n\t\t\t\tstopPropagation(event);\n\t\t\t\ttryToDispatchKoliBriEvent('change', this.host, option.value);\n\n\t\t\t\t// Static form handling\n\t\t\t\tthis.controller.setFormAssociatedValue(option.value);\n\n\t\t\t\t// Callback\n\t\t\t\tif (typeof this.state._on?.onChange === 'function') {\n\t\t\t\t\tthis.state._on.onChange(event, option.value);\n\t\t\t\t}\n\n\t\t\t\t// TODO: Prüfen, was setValue noch genau macht, wir syncValue ja jetzt.\n\t\t\t\tthis.controller.setValue(event, option.value as string); // TODO: fix type\n\t\t\t}\n\t\t}\n\t};\n}\n"],"mappings":";;;inBAAA,MAAMA,EAAkB,ygFACxB,MAAAC,EAAeD,E,MCgCFE,EAAa,MAOlB,MAAAC,GACN,MAAMC,gBAAEA,EAAeC,SAAEA,GAAaC,EAAgBC,KAAKC,OAC3D,MAAMC,EAAgBC,EAAeH,KAAKC,MAAMG,QAEhD,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,mBACXH,EAAA,YAAAE,IAAA,2CACCC,MAAO,CACNC,SAAUT,KAAKC,MAAMS,YAAc,KACnCC,MAAOb,IAAa,KACpBc,SAAUZ,KAAKC,MAAMY,YAAc,KACnC,eAAgBb,KAAKc,aAAe,KACpC,CAACd,KAAKC,MAAMc,cAAe,OAG5BV,EAAA,UAAAE,IAAA,2CAAQC,MAAM,oCAEbH,EAAA,QAAAE,IAAA,4CAGCF,EAAA,QAAAE,IAAA,2CAAMS,KAAK,SAASd,EAAgBG,EAAA,aAAgBL,KAAKC,MAAMG,UAGhEJ,KAAKC,MAAMgB,SAASC,KAAI,CAACC,EAAQC,KAMjC,MAAMC,EAAW,GAAGrB,KAAKC,MAAMqB,OAAOF,IACtC,MAAMG,EAAW,SAASH,IAC1B,OACCf,EAACmB,EAAW,CACXhB,MAAO,CACNiB,MAAO,KACPhB,SAAUiB,QAAQ1B,KAAKC,MAAMS,WAAaS,EAAOV,WAElDF,IAAKc,EACLX,UAAWV,KAAKC,MAAMS,WAAaS,EAAOV,SAC1CkB,WAAY3B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WkC,kBAAkBjD,E,CAI5B,YAAAkD,CAAalD,GACnBtC,KAAKqD,WAAWmC,aAAalD,E,CAIvB,UAAAmD,CAAWnD,GACjBtC,KAAKqD,WAAWoC,WAAWnD,E,CAIrB,aAAAoD,CAAcpD,GACpBtC,KAAKqD,WAAWqC,cAAcpD,E,CAIxB,YAAAqD,CAAarD,GACnBtC,KAAK4F,gBAAgBtD,E,CAIf,YAAAuD,CAAavD,GACnBtC,KAAKqD,WAAWwC,aAAavD,E,CAIvB,UAAAwD,CAAWxD,GACjBtC,KAAKqD,WAAWyC,WAAWxD,E,CAIrB,eAAAsD,CAAgBtD,GACtBtC,KAAKqD,WAAWuC,gBAAgBtD,E,CAI1B,mBAAAyD,CAAoBzD,GAC1BtC,KAAKqD,WAAW0C,oBAAoBzD,E,CAI9B,gBAAA0D,CAAiB1D,GACvBtC,KAAKqD,WAAW2C,iBAAiB1D,E,CAI3B,2BAAA2D,CAA4B3D,GAClCtC,KAAKqD,WAAW4C,4BAA4B3D,E,CAItC,gBAAA4D,CAAiB5D,GACvBtC,KAAKqD,WAAW6C,iBAAiB5D,E,CAI3B,eAAA6D,CAAgB7D,GACtBtC,KAAKqD,WAAW8C,gBAAgB7D,E,CAI1B,aAAA8D,CAAc9D,GACpBtC,KAAKqD,WAAW+C,cAAc9D,E,CAGxB,iBAAA+D,GACNrG,KAAKgE,OAAShE,KAAKgE,SAAW,KAC9BhE,KAAKiC,SAAWjC,KAAKiC,WAAa,KAClCjC,KAAKqD,WAAWgD,kBAAkBrG,KAAKuD,S"}
1
+ {"version":3,"names":["defaultStyleCss","KolInputRadioDefaultStyle0","KolInputRadio","render","ariaDescribedBy","hasError","getRenderStates","this","state","hasExpertSlot","showExpertSlot","_label","h","Host","key","class","disabled","_disabled","error","required","_required","_hideError","_orientation","slot","_options","map","option","index","customId","_id","slotName","KolInputTag","radio","Boolean","_hideLabel","_hint","label","_renderNoLabel","_slotName","_tooltipAlign","_touched","Object","assign","ref","_value","value","catchRef","undefined","title","accessKey","_accessKey","length","join","type","id","checked","name","_name","tabIndex","_tabIndex","controller","onFacade","onChange","onClick","htmlFor","style","height","margin","padding","visibility","FormFieldMsg","_alert","_error","constructor","hostRef","propagateFocus","host","event","target","HTMLInputElement","getOptionByKey","stopPropagation","tryToDispatchKoliBriEvent","setFormAssociatedValue","_a","_on","setValue","nonce","InputRadioController","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideLabel","validateHideError","validateHint","validateId","validateLabel","validateList","validateOptions","validateName","validateOn","validateOrientation","validateRequired","validateSyncValueBySelector","validateTabIndex","validateTouched","validateValue","componentWillLoad"],"sources":["src/components/input-radio/style.scss?tag=kol-input-radio&mode=default&encapsulation=shadow","src/components/input-radio/component.tsx"],"sourcesContent":["@import '../input';\n\n:host {\n\t--border-width: 2px;\n\t--input-size: 1.5em;\n}\n\n.kol-input .icons {\n\tdisplay: none;\n}\n\nlabel {\n\tcursor: pointer;\n}\n\ninput {\n\tappearance: none;\n\tborder-width: var(--border-width);\n\tborder-style: solid;\n\tborder-radius: 100%;\n\tcursor: pointer;\n\tdisplay: flex;\n\theight: var(--input-size);\n\tmargin: 0;\n\tmin-height: var(--input-size);\n\tmin-width: var(--input-size);\n\tpadding: 0;\n\twidth: var(--input-size);\n}\n\ninput:before {\n\tborder-radius: 100%;\n\tcontent: '';\n\tmargin: auto;\n\theight: calc(var(--input-size) / 2);\n\twidth: calc(var(--input-size) / 2);\n}\n\ninput:checked:before {\n\tbackground-color: #000;\n}\n\n@media (forced-colors: active) {\n\tinput:checked:before {\n\t\t/* Give it a visible background in forced colors mode */\n\t\tbackground: highlight !important;\n\t}\n}\n\nfieldset {\n\tdisplay: flex;\n}\n\nfieldset.vertical {\n\tflex-direction: column;\n}\n\nfieldset .input-slot {\n\talign-items: center;\n\tdisplay: flex;\n}\n\n/* required star is on fieldset legend */\n.required label > span::after {\n\tcontent: '';\n}\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { InputTypeOnDefault, Option } from '../../types/input/types';\nimport { Orientation } from '../../types/orientation';\nimport { HideErrorPropType } from '../../types/props/hide-error';\nimport { IdPropType } from '../../types/props/id';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { NamePropType } from '../../types/props/name';\nimport { OptionsPropType } from '../../types/props/options';\nimport { SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\nimport { TooltipAlignPropType } from '../../types/props/tooltip-align';\nimport { StencilUnknown } from '../../types/unknown';\nimport { W3CInputValue } from '../../types/w3c';\nimport { nonce } from '../../utils/dev.utils';\nimport { stopPropagation, tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { propagateFocus, showExpertSlot } from '../../utils/reuse';\nimport { FormFieldMsg } from '../@shared/form-field-msg';\nimport { getRenderStates } from '../input/controller';\nimport { InputRadioController } from './controller';\nimport { API, States } from './types';\nimport { KolInputTag } from '../../core/component-names';\n\n/**\n * @slot - Die Legende/Überschrift der Radiobuttons.\n */\n@Component({\n\ttag: 'kol-input-radio',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolInputRadio implements API {\n\t@Element() private readonly host?: HTMLKolInputRadioElement;\n\n\tprivate readonly catchRef = (ref?: HTMLInputElement) => {\n\t\tpropagateFocus(this.host, ref);\n\t};\n\n\tpublic render(): JSX.Element {\n\t\tconst { ariaDescribedBy, hasError } = getRenderStates(this.state);\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\n\t\treturn (\n\t\t\t<Host class=\"kol-input-radio\">\n\t\t\t\t<fieldset\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tdisabled: this.state._disabled === true,\n\t\t\t\t\t\terror: hasError === true,\n\t\t\t\t\t\trequired: this.state._required === true,\n\t\t\t\t\t\t'hidden-error': this._hideError === true,\n\t\t\t\t\t\t[this.state._orientation]: true,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<legend class=\"block w-full mb-1 leading-normal\">\n\t\t\t\t\t\t{/* INFO: span is needed for css styling :after content like a star (*) or optional text ! */}\n\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t{/* INFO: label comes with any html tag or as plain text! */}\n\t\t\t\t\t\t\t{/* TODO: der folgende Slot ohne Name muss später entfernt werden */}\n\t\t\t\t\t\t\t<span slot=\"label\">{hasExpertSlot ? <slot></slot> : this.state._label}</span>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</legend>\n\t\t\t\t\t{this.state._options.map((option, index) => {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Damit der Value einer Option ein beliebigen Typ haben kann\n\t\t\t\t\t\t * muss man auf HTML-Ebene den Value auf einen String-Wert\n\t\t\t\t\t\t * mappen. Das tun wir mittels der Map.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tconst customId = `${this.state._id}-${index}`;\n\t\t\t\t\t\tconst slotName = `radio-${index}`;\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<KolInputTag\n\t\t\t\t\t\t\t\tclass={{\n\t\t\t\t\t\t\t\t\tradio: true,\n\t\t\t\t\t\t\t\t\tdisabled: Boolean(this.state._disabled || option.disabled),\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tkey={customId}\n\t\t\t\t\t\t\t\t_disabled={this.state._disabled || option.disabled}\n\t\t\t\t\t\t\t\t_hideLabel={this.state._hideLabel}\n\t\t\t\t\t\t\t\t_hint={this.state._hint}\n\t\t\t\t\t\t\t\t_id={customId}\n\t\t\t\t\t\t\t\t_label={option.label as string}\n\t\t\t\t\t\t\t\t_renderNoLabel={true}\n\t\t\t\t\t\t\t\t_required={this.state._required}\n\t\t\t\t\t\t\t\t_slotName={slotName}\n\t\t\t\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t\t\t\t_touched={this.state._touched}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<div slot={slotName} class=\"radio-input-wrapper\">\n\t\t\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\t\t\tref={this.state._value === option.value ? this.catchRef : undefined}\n\t\t\t\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\t\t\t\taccessKey={this.state._accessKey} // by radio?!\n\t\t\t\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\t\t\t\t\t\t\t\t\t\taria-label={this.state._hideLabel && typeof option.label === 'string' ? option.label : undefined}\n\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\tid={customId}\n\t\t\t\t\t\t\t\t\t\tchecked={this.state._value === option.value}\n\t\t\t\t\t\t\t\t\t\tname={this.state._name || this.state._id}\n\t\t\t\t\t\t\t\t\t\tdisabled={this.state._disabled || option.disabled}\n\t\t\t\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\t\t\t\ttabIndex={this.state._tabIndex}\n\t\t\t\t\t\t\t\t\t\tvalue={`-${index}`}\n\t\t\t\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\t\t\t\tonChange={this.onChange}\n\t\t\t\t\t\t\t\t\t\tonClick={undefined} // onClick is not needed since onChange already triggers the correct event\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<label\n\t\t\t\t\t\t\t\t\t\tclass=\"radio-label\"\n\t\t\t\t\t\t\t\t\t\thtmlFor={`${customId}`}\n\t\t\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\t\t\theight: this.state._hideLabel ? '0' : undefined,\n\t\t\t\t\t\t\t\t\t\t\tmargin: this.state._hideLabel ? '0' : undefined,\n\t\t\t\t\t\t\t\t\t\t\tpadding: this.state._hideLabel ? '0' : undefined,\n\t\t\t\t\t\t\t\t\t\t\tvisibility: this.state._hideLabel ? 'hidden' : undefined,\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\t\t\t\t<span>{option.label}</span>\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</KolInputTag>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t\t{hasError && <FormFieldMsg _alert={this.state._alert} _hideError={this.state._hideError} _error={this.state._error} _id={this.state._id} />}\n\t\t\t\t</fieldset>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: InputRadioController;\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: string;\n\n\t/**\n\t * Defines whether the screen-readers should read out the notification.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: boolean = true;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t * @TODO: Change type back to `DisabledPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Defines the error message text.\n\t */\n\t@Prop() public _error?: string;\n\n\t/**\n\t * Hides the error message but leaves it in the DOM for the input's aria-describedby.\n\t * @TODO: Change type back to `HideErrorPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _hideError?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the hint text.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: IdPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label?: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Deprecated: Gibt die Liste der Optionen für das Eingabefeld an.\n\t * @deprecated Use _options.\n\t */\n\t@Prop() public _list?: Stringified<Option<W3CInputValue>[]>;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: NamePropType;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für das Input-Event an.\n\t */\n\t@Prop() public _on?: InputTypeOnDefault;\n\n\t/**\n\t * Options the user can choose from.\n\t */\n\t@Prop() public _options?: OptionsPropType;\n\n\t/**\n\t * Defines whether the orientation of the component is horizontal or vertical.\n\t */\n\t@Prop() public _orientation?: Orientation = 'vertical';\n\n\t/**\n\t * Makes the input element required.\n\t * @TODO: Change type back to `RequiredPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _required?: boolean = false;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Shows if the input was touched by a user.\n\t * @TODO: Change type back to `TouchedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _touched?: boolean = false;\n\n\t/**\n\t * Defines the value of the input.\n\t * @see Known bug: https://github.com/ionic-team/stencil/issues/3902\n\t */\n\t@Prop() public _value?: Stringified<W3CInputValue>;\n\n\t@State() public state: States = {\n\t\t_hideError: false,\n\t\t_id: `id-${nonce()}`,\n\t\t_label: '…', // ⚠ required\n\t\t_options: [],\n\t\t_orientation: 'vertical',\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new InputRadioController(this, 'radio', this.host);\n\t}\n\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: string): void {\n\t\tthis.controller.validateAccessKey(value);\n\t}\n\n\t@Watch('_alert')\n\tpublic validateAlert(value?: boolean): void {\n\t\tthis.controller.validateAlert(value);\n\t}\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: boolean): void {\n\t\tthis.controller.validateDisabled(value);\n\t}\n\n\t@Watch('_error')\n\tpublic validateError(value?: string): void {\n\t\tthis.controller.validateError(value);\n\t}\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tthis.controller.validateHideLabel(value);\n\t}\n\n\t@Watch('_hideError')\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tthis.controller.validateHideError(value);\n\t}\n\n\t@Watch('_hint')\n\tpublic validateHint(value?: string): void {\n\t\tthis.controller.validateHint(value);\n\t}\n\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\tthis.controller.validateId(value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tthis.controller.validateLabel(value);\n\t}\n\n\t@Watch('_list')\n\tpublic validateList(value?: Stringified<Option<W3CInputValue>[]>): void {\n\t\tthis.validateOptions(value);\n\t}\n\n\t@Watch('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tthis.controller.validateOn(value);\n\t}\n\n\t@Watch('_options')\n\tpublic validateOptions(value?: OptionsPropType): void {\n\t\tthis.controller.validateOptions(value);\n\t}\n\n\t@Watch('_orientation')\n\tpublic validateOrientation(value?: Orientation): void {\n\t\tthis.controller.validateOrientation(value);\n\t}\n\n\t@Watch('_required')\n\tpublic validateRequired(value?: boolean): void {\n\t\tthis.controller.validateRequired(value);\n\t}\n\n\t@Watch('_syncValueBySelector')\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tthis.controller.validateSyncValueBySelector(value);\n\t}\n\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tthis.controller.validateTabIndex(value);\n\t}\n\n\t@Watch('_touched')\n\tpublic validateTouched(value?: boolean): void {\n\t\tthis.controller.validateTouched(value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: Stringified<StencilUnknown>): void {\n\t\tthis.controller.validateValue(value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis._alert = this._alert === true;\n\t\tthis._touched = this._touched === true;\n\t\tthis.controller.componentWillLoad(this.onChange);\n\t}\n\n\tprivate onChange = (event: Event): void => {\n\t\tif (event.target instanceof HTMLInputElement) {\n\t\t\tconst option = this.controller.getOptionByKey(event.target.value);\n\t\t\tif (option !== undefined) {\n\t\t\t\t// Event handling\n\t\t\t\tstopPropagation(event);\n\t\t\t\ttryToDispatchKoliBriEvent('change', this.host, option.value);\n\n\t\t\t\t// Static form handling\n\t\t\t\tthis.controller.setFormAssociatedValue(option.value);\n\n\t\t\t\t// Callback\n\t\t\t\tif (typeof this.state._on?.onChange === 'function') {\n\t\t\t\t\tthis.state._on.onChange(event, option.value);\n\t\t\t\t}\n\n\t\t\t\t// TODO: Prüfen, was setValue noch genau macht, wir syncValue ja jetzt.\n\t\t\t\tthis.controller.setValue(event, option.value as string); // TODO: fix type\n\t\t\t}\n\t\t}\n\t};\n}\n"],"mappings":";;;inBAAA,MAAMA,EAAkB,ygFACxB,MAAAC,EAAeD,E,MCgCFE,EAAa,MAOlB,MAAAC,GACN,MAAMC,gBAAEA,EAAeC,SAAEA,GAAaC,EAAgBC,KAAKC,OAC3D,MAAMC,EAAgBC,EAAeH,KAAKC,MAAMG,QAEhD,OACCC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,mBACXH,EAAA,YAAAE,IAAA,2CACCC,MAAO,CACNC,SAAUT,KAAKC,MAAMS,YAAc,KACnCC,MAAOb,IAAa,KACpBc,SAAUZ,KAAKC,MAAMY,YAAc,KACnC,eAAgBb,KAAKc,aAA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tBtC,KAAKqD,WAAW8C,gBAAgB7D,E,CAI1B,aAAA8D,CAAc9D,GACpBtC,KAAKqD,WAAW+C,cAAc9D,E,CAGxB,iBAAA+D,GACNrG,KAAKgE,OAAShE,KAAKgE,SAAW,KAC9BhE,KAAKiC,SAAWjC,KAAKiC,WAAa,KAClCjC,KAAKqD,WAAWgD,kBAAkBrG,KAAKuD,S"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as i,H as t,r as e,g as a}from"./index-a051748e.js";import{n as s}from"./dev.utils-f829063f.js";import{s as n,a as o}from"./reuse-d79ab469.js";import{p as r}from"./controller-7832022a.js";import{g as l}from"./controller-d9f61e71.js";import{v as d}from"./suggestions-f022cab2.js";import{w as h,e as p}from"./prop.validators-3017e14b.js";import{I as u}from"./controller-icon-7d98b00e.js";import{m as c}from"./component-names-fed305c7.js";import"./a11y.tipps-798efb1a.js";import"./hide-label-000c16f6.js";import"./label-bce4f328.js";import"./events-fa760b68.js";import"./tab-index-22839788.js";import"./associated.controller-367d4241.js";import"./index-117bd1aa.js";import"./icons-82e358f3.js";class f extends u{constructor(t,e,i){super(t,e,i),this.component=t}validateAutoComplete(t){h(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateList(t){Array.isArray(t)&&this.validateSuggestions(t.map((t=>t.value)))}validateMax(t){p(this.component,"_max",t)}validateMin(t){p(this.component,"_min",t)}validateStep(t){p(this.component,"_step",t)}validateSuggestions(t){d(this.component,t)}validateValue(t){p(this.component,"_value",t),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateList(this.component._list),this.validateMax(this.component._max),this.validateMin(this.component._min),this.validateStep(this.component._step),this.validateSuggestions(this.component._suggestions),this.validateValue(this.component._value)}}const b=':host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}.required label>span::after,.required legend>span::after{content:"*"}:host{display:block}input,textarea{cursor:text}input[type=checkbox],input[type=color],input[type=file],input[type=radio],input[type=range],label,option,select{cursor:pointer}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select[multiple] option,textarea{font-size:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}.kol-input{display:grid}.kol-input .input-slot{flex-grow:1}input:not([type=checkbox],[type=radio]),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>.kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}.kol-input.required .input-tooltip .span-label::after{content:"*"}.inputs-wrapper{align-items:center;display:flex;flex-direction:row}input[type=number]{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size);width:var(--kolibri-input-range--input-number--width)}input[type=range]{appearance:none;background-color:#d3d3d3;border:1px solid #000;display:inline-block;flex-grow:1;height:calc(8rem / var(--kolibri-root-font-size, 16));line-height:1.5em;padding:0;margin:0;width:0}input[type=range]::-webkit-slider-thumb{box-sizing:border-box;background-color:#000;height:20px;width:20px;border-radius:20px;cursor:pointer;-webkit-appearance:none}input[type=range]::-moz-range-thumb{box-sizing:border-box;background-color:#000;height:20px;width:20px;border-radius:20px;cursor:pointer;-moz-appearance:none}@media (prefers-contrast: more){::-webkit-slider-thumb{outline:1px solid currentColor}}',m=b,v=class{componentDidLoad(){var t;!this._value&&(null===(t=this.refInputRange)||void 0===t?void 0:t.value)&&this.validateValue(parseFloat(this.refInputRange.value))}render(){const{ariaDescribedBy:e}=l(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=n(this.state._label);return i(t,{key:"b5f2580bb36155124c1b67a2fff723f4ce7689c2",class:"kol-input-range"},i(c,{key:"8bf248f20e39a97b77d4de1149d8fea7f9b9741a",class:{range:!0,"hide-label":!!this.state._hideLabel},_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,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},i("span",{key:"1c045418b6b3c994aee76360ef90726e77ef0d90",slot:"label"},s?i("slot",null):this.state._label),i("div",{key:"92bbd82fafdef83510b68ac60041d04b28ae6de8",slot:"input"},i("div",{key:"02d303b905994801e7a0f8594de6855703f679e4",class:"inputs-wrapper",style:{"--kolibri-input-range--input-number--width":`${this.state._max}`.length+.5+"em"}},i("input",Object.assign({key:"e78ec8aebe411bf1f34af7fc34f5829d498ed50e",ref:this.catchInputRangeRef,title:"",accessKey:this.state._accessKey,"aria-describedby":e.length>0?e.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,"aria-hidden":"true",autoCapitalize:"off",autoComplete:this.state._autoComplete,autoCorrect:"off",disabled:this.state._disabled,list:a?`${this.state._id}-list`:void 0,max:this.state._max,min:this.state._min,name:this.state._name?`${this.state._name}-range`:void 0,spellcheck:"false",step:this.state._step,tabIndex:-1,type:"range",value:this.state._value},this.controller.onFacade,{onChange:this.onChange})),i("input",Object.assign({key:"6b17919d8d0aa57f451ac5d43d562b432c551795",ref:this.catchInputNumberRef,title:"",accessKey:this.state._accessKey,"aria-describedby":e.length>0?e.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoComplete:this.state._autoComplete,autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,list:a?`${this.state._id}-list`:void 0,max:this.state._max,min:this.state._min,name:this.state._name?`${this.state._name}-number`:void 0,step:this.state._step,type:"number",value:this.state._value},this.controller.onFacade,{onKeyDown:this.onKeyDown,onChange:this.onChange}))),a&&[i("datalist",{id:`${this.state._id}-list`},this.state._suggestions.map((t=>i("option",{value:t}))))])))}constructor(t){e(this,t),this.catchInputNumberRef=t=>{var e;t&&(this.refInputNumber=t,o(this.host,t),!this._value&&(null===(e=this.refInputNumber)||void 0===e?void 0:e.value)&&this.validateValue(parseFloat(this.refInputNumber.value)))},this.catchInputRangeRef=t=>{t&&(this.refInputRange=t)},this.onChange=t=>{var e,i;let a=parseFloat(t.target.value);this.state._max&&a>this.state._max&&(a=this.state._max),this.state._min&&a<this.state._min&&(a=this.state._min),this.validateValue(a),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onChange)&&(null===(i=this.state._on)||void 0===i||i.onChange(t,a))},this.onKeyDown=t=>{"Enter"!==t.code&&"NumpadEnter"!==t.code||r({form:this.host,ref:this.refInputRange})},this._accessKey=void 0,this._alert=!0,this._autoComplete=void 0,this._disabled=!1,this._error=void 0,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icon=void 0,this._icons=void 0,this._id=void 0,this._label=void 0,this._list=void 0,this._max=void 0,this._min=void 0,this._name=void 0,this._on=void 0,this._step=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_autoComplete:"off",_hideError:!1,_id:`id-${s()}`,_label:"…",_suggestions:[]},this.controller=new f(this,"range",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateAutoComplete(t){this.controller.validateAutoComplete(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)}validateIcon(t){this.validateIcons(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateList(t){this.controller.validateList(t)}validateMax(t){this.controller.validateMax(t)}validateMin(t){this.controller.validateMin(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateStep(t){this.controller.validateStep(t)}validateSuggestions(t){this.controller.validateSuggestions(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()}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_max:["validateMax"],_min:["validateMin"],_name:["validateName"],_on:["validateOn"],_step:["validateStep"],_suggestions:["validateSuggestions"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};v.style={default:m};export{v as kol_input_range};
4
+ import{h as i,H as t,r as e,g as a}from"./index-6237c77d.js";import{n as s}from"./dev.utils-d7aa3c72.js";import{s as n,a as o}from"./reuse-d79ab469.js";import{p as d}from"./controller-fa605ac3.js";import{g as r}from"./controller-c37cc04c.js";import{v as l}from"./suggestions-0d70b04d.js";import{w as h,e as p}from"./prop.validators-0872ab9e.js";import{I as u}from"./controller-icon-0429172d.js";import{m as c}from"./component-names-fed305c7.js";import"./a11y.tipps-2fa5953b.js";import"./hide-label-181cab2f.js";import"./label-218f516d.js";import"./events-fa760b68.js";import"./tab-index-20b0daba.js";import"./associated.controller-a9205263.js";import"./index-117bd1aa.js";import"./icons-3d6a581a.js";class f extends u{constructor(t,e,i){super(t,e,i),this.component=t}validateAutoComplete(t){h(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateList(t){Array.isArray(t)&&this.validateSuggestions(t.map((t=>t.value)))}validateMax(t){p(this.component,"_max",t)}validateMin(t){p(this.component,"_min",t)}validateStep(t){p(this.component,"_step",t)}validateSuggestions(t){l(this.component,t)}validateValue(t){p(this.component,"_value",t),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateList(this.component._list),this.validateMax(this.component._max),this.validateMin(this.component._min),this.validateStep(this.component._step),this.validateSuggestions(this.component._suggestions),this.validateValue(this.component._value)}}const b=':host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}.required label>span::after,.required legend>span::after{content:"*"}:host{display:block}input,textarea{cursor:text}input[type=checkbox],input[type=color],input[type=file],input[type=radio],input[type=range],label,option,select{cursor:pointer}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select[multiple] option,textarea{font-size:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}.kol-input{display:grid}.kol-input .input-slot{flex-grow:1}input:not([type=checkbox],[type=radio]),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>.kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}.kol-input.required .input-tooltip .span-label::after{content:"*"}.inputs-wrapper{align-items:center;display:flex;flex-direction:row}input[type=number]{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size);width:var(--kolibri-input-range--input-number--width)}input[type=range]{appearance:none;background-color:#d3d3d3;border:1px solid #000;display:inline-block;flex-grow:1;height:calc(8rem / var(--kolibri-root-font-size, 16));line-height:1.5em;padding:0;margin:0;width:0}input[type=range]::-webkit-slider-thumb{box-sizing:border-box;background-color:#000;height:20px;width:20px;border-radius:20px;cursor:pointer;-webkit-appearance:none}input[type=range]::-moz-range-thumb{box-sizing:border-box;background-color:#000;height:20px;width:20px;border-radius:20px;cursor:pointer;-moz-appearance:none}@media (prefers-contrast: more){::-webkit-slider-thumb{outline:1px solid currentColor}}',m=b,v=class{componentDidLoad(){var t;!this._value&&(null===(t=this.refInputRange)||void 0===t?void 0:t.value)&&this.validateValue(parseFloat(this.refInputRange.value))}render(){const{ariaDescribedBy:e}=r(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=n(this.state._label);return i(t,{key:"f93c3dea4ab3e45fcb970c5a2b9ddf9b14d02122",class:"kol-input-range"},i(c,{key:"aade6d3df99093f8fa704fecb4e3bf04c04accf1",class:{range:!0,"hide-label":!!this.state._hideLabel},_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,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},i("span",{key:"90c2707c95387a18d90c11c60f32b73a843b778a",slot:"label"},s?i("slot",null):this.state._label),i("div",{key:"af73f3f5934cc0fc489bdd1fed20c17de78480a2",slot:"input"},i("div",{key:"c4bf3b9854214b688315f46ac61d0d00de3d54b3",class:"inputs-wrapper",style:{"--kolibri-input-range--input-number--width":`${this.state._max}`.length+.5+"em"}},i("input",Object.assign({key:"72f23c2eb3116a917585c119b81627d4857b1f13",ref:this.catchInputRangeRef,title:"",accessKey:this.state._accessKey,"aria-describedby":e.length>0?e.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,"aria-hidden":"true",autoCapitalize:"off",autoComplete:this.state._autoComplete,autoCorrect:"off",disabled:this.state._disabled,list:a?`${this.state._id}-list`:void 0,max:this.state._max,min:this.state._min,name:this.state._name?`${this.state._name}-range`:void 0,spellcheck:"false",step:this.state._step,tabIndex:-1,type:"range",value:this.state._value},this.controller.onFacade,{onChange:this.onChange})),i("input",Object.assign({key:"31f21cc83972362e407f9030811368d98bb4a1d2",ref:this.catchInputNumberRef,title:"",accessKey:this.state._accessKey,"aria-describedby":e.length>0?e.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoComplete:this.state._autoComplete,autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,list:a?`${this.state._id}-list`:void 0,max:this.state._max,min:this.state._min,name:this.state._name?`${this.state._name}-number`:void 0,step:this.state._step,type:"number",value:this.state._value},this.controller.onFacade,{onKeyDown:this.onKeyDown,onChange:this.onChange}))),a&&[i("datalist",{key:"074427f8c542ba1a81e6e0b93c473f4724f70826",id:`${this.state._id}-list`},this.state._suggestions.map((t=>i("option",{value:t}))))])))}constructor(t){e(this,t),this.catchInputNumberRef=t=>{var e;t&&(this.refInputNumber=t,o(this.host,t),!this._value&&(null===(e=this.refInputNumber)||void 0===e?void 0:e.value)&&this.validateValue(parseFloat(this.refInputNumber.value)))},this.catchInputRangeRef=t=>{t&&(this.refInputRange=t)},this.onChange=t=>{var e,i;let a=parseFloat(t.target.value);this.state._max&&a>this.state._max&&(a=this.state._max),this.state._min&&a<this.state._min&&(a=this.state._min),this.validateValue(a),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onChange)&&(null===(i=this.state._on)||void 0===i||i.onChange(t,a))},this.onKeyDown=t=>{"Enter"!==t.code&&"NumpadEnter"!==t.code||d({form:this.host,ref:this.refInputRange})},this._accessKey=void 0,this._alert=!0,this._autoComplete=void 0,this._disabled=!1,this._error=void 0,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icon=void 0,this._icons=void 0,this._id=void 0,this._label=void 0,this._list=void 0,this._max=void 0,this._min=void 0,this._name=void 0,this._on=void 0,this._step=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_autoComplete:"off",_hideError:!1,_id:`id-${s()}`,_label:"…",_suggestions:[]},this.controller=new f(this,"range",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateAutoComplete(t){this.controller.validateAutoComplete(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)}validateIcon(t){this.validateIcons(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateList(t){this.controller.validateList(t)}validateMax(t){this.controller.validateMax(t)}validateMin(t){this.controller.validateMin(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateStep(t){this.controller.validateStep(t)}validateSuggestions(t){this.controller.validateSuggestions(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()}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_max:["validateMax"],_min:["validateMin"],_name:["validateName"],_on:["validateOn"],_step:["validateStep"],_suggestions:["validateSuggestions"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};v.style={default:m};export{v as kol_input_range};
@@ -1 +1 @@
1
- {"version":3,"names":["InputRangeController","InputIconController","constructor","component","name","host","super","this","validateAutoComplete","value","watchValidator","Set","validateList","Array","isArray","validateSuggestions","map","option","validateMax","watchNumber","validateMin","validateStep","validateValue","setFormAssociatedValue","state","_value","componentWillLoad","_autoComplete","_list","_max","_min","_step","_suggestions","defaultStyleCss","KolInputRangeDefaultStyle0","KolInputRange","componentDidLoad","_a","refInputRange","parseFloat","render","ariaDescribedBy","getRenderStates","hasSuggestions","length","hasExpertSlot","showExpertSlot","_label","h","Host","key","class","KolInputTag","range","_hideLabel","_disabled","_error","_hideError","_hint","_icons","_id","_tooltipAlign","_touched","slot","style","Object","assign","ref","catchInputRangeRef","title","accessKey","_accessKey","join","undefined","autoCapitalize","autoComplete","autoCorrect","disabled","list","max","min","_name","spellcheck","step","tabIndex","type","controller","onFacade","onChange","catchInputNumberRef","id","onKeyDown","hostRef","element","refInputNumber","propagateFocus","event","target","_on","_b","code","propagateSubmitEventToForm","form","nonce","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideError","validateHideLabel","validateHint","validateIcon","validateIcons","validateId","validateLabel","validateName","validateOn","validateSyncValueBySelector","validateTabIndex","validateTouched","_alert"],"sources":["src/components/input-range/controller.ts","src/components/input-range/style.scss?tag=kol-input-range&mode=default&encapsulation=shadow","src/components/input-range/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { Stringified } from '../../types/common';\nimport { InputTypeOnOff, Option } from '../../types/input/types';\nimport { SuggestionsPropType, validateSuggestions } from '../../types/props/suggestions';\nimport { W3CInputValue } from '../../types/w3c';\nimport { watchNumber, watchValidator } from '../../utils/prop.validators';\nimport { InputIconController } from '../@deprecated/input/controller-icon';\nimport { Props, Watches } from './types';\n\nexport class InputRangeController extends InputIconController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateAutoComplete(value?: InputTypeOnOff): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_autoComplete',\n\t\t\t(value): boolean => typeof value === 'string' && (value === 'on' || value === 'off'),\n\t\t\tnew Set(['on | off']),\n\t\t\tvalue,\n\t\t);\n\t}\n\n\t/**\n\t * @deprecated use _suggestions\n\t */\n\tpublic validateList(value?: Stringified<Option<W3CInputValue>[]>): void {\n\t\tif (Array.isArray(value)) {\n\t\t\tthis.validateSuggestions(value.map((option) => option.value));\n\t\t}\n\t}\n\n\tpublic validateMax(value?: number): void {\n\t\twatchNumber(this.component, '_max', value);\n\t}\n\n\tpublic validateMin(value?: number): void {\n\t\twatchNumber(this.component, '_min', value);\n\t}\n\n\tpublic validateStep(value?: number): void {\n\t\twatchNumber(this.component, '_step', value);\n\t}\n\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tvalidateSuggestions(this.component, value);\n\t}\n\n\tpublic validateValue(value?: number): void {\n\t\twatchNumber(this.component, '_value', value);\n\t\tthis.setFormAssociatedValue(this.component.state._value as string);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAutoComplete(this.component._autoComplete);\n\t\tthis.validateList(this.component._list);\n\t\tthis.validateMax(this.component._max);\n\t\tthis.validateMin(this.component._min);\n\t\tthis.validateStep(this.component._step);\n\t\tthis.validateSuggestions(this.component._suggestions);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n","@import '../@shared/mixins';\n@import '../input-line';\n\n.inputs-wrapper {\n\talign-items: center;\n\tdisplay: flex;\n\tflex-direction: row;\n}\n\ninput[type='number'] {\n\tmin-height: var(--a11y-min-size);\n\tmin-width: var(--a11y-min-size);\n\twidth: var(--kolibri-input-range--input-number--width);\n}\n\n/*\n * For Chrome and Firefox is it needed to use redundant style definitions with separate selectors. The reason is unknown.\n */\ninput[type='range'] {\n\tappearance: none;\n\tbackground-color: #d3d3d3;\n\tborder: 1px solid #000;\n\tdisplay: inline-block;\n\tflex-grow: 1;\n\theight: rem(8);\n\tline-height: 1.5em;\n\tpadding: 0;\n\tmargin: 0;\n\t/* Design-Hack - related with flex-grow */\n\twidth: 0;\n}\n\ninput[type='range']::-webkit-slider-thumb {\n\tbox-sizing: border-box;\n\tbackground-color: #000;\n\theight: 20px;\n\twidth: 20px;\n\tborder-radius: 20px;\n\tcursor: pointer;\n\t-webkit-appearance: none;\n}\n\ninput[type='range']::-moz-range-thumb {\n\tbox-sizing: border-box;\n\tbackground-color: #000;\n\theight: 20px;\n\twidth: 20px;\n\tborder-radius: 20px;\n\tcursor: pointer;\n\t-moz-appearance: none;\n}\n\n/* Fix missing outline in Chromium-based browsers on Windows in high contrast mode. */\n@media (prefers-contrast: more) {\n\t::-webkit-slider-thumb {\n\t\toutline: 1px solid currentColor;\n\t}\n}\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { KoliBriHorizontalIcons } from '../../types/icons';\nimport { InputTypeOnDefault, InputTypeOnOff, Option } from '../../types/input/types';\nimport { HideErrorPropType } from '../../types/props/hide-error';\nimport { IdPropType } from '../../types/props/id';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { NamePropType } from '../../types/props/name';\nimport { SuggestionsPropType } from '../../types/props/suggestions';\nimport { SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\nimport { TooltipAlignPropType } from '../../types/props/tooltip-align';\nimport { W3CInputValue } from '../../types/w3c';\nimport { nonce } from '../../utils/dev.utils';\nimport { propagateFocus, showExpertSlot } from '../../utils/reuse';\nimport { propagateSubmitEventToForm } from '../form/controller';\nimport { getRenderStates } from '../input/controller';\nimport { InputRangeController } from './controller';\nimport { API, States } from './types';\nimport { KolInputTag } from '../../core/component-names';\n\n/**\n * @slot - Die Beschriftung des Eingabeelements.\n */\n@Component({\n\ttag: 'kol-input-range',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolInputRange implements API {\n\t@Element() private readonly host?: HTMLKolInputRangeElement;\n\tprivate refInputNumber?: HTMLInputElement;\n\tprivate refInputRange?: HTMLInputElement;\n\n\tprivate readonly catchInputNumberRef = (element?: HTMLInputElement) => {\n\t\tif (element) {\n\t\t\tthis.refInputNumber = element;\n\t\t\tpropagateFocus(this.host, element);\n\t\t\tif (!this._value && this.refInputNumber?.value) {\n\t\t\t\tthis.validateValue(parseFloat(this.refInputNumber.value));\n\t\t\t}\n\t\t}\n\t};\n\n\tprivate readonly catchInputRangeRef = (element?: HTMLInputElement) => {\n\t\tif (element) {\n\t\t\tthis.refInputRange = element;\n\t\t}\n\t};\n\n\tprivate readonly onChange = (event: Event) => {\n\t\tlet value = parseFloat((event.target as HTMLInputElement).value);\n\t\tif (this.state._max && value > this.state._max) value = this.state._max;\n\t\tif (this.state._min && value < this.state._min) value = this.state._min;\n\t\tthis.validateValue(value);\n\t\tif (typeof this.state._on?.onChange === 'function') {\n\t\t\tthis.state._on?.onChange(event, value);\n\t\t}\n\t};\n\n\tprivate readonly onKeyDown = (event: KeyboardEvent) => {\n\t\tif (event.code === 'Enter' || event.code === 'NumpadEnter') {\n\t\t\tpropagateSubmitEventToForm({\n\t\t\t\tform: this.host,\n\t\t\t\tref: this.refInputRange,\n\t\t\t});\n\t\t}\n\t};\n\n\tcomponentDidLoad() {\n\t\tif (!this._value && this.refInputRange?.value) {\n\t\t\tthis.validateValue(parseFloat(this.refInputRange.value));\n\t\t}\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst { ariaDescribedBy } = getRenderStates(this.state);\n\t\tconst hasSuggestions = Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\n\t\treturn (\n\t\t\t<Host class=\"kol-input-range\">\n\t\t\t\t<KolInputTag\n\t\t\t\t\tclass={{\n\t\t\t\t\t\trange: true,\n\t\t\t\t\t\t'hide-label': !!this.state._hideLabel,\n\t\t\t\t\t}}\n\t\t\t\t\t_disabled={this.state._disabled}\n\t\t\t\t\t_error={this.state._error}\n\t\t\t\t\t_hideError={this.state._hideError}\n\t\t\t\t\t_hideLabel={this.state._hideLabel}\n\t\t\t\t\t_hint={this.state._hint}\n\t\t\t\t\t_icons={this.state._icons}\n\t\t\t\t\t_id={this.state._id}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_touched={this.state._touched}\n\t\t\t\t>\n\t\t\t\t\t{/* TODO: der folgende Slot ohne Name muss später entfernt werden */}\n\t\t\t\t\t<span slot=\"label\">{hasExpertSlot ? <slot></slot> : this.state._label}</span>\n\t\t\t\t\t<div slot=\"input\">\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"inputs-wrapper\"\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t'--kolibri-input-range--input-number--width': `${this.state._max}`.length + 0.5 + 'em',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tref={this.catchInputRangeRef}\n\t\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\t\t\t\t\t\t\t\taria-label={this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined}\n\t\t\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\t\t\tautoCapitalize=\"off\"\n\t\t\t\t\t\t\t\tautoComplete={this.state._autoComplete}\n\t\t\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\t\t\tlist={hasSuggestions ? `${this.state._id}-list` : undefined}\n\t\t\t\t\t\t\t\tmax={this.state._max}\n\t\t\t\t\t\t\t\tmin={this.state._min}\n\t\t\t\t\t\t\t\tname={this.state._name ? `${this.state._name}-range` : undefined}\n\t\t\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\t\t\tstep={this.state._step}\n\t\t\t\t\t\t\t\ttabIndex={-1}\n\t\t\t\t\t\t\t\ttype=\"range\"\n\t\t\t\t\t\t\t\tvalue={this.state._value as number}\n\t\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\t\tonChange={this.onChange}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tref={this.catchInputNumberRef}\n\t\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\t\t\t\t\t\t\t\taria-label={this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined}\n\t\t\t\t\t\t\t\tautoCapitalize=\"off\"\n\t\t\t\t\t\t\t\tautoComplete={this.state._autoComplete}\n\t\t\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\t\t\tid={this.state._id}\n\t\t\t\t\t\t\t\tlist={hasSuggestions ? `${this.state._id}-list` : undefined}\n\t\t\t\t\t\t\t\tmax={this.state._max}\n\t\t\t\t\t\t\t\tmin={this.state._min}\n\t\t\t\t\t\t\t\tname={this.state._name ? `${this.state._name}-number` : undefined}\n\t\t\t\t\t\t\t\tstep={this.state._step}\n\t\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\t\tvalue={this.state._value}\n\t\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\t\tonKeyDown={this.onKeyDown}\n\t\t\t\t\t\t\t\tonChange={this.onChange}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{hasSuggestions && [\n\t\t\t\t\t\t\t<datalist id={`${this.state._id}-list`}>\n\t\t\t\t\t\t\t\t{this.state._suggestions.map((option: W3CInputValue) => (\n\t\t\t\t\t\t\t\t\t<option value={option} />\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t</datalist>,\n\t\t\t\t\t\t\t// <ul class=\"grid gap-1 text-sm grid-flow-col\">\n\t\t\t\t\t\t\t// {this.state._suggestions.map((option: InputOption<number>) => (\n\t\t\t\t\t\t\t// <li class=\"border-1\">{option.label}</li>\n\t\t\t\t\t\t\t// ))}\n\t\t\t\t\t\t\t// </ul>,\n\t\t\t\t\t\t]}\n\t\t\t\t\t</div>\n\t\t\t\t</KolInputTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: InputRangeController;\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: string;\n\n\t/**\n\t * Defines whether the screen-readers should read out the notification.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: boolean = true;\n\n\t/**\n\t * Defines whether the input can be auto-completed.\n\t */\n\t@Prop() public _autoComplete?: InputTypeOnOff;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t * @TODO: Change type back to `DisabledPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Defines the error message text.\n\t */\n\t@Prop() public _error?: string;\n\n\t/**\n\t * Hides the error message but leaves it in the DOM for the input's aria-describedby.\n\t * @TODO: Change type back to `HideErrorPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _hideError?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the hint text.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * @deprecated Use _icons.\n\t */\n\t@Prop() public _icon?: Stringified<KoliBriHorizontalIcons>;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<KoliBriHorizontalIcons>;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: IdPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label?: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Deprecated: Gibt die Liste der Vorschlagswörter an.\n\t * @deprecated Use _suggestions.\n\t */\n\t@Prop() public _list?: Stringified<Option<W3CInputValue>[]>;\n\n\t/**\n\t * Defines the largest possible input value.\n\t */\n\t@Prop() public _max?: number;\n\n\t/**\n\t * Defines the smallest possible input value.\n\t */\n\t@Prop() public _min?: number;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: NamePropType;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für das Input-Event an.\n\t */\n\t@Prop() public _on?: InputTypeOnDefault;\n\n\t/**\n\t * Defines the step size for value changes.\n\t */\n\t@Prop() public _step?: number;\n\n\t/**\n\t * Suggestions to provide for the input.\n\t */\n\t@Prop() public _suggestions?: SuggestionsPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Shows if the input was touched by a user.\n\t * @TODO: Change type back to `TouchedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _touched?: boolean = false;\n\n\t/**\n\t * Defines the value of the input.\n\t */\n\t@Prop() public _value?: number;\n\n\t@State() public state: States = {\n\t\t_autoComplete: 'off',\n\t\t_hideError: false,\n\t\t_id: `id-${nonce()}`,\n\t\t_label: '…', // ⚠ required\n\t\t_suggestions: [],\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new InputRangeController(this, 'range', this.host);\n\t}\n\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: string): void {\n\t\tthis.controller.validateAccessKey(value);\n\t}\n\n\t@Watch('_alert')\n\tpublic validateAlert(value?: boolean): void {\n\t\tthis.controller.validateAlert(value);\n\t}\n\n\t@Watch('_autoComplete')\n\tpublic validateAutoComplete(value?: InputTypeOnOff): void {\n\t\tthis.controller.validateAutoComplete(value);\n\t}\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: boolean): void {\n\t\tthis.controller.validateDisabled(value);\n\t}\n\n\t@Watch('_error')\n\tpublic validateError(value?: string): void {\n\t\tthis.controller.validateError(value);\n\t}\n\n\t@Watch('_hideError')\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tthis.controller.validateHideError(value);\n\t}\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tthis.controller.validateHideLabel(value);\n\t}\n\n\t@Watch('_hint')\n\tpublic validateHint(value?: string): void {\n\t\tthis.controller.validateHint(value);\n\t}\n\n\t@Watch('_icon')\n\tpublic validateIcon(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.validateIcons(value);\n\t}\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.controller.validateIcons(value);\n\t}\n\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\tthis.controller.validateId(value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tthis.controller.validateLabel(value);\n\t}\n\n\t@Watch('_list')\n\tpublic validateList(value?: Stringified<Option<W3CInputValue>[]>): void {\n\t\tthis.controller.validateList(value);\n\t}\n\n\t@Watch('_max')\n\tpublic validateMax(value?: number): void {\n\t\tthis.controller.validateMax(value);\n\t}\n\n\t@Watch('_min')\n\tpublic validateMin(value?: number): void {\n\t\tthis.controller.validateMin(value);\n\t}\n\n\t@Watch('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tthis.controller.validateOn(value);\n\t}\n\n\t@Watch('_step')\n\tpublic validateStep(value?: number): void {\n\t\tthis.controller.validateStep(value);\n\t}\n\n\t@Watch('_suggestions')\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tthis.controller.validateSuggestions(value);\n\t}\n\n\t@Watch('_syncValueBySelector')\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tthis.controller.validateSyncValueBySelector(value);\n\t}\n\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tthis.controller.validateTabIndex(value);\n\t}\n\n\t@Watch('_touched')\n\tpublic validateTouched(value?: boolean): void {\n\t\tthis.controller.validateTouched(value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: number): void {\n\t\tthis.controller.validateValue(value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis._alert = this._alert === true;\n\t\tthis._touched = this._touched === true;\n\t\tthis.controller.componentWillLoad();\n\t}\n}\n"],"mappings":";;;ksBAUaA,UAA6BC,EAGzC,WAAAC,CAAmBC,EAA8CC,EAAcC,GAC9EC,MAAMH,EAAWC,EAAMC,GACvBE,KAAKJ,UAAYA,C,CAGX,oBAAAK,CAAqBC,GAC3BC,EACCH,KAAKJ,UACL,iBACCM,UAA0BA,IAAU,WAAaA,IAAU,MAAQA,IAAU,QAC9E,IAAIE,IAAI,CAAC,aACTF,E,CAOK,YAAAG,CAAaH,GACnB,GAAII,MAAMC,QAAQL,GAAQ,CACzBF,KAAKQ,oBAAoBN,EAAMO,KAAKC,GAAWA,EAAOR,Q,EAIjD,WAAAS,CAAYT,GAClBU,EAAYZ,KAAKJ,UAAW,OAAQM,E,CAG9B,WAAAW,CAAYX,GAClBU,EAAYZ,KAAKJ,UAAW,OAAQM,E,CAG9B,YAAAY,CAAaZ,GACnBU,EAAYZ,KAAKJ,UAAW,QAASM,E,CAG/B,mB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uG,CAAcvG,GACpBF,KAAK+E,WAAW0B,cAAcvG,E,CAIxB,UAAAwG,CAAWxG,GACjBF,KAAK+E,WAAW2B,WAAWxG,E,CAIrB,aAAAyG,CAAczG,GACpBF,KAAK+E,WAAW4B,cAAczG,E,CAIxB,YAAAG,CAAaH,GACnBF,KAAK+E,WAAW1E,aAAaH,E,CAIvB,WAAAS,CAAYT,GAClBF,KAAK+E,WAAWpE,YAAYT,E,CAItB,WAAAW,CAAYX,GAClBF,KAAK+E,WAAWlE,YAAYX,E,CAItB,YAAA0G,CAAa1G,GACnBF,KAAK+E,WAAW6B,aAAa1G,E,CAIvB,UAAA2G,CAAW3G,GACjBF,KAAK+E,WAAW8B,WAAW3G,E,CAIrB,YAAAY,CAAaZ,GACnBF,KAAK+E,WAAWjE,aAAaZ,E,CAIvB,mBAAAM,CAAoBN,GAC1BF,KAAK+E,WAAWvE,oBAAoBN,E,CAI9B,2BAAA4G,CAA4B5G,GAClCF,KAAK+E,WAAW+B,4BAA4B5G,E,CAItC,gBAAA6G,CAAiB7G,GACvBF,KAAK+E,WAAWgC,iBAAiB7G,E,CAI3B,eAAA8G,CAAgB9G,GACtBF,KAAK+E,WAAWiC,gBAAgB9G,E,CAI1B,aAAAa,CAAcb,GACpBF,KAAK+E,WAAWhE,cAAcb,E,CAGxB,iBAAAiB,GACNnB,KAAKiH,OAASjH,KAAKiH,SAAW,KAC9BjH,KAAKuD,SAAWvD,KAAKuD,WAAa,KAClCvD,KAAK+E,WAAW5D,mB"}
1
+ {"version":3,"names":["InputRangeController","InputIconController","constructor","component","name","host","super","this","validateAutoComplete","value","watchValidator","Set","validateList","Array","isArray","validateSuggestions","map","option","validateMax","watchNumber","validateMin","validateStep","validateValue","setFormAssociatedValue","state","_value","componentWillLoad","_autoComplete","_list","_max","_min","_step","_suggestions","defaultStyleCss","KolInputRangeDefaultStyle0","KolInputRange","componentDidLoad","_a","refInputRange","parseFloat","render","ariaDescribedBy","getRenderStates","hasSuggestions","length","hasExpertSlot","showExpertSlot","_label","h","Host","key","class","KolInputTag","range","_hideLabel","_disabled","_error","_hideError","_hint","_icons","_id","_tooltipAlign","_touched","slot","style","Object","assign","ref","catchInputRangeRef","title","accessKey","_accessKey","join","undefined","autoCapitalize","autoComplete","autoCorrect","disabled","list","max","min","_name","spellcheck","step","tabIndex","type","controller","onFacade","onChange","catchInputNumberRef","id","onKeyDown","hostRef","element","refInputNumber","propagateFocus","event","target","_on","_b","code","propagateSubmitEventToForm","form","nonce","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideError","validateHideLabel","validateHint","validateIcon","validateIcons","validateId","validateLabel","validateName","validateOn","validateSyncValueBySelector","validateTabIndex","validateTouched","_alert"],"sources":["src/components/input-range/controller.ts","src/components/input-range/style.scss?tag=kol-input-range&mode=default&encapsulation=shadow","src/components/input-range/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { Stringified } from '../../types/common';\nimport { InputTypeOnOff, Option } from '../../types/input/types';\nimport { SuggestionsPropType, validateSuggestions } from '../../types/props/suggestions';\nimport { W3CInputValue } from '../../types/w3c';\nimport { watchNumber, watchValidator } from '../../utils/prop.validators';\nimport { InputIconController } from '../@deprecated/input/controller-icon';\nimport { Props, Watches } from './types';\n\nexport class InputRangeController extends InputIconController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateAutoComplete(value?: InputTypeOnOff): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_autoComplete',\n\t\t\t(value): boolean => typeof value === 'string' && (value === 'on' || value === 'off'),\n\t\t\tnew Set(['on | off']),\n\t\t\tvalue,\n\t\t);\n\t}\n\n\t/**\n\t * @deprecated use _suggestions\n\t */\n\tpublic validateList(value?: Stringified<Option<W3CInputValue>[]>): void {\n\t\tif (Array.isArray(value)) {\n\t\t\tthis.validateSuggestions(value.map((option) => option.value));\n\t\t}\n\t}\n\n\tpublic validateMax(value?: number): void {\n\t\twatchNumber(this.component, '_max', value);\n\t}\n\n\tpublic validateMin(value?: number): void {\n\t\twatchNumber(this.component, '_min', value);\n\t}\n\n\tpublic validateStep(value?: number): void {\n\t\twatchNumber(this.component, '_step', value);\n\t}\n\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tvalidateSuggestions(this.component, value);\n\t}\n\n\tpublic validateValue(value?: number): void {\n\t\twatchNumber(this.component, '_value', value);\n\t\tthis.setFormAssociatedValue(this.component.state._value as string);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateAutoComplete(this.component._autoComplete);\n\t\tthis.validateList(this.component._list);\n\t\tthis.validateMax(this.component._max);\n\t\tthis.validateMin(this.component._min);\n\t\tthis.validateStep(this.component._step);\n\t\tthis.validateSuggestions(this.component._suggestions);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n","@import '../@shared/mixins';\n@import '../input-line';\n\n.inputs-wrapper {\n\talign-items: center;\n\tdisplay: flex;\n\tflex-direction: row;\n}\n\ninput[type='number'] {\n\tmin-height: var(--a11y-min-size);\n\tmin-width: var(--a11y-min-size);\n\twidth: var(--kolibri-input-range--input-number--width);\n}\n\n/*\n * For Chrome and Firefox is it needed to use redundant style definitions with separate selectors. The reason is unknown.\n */\ninput[type='range'] {\n\tappearance: none;\n\tbackground-color: #d3d3d3;\n\tborder: 1px solid #000;\n\tdisplay: inline-block;\n\tflex-grow: 1;\n\theight: rem(8);\n\tline-height: 1.5em;\n\tpadding: 0;\n\tmargin: 0;\n\t/* Design-Hack - related with flex-grow */\n\twidth: 0;\n}\n\ninput[type='range']::-webkit-slider-thumb {\n\tbox-sizing: border-box;\n\tbackground-color: #000;\n\theight: 20px;\n\twidth: 20px;\n\tborder-radius: 20px;\n\tcursor: pointer;\n\t-webkit-appearance: none;\n}\n\ninput[type='range']::-moz-range-thumb {\n\tbox-sizing: border-box;\n\tbackground-color: #000;\n\theight: 20px;\n\twidth: 20px;\n\tborder-radius: 20px;\n\tcursor: pointer;\n\t-moz-appearance: none;\n}\n\n/* Fix missing outline in Chromium-based browsers on Windows in high contrast mode. */\n@media (prefers-contrast: more) {\n\t::-webkit-slider-thumb {\n\t\toutline: 1px solid currentColor;\n\t}\n}\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { KoliBriHorizontalIcons } from '../../types/icons';\nimport { InputTypeOnDefault, InputTypeOnOff, Option } from '../../types/input/types';\nimport { HideErrorPropType } from '../../types/props/hide-error';\nimport { IdPropType } from '../../types/props/id';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { NamePropType } from '../../types/props/name';\nimport { SuggestionsPropType } from '../../types/props/suggestions';\nimport { SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\nimport { TooltipAlignPropType } from '../../types/props/tooltip-align';\nimport { W3CInputValue } from '../../types/w3c';\nimport { nonce } from '../../utils/dev.utils';\nimport { propagateFocus, showExpertSlot } from '../../utils/reuse';\nimport { propagateSubmitEventToForm } from '../form/controller';\nimport { getRenderStates } from '../input/controller';\nimport { InputRangeController } from './controller';\nimport { API, States } from './types';\nimport { KolInputTag } from '../../core/component-names';\n\n/**\n * @slot - Die Beschriftung des Eingabeelements.\n */\n@Component({\n\ttag: 'kol-input-range',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolInputRange implements API {\n\t@Element() private readonly host?: HTMLKolInputRangeElement;\n\tprivate refInputNumber?: HTMLInputElement;\n\tprivate refInputRange?: HTMLInputElement;\n\n\tprivate readonly catchInputNumberRef = (element?: HTMLInputElement) => {\n\t\tif (element) {\n\t\t\tthis.refInputNumber = element;\n\t\t\tpropagateFocus(this.host, element);\n\t\t\tif (!this._value && this.refInputNumber?.value) {\n\t\t\t\tthis.validateValue(parseFloat(this.refInputNumber.value));\n\t\t\t}\n\t\t}\n\t};\n\n\tprivate readonly catchInputRangeRef = (element?: HTMLInputElement) => {\n\t\tif (element) {\n\t\t\tthis.refInputRange = element;\n\t\t}\n\t};\n\n\tprivate readonly onChange = (event: Event) => {\n\t\tlet value = parseFloat((event.target as HTMLInputElement).value);\n\t\tif (this.state._max && value > this.state._max) value = this.state._max;\n\t\tif (this.state._min && value < this.state._min) value = this.state._min;\n\t\tthis.validateValue(value);\n\t\tif (typeof this.state._on?.onChange === 'function') {\n\t\t\tthis.state._on?.onChange(event, value);\n\t\t}\n\t};\n\n\tprivate readonly onKeyDown = (event: KeyboardEvent) => {\n\t\tif (event.code === 'Enter' || event.code === 'NumpadEnter') {\n\t\t\tpropagateSubmitEventToForm({\n\t\t\t\tform: this.host,\n\t\t\t\tref: this.refInputRange,\n\t\t\t});\n\t\t}\n\t};\n\n\tcomponentDidLoad() {\n\t\tif (!this._value && this.refInputRange?.value) {\n\t\t\tthis.validateValue(parseFloat(this.refInputRange.value));\n\t\t}\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst { ariaDescribedBy } = getRenderStates(this.state);\n\t\tconst hasSuggestions = Array.isArray(this.state._suggestions) && this.state._suggestions.length > 0;\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\n\t\treturn (\n\t\t\t<Host class=\"kol-input-range\">\n\t\t\t\t<KolInputTag\n\t\t\t\t\tclass={{\n\t\t\t\t\t\trange: true,\n\t\t\t\t\t\t'hide-label': !!this.state._hideLabel,\n\t\t\t\t\t}}\n\t\t\t\t\t_disabled={this.state._disabled}\n\t\t\t\t\t_error={this.state._error}\n\t\t\t\t\t_hideError={this.state._hideError}\n\t\t\t\t\t_hideLabel={this.state._hideLabel}\n\t\t\t\t\t_hint={this.state._hint}\n\t\t\t\t\t_icons={this.state._icons}\n\t\t\t\t\t_id={this.state._id}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_touched={this.state._touched}\n\t\t\t\t>\n\t\t\t\t\t{/* TODO: der folgende Slot ohne Name muss später entfernt werden */}\n\t\t\t\t\t<span slot=\"label\">{hasExpertSlot ? <slot></slot> : this.state._label}</span>\n\t\t\t\t\t<div slot=\"input\">\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"inputs-wrapper\"\n\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t'--kolibri-input-range--input-number--width': `${this.state._max}`.length + 0.5 + 'em',\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tref={this.catchInputRangeRef}\n\t\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\t\t\t\t\t\t\t\taria-label={this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined}\n\t\t\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\t\t\tautoCapitalize=\"off\"\n\t\t\t\t\t\t\t\tautoComplete={this.state._autoComplete}\n\t\t\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\t\t\tlist={hasSuggestions ? `${this.state._id}-list` : undefined}\n\t\t\t\t\t\t\t\tmax={this.state._max}\n\t\t\t\t\t\t\t\tmin={this.state._min}\n\t\t\t\t\t\t\t\tname={this.state._name ? `${this.state._name}-range` : undefined}\n\t\t\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\t\t\tstep={this.state._step}\n\t\t\t\t\t\t\t\ttabIndex={-1}\n\t\t\t\t\t\t\t\ttype=\"range\"\n\t\t\t\t\t\t\t\tvalue={this.state._value as number}\n\t\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\t\tonChange={this.onChange}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\tref={this.catchInputNumberRef}\n\t\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\t\t\t\t\t\t\t\taria-label={this.state._hideLabel && typeof this.state._label === 'string' ? this.state._label : undefined}\n\t\t\t\t\t\t\t\tautoCapitalize=\"off\"\n\t\t\t\t\t\t\t\tautoComplete={this.state._autoComplete}\n\t\t\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\t\t\tid={this.state._id}\n\t\t\t\t\t\t\t\tlist={hasSuggestions ? `${this.state._id}-list` : undefined}\n\t\t\t\t\t\t\t\tmax={this.state._max}\n\t\t\t\t\t\t\t\tmin={this.state._min}\n\t\t\t\t\t\t\t\tname={this.state._name ? `${this.state._name}-number` : undefined}\n\t\t\t\t\t\t\t\tstep={this.state._step}\n\t\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\t\tvalue={this.state._value}\n\t\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\t\tonKeyDown={this.onKeyDown}\n\t\t\t\t\t\t\t\tonChange={this.onChange}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{hasSuggestions && [\n\t\t\t\t\t\t\t<datalist id={`${this.state._id}-list`}>\n\t\t\t\t\t\t\t\t{this.state._suggestions.map((option: W3CInputValue) => (\n\t\t\t\t\t\t\t\t\t<option value={option} />\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t</datalist>,\n\t\t\t\t\t\t\t// <ul class=\"grid gap-1 text-sm grid-flow-col\">\n\t\t\t\t\t\t\t// {this.state._suggestions.map((option: InputOption<number>) => (\n\t\t\t\t\t\t\t// <li class=\"border-1\">{option.label}</li>\n\t\t\t\t\t\t\t// ))}\n\t\t\t\t\t\t\t// </ul>,\n\t\t\t\t\t\t]}\n\t\t\t\t\t</div>\n\t\t\t\t</KolInputTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: InputRangeController;\n\n\t/**\n\t * Defines which key combination can be used to trigger or focus the interactive element of the component.\n\t */\n\t@Prop() public _accessKey?: string;\n\n\t/**\n\t * Defines whether the screen-readers should read out the notification.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _alert?: boolean = true;\n\n\t/**\n\t * Defines whether the input can be auto-completed.\n\t */\n\t@Prop() public _autoComplete?: InputTypeOnOff;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t * @TODO: Change type back to `DisabledPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Defines the error message text.\n\t */\n\t@Prop() public _error?: string;\n\n\t/**\n\t * Hides the error message but leaves it in the DOM for the input's aria-describedby.\n\t * @TODO: Change type back to `HideErrorPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _hideError?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the hint text.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * @deprecated Use _icons.\n\t */\n\t@Prop() public _icon?: Stringified<KoliBriHorizontalIcons>;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<KoliBriHorizontalIcons>;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id?: IdPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label?: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Deprecated: Gibt die Liste der Vorschlagswörter an.\n\t * @deprecated Use _suggestions.\n\t */\n\t@Prop() public _list?: Stringified<Option<W3CInputValue>[]>;\n\n\t/**\n\t * Defines the largest possible input value.\n\t */\n\t@Prop() public _max?: number;\n\n\t/**\n\t * Defines the smallest possible input value.\n\t */\n\t@Prop() public _min?: number;\n\n\t/**\n\t * Defines the technical name of an input field.\n\t */\n\t@Prop() public _name?: NamePropType;\n\n\t/**\n\t * Gibt die EventCallback-Funktionen für das Input-Event an.\n\t */\n\t@Prop() public _on?: InputTypeOnDefault;\n\n\t/**\n\t * Defines the step size for value changes.\n\t */\n\t@Prop() public _step?: number;\n\n\t/**\n\t * Suggestions to provide for the input.\n\t */\n\t@Prop() public _suggestions?: SuggestionsPropType;\n\n\t/**\n\t * Selector for synchronizing the value with another input element.\n\t * @internal\n\t */\n\t@Prop() public _syncValueBySelector?: SyncValueBySelectorPropType;\n\n\t/**\n\t * Defines which tab-index the primary element of the component has. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)\n\t */\n\t@Prop() public _tabIndex?: number;\n\n\t/**\n\t * Defines where to show the Tooltip preferably: top, right, bottom or left.\n\t */\n\t@Prop() public _tooltipAlign?: TooltipAlignPropType = 'top';\n\n\t/**\n\t * Shows if the input was touched by a user.\n\t * @TODO: Change type back to `TouchedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _touched?: boolean = false;\n\n\t/**\n\t * Defines the value of the input.\n\t */\n\t@Prop() public _value?: number;\n\n\t@State() public state: States = {\n\t\t_autoComplete: 'off',\n\t\t_hideError: false,\n\t\t_id: `id-${nonce()}`,\n\t\t_label: '…', // ⚠ required\n\t\t_suggestions: [],\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new InputRangeController(this, 'range', this.host);\n\t}\n\n\t@Watch('_accessKey')\n\tpublic validateAccessKey(value?: string): void {\n\t\tthis.controller.validateAccessKey(value);\n\t}\n\n\t@Watch('_alert')\n\tpublic validateAlert(value?: boolean): void {\n\t\tthis.controller.validateAlert(value);\n\t}\n\n\t@Watch('_autoComplete')\n\tpublic validateAutoComplete(value?: InputTypeOnOff): void {\n\t\tthis.controller.validateAutoComplete(value);\n\t}\n\n\t@Watch('_disabled')\n\tpublic validateDisabled(value?: boolean): void {\n\t\tthis.controller.validateDisabled(value);\n\t}\n\n\t@Watch('_error')\n\tpublic validateError(value?: string): void {\n\t\tthis.controller.validateError(value);\n\t}\n\n\t@Watch('_hideError')\n\tpublic validateHideError(value?: HideErrorPropType): void {\n\t\tthis.controller.validateHideError(value);\n\t}\n\n\t@Watch('_hideLabel')\n\tpublic validateHideLabel(value?: boolean): void {\n\t\tthis.controller.validateHideLabel(value);\n\t}\n\n\t@Watch('_hint')\n\tpublic validateHint(value?: string): void {\n\t\tthis.controller.validateHint(value);\n\t}\n\n\t@Watch('_icon')\n\tpublic validateIcon(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.validateIcons(value);\n\t}\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: Stringified<KoliBriHorizontalIcons>): void {\n\t\tthis.controller.validateIcons(value);\n\t}\n\n\t@Watch('_id')\n\tpublic validateId(value?: string): void {\n\t\tthis.controller.validateId(value);\n\t}\n\n\t@Watch('_label')\n\tpublic validateLabel(value?: LabelWithExpertSlotPropType): void {\n\t\tthis.controller.validateLabel(value);\n\t}\n\n\t@Watch('_list')\n\tpublic validateList(value?: Stringified<Option<W3CInputValue>[]>): void {\n\t\tthis.controller.validateList(value);\n\t}\n\n\t@Watch('_max')\n\tpublic validateMax(value?: number): void {\n\t\tthis.controller.validateMax(value);\n\t}\n\n\t@Watch('_min')\n\tpublic validateMin(value?: number): void {\n\t\tthis.controller.validateMin(value);\n\t}\n\n\t@Watch('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tthis.controller.validateOn(value);\n\t}\n\n\t@Watch('_step')\n\tpublic validateStep(value?: number): void {\n\t\tthis.controller.validateStep(value);\n\t}\n\n\t@Watch('_suggestions')\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tthis.controller.validateSuggestions(value);\n\t}\n\n\t@Watch('_syncValueBySelector')\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tthis.controller.validateSyncValueBySelector(value);\n\t}\n\n\t@Watch('_tabIndex')\n\tpublic validateTabIndex(value?: number): void {\n\t\tthis.controller.validateTabIndex(value);\n\t}\n\n\t@Watch('_touched')\n\tpublic validateTouched(value?: boolean): void {\n\t\tthis.controller.validateTouched(value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: number): void {\n\t\tthis.controller.validateValue(value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis._alert = this._alert === true;\n\t\tthis._touched = this._touched === true;\n\t\tthis.controller.componentWillLoad();\n\t}\n}\n"],"mappings":";;;ksBAUaA,UAA6BC,EAGzC,WAAAC,CAAmBC,EAA8CC,EAAcC,GAC9EC,MAAMH,EAAWC,EAAMC,GACvBE,KAAKJ,UAAYA,C,CAGX,oBAAAK,CAAqBC,GAC3BC,EACCH,KAAKJ,UACL,iBACCM,UAA0BA,IAAU,WAAaA,IAAU,MAAQA,IAAU,QAC9E,IAAIE,IAAI,CAAC,aACTF,E,CAOK,YAAAG,CAAaH,GACnB,GAAII,MAAMC,QAAQL,GAAQ,CACzBF,KAAKQ,oBAAoBN,EAAMO,KAAKC,GAAWA,EAAOR,Q,EAIjD,WAAAS,CAAYT,GAClBU,EAAYZ,KAAKJ,UAAW,OAAQM,E,CAG9B,WAAAW,CAAYX,GAClBU,EAAYZ,KAAKJ,UAAW,OAAQM,E,CAG9B,YAAAY,CAAaZ,GACnBU,EAAYZ,KAAKJ,UAAW,QAASM,E,CAG/B,mBAAAM,CAAo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AAAuG,CAAcvG,GACpBF,KAAK+E,WAAW0B,cAAcvG,E,CAIxB,UAAAwG,CAAWxG,GACjBF,KAAK+E,WAAW2B,WAAWxG,E,CAIrB,aAAAyG,CAAczG,GACpBF,KAAK+E,WAAW4B,cAAczG,E,CAIxB,YAAAG,CAAaH,GACnBF,KAAK+E,WAAW1E,aAAaH,E,CAIvB,WAAAS,CAAYT,GAClBF,KAAK+E,WAAWpE,YAAYT,E,CAItB,WAAAW,CAAYX,GAClBF,KAAK+E,WAAWlE,YAAYX,E,CAItB,YAAA0G,CAAa1G,GACnBF,KAAK+E,WAAW6B,aAAa1G,E,CAIvB,UAAA2G,CAAW3G,GACjBF,KAAK+E,WAAW8B,WAAW3G,E,CAIrB,YAAAY,CAAaZ,GACnBF,KAAK+E,WAAWjE,aAAaZ,E,CAIvB,mBAAAM,CAAoBN,GAC1BF,KAAK+E,WAAWvE,oBAAoBN,E,CAI9B,2BAAA4G,CAA4B5G,GAClCF,KAAK+E,WAAW+B,4BAA4B5G,E,CAItC,gBAAA6G,CAAiB7G,GACvBF,KAAK+E,WAAWgC,iBAAiB7G,E,CAI3B,eAAA8G,CAAgB9G,GACtBF,KAAK+E,WAAWiC,gBAAgB9G,E,CAI1B,aAAAa,CAAcb,GACpBF,KAAK+E,WAAWhE,cAAcb,E,CAGxB,iBAAAiB,GACNnB,KAAKiH,OAASjH,KAAKiH,SAAW,KAC9BjH,KAAKuD,SAAWvD,KAAKuD,WAAa,KAClCvD,KAAK+E,WAAW5D,mB"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as t,H as e,r as i,g as a}from"./index-a051748e.js";import{a as s,s as n}from"./prop.validators-3017e14b.js";import{f as l}from"./a11y.tipps-798efb1a.js";import{n as o}from"./dev.utils-f829063f.js";import{s as d,a as r}from"./reuse-d79ab469.js";import{p as h}from"./controller-7832022a.js";import{g as p}from"./controller-d9f61e71.js";import{a as u}from"./controller-67717038.js";import{m as c}from"./component-names-fed305c7.js";import"./index-117bd1aa.js";import"./hide-label-000c16f6.js";import"./label-bce4f328.js";import"./events-fa760b68.js";import"./tab-index-22839788.js";import"./associated.controller-367d4241.js";import"./controller-09b624a5.js";import"./controller-icon-7d98b00e.js";import"./icons-82e358f3.js";import"./suggestions-f022cab2.js";const f=(t,e)=>{s(t,"_alert",e)},v=':host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}.required label>span::after,.required legend>span::after{content:"*"}:host{display:block}input,textarea{cursor:text}input[type=checkbox],input[type=color],input[type=file],input[type=radio],input[type=range],label,option,select{cursor:pointer}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select[multiple] option,textarea{font-size:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}.kol-input{display:grid}.kol-input .input-slot{flex-grow:1}input:not([type=checkbox],[type=radio]),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>.kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}.kol-input.required .input-tooltip .span-label::after{content:"*"}',m=v;l("[KolInputText] Pre- und post-Label für Währung usw.");const b=class{render(){const{ariaDescribedBy:i}=p(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=d(this.state._label);return t(e,{key:"5c2dc93096975d2ee46148d1fd7cb2f458898697",class:{"kol-input-text":!0,"has-value":this.state._hasValue}},t(c,{key:"20f6256134283074453b18f7eb6e8bc8850d48a6",class:{[this.state._type]:!0,"hide-label":!!this.state._hideLabel},_currentLength:this.state._currentLength,_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hasCounter:this.state._hasCounter,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_suggestions:this.state._suggestions,_maxLength:this.state._maxLength,_readOnly:this.state._readOnly,_required:this.state._required,_smartButton:this.state._smartButton,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched,onClick:()=>{var t;return null===(t=this.ref)||void 0===t?void 0:t.focus()},role:"presentation"},t("span",{key:"3bc1231c8748aefa7f3c0252eef4424249a440f8",slot:"label"},s?t("slot",null):this.state._label),t("div",{key:"c4b4e1d170cd38e92331eb159cd6dc91dab7dd0d",slot:"input"},t("input",Object.assign({key:"46da9a1ea3927db54ef87462e264020ab4f740c2",ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":i.length>0?i.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoComplete:this.state._autoComplete,autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,list:a?`${this.state._id}-list`:void 0,maxlength:this.state._maxLength,name:this.state._name,pattern:this.state._pattern,placeholder:this.state._placeholder,readOnly:this.state._readOnly,required:this.state._required,size:this.state._size,spellcheck:"false",type:this.state._type,value:this.state._value},this.controller.onFacade,{onChange:this.onChange,onInput:this.onInput,onKeyDown:this.onKeyDown})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,r(this.host,this.ref)},this.onChange=t=>{var e,i;this.oldValue!==(null===(e=this.ref)||void 0===e?void 0:e.value)&&(this.oldValue=null===(i=this.ref)||void 0===i?void 0:i.value,this.controller.onFacade.onChange(t))},this.onInput=t=>{n(this,"_currentLength",t.target.value.length),this.controller.onFacade.onInput(t)},this.onKeyDown=t=>{"Enter"!==t.code&&"NumpadEnter"!==t.code||h({form:this.host,ref:this.ref})},this._accessKey=void 0,this._alert=!0,this._autoComplete=void 0,this._disabled=!1,this._error=void 0,this._hasCounter=!1,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icon=void 0,this._icons=void 0,this._id=void 0,this._label=void 0,this._list=void 0,this._maxLength=void 0,this._name=void 0,this._on=void 0,this._pattern=void 0,this._placeholder=void 0,this._readOnly=!1,this._required=!1,this._size=void 0,this._suggestions=void 0,this._smartButton=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._type="text",this._value=void 0,this.state={_autoComplete:"off",_currentLength:0,_hasValue:!1,_hideError:!1,_id:`id-${o()}`,_label:"…",_suggestions:[],_type:"text"},this.controller=new u(this,"text",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){f(this,t)}validateAutoComplete(t){this.controller.validateAutoComplete(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHasCounter(t){this.controller.validateHasCounter(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcon(t){this.validateIcons(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateList(t){this.validateSuggestions(t)}validateMaxLength(t){this.controller.validateMaxLength(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validatePattern(t){this.controller.validatePattern(t)}validatePlaceholder(t){this.controller.validatePlaceholder(t)}validateReadOnly(t){this.controller.validateReadOnly(t)}validateRequired(t){this.controller.validateRequired(t)}validateSize(t){this.controller.validateSize(t)}validateSuggestions(t){this.controller.validateSuggestions(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateType(t){this.controller.validateType(t)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.oldValue=this._value,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hasCounter:["validateHasCounter"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_maxLength:["validateMaxLength"],_name:["validateName"],_on:["validateOn"],_pattern:["validatePattern"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_size:["validateSize"],_suggestions:["validateSuggestions"],_smartButton:["validateSmartButton"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_type:["validateType"],_value:["validateValue"]}}};b.style={default:m};export{b as kol_input_text};
4
+ import{h as t,H as e,r as i,g as a}from"./index-6237c77d.js";import{a as s,s as n}from"./prop.validators-0872ab9e.js";import{f as l}from"./a11y.tipps-2fa5953b.js";import{n as o}from"./dev.utils-d7aa3c72.js";import{s as d,a as r}from"./reuse-d79ab469.js";import{p as h}from"./controller-fa605ac3.js";import{g as p}from"./controller-c37cc04c.js";import{a as u}from"./controller-9180c6ea.js";import{m as c}from"./component-names-fed305c7.js";import"./index-117bd1aa.js";import"./hide-label-181cab2f.js";import"./label-218f516d.js";import"./events-fa760b68.js";import"./tab-index-20b0daba.js";import"./associated.controller-a9205263.js";import"./controller-be9041f0.js";import"./controller-icon-0429172d.js";import"./icons-3d6a581a.js";import"./suggestions-0d70b04d.js";const f=(t,e)=>{s(t,"_alert",e)},v=':host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}.required label>span::after,.required legend>span::after{content:"*"}:host{display:block}input,textarea{cursor:text}input[type=checkbox],input[type=color],input[type=file],input[type=radio],input[type=range],label,option,select{cursor:pointer}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select[multiple] option,textarea{font-size:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}.kol-input{display:grid}.kol-input .input-slot{flex-grow:1}input:not([type=checkbox],[type=radio]),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>.kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}.kol-input.required .input-tooltip .span-label::after{content:"*"}',m=v;l("[KolInputText] Pre- und post-Label für Währung usw.");const b=class{render(){const{ariaDescribedBy:a}=p(this.state),i=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=d(this.state._label);return t(e,{key:"4772da78d870f97e78b83329502534860c72479c",class:{"kol-input-text":!0,"has-value":this.state._hasValue}},t(c,{key:"09360a82a4be80e5d7fd44e959d40818e7376b71",class:{[this.state._type]:!0,"hide-label":!!this.state._hideLabel},_currentLength:this.state._currentLength,_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hasCounter:this.state._hasCounter,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_suggestions:this.state._suggestions,_maxLength:this.state._maxLength,_readOnly:this.state._readOnly,_required:this.state._required,_smartButton:this.state._smartButton,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched,onClick:()=>{var t;return null===(t=this.ref)||void 0===t?void 0:t.focus()},role:"presentation"},t("span",{key:"4492bdd0148326b48aa95264abf3d49a44fe2dcb",slot:"label"},s?t("slot",null):this.state._label),t("div",{key:"68ce9a208ef0a2f39d61be21c66b3277d3a90bdc",slot:"input"},t("input",Object.assign({key:"677963a6a8c016fd970c35793a0dc572aaef35d5",ref:this.catchRef,title:"",accessKey:this.state._accessKey,"aria-describedby":a.length>0?a.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoComplete:this.state._autoComplete,autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,list:i?`${this.state._id}-list`:void 0,maxlength:this.state._maxLength,name:this.state._name,pattern:this.state._pattern,placeholder:this.state._placeholder,readOnly:this.state._readOnly,required:this.state._required,size:this.state._size,spellcheck:"false",type:this.state._type,value:this.state._value},this.controller.onFacade,{onChange:this.onChange,onInput:this.onInput,onKeyDown:this.onKeyDown})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,r(this.host,this.ref)},this.onChange=t=>{var e,a;this.oldValue!==(null===(e=this.ref)||void 0===e?void 0:e.value)&&(this.oldValue=null===(a=this.ref)||void 0===a?void 0:a.value,this.controller.onFacade.onChange(t))},this.onInput=t=>{n(this,"_currentLength",t.target.value.length),this.controller.onFacade.onInput(t)},this.onKeyDown=t=>{"Enter"!==t.code&&"NumpadEnter"!==t.code||h({form:this.host,ref:this.ref})},this._accessKey=void 0,this._alert=!0,this._autoComplete=void 0,this._disabled=!1,this._error=void 0,this._hasCounter=!1,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icon=void 0,this._icons=void 0,this._id=void 0,this._label=void 0,this._list=void 0,this._maxLength=void 0,this._name=void 0,this._on=void 0,this._pattern=void 0,this._placeholder=void 0,this._readOnly=!1,this._required=!1,this._size=void 0,this._suggestions=void 0,this._smartButton=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._type="text",this._value=void 0,this.state={_autoComplete:"off",_currentLength:0,_hasValue:!1,_hideError:!1,_id:`id-${o()}`,_label:"…",_suggestions:[],_type:"text"},this.controller=new u(this,"text",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){f(this,t)}validateAutoComplete(t){this.controller.validateAutoComplete(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHasCounter(t){this.controller.validateHasCounter(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcon(t){this.validateIcons(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateList(t){this.validateSuggestions(t)}validateMaxLength(t){this.controller.validateMaxLength(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validatePattern(t){this.controller.validatePattern(t)}validatePlaceholder(t){this.controller.validatePlaceholder(t)}validateReadOnly(t){this.controller.validateReadOnly(t)}validateRequired(t){this.controller.validateRequired(t)}validateSize(t){this.controller.validateSize(t)}validateSuggestions(t){this.controller.validateSuggestions(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateType(t){this.controller.validateType(t)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.oldValue=this._value,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hasCounter:["validateHasCounter"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_maxLength:["validateMaxLength"],_name:["validateName"],_on:["validateOn"],_pattern:["validatePattern"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_size:["validateSize"],_suggestions:["validateSuggestions"],_smartButton:["validateSmartButton"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_type:["validateType"],_value:["validateValue"]}}};b.style={default:m};export{b as kol_input_text};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as i,h as t,F as s,H as e,g as h}from"./index-a051748e.js";import{t as a}from"./i18n-ad947f60.js";import{h as n,s as d}from"./reuse-d79ab469.js";import{F as l}from"./form-field-msg-85face25.js";import{b as o,h as r,d as f}from"./component-names-fed305c7.js";import"./i18n-fddf0324.js";const u=class{constructor(t){i(this,t),this.slotName="input",this.catchInputSlot=t=>{n(this.host,t,this.slotName)},this._alert=!0,this._currentLength=void 0,this._disabled=!1,this._error="",this._hasCounter=!1,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icon=void 0,this._icons=void 0,this._id=void 0,this._label=void 0,this._maxLength=void 0,this._readOnly=!1,this._renderNoLabel=!1,this._required=!1,this._slotName=void 0,this._suggestions=void 0,this._smartButton=void 0,this._tooltipAlign="top",this._touched=!1}componentWillRender(){this.slotName=this._slotName?this._slotName:"input"}getIconsProp(){return this._icons||this._icon}getIconStyles(t){return t&&"object"==typeof t&&t.style?t.style:{}}render(){var i,h,n,_,c,u,p,b;const g=!this._readOnly&&"string"==typeof this._error&&this._error.length>0&&!0===this._touched,m=d(this._label),v="string"==typeof this._hint&&this._hint.length>0,y=!m&&this._hideLabel;return t(e,{key:"56500b863e4f9b623f3f34426e5a7e63ebb214d1",class:{"kol-input":!0,disabled:!0===this._disabled,error:!0===g,"read-only":!0===this._readOnly,required:!0===this._required,touched:!0===this._touched,"hidden-error":!0===this._hideError}},t("label",{key:"4602e2be026526d4946f5902f0854eca559ffcc9",class:"input-label",id:y?void 0:`${this._id}-label`,hidden:y,htmlFor:this._id},t("span",{key:"ad0e36c7d5e72eca5d6531a630018eea1049b74f"},t("slot",{key:"059067b6f6240008cf61256b6da7a45e3897f5dc",name:"label"}))),v&&t("span",{class:"hint",id:`${this._id}-hint`},this._hint),t("div",{key:"bbf91d7a733cad07fb78ea94bad2e3f5bca9c6f3",class:{input:!0,"icon-left":"object"==typeof(null===(i=this.getIconsProp())||void 0===i?void 0:i.left),"icon-right":"object"==typeof(null===(h=this.getIconsProp())||void 0===h?void 0:h.right)}},(null===(n=this.getIconsProp())||void 0===n?void 0:n.left)&&t(r,{_ariaLabel:"",_icons:(null===(_=this.getIconsProp())||void 0===_?void 0:_.left).icon,style:this.getIconStyles(null===(c=this.getIconsProp())||void 0===c?void 0:c.left)}),t("div",{key:"c32f93858da49b57bf1acc12915b262a5d716ed0",ref:this.catchInputSlot,id:this.slotName,class:"input-slot"}),"object"==typeof this._smartButton&&null!==this._smartButton&&t(f,{_customClass:this._smartButton._customClass,_disabled:this._smartButton._disabled,_icons:this._smartButton._icons,_hideLabel:!0,_id:this._smartButton._id,_label:this._smartButton._label,_on:this._smartButton._on,_tooltipAlign:this._smartButton._tooltipAlign,_variant:this._smartButton._variant}),(null===(u=this.getIconsProp())||void 0===u?void 0:u.right)&&t(r,{_ariaLabel:"",_icons:(null===(p=this.getIconsProp())||void 0===p?void 0:p.right).icon,style:this.getIconStyles(null===(b=this.getIconsProp())||void 0===b?void 0:b.right)})),y&&t(o,{"aria-hidden":"true",class:"input-tooltip",_align:this._tooltipAlign,_id:this._hideLabel?`${this._id}-label`:void 0,_label:this._label}),g&&t(l,{_alert:this._alert,_hideError:this._hideError,_error:this._error,_id:this._id}),Array.isArray(this._suggestions)&&this._suggestions.length>0&&t("datalist",{id:`${this._id}-list`},this._suggestions.map((i=>t("option",{value:i})))),this._hasCounter&&t("span",{class:"counter","aria-atomic":"true","aria-live":"polite"},this._currentLength,this._maxLength&&t(s,null,t("span",{"aria-label":a("kol-of"),role:"img"},"/"),this._maxLength)," ",t("span",null,a("kol-characters"))))}get host(){return h(this)}};export{u as kol_input};
4
+ import{r as i,h as t,F as e,H as s,g as d}from"./index-6237c77d.js";import{t as a}from"./i18n-ad947f60.js";import{h,s as n}from"./reuse-d79ab469.js";import{F as o}from"./form-field-msg-975814de.js";import{b as l,h as f,d as c}from"./component-names-fed305c7.js";import"./i18n-fddf0324.js";const r=class{constructor(t){i(this,t),this.slotName="input",this.catchInputSlot=t=>{h(this.host,t,this.slotName)},this._alert=!0,this._currentLength=void 0,this._disabled=!1,this._error="",this._hasCounter=!1,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icon=void 0,this._icons=void 0,this._id=void 0,this._label=void 0,this._maxLength=void 0,this._readOnly=!1,this._renderNoLabel=!1,this._required=!1,this._slotName=void 0,this._suggestions=void 0,this._smartButton=void 0,this._tooltipAlign="top",this._touched=!1}componentWillRender(){this.slotName=this._slotName?this._slotName:"input"}getIconsProp(){return this._icons||this._icon}getIconStyles(t){return t&&"object"==typeof t&&t.style?t.style:{}}render(){var i,d,h,r,_,b,u,p;const g=!this._readOnly&&"string"==typeof this._error&&this._error.length>0&&!0===this._touched,m=n(this._label),y="string"==typeof this._hint&&this._hint.length>0,v=!m&&this._hideLabel;return t(s,{key:"8fc0c89a974285aee132e548834920280ec476c0",class:{"kol-input":!0,disabled:!0===this._disabled,error:!0===g,"read-only":!0===this._readOnly,required:!0===this._required,touched:!0===this._touched,"hidden-error":!0===this._hideError}},t("label",{key:"0e7a7e48d04267c16d5a421d8d995da8c4358be0",class:"input-label",id:v?void 0:`${this._id}-label`,hidden:v,htmlFor:this._id},t("span",{key:"0f6fe89a02cb3572ff3fbe632fc9238645871252"},t("slot",{key:"89c19e3075192d3eeabde219c8c7f14bcdf00776",name:"label"}))),y&&t("span",{key:"f332306dd9ff0d501e9cdb58044da76602b3639e",class:"hint",id:`${this._id}-hint`},this._hint),t("div",{key:"a27960392a62e8f532def0d2796c3c4d411d88a2",class:{input:!0,"icon-left":"object"==typeof(null===(i=this.getIconsProp())||void 0===i?void 0:i.left),"icon-right":"object"==typeof(null===(d=this.getIconsProp())||void 0===d?void 0:d.right)}},(null===(h=this.getIconsProp())||void 0===h?void 0:h.left)&&t(f,{key:"478be71d36f5e1313bef2b4b77240d889bfb51ae",_ariaLabel:"",_icons:(null===(r=this.getIconsProp())||void 0===r?void 0:r.left).icon,style:this.getIconStyles(null===(_=this.getIconsProp())||void 0===_?void 0:_.left)}),t("div",{key:"3292bc865ff6841fa16484131b7451d8a8dc329b",ref:this.catchInputSlot,id:this.slotName,class:"input-slot"}),"object"==typeof this._smartButton&&null!==this._smartButton&&t(c,{key:"0befb885b457482fc7890893121241c11c2dcf26",_customClass:this._smartButton._customClass,_disabled:this._smartButton._disabled,_icons:this._smartButton._icons,_hideLabel:!0,_id:this._smartButton._id,_label:this._smartButton._label,_on:this._smartButton._on,_tooltipAlign:this._smartButton._tooltipAlign,_variant:this._smartButton._variant}),(null===(b=this.getIconsProp())||void 0===b?void 0:b.right)&&t(f,{key:"4fc2562353004dca1a941da2313593f9b09cc538",_ariaLabel:"",_icons:(null===(u=this.getIconsProp())||void 0===u?void 0:u.right).icon,style:this.getIconStyles(null===(p=this.getIconsProp())||void 0===p?void 0:p.right)})),v&&t(l,{key:"b7b192e1632cb14cfaa94243fe34ca798cf599d7","aria-hidden":"true",class:"input-tooltip",_align:this._tooltipAlign,_id:this._hideLabel?`${this._id}-label`:void 0,_label:this._label}),g&&t(o,{key:"d675b93c4a68665767cd4829e84391b9bbc94a93",_alert:this._alert,_hideError:this._hideError,_error:this._error,_id:this._id}),Array.isArray(this._suggestions)&&this._suggestions.length>0&&t("datalist",{key:"d7d32fc1df0486acd57b6e813e5d3e9ed376845c",id:`${this._id}-list`},this._suggestions.map((i=>t("option",{value:i})))),this._hasCounter&&t("span",{key:"adfeb54dc2b8bdccdf04b76ea55f15fbdbd7215a",class:"counter","aria-atomic":"true","aria-live":"polite"},this._currentLength,this._maxLength&&t(e,{key:"42503be254f0745dea3bd75d2b9a8bbf2041c505"},t("span",{key:"b94bc48250af289e1a919261b35a928d9a84177d","aria-label":a("kol-of"),role:"img"},"/"),this._maxLength)," ",t("span",{key:"66cf763462718f9e29d26fa2491fafe91ea61de9"},a("kol-characters"))))}get host(){return d(this)}};export{r as kol_input};
@@ -1 +1 @@
1
- {"version":3,"names":["KolInput","this","slotName","catchInputSlot","slot","handleSlotContent","host","componentWillRender","_slotName","getIconsProp","_icons","_icon","getIconStyles","icon","style","render","hasError","_readOnly","_error","length","_touched","hasExpertSlot","showExpertSlot","_label","hasHint","_hint","useTooltopInsteadOfLabel","_hideLabel","h","Host","key","class","disabled","_disabled","error","required","_required","touched","_hideError","id","_id","undefined","hidden","htmlFor","name","input","_a","left","_b","right","_c","KolIconTag","_ariaLabel","_d","_e","ref","_smartButton","KolButtonWcTag","_customClass","_on","_tooltipAlign","_variant","_f","_g","_h","KolTooltipWcTag","_align","FormFieldMsg","_alert","Array","isArray","_suggestions","map","option","value","_hasCounter","_currentLength","_maxLength","Fragment","translate","role"],"sources":["src/components/input/component.tsx"],"sourcesContent":["/* eslint-disable jsx-a11y/label-has-associated-control */\nimport { Component, Element, Fragment, h, Host, JSX, Prop } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { Stringified } from '../../types/common';\nimport { AnyIconFontClass, KoliBriCustomIcon, KoliBriHorizontalIcons } from '../../types/icons';\nimport { IdPropType } from '../../types/props/id';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { SuggestionsPropType } from '../../types/props/suggestions';\nimport { TooltipAlignPropType } from '../../types/props/tooltip-align';\nimport { W3CInputValue } from '../../types/w3c';\nimport { handleSlotContent, showExpertSlot } from '../../utils/reuse';\nimport { FormFieldMsg } from '../@shared/form-field-msg';\nimport { Props as ButtonProps } from '../button/types';\nimport { Props } from './types';\nimport { KolButtonWcTag, KolIconTag, KolTooltipWcTag } from '../../core/component-names';\n\n/**\n * @internal\n */\n@Component({\n\ttag: 'kol-input',\n\tshadow: false,\n})\nexport class KolInput implements Props {\n\t@Element() private readonly host?: HTMLElement;\n\n\tprivate slotName: string = 'input';\n\n\tpublic componentWillRender(): void {\n\t\tthis.slotName = this._slotName ? this._slotName : 'input';\n\t}\n\n\tprivate catchInputSlot = (slot?: HTMLDivElement): void => {\n\t\thandleSlotContent(this.host!, slot!, this.slotName);\n\t};\n\n\tprivate getIconsProp(): KoliBriHorizontalIcons | undefined {\n\t\treturn this._icons || this._icon;\n\t}\n\n\tprivate getIconStyles(icon?: AnyIconFontClass | KoliBriCustomIcon): Record<string, string> {\n\t\treturn icon && typeof icon === 'object' && icon.style ? icon.style : {};\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst hasError = !this._readOnly && typeof this._error === 'string' && this._error.length > 0 && this._touched === true;\n\t\tconst hasExpertSlot = showExpertSlot(this._label);\n\t\tconst hasHint = typeof this._hint === 'string' && this._hint.length > 0;\n\t\tconst useTooltopInsteadOfLabel = !hasExpertSlot && this._hideLabel;\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={{\n\t\t\t\t\t'kol-input': true,\n\t\t\t\t\tdisabled: this._disabled === true,\n\t\t\t\t\terror: hasError === true,\n\t\t\t\t\t'read-only': this._readOnly === true,\n\t\t\t\t\trequired: this._required === true,\n\t\t\t\t\ttouched: this._touched === true,\n\t\t\t\t\t'hidden-error': this._hideError === true,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<label class=\"input-label\" id={!useTooltopInsteadOfLabel ? `${this._id}-label` : undefined} hidden={useTooltopInsteadOfLabel} htmlFor={this._id}>\n\t\t\t\t\t{/* INFO: span is needed for css styling :after content like a star (*) or optional text ! */}\n\t\t\t\t\t<span>\n\t\t\t\t\t\t{/* INFO: label comes with any html tag or as plain text! */}\n\t\t\t\t\t\t<slot name=\"label\"></slot>\n\t\t\t\t\t</span>\n\t\t\t\t</label>\n\t\t\t\t{hasHint && (\n\t\t\t\t\t<span class=\"hint\" id={`${this._id}-hint`}>\n\t\t\t\t\t\t{this._hint}\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\t\t\t\t<div\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tinput: true,\n\t\t\t\t\t\t'icon-left': typeof this.getIconsProp()?.left === 'object',\n\t\t\t\t\t\t'icon-right': typeof this.getIconsProp()?.right === 'object',\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{this.getIconsProp()?.left && (\n\t\t\t\t\t\t<KolIconTag\n\t\t\t\t\t\t\t_ariaLabel=\"\"\n\t\t\t\t\t\t\t_icons={(this.getIconsProp()?.left as KoliBriCustomIcon).icon}\n\t\t\t\t\t\t\tstyle={this.getIconStyles(this.getIconsProp()?.left)}\n\t\t\t\t\t\t></KolIconTag>\n\t\t\t\t\t)}\n\t\t\t\t\t<div ref={this.catchInputSlot} id={this.slotName} class=\"input-slot\"></div>\n\t\t\t\t\t{typeof this._smartButton === 'object' && this._smartButton !== null && (\n\t\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\t\t_customClass={this._smartButton._customClass}\n\t\t\t\t\t\t\t_disabled={this._smartButton._disabled}\n\t\t\t\t\t\t\t_icons={this._smartButton._icons}\n\t\t\t\t\t\t\t_hideLabel={true}\n\t\t\t\t\t\t\t_id={this._smartButton._id}\n\t\t\t\t\t\t\t_label={this._smartButton._label}\n\t\t\t\t\t\t\t_on={this._smartButton._on}\n\t\t\t\t\t\t\t_tooltipAlign={this._smartButton._tooltipAlign}\n\t\t\t\t\t\t\t_variant={this._smartButton._variant}\n\t\t\t\t\t\t></KolButtonWcTag>\n\t\t\t\t\t)}\n\t\t\t\t\t{this.getIconsProp()?.right && (\n\t\t\t\t\t\t<KolIconTag\n\t\t\t\t\t\t\t_ariaLabel=\"\"\n\t\t\t\t\t\t\t_icons={(this.getIconsProp()?.right as KoliBriCustomIcon).icon}\n\t\t\t\t\t\t\tstyle={this.getIconStyles(this.getIconsProp()?.right)}\n\t\t\t\t\t\t></KolIconTag>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t\t{useTooltopInsteadOfLabel && (\n\t\t\t\t\t<KolTooltipWcTag\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Dieses Aria-Hidden verhindert das doppelte Vorlesen des Labels,\n\t\t\t\t\t\t * verhindert aber nicht das Aria-Labelledby vorgelesen wird.\n\t\t\t\t\t\t */\n\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\tclass=\"input-tooltip\"\n\t\t\t\t\t\t_align={this._tooltipAlign}\n\t\t\t\t\t\t_id={this._hideLabel ? `${this._id}-label` : undefined}\n\t\t\t\t\t\t_label={this._label}\n\t\t\t\t\t></KolTooltipWcTag>\n\t\t\t\t)}\n\t\t\t\t{hasError && <FormFieldMsg _alert={this._alert} _hideError={this._hideError} _error={this._error} _id={this._id} />}\n\t\t\t\t{Array.isArray(this._suggestions) && this._suggestions.length > 0 && (\n\t\t\t\t\t<datalist id={`${this._id}-list`}>\n\t\t\t\t\t\t{this._suggestions.map((option: W3CInputValue) => (\n\t\t\t\t\t\t\t<option value={option} />\n\t\t\t\t\t\t))}\n\t\t\t\t\t</datalist>\n\t\t\t\t)}\n\t\t\t\t{this._hasCounter && (\n\t\t\t\t\t<span class=\"counter\" aria-atomic=\"true\" aria-live=\"polite\">\n\t\t\t\t\t\t{this._currentLength}\n\t\t\t\t\t\t{this._maxLength && (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<span aria-label={translate('kol-of')} role=\"img\">\n\t\t\t\t\t\t\t\t\t/\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t{this._maxLength}\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t)}{' '}\n\t\t\t\t\t\t<span>{translate('kol-characters')}</span>\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines whether the screen-readers should read out the notification.\n\t * @TODO: Change type back to `AlertPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _alert?: boolean = true;\n\n\t/**\n\t * @internal\n\t */\n\t@Prop() public _currentLength?: number;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t * @TODO: Change type back to `DisabledPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Defines the error message text.\n\t */\n\t@Prop() public _error?: string = '';\n\n\t/**\n\t * Shows the character count on the lower border of the input.\n\t * @TODO: Change type back to `HasCounterPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hasCounter?: boolean = false;\n\n\t/**\n\t * Hides the error message but leaves it in the DOM for the input's aria-describedby.\n\t * @TODO: Change type back to `HideErrorPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideError?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the hint text.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * @deprecated Use _icons.\n\t */\n\t@Prop() public _icon?: KoliBriHorizontalIcons;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: KoliBriHorizontalIcons;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id!: IdPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the maximum number of input characters.\n\t */\n\t@Prop() public _maxLength?: number;\n\n\t/**\n\t * Makes the input element read only.\n\t * @TODO: Change type back to `ReadOnlyPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _readOnly?: boolean = false;\n\n\t/**\n\t * Gibt an, ob die Komponente kein Label rendern soll.\n\t */\n\t@Prop() public _renderNoLabel?: boolean = false;\n\n\t/**\n\t * Makes the input element required.\n\t * @TODO: Change type back to `RequiredPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _required?: boolean = false;\n\n\t/**\n\t * Ermöglicht den Slotnamen zu bestimmen. Wird nur verwendet, wenn sonst mehrere Slots mit dem gleichen Namen innerhalb eines Shadow DOMs existieren würden.\n\t * @internal\n\t */\n\t@Prop() public _slotName?: string;\n\n\t/**\n\t * Suggestions to provide for the input.\n\t */\n\t@Prop() public _suggestions?: SuggestionsPropType;\n\n\t/**\n\t * Allows to add a button with an arbitrary action within the element (_hide-label only).\n\t */\n\t@Prop() public _smartButton?: Stringified<ButtonProps>;\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 * Shows if the input was touched by a user.\n\t * @TODO: Change type back to `TouchedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _touched?: boolean = false;\n}\n"],"mappings":";;;4SAwBaA,EAAQ,M,yBAGZC,KAAAC,SAAmB,QAMnBD,KAAAE,eAAkBC,IACzBC,EAAkBJ,KAAKK,KAAOF,EAAOH,KAAKC,SAAS,E,YAwHlB,K,6CAWG,M,YAKJ,G,iBAMM,M,gBAMD,M,gBAOA,M,WAKN,G,6HA+BK,M,oBAKK,M,eAML,M,oGAqBiB,M,cAMlB,K,CA1O7B,mBAAAK,GACNN,KAAKC,SAAWD,KAAKO,UAAYP,KAAKO,UAAY,O,CAO3C,YAAAC,GACP,OAAOR,KAAKS,QAAUT,KAAKU,K,CAGpB,aAAAC,CAAcC,GACrB,OAAOA,UAAeA,IAAS,UAAYA,EAAKC,MAAQD,EAAKC,MAAQ,E,CAG/D,MAAAC,G,oBACN,MAAMC,GAAYf,KAAKgB,kBAAoBhB,KAAKiB,SAAW,UAAYjB,KAAKiB,OAAOC,OAAS,GAAKlB,KAAKmB,WAAa,KACnH,MAAMC,EAAgBC,EAAerB,KAAKsB,QAC1C,MAAMC,SAAiBvB,KAAKwB,QAAU,UAAYxB,KAAKwB,MAAMN,OAAS,EACtE,MAAMO,GAA4BL,GAAiBpB,KAAK0B,WAExD,OACCC,EAACC,EAAI,CAAAC,IAAA,2CACJC,MAAO,CACN,YAAa,KACbC,SAAU/B,KAAKgC,YAAc,KAC7BC,MAAOlB,IAAa,KACpB,YAAaf,KAAKgB,YAAc,KAChCkB,SAAUlC,KAAKmC,YAAc,KAC7BC,QAASpC,KAAKmB,WAAa,KAC3B,e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AqD,SAAA,SAAAA,EAAEb,QACrBrB,EAACuB,EAAU,CACVC,WAAW,GACX1C,SAASqD,EAAA9D,KAAKQ,kBAAc,MAAAsD,SAAA,SAAAA,EAAEd,OAA4BpC,KAC1DC,MAAOb,KAAKW,eAAcoD,EAAA/D,KAAKQ,kBAAc,MAAAuD,SAAA,SAAAA,EAAEf,UAIjDvB,GACAE,EAACqC,EAAe,eAKH,OACZlC,MAAM,gBACNmC,OAAQjE,KAAK2D,cACbpB,IAAKvC,KAAK0B,WAAa,GAAG1B,KAAKuC,YAAcC,UAC7ClB,OAAQtB,KAAKsB,SAGdP,GAAYY,EAACuC,EAAY,CAACC,OAAQnE,KAAKmE,OAAQ9B,WAAYrC,KAAKqC,WAAYpB,OAAQjB,KAAKiB,OAAQsB,IAAKvC,KAAKuC,MAC3G6B,MAAMC,QAAQrE,KAAKsE,eAAiBtE,KAAKsE,aAAapD,OAAS,GAC/DS,EAAA,YAAUW,GAAI,GAAGtC,KAAKuC,YACpBvC,KAAKsE,aAAaC,KAAKC,GACvB7C,EAAA,UAAQ8C,MAAOD,OAIjBxE,KAAK0E,aACL/C,EAAA,QAAMG,MAAM,UAAS,cAAa,OAAM,YAAW,UACjD9B,KAAK2E,eACL3E,KAAK4E,YACLjD,EAACkD,EAAQ,KACRlD,EAAA,qBAAkBmD,EAAU,UAAWC,KAAK,OAAK,KAGhD/E,KAAK4E,YAEL,IACHjD,EAAA,YAAOmD,EAAU,oB"}
1
+ {"version":3,"names":["KolInput","this","slotName","catchInputSlot","slot","handleSlotContent","host","componentWillRender","_slotName","getIconsProp","_icons","_icon","getIconStyles","icon","style","render","hasError","_readOnly","_error","length","_touched","hasExpertSlot","showExpertSlot","_label","hasHint","_hint","useTooltopInsteadOfLabel","_hideLabel","h","Host","key","class","disabled","_disabled","error","required","_required","touched","_hideError","id","_id","undefined","hidden","htmlFor","name","input","_a","left","_b","right","_c","KolIconTag","_ariaLabel","_d","_e","ref","_smartButton","KolButtonWcTag","_customClass","_on","_tooltipAlign","_variant","_f","_g","_h","KolTooltipWcTag","_align","FormFieldMsg","_alert","Array","isArray","_suggestions","map","option","value","_hasCounter","_currentLength","_maxLength","Fragment","translate","role"],"sources":["src/components/input/component.tsx"],"sourcesContent":["/* eslint-disable jsx-a11y/label-has-associated-control */\nimport { Component, Element, Fragment, h, Host, JSX, Prop } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { Stringified } from '../../types/common';\nimport { AnyIconFontClass, KoliBriCustomIcon, KoliBriHorizontalIcons } from '../../types/icons';\nimport { IdPropType } from '../../types/props/id';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { SuggestionsPropType } from '../../types/props/suggestions';\nimport { TooltipAlignPropType } from '../../types/props/tooltip-align';\nimport { W3CInputValue } from '../../types/w3c';\nimport { handleSlotContent, showExpertSlot } from '../../utils/reuse';\nimport { FormFieldMsg } from '../@shared/form-field-msg';\nimport { Props as ButtonProps } from '../button/types';\nimport { Props } from './types';\nimport { KolButtonWcTag, KolIconTag, KolTooltipWcTag } from '../../core/component-names';\n\n/**\n * @internal\n */\n@Component({\n\ttag: 'kol-input',\n\tshadow: false,\n})\nexport class KolInput implements Props {\n\t@Element() private readonly host?: HTMLElement;\n\n\tprivate slotName: string = 'input';\n\n\tpublic componentWillRender(): void {\n\t\tthis.slotName = this._slotName ? this._slotName : 'input';\n\t}\n\n\tprivate catchInputSlot = (slot?: HTMLDivElement): void => {\n\t\thandleSlotContent(this.host!, slot!, this.slotName);\n\t};\n\n\tprivate getIconsProp(): KoliBriHorizontalIcons | undefined {\n\t\treturn this._icons || this._icon;\n\t}\n\n\tprivate getIconStyles(icon?: AnyIconFontClass | KoliBriCustomIcon): Record<string, string> {\n\t\treturn icon && typeof icon === 'object' && icon.style ? icon.style : {};\n\t}\n\n\tpublic render(): JSX.Element {\n\t\tconst hasError = !this._readOnly && typeof this._error === 'string' && this._error.length > 0 && this._touched === true;\n\t\tconst hasExpertSlot = showExpertSlot(this._label);\n\t\tconst hasHint = typeof this._hint === 'string' && this._hint.length > 0;\n\t\tconst useTooltopInsteadOfLabel = !hasExpertSlot && this._hideLabel;\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={{\n\t\t\t\t\t'kol-input': true,\n\t\t\t\t\tdisabled: this._disabled === true,\n\t\t\t\t\terror: hasError === true,\n\t\t\t\t\t'read-only': this._readOnly === true,\n\t\t\t\t\trequired: this._required === true,\n\t\t\t\t\ttouched: this._touched === true,\n\t\t\t\t\t'hidden-error': this._hideError === true,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<label class=\"input-label\" id={!useTooltopInsteadOfLabel ? `${this._id}-label` : undefined} hidden={useTooltopInsteadOfLabel} htmlFor={this._id}>\n\t\t\t\t\t{/* INFO: span is needed for css styling :after content like a star (*) or optional text ! */}\n\t\t\t\t\t<span>\n\t\t\t\t\t\t{/* INFO: label comes with any html tag or as plain text! */}\n\t\t\t\t\t\t<slot name=\"label\"></slot>\n\t\t\t\t\t</span>\n\t\t\t\t</label>\n\t\t\t\t{hasHint && (\n\t\t\t\t\t<span class=\"hint\" id={`${this._id}-hint`}>\n\t\t\t\t\t\t{this._hint}\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\t\t\t\t<div\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tinput: true,\n\t\t\t\t\t\t'icon-left': typeof this.getIconsProp()?.left === 'object',\n\t\t\t\t\t\t'icon-right': typeof this.getIconsProp()?.right === 'object',\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{this.getIconsProp()?.left && (\n\t\t\t\t\t\t<KolIconTag\n\t\t\t\t\t\t\t_ariaLabel=\"\"\n\t\t\t\t\t\t\t_icons={(this.getIconsProp()?.left as KoliBriCustomIcon).icon}\n\t\t\t\t\t\t\tstyle={this.getIconStyles(this.getIconsProp()?.left)}\n\t\t\t\t\t\t></KolIconTag>\n\t\t\t\t\t)}\n\t\t\t\t\t<div ref={this.catchInputSlot} id={this.slotName} class=\"input-slot\"></div>\n\t\t\t\t\t{typeof this._smartButton === 'object' && this._smartButton !== null && (\n\t\t\t\t\t\t<KolButtonWcTag\n\t\t\t\t\t\t\t_customClass={this._smartButton._customClass}\n\t\t\t\t\t\t\t_disabled={this._smartButton._disabled}\n\t\t\t\t\t\t\t_icons={this._smartButton._icons}\n\t\t\t\t\t\t\t_hideLabel={true}\n\t\t\t\t\t\t\t_id={this._smartButton._id}\n\t\t\t\t\t\t\t_label={this._smartButton._label}\n\t\t\t\t\t\t\t_on={this._smartButton._on}\n\t\t\t\t\t\t\t_tooltipAlign={this._smartButton._tooltipAlign}\n\t\t\t\t\t\t\t_variant={this._smartButton._variant}\n\t\t\t\t\t\t></KolButtonWcTag>\n\t\t\t\t\t)}\n\t\t\t\t\t{this.getIconsProp()?.right && (\n\t\t\t\t\t\t<KolIconTag\n\t\t\t\t\t\t\t_ariaLabel=\"\"\n\t\t\t\t\t\t\t_icons={(this.getIconsProp()?.right as KoliBriCustomIcon).icon}\n\t\t\t\t\t\t\tstyle={this.getIconStyles(this.getIconsProp()?.right)}\n\t\t\t\t\t\t></KolIconTag>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t\t{useTooltopInsteadOfLabel && (\n\t\t\t\t\t<KolTooltipWcTag\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Dieses Aria-Hidden verhindert das doppelte Vorlesen des Labels,\n\t\t\t\t\t\t * verhindert aber nicht das Aria-Labelledby vorgelesen wird.\n\t\t\t\t\t\t */\n\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\tclass=\"input-tooltip\"\n\t\t\t\t\t\t_align={this._tooltipAlign}\n\t\t\t\t\t\t_id={this._hideLabel ? `${this._id}-label` : undefined}\n\t\t\t\t\t\t_label={this._label}\n\t\t\t\t\t></KolTooltipWcTag>\n\t\t\t\t)}\n\t\t\t\t{hasError && <FormFieldMsg _alert={this._alert} _hideError={this._hideError} _error={this._error} _id={this._id} />}\n\t\t\t\t{Array.isArray(this._suggestions) && this._suggestions.length > 0 && (\n\t\t\t\t\t<datalist id={`${this._id}-list`}>\n\t\t\t\t\t\t{this._suggestions.map((option: W3CInputValue) => (\n\t\t\t\t\t\t\t<option value={option} />\n\t\t\t\t\t\t))}\n\t\t\t\t\t</datalist>\n\t\t\t\t)}\n\t\t\t\t{this._hasCounter && (\n\t\t\t\t\t<span class=\"counter\" aria-atomic=\"true\" aria-live=\"polite\">\n\t\t\t\t\t\t{this._currentLength}\n\t\t\t\t\t\t{this._maxLength && (\n\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t<span aria-label={translate('kol-of')} role=\"img\">\n\t\t\t\t\t\t\t\t\t/\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t{this._maxLength}\n\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t)}{' '}\n\t\t\t\t\t\t<span>{translate('kol-characters')}</span>\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines whether the screen-readers should read out the notification.\n\t * @TODO: Change type back to `AlertPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _alert?: boolean = true;\n\n\t/**\n\t * @internal\n\t */\n\t@Prop() public _currentLength?: number;\n\n\t/**\n\t * Makes the element not focusable and ignore all events.\n\t * @TODO: Change type back to `DisabledPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _disabled?: boolean = false;\n\n\t/**\n\t * Defines the error message text.\n\t */\n\t@Prop() public _error?: string = '';\n\n\t/**\n\t * Shows the character count on the lower border of the input.\n\t * @TODO: Change type back to `HasCounterPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hasCounter?: boolean = false;\n\n\t/**\n\t * Hides the error message but leaves it in the DOM for the input's aria-describedby.\n\t * @TODO: Change type back to `HideErrorPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideError?: boolean = false;\n\n\t/**\n\t * Hides the caption by default and displays the caption text with a tooltip when the\n\t * interactive element is focused or the mouse is over it.\n\t * @TODO: Change type back to `HideLabelPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _hideLabel?: boolean = false;\n\n\t/**\n\t * Defines the hint text.\n\t */\n\t@Prop() public _hint?: string = '';\n\n\t/**\n\t * @deprecated Use _icons.\n\t */\n\t@Prop() public _icon?: KoliBriHorizontalIcons;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: KoliBriHorizontalIcons;\n\n\t/**\n\t * Defines the internal ID of the primary component element.\n\t */\n\t@Prop() public _id!: IdPropType;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label!: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the maximum number of input characters.\n\t */\n\t@Prop() public _maxLength?: number;\n\n\t/**\n\t * Makes the input element read only.\n\t * @TODO: Change type back to `ReadOnlyPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _readOnly?: boolean = false;\n\n\t/**\n\t * Gibt an, ob die Komponente kein Label rendern soll.\n\t */\n\t@Prop() public _renderNoLabel?: boolean = false;\n\n\t/**\n\t * Makes the input element required.\n\t * @TODO: Change type back to `RequiredPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _required?: boolean = false;\n\n\t/**\n\t * Ermöglicht den Slotnamen zu bestimmen. Wird nur verwendet, wenn sonst mehrere Slots mit dem gleichen Namen innerhalb eines Shadow DOMs existieren würden.\n\t * @internal\n\t */\n\t@Prop() public _slotName?: string;\n\n\t/**\n\t * Suggestions to provide for the input.\n\t */\n\t@Prop() public _suggestions?: SuggestionsPropType;\n\n\t/**\n\t * Allows to add a button with an arbitrary action within the element (_hide-label only).\n\t */\n\t@Prop() public _smartButton?: Stringified<ButtonProps>;\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 * Shows if the input was touched by a user.\n\t * @TODO: Change type back to `TouchedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop() public _touched?: boolean = false;\n}\n"],"mappings":";;;uSAwBaA,EAAQ,M,yBAGZC,KAAAC,SAAmB,QAMnBD,KAAAE,eAAkBC,IACzBC,EAAkBJ,KAAKK,KAAOF,EAAOH,KAAKC,SAAS,E,YAwHlB,K,6CAWG,M,YAKJ,G,iBAMM,M,gBAMD,M,gBAOA,M,WAKN,G,6HA+BK,M,oBAKK,M,eAML,M,oGAqBiB,M,cAMlB,K,CA1O7B,mBAAAK,GACNN,KAAKC,SAAWD,KAAKO,UAAYP,KAAKO,UAAY,O,CAO3C,YAAAC,GACP,OAAOR,KAAKS,QAAUT,KAAKU,K,CAGpB,aAAAC,CAAcC,GACrB,OAAOA,UAAeA,IAAS,UAAYA,EAAKC,MAAQD,EAAKC,MAAQ,E,CAG/D,MAAAC,G,oBACN,MAAMC,GAAYf,KAAKgB,kBAAoBhB,KAAKiB,SAAW,UAAYjB,KAAKiB,OAAOC,OAAS,GAAKlB,KAAKmB,WAAa,KACnH,MAAMC,EAAgBC,EAAerB,KAAKsB,QAC1C,MAAMC,SAAiBvB,KAAKwB,QAAU,UAAYxB,KAAKwB,MAAMN,OAAS,EACtE,MAAMO,GAA4BL,GAAiBpB,KAAK0B,WAExD,OACCC,EAACC,EAAI,CAAAC,IAAA,2CACJC,MAAO,CACN,YAAa,KACbC,SAAU/B,KAAKgC,YAAc,KAC7BC,MAAOlB,IAAa,KACpB,YAAaf,KAAKgB,YAAc,KAChCkB,SAAUlC,KAAKmC,YAAc,KAC7BC,QAASpC,KAAKmB,WAAa,KAC3B,eAAgBnB,KAAKqC,aAAe,OAGrCV,EAAA,SAAAE,IAAA,2CAAOC,MAAM,cAAcQ,IAAKb,EAA2B,GAAGzB,KAAKuC,YAAcC,UAAWC,OAAQhB,EAA0BiB,QAA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9D,KAAKQ,kBAAc,MAAAsD,SAAA,SAAAA,EAAEd,OAA4BpC,KAC1DC,MAAOb,KAAKW,eAAcoD,EAAA/D,KAAKQ,kBAAc,MAAAuD,SAAA,SAAAA,EAAEf,UAIjDvB,GACAE,EAACqC,EAAe,CAAAnC,IAAA,yDAKH,OACZC,MAAM,gBACNmC,OAAQjE,KAAK2D,cACbpB,IAAKvC,KAAK0B,WAAa,GAAG1B,KAAKuC,YAAcC,UAC7ClB,OAAQtB,KAAKsB,SAGdP,GAAYY,EAACuC,EAAY,CAAArC,IAAA,2CAACsC,OAAQnE,KAAKmE,OAAQ9B,WAAYrC,KAAKqC,WAAYpB,OAAQjB,KAAKiB,OAAQsB,IAAKvC,KAAKuC,MAC3G6B,MAAMC,QAAQrE,KAAKsE,eAAiBtE,KAAKsE,aAAapD,OAAS,GAC/DS,EAAA,YAAAE,IAAA,2CAAUS,GAAI,GAAGtC,KAAKuC,YACpBvC,KAAKsE,aAAaC,KAAKC,GACvB7C,EAAA,UAAQ8C,MAAOD,OAIjBxE,KAAK0E,aACL/C,EAAA,QAAAE,IAAA,2CAAMC,MAAM,UAAS,cAAa,OAAM,YAAW,UACjD9B,KAAK2E,eACL3E,KAAK4E,YACLjD,EAACkD,EAAQ,CAAAhD,IAAA,4CACRF,EAAA,QAAAE,IAAA,wDAAkBiD,EAAU,UAAWC,KAAK,OAAK,KAGhD/E,KAAK4E,YAEL,IACHjD,EAAA,QAAAE,IAAA,4CAAOiD,EAAU,oB"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as e,h as t,H as i}from"./index-a051748e.js";import{t as a}from"./i18n-ad947f60.js";import{c as o,v as r}from"./color-51fda110.js";import{d as s}from"./a11y.tipps-798efb1a.js";import{a as l}from"./prop.validators-3017e14b.js";import"./i18n-fddf0324.js";import"./reuse-d79ab469.js";import"./dev.utils-f829063f.js";import"./index-117bd1aa.js";const n=":host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}:host{display:inline-block}text{font-size:90px;letter-spacing:normal;word-spacing:normal}svg{max-height:100%}",d=n,c=class{constructor(t){e(this,t),this.handleColorChange=(e,t)=>{if("string"==typeof e){const a=o(e);t.set("_color",{red:a[0],green:a[1],blue:a[2]})}else s("[KolKolibri] You used the complex color schema. For the KoliBri we use need the color as hex string.")},this._color="#003c78",this._labeled=!0,this.state={_color:{red:0,green:60,blue:120},_labeled:!0}}render(){const e=`rgb(${this.state._color.red},${this.state._color.green},${this.state._color.blue})`;return t(i,{key:"ffd3fa904200e2add17a83c1175c4760ca0e92f6",class:"kol-kolibri"},t("svg",{key:"54e0538c067ba5cc10659aee685bc2f7bcca0545",role:"img","aria-label":a("kol-kolibri-logo"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 600 600",fill:e},t("path",{key:"5b8bd5e85cf277cc8b7d2c036be67a2126d1a9ec",d:"M353 322L213 304V434L353 322Z"}),t("path",{key:"024cfcf98f5df80ae2e79dfcac4652b2df062574",d:"M209 564V304L149 434L209 564Z"}),t("path",{key:"e3aadfeb37832635f2ffe3590ba60c122729f905",d:"M357 316L417 250L361 210L275 244L357 316Z"}),t("path",{key:"0980eff7cd15e0a76f43d30e53a9b3e6867555d3",d:"M329 218L237 92L250 222L272 241L329 218Z"}),t("path",{key:"9b7edf6fad493522dd919be973c08ccfcfb67f18",d:"M353 318L35 36L213 300L353 318Z"}),t("path",{key:"a03ddb00ea61b279a8074e8d8e211c02c2f9c58f",d:"M391 286L565 272L421 252L391 286Z"}),!0===this.state._labeled&&t("text",{x:"250",y:"525",fill:e},"KoliBri")))}validateColor(e){r(this,e,{defaultValue:"#003c78",hooks:{beforePatch:this.handleColorChange}})}validateLabeled(e){l(this,"_labeled",e,{defaultValue:!0})}componentWillLoad(){this.validateColor(this._color),this.validateLabeled(this._labeled)}static get watchers(){return{_color:["validateColor"],_labeled:["validateLabeled"]}}};c.style={default:d};export{c as kol_kolibri};
4
+ import{r as e,h as a,H as t}from"./index-6237c77d.js";import{t as i}from"./i18n-ad947f60.js";import{c as o,v as r}from"./color-45ba7bb3.js";import{d as s}from"./a11y.tipps-2fa5953b.js";import{a as d}from"./prop.validators-0872ab9e.js";import"./i18n-fddf0324.js";import"./reuse-d79ab469.js";import"./dev.utils-d7aa3c72.js";import"./index-117bd1aa.js";const l=":host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}:host{display:inline-block}text{font-size:90px;letter-spacing:normal;word-spacing:normal}svg{max-height:100%}",n=l,c=class{constructor(a){e(this,a),this.handleColorChange=(e,a)=>{if("string"==typeof e){const t=o(e);a.set("_color",{red:t[0],green:t[1],blue:t[2]})}else s("[KolKolibri] You used the complex color schema. For the KoliBri we use need the color as hex string.")},this._color="#003c78",this._labeled=!0,this.state={_color:{red:0,green:60,blue:120},_labeled:!0}}render(){const e=`rgb(${this.state._color.red},${this.state._color.green},${this.state._color.blue})`;return a(t,{key:"f7994e9fda312aaa74bf7bb9b63b8652b9676831",class:"kol-kolibri"},a("svg",{key:"a3e8c9abe242d27441835031c9f35b432809cf9c",role:"img","aria-label":i("kol-kolibri-logo"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 600 600",fill:e},a("path",{key:"b43aa1e84ada755f433f3271df4ff9ab4376eccd",d:"M353 322L213 304V434L353 322Z"}),a("path",{key:"9caa489fd0961ad613944c9eaec48e3e027c98d1",d:"M209 564V304L149 434L209 564Z"}),a("path",{key:"a2dd8842668edd53f3210bc3576dd2183c180dc3",d:"M357 316L417 250L361 210L275 244L357 316Z"}),a("path",{key:"92eee684ff7af9e71dcee40231749b8c2d888a6e",d:"M329 218L237 92L250 222L272 241L329 218Z"}),a("path",{key:"17a303b91513aa1837112436a44a276be485b788",d:"M353 318L35 36L213 300L353 318Z"}),a("path",{key:"9c8d219b2d3fd9ebf87ec4277916d5282181dd9d",d:"M391 286L565 272L421 252L391 286Z"}),!0===this.state._labeled&&a("text",{key:"2c9e5b12338159eca076664fb0629afd127bd62d",x:"250",y:"525",fill:e},"KoliBri")))}validateColor(e){r(this,e,{defaultValue:"#003c78",hooks:{beforePatch:this.handleColorChange}})}validateLabeled(e){d(this,"_labeled",e,{defaultValue:!0})}componentWillLoad(){this.validateColor(this._color),this.validateLabeled(this._labeled)}static get watchers(){return{_color:["validateColor"],_labeled:["validateLabeled"]}}};c.style={default:n};export{c as kol_kolibri};
@@ -1 +1 @@
1
- {"version":3,"names":["defaultStyleCss","KolKolibriDefaultStyle0","KolKolibri","this","handleColorChange","nextValue","nextState","rgba","colorRgba","set","red","green","blue","devHint","_color","_labeled","render","fillColor","state","h","Host","key","class","role","translate","xmlns","viewBox","fill","d","x","y","validateColor","value","defaultValue","hooks","beforePatch","validateLabeled","watchBoolean","componentWillLoad"],"sources":["src/components/kolibri/style.scss?tag=kol-kolibri&mode=default&encapsulation=shadow","src/components/kolibri/component.tsx"],"sourcesContent":["@import '../style';\n\n:host {\n\tdisplay: inline-block;\n}\n\ntext {\n\tfont-size: 90px;\n\tletter-spacing: normal;\n\tword-spacing: normal;\n}\n\nsvg {\n\tmax-height: 100%;\n}\n","import type { Generic } from 'adopted-style-sheets';\nimport { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { Stringified } from '../../types/common';\nimport { PropColor, validateColor } from '../../types/props/color';\nimport { devHint } from '../../utils/a11y.tipps';\nimport { watchBoolean } from '../../utils/prop.validators';\nimport { colorRgba } from '../badge/color-rgba';\nimport { API, States } from './types';\n\n@Component({\n\ttag: 'kol-kolibri',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolKolibri implements API {\n\tpublic render(): JSX.Element {\n\t\tconst fillColor = `rgb(${this.state._color.red},${this.state._color.green},${this.state._color.blue})`;\n\t\treturn (\n\t\t\t<Host class=\"kol-kolibri\">\n\t\t\t\t<svg role=\"img\" aria-label={translate('kol-kolibri-logo')} xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 600 600\" fill={fillColor}>\n\t\t\t\t\t<path d=\"M353 322L213 304V434L353 322Z\" />\n\t\t\t\t\t<path d=\"M209 564V304L149 434L209 564Z\" />\n\t\t\t\t\t<path d=\"M357 316L417 250L361 210L275 244L357 316Z\" />\n\t\t\t\t\t<path d=\"M329 218L237 92L250 222L272 241L329 218Z\" />\n\t\t\t\t\t<path d=\"M353 318L35 36L213 300L353 318Z\" />\n\t\t\t\t\t<path d=\"M391 286L565 272L421 252L391 286Z\" />\n\t\t\t\t\t{this.state._labeled === true && (\n\t\t\t\t\t\t<text x=\"250\" y=\"525\" fill={fillColor}>\n\t\t\t\t\t\t\tKoliBri\n\t\t\t\t\t\t</text>\n\t\t\t\t\t)}\n\t\t\t\t</svg>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the color of the logo and label.\n\t */\n\t@Prop() public _color?: Stringified<PropColor> = '#003c78';\n\n\t/**\n\t * Defines whether the component has a label.\n\t */\n\t@Prop() public _labeled?: boolean = true;\n\n\t@State() public state: States = {\n\t\t_color: {\n\t\t\tred: 0,\n\t\t\tgreen: 60,\n\t\t\tblue: 120,\n\t\t},\n\t\t_labeled: true,\n\t};\n\n\tprivate handleColorChange: Generic.Element.NextStateHooksCallback = (nextValue: unknown, nextState: Map<string, unknown>): void => {\n\t\tif (typeof nextValue === 'string') {\n\t\t\tconst rgba = colorRgba(nextValue);\n\t\t\tnextState.set('_color', {\n\t\t\t\tred: rgba[0],\n\t\t\t\tgreen: rgba[1],\n\t\t\t\tblue: rgba[2],\n\t\t\t});\n\t\t} else {\n\t\t\tdevHint(`[KolKolibri] You used the complex color schema. For the KoliBri we use need the color as hex string.`);\n\t\t}\n\t};\n\n\t@Watch('_color')\n\tpublic validateColor(value?: Stringified<PropColor>): void {\n\t\tvalidateColor(this, value, {\n\t\t\tdefaultValue: '#003c78',\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.handleColorChange,\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_labeled')\n\tpublic validateLabeled(value?: boolean): void {\n\t\twatchBoolean(this, '_labeled', value, {\n\t\t\tdefaultValue: true,\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateColor(this._color);\n\t\tthis.validateLabeled(this._labeled);\n\t}\n}\n"],"mappings":";;;8VAAA,MAAMA,EAAkB,49BACxB,MAAAC,EAAeD,E,MCiBFE,EAAU,M,yBAyCdC,KAAAC,kBAA4D,CAACC,EAAoBC,KACxF,UAAWD,IAAc,SAAU,CAClC,MAAME,EAAOC,EAAUH,GACvBC,EAAUG,IAAI,SAAU,CACvBC,IAAKH,EAAK,GACVI,MAAOJ,EAAK,GACZK,KAAML,EAAK,I,KAEN,CACNM,EAAQ,uG,eAzBuC,U,cAKb,K,WAEJ,CAC/BC,OAAQ,CACPJ,IAAK,EACLC,MAAO,GACPC,KAAM,KAEPG,SAAU,K,CArCJ,MAAAC,GACN,MAAMC,EAAY,OAAOd,KAAKe,MAAMJ,OAAOJ,OAAOP,KAAKe,MAAMJ,OAAOH,SAASR,KAAKe,MAAMJ,OAAOF,QAC/F,OACCO,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,eACXH,EAAA,OAAAE,IAAA,2CAAKE,KAAK,MAAK,aAAaC,EAAU,oBAAqBC,MAAM,6BAA6BC,QAAQ,cAAcC,KAAMV,GACzHE,EAAA,QAAAE,IAAA,2CAAMO,EAAE,kCACRT,EAAA,QAAAE,IAAA,2CAAMO,EAAE,kCACRT,EAAA,QAAAE,IAAA,2CAAMO,EAAE,8CACRT,EAAA,QAAAE,IAAA,2CAAMO,EAAE,6CACRT,EAAA,QAAAE,IAAA,2CAAMO,EAAE,oCACRT,EAAA,QAAAE,IAAA,2CAAMO,EAAE,sCACPzB,KAAKe,MAAMH,WAAa,MACxBI,EAAA,QAAMU,EAAE,MAAMC,EAAE,MAAMH,KAAMV,GAAS,Y,CA0CnC,aAAAc,CAAcC,GACpBD,EAAc5B,KAAM6B,EAAO,CAC1BC,aAAc,UACdC,MAAO,CACNC,YAAahC,KAAKC,oB,CAMd,eAAAgC,CAAgBJ,GACtBK,EAAalC,KAAM,WAAY6B,EAAO,CACrCC,aAAc,M,CAIT,iBAAAK,GACNnC,KAAK4B,cAAc5B,KAAKW,QACxBX,KAAKiC,gBAAgBjC,KAAKY,S"}
1
+ {"version":3,"names":["defaultStyleCss","KolKolibriDefaultStyle0","KolKolibri","this","handleColorChange","nextValue","nextState","rgba","colorRgba","set","red","green","blue","devHint","_color","_labeled","render","fillColor","state","h","Host","key","class","role","translate","xmlns","viewBox","fill","d","x","y","validateColor","value","defaultValue","hooks","beforePatch","validateLabeled","watchBoolean","componentWillLoad"],"sources":["src/components/kolibri/style.scss?tag=kol-kolibri&mode=default&encapsulation=shadow","src/components/kolibri/component.tsx"],"sourcesContent":["@import '../style';\n\n:host {\n\tdisplay: inline-block;\n}\n\ntext {\n\tfont-size: 90px;\n\tletter-spacing: normal;\n\tword-spacing: normal;\n}\n\nsvg {\n\tmax-height: 100%;\n}\n","import type { Generic } from 'adopted-style-sheets';\nimport { Component, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { translate } from '../../i18n';\nimport { Stringified } from '../../types/common';\nimport { PropColor, validateColor } from '../../types/props/color';\nimport { devHint } from '../../utils/a11y.tipps';\nimport { watchBoolean } from '../../utils/prop.validators';\nimport { colorRgba } from '../badge/color-rgba';\nimport { API, States } from './types';\n\n@Component({\n\ttag: 'kol-kolibri',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolKolibri implements API {\n\tpublic render(): JSX.Element {\n\t\tconst fillColor = `rgb(${this.state._color.red},${this.state._color.green},${this.state._color.blue})`;\n\t\treturn (\n\t\t\t<Host class=\"kol-kolibri\">\n\t\t\t\t<svg role=\"img\" aria-label={translate('kol-kolibri-logo')} xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 600 600\" fill={fillColor}>\n\t\t\t\t\t<path d=\"M353 322L213 304V434L353 322Z\" />\n\t\t\t\t\t<path d=\"M209 564V304L149 434L209 564Z\" />\n\t\t\t\t\t<path d=\"M357 316L417 250L361 210L275 244L357 316Z\" />\n\t\t\t\t\t<path d=\"M329 218L237 92L250 222L272 241L329 218Z\" />\n\t\t\t\t\t<path d=\"M353 318L35 36L213 300L353 318Z\" />\n\t\t\t\t\t<path d=\"M391 286L565 272L421 252L391 286Z\" />\n\t\t\t\t\t{this.state._labeled === true && (\n\t\t\t\t\t\t<text x=\"250\" y=\"525\" fill={fillColor}>\n\t\t\t\t\t\t\tKoliBri\n\t\t\t\t\t\t</text>\n\t\t\t\t\t)}\n\t\t\t\t</svg>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t/**\n\t * Defines the color of the logo and label.\n\t */\n\t@Prop() public _color?: Stringified<PropColor> = '#003c78';\n\n\t/**\n\t * Defines whether the component has a label.\n\t */\n\t@Prop() public _labeled?: boolean = true;\n\n\t@State() public state: States = {\n\t\t_color: {\n\t\t\tred: 0,\n\t\t\tgreen: 60,\n\t\t\tblue: 120,\n\t\t},\n\t\t_labeled: true,\n\t};\n\n\tprivate handleColorChange: Generic.Element.NextStateHooksCallback = (nextValue: unknown, nextState: Map<string, unknown>): void => {\n\t\tif (typeof nextValue === 'string') {\n\t\t\tconst rgba = colorRgba(nextValue);\n\t\t\tnextState.set('_color', {\n\t\t\t\tred: rgba[0],\n\t\t\t\tgreen: rgba[1],\n\t\t\t\tblue: rgba[2],\n\t\t\t});\n\t\t} else {\n\t\t\tdevHint(`[KolKolibri] You used the complex color schema. For the KoliBri we use need the color as hex string.`);\n\t\t}\n\t};\n\n\t@Watch('_color')\n\tpublic validateColor(value?: Stringified<PropColor>): void {\n\t\tvalidateColor(this, value, {\n\t\t\tdefaultValue: '#003c78',\n\t\t\thooks: {\n\t\t\t\tbeforePatch: this.handleColorChange,\n\t\t\t},\n\t\t});\n\t}\n\n\t@Watch('_labeled')\n\tpublic validateLabeled(value?: boolean): void {\n\t\twatchBoolean(this, '_labeled', value, {\n\t\t\tdefaultValue: true,\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateColor(this._color);\n\t\tthis.validateLabeled(this._labeled);\n\t}\n}\n"],"mappings":";;;8VAAA,MAAMA,EAAkB,49BACxB,MAAAC,EAAeD,E,MCiBFE,EAAU,M,yBAyCdC,KAAAC,kBAA4D,CAACC,EAAoBC,KACxF,UAAWD,IAAc,SAAU,CAClC,MAAME,EAAOC,EAAUH,GACvBC,EAAUG,IAAI,SAAU,CACvBC,IAAKH,EAAK,GACVI,MAAOJ,EAAK,GACZK,KAAML,EAAK,I,KAEN,CACNM,EAAQ,uG,eAzBuC,U,cAKb,K,WAEJ,CAC/BC,OAAQ,CACPJ,IAAK,EACLC,MAAO,GACPC,KAAM,KAEPG,SAAU,K,CArCJ,MAAAC,GACN,MAAMC,EAAY,OAAOd,KAAKe,MAAMJ,OAAOJ,OAAOP,KAAKe,MAAMJ,OAAOH,SAASR,KAAKe,MAAMJ,OAAOF,QAC/F,OACCO,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,eACXH,EAAA,OAAAE,IAAA,2CAAKE,KAAK,MAAK,aAAaC,EAAU,oBAAqBC,MAAM,6BAA6BC,QAAQ,cAAcC,KAAMV,GACzHE,EAAA,QAAAE,IAAA,2CAAMO,EAAE,kCACRT,EAAA,QAAAE,IAAA,2CAAMO,EAAE,kCACRT,EAAA,QAAAE,IAAA,2CAAMO,EAAE,8CACRT,EAAA,QAAAE,IAAA,2CAAMO,EAAE,6CACRT,EAAA,QAAAE,IAAA,2CAAMO,EAAE,oCACRT,EAAA,QAAAE,IAAA,2CAAMO,EAAE,sCACPzB,KAAKe,MAAMH,WAAa,MACxBI,EAAA,QAAAE,IAAA,2CAAMQ,EAAE,MAAMC,EAAE,MAAMH,KAAMV,GAAS,Y,CA0CnC,aAAAc,CAAcC,GACpBD,EAAc5B,KAAM6B,EAAO,CAC1BC,aAAc,UACdC,MAAO,CACNC,YAAahC,KAAKC,oB,CAMd,eAAAgC,CAAgBJ,GACtBK,EAAalC,KAAM,WAAY6B,EAAO,CACrCC,aAAc,M,CAIT,iBAAAK,GACNnC,KAAK4B,cAAc5B,KAAKW,QACxBX,KAAKiC,gBAAgBjC,KAAKY,S"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as i,h as t,H as e,g as n}from"./index-a051748e.js";import{a as s}from"./reuse-d79ab469.js";import{n as a}from"./component-names-fed305c7.js";const o=":host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}:host{display:inline-block}:is(a,button){display:inline-flex;place-items:center;text-align:center;text-decoration-line:none}:is(a,button)>.kol-span-wc{margin:auto;width:100%}:is(button):disabled{cursor:not-allowed;opacity:0.5}",d=o,h=class{constructor(t){i(this,t),this.catchRef=i=>{s(this.host,i)},this._ariaControls=void 0,this._ariaCurrent=void 0,this._ariaExpanded=void 0,this._ariaLabel=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._download=void 0,this._hideLabel=!1,this._href=void 0,this._icon=void 0,this._iconOnly=void 0,this._label=void 0,this._listenAriaCurrent=void 0,this._on=void 0,this._role=void 0,this._tabIndex=void 0,this._target=void 0,this._tooltipAlign="right",this._variant="normal"}render(){return t(e,{key:"bb4107ace445b160cda4168d6d8a441a01e65ad9",class:"kol-link-button"},t(a,{key:"ba46a5fa8e72b3af8491daba75ba272dfb77fe3e",ref:this.catchRef,class:{button:!0,[this._variant]:"custom"!==this._variant,[this._customClass]:"custom"===this._variant&&"string"==typeof this._customClass&&this._customClass.length>0},_ariaControls:this._ariaControls,_ariaCurrent:this._ariaCurrent,_ariaExpanded:this._ariaExpanded,_ariaLabel:this._ariaLabel,_ariaSelected:this._ariaSelected,_disabled:this._disabled,_download:this._download,_hideLabel:this._hideLabel,_href:this._href,_icon:this._icon,_label:this._label,_listenAriaCurrent:this._listenAriaCurrent,_on:this._on,_role:"button",_tabIndex:this._tabIndex,_target:this._target,_tooltipAlign:this._tooltipAlign},t("slot",{key:"042fcc828b16b22c56382eb336949c2b5cd72a35",name:"expert",slot:"expert"})))}get host(){return n(this)}};h.style={default:d};export{h as kol_link_button};
4
+ import{r as i,h as t,H as e,g as n}from"./index-6237c77d.js";import{a as s}from"./reuse-d79ab469.js";import{n as a}from"./component-names-fed305c7.js";const o=":host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}:host{display:inline-block}:is(a,button){display:inline-flex;place-items:center;text-align:center;text-decoration-line:none}:is(a,button)>.kol-span-wc{margin:auto;width:100%}:is(button):disabled{cursor:not-allowed;opacity:0.5}",d=o,h=class{constructor(t){i(this,t),this.catchRef=i=>{s(this.host,i)},this._ariaControls=void 0,this._ariaCurrent=void 0,this._ariaExpanded=void 0,this._ariaLabel=void 0,this._ariaSelected=void 0,this._customClass=void 0,this._disabled=!1,this._download=void 0,this._hideLabel=!1,this._href=void 0,this._icon=void 0,this._iconOnly=void 0,this._label=void 0,this._listenAriaCurrent=void 0,this._on=void 0,this._role=void 0,this._tabIndex=void 0,this._target=void 0,this._tooltipAlign="right",this._variant="normal"}render(){return t(e,{key:"d1307f4dbe2a381b84f96592d2c5b8a04d7fdbf3",class:"kol-link-button"},t(a,{key:"07112cde9ae2298421f4cd9d3cffaedf891ef0fb",ref:this.catchRef,class:{button:!0,[this._variant]:"custom"!==this._variant,[this._customClass]:"custom"===this._variant&&"string"==typeof this._customClass&&this._customClass.length>0},_ariaControls:this._ariaControls,_ariaCurrent:this._ariaCurrent,_ariaExpanded:this._ariaExpanded,_ariaLabel:this._ariaLabel,_ariaSelected:this._ariaSelected,_disabled:this._disabled,_download:this._download,_hideLabel:this._hideLabel,_href:this._href,_icon:this._icon,_label:this._label,_listenAriaCurrent:this._listenAriaCurrent,_on:this._on,_role:"button",_tabIndex:this._tabIndex,_target:this._target,_tooltipAlign:this._tooltipAlign},t("slot",{key:"56a9576fb5d8368167bc8f6ae689f5e0cc2be5ce",name:"expert",slot:"expert"})))}get host(){return n(this)}};h.style={default:d};export{h as kol_link_button};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as i,h as t,H as e}from"./index-a051748e.js";import{v as a}from"./label-bce4f328.js";import{d as l,w as s,a as n}from"./prop.validators-3017e14b.js";import{r,a as o}from"./unique-nav-labels-62d9802d.js";import{w as d}from"./validation-f641b69f.js";import{w as h}from"./validation-8785c967.js";import{c,i as p}from"./component-names-fed305c7.js";import"./a11y.tipps-798efb1a.js";import"./dev.utils-f829063f.js";import"./reuse-d79ab469.js";import"./index-117bd1aa.js";const f=":host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}ul{list-style:none;margin:0;padding:0}nav.horizontal ul{display:flex;flex-wrap:wrap}nav.horizontal li{margin-left:calc(20rem / var(--kolibri-root-font-size, 16));margin-right:calc(4rem / var(--kolibri-root-font-size, 16))}nav.horizontal li:first-child{margin-left:0}nav.horizontal li:last-child{margin-right:0}nav.vertical li{margin-left:calc(28rem / var(--kolibri-root-font-size, 16));margin-right:calc(8rem / var(--kolibri-root-font-size, 16))}li.list-none{list-style-type:none !important;margin-left:0}",u=f,v=i=>{const e=[];return i.links.map(((a,l)=>{e.push(t("li",{key:l,class:{ident:l>0&&"vertical"===i.orientation,"list-none":0===l&&"horizontal"===i.orientation},style:{listStyleType:i.listStyleType}},t(p,Object.assign({},a))))})),e},m=class{constructor(t){i(this,t),this.isUl=!0,this._ariaLabel=void 0,this._listStyleType=void 0,this._heading=void 0,this._label=void 0,this._level=void 0,this._links=void 0,this._ordered=!1,this._orientation="vertical",this.state={_label:"…",_listStyleType:"disc",_links:[],_orientation:"vertical"}}render(){var i;return t(e,{key:"cbaf856c753cb761eb2fd2e28af49bb78f094f7c",class:"kol-link-group"},t("nav",{key:"a59422f9a8a92bc1368ad0c9b2302ffe8274169a","aria-label":this.state._label,class:{vertical:"vertical"===this.state._orientation,horizontal:"horizontal"===this.state._orientation}},"string"==typeof this.state._heading&&(null===(i=this.state._heading)||void 0===i?void 0:i.length)>0&&t(c,{_label:this.state._heading,_level:this.state._level}),!1===this.isUl?t("ol",null,t(v,{links:this.state._links,orientation:this.state._orientation,listStyleType:this.state._listStyleType})):t("ul",null,t(v,{links:this.state._links,orientation:this.state._orientation,listStyleType:this.state._listStyleType}))))}validateAriaLabel(t){this.validateLabel(t)}validateHeading(t){l(this,"_heading",t)}validateLabel(t,i,e=!1){e||r(this.state._label),a(this,t,{required:!0}),o(this.state._label)}validateLevel(t){d(this,t)}validateListStyleType(t){s(this,"_listStyleType",(t=>{switch(t){case"disc":case"circle":case"square":case"none":return this.isUl=!0,!0;case"decimal":case"decimal-leading-zero":case"lower-alpha":case"lower-latin":case"lower-greek":case"lower-roman":case"upper-alpha":case"upper-latin":case"upper-roman":return this.isUl=!1,!0;default:return!1}}),new Set(["https://www.w3schools.com/tags/tag_ol.asp"]),t)}validateLinks(t){h("KolLinkGroup",this,t)}validateOrdered(t){n(this,"_ordered",t)}validateOrientation(t){s(this,"_orientation",(t=>"horizontal"===t||"vertical"===t),new Set(["Orientation {horizontal, vertical}"]),t,{defaultValue:"vertical"})}componentWillLoad(){this.validateHeading(this._heading),this.validateLabel(this._label||this._ariaLabel,void 0,!0),this.validateLevel(this._level),this.validateListStyleType(this._listStyleType),this.validateLinks(this._links),this.validateOrientation(this._orientation)}disconnectedCallback(){r(this.state._label)}static get watchers(){return{_ariaLabel:["validateAriaLabel"],_heading:["validateHeading"],_label:["validateLabel"],_level:["validateLevel"],_listStyleType:["validateListStyleType"],_links:["validateLinks"],_ordered:["validateOrdered"],_orientation:["validateOrientation"]}}};m.style={default:u};export{m as kol_link_group};
4
+ import{r as i,h as e,H as t}from"./index-6237c77d.js";import{v as a}from"./label-218f516d.js";import{d as l,w as s,a as n}from"./prop.validators-0872ab9e.js";import{r,a as o}from"./unique-nav-labels-62d9802d.js";import{w as d}from"./validation-dc1ebfa2.js";import{w as h}from"./validation-0a2240d1.js";import{c,i as p}from"./component-names-fed305c7.js";import"./a11y.tipps-2fa5953b.js";import"./dev.utils-d7aa3c72.js";import"./reuse-d79ab469.js";import"./index-117bd1aa.js";const f=":host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}ul{list-style:none;margin:0;padding:0}nav.horizontal ul{display:flex;flex-wrap:wrap}nav.horizontal li{margin-left:calc(20rem / var(--kolibri-root-font-size, 16));margin-right:calc(4rem / var(--kolibri-root-font-size, 16))}nav.horizontal li:first-child{margin-left:0}nav.horizontal li:last-child{margin-right:0}nav.vertical li{margin-left:calc(28rem / var(--kolibri-root-font-size, 16));margin-right:calc(8rem / var(--kolibri-root-font-size, 16))}li.list-none{list-style-type:none !important;margin-left:0}",u=f,v=i=>{const t=[];return i.links.map(((a,l)=>{t.push(e("li",{key:l,class:{ident:l>0&&"vertical"===i.orientation,"list-none":0===l&&"horizontal"===i.orientation},style:{listStyleType:i.listStyleType}},e(p,Object.assign({},a))))})),t},m=class{constructor(t){i(this,t),this.isUl=!0,this._ariaLabel=void 0,this._listStyleType=void 0,this._heading=void 0,this._label=void 0,this._level=void 0,this._links=void 0,this._ordered=!1,this._orientation="vertical",this.state={_label:"…",_listStyleType:"disc",_links:[],_orientation:"vertical"}}render(){var i;return e(t,{key:"dfc2d155582baa0ea7854e4be7cf926a7f8ae74a",class:"kol-link-group"},e("nav",{key:"8bc19d9f99d0ef5b7b9986666c63a61a4f5b5a74","aria-label":this.state._label,class:{vertical:"vertical"===this.state._orientation,horizontal:"horizontal"===this.state._orientation}},"string"==typeof this.state._heading&&(null===(i=this.state._heading)||void 0===i?void 0:i.length)>0&&e(c,{key:"9778b0f2f1a5f3a45a96c6d3e23f8dde582d092d",_label:this.state._heading,_level:this.state._level}),!1===this.isUl?e("ol",null,e(v,{links:this.state._links,orientation:this.state._orientation,listStyleType:this.state._listStyleType})):e("ul",null,e(v,{links:this.state._links,orientation:this.state._orientation,listStyleType:this.state._listStyleType}))))}validateAriaLabel(i){this.validateLabel(i)}validateHeading(i){l(this,"_heading",i)}validateLabel(i,t,e=!1){e||r(this.state._label),a(this,i,{required:!0}),o(this.state._label)}validateLevel(i){d(this,i)}validateListStyleType(i){s(this,"_listStyleType",(i=>{switch(i){case"disc":case"circle":case"square":case"none":return this.isUl=!0,!0;case"decimal":case"decimal-leading-zero":case"lower-alpha":case"lower-latin":case"lower-greek":case"lower-roman":case"upper-alpha":case"upper-latin":case"upper-roman":return this.isUl=!1,!0;default:return!1}}),new Set(["https://www.w3schools.com/tags/tag_ol.asp"]),i)}validateLinks(i){h("KolLinkGroup",this,i)}validateOrdered(i){n(this,"_ordered",i)}validateOrientation(i){s(this,"_orientation",(i=>"horizontal"===i||"vertical"===i),new Set(["Orientation {horizontal, vertical}"]),i,{defaultValue:"vertical"})}componentWillLoad(){this.validateHeading(this._heading),this.validateLabel(this._label||this._ariaLabel,void 0,!0),this.validateLevel(this._level),this.validateListStyleType(this._listStyleType),this.validateLinks(this._links),this.validateOrientation(this._orientation)}disconnectedCallback(){r(this.state._label)}static get watchers(){return{_ariaLabel:["validateAriaLabel"],_heading:["validateHeading"],_label:["validateLabel"],_level:["validateLevel"],_listStyleType:["validateListStyleType"],_links:["validateLinks"],_ordered:["validateOrdered"],_orientation:["validateOrientation"]}}};m.style={default:u};export{m as kol_link_group};