@public-ui/components 1.7.13 → 1.7.15

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 (842) hide show
  1. package/custom-elements.json +10 -4
  2. package/dist/cjs/a11y.tipps-448db2c0.js +4 -0
  3. package/dist/cjs/a11y.tipps-448db2c0.js.map +1 -0
  4. package/dist/cjs/align-806255e3.js +4 -0
  5. package/dist/cjs/{align-d634a2f8.js.map → align-806255e3.js.map} +1 -1
  6. package/dist/cjs/{alignment-ba7565c2.js → alignment-b708b3e5.js} +1 -1
  7. package/dist/cjs/{alignment-ba7565c2.js.map → alignment-b708b3e5.js.map} +1 -1
  8. package/dist/cjs/app-globals-2d68f57c.js +4 -0
  9. package/dist/cjs/app-globals-2d68f57c.js.map +1 -0
  10. package/dist/cjs/aria-current-991d67c0.js +4 -0
  11. package/dist/cjs/{aria-current-2951f7e3.js.map → aria-current-991d67c0.js.map} +1 -1
  12. package/dist/cjs/associated.controller-598aaf95.js +4 -0
  13. package/dist/cjs/associated.controller-598aaf95.js.map +1 -0
  14. package/dist/cjs/{color-c665b5bc.js → color-b92069aa.js} +1 -1
  15. package/dist/cjs/{color-c665b5bc.js.map → color-b92069aa.js.map} +1 -1
  16. package/dist/cjs/{controller-e2618b86.js → controller-0401f50c.js} +1 -1
  17. package/dist/cjs/{controller-e2618b86.js.map → controller-0401f50c.js.map} +1 -1
  18. package/dist/cjs/{controller-6b1236a9.js → controller-0a8985c7.js} +1 -1
  19. package/dist/cjs/{controller-6b1236a9.js.map → controller-0a8985c7.js.map} +1 -1
  20. package/dist/cjs/{controller-045420ff.js → controller-0d92b282.js} +1 -1
  21. package/dist/cjs/{controller-045420ff.js.map → controller-0d92b282.js.map} +1 -1
  22. package/dist/cjs/{controller-9da03fe0.js → controller-19caccf3.js} +1 -1
  23. package/dist/cjs/{controller-9da03fe0.js.map → controller-19caccf3.js.map} +1 -1
  24. package/dist/cjs/{controller-fd4b877c.js → controller-5a4590b3.js} +1 -1
  25. package/dist/cjs/controller-5a4590b3.js.map +1 -0
  26. package/dist/cjs/{controller-icon-5492dac9.js → controller-icon-45f11305.js} +1 -1
  27. package/dist/cjs/{controller-icon-5492dac9.js.map → controller-icon-45f11305.js.map} +1 -1
  28. package/dist/cjs/{custom-class-5533491e.js → custom-class-94e5c92c.js} +1 -1
  29. package/dist/cjs/{custom-class-5533491e.js.map → custom-class-94e5c92c.js.map} +1 -1
  30. package/dist/cjs/dev.utils-98ac4a2d.js +4 -0
  31. package/dist/cjs/dev.utils-98ac4a2d.js.map +1 -0
  32. package/dist/cjs/devtools-d7852b93.js +4 -0
  33. package/dist/cjs/devtools-d7852b93.js.map +1 -0
  34. package/dist/cjs/{form-field-msg-25d29d80.js → form-field-msg-a28f4da0.js} +1 -1
  35. package/dist/cjs/{form-field-msg-25d29d80.js.map → form-field-msg-a28f4da0.js.map} +1 -1
  36. package/dist/cjs/has-closer-4da29289.js +4 -0
  37. package/dist/cjs/{has-closer-5248a94d.js.map → has-closer-4da29289.js.map} +1 -1
  38. package/dist/cjs/hide-label-9fff222f.js +4 -0
  39. package/dist/cjs/{hide-label-534fe441.js.map → hide-label-9fff222f.js.map} +1 -1
  40. package/dist/cjs/i18n-2e2a9462.js +4 -0
  41. package/dist/cjs/i18n-2e2a9462.js.map +1 -0
  42. package/dist/cjs/i18n-c3fa5bd7.js +4 -0
  43. package/dist/cjs/i18n-c3fa5bd7.js.map +1 -0
  44. package/dist/cjs/{icons-0a9fdc0f.js → icons-e8722437.js} +1 -1
  45. package/dist/cjs/{icons-0a9fdc0f.js.map → icons-e8722437.js.map} +1 -1
  46. package/dist/cjs/image-source-7fc06095.js +4 -0
  47. package/dist/cjs/{image-source-ef8ba1ba.js.map → image-source-7fc06095.js.map} +1 -1
  48. package/dist/cjs/index-fa220a19.js +4 -0
  49. package/dist/cjs/index-fa220a19.js.map +1 -0
  50. package/dist/cjs/index-faf3b01d.js +4 -0
  51. package/dist/cjs/index-faf3b01d.js.map +1 -0
  52. package/dist/cjs/index.cjs.js +1 -1
  53. package/dist/cjs/index.cjs.js.map +1 -1
  54. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  56. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  57. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  58. package/dist/cjs/kol-alert-wc_3.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-alert-wc_3.cjs.entry.js.map +1 -1
  60. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  62. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-avatar-wc.cjs.entry.js.map +1 -1
  64. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  66. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  68. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  70. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-button-group-wc.cjs.entry.js.map +1 -1
  72. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-button-group.cjs.entry.js.map +1 -1
  74. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js.map +1 -1
  76. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  78. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  80. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  82. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  84. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  86. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  88. package/dist/cjs/kol-icon-font-awesome.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-icon-font-awesome.cjs.entry.js.map +1 -1
  90. package/dist/cjs/kol-icon-icofont.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-icon-icofont.cjs.entry.js.map +1 -1
  92. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  94. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  96. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-indented-text.cjs.entry.js.map +1 -1
  98. package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js.map +1 -1
  100. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  102. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  104. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  106. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  108. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  110. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  112. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  114. package/dist/cjs/kol-input-radio-group.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-input-radio-group.cjs.entry.js.map +1 -1
  116. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  118. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  120. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  122. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-input.cjs.entry.js.map +1 -1
  124. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  126. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  128. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-link-group.cjs.entry.js.map +1 -1
  130. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-link-wc.cjs.entry.js.map +1 -1
  132. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  134. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-logo.cjs.entry.js.map +1 -1
  136. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  138. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  140. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  141. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  142. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  143. package/dist/cjs/kol-popover-wc.cjs.entry.js.map +1 -1
  144. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  145. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  146. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  147. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  148. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  149. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  150. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  151. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  152. package/dist/cjs/kol-span-wc_2.cjs.entry.js +1 -1
  153. package/dist/cjs/kol-span-wc_2.cjs.entry.js.map +1 -1
  154. package/dist/cjs/kol-span.cjs.entry.js +1 -1
  155. package/dist/cjs/kol-span.cjs.entry.js.map +1 -1
  156. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  157. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  158. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  159. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  160. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  161. package/dist/cjs/kol-symbol.cjs.entry.js.map +1 -1
  162. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  163. package/dist/cjs/kol-table.cjs.entry.js.map +1 -1
  164. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  165. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  166. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  167. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  168. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  169. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  170. package/dist/cjs/kol-toast.cjs.entry.js +1 -1
  171. package/dist/cjs/kol-toast.cjs.entry.js.map +1 -1
  172. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  173. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  174. package/dist/cjs/kolibri.cjs.js +1 -1
  175. package/dist/cjs/kolibri.cjs.js.map +1 -1
  176. package/dist/cjs/{label-202d094e.js → label-17a3b4c1.js} +1 -1
  177. package/dist/cjs/{label-202d094e.js.map → label-17a3b4c1.js.map} +1 -1
  178. package/dist/cjs/loader.cjs.js +1 -1
  179. package/dist/cjs/loader.cjs.js.map +1 -1
  180. package/dist/cjs/open-724e898f.js +4 -0
  181. package/dist/cjs/{open-ca70f48a.js.map → open-724e898f.js.map} +1 -1
  182. package/dist/cjs/{prop.validators-1bf26766.js → prop.validators-758924a9.js} +1 -1
  183. package/dist/cjs/{prop.validators-1bf26766.js.map → prop.validators-758924a9.js.map} +1 -1
  184. package/dist/cjs/rows-8e3ab8be.js +4 -0
  185. package/dist/cjs/{rows-4a01c521.js.map → rows-8e3ab8be.js.map} +1 -1
  186. package/dist/cjs/show-971b8e62.js +4 -0
  187. package/dist/cjs/{show-5fe2dc57.js.map → show-971b8e62.js.map} +1 -1
  188. package/dist/cjs/{suggestions-81af4ff7.js → suggestions-241644e6.js} +1 -1
  189. package/dist/cjs/{suggestions-81af4ff7.js.map → suggestions-241644e6.js.map} +1 -1
  190. package/dist/cjs/{tab-index-c88fabeb.js → tab-index-2f8cea1d.js} +1 -1
  191. package/dist/cjs/{tab-index-c88fabeb.js.map → tab-index-2f8cea1d.js.map} +1 -1
  192. package/dist/cjs/{tooltip-align-69271e5f.js → tooltip-align-ead03b1a.js} +1 -1
  193. package/dist/cjs/{tooltip-align-69271e5f.js.map → tooltip-align-ead03b1a.js.map} +1 -1
  194. package/dist/cjs/{validation-1438e7f7.js → validation-1907a1b9.js} +1 -1
  195. package/dist/cjs/{validation-1438e7f7.js.map → validation-1907a1b9.js.map} +1 -1
  196. package/dist/cjs/{validation-7b397fa5.js → validation-2971571e.js} +1 -1
  197. package/dist/cjs/{validation-7b397fa5.js.map → validation-2971571e.js.map} +1 -1
  198. package/dist/components/color.js +1 -1
  199. package/dist/components/component.js +1 -1
  200. package/dist/components/component.js.map +1 -1
  201. package/dist/components/component10.js +1 -1
  202. package/dist/components/component10.js.map +1 -1
  203. package/dist/components/component11.js +1 -1
  204. package/dist/components/component11.js.map +1 -1
  205. package/dist/components/component12.js +1 -1
  206. package/dist/components/component12.js.map +1 -1
  207. package/dist/components/component13.js +1 -1
  208. package/dist/components/component13.js.map +1 -1
  209. package/dist/components/component14.js +1 -1
  210. package/dist/components/component14.js.map +1 -1
  211. package/dist/components/component15.js +1 -1
  212. package/dist/components/component15.js.map +1 -1
  213. package/dist/components/component16.js +1 -1
  214. package/dist/components/component16.js.map +1 -1
  215. package/dist/components/component2.js +1 -1
  216. package/dist/components/component2.js.map +1 -1
  217. package/dist/components/component3.js +1 -1
  218. package/dist/components/component3.js.map +1 -1
  219. package/dist/components/component4.js +1 -1
  220. package/dist/components/component4.js.map +1 -1
  221. package/dist/components/component5.js +1 -1
  222. package/dist/components/component5.js.map +1 -1
  223. package/dist/components/component6.js +1 -1
  224. package/dist/components/component6.js.map +1 -1
  225. package/dist/components/component7.js +1 -1
  226. package/dist/components/component7.js.map +1 -1
  227. package/dist/components/component8.js +1 -1
  228. package/dist/components/component8.js.map +1 -1
  229. package/dist/components/component9.js +1 -1
  230. package/dist/components/component9.js.map +1 -1
  231. package/dist/components/controller-icon.js +1 -1
  232. package/dist/components/controller.js +1 -1
  233. package/dist/components/controller2.js +1 -1
  234. package/dist/components/controller4.js +1 -1
  235. package/dist/components/devtools.js +1 -1
  236. package/dist/components/devtools.js.map +1 -1
  237. package/dist/components/has-closer.js +1 -1
  238. package/dist/components/i18n.js +1 -1
  239. package/dist/components/i18n.js.map +1 -1
  240. package/dist/components/i18n2.js +4 -0
  241. package/dist/components/i18n2.js.map +1 -0
  242. package/dist/components/index.js +1 -1
  243. package/dist/components/index.js.map +1 -1
  244. package/dist/components/kol-abbr.js +1 -1
  245. package/dist/components/kol-abbr.js.map +1 -1
  246. package/dist/components/kol-accordion.js +1 -1
  247. package/dist/components/kol-accordion.js.map +1 -1
  248. package/dist/components/kol-avatar.js +1 -1
  249. package/dist/components/kol-avatar.js.map +1 -1
  250. package/dist/components/kol-breadcrumb.js +1 -1
  251. package/dist/components/kol-breadcrumb.js.map +1 -1
  252. package/dist/components/kol-button-group.js +1 -1
  253. package/dist/components/kol-button-group.js.map +1 -1
  254. package/dist/components/kol-button-link.js +1 -1
  255. package/dist/components/kol-button-link.js.map +1 -1
  256. package/dist/components/kol-card.js +1 -1
  257. package/dist/components/kol-card.js.map +1 -1
  258. package/dist/components/kol-details.js +1 -1
  259. package/dist/components/kol-details.js.map +1 -1
  260. package/dist/components/kol-form.js +1 -1
  261. package/dist/components/kol-form.js.map +1 -1
  262. package/dist/components/kol-heading.js +1 -1
  263. package/dist/components/kol-heading.js.map +1 -1
  264. package/dist/components/kol-icon-font-awesome.js +1 -1
  265. package/dist/components/kol-icon-font-awesome.js.map +1 -1
  266. package/dist/components/kol-icon-icofont.js +1 -1
  267. package/dist/components/kol-icon-icofont.js.map +1 -1
  268. package/dist/components/kol-image.js +1 -1
  269. package/dist/components/kol-image.js.map +1 -1
  270. package/dist/components/kol-input-adapter-leanup.js +1 -1
  271. package/dist/components/kol-input-adapter-leanup.js.map +1 -1
  272. package/dist/components/kol-input-checkbox.js +1 -1
  273. package/dist/components/kol-input-checkbox.js.map +1 -1
  274. package/dist/components/kol-input-color.js +1 -1
  275. package/dist/components/kol-input-color.js.map +1 -1
  276. package/dist/components/kol-input-date.js +1 -1
  277. package/dist/components/kol-input-date.js.map +1 -1
  278. package/dist/components/kol-input-email.js +1 -1
  279. package/dist/components/kol-input-email.js.map +1 -1
  280. package/dist/components/kol-input-file.js +1 -1
  281. package/dist/components/kol-input-file.js.map +1 -1
  282. package/dist/components/kol-input-number.js +1 -1
  283. package/dist/components/kol-input-number.js.map +1 -1
  284. package/dist/components/kol-input-password.js +1 -1
  285. package/dist/components/kol-input-password.js.map +1 -1
  286. package/dist/components/kol-input-radio-group.js +1 -1
  287. package/dist/components/kol-input-radio-group.js.map +1 -1
  288. package/dist/components/kol-input-range.js +1 -1
  289. package/dist/components/kol-input-range.js.map +1 -1
  290. package/dist/components/kol-input-text.js +1 -1
  291. package/dist/components/kol-input-text.js.map +1 -1
  292. package/dist/components/kol-kolibri.js +1 -1
  293. package/dist/components/kol-kolibri.js.map +1 -1
  294. package/dist/components/kol-link-button.js +1 -1
  295. package/dist/components/kol-link-button.js.map +1 -1
  296. package/dist/components/kol-link-group.js +1 -1
  297. package/dist/components/kol-link-group.js.map +1 -1
  298. package/dist/components/kol-logo.js +1 -1
  299. package/dist/components/kol-logo.js.map +1 -1
  300. package/dist/components/kol-modal.js +1 -1
  301. package/dist/components/kol-modal.js.map +1 -1
  302. package/dist/components/kol-nav.js +1 -1
  303. package/dist/components/kol-nav.js.map +1 -1
  304. package/dist/components/kol-popover-wc.js +1 -1
  305. package/dist/components/kol-popover-wc.js.map +1 -1
  306. package/dist/components/kol-progress.js +1 -1
  307. package/dist/components/kol-progress.js.map +1 -1
  308. package/dist/components/kol-quote.js +1 -1
  309. package/dist/components/kol-quote.js.map +1 -1
  310. package/dist/components/kol-skip-nav.js +1 -1
  311. package/dist/components/kol-skip-nav.js.map +1 -1
  312. package/dist/components/kol-span.js +1 -1
  313. package/dist/components/kol-span.js.map +1 -1
  314. package/dist/components/kol-spin.js +1 -1
  315. package/dist/components/kol-spin.js.map +1 -1
  316. package/dist/components/kol-split-button.js +1 -1
  317. package/dist/components/kol-split-button.js.map +1 -1
  318. package/dist/components/kol-symbol.js +1 -1
  319. package/dist/components/kol-symbol.js.map +1 -1
  320. package/dist/components/kol-table.js +1 -1
  321. package/dist/components/kol-table.js.map +1 -1
  322. package/dist/components/kol-tabs.js +1 -1
  323. package/dist/components/kol-tabs.js.map +1 -1
  324. package/dist/components/kol-textarea.js +1 -1
  325. package/dist/components/kol-textarea.js.map +1 -1
  326. package/dist/components/kol-toast-container.js +1 -1
  327. package/dist/components/kol-toast-container.js.map +1 -1
  328. package/dist/components/kol-toast.js +1 -1
  329. package/dist/components/kol-toast.js.map +1 -1
  330. package/dist/components/kol-version.js +1 -1
  331. package/dist/components/kol-version.js.map +1 -1
  332. package/dist/components/open.js +1 -1
  333. package/dist/components/prop.validators.js +1 -1
  334. package/dist/components/prop.validators.js.map +1 -1
  335. package/dist/components/rows.js +1 -1
  336. package/dist/components/shadow.js +1 -1
  337. package/dist/components/shadow.js.map +1 -1
  338. package/dist/components/shadow2.js +1 -1
  339. package/dist/components/shadow2.js.map +1 -1
  340. package/dist/components/shadow3.js +1 -1
  341. package/dist/components/shadow3.js.map +1 -1
  342. package/dist/components/show.js +1 -1
  343. package/dist/components/suggestions.js +1 -1
  344. package/dist/components/tab-index.js +1 -1
  345. package/dist/components/validation.js +1 -1
  346. package/dist/esm/a11y.tipps-c347026d.js +4 -0
  347. package/dist/esm/a11y.tipps-c347026d.js.map +1 -0
  348. package/dist/esm/{align-6a271473.js → align-27e2835c.js} +1 -1
  349. package/dist/esm/{align-6a271473.js.map → align-27e2835c.js.map} +1 -1
  350. package/dist/esm/{alignment-b1fc396e.js → alignment-68533fed.js} +1 -1
  351. package/dist/esm/{alignment-b1fc396e.js.map → alignment-68533fed.js.map} +1 -1
  352. package/dist/esm/app-globals-e20bbaae.js +4 -0
  353. package/dist/esm/app-globals-e20bbaae.js.map +1 -0
  354. package/dist/esm/{aria-current-de3f0ad3.js → aria-current-237ef298.js} +1 -1
  355. package/dist/esm/{aria-current-de3f0ad3.js.map → aria-current-237ef298.js.map} +1 -1
  356. package/dist/esm/associated.controller-2a2dee1c.js +4 -0
  357. package/dist/esm/associated.controller-2a2dee1c.js.map +1 -0
  358. package/dist/esm/{color-2b8dc09e.js → color-04abfc7c.js} +1 -1
  359. package/dist/esm/{color-2b8dc09e.js.map → color-04abfc7c.js.map} +1 -1
  360. package/dist/esm/{controller-b90cfb96.js → controller-02c1d5f0.js} +1 -1
  361. package/dist/esm/{controller-b90cfb96.js.map → controller-02c1d5f0.js.map} +1 -1
  362. package/dist/esm/{controller-afb334ed.js → controller-53b416bc.js} +1 -1
  363. package/dist/esm/{controller-afb334ed.js.map → controller-53b416bc.js.map} +1 -1
  364. package/dist/esm/{controller-9b6b7e31.js → controller-89bb64c9.js} +1 -1
  365. package/dist/esm/controller-89bb64c9.js.map +1 -0
  366. package/dist/esm/{controller-1a4ae847.js → controller-b7599521.js} +1 -1
  367. package/dist/esm/{controller-1a4ae847.js.map → controller-b7599521.js.map} +1 -1
  368. package/dist/esm/{controller-5a13b9c6.js → controller-f5ed829a.js} +1 -1
  369. package/dist/esm/{controller-5a13b9c6.js.map → controller-f5ed829a.js.map} +1 -1
  370. package/dist/esm/{controller-icon-bc9b326c.js → controller-icon-f9f90b78.js} +1 -1
  371. package/dist/esm/{controller-icon-bc9b326c.js.map → controller-icon-f9f90b78.js.map} +1 -1
  372. package/dist/esm/{custom-class-fb7c6947.js → custom-class-e90f6244.js} +1 -1
  373. package/dist/esm/{custom-class-fb7c6947.js.map → custom-class-e90f6244.js.map} +1 -1
  374. package/dist/esm/dev.utils-11981c6e.js +4 -0
  375. package/dist/esm/dev.utils-11981c6e.js.map +1 -0
  376. package/dist/esm/devtools-dc1528b0.js +4 -0
  377. package/dist/esm/devtools-dc1528b0.js.map +1 -0
  378. package/dist/esm/{form-field-msg-4920e946.js → form-field-msg-1b112ab3.js} +1 -1
  379. package/dist/esm/{form-field-msg-4920e946.js.map → form-field-msg-1b112ab3.js.map} +1 -1
  380. package/dist/esm/{has-closer-ecd5110c.js → has-closer-d5bb4e12.js} +1 -1
  381. package/dist/esm/{has-closer-ecd5110c.js.map → has-closer-d5bb4e12.js.map} +1 -1
  382. package/dist/esm/{hide-label-4df0e368.js → hide-label-c9ce8fc8.js} +1 -1
  383. package/dist/esm/{hide-label-4df0e368.js.map → hide-label-c9ce8fc8.js.map} +1 -1
  384. package/dist/esm/i18n-ad947f60.js +4 -0
  385. package/dist/esm/i18n-ad947f60.js.map +1 -0
  386. package/dist/esm/i18n-fddf0324.js +4 -0
  387. package/dist/esm/i18n-fddf0324.js.map +1 -0
  388. package/dist/esm/{icons-56f61dc0.js → icons-e0d64894.js} +1 -1
  389. package/dist/esm/{icons-56f61dc0.js.map → icons-e0d64894.js.map} +1 -1
  390. package/dist/esm/{image-source-6a9717f3.js → image-source-112a2adf.js} +1 -1
  391. package/dist/esm/{image-source-6a9717f3.js.map → image-source-112a2adf.js.map} +1 -1
  392. package/dist/esm/index-117bd1aa.js +4 -0
  393. package/dist/esm/index-117bd1aa.js.map +1 -0
  394. package/dist/esm/index-7cc6aa47.js +4 -0
  395. package/dist/esm/index-7cc6aa47.js.map +1 -0
  396. package/dist/esm/index.js +1 -1
  397. package/dist/esm/index.js.map +1 -1
  398. package/dist/esm/kol-abbr.entry.js +1 -1
  399. package/dist/esm/kol-abbr.entry.js.map +1 -1
  400. package/dist/esm/kol-accordion.entry.js +1 -1
  401. package/dist/esm/kol-accordion.entry.js.map +1 -1
  402. package/dist/esm/kol-alert-wc_3.entry.js +1 -1
  403. package/dist/esm/kol-alert-wc_3.entry.js.map +1 -1
  404. package/dist/esm/kol-alert.entry.js +1 -1
  405. package/dist/esm/kol-alert.entry.js.map +1 -1
  406. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  407. package/dist/esm/kol-avatar-wc.entry.js.map +1 -1
  408. package/dist/esm/kol-avatar.entry.js +1 -1
  409. package/dist/esm/kol-avatar.entry.js.map +1 -1
  410. package/dist/esm/kol-badge.entry.js +1 -1
  411. package/dist/esm/kol-badge.entry.js.map +1 -1
  412. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  413. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  414. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  415. package/dist/esm/kol-button-group-wc.entry.js.map +1 -1
  416. package/dist/esm/kol-button-group.entry.js +1 -1
  417. package/dist/esm/kol-button-group.entry.js.map +1 -1
  418. package/dist/esm/kol-button-link-text-switch.entry.js +1 -1
  419. package/dist/esm/kol-button-link-text-switch.entry.js.map +1 -1
  420. package/dist/esm/kol-button-link.entry.js +1 -1
  421. package/dist/esm/kol-button-link.entry.js.map +1 -1
  422. package/dist/esm/kol-button.entry.js +1 -1
  423. package/dist/esm/kol-button.entry.js.map +1 -1
  424. package/dist/esm/kol-card.entry.js +1 -1
  425. package/dist/esm/kol-card.entry.js.map +1 -1
  426. package/dist/esm/kol-details.entry.js +1 -1
  427. package/dist/esm/kol-details.entry.js.map +1 -1
  428. package/dist/esm/kol-form.entry.js +1 -1
  429. package/dist/esm/kol-form.entry.js.map +1 -1
  430. package/dist/esm/kol-heading.entry.js +1 -1
  431. package/dist/esm/kol-heading.entry.js.map +1 -1
  432. package/dist/esm/kol-icon-font-awesome.entry.js +1 -1
  433. package/dist/esm/kol-icon-font-awesome.entry.js.map +1 -1
  434. package/dist/esm/kol-icon-icofont.entry.js +1 -1
  435. package/dist/esm/kol-icon-icofont.entry.js.map +1 -1
  436. package/dist/esm/kol-icon.entry.js +1 -1
  437. package/dist/esm/kol-icon.entry.js.map +1 -1
  438. package/dist/esm/kol-image.entry.js +1 -1
  439. package/dist/esm/kol-image.entry.js.map +1 -1
  440. package/dist/esm/kol-indented-text.entry.js +1 -1
  441. package/dist/esm/kol-indented-text.entry.js.map +1 -1
  442. package/dist/esm/kol-input-adapter-leanup.entry.js +1 -1
  443. package/dist/esm/kol-input-adapter-leanup.entry.js.map +1 -1
  444. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  445. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  446. package/dist/esm/kol-input-color.entry.js +1 -1
  447. package/dist/esm/kol-input-color.entry.js.map +1 -1
  448. package/dist/esm/kol-input-date.entry.js +1 -1
  449. package/dist/esm/kol-input-date.entry.js.map +1 -1
  450. package/dist/esm/kol-input-email.entry.js +1 -1
  451. package/dist/esm/kol-input-email.entry.js.map +1 -1
  452. package/dist/esm/kol-input-file.entry.js +1 -1
  453. package/dist/esm/kol-input-file.entry.js.map +1 -1
  454. package/dist/esm/kol-input-number.entry.js +1 -1
  455. package/dist/esm/kol-input-number.entry.js.map +1 -1
  456. package/dist/esm/kol-input-password.entry.js +1 -1
  457. package/dist/esm/kol-input-password.entry.js.map +1 -1
  458. package/dist/esm/kol-input-radio-group.entry.js +1 -1
  459. package/dist/esm/kol-input-radio-group.entry.js.map +1 -1
  460. package/dist/esm/kol-input-radio.entry.js +1 -1
  461. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  462. package/dist/esm/kol-input-range.entry.js +1 -1
  463. package/dist/esm/kol-input-range.entry.js.map +1 -1
  464. package/dist/esm/kol-input-text.entry.js +1 -1
  465. package/dist/esm/kol-input-text.entry.js.map +1 -1
  466. package/dist/esm/kol-input.entry.js +1 -1
  467. package/dist/esm/kol-input.entry.js.map +1 -1
  468. package/dist/esm/kol-kolibri.entry.js +1 -1
  469. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  470. package/dist/esm/kol-link-button.entry.js +1 -1
  471. package/dist/esm/kol-link-button.entry.js.map +1 -1
  472. package/dist/esm/kol-link-group.entry.js +1 -1
  473. package/dist/esm/kol-link-group.entry.js.map +1 -1
  474. package/dist/esm/kol-link-wc.entry.js +1 -1
  475. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  476. package/dist/esm/kol-link.entry.js +1 -1
  477. package/dist/esm/kol-link.entry.js.map +1 -1
  478. package/dist/esm/kol-logo.entry.js +1 -1
  479. package/dist/esm/kol-logo.entry.js.map +1 -1
  480. package/dist/esm/kol-modal.entry.js +1 -1
  481. package/dist/esm/kol-modal.entry.js.map +1 -1
  482. package/dist/esm/kol-nav.entry.js +1 -1
  483. package/dist/esm/kol-nav.entry.js.map +1 -1
  484. package/dist/esm/kol-pagination.entry.js +1 -1
  485. package/dist/esm/kol-pagination.entry.js.map +1 -1
  486. package/dist/esm/kol-popover-wc.entry.js +1 -1
  487. package/dist/esm/kol-popover-wc.entry.js.map +1 -1
  488. package/dist/esm/kol-progress.entry.js +1 -1
  489. package/dist/esm/kol-progress.entry.js.map +1 -1
  490. package/dist/esm/kol-quote.entry.js +1 -1
  491. package/dist/esm/kol-quote.entry.js.map +1 -1
  492. package/dist/esm/kol-select.entry.js +1 -1
  493. package/dist/esm/kol-select.entry.js.map +1 -1
  494. package/dist/esm/kol-skip-nav.entry.js +1 -1
  495. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  496. package/dist/esm/kol-span-wc_2.entry.js +1 -1
  497. package/dist/esm/kol-span-wc_2.entry.js.map +1 -1
  498. package/dist/esm/kol-span.entry.js +1 -1
  499. package/dist/esm/kol-span.entry.js.map +1 -1
  500. package/dist/esm/kol-spin.entry.js +1 -1
  501. package/dist/esm/kol-spin.entry.js.map +1 -1
  502. package/dist/esm/kol-split-button.entry.js +1 -1
  503. package/dist/esm/kol-split-button.entry.js.map +1 -1
  504. package/dist/esm/kol-symbol.entry.js +1 -1
  505. package/dist/esm/kol-symbol.entry.js.map +1 -1
  506. package/dist/esm/kol-table.entry.js +1 -1
  507. package/dist/esm/kol-table.entry.js.map +1 -1
  508. package/dist/esm/kol-tabs.entry.js +1 -1
  509. package/dist/esm/kol-tabs.entry.js.map +1 -1
  510. package/dist/esm/kol-textarea.entry.js +1 -1
  511. package/dist/esm/kol-textarea.entry.js.map +1 -1
  512. package/dist/esm/kol-toast-container.entry.js +1 -1
  513. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  514. package/dist/esm/kol-toast.entry.js +1 -1
  515. package/dist/esm/kol-toast.entry.js.map +1 -1
  516. package/dist/esm/kol-version.entry.js +1 -1
  517. package/dist/esm/kol-version.entry.js.map +1 -1
  518. package/dist/esm/kolibri.js +1 -1
  519. package/dist/esm/kolibri.js.map +1 -1
  520. package/dist/esm/{label-efb10d30.js → label-0cc3ee5d.js} +1 -1
  521. package/dist/esm/{label-efb10d30.js.map → label-0cc3ee5d.js.map} +1 -1
  522. package/dist/esm/loader.js +1 -1
  523. package/dist/esm/loader.js.map +1 -1
  524. package/dist/esm/{open-efffe1d7.js → open-3bbdba74.js} +1 -1
  525. package/dist/esm/{open-efffe1d7.js.map → open-3bbdba74.js.map} +1 -1
  526. package/dist/esm/{prop.validators-c2b3a276.js → prop.validators-9d76278b.js} +1 -1
  527. package/dist/esm/{prop.validators-c2b3a276.js.map → prop.validators-9d76278b.js.map} +1 -1
  528. package/dist/esm/{rows-4a3d4e60.js → rows-ae2f4e8f.js} +1 -1
  529. package/dist/esm/{rows-4a3d4e60.js.map → rows-ae2f4e8f.js.map} +1 -1
  530. package/dist/esm/{show-c018058d.js → show-f887a36f.js} +1 -1
  531. package/dist/esm/{show-c018058d.js.map → show-f887a36f.js.map} +1 -1
  532. package/dist/esm/{suggestions-9569bba8.js → suggestions-f706f5bc.js} +1 -1
  533. package/dist/esm/{suggestions-9569bba8.js.map → suggestions-f706f5bc.js.map} +1 -1
  534. package/dist/esm/{tab-index-a9976462.js → tab-index-9fa47228.js} +1 -1
  535. package/dist/esm/{tab-index-a9976462.js.map → tab-index-9fa47228.js.map} +1 -1
  536. package/dist/esm/{tooltip-align-b692f99f.js → tooltip-align-e243c82c.js} +1 -1
  537. package/dist/esm/{tooltip-align-b692f99f.js.map → tooltip-align-e243c82c.js.map} +1 -1
  538. package/dist/esm/validation-81a932fa.js +4 -0
  539. package/dist/esm/{validation-c2c4360a.js.map → validation-81a932fa.js.map} +1 -1
  540. package/dist/esm/{validation-6b3fb356.js → validation-e0cdfc8e.js} +1 -1
  541. package/dist/esm/{validation-6b3fb356.js.map → validation-e0cdfc8e.js.map} +1 -1
  542. package/dist/kolibri/a11y.tipps-c347026d.js +4 -0
  543. package/dist/kolibri/a11y.tipps-c347026d.js.map +1 -0
  544. package/dist/kolibri/align-27e2835c.js +4 -0
  545. package/dist/kolibri/alignment-68533fed.js +4 -0
  546. package/dist/kolibri/app-globals-e20bbaae.js +4 -0
  547. package/dist/kolibri/app-globals-e20bbaae.js.map +1 -0
  548. package/dist/kolibri/{aria-current-de3f0ad3.js → aria-current-237ef298.js} +1 -1
  549. package/dist/kolibri/assets/style.css +17 -17
  550. package/dist/kolibri/associated.controller-2a2dee1c.js +4 -0
  551. package/dist/kolibri/associated.controller-2a2dee1c.js.map +1 -0
  552. package/dist/kolibri/{color-2b8dc09e.js → color-04abfc7c.js} +1 -1
  553. package/dist/kolibri/controller-02c1d5f0.js +4 -0
  554. package/dist/kolibri/{controller-b90cfb96.js.map → controller-02c1d5f0.js.map} +1 -1
  555. package/dist/kolibri/{controller-afb334ed.js → controller-53b416bc.js} +1 -1
  556. package/dist/kolibri/controller-89bb64c9.js +4 -0
  557. package/dist/kolibri/controller-89bb64c9.js.map +1 -0
  558. package/dist/kolibri/{controller-1a4ae847.js → controller-b7599521.js} +1 -1
  559. package/dist/kolibri/{controller-5a13b9c6.js → controller-f5ed829a.js} +1 -1
  560. package/dist/kolibri/controller-icon-f9f90b78.js +4 -0
  561. package/dist/kolibri/{custom-class-fb7c6947.js → custom-class-e90f6244.js} +1 -1
  562. package/dist/kolibri/dev.utils-11981c6e.js +4 -0
  563. package/dist/kolibri/dev.utils-11981c6e.js.map +1 -0
  564. package/dist/kolibri/devtools-dc1528b0.js +4 -0
  565. package/dist/kolibri/devtools-dc1528b0.js.map +1 -0
  566. package/dist/kolibri/form-field-msg-1b112ab3.js +4 -0
  567. package/dist/kolibri/has-closer-d5bb4e12.js +4 -0
  568. package/dist/kolibri/{has-closer-ecd5110c.js.map → has-closer-d5bb4e12.js.map} +1 -1
  569. package/dist/kolibri/hide-label-c9ce8fc8.js +4 -0
  570. package/dist/kolibri/i18n-ad947f60.js +4 -0
  571. package/dist/kolibri/i18n-ad947f60.js.map +1 -0
  572. package/dist/kolibri/i18n-fddf0324.js +4 -0
  573. package/dist/kolibri/i18n-fddf0324.js.map +1 -0
  574. package/dist/kolibri/icons-e0d64894.js +4 -0
  575. package/dist/kolibri/image-source-112a2adf.js +4 -0
  576. package/dist/kolibri/index-117bd1aa.js +4 -0
  577. package/dist/kolibri/index-117bd1aa.js.map +1 -0
  578. package/dist/kolibri/{index-cf7b0813.js → index-7cc6aa47.js} +2 -2
  579. package/dist/kolibri/index-7cc6aa47.js.map +1 -0
  580. package/dist/kolibri/index.esm.js +1 -1
  581. package/dist/kolibri/index.esm.js.map +1 -1
  582. package/dist/kolibri/kol-abbr.entry.js +1 -1
  583. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  584. package/dist/kolibri/kol-accordion.entry.js +1 -1
  585. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  586. package/dist/kolibri/kol-alert-wc_3.entry.js +1 -1
  587. package/dist/kolibri/kol-alert-wc_3.entry.js.map +1 -1
  588. package/dist/kolibri/kol-alert.entry.js +1 -1
  589. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  590. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  591. package/dist/kolibri/kol-avatar-wc.entry.js.map +1 -1
  592. package/dist/kolibri/kol-avatar.entry.js +1 -1
  593. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  594. package/dist/kolibri/kol-badge.entry.js +1 -1
  595. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  596. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  597. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  598. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  599. package/dist/kolibri/kol-button-group-wc.entry.js.map +1 -1
  600. package/dist/kolibri/kol-button-group.entry.js +1 -1
  601. package/dist/kolibri/kol-button-group.entry.js.map +1 -1
  602. package/dist/kolibri/kol-button-link-text-switch.entry.js +1 -1
  603. package/dist/kolibri/kol-button-link-text-switch.entry.js.map +1 -1
  604. package/dist/kolibri/kol-button-link.entry.js +1 -1
  605. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  606. package/dist/kolibri/kol-button.entry.js +1 -1
  607. package/dist/kolibri/kol-button.entry.js.map +1 -1
  608. package/dist/kolibri/kol-card.entry.js +1 -1
  609. package/dist/kolibri/kol-card.entry.js.map +1 -1
  610. package/dist/kolibri/kol-details.entry.js +1 -1
  611. package/dist/kolibri/kol-details.entry.js.map +1 -1
  612. package/dist/kolibri/kol-form.entry.js +1 -1
  613. package/dist/kolibri/kol-form.entry.js.map +1 -1
  614. package/dist/kolibri/kol-heading.entry.js +1 -1
  615. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  616. package/dist/kolibri/kol-icon-font-awesome.entry.js +1 -1
  617. package/dist/kolibri/kol-icon-font-awesome.entry.js.map +1 -1
  618. package/dist/kolibri/kol-icon-icofont.entry.js +1 -1
  619. package/dist/kolibri/kol-icon-icofont.entry.js.map +1 -1
  620. package/dist/kolibri/kol-icon.entry.js +1 -1
  621. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  622. package/dist/kolibri/kol-image.entry.js +1 -1
  623. package/dist/kolibri/kol-image.entry.js.map +1 -1
  624. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  625. package/dist/kolibri/kol-indented-text.entry.js.map +1 -1
  626. package/dist/kolibri/kol-input-adapter-leanup.entry.js +1 -1
  627. package/dist/kolibri/kol-input-adapter-leanup.entry.js.map +1 -1
  628. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  629. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  630. package/dist/kolibri/kol-input-color.entry.js +1 -1
  631. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  632. package/dist/kolibri/kol-input-date.entry.js +1 -1
  633. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  634. package/dist/kolibri/kol-input-email.entry.js +1 -1
  635. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  636. package/dist/kolibri/kol-input-file.entry.js +1 -1
  637. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  638. package/dist/kolibri/kol-input-number.entry.js +1 -1
  639. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  640. package/dist/kolibri/kol-input-password.entry.js +1 -1
  641. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  642. package/dist/kolibri/kol-input-radio-group.entry.js +1 -1
  643. package/dist/kolibri/kol-input-radio-group.entry.js.map +1 -1
  644. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  645. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  646. package/dist/kolibri/kol-input-range.entry.js +1 -1
  647. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  648. package/dist/kolibri/kol-input-text.entry.js +1 -1
  649. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  650. package/dist/kolibri/kol-input.entry.js +1 -1
  651. package/dist/kolibri/kol-input.entry.js.map +1 -1
  652. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  653. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  654. package/dist/kolibri/kol-link-button.entry.js +1 -1
  655. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  656. package/dist/kolibri/kol-link-group.entry.js +1 -1
  657. package/dist/kolibri/kol-link-group.entry.js.map +1 -1
  658. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  659. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  660. package/dist/kolibri/kol-link.entry.js +1 -1
  661. package/dist/kolibri/kol-link.entry.js.map +1 -1
  662. package/dist/kolibri/kol-logo.entry.js +1 -1
  663. package/dist/kolibri/kol-logo.entry.js.map +1 -1
  664. package/dist/kolibri/kol-modal.entry.js +1 -1
  665. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  666. package/dist/kolibri/kol-nav.entry.js +1 -1
  667. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  668. package/dist/kolibri/kol-pagination.entry.js +1 -1
  669. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  670. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  671. package/dist/kolibri/kol-popover-wc.entry.js.map +1 -1
  672. package/dist/kolibri/kol-progress.entry.js +1 -1
  673. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  674. package/dist/kolibri/kol-quote.entry.js +1 -1
  675. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  676. package/dist/kolibri/kol-select.entry.js +1 -1
  677. package/dist/kolibri/kol-select.entry.js.map +1 -1
  678. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  679. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  680. package/dist/kolibri/kol-span-wc_2.entry.js +1 -1
  681. package/dist/kolibri/kol-span-wc_2.entry.js.map +1 -1
  682. package/dist/kolibri/kol-span.entry.js +1 -1
  683. package/dist/kolibri/kol-span.entry.js.map +1 -1
  684. package/dist/kolibri/kol-spin.entry.js +1 -1
  685. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  686. package/dist/kolibri/kol-split-button.entry.js +1 -1
  687. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  688. package/dist/kolibri/kol-symbol.entry.js +1 -1
  689. package/dist/kolibri/kol-symbol.entry.js.map +1 -1
  690. package/dist/kolibri/kol-table.entry.js +1 -1
  691. package/dist/kolibri/kol-table.entry.js.map +1 -1
  692. package/dist/kolibri/kol-tabs.entry.js +1 -1
  693. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  694. package/dist/kolibri/kol-textarea.entry.js +1 -1
  695. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  696. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  697. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  698. package/dist/kolibri/kol-toast.entry.js +1 -1
  699. package/dist/kolibri/kol-toast.entry.js.map +1 -1
  700. package/dist/kolibri/kol-version.entry.js +1 -1
  701. package/dist/kolibri/kol-version.entry.js.map +1 -1
  702. package/dist/kolibri/kolibri.esm.js +1 -1
  703. package/dist/kolibri/kolibri.esm.js.map +1 -1
  704. package/dist/kolibri/label-0cc3ee5d.js +4 -0
  705. package/dist/kolibri/open-3bbdba74.js +4 -0
  706. package/dist/kolibri/{prop.validators-c2b3a276.js → prop.validators-9d76278b.js} +1 -1
  707. package/dist/kolibri/rows-ae2f4e8f.js +4 -0
  708. package/dist/kolibri/show-f887a36f.js +4 -0
  709. package/dist/kolibri/suggestions-f706f5bc.js +4 -0
  710. package/dist/kolibri/tab-index-9fa47228.js +4 -0
  711. package/dist/kolibri/{tab-index-a9976462.js.map → tab-index-9fa47228.js.map} +1 -1
  712. package/dist/kolibri/tooltip-align-e243c82c.js +4 -0
  713. package/dist/kolibri/validation-81a932fa.js +4 -0
  714. package/dist/kolibri/validation-e0cdfc8e.js +4 -0
  715. package/dist/types/components/form/component.d.ts +2 -2
  716. package/dist/types/components/input-adapter-leanup/associated.controller.d.ts +1 -0
  717. package/dist/types/components/input-date/component.d.ts +1 -1
  718. package/dist/types/components/input-email/component.d.ts +1 -1
  719. package/dist/types/components/input-number/component.d.ts +1 -1
  720. package/dist/types/components/input-password/component.d.ts +1 -1
  721. package/dist/types/components/input-range/component.d.ts +1 -1
  722. package/dist/types/components/input-text/component.d.ts +1 -1
  723. package/dist/types/components.d.ts +1 -0
  724. package/dist/types/core/bootstrap.d.ts +5 -0
  725. package/dist/types/core/i18n.d.ts +9 -8
  726. package/dist/types/global/script.d.ts +1 -2
  727. package/dist/types/i18n.d.ts +1 -3
  728. package/dist/types/index.d.ts +1 -1
  729. package/dist/types/utils/dev.utils.d.ts +6 -2
  730. package/dist/types/utils/prop.validators.d.ts +4 -4
  731. package/doc/form.md +13 -0
  732. package/doc/icon-font-awesome.md +1 -1
  733. package/doc/icon-icofont.md +1 -1
  734. package/package.json +1 -1
  735. package/vscode-custom-data.json +30 -30
  736. package/dist/cjs/a11y.tipps-080b0008.js +0 -4
  737. package/dist/cjs/a11y.tipps-080b0008.js.map +0 -1
  738. package/dist/cjs/align-d634a2f8.js +0 -4
  739. package/dist/cjs/app-globals-ea12e422.js +0 -4
  740. package/dist/cjs/app-globals-ea12e422.js.map +0 -1
  741. package/dist/cjs/aria-current-2951f7e3.js +0 -4
  742. package/dist/cjs/associated.controller-5072ecdd.js +0 -4
  743. package/dist/cjs/associated.controller-5072ecdd.js.map +0 -1
  744. package/dist/cjs/controller-fd4b877c.js.map +0 -1
  745. package/dist/cjs/dev.utils-8798d31e.js +0 -4
  746. package/dist/cjs/dev.utils-8798d31e.js.map +0 -1
  747. package/dist/cjs/devtools-b44e1c3c.js +0 -4
  748. package/dist/cjs/devtools-b44e1c3c.js.map +0 -1
  749. package/dist/cjs/has-closer-5248a94d.js +0 -4
  750. package/dist/cjs/hide-label-534fe441.js +0 -4
  751. package/dist/cjs/i18n-b955386c.js +0 -4
  752. package/dist/cjs/i18n-b955386c.js.map +0 -1
  753. package/dist/cjs/image-source-ef8ba1ba.js +0 -4
  754. package/dist/cjs/index-4ab6021a.js +0 -4
  755. package/dist/cjs/index-4ab6021a.js.map +0 -1
  756. package/dist/cjs/index-99589a91.js +0 -4
  757. package/dist/cjs/index-99589a91.js.map +0 -1
  758. package/dist/cjs/index-a60d6032.js +0 -4
  759. package/dist/cjs/index-a60d6032.js.map +0 -1
  760. package/dist/cjs/open-ca70f48a.js +0 -4
  761. package/dist/cjs/rows-4a01c521.js +0 -4
  762. package/dist/cjs/show-5fe2dc57.js +0 -4
  763. package/dist/esm/a11y.tipps-90beea3f.js +0 -4
  764. package/dist/esm/a11y.tipps-90beea3f.js.map +0 -1
  765. package/dist/esm/app-globals-049318f3.js +0 -4
  766. package/dist/esm/app-globals-049318f3.js.map +0 -1
  767. package/dist/esm/associated.controller-54459452.js +0 -4
  768. package/dist/esm/associated.controller-54459452.js.map +0 -1
  769. package/dist/esm/controller-9b6b7e31.js.map +0 -1
  770. package/dist/esm/dev.utils-3d1ba6ea.js +0 -4
  771. package/dist/esm/dev.utils-3d1ba6ea.js.map +0 -1
  772. package/dist/esm/devtools-a5fabd63.js +0 -4
  773. package/dist/esm/devtools-a5fabd63.js.map +0 -1
  774. package/dist/esm/i18n-3701fda5.js +0 -4
  775. package/dist/esm/i18n-3701fda5.js.map +0 -1
  776. package/dist/esm/index-c88c7ecf.js +0 -4
  777. package/dist/esm/index-c88c7ecf.js.map +0 -1
  778. package/dist/esm/index-cf7b0813.js +0 -4
  779. package/dist/esm/index-cf7b0813.js.map +0 -1
  780. package/dist/esm/index-cfc376ee.js +0 -4
  781. package/dist/esm/index-cfc376ee.js.map +0 -1
  782. package/dist/esm/validation-c2c4360a.js +0 -4
  783. package/dist/kolibri/a11y.tipps-90beea3f.js +0 -4
  784. package/dist/kolibri/a11y.tipps-90beea3f.js.map +0 -1
  785. package/dist/kolibri/align-6a271473.js +0 -4
  786. package/dist/kolibri/alignment-b1fc396e.js +0 -4
  787. package/dist/kolibri/app-globals-049318f3.js +0 -4
  788. package/dist/kolibri/app-globals-049318f3.js.map +0 -1
  789. package/dist/kolibri/associated.controller-54459452.js +0 -4
  790. package/dist/kolibri/associated.controller-54459452.js.map +0 -1
  791. package/dist/kolibri/controller-9b6b7e31.js +0 -4
  792. package/dist/kolibri/controller-9b6b7e31.js.map +0 -1
  793. package/dist/kolibri/controller-b90cfb96.js +0 -4
  794. package/dist/kolibri/controller-icon-bc9b326c.js +0 -4
  795. package/dist/kolibri/dev.utils-3d1ba6ea.js +0 -4
  796. package/dist/kolibri/dev.utils-3d1ba6ea.js.map +0 -1
  797. package/dist/kolibri/devtools-a5fabd63.js +0 -4
  798. package/dist/kolibri/devtools-a5fabd63.js.map +0 -1
  799. package/dist/kolibri/form-field-msg-4920e946.js +0 -4
  800. package/dist/kolibri/has-closer-ecd5110c.js +0 -4
  801. package/dist/kolibri/hide-label-4df0e368.js +0 -4
  802. package/dist/kolibri/i18n-3701fda5.js +0 -4
  803. package/dist/kolibri/i18n-3701fda5.js.map +0 -1
  804. package/dist/kolibri/icons-56f61dc0.js +0 -4
  805. package/dist/kolibri/image-source-6a9717f3.js +0 -4
  806. package/dist/kolibri/index-c88c7ecf.js +0 -4
  807. package/dist/kolibri/index-c88c7ecf.js.map +0 -1
  808. package/dist/kolibri/index-cf7b0813.js.map +0 -1
  809. package/dist/kolibri/index-cfc376ee.js +0 -4
  810. package/dist/kolibri/index-cfc376ee.js.map +0 -1
  811. package/dist/kolibri/label-efb10d30.js +0 -4
  812. package/dist/kolibri/open-efffe1d7.js +0 -4
  813. package/dist/kolibri/rows-4a3d4e60.js +0 -4
  814. package/dist/kolibri/show-c018058d.js +0 -4
  815. package/dist/kolibri/suggestions-9569bba8.js +0 -4
  816. package/dist/kolibri/tab-index-a9976462.js +0 -4
  817. package/dist/kolibri/tooltip-align-b692f99f.js +0 -4
  818. package/dist/kolibri/validation-6b3fb356.js +0 -4
  819. package/dist/kolibri/validation-c2c4360a.js +0 -4
  820. package/dist/types/core/index.d.ts +0 -4
  821. /package/dist/kolibri/{align-6a271473.js.map → align-27e2835c.js.map} +0 -0
  822. /package/dist/kolibri/{alignment-b1fc396e.js.map → alignment-68533fed.js.map} +0 -0
  823. /package/dist/kolibri/{aria-current-de3f0ad3.js.map → aria-current-237ef298.js.map} +0 -0
  824. /package/dist/kolibri/{color-2b8dc09e.js.map → color-04abfc7c.js.map} +0 -0
  825. /package/dist/kolibri/{controller-afb334ed.js.map → controller-53b416bc.js.map} +0 -0
  826. /package/dist/kolibri/{controller-1a4ae847.js.map → controller-b7599521.js.map} +0 -0
  827. /package/dist/kolibri/{controller-5a13b9c6.js.map → controller-f5ed829a.js.map} +0 -0
  828. /package/dist/kolibri/{controller-icon-bc9b326c.js.map → controller-icon-f9f90b78.js.map} +0 -0
  829. /package/dist/kolibri/{custom-class-fb7c6947.js.map → custom-class-e90f6244.js.map} +0 -0
  830. /package/dist/kolibri/{form-field-msg-4920e946.js.map → form-field-msg-1b112ab3.js.map} +0 -0
  831. /package/dist/kolibri/{hide-label-4df0e368.js.map → hide-label-c9ce8fc8.js.map} +0 -0
  832. /package/dist/kolibri/{icons-56f61dc0.js.map → icons-e0d64894.js.map} +0 -0
  833. /package/dist/kolibri/{image-source-6a9717f3.js.map → image-source-112a2adf.js.map} +0 -0
  834. /package/dist/kolibri/{label-efb10d30.js.map → label-0cc3ee5d.js.map} +0 -0
  835. /package/dist/kolibri/{open-efffe1d7.js.map → open-3bbdba74.js.map} +0 -0
  836. /package/dist/kolibri/{prop.validators-c2b3a276.js.map → prop.validators-9d76278b.js.map} +0 -0
  837. /package/dist/kolibri/{rows-4a3d4e60.js.map → rows-ae2f4e8f.js.map} +0 -0
  838. /package/dist/kolibri/{show-c018058d.js.map → show-f887a36f.js.map} +0 -0
  839. /package/dist/kolibri/{suggestions-9569bba8.js.map → suggestions-f706f5bc.js.map} +0 -0
  840. /package/dist/kolibri/{tooltip-align-b692f99f.js.map → tooltip-align-e243c82c.js.map} +0 -0
  841. /package/dist/kolibri/{validation-c2c4360a.js.map → validation-81a932fa.js.map} +0 -0
  842. /package/dist/kolibri/{validation-6b3fb356.js.map → validation-e0cdfc8e.js.map} +0 -0
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as e,H as i,r as t,g as a}from"./index-cf7b0813.js";import{n as s}from"./dev.utils-3d1ba6ea.js";import{s as n,t as d}from"./events-fa760b68.js";import{s as r,a as l}from"./reuse-d79ab469.js";import{F as o}from"./form-field-msg-4920e946.js";import{g as h}from"./controller-b90cfb96.js";import{a as p}from"./controller-afb334ed.js";import"./prop.validators-c2b3a276.js";import"./index-c88c7ecf.js";import"./a11y.tipps-90beea3f.js";import"./hide-label-4df0e368.js";import"./label-efb10d30.js";import"./tab-index-a9976462.js";import"./associated.controller-54459452.js";const c=":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:1rem;width:100%}input[type='file']{padding:calc((var(--a11y-min-size) - 1rem) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - 1rem) / 2) 0.5em}kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}:host{--border-width:2px;--input-size:1.5em}kol-input .icons{display:none}label{cursor:pointer}input{appearance:none;border-width:var(--border-width);border-style:solid;border-radius:100%;cursor:pointer;display:flex;height:var(--input-size);margin:0;min-height:var(--input-size);min-width:var(--input-size);padding:0;width:var(--input-size)}input:before{border-radius:100%;content:'';margin:auto;height:calc(var(--input-size) / 2);width:calc(var(--input-size) / 2)}input:checked:before{background-color:#000}@media (forced-colors: active){input:checked:before{background:highlight !important;}}fieldset{display:flex}fieldset.vertical{flex-direction:column}fieldset .input-slot{align-items:center;display:flex}.required label>span::after{content:''}",u=c,b=class{render(){const{ariaDescribedBy:t,hasError:a}=h(this.state),l=r(this.state._label);return e(i,{key:"515c7bc42989a97794fb454999439e1ce017d5a7"},e("fieldset",{key:"60d734fef274115e225e8e39cf012138ee614ffa",class:{disabled:!0===this.state._disabled,error:!0===a,required:!0===this.state._required,"hidden-error":!0===this._hideError,[this.state._orientation]:!0}},e("legend",{key:"5a45ea8d6231420bf7b642fbed4f428af07aaed9",class:"block w-full mb-1 leading-normal"},e("span",{key:"c84d8dcdb811a98faab88a367fdb7ba2fbb058cd"},e("span",{key:"eec4d1c9940d5f8eb991343be28982e7fce2a9bb",slot:"label"},l?e("slot",null):this.state._label))),this.state._options.map(((i,a)=>{const l=`${this.state._id}-${a}`,s=`radio-${a}`;return e("kol-input",{class:{radio:!0,disabled:Boolean(this.state._disabled||i.disabled)},key:l,_disabled:this.state._disabled||i.disabled,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_id:l,_label:i.label,_renderNoLabel:!0,_required:this.state._required,_slotName:s,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},e("div",{slot:s,class:"radio-input-wrapper"},e("input",Object.assign({ref:this.state._value===i.value?this.catchRef:void 0,title:"",accessKey:this.state._accessKey,"aria-describedby":t.length>0?t.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof i.label?i.label:void 0,type:"radio",id:l,checked:this.state._value===i.value,name:this.state._name||this.state._id,disabled:this.state._disabled||i.disabled,required:this.state._required,tabIndex:this.state._tabIndex,value:`-${a}`},this.controller.onFacade,{onChange:this.onChange,onClick:void 0})),e("label",{class:"radio-label",htmlFor:`${l}`,style:{height:this.state._hideLabel?"0":void 0,margin:this.state._hideLabel?"0":void 0,padding:this.state._hideLabel?"0":void 0,visibility:this.state._hideLabel?"hidden":void 0}},e("span",null,e("span",null,i.label)))))})),a&&e(o,{_alert:this.state._alert,_hideError:this.state._hideError,_error:this.state._error,_id:this.state._id})))}constructor(e){t(this,e),this.catchRef=e=>{l(this.host,e)},this.onChange=e=>{var t;if(e.target instanceof HTMLInputElement){const i=this.controller.getOptionByKey(e.target.value);void 0!==i&&(n(e),d("change",this.host,i.value),this.controller.setFormAssociatedValue(i.value),"function"==typeof(null===(t=this.state._on)||void 0===t?void 0:t.onChange)&&this.state._on.onChange(e,i.value),this.controller.setValue(e,i.value))}},this._accessKey=void 0,this._alert=!0,this._disabled=!1,this._error=void 0,this._hideError=!1,this._hideLabel=!1,this._hint="",this._id=void 0,this._label=void 0,this._list=void 0,this._name=void 0,this._on=void 0,this._options=void 0,this._orientation="vertical",this._required=!1,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_hideError:!1,_id:`id-${s()}`,_label:"…",_options:[],_orientation:"vertical"},this.controller=new p(this,"radio",this.host)}validateAccessKey(e){this.controller.validateAccessKey(e)}validateAlert(e){this.controller.validateAlert(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateError(e){this.controller.validateError(e)}validateHideLabel(e){this.controller.validateHideLabel(e)}validateHideError(e){this.controller.validateHideError(e)}validateHint(e){this.controller.validateHint(e)}validateId(e){this.controller.validateId(e)}validateLabel(e){this.controller.validateLabel(e)}validateList(e){this.validateOptions(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validateOptions(e){this.controller.validateOptions(e)}validateOrientation(e){this.controller.validateOrientation(e)}validateRequired(e){this.controller.validateRequired(e)}validateSyncValueBySelector(e){this.controller.validateSyncValueBySelector(e)}validateTabIndex(e){this.controller.validateTabIndex(e)}validateTouched(e){this.controller.validateTouched(e)}validateValue(e){this.controller.validateValue(e)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(this.onChange)}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_disabled:["validateDisabled"],_error:["validateError"],_hideLabel:["validateHideLabel"],_hideError:["validateHideError"],_hint:["validateHint"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_name:["validateName"],_on:["validateOn"],_options:["validateOptions"],_orientation:["validateOrientation"],_required:["validateRequired"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};b.style={default:u};export{b as kol_input_radio};
4
+ import{h as e,H as i,r as t,g as a}from"./index-7cc6aa47.js";import{n as s}from"./dev.utils-11981c6e.js";import{s as n,t as r}from"./events-fa760b68.js";import{s as d,a as l}from"./reuse-d79ab469.js";import{F as o}from"./form-field-msg-1b112ab3.js";import{g as h}from"./controller-02c1d5f0.js";import{a as p}from"./controller-53b416bc.js";import"./prop.validators-9d76278b.js";import"./index-117bd1aa.js";import"./a11y.tipps-c347026d.js";import"./hide-label-c9ce8fc8.js";import"./label-0cc3ee5d.js";import"./tab-index-9fa47228.js";import"./associated.controller-2a2dee1c.js";const c=':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:1rem;width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - 1rem) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - 1rem) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}:host{--border-width:2px;--input-size:1.5em}.kol-input .icons{display:none}label{cursor:pointer}input{appearance:none;border-width:var(--border-width);border-style:solid;border-radius:100%;cursor:pointer;display:flex;height:var(--input-size);margin:0;min-height:var(--input-size);min-width:var(--input-size);padding:0;width:var(--input-size)}input:before{border-radius:100%;content:"";margin:auto;height:calc(var(--input-size) / 2);width:calc(var(--input-size) / 2)}input:checked:before{background-color:#000}@media (forced-colors: active){input:checked:before{background:highlight !important}}fieldset{display:flex}fieldset.vertical{flex-direction:column}fieldset .input-slot{align-items:center;display:flex}.required label>span::after{content:""}',u=c,b=class{render(){const{ariaDescribedBy:t,hasError:a}=h(this.state),l=d(this.state._label);return e(i,{key:"bb29b08fb1d37fdfac5c4615e88f306a4a8ae17a",class:"kol-input-radio"},e("fieldset",{key:"9880ae6c154bbfbe8189eb68a016842f0c969d99",class:{disabled:!0===this.state._disabled,error:!0===a,required:!0===this.state._required,"hidden-error":!0===this._hideError,[this.state._orientation]:!0}},e("legend",{key:"6382d03099797e67e159472737218b8e76a3b119",class:"block w-full mb-1 leading-normal"},e("span",{key:"dcef1a328e58ae9a67f0a5684146ecf4615465a9"},e("span",{key:"eb7461aa835f7f13d1ab144bdf80e3aa7ac14fa0",slot:"label"},l?e("slot",null):this.state._label))),this.state._options.map(((i,a)=>{const l=`${this.state._id}-${a}`,s=`radio-${a}`;return e("kol-input",{class:{radio:!0,disabled:Boolean(this.state._disabled||i.disabled)},key:l,_disabled:this.state._disabled||i.disabled,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_id:l,_label:i.label,_renderNoLabel:!0,_required:this.state._required,_slotName:s,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},e("div",{slot:s,class:"radio-input-wrapper"},e("input",Object.assign({ref:this.state._value===i.value?this.catchRef:void 0,title:"",accessKey:this.state._accessKey,"aria-describedby":t.length>0?t.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof i.label?i.label:void 0,type:"radio",id:l,checked:this.state._value===i.value,name:this.state._name||this.state._id,disabled:this.state._disabled||i.disabled,required:this.state._required,tabIndex:this.state._tabIndex,value:`-${a}`},this.controller.onFacade,{onChange:this.onChange,onClick:void 0})),e("label",{class:"radio-label",htmlFor:`${l}`,style:{height:this.state._hideLabel?"0":void 0,margin:this.state._hideLabel?"0":void 0,padding:this.state._hideLabel?"0":void 0,visibility:this.state._hideLabel?"hidden":void 0}},e("span",null,e("span",null,i.label)))))})),a&&e(o,{_alert:this.state._alert,_hideError:this.state._hideError,_error:this.state._error,_id:this.state._id})))}constructor(e){t(this,e),this.catchRef=e=>{l(this.host,e)},this.onChange=e=>{var t;if(e.target instanceof HTMLInputElement){const i=this.controller.getOptionByKey(e.target.value);void 0!==i&&(n(e),r("change",this.host,i.value),this.controller.setFormAssociatedValue(i.value),"function"==typeof(null===(t=this.state._on)||void 0===t?void 0:t.onChange)&&this.state._on.onChange(e,i.value),this.controller.setValue(e,i.value))}},this._accessKey=void 0,this._alert=!0,this._disabled=!1,this._error=void 0,this._hideError=!1,this._hideLabel=!1,this._hint="",this._id=void 0,this._label=void 0,this._list=void 0,this._name=void 0,this._on=void 0,this._options=void 0,this._orientation="vertical",this._required=!1,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_hideError:!1,_id:`id-${s()}`,_label:"…",_options:[],_orientation:"vertical"},this.controller=new p(this,"radio",this.host)}validateAccessKey(e){this.controller.validateAccessKey(e)}validateAlert(e){this.controller.validateAlert(e)}validateDisabled(e){this.controller.validateDisabled(e)}validateError(e){this.controller.validateError(e)}validateHideLabel(e){this.controller.validateHideLabel(e)}validateHideError(e){this.controller.validateHideError(e)}validateHint(e){this.controller.validateHint(e)}validateId(e){this.controller.validateId(e)}validateLabel(e){this.controller.validateLabel(e)}validateList(e){this.validateOptions(e)}validateName(e){this.controller.validateName(e)}validateOn(e){this.controller.validateOn(e)}validateOptions(e){this.controller.validateOptions(e)}validateOrientation(e){this.controller.validateOrientation(e)}validateRequired(e){this.controller.validateRequired(e)}validateSyncValueBySelector(e){this.controller.validateSyncValueBySelector(e)}validateTabIndex(e){this.controller.validateTabIndex(e)}validateTouched(e){this.controller.validateTouched(e)}validateValue(e){this.controller.validateValue(e)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(this.onChange)}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_disabled:["validateDisabled"],_error:["validateError"],_hideLabel:["validateHideLabel"],_hideError:["validateHideError"],_hint:["validateHint"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_name:["validateName"],_on:["validateOn"],_options:["validateOptions"],_orientation:["validateOrientation"],_required:["validateRequired"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};b.style={default:u};export{b as kol_input_radio};
@@ -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","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.css?tag=kol-input-radio&mode=default&encapsulation=shadow","src/components/input-radio/component.tsx"],"sourcesContent":["@import url(../input.css);\n:host {\n\t--border-width: 2px;\n\t--input-size: 1.5em;\n}\nkol-input .icons {\n\tdisplay: none;\n}\nlabel {\n\tcursor: pointer;\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}\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}\ninput:checked:before {\n\tbackground-color: #000;\n}\n@media (forced-colors: active) {\n\tinput:checked:before {\n\t\tbackground: highlight !important; /* Give it a visible background in forced colors mode */\n\t}\n}\nfieldset {\n\tdisplay: flex;\n}\nfieldset.vertical {\n\tflex-direction: column;\n}\nfieldset .input-slot {\n\talign-items: center;\n\tdisplay: flex;\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';\n\n/**\n * @slot - Die Legende/Überschrift der Radiobuttons.\n */\n@Component({\n\ttag: 'kol-input-radio',\n\tstyleUrls: {\n\t\tdefault: './style.css',\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>\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<kol-input\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</kol-input>\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":";;;+jBAAA,MAAMA,EAAkB,u7EACxB,MAAAC,EAAeD,E,MC+BFE,EAAa,MAOlB,MAAAC,GACN,MAAMC,gBAAEA,EAAeC,SAAEA,GAAaC,EAAgBC,KAAKC,OAC3D,MAAMC,EAAgBC,EAAeH,KAAKC,MAAMG,QAEhD,OACCC,EAACC,EAAI,CAAAC,IAAA,4CACJF,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,EAAA,aACCG,MAAO,CACNgB,MAAO,KACPf,SAAUgB,QAAQzB,KAAKC,MAAMS,WAAaS,EAAOV,WAElDF,IAAKc,EACLX,UAAWV,KAAKC,MAAMS,WAAaS,EAAOV,SAC1CiB,WAAY1B,KAAKC,MAAMyB,WACvBC,MAAO3B,KAAKC,MAAM0B,MAClBL,IAAKD,EACLjB,OAAQe,EAAOS,MACfC,eAAgB,KAChBhB,UAAWb,KAAKC,MAAMY,UACtBiB,UAAWP,EACXQ,cAAe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,CAAcpD,GACpBrC,KAAKoD,WAAWqC,cAAcpD,E,CAIxB,YAAAqD,CAAarD,GACnBrC,KAAK2F,gBAAgBtD,E,CAIf,YAAAuD,CAAavD,GACnBrC,KAAKoD,WAAWwC,aAAavD,E,CAIvB,UAAAwD,CAAWxD,GACjBrC,KAAKoD,WAAWyC,WAAWxD,E,CAIrB,eAAAsD,CAAgBtD,GACtBrC,KAAKoD,WAAWuC,gBAAgBtD,E,CAI1B,mBAAAyD,CAAoBzD,GAC1BrC,KAAKoD,WAAW0C,oBAAoBzD,E,CAI9B,gBAAA0D,CAAiB1D,GACvBrC,KAAKoD,WAAW2C,iBAAiB1D,E,CAI3B,2BAAA2D,CAA4B3D,GAClCrC,KAAKoD,WAAW4C,4BAA4B3D,E,CAItC,gBAAA4D,CAAiB5D,GACvBrC,KAAKoD,WAAW6C,iBAAiB5D,E,CAI3B,eAAA6D,CAAgB7D,GACtBrC,KAAKoD,WAAW8C,gBAAgB7D,E,CAI1B,aAAA8D,CAAc9D,GACpBrC,KAAKoD,WAAW+C,cAAc9D,E,CAGxB,iBAAA+D,GACNpG,KAAK+D,OAAS/D,KAAK+D,SAAW,KAC9B/D,KAAKgC,SAAWhC,KAAKgC,WAAa,KAClChC,KAAKoD,WAAWgD,kBAAkBpG,KAAKsD,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","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';\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<kol-input\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</kol-input>\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":";;;+jBAAA,MAAMA,EAAkB,g5EACxB,MAAAC,EAAeD,E,MC+BFE,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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WgD,kBAAkBpG,KAAKsD,S"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as t,H as i,r as e,g as a}from"./index-cf7b0813.js";import{n as s}from"./dev.utils-3d1ba6ea.js";import{s as n,a as o}from"./reuse-d79ab469.js";import{p as l}from"./controller-9b6b7e31.js";import{g as d}from"./controller-b90cfb96.js";import{v as r}from"./suggestions-9569bba8.js";import{w as h,e as p}from"./prop.validators-c2b3a276.js";import{I as u}from"./controller-icon-bc9b326c.js";import"./a11y.tipps-90beea3f.js";import"./hide-label-4df0e368.js";import"./label-efb10d30.js";import"./events-fa760b68.js";import"./tab-index-a9976462.js";import"./associated.controller-54459452.js";import"./index-c88c7ecf.js";import"./icons-56f61dc0.js";class c 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){r(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:1rem;width:100%}input[type='file']{padding:calc((var(--a11y-min-size) - 1rem) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - 1rem) / 2) 0.5em}kol-input.disabled :is(button,input,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:0.5rem;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}}",f=b,m=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}=d(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=n(this.state._label);return t(i,{key:"bd713229ee3ac562b5d954abcbdb35dc3459a202"},t("kol-input",{key:"0790ebec34ce9ed23529efd439a617a362287a85",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},t("span",{key:"c8b8fbf6f99e9d5a8e20adbe62a60360a240c59b",slot:"label"},s?t("slot",null):this.state._label),t("div",{key:"c7776296ab581b85f32853b6ca7acf1f55ae9b1d",slot:"input"},t("div",{key:"77994219a957c789271b9c3f9869c59e562dca45",class:"inputs-wrapper",style:{"--kolibri-input-range--input-number--width":`${this.state._max}`.length+.5+"em"}},t("input",Object.assign({key:"9a405810b39660491228eda68ff54551a24fae62",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})),t("input",Object.assign({key:"52a0e7052e75a0564e09fd862e154601b48b30f7",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,{onKeyUp:this.onKeyUp,onChange:this.onChange}))),a&&[t("datalist",{id:`${this.state._id}-list`},this.state._suggestions.map((e=>t("option",{value:e}))))])))}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.onKeyUp=t=>{"Enter"===t.code?l({form:this.host,ref:this.refInputRange}):this.onChange(t)},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 c(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"]}}};m.style={default:f};export{m as kol_input_range};
4
+ import{h as t,H as i,r as e,g as a}from"./index-7cc6aa47.js";import{n as s}from"./dev.utils-11981c6e.js";import{s as n,a as o}from"./reuse-d79ab469.js";import{p as d}from"./controller-89bb64c9.js";import{g as l}from"./controller-02c1d5f0.js";import{v as r}from"./suggestions-f706f5bc.js";import{w as h,e as p}from"./prop.validators-9d76278b.js";import{I as u}from"./controller-icon-f9f90b78.js";import"./a11y.tipps-c347026d.js";import"./hide-label-c9ce8fc8.js";import"./label-0cc3ee5d.js";import"./events-fa760b68.js";import"./tab-index-9fa47228.js";import"./associated.controller-2a2dee1c.js";import"./index-117bd1aa.js";import"./icons-e0d64894.js";class c 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){r(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 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}.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:1rem;width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - 1rem) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - 1rem) / 2) 0.5em}.kol-input.disabled :is(button,input,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:0.5rem;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}}',b=f,m=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 t(i,{key:"c55138ef86f4323a1bd2adf8971e2ac1025c3fc4",class:"kol-input-range"},t("kol-input",{key:"57b0c69f567b73791238b6468ada203e4b02b3e0",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},t("span",{key:"09e2335ba9ae011325faebad4d8c76d76407600c",slot:"label"},s?t("slot",null):this.state._label),t("div",{key:"7b37980bb1535d057385dce9cf3240fb26d75a96",slot:"input"},t("div",{key:"39932608b7470a885f0553b4ccb2ca22df3f0e92",class:"inputs-wrapper",style:{"--kolibri-input-range--input-number--width":`${this.state._max}`.length+.5+"em"}},t("input",Object.assign({key:"92453e6320f061c560240a2259bd9f1476e32998",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})),t("input",Object.assign({key:"8d76504cfcf6429e4aeaeb831575c465bd36a0ca",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&&[t("datalist",{id:`${this.state._id}-list`},this.state._suggestions.map((e=>t("option",{value:e}))))])))}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.onChange(t)},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 c(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"]}}};m.style={default:b};export{m 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","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","onKeyUp","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.css?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 url(../input-line.css);\n.inputs-wrapper {\n\talign-items: center;\n\tdisplay: flex;\n\tflex-direction: row;\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 * 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: 0.5rem;\n\tline-height: 1.5em;\n\tpadding: 0;\n\tmargin: 0;\n\twidth: 0; /* Design-Hack - related with flex-grow */\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}\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';\n\n/**\n * @slot - Die Beschriftung des Eingabeelements.\n */\n@Component({\n\ttag: 'kol-input-range',\n\tstyleUrls: {\n\t\tdefault: './style.css',\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 onKeyUp = (event: KeyboardEvent) => {\n\t\tif (event.code === 'Enter') {\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} else {\n\t\t\tthis.onChange(event);\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>\n\t\t\t\t<kol-input\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\tonKeyUp={this.onKeyUp}\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</kol-input>\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":";;;gpBAUaA,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,CAAoBN,GAC1BM,EAAoBR,KAAKJ,UAAWM,E,CAG9B,aAAAa,CAAcb,GACpBU,EAAYZ,KAAKJ,UAAW,SAAUM,GACtCF,KAAKgB,uBAAuBhB,KAAKJ,UAAUqB,MAAMC,O,CAG3C,iBAAAC,GACNpB,MAAMoB,oBACNnB,KAAKC,qBAAqBD,KAAKJ,UAAUwB,eACzCpB,KAAKK,aAAaL,KAAKJ,UAAUyB,OACjCrB,KAAKW,YAAYX,KAAKJ,UAAU0B,MAChCtB,KAAKa,YAAYb,KAAKJ,UAAU2B,MAChCvB,KAAKc,aAAad,KAAKJ,UAAU4B,OACjCxB,KAAKQ,oBAAoBR,KAAKJ,UAAU6B,cACxCzB,KAAKe,cAAcf,KAAKJ,UAAUsB,O,EClEpC,MAAMQ,EAAkB,02FACxB,MAAAC,EAAeD,E,M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E,WAAWtE,oBAAoBN,E,CAI9B,2BAAA2G,CAA4B3G,GAClCF,KAAK8E,WAAW+B,4BAA4B3G,E,CAItC,gBAAA4G,CAAiB5G,GACvBF,KAAK8E,WAAWgC,iBAAiB5G,E,CAI3B,eAAA6G,CAAgB7G,GACtBF,KAAK8E,WAAWiC,gBAAgB7G,E,CAI1B,aAAAa,CAAcb,GACpBF,KAAK8E,WAAW/D,cAAcb,E,CAGxB,iBAAAiB,GACNnB,KAAKgH,OAAShH,KAAKgH,SAAW,KAC9BhH,KAAKsD,SAAWtD,KAAKsD,WAAa,KAClCtD,KAAK8E,WAAW3D,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","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 '../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: 0.5rem;\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';\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} else {\n\t\t\tthis.onChange(event);\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<kol-input\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</kol-input>\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 compon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oBAAoBN,E,CAI9B,2BAAA2G,CAA4B3G,GAClCF,KAAK8E,WAAW+B,4BAA4B3G,E,CAItC,gBAAA4G,CAAiB5G,GACvBF,KAAK8E,WAAWgC,iBAAiB5G,E,CAI3B,eAAA6G,CAAgB7G,GACtBF,KAAK8E,WAAWiC,gBAAgB7G,E,CAI1B,aAAAa,CAAcb,GACpBF,KAAK8E,WAAW/D,cAAcb,E,CAGxB,iBAAAiB,GACNnB,KAAKgH,OAAShH,KAAKgH,SAAW,KAC9BhH,KAAKsD,SAAWtD,KAAKsD,WAAa,KAClCtD,KAAK8E,WAAW3D,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-cf7b0813.js";import{a as s,s as n}from"./prop.validators-c2b3a276.js";import{f as l}from"./a11y.tipps-90beea3f.js";import{n as d}from"./dev.utils-3d1ba6ea.js";import{s as o,a as r}from"./reuse-d79ab469.js";import{p as h}from"./controller-9b6b7e31.js";import{g as p}from"./controller-b90cfb96.js";import{a as u}from"./controller-5a13b9c6.js";import"./index-c88c7ecf.js";import"./hide-label-4df0e368.js";import"./label-efb10d30.js";import"./events-fa760b68.js";import"./tab-index-a9976462.js";import"./associated.controller-54459452.js";import"./controller-1a4ae847.js";import"./controller-icon-bc9b326c.js";import"./icons-56f61dc0.js";import"./suggestions-9569bba8.js";const c=(t,e)=>{s(t,"_alert",e)},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}.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:1rem;width:100%}input[type='file']{padding:calc((var(--a11y-min-size) - 1rem) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - 1rem) / 2) 0.5em}kol-input.disabled :is(button,input,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:'*'}",v=f;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=o(this.state._label);return t(e,{key:"1a29c5451db5c23c9c05bae0ac6321b1e89e34d3",class:{"has-value":this.state._hasValue}},t("kol-input",{key:"b4c1540403fec357830d855ee82cf816ec0f8251",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:"986082f361c179298755864962015c99d07db107",slot:"label"},s?t("slot",null):this.state._label),t("div",{key:"e12c4b1d18b45bc7907e03d52f9df372dda1785e",slot:"input"},t("input",Object.assign({key:"bf0942100325219e62df6063e92556b44cc4e4ba",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,{onKeyUp:this.onKeyUp})))))}constructor(t){i(this,t),this.catchRef=t=>{var e;this.ref=t,r(this.host,this.ref),this.disconnectedCallback(),null===(e=this.ref)||void 0===e||e.addEventListener("search",this.onChange)},this.onKeyUp=t=>{n(this,"_currentLength",t.target.value.length),"Enter"===t.code||"NumpadEnter"===t.code?h({form:this.host,ref:this.ref}):this.onChange(t)},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._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-${d()}`,_label:"…",_suggestions:[],_type:"text"},this.controller=new u(this,"text",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){c(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))}disconnectedCallback(){var t;null===(t=this.ref)||void 0===t||t.removeEventListener("search",this.onChange)}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:v};export{b as kol_input_text};
4
+ import{h as t,H as e,r as i,g as a}from"./index-7cc6aa47.js";import{a as s,s as n}from"./prop.validators-9d76278b.js";import{f as l}from"./a11y.tipps-c347026d.js";import{n as d}from"./dev.utils-11981c6e.js";import{s as o,a as r}from"./reuse-d79ab469.js";import{p as h}from"./controller-89bb64c9.js";import{g as p}from"./controller-02c1d5f0.js";import{a as u}from"./controller-f5ed829a.js";import"./index-117bd1aa.js";import"./hide-label-c9ce8fc8.js";import"./label-0cc3ee5d.js";import"./events-fa760b68.js";import"./tab-index-9fa47228.js";import"./associated.controller-2a2dee1c.js";import"./controller-b7599521.js";import"./controller-icon-f9f90b78.js";import"./icons-e0d64894.js";import"./suggestions-f706f5bc.js";const c=(t,e)=>{s(t,"_alert",e)},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}.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:1rem;width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - 1rem) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - 1rem) / 2) 0.5em}.kol-input.disabled :is(button,input,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:"*"}',v=f;l("[KolInputText] Pre- und post-Label für Währung usw.");const m=class{render(){const{ariaDescribedBy:a}=p(this.state),i=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=o(this.state._label);return t(e,{key:"939fa931a6b22e8920a7cef58883e533dc1e10e3",class:{"kol-input-text":!0,"has-value":this.state._hasValue}},t("kol-input",{key:"3837faeff82871d3acab2a6b137b562a938d792f",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:"72a752a3a0c29efc729deb6781d0d45d68ba82c3",slot:"label"},s?t("slot",null):this.state._label),t("div",{key:"9265bf2387f5b023f591050a529cad17707aedb6",slot:"input"},t("input",Object.assign({key:"a56c5198e958a250fb5ffc008aa3a3f0781eacd1",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,{onKeyDown:this.onKeyDown})))))}constructor(t){i(this,t),this.catchRef=t=>{var e;this.ref=t,r(this.host,this.ref),this.disconnectedCallback(),null===(e=this.ref)||void 0===e||e.addEventListener("search",this.onChange)},this.onKeyDown=t=>{n(this,"_currentLength",t.target.value.length),"Enter"===t.code||"NumpadEnter"===t.code?h({form:this.host,ref:this.ref}):this.onChange(t)},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._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-${d()}`,_label:"…",_suggestions:[],_type:"text"},this.controller=new u(this,"text",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){c(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))}disconnectedCallback(){var t;null===(t=this.ref)||void 0===t||t.removeEventListener("search",this.onChange)}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"]}}};m.style={default:v};export{m as kol_input_text};
@@ -1 +1 @@
1
- {"version":3,"names":["validateAlert","component","value","watchBoolean","defaultStyleCss","KolInputTextDefaultStyle0","featureHint","KolInputText","render","ariaDescribedBy","getRenderStates","this","state","hasSuggestions","Array","isArray","_suggestions","length","hasExpertSlot","showExpertSlot","_label","h","Host","key","class","_hasValue","_type","_hideLabel","_currentLength","_disabled","_error","_hideError","_hasCounter","_hint","_icons","_id","_maxLength","_readOnly","_required","_smartButton","_tooltipAlign","_touched","onClick","_a","ref","focus","role","slot","Object","assign","catchRef","title","accessKey","_accessKey","join","undefined","autoCapitalize","autoComplete","_autoComplete","autoCorrect","disabled","id","list","maxlength","name","_name","pattern","_pattern","placeholder","_placeholder","readOnly","required","size","_size","spellcheck","type","_value","controller","onFacade","onKeyUp","constructor","hostRef","propagateFocus","host","disconnectedCallback","addEventListener","onChange","event","setState","target","code","propagateSubmitEventToForm","form","oldValue","_b","nonce","InputTextController","validateAccessKey","validateAutoComplete","validateDisabled","validateError","validateHasCounter","validateHideError","validateHideLabel","validateHint","validateIcon","validateIcons","validateId","validateLabel","validateList","validateSuggestions","validateMaxLength","validateName","validateOn","validatePattern","validatePlaceholder","validateReadOnly","validateRequired","validateSize","validateSmartButton","validateSyncValueBySelector","validateTabIndex","validateTouched","validateType","validateValue","componentWillLoad","_alert","addValueChangeListener","v","removeEventListener"],"sources":["src/types/props/alert.ts","src/components/input-text/style.css?tag=kol-input-text&mode=default&encapsulation=shadow","src/components/input-text/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../../utils/prop.validators';\n\n/* types */\nexport type AlertPropType = boolean;\n\n/**\n * Defines whether the screen-readers should read out the notification.\n */\nexport type PropAlert = {\n\talert: AlertPropType;\n};\n\n/* validator */\nexport const validateAlert = (component: Generic.Element.Component, value?: AlertPropType): void => {\n\twatchBoolean(component, '_alert', value);\n};\n","@import url(../input-line.css);\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 { InputTextType } from '../../types/input/control/text';\nimport { InputTypeOnDefault, InputTypeOnOff } from '../../types/input/types';\nimport { AlertPropType, validateAlert } from '../../types/props/alert';\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 { featureHint } from '../../utils/a11y.tipps';\nimport { nonce } from '../../utils/dev.utils';\nimport { setState } from '../../utils/prop.validators';\nimport { propagateFocus, showExpertSlot } from '../../utils/reuse';\nimport { Props as ButtonProps } from '../button/types';\nimport { propagateSubmitEventToForm } from '../form/controller';\nimport { getRenderStates } from '../input/controller';\nimport { InputTextController } from './controller';\nimport { API, States } from './types';\n\nfeatureHint(`[KolInputText] Pre- und post-Label für Währung usw.`);\n\n/**\n * @slot - Die Beschriftung des Eingabefeldes.\n */\n@Component({\n\ttag: 'kol-input-text',\n\tstyleUrls: {\n\t\tdefault: './style.css',\n\t},\n\tshadow: true,\n})\nexport class KolInputText implements API {\n\t@Element() private readonly host?: HTMLKolInputTextElement;\n\tprivate ref?: HTMLInputElement;\n\tprivate oldValue?: string;\n\n\tprivate readonly catchRef = (ref?: HTMLInputElement) => {\n\t\tthis.ref = ref;\n\t\tpropagateFocus(this.host, this.ref);\n\t\tthis.disconnectedCallback();\n\t\tthis.ref?.addEventListener('search', this.onChange);\n\t};\n\n\tprivate readonly onKeyUp = (event: KeyboardEvent) => {\n\t\tsetState(this, '_currentLength', (event.target as HTMLInputElement).value.length);\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.ref,\n\t\t\t});\n\t\t} else {\n\t\t\tthis.onChange(event);\n\t\t}\n\t};\n\n\tprivate readonly onChange = (event: Event) => {\n\t\tif (this.oldValue !== this.ref?.value) {\n\t\t\tthis.oldValue = this.ref?.value;\n\t\t\tthis.controller.onFacade.onChange(event);\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\n\t\t\t\tclass={{\n\t\t\t\t\t'has-value': this.state._hasValue,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<kol-input\n\t\t\t\t\tclass={{\n\t\t\t\t\t\t[this.state._type]: 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_currentLength={this.state._currentLength}\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_hasCounter={this.state._hasCounter}\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_suggestions={this.state._suggestions}\n\t\t\t\t\t_maxLength={this.state._maxLength}\n\t\t\t\t\t_readOnly={this.state._readOnly}\n\t\t\t\t\t_required={this.state._required}\n\t\t\t\t\t_smartButton={this.state._smartButton}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_touched={this.state._touched}\n\t\t\t\t\tonClick={() => this.ref?.focus()}\n\t\t\t\t\trole={`presentation` /* Avoid element being read as 'clickable' in NVDA */}\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<input\n\t\t\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\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\tautoCapitalize=\"off\"\n\t\t\t\t\t\t\tautoComplete={this.state._autoComplete}\n\t\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\t\tid={this.state._id}\n\t\t\t\t\t\t\tlist={hasSuggestions ? `${this.state._id}-list` : undefined}\n\t\t\t\t\t\t\tmaxlength={this.state._maxLength}\n\t\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\t\tpattern={this.state._pattern}\n\t\t\t\t\t\t\tplaceholder={this.state._placeholder}\n\t\t\t\t\t\t\treadOnly={this.state._readOnly}\n\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\tsize={this.state._size}\n\t\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\t\ttype={this.state._type}\n\t\t\t\t\t\t\tvalue={this.state._value as string}\n\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\t// onInput={this.controller.onFacade.onChange}\n\t\t\t\t\t\t\tonKeyUp={this.onKeyUp}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</kol-input>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: InputTextController;\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 * @TODO: Change type back to `AlertPropType` after Stencil#4663 has been resolved.\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 * 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({ 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<string[]>;\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 * 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 a validation pattern for the input field.\n\t */\n\t@Prop() public _pattern?: string;\n\n\t/**\n\t * Defines the placeholder for input field. To be shown when there's no value.\n\t */\n\t@Prop() public _placeholder?: string;\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 * 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 * Setzt die Breite des Eingabefeldes in Buchstabenbreiten.\n\t */\n\t@Prop() public _size?: 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 * 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 * 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 either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: InputTextType = 'text';\n\n\t/**\n\t * Defines the value of the input.\n\t */\n\t@Prop({ mutable: true }) public _value?: string;\n\n\t@State() public state: States = {\n\t\t_autoComplete: 'off',\n\t\t_currentLength: 0,\n\t\t_hasValue: false,\n\t\t_hideError: false,\n\t\t_id: `id-${nonce()}`,\n\t\t_label: '…', // ⚠ required\n\t\t_suggestions: [],\n\t\t_type: 'text',\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new InputTextController(this, 'text', 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?: AlertPropType): void {\n\t\tvalidateAlert(this, 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('_hasCounter')\n\tpublic validateHasCounter(value?: boolean): void {\n\t\tthis.controller.validateHasCounter(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?: SuggestionsPropType): void {\n\t\tthis.validateSuggestions(value);\n\t}\n\n\t@Watch('_maxLength')\n\tpublic validateMaxLength(value?: number): void {\n\t\tthis.controller.validateMaxLength(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('_pattern')\n\tpublic validatePattern(value?: string): void {\n\t\tthis.controller.validatePattern(value);\n\t}\n\n\t@Watch('_placeholder')\n\tpublic validatePlaceholder(value?: string): void {\n\t\tthis.controller.validatePlaceholder(value);\n\t}\n\n\t@Watch('_readOnly')\n\tpublic validateReadOnly(value?: boolean): void {\n\t\tthis.controller.validateReadOnly(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/**\n\t * @deprecated\n\t */\n\t@Watch('_size')\n\tpublic validateSize(value?: number): void {\n\t\tthis.controller.validateSize(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('_smartButton')\n\tpublic validateSmartButton(value?: ButtonProps | string): void {\n\t\tthis.controller.validateSmartButton(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('_type')\n\tpublic validateType(value?: InputTextType): void {\n\t\tthis.controller.validateType(value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: string): 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.oldValue = this._value;\n\t\tthis.controller.componentWillLoad();\n\n\t\tthis.state._hasValue = !!this.state._value;\n\t\tthis.controller.addValueChangeListener((v) => (this.state._hasValue = !!v));\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tthis.ref?.removeEventListener('search', this.onChange);\n\t}\n}\n"],"mappings":";;;4sBAeO,MAAMA,EAAgB,CAACC,EAAsCC,KACnEC,EAAaF,EAAW,SAAUC,EAAM,EChBzC,MAAME,EAAkB,+kEACxB,MAAAC,EAAeD,ECuBfE,EAAY,uD,MAYCC,EAAY,MA+BjB,MAAAC,GACN,MAAMC,gBAAEA,GAAoBC,EAAgBC,KAAKC,OACjD,MAA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SAAAA,EAAEsF,oBAAoB,SAAUtH,KAAK2E,S"}
1
+ {"version":3,"names":["validateAlert","component","value","watchBoolean","defaultStyleCss","KolInputTextDefaultStyle0","featureHint","KolInputText","render","ariaDescribedBy","getRenderStates","this","state","hasSuggestions","Array","isArray","_suggestions","length","hasExpertSlot","showExpertSlot","_label","h","Host","key","class","_hasValue","_type","_hideLabel","_currentLength","_disabled","_error","_hideError","_hasCounter","_hint","_icons","_id","_maxLength","_readOnly","_required","_smartButton","_tooltipAlign","_touched","onClick","_a","ref","focus","role","slot","Object","assign","catchRef","title","accessKey","_accessKey","join","undefined","autoCapitalize","autoComplete","_autoComplete","autoCorrect","disabled","id","list","maxlength","name","_name","pattern","_pattern","placeholder","_placeholder","readOnly","required","size","_size","spellcheck","type","_value","controller","onFacade","onKeyDown","constructor","hostRef","propagateFocus","host","disconnectedCallback","addEventListener","onChange","event","setState","target","code","propagateSubmitEventToForm","form","oldValue","_b","nonce","InputTextController","validateAccessKey","validateAutoComplete","validateDisabled","validateError","validateHasCounter","validateHideError","validateHideLabel","validateHint","validateIcon","validateIcons","validateId","validateLabel","validateList","validateSuggestions","validateMaxLength","validateName","validateOn","validatePattern","validatePlaceholder","validateReadOnly","validateRequired","validateSize","validateSmartButton","validateSyncValueBySelector","validateTabIndex","validateTouched","validateType","validateValue","componentWillLoad","_alert","addValueChangeListener","v","removeEventListener"],"sources":["src/types/props/alert.ts","src/components/input-text/style.scss?tag=kol-input-text&mode=default&encapsulation=shadow","src/components/input-text/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../../utils/prop.validators';\n\n/* types */\nexport type AlertPropType = boolean;\n\n/**\n * Defines whether the screen-readers should read out the notification.\n */\nexport type PropAlert = {\n\talert: AlertPropType;\n};\n\n/* validator */\nexport const validateAlert = (component: Generic.Element.Component, value?: AlertPropType): void => {\n\twatchBoolean(component, '_alert', value);\n};\n","@import '../input-line';\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 { InputTextType } from '../../types/input/control/text';\nimport { InputTypeOnDefault, InputTypeOnOff } from '../../types/input/types';\nimport { AlertPropType, validateAlert } from '../../types/props/alert';\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 { featureHint } from '../../utils/a11y.tipps';\nimport { nonce } from '../../utils/dev.utils';\nimport { setState } from '../../utils/prop.validators';\nimport { propagateFocus, showExpertSlot } from '../../utils/reuse';\nimport { Props as ButtonProps } from '../button/types';\nimport { propagateSubmitEventToForm } from '../form/controller';\nimport { getRenderStates } from '../input/controller';\nimport { InputTextController } from './controller';\nimport { API, States } from './types';\n\nfeatureHint(`[KolInputText] Pre- und post-Label für Währung usw.`);\n\n/**\n * @slot - Die Beschriftung des Eingabefeldes.\n */\n@Component({\n\ttag: 'kol-input-text',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolInputText implements API {\n\t@Element() private readonly host?: HTMLKolInputTextElement;\n\tprivate ref?: HTMLInputElement;\n\tprivate oldValue?: string;\n\n\tprivate readonly catchRef = (ref?: HTMLInputElement) => {\n\t\tthis.ref = ref;\n\t\tpropagateFocus(this.host, this.ref);\n\t\tthis.disconnectedCallback();\n\t\tthis.ref?.addEventListener('search', this.onChange);\n\t};\n\n\tprivate readonly onKeyDown = (event: KeyboardEvent) => {\n\t\tsetState(this, '_currentLength', (event.target as HTMLInputElement).value.length);\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.ref,\n\t\t\t});\n\t\t} else {\n\t\t\tthis.onChange(event);\n\t\t}\n\t};\n\n\tprivate readonly onChange = (event: Event) => {\n\t\tif (this.oldValue !== this.ref?.value) {\n\t\t\tthis.oldValue = this.ref?.value;\n\t\t\tthis.controller.onFacade.onChange(event);\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\n\t\t\t\tclass={{\n\t\t\t\t\t'kol-input-text': true,\n\t\t\t\t\t'has-value': this.state._hasValue,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<kol-input\n\t\t\t\t\tclass={{\n\t\t\t\t\t\t[this.state._type]: 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_currentLength={this.state._currentLength}\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_hasCounter={this.state._hasCounter}\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_suggestions={this.state._suggestions}\n\t\t\t\t\t_maxLength={this.state._maxLength}\n\t\t\t\t\t_readOnly={this.state._readOnly}\n\t\t\t\t\t_required={this.state._required}\n\t\t\t\t\t_smartButton={this.state._smartButton}\n\t\t\t\t\t_tooltipAlign={this._tooltipAlign}\n\t\t\t\t\t_touched={this.state._touched}\n\t\t\t\t\tonClick={() => this.ref?.focus()}\n\t\t\t\t\trole={`presentation` /* Avoid element being read as 'clickable' in NVDA */}\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<input\n\t\t\t\t\t\t\tref={this.catchRef}\n\t\t\t\t\t\t\ttitle=\"\"\n\t\t\t\t\t\t\taccessKey={this.state._accessKey}\n\t\t\t\t\t\t\taria-describedby={ariaDescribedBy.length > 0 ? ariaDescribedBy.join(' ') : undefined}\n\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\tautoCapitalize=\"off\"\n\t\t\t\t\t\t\tautoComplete={this.state._autoComplete}\n\t\t\t\t\t\t\tautoCorrect=\"off\"\n\t\t\t\t\t\t\tdisabled={this.state._disabled}\n\t\t\t\t\t\t\tid={this.state._id}\n\t\t\t\t\t\t\tlist={hasSuggestions ? `${this.state._id}-list` : undefined}\n\t\t\t\t\t\t\tmaxlength={this.state._maxLength}\n\t\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\t\tpattern={this.state._pattern}\n\t\t\t\t\t\t\tplaceholder={this.state._placeholder}\n\t\t\t\t\t\t\treadOnly={this.state._readOnly}\n\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\tsize={this.state._size}\n\t\t\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\t\t\ttype={this.state._type}\n\t\t\t\t\t\t\tvalue={this.state._value as string}\n\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\t// onInput={this.controller.onFacade.onChange}\n\t\t\t\t\t\t\tonKeyDown={this.onKeyDown}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</kol-input>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: InputTextController;\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 * @TODO: Change type back to `AlertPropType` after Stencil#4663 has been resolved.\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 * 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({ 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<string[]>;\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 * 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 a validation pattern for the input field.\n\t */\n\t@Prop() public _pattern?: string;\n\n\t/**\n\t * Defines the placeholder for input field. To be shown when there's no value.\n\t */\n\t@Prop() public _placeholder?: string;\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 * 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 * Setzt die Breite des Eingabefeldes in Buchstabenbreiten.\n\t */\n\t@Prop() public _size?: 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 * 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 * 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 either the type of the component or of the components interactive element.\n\t */\n\t@Prop() public _type?: InputTextType = 'text';\n\n\t/**\n\t * Defines the value of the input.\n\t */\n\t@Prop({ mutable: true }) public _value?: string;\n\n\t@State() public state: States = {\n\t\t_autoComplete: 'off',\n\t\t_currentLength: 0,\n\t\t_hasValue: false,\n\t\t_hideError: false,\n\t\t_id: `id-${nonce()}`,\n\t\t_label: '…', // ⚠ required\n\t\t_suggestions: [],\n\t\t_type: 'text',\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new InputTextController(this, 'text', 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?: AlertPropType): void {\n\t\tvalidateAlert(this, 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('_hasCounter')\n\tpublic validateHasCounter(value?: boolean): void {\n\t\tthis.controller.validateHasCounter(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?: SuggestionsPropType): void {\n\t\tthis.validateSuggestions(value);\n\t}\n\n\t@Watch('_maxLength')\n\tpublic validateMaxLength(value?: number): void {\n\t\tthis.controller.validateMaxLength(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('_pattern')\n\tpublic validatePattern(value?: string): void {\n\t\tthis.controller.validatePattern(value);\n\t}\n\n\t@Watch('_placeholder')\n\tpublic validatePlaceholder(value?: string): void {\n\t\tthis.controller.validatePlaceholder(value);\n\t}\n\n\t@Watch('_readOnly')\n\tpublic validateReadOnly(value?: boolean): void {\n\t\tthis.controller.validateReadOnly(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/**\n\t * @deprecated\n\t */\n\t@Watch('_size')\n\tpublic validateSize(value?: number): void {\n\t\tthis.controller.validateSize(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('_smartButton')\n\tpublic validateSmartButton(value?: ButtonProps | string): void {\n\t\tthis.controller.validateSmartButton(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('_type')\n\tpublic validateType(value?: InputTextType): void {\n\t\tthis.controller.validateType(value);\n\t}\n\n\t@Watch('_value')\n\tpublic validateValue(value?: string): 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.oldValue = this._value;\n\t\tthis.controller.componentWillLoad();\n\n\t\tthis.state._hasValue = !!this.state._value;\n\t\tthis.controller.addValueChangeListener((v) => (this.state._hasValue = !!v));\n\t}\n\n\tpublic disconnectedCallback(): void {\n\t\tthis.ref?.removeEventListener('search', this.onChange);\n\t}\n}\n"],"mappings":";;;4sBAeO,MAAMA,EAAgB,CAACC,EAAsCC,KACnEC,EAAaF,EAAW,SAAUC,EAAM,EChBzC,MAAME,EAAkB,wiEACxB,MAAAC,EAAeD,ECuBfE,EAAY,uD,MAYCC,EAAY,MA+BjB,MAAAC,GACN,MAAMC,gBAAEA,GAAoBC,EAAgBC,KAAKC,OACjD,MAAMC,EAAiBC,MAAMC,QAAQJ,KAAKC,MAAMI,eAAiBL,KAAKC,MAAMI,aAAaC,OAAS,EAClG,MAAMC,EAAgBC,EAAeR,KAAKC,MAAMQ,QAEhD,OACCC,EAACC,EAAI,CAAAC,IAAA,2CACJC,MAAO,CACN,iBAAkB,KAClB,YAAab,KAAKC,MAAMa,YAGzBJ,EAAA,aAAAE,IAAA,2CACCC,MAAO,CACN,CAACb,KAAKC,MAAMc,OAAQ,KACpB,eAAgBf,KAAKC,MAAMe,YAE5BC,eAAgBjB,KAAKC,MAAMgB,eAC3BC,UAAWlB,KAAKC,MAAMiB,UACtBC,OAAQnB,KAAKC,MAAMkB,OACnBC,WAAYpB,KAAKC,MAAMmB,WACvBC,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KAAKkE,WAAWyC,aAAapH,E,CAIvB,mBAAA4G,CAAoB5G,GAC1BS,KAAKkE,WAAWiC,oBAAoB5G,E,CAI9B,mBAAAqH,CAAoBrH,GAC1BS,KAAKkE,WAAW0C,oBAAoBrH,E,CAI9B,2BAAAsH,CAA4BtH,GAClCS,KAAKkE,WAAW2C,4BAA4BtH,E,CAItC,gBAAAuH,CAAiBvH,GACvBS,KAAKkE,WAAW4C,iBAAiBvH,E,CAI3B,eAAAwH,CAAgBxH,GACtBS,KAAKkE,WAAW6C,gBAAgBxH,E,CAI1B,YAAAyH,CAAazH,GACnBS,KAAKkE,WAAW8C,aAAazH,E,CAIvB,aAAA0H,CAAc1H,GACpBS,KAAKkE,WAAW+C,cAAc1H,E,CAGxB,iBAAA2H,GACNlH,KAAKmH,OAASnH,KAAKmH,SAAW,KAC9BnH,KAAK8B,SAAW9B,KAAK8B,WAAa,KAClC9B,KAAKkF,SAAWlF,KAAKiE,OACrBjE,KAAKkE,WAAWgD,oBAEhBlH,KAAKC,MAAMa,YAAcd,KAAKC,MAAMgE,OACpCjE,KAAKkE,WAAWkD,wBAAwBC,GAAOrH,KAAKC,MAAMa,YAAcuG,G,CAGlE,oBAAA5C,G,OACNzC,EAAAhC,KAAKiC,OAAG,MAAAD,SAAA,SAAAA,EAAEsF,oBAAoB,SAAUtH,KAAK2E,S"}
@@ -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-cf7b0813.js";import{a as o}from"./i18n-3701fda5.js";import{h as a,s as l}from"./reuse-d79ab469.js";import{F as n}from"./form-field-msg-4920e946.js";import"./index-cfc376ee.js";import"./index-c88c7ecf.js";import"./dev.utils-3d1ba6ea.js";import"./a11y.tipps-90beea3f.js";const d=class{constructor(t){i(this,t),this.slotName="input",this.catchInputSlot=t=>{a(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,a,h,r,d,_,c,u;const p=!this._readOnly&&"string"==typeof this._error&&this._error.length>0&&!0===this._touched,b=l(this._label),g="string"==typeof this._hint&&this._hint.length>0,m=!b&&this._hideLabel;return t(e,{key:"00309cc52c4174d881725fad556e0d2e51fdacf4",class:{disabled:!0===this._disabled,error:!0===p,"read-only":!0===this._readOnly,required:!0===this._required,touched:!0===this._touched,"hidden-error":!0===this._hideError}},t("label",{key:"64833944c9a10261e8d3ab97638a25c61ab532ce",class:"input-label",id:m?void 0:`${this._id}-label`,hidden:m,htmlFor:this._id},t("span",{key:"a52a31e30c528dfc6f9822184161017f10017e02"},t("slot",{key:"077f57b5fb6b00756d6a2b8e9559c0921e2af9ad",name:"label"}))),g&&t("span",{class:"hint",id:`${this._id}-hint`},this._hint),t("div",{key:"41890a631d116ffb5223c5686c595c81b24e3b8b",class:{input:!0,"icon-left":"object"==typeof(null===(i=this.getIconsProp())||void 0===i?void 0:i.left),"icon-right":"object"==typeof(null===(a=this.getIconsProp())||void 0===a?void 0:a.right)}},(null===(h=this.getIconsProp())||void 0===h?void 0:h.left)&&t("kol-icon",{_ariaLabel:"",_icons:(null===(r=this.getIconsProp())||void 0===r?void 0:r.left).icon,style:this.getIconStyles(null===(d=this.getIconsProp())||void 0===d?void 0:d.left)}),t("div",{key:"b6f8ec87d4f056f25fc725de1e7144929b5aaa0e",ref:this.catchInputSlot,id:this.slotName,class:"input-slot"}),"object"==typeof this._smartButton&&null!==this._smartButton&&t("kol-button-wc",{_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===(_=this.getIconsProp())||void 0===_?void 0:_.right)&&t("kol-icon",{_ariaLabel:"",_icons:(null===(c=this.getIconsProp())||void 0===c?void 0:c.right).icon,style:this.getIconStyles(null===(u=this.getIconsProp())||void 0===u?void 0:u.right)})),m&&t("kol-tooltip-wc",{"aria-hidden":"true",class:"input-tooltip",_align:this._tooltipAlign,_id:this._hideLabel?`${this._id}-label`:void 0,_label:this._label}),p&&t(n,{_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":o("kol-of"),role:"img"},"/"),this._maxLength)," ",t("span",null,o("kol-characters"))))}get host(){return h(this)}};export{d as kol_input};
4
+ import{r as i,h as t,F as s,H as e,g as h}from"./index-7cc6aa47.js";import{t as a}from"./i18n-ad947f60.js";import{h as l,s as o}from"./reuse-d79ab469.js";import{F as d}from"./form-field-msg-1b112ab3.js";import"./i18n-fddf0324.js";const n=class{constructor(t){i(this,t),this.slotName="input",this.catchInputSlot=t=>{l(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,l,r,n,_,c,u;const p=!this._readOnly&&"string"==typeof this._error&&this._error.length>0&&!0===this._touched,b=o(this._label),g="string"==typeof this._hint&&this._hint.length>0,m=!b&&this._hideLabel;return t(e,{key:"22d232e25a2e229769a1441607a0cbb201227990",class:{"kol-input":!0,disabled:!0===this._disabled,error:!0===p,"read-only":!0===this._readOnly,required:!0===this._required,touched:!0===this._touched,"hidden-error":!0===this._hideError}},t("label",{key:"c174eef506375278465decebbc1034343ecefa0b",class:"input-label",id:m?void 0:`${this._id}-label`,hidden:m,htmlFor:this._id},t("span",{key:"b57769f3d54229ad53ba97194358ed369e7c82e7"},t("slot",{key:"f341fda78c8b687bae5416632c9cceaf3374e55e",name:"label"}))),g&&t("span",{class:"hint",id:`${this._id}-hint`},this._hint),t("div",{key:"a6cad233c07fd1acb4dd1d34d9b677dd3f5b56df",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===(l=this.getIconsProp())||void 0===l?void 0:l.left)&&t("kol-icon",{_ariaLabel:"",_icons:(null===(r=this.getIconsProp())||void 0===r?void 0:r.left).icon,style:this.getIconStyles(null===(n=this.getIconsProp())||void 0===n?void 0:n.left)}),t("div",{key:"fead20560cdf0ac0e987f29576caad90ac329f85",ref:this.catchInputSlot,id:this.slotName,class:"input-slot"}),"object"==typeof this._smartButton&&null!==this._smartButton&&t("kol-button-wc",{_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===(_=this.getIconsProp())||void 0===_?void 0:_.right)&&t("kol-icon",{_ariaLabel:"",_icons:(null===(c=this.getIconsProp())||void 0===c?void 0:c.right).icon,style:this.getIconStyles(null===(u=this.getIconsProp())||void 0===u?void 0:u.right)})),m&&t("kol-tooltip-wc",{"aria-hidden":"true",class:"input-tooltip",_align:this._tooltipAlign,_id:this._hideLabel?`${this._id}-label`:void 0,_label:this._label}),p&&t(d,{_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{n as kol_input};