@public-ui/components 1.7.26-rc.0 → 1.7.26

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 (429) hide show
  1. package/custom-elements.json +1 -1
  2. package/dist/cjs/{a11y.tipps-ac319cb1.js → a11y.tipps-4ae785d7.js} +1 -1
  3. package/dist/cjs/{a11y.tipps-ac319cb1.js.map → a11y.tipps-4ae785d7.js.map} +1 -1
  4. package/dist/cjs/align-fc5d575c.js +4 -0
  5. package/dist/cjs/{align-dc292eb6.js.map → align-fc5d575c.js.map} +1 -1
  6. package/dist/cjs/{alignment-e1eff5d7.js → alignment-2d55435e.js} +1 -1
  7. package/dist/cjs/{alignment-e1eff5d7.js.map → alignment-2d55435e.js.map} +1 -1
  8. package/dist/cjs/{app-globals-477fbf78.js → app-globals-986c5fdb.js} +1 -1
  9. package/dist/cjs/{app-globals-477fbf78.js.map → app-globals-986c5fdb.js.map} +1 -1
  10. package/dist/cjs/aria-current-5b0aca58.js +4 -0
  11. package/dist/cjs/{aria-current-6c51fe5d.js.map → aria-current-5b0aca58.js.map} +1 -1
  12. package/dist/cjs/{associated.controller-2e4d679a.js → associated.controller-f6b5798a.js} +1 -1
  13. package/dist/cjs/{associated.controller-2e4d679a.js.map → associated.controller-f6b5798a.js.map} +1 -1
  14. package/dist/cjs/{color-51369404.js → color-6e45f8dd.js} +1 -1
  15. package/dist/cjs/{color-51369404.js.map → color-6e45f8dd.js.map} +1 -1
  16. package/dist/cjs/{controller-034cdaf7.js → controller-2441e323.js} +1 -1
  17. package/dist/cjs/{controller-034cdaf7.js.map → controller-2441e323.js.map} +1 -1
  18. package/dist/cjs/{controller-9eab6a84.js → controller-5b411477.js} +1 -1
  19. package/dist/cjs/{controller-9eab6a84.js.map → controller-5b411477.js.map} +1 -1
  20. package/dist/cjs/{controller-f4b667a9.js → controller-7633de1c.js} +1 -1
  21. package/dist/cjs/{controller-f4b667a9.js.map → controller-7633de1c.js.map} +1 -1
  22. package/dist/cjs/{controller-b2899f87.js → controller-92716bdd.js} +1 -1
  23. package/dist/cjs/{controller-b2899f87.js.map → controller-92716bdd.js.map} +1 -1
  24. package/dist/cjs/{controller-41ca30f1.js → controller-bc329ea2.js} +1 -1
  25. package/dist/cjs/{controller-41ca30f1.js.map → controller-bc329ea2.js.map} +1 -1
  26. package/dist/cjs/{controller-icon-dea2bd07.js → controller-icon-63e1e93f.js} +1 -1
  27. package/dist/cjs/{controller-icon-dea2bd07.js.map → controller-icon-63e1e93f.js.map} +1 -1
  28. package/dist/cjs/{custom-class-1fc11cd5.js → custom-class-87f64042.js} +1 -1
  29. package/dist/cjs/{custom-class-1fc11cd5.js.map → custom-class-87f64042.js.map} +1 -1
  30. package/dist/cjs/{dev.utils-367e7d4b.js → dev.utils-5faf714c.js} +1 -1
  31. package/dist/cjs/{dev.utils-367e7d4b.js.map → dev.utils-5faf714c.js.map} +1 -1
  32. package/dist/cjs/{devtools-34e83818.js → devtools-14399f36.js} +1 -1
  33. package/dist/cjs/{devtools-34e83818.js.map → devtools-14399f36.js.map} +1 -1
  34. package/dist/cjs/{form-field-msg-a48ee272.js → form-field-msg-d9fc194b.js} +1 -1
  35. package/dist/cjs/{form-field-msg-a48ee272.js.map → form-field-msg-d9fc194b.js.map} +1 -1
  36. package/dist/cjs/has-closer-0a160b6f.js +4 -0
  37. package/dist/cjs/{has-closer-9c9a06ba.js.map → has-closer-0a160b6f.js.map} +1 -1
  38. package/dist/cjs/hide-label-42b34318.js +4 -0
  39. package/dist/cjs/{hide-label-86f9ed10.js.map → hide-label-42b34318.js.map} +1 -1
  40. package/dist/cjs/{icons-2395d59e.js → icons-89842967.js} +1 -1
  41. package/dist/cjs/{icons-2395d59e.js.map → icons-89842967.js.map} +1 -1
  42. package/dist/cjs/image-source-cd3aa3ea.js +4 -0
  43. package/dist/cjs/{image-source-a6ab410d.js.map → image-source-cd3aa3ea.js.map} +1 -1
  44. package/dist/cjs/index-63c75220.js +4 -0
  45. package/dist/cjs/index-63c75220.js.map +1 -0
  46. package/dist/cjs/index.cjs.js +1 -1
  47. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  48. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  49. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  50. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  51. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  53. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-button-group-wc.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-button-group.cjs.entry.js +1 -1
  57. package/dist/cjs/kol-button-link-text-switch.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  59. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-heading-wc.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-icon-font-awesome.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-icon-icofont.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-indented-text.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-input-adapter-leanup.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  73. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-input-radio-group.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-link-group.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-logo.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-span-wc.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-symbol.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-table.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-toast.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  109. package/dist/cjs/kolibri.cjs.js +1 -1
  110. package/dist/cjs/{label-bae57b97.js → label-8b15527b.js} +1 -1
  111. package/dist/cjs/{label-bae57b97.js.map → label-8b15527b.js.map} +1 -1
  112. package/dist/cjs/loader.cjs.js +1 -1
  113. package/dist/cjs/open-9b0ed34d.js +4 -0
  114. package/dist/cjs/{open-ac8060db.js.map → open-9b0ed34d.js.map} +1 -1
  115. package/dist/cjs/{prop.validators-9a139d6f.js → prop.validators-4567d14f.js} +1 -1
  116. package/dist/cjs/{prop.validators-9a139d6f.js.map → prop.validators-4567d14f.js.map} +1 -1
  117. package/dist/cjs/rows-b2e58b57.js +4 -0
  118. package/dist/cjs/{rows-f46f7726.js.map → rows-b2e58b57.js.map} +1 -1
  119. package/dist/cjs/show-63f7eade.js +4 -0
  120. package/dist/cjs/{show-1e9c8bd6.js.map → show-63f7eade.js.map} +1 -1
  121. package/dist/cjs/{suggestions-2f5687f3.js → suggestions-377b0d47.js} +1 -1
  122. package/dist/cjs/{suggestions-2f5687f3.js.map → suggestions-377b0d47.js.map} +1 -1
  123. package/dist/cjs/{tab-index-7ca67432.js → tab-index-1f28e231.js} +1 -1
  124. package/dist/cjs/{tab-index-7ca67432.js.map → tab-index-1f28e231.js.map} +1 -1
  125. package/dist/cjs/{tooltip-align-adca54c8.js → tooltip-align-0dcf808d.js} +1 -1
  126. package/dist/cjs/{tooltip-align-adca54c8.js.map → tooltip-align-0dcf808d.js.map} +1 -1
  127. package/dist/cjs/{unique-nav-labels-0b87015c.js → unique-nav-labels-c1f57ba3.js} +1 -1
  128. package/dist/cjs/{unique-nav-labels-0b87015c.js.map → unique-nav-labels-c1f57ba3.js.map} +1 -1
  129. package/dist/cjs/validation-c0e13cde.js +4 -0
  130. package/dist/cjs/{validation-44032d3f.js.map → validation-c0e13cde.js.map} +1 -1
  131. package/dist/cjs/{validation-03011e06.js → validation-eb54ea01.js} +1 -1
  132. package/dist/cjs/{validation-03011e06.js.map → validation-eb54ea01.js.map} +1 -1
  133. package/dist/esm/{a11y.tipps-abdda64e.js → a11y.tipps-902d8cd2.js} +1 -1
  134. package/dist/esm/{a11y.tipps-abdda64e.js.map → a11y.tipps-902d8cd2.js.map} +1 -1
  135. package/dist/esm/{align-589e82f2.js → align-fc0408bf.js} +1 -1
  136. package/dist/esm/{align-589e82f2.js.map → align-fc0408bf.js.map} +1 -1
  137. package/dist/esm/{alignment-0c7bb42d.js → alignment-6e2e6884.js} +1 -1
  138. package/dist/esm/{alignment-0c7bb42d.js.map → alignment-6e2e6884.js.map} +1 -1
  139. package/dist/esm/app-globals-fd0732d1.js +4 -0
  140. package/dist/esm/{app-globals-f2fe0d13.js.map → app-globals-fd0732d1.js.map} +1 -1
  141. package/dist/esm/{aria-current-689056d6.js → aria-current-e36af2bd.js} +1 -1
  142. package/dist/esm/{aria-current-689056d6.js.map → aria-current-e36af2bd.js.map} +1 -1
  143. package/dist/esm/{associated.controller-1563a241.js → associated.controller-907cc2c3.js} +1 -1
  144. package/dist/esm/{associated.controller-1563a241.js.map → associated.controller-907cc2c3.js.map} +1 -1
  145. package/dist/esm/{color-11c3b58c.js → color-dc42a3f2.js} +1 -1
  146. package/dist/esm/{color-11c3b58c.js.map → color-dc42a3f2.js.map} +1 -1
  147. package/dist/esm/{controller-b99073ac.js → controller-36f45b79.js} +1 -1
  148. package/dist/esm/{controller-b99073ac.js.map → controller-36f45b79.js.map} +1 -1
  149. package/dist/esm/{controller-6408beba.js → controller-7ac8de52.js} +1 -1
  150. package/dist/esm/{controller-6408beba.js.map → controller-7ac8de52.js.map} +1 -1
  151. package/dist/esm/{controller-c9ab2c5d.js → controller-80517d56.js} +1 -1
  152. package/dist/esm/{controller-c9ab2c5d.js.map → controller-80517d56.js.map} +1 -1
  153. package/dist/esm/{controller-da423769.js → controller-efdc9751.js} +1 -1
  154. package/dist/esm/{controller-da423769.js.map → controller-efdc9751.js.map} +1 -1
  155. package/dist/esm/{controller-83aa0900.js → controller-fda7f4bb.js} +1 -1
  156. package/dist/esm/{controller-83aa0900.js.map → controller-fda7f4bb.js.map} +1 -1
  157. package/dist/esm/{controller-icon-59fd3f70.js → controller-icon-4b6a735e.js} +1 -1
  158. package/dist/esm/{controller-icon-59fd3f70.js.map → controller-icon-4b6a735e.js.map} +1 -1
  159. package/dist/esm/{custom-class-52819221.js → custom-class-e2426fbe.js} +1 -1
  160. package/dist/esm/{custom-class-52819221.js.map → custom-class-e2426fbe.js.map} +1 -1
  161. package/dist/esm/{dev.utils-6d3dcc85.js → dev.utils-10b37a09.js} +1 -1
  162. package/dist/esm/{dev.utils-6d3dcc85.js.map → dev.utils-10b37a09.js.map} +1 -1
  163. package/dist/esm/{devtools-aef412fb.js → devtools-686b53c2.js} +1 -1
  164. package/dist/esm/{devtools-aef412fb.js.map → devtools-686b53c2.js.map} +1 -1
  165. package/dist/esm/{form-field-msg-c19f3f0c.js → form-field-msg-9bc06031.js} +1 -1
  166. package/dist/esm/{form-field-msg-c19f3f0c.js.map → form-field-msg-9bc06031.js.map} +1 -1
  167. package/dist/esm/{has-closer-8701c5e0.js → has-closer-f323841d.js} +1 -1
  168. package/dist/esm/{has-closer-8701c5e0.js.map → has-closer-f323841d.js.map} +1 -1
  169. package/dist/esm/{hide-label-db462624.js → hide-label-6ecf654c.js} +1 -1
  170. package/dist/esm/{hide-label-db462624.js.map → hide-label-6ecf654c.js.map} +1 -1
  171. package/dist/esm/{icons-2a4bd415.js → icons-fd7e7c70.js} +1 -1
  172. package/dist/esm/{icons-2a4bd415.js.map → icons-fd7e7c70.js.map} +1 -1
  173. package/dist/esm/{image-source-d1e9147f.js → image-source-db7acde1.js} +1 -1
  174. package/dist/esm/{image-source-d1e9147f.js.map → image-source-db7acde1.js.map} +1 -1
  175. package/dist/esm/index-a8be3649.js +4 -0
  176. package/dist/esm/index-a8be3649.js.map +1 -0
  177. package/dist/esm/index.js +1 -1
  178. package/dist/esm/kol-abbr.entry.js +1 -1
  179. package/dist/esm/kol-accordion.entry.js +1 -1
  180. package/dist/esm/kol-alert-wc.entry.js +1 -1
  181. package/dist/esm/kol-alert.entry.js +1 -1
  182. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  183. package/dist/esm/kol-avatar.entry.js +1 -1
  184. package/dist/esm/kol-badge.entry.js +1 -1
  185. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  186. package/dist/esm/kol-button-group-wc.entry.js +1 -1
  187. package/dist/esm/kol-button-group.entry.js +1 -1
  188. package/dist/esm/kol-button-link-text-switch.entry.js +1 -1
  189. package/dist/esm/kol-button-link.entry.js +1 -1
  190. package/dist/esm/kol-button-wc.entry.js +1 -1
  191. package/dist/esm/kol-button.entry.js +1 -1
  192. package/dist/esm/kol-card.entry.js +1 -1
  193. package/dist/esm/kol-details.entry.js +1 -1
  194. package/dist/esm/kol-form.entry.js +1 -1
  195. package/dist/esm/kol-heading-wc.entry.js +1 -1
  196. package/dist/esm/kol-heading.entry.js +1 -1
  197. package/dist/esm/kol-icon-font-awesome.entry.js +1 -1
  198. package/dist/esm/kol-icon-icofont.entry.js +1 -1
  199. package/dist/esm/kol-icon.entry.js +1 -1
  200. package/dist/esm/kol-image.entry.js +1 -1
  201. package/dist/esm/kol-indented-text.entry.js +1 -1
  202. package/dist/esm/kol-input-adapter-leanup.entry.js +1 -1
  203. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  204. package/dist/esm/kol-input-color.entry.js +1 -1
  205. package/dist/esm/kol-input-date.entry.js +1 -1
  206. package/dist/esm/kol-input-email.entry.js +1 -1
  207. package/dist/esm/kol-input-file.entry.js +1 -1
  208. package/dist/esm/kol-input-number.entry.js +1 -1
  209. package/dist/esm/kol-input-password.entry.js +1 -1
  210. package/dist/esm/kol-input-radio-group.entry.js +1 -1
  211. package/dist/esm/kol-input-radio.entry.js +1 -1
  212. package/dist/esm/kol-input-range.entry.js +1 -1
  213. package/dist/esm/kol-input-text.entry.js +1 -1
  214. package/dist/esm/kol-input.entry.js +1 -1
  215. package/dist/esm/kol-kolibri.entry.js +1 -1
  216. package/dist/esm/kol-link-button.entry.js +1 -1
  217. package/dist/esm/kol-link-group.entry.js +1 -1
  218. package/dist/esm/kol-link-wc.entry.js +1 -1
  219. package/dist/esm/kol-link.entry.js +1 -1
  220. package/dist/esm/kol-logo.entry.js +1 -1
  221. package/dist/esm/kol-modal.entry.js +1 -1
  222. package/dist/esm/kol-nav.entry.js +1 -1
  223. package/dist/esm/kol-pagination.entry.js +1 -1
  224. package/dist/esm/kol-popover-wc.entry.js +1 -1
  225. package/dist/esm/kol-progress.entry.js +1 -1
  226. package/dist/esm/kol-quote.entry.js +1 -1
  227. package/dist/esm/kol-select.entry.js +1 -1
  228. package/dist/esm/kol-skip-nav.entry.js +1 -1
  229. package/dist/esm/kol-span-wc.entry.js +1 -1
  230. package/dist/esm/kol-spin.entry.js +1 -1
  231. package/dist/esm/kol-split-button.entry.js +1 -1
  232. package/dist/esm/kol-symbol.entry.js +1 -1
  233. package/dist/esm/kol-table.entry.js +1 -1
  234. package/dist/esm/kol-tabs.entry.js +1 -1
  235. package/dist/esm/kol-textarea.entry.js +1 -1
  236. package/dist/esm/kol-toast-container.entry.js +1 -1
  237. package/dist/esm/kol-toast.entry.js +1 -1
  238. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  239. package/dist/esm/kol-version.entry.js +1 -1
  240. package/dist/esm/kolibri.js +1 -1
  241. package/dist/esm/{label-4f2b5f64.js → label-f00fb8dd.js} +1 -1
  242. package/dist/esm/{label-4f2b5f64.js.map → label-f00fb8dd.js.map} +1 -1
  243. package/dist/esm/loader.js +1 -1
  244. package/dist/esm/{open-0082c7d2.js → open-68ffed95.js} +1 -1
  245. package/dist/esm/{open-0082c7d2.js.map → open-68ffed95.js.map} +1 -1
  246. package/dist/esm/{prop.validators-3121bc1b.js → prop.validators-199a9714.js} +1 -1
  247. package/dist/esm/{prop.validators-3121bc1b.js.map → prop.validators-199a9714.js.map} +1 -1
  248. package/dist/esm/{rows-8db63b3d.js → rows-a33c5274.js} +1 -1
  249. package/dist/esm/{rows-8db63b3d.js.map → rows-a33c5274.js.map} +1 -1
  250. package/dist/esm/{show-1a47d1fa.js → show-df2d2b22.js} +1 -1
  251. package/dist/esm/{show-1a47d1fa.js.map → show-df2d2b22.js.map} +1 -1
  252. package/dist/esm/{suggestions-30782fba.js → suggestions-122d6cf1.js} +1 -1
  253. package/dist/esm/{suggestions-30782fba.js.map → suggestions-122d6cf1.js.map} +1 -1
  254. package/dist/esm/{tab-index-c358b0d5.js → tab-index-184396ee.js} +1 -1
  255. package/dist/esm/{tab-index-c358b0d5.js.map → tab-index-184396ee.js.map} +1 -1
  256. package/dist/esm/{tooltip-align-bf54fc1c.js → tooltip-align-1bddfc48.js} +1 -1
  257. package/dist/esm/{tooltip-align-bf54fc1c.js.map → tooltip-align-1bddfc48.js.map} +1 -1
  258. package/dist/esm/{unique-nav-labels-d9453277.js → unique-nav-labels-3495dec8.js} +1 -1
  259. package/dist/esm/{unique-nav-labels-d9453277.js.map → unique-nav-labels-3495dec8.js.map} +1 -1
  260. package/dist/esm/{validation-72ef8837.js → validation-6ca99b6c.js} +1 -1
  261. package/dist/esm/{validation-72ef8837.js.map → validation-6ca99b6c.js.map} +1 -1
  262. package/dist/esm/validation-d3e5f8c1.js +4 -0
  263. package/dist/esm/{validation-5432f446.js.map → validation-d3e5f8c1.js.map} +1 -1
  264. package/dist/kolibri/{a11y.tipps-abdda64e.js → a11y.tipps-902d8cd2.js} +1 -1
  265. package/dist/kolibri/align-fc0408bf.js +4 -0
  266. package/dist/kolibri/alignment-6e2e6884.js +4 -0
  267. package/dist/kolibri/app-globals-fd0732d1.js +4 -0
  268. package/dist/kolibri/{aria-current-689056d6.js → aria-current-e36af2bd.js} +1 -1
  269. package/dist/kolibri/{associated.controller-1563a241.js → associated.controller-907cc2c3.js} +1 -1
  270. package/dist/kolibri/{color-11c3b58c.js → color-dc42a3f2.js} +1 -1
  271. package/dist/kolibri/{controller-b99073ac.js → controller-36f45b79.js} +1 -1
  272. package/dist/kolibri/{controller-6408beba.js → controller-7ac8de52.js} +1 -1
  273. package/dist/kolibri/{controller-c9ab2c5d.js → controller-80517d56.js} +1 -1
  274. package/dist/kolibri/{controller-da423769.js → controller-efdc9751.js} +1 -1
  275. package/dist/kolibri/{controller-83aa0900.js → controller-fda7f4bb.js} +1 -1
  276. package/dist/kolibri/controller-icon-4b6a735e.js +4 -0
  277. package/dist/kolibri/{custom-class-52819221.js → custom-class-e2426fbe.js} +1 -1
  278. package/dist/kolibri/{dev.utils-6d3dcc85.js → dev.utils-10b37a09.js} +1 -1
  279. package/dist/kolibri/{devtools-aef412fb.js → devtools-686b53c2.js} +1 -1
  280. package/dist/kolibri/form-field-msg-9bc06031.js +4 -0
  281. package/dist/kolibri/has-closer-f323841d.js +4 -0
  282. package/dist/kolibri/{has-closer-8701c5e0.js.map → has-closer-f323841d.js.map} +1 -1
  283. package/dist/kolibri/hide-label-6ecf654c.js +4 -0
  284. package/dist/kolibri/icons-fd7e7c70.js +4 -0
  285. package/dist/kolibri/image-source-db7acde1.js +4 -0
  286. package/dist/kolibri/index-a8be3649.js +5 -0
  287. package/dist/kolibri/index-a8be3649.js.map +1 -0
  288. package/dist/kolibri/index.esm.js +1 -1
  289. package/dist/kolibri/kol-abbr.entry.js +1 -1
  290. package/dist/kolibri/kol-accordion.entry.js +1 -1
  291. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  292. package/dist/kolibri/kol-alert.entry.js +1 -1
  293. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  294. package/dist/kolibri/kol-avatar.entry.js +1 -1
  295. package/dist/kolibri/kol-badge.entry.js +1 -1
  296. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  297. package/dist/kolibri/kol-button-group-wc.entry.js +1 -1
  298. package/dist/kolibri/kol-button-group.entry.js +1 -1
  299. package/dist/kolibri/kol-button-link-text-switch.entry.js +1 -1
  300. package/dist/kolibri/kol-button-link.entry.js +1 -1
  301. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  302. package/dist/kolibri/kol-button.entry.js +1 -1
  303. package/dist/kolibri/kol-card.entry.js +1 -1
  304. package/dist/kolibri/kol-details.entry.js +1 -1
  305. package/dist/kolibri/kol-form.entry.js +1 -1
  306. package/dist/kolibri/kol-heading-wc.entry.js +1 -1
  307. package/dist/kolibri/kol-heading.entry.js +1 -1
  308. package/dist/kolibri/kol-icon-font-awesome.entry.js +1 -1
  309. package/dist/kolibri/kol-icon-icofont.entry.js +1 -1
  310. package/dist/kolibri/kol-icon.entry.js +1 -1
  311. package/dist/kolibri/kol-image.entry.js +1 -1
  312. package/dist/kolibri/kol-indented-text.entry.js +1 -1
  313. package/dist/kolibri/kol-input-adapter-leanup.entry.js +1 -1
  314. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  315. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  316. package/dist/kolibri/kol-input-color.entry.js +1 -1
  317. package/dist/kolibri/kol-input-date.entry.js +1 -1
  318. package/dist/kolibri/kol-input-email.entry.js +1 -1
  319. package/dist/kolibri/kol-input-file.entry.js +1 -1
  320. package/dist/kolibri/kol-input-number.entry.js +1 -1
  321. package/dist/kolibri/kol-input-password.entry.js +1 -1
  322. package/dist/kolibri/kol-input-radio-group.entry.js +1 -1
  323. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  324. package/dist/kolibri/kol-input-range.entry.js +1 -1
  325. package/dist/kolibri/kol-input-text.entry.js +1 -1
  326. package/dist/kolibri/kol-input.entry.js +1 -1
  327. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  328. package/dist/kolibri/kol-link-button.entry.js +1 -1
  329. package/dist/kolibri/kol-link-group.entry.js +1 -1
  330. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  331. package/dist/kolibri/kol-link.entry.js +1 -1
  332. package/dist/kolibri/kol-logo.entry.js +1 -1
  333. package/dist/kolibri/kol-modal.entry.js +1 -1
  334. package/dist/kolibri/kol-nav.entry.js +1 -1
  335. package/dist/kolibri/kol-pagination.entry.js +1 -1
  336. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  337. package/dist/kolibri/kol-progress.entry.js +1 -1
  338. package/dist/kolibri/kol-quote.entry.js +1 -1
  339. package/dist/kolibri/kol-select.entry.js +1 -1
  340. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  341. package/dist/kolibri/kol-span-wc.entry.js +1 -1
  342. package/dist/kolibri/kol-spin.entry.js +1 -1
  343. package/dist/kolibri/kol-split-button.entry.js +1 -1
  344. package/dist/kolibri/kol-symbol.entry.js +1 -1
  345. package/dist/kolibri/kol-symbol.entry.js.map +1 -1
  346. package/dist/kolibri/kol-table.entry.js +1 -1
  347. package/dist/kolibri/kol-tabs.entry.js +1 -1
  348. package/dist/kolibri/kol-textarea.entry.js +1 -1
  349. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  350. package/dist/kolibri/kol-toast.entry.js +1 -1
  351. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  352. package/dist/kolibri/kol-version.entry.js +1 -1
  353. package/dist/kolibri/kolibri.esm.js +1 -1
  354. package/dist/kolibri/{label-4f2b5f64.js → label-f00fb8dd.js} +1 -1
  355. package/dist/kolibri/open-68ffed95.js +4 -0
  356. package/dist/kolibri/{prop.validators-3121bc1b.js → prop.validators-199a9714.js} +1 -1
  357. package/dist/kolibri/rows-a33c5274.js +4 -0
  358. package/dist/kolibri/show-df2d2b22.js +4 -0
  359. package/dist/kolibri/{suggestions-30782fba.js → suggestions-122d6cf1.js} +1 -1
  360. package/dist/kolibri/tab-index-184396ee.js +4 -0
  361. package/dist/kolibri/{tab-index-c358b0d5.js.map → tab-index-184396ee.js.map} +1 -1
  362. package/dist/kolibri/tooltip-align-1bddfc48.js +4 -0
  363. package/dist/kolibri/{unique-nav-labels-d9453277.js → unique-nav-labels-3495dec8.js} +1 -1
  364. package/dist/kolibri/validation-6ca99b6c.js +4 -0
  365. package/dist/kolibri/validation-d3e5f8c1.js +4 -0
  366. package/package.json +1 -1
  367. package/dist/cjs/align-dc292eb6.js +0 -4
  368. package/dist/cjs/aria-current-6c51fe5d.js +0 -4
  369. package/dist/cjs/has-closer-9c9a06ba.js +0 -4
  370. package/dist/cjs/hide-label-86f9ed10.js +0 -4
  371. package/dist/cjs/image-source-a6ab410d.js +0 -4
  372. package/dist/cjs/index-c58e8b28.js +0 -4
  373. package/dist/cjs/index-c58e8b28.js.map +0 -1
  374. package/dist/cjs/open-ac8060db.js +0 -4
  375. package/dist/cjs/rows-f46f7726.js +0 -4
  376. package/dist/cjs/show-1e9c8bd6.js +0 -4
  377. package/dist/cjs/validation-44032d3f.js +0 -4
  378. package/dist/esm/app-globals-f2fe0d13.js +0 -4
  379. package/dist/esm/index-3e397955.js +0 -4
  380. package/dist/esm/index-3e397955.js.map +0 -1
  381. package/dist/esm/validation-5432f446.js +0 -4
  382. package/dist/kolibri/align-589e82f2.js +0 -4
  383. package/dist/kolibri/alignment-0c7bb42d.js +0 -4
  384. package/dist/kolibri/app-globals-f2fe0d13.js +0 -4
  385. package/dist/kolibri/controller-icon-59fd3f70.js +0 -4
  386. package/dist/kolibri/form-field-msg-c19f3f0c.js +0 -4
  387. package/dist/kolibri/has-closer-8701c5e0.js +0 -4
  388. package/dist/kolibri/hide-label-db462624.js +0 -4
  389. package/dist/kolibri/icons-2a4bd415.js +0 -4
  390. package/dist/kolibri/image-source-d1e9147f.js +0 -4
  391. package/dist/kolibri/index-3e397955.js +0 -5
  392. package/dist/kolibri/index-3e397955.js.map +0 -1
  393. package/dist/kolibri/open-0082c7d2.js +0 -4
  394. package/dist/kolibri/rows-8db63b3d.js +0 -4
  395. package/dist/kolibri/show-1a47d1fa.js +0 -4
  396. package/dist/kolibri/tab-index-c358b0d5.js +0 -4
  397. package/dist/kolibri/tooltip-align-bf54fc1c.js +0 -4
  398. package/dist/kolibri/validation-5432f446.js +0 -4
  399. package/dist/kolibri/validation-72ef8837.js +0 -4
  400. /package/dist/kolibri/{a11y.tipps-abdda64e.js.map → a11y.tipps-902d8cd2.js.map} +0 -0
  401. /package/dist/kolibri/{align-589e82f2.js.map → align-fc0408bf.js.map} +0 -0
  402. /package/dist/kolibri/{alignment-0c7bb42d.js.map → alignment-6e2e6884.js.map} +0 -0
  403. /package/dist/kolibri/{app-globals-f2fe0d13.js.map → app-globals-fd0732d1.js.map} +0 -0
  404. /package/dist/kolibri/{aria-current-689056d6.js.map → aria-current-e36af2bd.js.map} +0 -0
  405. /package/dist/kolibri/{associated.controller-1563a241.js.map → associated.controller-907cc2c3.js.map} +0 -0
  406. /package/dist/kolibri/{color-11c3b58c.js.map → color-dc42a3f2.js.map} +0 -0
  407. /package/dist/kolibri/{controller-b99073ac.js.map → controller-36f45b79.js.map} +0 -0
  408. /package/dist/kolibri/{controller-6408beba.js.map → controller-7ac8de52.js.map} +0 -0
  409. /package/dist/kolibri/{controller-c9ab2c5d.js.map → controller-80517d56.js.map} +0 -0
  410. /package/dist/kolibri/{controller-da423769.js.map → controller-efdc9751.js.map} +0 -0
  411. /package/dist/kolibri/{controller-83aa0900.js.map → controller-fda7f4bb.js.map} +0 -0
  412. /package/dist/kolibri/{controller-icon-59fd3f70.js.map → controller-icon-4b6a735e.js.map} +0 -0
  413. /package/dist/kolibri/{custom-class-52819221.js.map → custom-class-e2426fbe.js.map} +0 -0
  414. /package/dist/kolibri/{dev.utils-6d3dcc85.js.map → dev.utils-10b37a09.js.map} +0 -0
  415. /package/dist/kolibri/{devtools-aef412fb.js.map → devtools-686b53c2.js.map} +0 -0
  416. /package/dist/kolibri/{form-field-msg-c19f3f0c.js.map → form-field-msg-9bc06031.js.map} +0 -0
  417. /package/dist/kolibri/{hide-label-db462624.js.map → hide-label-6ecf654c.js.map} +0 -0
  418. /package/dist/kolibri/{icons-2a4bd415.js.map → icons-fd7e7c70.js.map} +0 -0
  419. /package/dist/kolibri/{image-source-d1e9147f.js.map → image-source-db7acde1.js.map} +0 -0
  420. /package/dist/kolibri/{label-4f2b5f64.js.map → label-f00fb8dd.js.map} +0 -0
  421. /package/dist/kolibri/{open-0082c7d2.js.map → open-68ffed95.js.map} +0 -0
  422. /package/dist/kolibri/{prop.validators-3121bc1b.js.map → prop.validators-199a9714.js.map} +0 -0
  423. /package/dist/kolibri/{rows-8db63b3d.js.map → rows-a33c5274.js.map} +0 -0
  424. /package/dist/kolibri/{show-1a47d1fa.js.map → show-df2d2b22.js.map} +0 -0
  425. /package/dist/kolibri/{suggestions-30782fba.js.map → suggestions-122d6cf1.js.map} +0 -0
  426. /package/dist/kolibri/{tooltip-align-bf54fc1c.js.map → tooltip-align-1bddfc48.js.map} +0 -0
  427. /package/dist/kolibri/{unique-nav-labels-d9453277.js.map → unique-nav-labels-3495dec8.js.map} +0 -0
  428. /package/dist/kolibri/{validation-72ef8837.js.map → validation-6ca99b6c.js.map} +0 -0
  429. /package/dist/kolibri/{validation-5432f446.js.map → validation-d3e5f8c1.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["validateChecked","component","value","watchBoolean","validateIndeterminate","InputCheckboxController","InputCheckboxRadioController","constructor","name","host","super","this","setFormAssociatedCheckboxValue","_checked","setFormAssociatedValue","state","_value","validateIcon","validateIcons","watchValidator","isString","checked","indeterminate","unchecked","Set","hooks","beforePatch","nextValue","nextState","set","Object","assign","_icons","validateType","devHint","validateVariant","validateValue","setState","componentWillLoad","_icon","_indeterminate","_variant","_type","defaultStyleCss","KolInputCheckboxDefaultStyle0","KolInputCheckbox","render","ariaDescribedBy","getRenderStates","hasExpertSlot","showExpertSlot","_label","h","Host","key","class","KolInputTag","checkbox","_hideLabel","undefined","_alert","_disabled","_error","_hideError","_hint","_id","_required","_tooltipAlign","_touched","slot","KolIconTag","ref","catchRef","title","accessKey","_accessKey","length","join","disabled","id","_name","required","tabIndex","_tabIndex","type","controller","onFacade","onInput","onChange","onClick","hostRef","propagateFocus","event","tryToDispatchKoliBriEvent","_a","_on","nonce","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideError","validateHideLabel","validateHint","validateId","validateLabel","validateName","validateOn","validateRequired","validateSyncValueBySelector","validateTabIndex","validateTouched"],"sources":["src/types/props/checked.ts","src/types/props/indeterminate.ts","src/components/input-checkbox/controller.ts","src/components/input-checkbox/style.scss?tag=kol-input-checkbox&mode=default&encapsulation=shadow","src/components/input-checkbox/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../../utils/prop.validators';\n\n/* types */\nexport type CheckedPropType = boolean;\n\n/**\n * Defines whether the checkbox is checked or not. Can be read and written.\n */\nexport type PropChecked = {\n\tchecked: CheckedPropType;\n};\n\n/* validator */\nexport const validateChecked = (component: Generic.Element.Component, value?: CheckedPropType): void => {\n\twatchBoolean(component, '_checked', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../../utils/prop.validators';\n\n/* types */\nexport type IndeterminatePropType = boolean;\n\n/**\n * Puts the checkbox in the indeterminate state, does not change the value of _checked.\n */\nexport type PropIndeterminate = {\n\tindeterminate: IndeterminatePropType;\n};\n\n/* validator */\nexport const validateIndeterminate = (component: Generic.Element.Component, value?: IndeterminatePropType): void => {\n\twatchBoolean(component, '_indeterminate', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { Stringified } from '../../types/common';\nimport { CheckedPropType, validateChecked } from '../../types/props/checked';\nimport { IndeterminatePropType, validateIndeterminate } from '../../types/props/indeterminate';\nimport { StencilUnknown } from '../../types/unknown';\nimport { devHint } from '../../utils/a11y.tipps';\nimport { setState, watchValidator } from '../../utils/prop.validators';\nimport { isString } from '../../utils/validator';\nimport { InputCheckboxRadioController } from '../input-radio/controller';\nimport { InputCheckboxIconsProp, InputCheckboxIconsState, InputCheckboxVariant, Props, Watches } from './types';\n\nexport class InputCheckboxController extends InputCheckboxRadioController 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 readonly setFormAssociatedCheckboxValue = (value: StencilUnknown) => {\n\t\tif (this.component._checked) {\n\t\t\tthis.setFormAssociatedValue(value);\n\t\t} else {\n\t\t\tthis.setFormAssociatedValue(null);\n\t\t}\n\t};\n\n\tpublic validateChecked(value?: CheckedPropType): void {\n\t\tvalidateChecked(this.component, value);\n\t\tthis.setFormAssociatedCheckboxValue(this.component.state._value as StencilUnknown);\n\t}\n\n\tpublic validateIcon(value?: Stringified<InputCheckboxIconsProp>): void {\n\t\tthis.validateIcons(value);\n\t}\n\n\tpublic validateIcons(value?: Stringified<InputCheckboxIconsProp>): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_icons',\n\t\t\t(value): boolean => {\n\t\t\t\treturn typeof value === 'object' && value !== null && (isString(value.checked, 1) || isString(value.indeterminate, 1) || isString(value.unchecked, 1));\n\t\t\t},\n\t\t\tnew Set(['InputCheckboxIcons']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\thooks: {\n\t\t\t\t\tbeforePatch: (nextValue: unknown, nextState: Map<string, unknown>, component: Generic.Element.Component) => {\n\t\t\t\t\t\tnextState.set('_icons', {\n\t\t\t\t\t\t\t...(component.state._icons as InputCheckboxIconsState),\n\t\t\t\t\t\t\t...(nextValue as InputCheckboxIconsProp),\n\t\t\t\t\t\t});\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t}\n\n\tpublic validateIndeterminate(value?: IndeterminatePropType): void {\n\t\tvalidateIndeterminate(this.component, value);\n\t}\n\n\t/**\n\t * @deprecated\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateType(value?: InputCheckboxVariant): void {\n\t\tdevHint(`The \"_type\" prop is deprecated. Use \"_variant\" instead.`);\n\t\tthis.validateVariant(value);\n\t}\n\n\tpublic validateValue(value?: Stringified<StencilUnknown>): void {\n\t\tsetState(this.component, '_value', value);\n\t\tthis.setFormAssociatedCheckboxValue(this.component.state._value as StencilUnknown);\n\t}\n\n\tpublic validateVariant(value?: InputCheckboxVariant): void {\n\t\tif (value === 'checkbox') {\n\t\t\tdevHint(`[KolCheckbox] The \"_variant\" value 'checkbox' is deprecated. Use the new value 'default' instead.`);\n\t\t\tvalue = 'default';\n\t\t}\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_variant',\n\t\t\t(value): boolean => typeof value === 'string' && (value === 'button' || value === 'default' || value === 'switch'),\n\t\t\tnew Set(['String {button, default, switch}']),\n\t\t\tvalue,\n\t\t);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateChecked(this.component._checked);\n\t\tthis.validateIcons(this.component._icons || this.component._icon);\n\t\tthis.validateIndeterminate(this.component._indeterminate);\n\t\tthis.validateValue(this.component._value);\n\t\tthis.validateVariant(this.component._variant || this.component._type);\n\t}\n}\n","@import '../input';\n@import 'common';\n@import 'button';\n@import 'checkbox';\n@import 'switch';\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { InputTypeOnDefault } from '../../types/input/types';\nimport { CheckedPropType } from '../../types/props/checked';\nimport { HideErrorPropType } from '../../types/props/hide-error';\nimport { IdPropType } from '../../types/props/id';\nimport { IndeterminatePropType } from '../../types/props/indeterminate';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { NamePropType } from '../../types/props/name';\nimport { SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\nimport { TooltipAlignPropType } from '../../types/props/tooltip-align';\nimport { StencilUnknown } from '../../types/unknown';\nimport { nonce } from '../../utils/dev.utils';\nimport { tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { propagateFocus, showExpertSlot } from '../../utils/reuse';\nimport { getRenderStates } from '../input/controller';\nimport { InputCheckboxController } from './controller';\nimport { API, InputCheckboxIconsProp, InputCheckboxVariant, States } from './types';\nimport { KolIconTag, KolInputTag } from '../../core/component-names';\n\n/**\n * @slot - Die Beschriftung der Checkbox.\n */\n@Component({\n\ttag: 'kol-input-checkbox',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolInputCheckbox implements API {\n\t@Element() private readonly host?: HTMLKolInputCheckboxElement;\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 } = getRenderStates(this.state);\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\n\t\treturn (\n\t\t\t<Host class=\"kol-input-checkbox\">\n\t\t\t\t<KolInputTag\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tcheckbox: true,\n\t\t\t\t\t\t[this.state._variant]: true,\n\t\t\t\t\t\t'hide-label': !!this.state._hideLabel,\n\t\t\t\t\t\tchecked: this.state._checked,\n\t\t\t\t\t\tindeterminate: this.state._indeterminate,\n\t\t\t\t\t}}\n\t\t\t\t\tdata-role={this.state._variant === 'button' ? 'button' : undefined}\n\t\t\t\t\t_alert={this.state._alert}\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_id={this.state._id}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t\t_required={this.state._required}\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<label slot=\"input\" class=\"checkbox-container\">\n\t\t\t\t\t\t<KolIconTag\n\t\t\t\t\t\t\tclass=\"icon\"\n\t\t\t\t\t\t\t_icons={\n\t\t\t\t\t\t\t\tthis.state._indeterminate ? this.state._icons.indeterminate : this.state._checked ? this.state._icons.checked : this.state._icons.unchecked\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t_label=\"\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={`checkbox-input-element${this.state._variant === 'button' ? ' visually-hidden' : ''}`}\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} // by checkbox?!\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\tchecked={this.state._checked}\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\tindeterminate={this.state._indeterminate}\n\t\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\ttabIndex={this.state._tabIndex}\n\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\tonInput={this.onInput}\n\t\t\t\t\t\t\tonChange={this.onChange}\n\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/>\n\t\t\t\t\t</label>\n\t\t\t\t</KolInputTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: InputCheckboxController;\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 checkbox is checked or not. Can be read and written.\n\t * @TODO: Change type back to `CheckedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _checked?: 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 * 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 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<InputCheckboxIconsProp>;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<InputCheckboxIconsProp>;\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 * Puts the checkbox in the indeterminate state, does not change the value of _checked.\n\t * @TODO: Change type back to `IndeterminatePropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _indeterminate?: boolean;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label?: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the 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 * 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 * Deprecated: Defines which variant should be used for presentation.\n\t *\n\t * @deprecated Verwende stattdessen das Attribute _variant.\n\t */\n\t@Prop() public _type?: InputCheckboxVariant;\n\n\t/**\n\t * Defines the value of the input.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown> = true;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: InputCheckboxVariant; // TODO: = 'default'; in v2 setzen\n\n\t@State() public state: States = {\n\t\t_checked: false,\n\t\t_hideError: false,\n\t\t_icons: {\n\t\t\tchecked: 'codicon codicon-check',\n\t\t\tindeterminate: 'codicon codicon-remove',\n\t\t\tunchecked: 'codicon codicon-add',\n\t\t},\n\t\t_id: `id-${nonce()}`,\n\t\t_indeterminate: false,\n\t\t_label: '…', // ⚠ required\n\t\t_value: true,\n\t\t_variant: 'default',\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new InputCheckboxController(this, 'checkbox', 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('_checked')\n\tpublic validateChecked(value?: CheckedPropType): void {\n\t\tthis.controller.validateChecked(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<InputCheckboxIconsProp>): void {\n\t\tthis.validateIcons(value);\n\t}\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: Stringified<InputCheckboxIconsProp>): 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('_indeterminate')\n\tpublic validateIndeterminate(value?: IndeterminatePropType): void {\n\t\tthis.controller.validateIndeterminate(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('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tthis.controller.validateOn(value);\n\t}\n\n\t@Watch('_required')\n\tpublic validateRequired(value?: boolean): void {\n\t\tthis.controller.validateRequired(value);\n\t}\n\n\t@Watch('_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?: InputCheckboxVariant): void {\n\t\tthis.controller.validateType(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\t@Watch('_variant')\n\tpublic validateVariant(value?: InputCheckboxVariant): void {\n\t\tthis.controller.validateVariant(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\tprivate onInput = (event: Event): void => {\n\t\tthis._checked = !this._checked;\n\t\tthis._indeterminate = false;\n\n\t\tconst value = this._checked ? this.state._value : null;\n\n\t\t// Event handling\n\t\ttryToDispatchKoliBriEvent('input', this.host, value);\n\n\t\t// Callback\n\t\tif (typeof this._on?.onInput === 'function') {\n\t\t\tthis._on.onInput(event, value);\n\t\t}\n\t};\n\n\tprivate onChange = (event: Event): void => {\n\t\tconst value = this._checked ? this.state._value : null;\n\n\t\t// Event handling\n\t\t// stopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('change', this.host, value);\n\n\t\t// Static form handling\n\t\t// this.controller.setFormAssociatedValue(value);\n\t\tthis.controller.setFormAssociatedCheckboxValue(value);\n\n\t\t// Callback\n\t\tif (typeof this._on?.onChange === 'function') {\n\t\t\tthis._on.onChange(event, value);\n\t\t}\n\t};\n}\n"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"names":["validateChecked","component","value","watchBoolean","validateIndeterminate","InputCheckboxController","InputCheckboxRadioController","constructor","name","host","super","this","setFormAssociatedCheckboxValue","_checked","setFormAssociatedValue","state","_value","validateIcon","validateIcons","watchValidator","isString","checked","indeterminate","unchecked","Set","hooks","beforePatch","nextValue","nextState","set","Object","assign","_icons","validateType","devHint","validateVariant","validateValue","setState","componentWillLoad","_icon","_indeterminate","_variant","_type","defaultStyleCss","KolInputCheckboxDefaultStyle0","KolInputCheckbox","render","ariaDescribedBy","getRenderStates","hasExpertSlot","showExpertSlot","_label","h","Host","key","class","KolInputTag","checkbox","_hideLabel","undefined","_alert","_disabled","_error","_hideError","_hint","_id","_required","_tooltipAlign","_touched","slot","KolIconTag","ref","catchRef","title","accessKey","_accessKey","length","join","disabled","id","_name","required","tabIndex","_tabIndex","type","controller","onFacade","onInput","onChange","onClick","hostRef","propagateFocus","event","tryToDispatchKoliBriEvent","_a","_on","nonce","validateAccessKey","validateAlert","validateDisabled","validateError","validateHideError","validateHideLabel","validateHint","validateId","validateLabel","validateName","validateOn","validateRequired","validateSyncValueBySelector","validateTabIndex","validateTouched"],"sources":["src/types/props/checked.ts","src/types/props/indeterminate.ts","src/components/input-checkbox/controller.ts","src/components/input-checkbox/style.scss?tag=kol-input-checkbox&mode=default&encapsulation=shadow","src/components/input-checkbox/component.tsx"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../../utils/prop.validators';\n\n/* types */\nexport type CheckedPropType = boolean;\n\n/**\n * Defines whether the checkbox is checked or not. Can be read and written.\n */\nexport type PropChecked = {\n\tchecked: CheckedPropType;\n};\n\n/* validator */\nexport const validateChecked = (component: Generic.Element.Component, value?: CheckedPropType): void => {\n\twatchBoolean(component, '_checked', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../../utils/prop.validators';\n\n/* types */\nexport type IndeterminatePropType = boolean;\n\n/**\n * Puts the checkbox in the indeterminate state, does not change the value of _checked.\n */\nexport type PropIndeterminate = {\n\tindeterminate: IndeterminatePropType;\n};\n\n/* validator */\nexport const validateIndeterminate = (component: Generic.Element.Component, value?: IndeterminatePropType): void => {\n\twatchBoolean(component, '_indeterminate', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { Stringified } from '../../types/common';\nimport { CheckedPropType, validateChecked } from '../../types/props/checked';\nimport { IndeterminatePropType, validateIndeterminate } from '../../types/props/indeterminate';\nimport { StencilUnknown } from '../../types/unknown';\nimport { devHint } from '../../utils/a11y.tipps';\nimport { setState, watchValidator } from '../../utils/prop.validators';\nimport { isString } from '../../utils/validator';\nimport { InputCheckboxRadioController } from '../input-radio/controller';\nimport { InputCheckboxIconsProp, InputCheckboxIconsState, InputCheckboxVariant, Props, Watches } from './types';\n\nexport class InputCheckboxController extends InputCheckboxRadioController 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 readonly setFormAssociatedCheckboxValue = (value: StencilUnknown) => {\n\t\tif (this.component._checked) {\n\t\t\tthis.setFormAssociatedValue(value);\n\t\t} else {\n\t\t\tthis.setFormAssociatedValue(null);\n\t\t}\n\t};\n\n\tpublic validateChecked(value?: CheckedPropType): void {\n\t\tvalidateChecked(this.component, value);\n\t\tthis.setFormAssociatedCheckboxValue(this.component.state._value as StencilUnknown);\n\t}\n\n\tpublic validateIcon(value?: Stringified<InputCheckboxIconsProp>): void {\n\t\tthis.validateIcons(value);\n\t}\n\n\tpublic validateIcons(value?: Stringified<InputCheckboxIconsProp>): void {\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_icons',\n\t\t\t(value): boolean => {\n\t\t\t\treturn typeof value === 'object' && value !== null && (isString(value.checked, 1) || isString(value.indeterminate, 1) || isString(value.unchecked, 1));\n\t\t\t},\n\t\t\tnew Set(['InputCheckboxIcons']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\thooks: {\n\t\t\t\t\tbeforePatch: (nextValue: unknown, nextState: Map<string, unknown>, component: Generic.Element.Component) => {\n\t\t\t\t\t\tnextState.set('_icons', {\n\t\t\t\t\t\t\t...(component.state._icons as InputCheckboxIconsState),\n\t\t\t\t\t\t\t...(nextValue as InputCheckboxIconsProp),\n\t\t\t\t\t\t});\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t}\n\n\tpublic validateIndeterminate(value?: IndeterminatePropType): void {\n\t\tvalidateIndeterminate(this.component, value);\n\t}\n\n\t/**\n\t * @deprecated\n\t * @see: components/abbr/component.tsx (@Watch)\n\t */\n\tpublic validateType(value?: InputCheckboxVariant): void {\n\t\tdevHint(`The \"_type\" prop is deprecated. Use \"_variant\" instead.`);\n\t\tthis.validateVariant(value);\n\t}\n\n\tpublic validateValue(value?: Stringified<StencilUnknown>): void {\n\t\tsetState(this.component, '_value', value);\n\t\tthis.setFormAssociatedCheckboxValue(this.component.state._value as StencilUnknown);\n\t}\n\n\tpublic validateVariant(value?: InputCheckboxVariant): void {\n\t\tif (value === 'checkbox') {\n\t\t\tdevHint(`[KolCheckbox] The \"_variant\" value 'checkbox' is deprecated. Use the new value 'default' instead.`);\n\t\t\tvalue = 'default';\n\t\t}\n\t\twatchValidator(\n\t\t\tthis.component,\n\t\t\t'_variant',\n\t\t\t(value): boolean => typeof value === 'string' && (value === 'button' || value === 'default' || value === 'switch'),\n\t\t\tnew Set(['String {button, default, switch}']),\n\t\t\tvalue,\n\t\t);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateChecked(this.component._checked);\n\t\tthis.validateIcons(this.component._icons || this.component._icon);\n\t\tthis.validateIndeterminate(this.component._indeterminate);\n\t\tthis.validateValue(this.component._value);\n\t\tthis.validateVariant(this.component._variant || this.component._type);\n\t}\n}\n","@import '../input';\n@import 'common';\n@import 'button';\n@import 'checkbox';\n@import 'switch';\n","import { Component, Element, h, Host, JSX, Prop, State, Watch } from '@stencil/core';\n\nimport { Stringified } from '../../types/common';\nimport { InputTypeOnDefault } from '../../types/input/types';\nimport { CheckedPropType } from '../../types/props/checked';\nimport { HideErrorPropType } from '../../types/props/hide-error';\nimport { IdPropType } from '../../types/props/id';\nimport { IndeterminatePropType } from '../../types/props/indeterminate';\nimport { LabelWithExpertSlotPropType } from '../../types/props/label';\nimport { NamePropType } from '../../types/props/name';\nimport { SyncValueBySelectorPropType } from '../../types/props/sync-value-by-selector';\nimport { TooltipAlignPropType } from '../../types/props/tooltip-align';\nimport { StencilUnknown } from '../../types/unknown';\nimport { nonce } from '../../utils/dev.utils';\nimport { tryToDispatchKoliBriEvent } from '../../utils/events';\nimport { propagateFocus, showExpertSlot } from '../../utils/reuse';\nimport { getRenderStates } from '../input/controller';\nimport { InputCheckboxController } from './controller';\nimport { API, InputCheckboxIconsProp, InputCheckboxVariant, States } from './types';\nimport { KolIconTag, KolInputTag } from '../../core/component-names';\n\n/**\n * @slot - Die Beschriftung der Checkbox.\n */\n@Component({\n\ttag: 'kol-input-checkbox',\n\tstyleUrls: {\n\t\tdefault: './style.scss',\n\t},\n\tshadow: true,\n})\nexport class KolInputCheckbox implements API {\n\t@Element() private readonly host?: HTMLKolInputCheckboxElement;\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 } = getRenderStates(this.state);\n\t\tconst hasExpertSlot = showExpertSlot(this.state._label);\n\n\t\treturn (\n\t\t\t<Host class=\"kol-input-checkbox\">\n\t\t\t\t<KolInputTag\n\t\t\t\t\tclass={{\n\t\t\t\t\t\tcheckbox: true,\n\t\t\t\t\t\t[this.state._variant]: true,\n\t\t\t\t\t\t'hide-label': !!this.state._hideLabel,\n\t\t\t\t\t\tchecked: this.state._checked,\n\t\t\t\t\t\tindeterminate: this.state._indeterminate,\n\t\t\t\t\t}}\n\t\t\t\t\tdata-role={this.state._variant === 'button' ? 'button' : undefined}\n\t\t\t\t\t_alert={this.state._alert}\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_id={this.state._id}\n\t\t\t\t\t_label={this.state._label}\n\t\t\t\t\t_required={this.state._required}\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<label slot=\"input\" class=\"checkbox-container\">\n\t\t\t\t\t\t<KolIconTag\n\t\t\t\t\t\t\tclass=\"icon\"\n\t\t\t\t\t\t\t_icons={\n\t\t\t\t\t\t\t\tthis.state._indeterminate ? this.state._icons.indeterminate : this.state._checked ? this.state._icons.checked : this.state._icons.unchecked\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t_label=\"\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={`checkbox-input-element${this.state._variant === 'button' ? ' visually-hidden' : ''}`}\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} // by checkbox?!\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\tchecked={this.state._checked}\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\tindeterminate={this.state._indeterminate}\n\t\t\t\t\t\t\tname={this.state._name}\n\t\t\t\t\t\t\trequired={this.state._required}\n\t\t\t\t\t\t\ttabIndex={this.state._tabIndex}\n\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\t{...this.controller.onFacade}\n\t\t\t\t\t\t\tonInput={this.onInput}\n\t\t\t\t\t\t\tonChange={this.onChange}\n\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/>\n\t\t\t\t\t</label>\n\t\t\t\t</KolInputTag>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate readonly controller: InputCheckboxController;\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 checkbox is checked or not. Can be read and written.\n\t * @TODO: Change type back to `CheckedPropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _checked?: 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 * 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 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<InputCheckboxIconsProp>;\n\n\t/**\n\t * Defines the icon classnames (e.g. `_icons=\"fa-solid fa-user\"`).\n\t */\n\t@Prop() public _icons?: Stringified<InputCheckboxIconsProp>;\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 * Puts the checkbox in the indeterminate state, does not change the value of _checked.\n\t * @TODO: Change type back to `IndeterminatePropType` after Stencil#4663 has been resolved.\n\t */\n\t@Prop({ mutable: true, reflect: true }) public _indeterminate?: boolean;\n\n\t/**\n\t * Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.). Set to `false` to enable the expert slot.\n\t */\n\t@Prop() public _label?: LabelWithExpertSlotPropType;\n\n\t/**\n\t * Defines the 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 * 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 * Deprecated: Defines which variant should be used for presentation.\n\t *\n\t * @deprecated Verwende stattdessen das Attribute _variant.\n\t */\n\t@Prop() public _type?: InputCheckboxVariant;\n\n\t/**\n\t * Defines the value of the input.\n\t */\n\t@Prop() public _value?: Stringified<StencilUnknown> = true;\n\n\t/**\n\t * Defines which variant should be used for presentation.\n\t */\n\t@Prop() public _variant?: InputCheckboxVariant; // TODO: = 'default'; in v2 setzen\n\n\t@State() public state: States = {\n\t\t_checked: false,\n\t\t_hideError: false,\n\t\t_icons: {\n\t\t\tchecked: 'codicon codicon-check',\n\t\t\tindeterminate: 'codicon codicon-remove',\n\t\t\tunchecked: 'codicon codicon-add',\n\t\t},\n\t\t_id: `id-${nonce()}`,\n\t\t_indeterminate: false,\n\t\t_label: '…', // ⚠ required\n\t\t_value: true,\n\t\t_variant: 'default',\n\t};\n\n\tpublic constructor() {\n\t\tthis.controller = new InputCheckboxController(this, 'checkbox', 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('_checked')\n\tpublic validateChecked(value?: CheckedPropType): void {\n\t\tthis.controller.validateChecked(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<InputCheckboxIconsProp>): void {\n\t\tthis.validateIcons(value);\n\t}\n\n\t@Watch('_icons')\n\tpublic validateIcons(value?: Stringified<InputCheckboxIconsProp>): 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('_indeterminate')\n\tpublic validateIndeterminate(value?: IndeterminatePropType): void {\n\t\tthis.controller.validateIndeterminate(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('_name')\n\tpublic validateName(value?: string): void {\n\t\tthis.controller.validateName(value);\n\t}\n\n\t@Watch('_on')\n\tpublic validateOn(value?: InputTypeOnDefault): void {\n\t\tthis.controller.validateOn(value);\n\t}\n\n\t@Watch('_required')\n\tpublic validateRequired(value?: boolean): void {\n\t\tthis.controller.validateRequired(value);\n\t}\n\n\t@Watch('_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?: InputCheckboxVariant): void {\n\t\tthis.controller.validateType(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\t@Watch('_variant')\n\tpublic validateVariant(value?: InputCheckboxVariant): void {\n\t\tthis.controller.validateVariant(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\tprivate onInput = (event: Event): void => {\n\t\tthis._checked = !this._checked;\n\t\tthis._indeterminate = false;\n\n\t\tconst value = this._checked ? this.state._value : null;\n\n\t\t// Event handling\n\t\ttryToDispatchKoliBriEvent('input', this.host, value);\n\n\t\t// Callback\n\t\tif (typeof this._on?.onInput === 'function') {\n\t\t\tthis._on.onInput(event, value);\n\t\t}\n\t};\n\n\tprivate onChange = (event: Event): void => {\n\t\tconst value = this._checked ? this.state._value : null;\n\n\t\t// Event handling\n\t\t// stopPropagation(event);\n\t\ttryToDispatchKoliBriEvent('change', this.host, value);\n\n\t\t// Static form handling\n\t\t// this.controller.setFormAssociatedValue(value);\n\t\tthis.controller.setFormAssociatedCheckboxValue(value);\n\n\t\t// Callback\n\t\tif (typeof this._on?.onChange === 'function') {\n\t\t\tthis._on.onChange(event, value);\n\t\t}\n\t};\n}\n"],"mappings":"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","ignoreList":[]}
@@ -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-3e397955.js";import{n as s}from"./dev.utils-6d3dcc85.js";import{s as o,a as n}from"./reuse-d79ab469.js";import{g as l}from"./controller-c9ab2c5d.js";import{v as d}from"./suggestions-30782fba.js";import{w as r,d as p}from"./prop.validators-3121bc1b.js";import{I as h}from"./controller-icon-59fd3f70.js";import{m as c}from"./component-names-ac6a27ae.js";import"./hide-label-db462624.js";import"./label-4f2b5f64.js";import"./a11y.tipps-abdda64e.js";import"./events-fa760b68.js";import"./tab-index-c358b0d5.js";import"./associated.controller-1563a241.js";import"./index-14005aa7.js";import"./icons-2a4bd415.js";class u extends h{constructor(t,e,i){super(t,e,i),this.component=t}validateAutoComplete(t){r(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateList(){}validateSuggestions(t){d(this.component,t)}validateValue(t){p(this.component,"_value",t),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateSuggestions(this.component._suggestions||this.component._list),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:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}.kol-input{display:grid}.kol-input .input-slot{flex-grow:1}input:not([type=checkbox],[type=radio]),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>.kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}.kol-input.required .input-tooltip .span-label::after{content:"*"}div.input{cursor:pointer}',b=f,m=class{render(){const{ariaDescribedBy:e}=l(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=o(this.state._label);return t(i,{key:"b91916be1a907ed0806551d992054ac75111d9ac",class:"kol-input-color"},t(c,{key:"9e806ef5b2ab533f46497999ff166122b999d283",class:{color:!0,"hide-label":!!this.state._hideLabel},_disabled:this.state._disabled,_error:this.state._error,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_hideError:this.state._hideError,_id:this.state._id,_label:this.state._label,_suggestions:this.state._suggestions,_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:"7f1fa338827a299f058d8c15175c129eedadc2c5",slot:"label"},s?t("slot",null):this.state._label),t("div",{key:"a96cc65505c19427ebddfe69ec4dd7cc5af0d434",slot:"input"},t("input",Object.assign({key:"cf5755aa4ea0b03013cb54831d62330755435f76",ref:this.catchRef,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,name:this.state._name,slot:"input",spellcheck:"false",type:"color",value:this.state._value},this.controller.onFacade)))))}constructor(t){e(this,t),this.catchRef=t=>{this.ref=t,n(this.host,this.ref)},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._name=void 0,this._on=void 0,this._smartButton=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 u(this,"color",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.validateSuggestions(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateSmartButton(t){this.controller.validateSmartButton(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"],_name:["validateName"],_on:["validateOn"],_smartButton:["validateSmartButton"],_suggestions:["validateSuggestions"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};m.style={default:b};export{m as kol_input_color};
4
+ import{h as t,H as e,r as i,g as a}from"./index-a8be3649.js";import{n as s}from"./dev.utils-10b37a09.js";import{s as o,a as n}from"./reuse-d79ab469.js";import{g as l}from"./controller-80517d56.js";import{v as d}from"./suggestions-122d6cf1.js";import{w as r,d as p}from"./prop.validators-199a9714.js";import{I as h}from"./controller-icon-4b6a735e.js";import{m as c}from"./component-names-ac6a27ae.js";import"./hide-label-6ecf654c.js";import"./label-f00fb8dd.js";import"./a11y.tipps-902d8cd2.js";import"./events-fa760b68.js";import"./tab-index-184396ee.js";import"./associated.controller-907cc2c3.js";import"./index-14005aa7.js";import"./icons-fd7e7c70.js";class u extends h{constructor(t,e,i){super(t,e,i),this.component=t}validateAutoComplete(t){r(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateList(){}validateSuggestions(t){d(this.component,t)}validateValue(t){p(this.component,"_value",t),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateSuggestions(this.component._suggestions||this.component._list),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:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}.kol-input{display:grid}.kol-input .input-slot{flex-grow:1}input:not([type=checkbox],[type=radio]),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>.kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}.kol-input.required .input-tooltip .span-label::after{content:"*"}div.input{cursor:pointer}',m=f,b=class{render(){const{ariaDescribedBy:i}=l(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=o(this.state._label);return t(e,{key:"b91916be1a907ed0806551d992054ac75111d9ac",class:"kol-input-color"},t(c,{key:"9e806ef5b2ab533f46497999ff166122b999d283",class:{color:!0,"hide-label":!!this.state._hideLabel},_disabled:this.state._disabled,_error:this.state._error,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_hideError:this.state._hideError,_id:this.state._id,_label:this.state._label,_suggestions:this.state._suggestions,_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:"7f1fa338827a299f058d8c15175c129eedadc2c5",slot:"label"},s?t("slot",null):this.state._label),t("div",{key:"a96cc65505c19427ebddfe69ec4dd7cc5af0d434",slot:"input"},t("input",Object.assign({key:"cf5755aa4ea0b03013cb54831d62330755435f76",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,name:this.state._name,slot:"input",spellcheck:"false",type:"color",value:this.state._value},this.controller.onFacade)))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,n(this.host,this.ref)},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._name=void 0,this._on=void 0,this._smartButton=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 u(this,"color",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.validateSuggestions(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateSmartButton(t){this.controller.validateSmartButton(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"],_name:["validateName"],_on:["validateOn"],_smartButton:["validateSmartButton"],_suggestions:["validateSuggestions"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};b.style={default:m};export{b as kol_input_color};
@@ -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-3e397955.js";import{n as s}from"./dev.utils-6d3dcc85.js";import{s as n,a as d}from"./reuse-d79ab469.js";import{p as l}from"./controller-83aa0900.js";import{g as o}from"./controller-c9ab2c5d.js";import{a as r,w as h,s as u,e as p}from"./prop.validators-3121bc1b.js";import{v as c}from"./suggestions-30782fba.js";import{I as f}from"./controller-icon-59fd3f70.js";import{m}from"./component-names-ac6a27ae.js";import"./a11y.tipps-abdda64e.js";import"./hide-label-db462624.js";import"./label-4f2b5f64.js";import"./events-fa760b68.js";import"./tab-index-c358b0d5.js";import"./associated.controller-1563a241.js";import"./index-14005aa7.js";import"./icons-2a4bd415.js";const v=(t,e)=>{r(t,"_readOnly",e)};class y extends f{constructor(t,e,i){super(t,e,i),this.validateIso8601=(t,e,i)=>h(this.component,t,(t=>void 0===t||null==t||""===t||this.validateDateString(t)),new Set(["Date","string{ISO-8601}"]),this.tryParseToString(e),{hooks:{afterPatch:t=>{"string"==typeof t&&i&&i(t)}}}),this.component=t}validateAutoComplete(t){h(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateList(){}validateSuggestions(t){c(this.component,t)}tryParseToString(t,e){const i=null!=t?t:e;if("string"==typeof i)return i;if("object"==typeof i&&i instanceof Date)switch(this.component._type){case"date":return`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`;case"datetime-local":return`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}T${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`;case"month":return`${i.getFullYear()}-${i.getMonth()+1}`;case"time":return void 0===this.component._step||"string"==typeof this.component._step&&"60"===this.component._step||"number"==typeof this.component._step&&60===this.component._step?`${i.getHours()}:${i.getMinutes()}`:`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`;case"week":throw new Error("Auto convert to week is not supported!")}return null===t?null:void 0}validateDateString(t){switch(this.component._type){case"date":return y.isoDateRegex.test(t);case"datetime-local":return y.isoLocalDateTimeRegex.test(t);case"month":return y.isoMonthRegex.test(t);case"time":return y.isoTimeRegex.test(t);case"week":return y.isoWeekRegex.test(t);default:return!1}}onBlur(t){super.onBlur(t),!!t.target.value!=!!this.component._value&&(this.component._value=t.target.value)}validateMax(t){h(this.component,"_max",(t=>void 0===t||null!==t&&this.validateDateString(t)),new Set(["Iso8601","Date"]),this.tryParseToString(t,"date"===this.component._type||"month"===this.component._type||"datetime-local"===this.component._type?y.DEFAULT_MAX_DATE:void 0))}validateMin(t){h(this.component,"_min",(t=>void 0===t||null!==t&&this.validateDateString(t)),new Set(["Iso8601","Date"]),this.tryParseToString(t))}validateOn(t){u(this.component,"_on",Object.assign(Object.assign({},t),{onChange:(e,i)=>{!!i!=!!this.component._value&&(this.component._value=i),(null==t?void 0:t.onChange)&&t.onChange(e,i)}}))}validateReadOnly(t){v(this.component,t)}validateRequired(t){r(this.component,"_required",t)}validateStep(t){p(this.component,"_step",t)}validateType(t){h(this.component,"_type",(t=>"string"==typeof t&&("date"===t||"datetime-local"===t||"month"===t||"number"===t||"time"===t||"week"===t)),new Set(["String {date, datetime-local, month, number, time, week}"]),t)}validateValue(t){this.validateValueEx(t)}validateValueEx(t,e){this.validateIso8601("_value",t,e),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateMax(this.component._max),this.validateMin(this.component._min),this.validateLabel(this.component._label),this.validateSuggestions(this.component._suggestions||this.component._list),this.validateOn(this.component._on),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateStep(this.component._step),this.validateType(this.component._type),this.validateValue(this.component._value)}}y.isoDateRegex=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])/,y.isoLocalDateTimeRegex=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])[T ][0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,y.isoMonthRegex=/^\d{4}-([0]\d|1[0-2])/,y.isoTimeRegex=/^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,y.isoWeekRegex=/^\d{4}-W(?:[0-4]\d|5[0-3])$/,y.DEFAULT_MAX_DATE=new Date(9999,11,31,23,59,59);const b=':host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}.required label>span::after,.required legend>span::after{content:"*"}:host{display:block}input,textarea{cursor:text}input[type=checkbox],input[type=color],input[type=file],input[type=radio],input[type=range],label,option,select{cursor:pointer}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select[multiple] option,textarea{font-size:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}.kol-input{display:grid}.kol-input .input-slot{flex-grow:1}input:not([type=checkbox],[type=radio]),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>.kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}.kol-input.required .input-tooltip .span-label::after{content:"*"}.kol-input-number{display:block}',_=b,g=class{render(){const{ariaDescribedBy:i}=o(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=n(this.state._label);return t(e,{key:"da2751f1f6398238c1e770ce8078df44e9c23341",class:{"kol-input-date":!0,"has-value":this.state._hasValue}},t(m,{key:"66c3f86e0f3848b658e7d5c2b95b9926b6c2214f",class:{[this.state._type]:!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,_suggestions:this.state._suggestions,_readOnly:this.state._readOnly,_required:this.state._required,_smartButton:this.state._smartButton,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},t("span",{key:"ad51ce48972c5ea1457d7c62b6dd2f50da0c5f4a",slot:"label"},s?t("slot",null):this.state._label),t("div",{key:"760d2d479422de68c364126502372a90e31299a0",slot:"input"},t("input",Object.assign({key:"8d78c701722bb93dc99b9afef883cafdcd90c334",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,max:this.state._max,min:this.state._min,name:this.state._name,readOnly:this.state._readOnly,required:this.state._required,step:this.state._step,spellcheck:"false",type:this.state._type,value:this.state._value},this.controller.onFacade,{onKeyDown:this.onKeyDown})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,d(this.host,this.ref)},this.onKeyDown=t=>{"Enter"!==t.code&&"NumpadEnter"!==t.code||l({form:this.host,ref:this.ref})},this._accessKey=void 0,this._alert=!0,this._autoComplete=void 0,this._disabled=!1,this._error=void 0,this._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._readOnly=!1,this._required=!1,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._step=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._type="date",this._value=void 0,this.state={_autoComplete:"off",_hasValue:!1,_hideError:!1,_id:`id-${s()}`,_label:"…",_suggestions:[],_type:"datetime-local"},this.controller=new y(this,"date",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.validateSuggestions(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)}validateReadOnly(t){this.controller.validateReadOnly(t)}validateRequired(t){this.controller.validateRequired(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSuggestions(t){this.controller.validateSuggestions(t)}validateStep(t){this.controller.validateStep(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.validateValueEx(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_max:["validateMax"],_min:["validateMin"],_name:["validateName"],_on:["validateOn"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_smartButton:["validateSmartButton"],_suggestions:["validateSuggestions"],_step:["validateStep"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_type:["validateType"],_value:["validateValue"]}}};g.style={default:_};export{g as kol_input_date};
4
+ import{h as t,H as e,r as i,g as a}from"./index-a8be3649.js";import{n as s}from"./dev.utils-10b37a09.js";import{s as n,a as d}from"./reuse-d79ab469.js";import{p as l}from"./controller-fda7f4bb.js";import{g as o}from"./controller-80517d56.js";import{a as r,w as h,s as u,e as p}from"./prop.validators-199a9714.js";import{v as c}from"./suggestions-122d6cf1.js";import{I as f}from"./controller-icon-4b6a735e.js";import{m}from"./component-names-ac6a27ae.js";import"./a11y.tipps-902d8cd2.js";import"./hide-label-6ecf654c.js";import"./label-f00fb8dd.js";import"./events-fa760b68.js";import"./tab-index-184396ee.js";import"./associated.controller-907cc2c3.js";import"./index-14005aa7.js";import"./icons-fd7e7c70.js";const v=(t,e)=>{r(t,"_readOnly",e)};class y extends f{constructor(t,e,i){super(t,e,i),this.validateIso8601=(t,e,i)=>h(this.component,t,(t=>void 0===t||null==t||""===t||this.validateDateString(t)),new Set(["Date","string{ISO-8601}"]),this.tryParseToString(e),{hooks:{afterPatch:t=>{"string"==typeof t&&i&&i(t)}}}),this.component=t}validateAutoComplete(t){h(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateList(){}validateSuggestions(t){c(this.component,t)}tryParseToString(t,e){const i=null!=t?t:e;if("string"==typeof i)return i;if("object"==typeof i&&i instanceof Date)switch(this.component._type){case"date":return`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`;case"datetime-local":return`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}T${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`;case"month":return`${i.getFullYear()}-${i.getMonth()+1}`;case"time":return void 0===this.component._step||"string"==typeof this.component._step&&"60"===this.component._step||"number"==typeof this.component._step&&60===this.component._step?`${i.getHours()}:${i.getMinutes()}`:`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`;case"week":throw new Error("Auto convert to week is not supported!")}return null===t?null:void 0}validateDateString(t){switch(this.component._type){case"date":return y.isoDateRegex.test(t);case"datetime-local":return y.isoLocalDateTimeRegex.test(t);case"month":return y.isoMonthRegex.test(t);case"time":return y.isoTimeRegex.test(t);case"week":return y.isoWeekRegex.test(t);default:return!1}}onBlur(t){super.onBlur(t),!!t.target.value!=!!this.component._value&&(this.component._value=t.target.value)}validateMax(t){h(this.component,"_max",(t=>void 0===t||null!==t&&this.validateDateString(t)),new Set(["Iso8601","Date"]),this.tryParseToString(t,"date"===this.component._type||"month"===this.component._type||"datetime-local"===this.component._type?y.DEFAULT_MAX_DATE:void 0))}validateMin(t){h(this.component,"_min",(t=>void 0===t||null!==t&&this.validateDateString(t)),new Set(["Iso8601","Date"]),this.tryParseToString(t))}validateOn(t){u(this.component,"_on",Object.assign(Object.assign({},t),{onChange:(e,i)=>{!!i!=!!this.component._value&&(this.component._value=i),(null==t?void 0:t.onChange)&&t.onChange(e,i)}}))}validateReadOnly(t){v(this.component,t)}validateRequired(t){r(this.component,"_required",t)}validateStep(t){p(this.component,"_step",t)}validateType(t){h(this.component,"_type",(t=>"string"==typeof t&&("date"===t||"datetime-local"===t||"month"===t||"number"===t||"time"===t||"week"===t)),new Set(["String {date, datetime-local, month, number, time, week}"]),t)}validateValue(t){this.validateValueEx(t)}validateValueEx(t,e){this.validateIso8601("_value",t,e),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateMax(this.component._max),this.validateMin(this.component._min),this.validateLabel(this.component._label),this.validateSuggestions(this.component._suggestions||this.component._list),this.validateOn(this.component._on),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateStep(this.component._step),this.validateType(this.component._type),this.validateValue(this.component._value)}}y.isoDateRegex=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])/,y.isoLocalDateTimeRegex=/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])[T ][0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,y.isoMonthRegex=/^\d{4}-([0]\d|1[0-2])/,y.isoTimeRegex=/^[0-2]\d:[0-5]\d(:[0-5]\d(?:\.\d+)?)?/,y.isoWeekRegex=/^\d{4}-W(?:[0-4]\d|5[0-3])$/,y.DEFAULT_MAX_DATE=new Date(9999,11,31,23,59,59);const b=':host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}.required label>span::after,.required legend>span::after{content:"*"}:host{display:block}input,textarea{cursor:text}input[type=checkbox],input[type=color],input[type=file],input[type=radio],input[type=range],label,option,select{cursor:pointer}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select[multiple] option,textarea{font-size:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}.kol-input{display:grid}.kol-input .input-slot{flex-grow:1}input:not([type=checkbox],[type=radio]),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>.kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}.kol-input.required .input-tooltip .span-label::after{content:"*"}.kol-input-number{display:block}',_=b,g=class{render(){const{ariaDescribedBy:i}=o(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=n(this.state._label);return t(e,{key:"da2751f1f6398238c1e770ce8078df44e9c23341",class:{"kol-input-date":!0,"has-value":this.state._hasValue}},t(m,{key:"66c3f86e0f3848b658e7d5c2b95b9926b6c2214f",class:{[this.state._type]:!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,_suggestions:this.state._suggestions,_readOnly:this.state._readOnly,_required:this.state._required,_smartButton:this.state._smartButton,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},t("span",{key:"ad51ce48972c5ea1457d7c62b6dd2f50da0c5f4a",slot:"label"},s?t("slot",null):this.state._label),t("div",{key:"760d2d479422de68c364126502372a90e31299a0",slot:"input"},t("input",Object.assign({key:"8d78c701722bb93dc99b9afef883cafdcd90c334",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,max:this.state._max,min:this.state._min,name:this.state._name,readOnly:this.state._readOnly,required:this.state._required,step:this.state._step,spellcheck:"false",type:this.state._type,value:this.state._value},this.controller.onFacade,{onKeyDown:this.onKeyDown})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,d(this.host,this.ref)},this.onKeyDown=t=>{"Enter"!==t.code&&"NumpadEnter"!==t.code||l({form:this.host,ref:this.ref})},this._accessKey=void 0,this._alert=!0,this._autoComplete=void 0,this._disabled=!1,this._error=void 0,this._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._readOnly=!1,this._required=!1,this._smartButton=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._step=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._type="date",this._value=void 0,this.state={_autoComplete:"off",_hasValue:!1,_hideError:!1,_id:`id-${s()}`,_label:"…",_suggestions:[],_type:"datetime-local"},this.controller=new y(this,"date",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.validateSuggestions(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)}validateReadOnly(t){this.controller.validateReadOnly(t)}validateRequired(t){this.controller.validateRequired(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSuggestions(t){this.controller.validateSuggestions(t)}validateStep(t){this.controller.validateStep(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.validateValueEx(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_max:["validateMax"],_min:["validateMin"],_name:["validateName"],_on:["validateOn"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_smartButton:["validateSmartButton"],_suggestions:["validateSuggestions"],_step:["validateStep"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_type:["validateType"],_value:["validateValue"]}}};g.style={default:_};export{g as kol_input_date};
@@ -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-3e397955.js";import{n as s}from"./dev.utils-6d3dcc85.js";import{a as n,s as l}from"./prop.validators-3121bc1b.js";import{s as o,a as d}from"./reuse-d79ab469.js";import{p as r}from"./controller-83aa0900.js";import{g as h}from"./controller-c9ab2c5d.js";import{I as p}from"./controller-b99073ac.js";import{m as u}from"./component-names-ac6a27ae.js";import"./index-14005aa7.js";import"./a11y.tipps-abdda64e.js";import"./hide-label-db462624.js";import"./label-4f2b5f64.js";import"./events-fa760b68.js";import"./tab-index-c358b0d5.js";import"./associated.controller-1563a241.js";import"./controller-da423769.js";import"./controller-icon-59fd3f70.js";import"./icons-2a4bd415.js";import"./suggestions-30782fba.js";const c=(t,e)=>{n(t,"_multiple",e)};class f extends p{constructor(t,e,i){super(t,e,i),this.component=t}validateMultiple(t){c(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateMultiple(this.component._multiple)}}const m=':host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}.required label>span::after,.required legend>span::after{content:"*"}:host{display:block}input,textarea{cursor:text}input[type=checkbox],input[type=color],input[type=file],input[type=radio],input[type=range],label,option,select{cursor:pointer}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select[multiple] option,textarea{font-size:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}.kol-input{display:grid}.kol-input .input-slot{flex-grow:1}input:not([type=checkbox],[type=radio]),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>.kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}.kol-input.required .input-tooltip .span-label::after{content:"*"}',b=m,v=class{render(){const{ariaDescribedBy:i}=h(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,l=o(this.state._label);return t(e,{key:"88ba208718c640a1271aa3195395d7354196211c",class:{"kol-input-email":!0,"has-value":this.state._hasValue}},t(u,{key:"b35964b379043ec29754d7fe26e044883371f97e",class:{email:!0,"hide-label":!!this.state._hideLabel},_alert:this.state._alert,_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:"2d472f2ff5463f06537cb9c55b5eb6c70bb5cbe5",slot:"label"},l?t("slot",null):this.state._label),t("div",{key:"44ecc390ae086351e24d1fe15d9b3ad2f1a87827",slot:"input"},t("input",Object.assign({key:"5e1a6a9ebab972829b2a88d5eb0c3def0015be06",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,multiple:this.state._multiple,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:"email",value:this.state._value},this.controller.onFacade,{onKeyDown:this.onKeyDown,onInput:this.onInput})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,d(this.host,this.ref)},this.onKeyDown=t=>{"Enter"!==t.code&&"NumpadEnter"!==t.code||r({form:this.host,ref:this.ref})},this.onInput=t=>{l(this,"_currentLength",t.target.value.length),this.controller.onFacade.onInput(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._multiple=!1,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._smartButton=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",_currentLength:0,_hasValue:!1,_hideError:!1,_id:`id-${s()}`,_label:"…",_suggestions:[]},this.controller=new f(this,"email",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)}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)}validateMultiple(t){this.controller.validateMultiple(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)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hasCounter:["validateHasCounter"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_maxLength:["validateMaxLength"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_pattern:["validatePattern"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_size:["validateSize"],_suggestions:["validateSuggestions"],_smartButton:["validateSmartButton"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};v.style={default:b};export{v as kol_input_email};
4
+ import{h as t,H as e,r as i,g as a}from"./index-a8be3649.js";import{n as s}from"./dev.utils-10b37a09.js";import{a as n,s as l}from"./prop.validators-199a9714.js";import{s as o,a as d}from"./reuse-d79ab469.js";import{p as r}from"./controller-fda7f4bb.js";import{g as h}from"./controller-80517d56.js";import{I as p}from"./controller-36f45b79.js";import{m as u}from"./component-names-ac6a27ae.js";import"./index-14005aa7.js";import"./a11y.tipps-902d8cd2.js";import"./hide-label-6ecf654c.js";import"./label-f00fb8dd.js";import"./events-fa760b68.js";import"./tab-index-184396ee.js";import"./associated.controller-907cc2c3.js";import"./controller-efdc9751.js";import"./controller-icon-4b6a735e.js";import"./icons-fd7e7c70.js";import"./suggestions-122d6cf1.js";const c=(t,e)=>{n(t,"_multiple",e)};class f extends p{constructor(t,e,i){super(t,e,i),this.component=t}validateMultiple(t){c(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateMultiple(this.component._multiple)}}const m=':host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}.required label>span::after,.required legend>span::after{content:"*"}:host{display:block}input,textarea{cursor:text}input[type=checkbox],input[type=color],input[type=file],input[type=radio],input[type=range],label,option,select{cursor:pointer}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select[multiple] option,textarea{font-size:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}.kol-input{display:grid}.kol-input .input-slot{flex-grow:1}input:not([type=checkbox],[type=radio]),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>.kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}.kol-input.required .input-tooltip .span-label::after{content:"*"}',b=m,v=class{render(){const{ariaDescribedBy:i}=h(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,l=o(this.state._label);return t(e,{key:"88ba208718c640a1271aa3195395d7354196211c",class:{"kol-input-email":!0,"has-value":this.state._hasValue}},t(u,{key:"b35964b379043ec29754d7fe26e044883371f97e",class:{email:!0,"hide-label":!!this.state._hideLabel},_alert:this.state._alert,_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:"2d472f2ff5463f06537cb9c55b5eb6c70bb5cbe5",slot:"label"},l?t("slot",null):this.state._label),t("div",{key:"44ecc390ae086351e24d1fe15d9b3ad2f1a87827",slot:"input"},t("input",Object.assign({key:"5e1a6a9ebab972829b2a88d5eb0c3def0015be06",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,multiple:this.state._multiple,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:"email",value:this.state._value},this.controller.onFacade,{onKeyDown:this.onKeyDown,onInput:this.onInput})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,d(this.host,this.ref)},this.onKeyDown=t=>{"Enter"!==t.code&&"NumpadEnter"!==t.code||r({form:this.host,ref:this.ref})},this.onInput=t=>{l(this,"_currentLength",t.target.value.length),this.controller.onFacade.onInput(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._multiple=!1,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._smartButton=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",_currentLength:0,_hasValue:!1,_hideError:!1,_id:`id-${s()}`,_label:"…",_suggestions:[]},this.controller=new f(this,"email",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)}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)}validateMultiple(t){this.controller.validateMultiple(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)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hasCounter:["validateHasCounter"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_maxLength:["validateMaxLength"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_pattern:["validatePattern"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_size:["validateSize"],_suggestions:["validateSuggestions"],_smartButton:["validateSmartButton"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};v.style={default:b};export{v as kol_input_email};
@@ -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-3e397955.js";import{n as s}from"./dev.utils-6d3dcc85.js";import{s as n,a as l}from"./reuse-d79ab469.js";import{g as o}from"./controller-c9ab2c5d.js";import{d,a as r}from"./prop.validators-3121bc1b.js";import{I as h}from"./controller-icon-59fd3f70.js";import{m as p}from"./component-names-ac6a27ae.js";import"./hide-label-db462624.js";import"./label-4f2b5f64.js";import"./a11y.tipps-abdda64e.js";import"./events-fa760b68.js";import"./tab-index-c358b0d5.js";import"./associated.controller-1563a241.js";import"./index-14005aa7.js";import"./icons-2a4bd415.js";class c extends h{constructor(t,e,i){super(t,e,i),this.component=t}validateAccept(t){d(this.component,"_accept",t)}validateMultiple(t){r(this.component,"_multiple",t)}validateRequired(t){r(this.component,"_required",t)}validateValue(t){d(this.component,"_value",t),this.setFormAssociatedValue(this.component._value)}componentWillLoad(){super.componentWillLoad(),this.validateAccept(this.component._accept),this.validateMultiple(this.component._multiple),this.validateRequired(this.component._required),this.validateValue(this.component._value)}}const u='@charset "UTF-8";:host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}.required label>span::after,.required legend>span::after{content:"*"}:host{display:block}input,textarea{cursor:text}input[type=checkbox],input[type=color],input[type=file],input[type=radio],input[type=range],label,option,select{cursor:pointer}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select[multiple] option,textarea{font-size:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}.kol-input{display:grid}.kol-input .input-slot{flex-grow:1}input:not([type=checkbox],[type=radio]),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>.kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}.kol-input.required .input-tooltip .span-label::after{content:"*"}label input[type=file]::-webkit-file-upload-button{display:none}label input[type=file]:before{content:"Datei auswählen"}label input[multiple]:before{content:"Dateien auswählen"}div.input{cursor:pointer}',f=u,b=class{render(){const{ariaDescribedBy:i}=o(this.state),a=n(this.state._label);return t(e,{key:"2faa4a161593cff8f4466be74d9313ccaaca53bd",class:"kol-input-file"},t(p,{key:"d1f95ee9cca508de120db9e3a437c3dad5270a2c",class:{file:!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,_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:"a2b94c32fcf0eca16e2432b55e118ffa2d7aa1ba",slot:"label"},a?t("slot",null):this.state._label),t("div",{key:"6b1ba3eb142cbd167519e4bf4c99c07f8c4fa7b6",slot:"input"},t("input",Object.assign({key:"90bd21e00c34a208b37e756c0d606d5cd568e678",ref:this.catchRef,title:"",accept:this.state._accept,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",autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,multiple:this.state._multiple,name:this.state._name,required:this.state._required,spellcheck:"false",type:"file",value:this.state._value},this.controller.onFacade,{onChange:this.onChange,onInput:this.onInput})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,l(this.host,this.ref)},this.onChange=t=>{if(this.ref instanceof HTMLInputElement&&"file"===this.ref.type){const e=this.ref.files;this.controller.onFacade.onChange(t,e),this.controller.setFormAssociatedValue(e)}},this.onInput=t=>{if(this.ref instanceof HTMLInputElement&&"file"===this.ref.type){const e=this.ref.files;this.controller.onFacade.onInput(t,!1,e)}},this._accept=void 0,this._accessKey=void 0,this._alert=!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._multiple=!1,this._name=void 0,this._on=void 0,this._required=!1,this._smartButton=void 0,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:"…"},this.controller=new c(this,"file",this.host)}validateAccept(t){this.controller.validateAccept(t)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcon(t){this.validateIcons(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateMultiple(t){this.controller.validateMultiple(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateRequired(t){this.controller.validateRequired(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)}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{_accept:["validateAccept"],_accessKey:["validateAccessKey"],_alert:["validateAlert"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_required:["validateRequired"],_smartButton:["validateSmartButton"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};b.style={default:f};export{b as kol_input_file};
4
+ import{h as t,H as e,r as i,g as a}from"./index-a8be3649.js";import{n as s}from"./dev.utils-10b37a09.js";import{s as n,a as l}from"./reuse-d79ab469.js";import{g as o}from"./controller-80517d56.js";import{d,a as r}from"./prop.validators-199a9714.js";import{I as h}from"./controller-icon-4b6a735e.js";import{m as p}from"./component-names-ac6a27ae.js";import"./hide-label-6ecf654c.js";import"./label-f00fb8dd.js";import"./a11y.tipps-902d8cd2.js";import"./events-fa760b68.js";import"./tab-index-184396ee.js";import"./associated.controller-907cc2c3.js";import"./index-14005aa7.js";import"./icons-fd7e7c70.js";class c extends h{constructor(t,e,i){super(t,e,i),this.component=t}validateAccept(t){d(this.component,"_accept",t)}validateMultiple(t){r(this.component,"_multiple",t)}validateRequired(t){r(this.component,"_required",t)}validateValue(t){d(this.component,"_value",t),this.setFormAssociatedValue(this.component._value)}componentWillLoad(){super.componentWillLoad(),this.validateAccept(this.component._accept),this.validateMultiple(this.component._multiple),this.validateRequired(this.component._required),this.validateValue(this.component._value)}}const u='@charset "UTF-8";:host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}.required label>span::after,.required legend>span::after{content:"*"}:host{display:block}input,textarea{cursor:text}input[type=checkbox],input[type=color],input[type=file],input[type=radio],input[type=range],label,option,select{cursor:pointer}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select[multiple] option,textarea{font-size:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}.kol-input{display:grid}.kol-input .input-slot{flex-grow:1}input:not([type=checkbox],[type=radio]),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>.kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}.kol-input.required .input-tooltip .span-label::after{content:"*"}label input[type=file]::-webkit-file-upload-button{display:none}label input[type=file]:before{content:"Datei auswählen"}label input[multiple]:before{content:"Dateien auswählen"}div.input{cursor:pointer}',f=u,b=class{render(){const{ariaDescribedBy:i}=o(this.state),a=n(this.state._label);return t(e,{key:"2faa4a161593cff8f4466be74d9313ccaaca53bd",class:"kol-input-file"},t(p,{key:"d1f95ee9cca508de120db9e3a437c3dad5270a2c",class:{file:!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,_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:"a2b94c32fcf0eca16e2432b55e118ffa2d7aa1ba",slot:"label"},a?t("slot",null):this.state._label),t("div",{key:"6b1ba3eb142cbd167519e4bf4c99c07f8c4fa7b6",slot:"input"},t("input",Object.assign({key:"90bd21e00c34a208b37e756c0d606d5cd568e678",ref:this.catchRef,title:"",accept:this.state._accept,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",autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,multiple:this.state._multiple,name:this.state._name,required:this.state._required,spellcheck:"false",type:"file",value:this.state._value},this.controller.onFacade,{onChange:this.onChange,onInput:this.onInput})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,l(this.host,this.ref)},this.onChange=t=>{if(this.ref instanceof HTMLInputElement&&"file"===this.ref.type){const e=this.ref.files;this.controller.onFacade.onChange(t,e),this.controller.setFormAssociatedValue(e)}},this.onInput=t=>{if(this.ref instanceof HTMLInputElement&&"file"===this.ref.type){const e=this.ref.files;this.controller.onFacade.onInput(t,!1,e)}},this._accept=void 0,this._accessKey=void 0,this._alert=!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._multiple=!1,this._name=void 0,this._on=void 0,this._required=!1,this._smartButton=void 0,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:"…"},this.controller=new c(this,"file",this.host)}validateAccept(t){this.controller.validateAccept(t)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcon(t){this.validateIcons(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateMultiple(t){this.controller.validateMultiple(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateRequired(t){this.controller.validateRequired(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)}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{_accept:["validateAccept"],_accessKey:["validateAccessKey"],_alert:["validateAlert"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_multiple:["validateMultiple"],_name:["validateName"],_on:["validateOn"],_required:["validateRequired"],_smartButton:["validateSmartButton"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};b.style={default:f};export{b as kol_input_file};
@@ -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-3e397955.js";import{n as s}from"./dev.utils-6d3dcc85.js";import{s as n,a as d}from"./reuse-d79ab469.js";import{p as l}from"./controller-83aa0900.js";import{g as o}from"./controller-c9ab2c5d.js";import{v as r}from"./suggestions-30782fba.js";import{w as h,d as p,a as u,e as c}from"./prop.validators-3121bc1b.js";import{I as f}from"./controller-icon-59fd3f70.js";import{m}from"./component-names-ac6a27ae.js";import"./a11y.tipps-abdda64e.js";import"./hide-label-db462624.js";import"./label-4f2b5f64.js";import"./events-fa760b68.js";import"./tab-index-c358b0d5.js";import"./associated.controller-1563a241.js";import"./index-14005aa7.js";import"./icons-2a4bd415.js";class b extends f{constructor(t,e,i){super(t,e,i),this.numberOrIsoDateRegex=/^\d+$|(^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])([T ][0-2]\d:[0-5]\d:[0-5]\d(?:\.\d+)?([+-][0-2]\d:[0-5]\d|Z)?)?$)|(^[0-2]\d:[0-5]\d(:[0-5]\d)?$)/,this.parseToString=t=>"string"==typeof t?t:"number"==typeof t?`${t}`:"object"==typeof t&&t instanceof Date?t.toISOString():"",this.validateIso8601=(t,e,i)=>{const a=parseFloat(e),s=a==e;return h(this.component,t,(t=>void 0===t||""===t||s&&"number"==typeof a||this.numberOrIsoDateRegex.test(t)),new Set(["number","Date","string{ISO-8601}"]),this.parseToString(e),{hooks:{afterPatch:t=>{"string"==typeof t&&i&&i(t)}}})},this.component=t}validateAutoComplete(t){h(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateList(){}validateSuggestions(t){r(this.component,t)}onChange(t){super.onChange(t),!!t.target.value!=!!this.component._value&&(this.component._value=t.target.value)}validateMax(t){this.validateIso8601("_max",t)}validateMin(t){this.validateIso8601("_min",t)}validatePlaceholder(t){p(this.component,"_placeholder",t)}validateReadOnly(t){u(this.component,"_readOnly",t)}validateRequired(t){u(this.component,"_required",t)}validateStep(t){c(this.component,"_step",t)}validateType(t){h(this.component,"_type",(t=>"string"==typeof t&&("date"===t||"datetime-local"===t||"month"===t||"number"===t||"time"===t||"week"===t)),new Set(["String {date, datetime-local, month, number, time, week}"]),t)}validateValue(t){this.validateValueEx(t)}validateValueEx(t,e){this.validateIso8601("_value",t,e),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateMax(this.component._max),this.validateMin(this.component._min),this.validateSuggestions(this.component._suggestions||this.component._list),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateStep(this.component._step),this.validateType(this.component._type),this.validateValue(this.component._value)}}const v=':host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}.required label>span::after,.required legend>span::after{content:"*"}:host{display:block}input,textarea{cursor:text}input[type=checkbox],input[type=color],input[type=file],input[type=radio],input[type=range],label,option,select{cursor:pointer}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select[multiple] option,textarea{font-size:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}.kol-input{display:grid}.kol-input .input-slot{flex-grow:1}input:not([type=checkbox],[type=radio]),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>.kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}.kol-input.required .input-tooltip .span-label::after{content:"*"}',y=v,_=class{render(){const{ariaDescribedBy:i}=o(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=n(this.state._label);return t(e,{key:"47f6452991c55b0edc1d49ff689465e0e56df4be",class:{"kol-input-number":!0,"has-value":this.state._hasValue}},t(m,{key:"16354481d369b7ed0dc7d6da09a95f332b8c0d50",class:{[this.state._type]:!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,_suggestions:this.state._suggestions,_readOnly:this.state._readOnly,_required:this.state._required,_smartButton:this.state._smartButton,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},t("span",{key:"3f1b344ca427a06c64cf7991567209b1a1177360",slot:"label"},s?t("slot",null):this.state._label),t("div",{key:"99d623740650c65784594d4a867a4b0c2b903975",slot:"input"},t("input",Object.assign({key:"479afabe26fd23f0b7396ad90f147fb47a46ba94",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,max:this.state._max,min:this.state._min,name:this.state._name,readOnly:this.state._readOnly,required:this.state._required,placeholder:this.state._placeholder,step:this.state._step,spellcheck:"false",type:this.state._type,value:this.state._value},this.controller.onFacade,{onKeyDown:this.onKeyDown})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,d(this.host,this.ref)},this.onKeyDown=t=>{"Enter"!==t.code&&"NumpadEnter"!==t.code||l({form:this.host,ref:this.ref})},this._accessKey=void 0,this._alert=!0,this._autoComplete=void 0,this._disabled=!1,this._error=void 0,this._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._placeholder=void 0,this._readOnly=!1,this._required=!1,this._smartButton=void 0,this._suggestions=void 0,this._step=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._type="number",this._value=void 0,this.state={_autoComplete:"off",_hasValue:!1,_hideError:!1,_id:`id-${s()}`,_label:"…",_suggestions:[],_type:"number"},this.controller=new b(this,"number",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.validateSuggestions(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)}validatePlaceholder(t){this.controller.validatePlaceholder(t)}validateReadOnly(t){this.controller.validateReadOnly(t)}validateRequired(t){this.controller.validateRequired(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSuggestions(t){this.controller.validateSuggestions(t)}validateStep(t){this.controller.validateStep(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.validateValueEx(t,(t=>{""===t&&this.ref&&(this.ref.value="")}))}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_max:["validateMax"],_min:["validateMin"],_name:["validateName"],_on:["validateOn"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_smartButton:["validateSmartButton"],_suggestions:["validateSuggestions"],_step:["validateStep"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_type:["validateType"],_value:["validateValue"]}}};_.style={default:y};export{_ as kol_input_number};
4
+ import{h as t,H as e,r as i,g as a}from"./index-a8be3649.js";import{n as s}from"./dev.utils-10b37a09.js";import{s as n,a as l}from"./reuse-d79ab469.js";import{p as d}from"./controller-fda7f4bb.js";import{g as o}from"./controller-80517d56.js";import{v as r}from"./suggestions-122d6cf1.js";import{w as h,d as p,a as u,e as c}from"./prop.validators-199a9714.js";import{I as f}from"./controller-icon-4b6a735e.js";import{m}from"./component-names-ac6a27ae.js";import"./a11y.tipps-902d8cd2.js";import"./hide-label-6ecf654c.js";import"./label-f00fb8dd.js";import"./events-fa760b68.js";import"./tab-index-184396ee.js";import"./associated.controller-907cc2c3.js";import"./index-14005aa7.js";import"./icons-fd7e7c70.js";class v extends f{constructor(t,e,i){super(t,e,i),this.numberOrIsoDateRegex=/^\d+$|(^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])([T ][0-2]\d:[0-5]\d:[0-5]\d(?:\.\d+)?([+-][0-2]\d:[0-5]\d|Z)?)?$)|(^[0-2]\d:[0-5]\d(:[0-5]\d)?$)/,this.parseToString=t=>"string"==typeof t?t:"number"==typeof t?`${t}`:"object"==typeof t&&t instanceof Date?t.toISOString():"",this.validateIso8601=(t,e,i)=>{const a=parseFloat(e),s=a==e;return h(this.component,t,(t=>void 0===t||""===t||s&&"number"==typeof a||this.numberOrIsoDateRegex.test(t)),new Set(["number","Date","string{ISO-8601}"]),this.parseToString(e),{hooks:{afterPatch:t=>{"string"==typeof t&&i&&i(t)}}})},this.component=t}validateAutoComplete(t){h(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateList(){}validateSuggestions(t){r(this.component,t)}onChange(t){super.onChange(t),!!t.target.value!=!!this.component._value&&(this.component._value=t.target.value)}validateMax(t){this.validateIso8601("_max",t)}validateMin(t){this.validateIso8601("_min",t)}validatePlaceholder(t){p(this.component,"_placeholder",t)}validateReadOnly(t){u(this.component,"_readOnly",t)}validateRequired(t){u(this.component,"_required",t)}validateStep(t){c(this.component,"_step",t)}validateType(t){h(this.component,"_type",(t=>"string"==typeof t&&("date"===t||"datetime-local"===t||"month"===t||"number"===t||"time"===t||"week"===t)),new Set(["String {date, datetime-local, month, number, time, week}"]),t)}validateValue(t){this.validateValueEx(t)}validateValueEx(t,e){this.validateIso8601("_value",t,e),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateMax(this.component._max),this.validateMin(this.component._min),this.validateSuggestions(this.component._suggestions||this.component._list),this.validatePlaceholder(this.component._placeholder),this.validateReadOnly(this.component._readOnly),this.validateRequired(this.component._required),this.validateStep(this.component._step),this.validateType(this.component._type),this.validateValue(this.component._value)}}const b=':host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}.required label>span::after,.required legend>span::after{content:"*"}:host{display:block}input,textarea{cursor:text}input[type=checkbox],input[type=color],input[type=file],input[type=radio],input[type=range],label,option,select{cursor:pointer}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select[multiple] option,textarea{font-size:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}.kol-input{display:grid}.kol-input .input-slot{flex-grow:1}input:not([type=checkbox],[type=radio]),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>.kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}.kol-input.required .input-tooltip .span-label::after{content:"*"}',y=b,_=class{render(){const{ariaDescribedBy:i}=o(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=n(this.state._label);return t(e,{key:"47f6452991c55b0edc1d49ff689465e0e56df4be",class:{"kol-input-number":!0,"has-value":this.state._hasValue}},t(m,{key:"16354481d369b7ed0dc7d6da09a95f332b8c0d50",class:{[this.state._type]:!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,_suggestions:this.state._suggestions,_readOnly:this.state._readOnly,_required:this.state._required,_smartButton:this.state._smartButton,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},t("span",{key:"3f1b344ca427a06c64cf7991567209b1a1177360",slot:"label"},s?t("slot",null):this.state._label),t("div",{key:"99d623740650c65784594d4a867a4b0c2b903975",slot:"input"},t("input",Object.assign({key:"479afabe26fd23f0b7396ad90f147fb47a46ba94",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,max:this.state._max,min:this.state._min,name:this.state._name,readOnly:this.state._readOnly,required:this.state._required,placeholder:this.state._placeholder,step:this.state._step,spellcheck:"false",type:this.state._type,value:this.state._value},this.controller.onFacade,{onKeyDown:this.onKeyDown})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,l(this.host,this.ref)},this.onKeyDown=t=>{"Enter"!==t.code&&"NumpadEnter"!==t.code||d({form:this.host,ref:this.ref})},this._accessKey=void 0,this._alert=!0,this._autoComplete=void 0,this._disabled=!1,this._error=void 0,this._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._placeholder=void 0,this._readOnly=!1,this._required=!1,this._smartButton=void 0,this._suggestions=void 0,this._step=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._type="number",this._value=void 0,this.state={_autoComplete:"off",_hasValue:!1,_hideError:!1,_id:`id-${s()}`,_label:"…",_suggestions:[],_type:"number"},this.controller=new v(this,"number",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.validateSuggestions(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)}validatePlaceholder(t){this.controller.validatePlaceholder(t)}validateReadOnly(t){this.controller.validateReadOnly(t)}validateRequired(t){this.controller.validateRequired(t)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSuggestions(t){this.controller.validateSuggestions(t)}validateStep(t){this.controller.validateStep(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.validateValueEx(t,(t=>{""===t&&this.ref&&(this.ref.value="")}))}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_max:["validateMax"],_min:["validateMin"],_name:["validateName"],_on:["validateOn"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_smartButton:["validateSmartButton"],_suggestions:["validateSuggestions"],_step:["validateStep"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_type:["validateType"],_value:["validateValue"]}}};_.style={default:y};export{_ as kol_input_number};
@@ -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-3e397955.js";import{d as s}from"./a11y.tipps-abdda64e.js";import{n}from"./dev.utils-6d3dcc85.js";import{s as l}from"./prop.validators-3121bc1b.js";import{s as o,a as d}from"./reuse-d79ab469.js";import{p as r}from"./controller-83aa0900.js";import{g as h}from"./controller-c9ab2c5d.js";import{I as p}from"./controller-da423769.js";import{m as c}from"./component-names-ac6a27ae.js";import"./index-14005aa7.js";import"./hide-label-db462624.js";import"./label-4f2b5f64.js";import"./events-fa760b68.js";import"./tab-index-c358b0d5.js";import"./associated.controller-1563a241.js";import"./controller-icon-59fd3f70.js";import"./icons-2a4bd415.js";const u=':host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}.required label>span::after,.required legend>span::after{content:"*"}:host{display:block}input,textarea{cursor:text}input[type=checkbox],input[type=color],input[type=file],input[type=radio],input[type=range],label,option,select{cursor:pointer}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select[multiple] option,textarea{font-size:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}.kol-input{display:grid}.kol-input .input-slot{flex-grow:1}input:not([type=checkbox],[type=radio]),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>.kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}.kol-input.required .input-tooltip .span-label::after{content:"*"}',f=u,m=class{render(){const{ariaDescribedBy:a}=h(this.state),i=o(this.state._label);return t(e,{key:"ec91de337fca0dd5f0c345444de400b3c2e7d94c",class:{"kol-input-password":!0,"has-value":this.state._hasValue}},t(c,{key:"b91d7687a3f48f133f2be6db76793574be8a252e",class:{"hide-label":!!this.state._hideLabel,password:!0},_currentLength:this.state._currentLength,_disabled:this.state._disabled,_error:this.state._error,_hasCounter:this.state._hasCounter,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_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:"57bd71898ec5118ae379ab8b5f6ae20e25ca8c62",slot:"label"},i?t("slot",null):this.state._label),t("div",{key:"dd9dd40afc59ea478dc76fdc5abeaf913b61effd",slot:"input"},t("input",Object.assign({key:"71c1638bafc738a11eed06473e484cc30bf31e17",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,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:"password",value:this.state._value},this.controller.onFacade,{onKeyDown:this.onKeyDown,onInput:this.onInput})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,d(this.host,this.ref)},this.onKeyDown=t=>{"Enter"!==t.code&&"NumpadEnter"!==t.code||r({form:this.host,ref:this.ref})},this.onInput=t=>{l(this,"_currentLength",t.target.value.length),this.controller.onFacade.onInput(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._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._smartButton=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_autoComplete:"off",_currentLength:0,_hasValue:!1,_hideError:!1,_id:`id-${n()}`,_label:"…"},this.controller=new p(this,"password",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateAutoComplete(t){this.controller.validateAutoComplete(t),"on"===t&&s("[KolInputPassword] Die Option 'autocomplete' sollte bei einem Passwort-Eingabefeld nicht auf \"on\" gesetzt werden.")}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)}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)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hasCounter:["validateHasCounter"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_maxLength:["validateMaxLength"],_name:["validateName"],_on:["validateOn"],_pattern:["validatePattern"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_size:["validateSize"],_smartButton:["validateSmartButton"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};m.style={default:f};export{m as kol_input_password};
4
+ import{h as t,H as e,r as i,g as a}from"./index-a8be3649.js";import{d as s}from"./a11y.tipps-902d8cd2.js";import{n}from"./dev.utils-10b37a09.js";import{s as l}from"./prop.validators-199a9714.js";import{s as o,a as d}from"./reuse-d79ab469.js";import{p as r}from"./controller-fda7f4bb.js";import{g as h}from"./controller-80517d56.js";import{I as p}from"./controller-efdc9751.js";import{m as c}from"./component-names-ac6a27ae.js";import"./index-14005aa7.js";import"./hide-label-6ecf654c.js";import"./label-f00fb8dd.js";import"./events-fa760b68.js";import"./tab-index-184396ee.js";import"./associated.controller-907cc2c3.js";import"./controller-icon-4b6a735e.js";import"./icons-fd7e7c70.js";const u=':host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}.required label>span::after,.required legend>span::after{content:"*"}:host{display:block}input,textarea{cursor:text}input[type=checkbox],input[type=color],input[type=file],input[type=radio],input[type=range],label,option,select{cursor:pointer}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select[multiple] option,textarea{font-size:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}.kol-input{display:grid}.kol-input .input-slot{flex-grow:1}input:not([type=checkbox],[type=radio]),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>.kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}.kol-input.required .input-tooltip .span-label::after{content:"*"}',f=u,m=class{render(){const{ariaDescribedBy:a}=h(this.state),i=o(this.state._label);return t(e,{key:"ec91de337fca0dd5f0c345444de400b3c2e7d94c",class:{"kol-input-password":!0,"has-value":this.state._hasValue}},t(c,{key:"b91d7687a3f48f133f2be6db76793574be8a252e",class:{"hide-label":!!this.state._hideLabel,password:!0},_currentLength:this.state._currentLength,_disabled:this.state._disabled,_error:this.state._error,_hasCounter:this.state._hasCounter,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_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:"57bd71898ec5118ae379ab8b5f6ae20e25ca8c62",slot:"label"},i?t("slot",null):this.state._label),t("div",{key:"dd9dd40afc59ea478dc76fdc5abeaf913b61effd",slot:"input"},t("input",Object.assign({key:"71c1638bafc738a11eed06473e484cc30bf31e17",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,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:"password",value:this.state._value},this.controller.onFacade,{onKeyDown:this.onKeyDown,onInput:this.onInput})))))}constructor(t){i(this,t),this.catchRef=t=>{this.ref=t,d(this.host,this.ref)},this.onKeyDown=t=>{"Enter"!==t.code&&"NumpadEnter"!==t.code||r({form:this.host,ref:this.ref})},this.onInput=t=>{l(this,"_currentLength",t.target.value.length),this.controller.onFacade.onInput(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._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._smartButton=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_autoComplete:"off",_currentLength:0,_hasValue:!1,_hideError:!1,_id:`id-${n()}`,_label:"…"},this.controller=new p(this,"password",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateAutoComplete(t){this.controller.validateAutoComplete(t),"on"===t&&s("[KolInputPassword] Die Option 'autocomplete' sollte bei einem Passwort-Eingabefeld nicht auf \"on\" gesetzt werden.")}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)}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)}validateSmartButton(t){this.controller.validateSmartButton(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(),this.state._hasValue=!!this.state._value,this.controller.addValueChangeListener((t=>this.state._hasValue=!!t))}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hasCounter:["validateHasCounter"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_maxLength:["validateMaxLength"],_name:["validateName"],_on:["validateOn"],_pattern:["validatePattern"],_placeholder:["validatePlaceholder"],_readOnly:["validateReadOnly"],_required:["validateRequired"],_size:["validateSize"],_smartButton:["validateSmartButton"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};m.style={default:f};export{m as kol_input_password};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{r as e,h as i,H as t}from"./index-3e397955.js";import{e as s}from"./a11y.tipps-abdda64e.js";import{u as n}from"./component-names-ac6a27ae.js";import"./dev.utils-6d3dcc85.js";import"./reuse-d79ab469.js";const d=class{constructor(i){e(this,i),this._accessKey=void 0,this._alert=!0,this._disabled=!1,this._error=void 0,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._orientation="vertical",this._required=!1,this._tabIndex=void 0,this._touched=!1,this._value=void 0}render(){return s("[KolInputRadioGroup] Die Komponenten Input-Radio-Group und Input-Radio werden zur Komponente Input-Radio zusammengeführt. Wir empfehlen den Tag <kol-input-radio> statt <kol-input-radio-group> zu verwenden.\n\nMit der Version 1.1 wird die Komponente KolInputRadioGroup aus der Bibliothek entfernt."),i(t,{key:"8bb167b33fc471f4adba17b4f0ef8deaa28b00cb",class:"kol-input-radio-group"},i(n,{key:"71e75bc94db42c153d6e04e2fca22b905ea68a6b",_accessKey:this._accessKey,_disabled:this._disabled,_error:this._error,_hideLabel:this._hideLabel,_id:this._id,_label:this._label,_list:this._list,_name:this._name,_on:this._on,_orientation:this._orientation,_required:this._required,_tabIndex:this._tabIndex,_touched:this._touched,_value:this._value},i("slot",{key:"52c6b38f08484342b22e97a70d70f4768513ad4a"})))}};export{d as kol_input_radio_group};
4
+ import{r as e,h as i,H as t}from"./index-a8be3649.js";import{e as s}from"./a11y.tipps-902d8cd2.js";import{u as n}from"./component-names-ac6a27ae.js";import"./dev.utils-10b37a09.js";import"./reuse-d79ab469.js";const d=class{constructor(i){e(this,i),this._accessKey=void 0,this._alert=!0,this._disabled=!1,this._error=void 0,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._orientation="vertical",this._required=!1,this._tabIndex=void 0,this._touched=!1,this._value=void 0}render(){return s("[KolInputRadioGroup] Die Komponenten Input-Radio-Group und Input-Radio werden zur Komponente Input-Radio zusammengeführt. Wir empfehlen den Tag <kol-input-radio> statt <kol-input-radio-group> zu verwenden.\n\nMit der Version 1.1 wird die Komponente KolInputRadioGroup aus der Bibliothek entfernt."),i(t,{key:"8bb167b33fc471f4adba17b4f0ef8deaa28b00cb",class:"kol-input-radio-group"},i(n,{key:"71e75bc94db42c153d6e04e2fca22b905ea68a6b",_accessKey:this._accessKey,_disabled:this._disabled,_error:this._error,_hideLabel:this._hideLabel,_id:this._id,_label:this._label,_list:this._list,_name:this._name,_on:this._on,_orientation:this._orientation,_required:this._required,_tabIndex:this._tabIndex,_touched:this._touched,_value:this._value},i("slot",{key:"52c6b38f08484342b22e97a70d70f4768513ad4a"})))}};export{d as kol_input_radio_group};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as i,H as e,r as t,g as a}from"./index-3e397955.js";import{n as s}from"./dev.utils-6d3dcc85.js";import{t as n,s as r}from"./events-fa760b68.js";import{s as d,a as o}from"./reuse-d79ab469.js";import{F as l}from"./form-field-msg-c19f3f0c.js";import{g as h}from"./controller-c9ab2c5d.js";import{a as p}from"./controller-6408beba.js";import{m as c}from"./component-names-ac6a27ae.js";import"./prop.validators-3121bc1b.js";import"./index-14005aa7.js";import"./a11y.tipps-abdda64e.js";import"./hide-label-db462624.js";import"./label-4f2b5f64.js";import"./tab-index-c358b0d5.js";import"./associated.controller-1563a241.js";const u=':host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}.required label>span::after,.required legend>span::after{content:"*"}:host{display:block}input,textarea{cursor:text}input[type=checkbox],input[type=color],input[type=file],input[type=radio],input[type=range],label,option,select{cursor:pointer}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select[multiple] option,textarea{font-size:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}: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:""}',b=u,f=class{render(){const{ariaDescribedBy:t,hasError:a}=h(this.state),o=d(this.state._label);return i(e,{key:"acd83c35943b3d9a111e654ce93ca5020544727a",class:"kol-input-radio"},i("fieldset",{key:"1c7305b87939e30a6e8b4fb49ce7e248c8ae6824",class:{disabled:!0===this.state._disabled,error:!0===a,required:!0===this.state._required,"hidden-error":!0===this._hideError,[this.state._orientation]:!0}},i("legend",{key:"aed0b7265e81587f70290aa0140ccff62cf32338",class:"block w-full mb-1 leading-normal"},i("span",{key:"436d964dd89b679beca1a2ae0db9763b62c0b9dc"},i("span",{key:"ffd29740b8124c5db46f4508d6151e72f68155e9",slot:"label"},o?i("slot",null):this.state._label))),this.state._options.map(((e,a)=>{const l=`${this.state._id}-${a}`,o=`radio-${a}`;return i(c,{class:{radio:!0,disabled:Boolean(this.state._disabled||e.disabled)},key:l,_disabled:this.state._disabled||e.disabled,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_id:l,_label:e.label,_renderNoLabel:!0,_required:this.state._required,_slotName:o,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},i("div",{slot:o,class:"radio-input-wrapper"},i("input",Object.assign({ref:this.state._value===e.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 e.label?e.label:void 0,type:"radio",id:l,checked:this.state._value===e.value,name:this.state._name||this.state._id,disabled:this.state._disabled||e.disabled,required:this.state._required,tabIndex:this.state._tabIndex,value:`-${a}`},this.controller.onFacade,{onInput:this.onInput,onChange:this.onChange,onClick:void 0})),i("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}},i("span",null,i("span",null,e.label)))))})),a&&i(l,{key:"3ef92d22031b0af8985566cc91c440f019d11883",_alert:this.state._alert,_hideError:this.state._hideError,_error:this.state._error,_id:this.state._id})))}constructor(e){t(this,e),this.catchRef=t=>{o(this.host,t)},this.onInput=t=>{var e;if(t.target instanceof HTMLInputElement){const i=this.controller.getOptionByKey(t.target.value);void 0!==i&&(n("input",this.host,i.value),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onInput)&&this.state._on.onInput(t,i.value))}},this.onChange=t=>{var e;if(t.target instanceof HTMLInputElement){const i=this.controller.getOptionByKey(t.target.value);void 0!==i&&(r(t),n("change",this.host,i.value),this.controller.setFormAssociatedValue(i.value),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onChange)&&this.state._on.onChange(t,i.value),this.controller.setValue(t,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(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHideError(t){this.controller.validateHideError(t)}validateHint(t){this.controller.validateHint(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateList(t){this.validateOptions(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateOptions(t){this.controller.validateOptions(t)}validateOrientation(t){this.controller.validateOrientation(t)}validateRequired(t){this.controller.validateRequired(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad(this.onChange)}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"]}}};f.style={default:b};export{f as kol_input_radio};
4
+ import{h as e,H as i,r as t,g as a}from"./index-a8be3649.js";import{n as s}from"./dev.utils-10b37a09.js";import{t as n,s as r}from"./events-fa760b68.js";import{s as d,a as o}from"./reuse-d79ab469.js";import{F as l}from"./form-field-msg-9bc06031.js";import{g as h}from"./controller-80517d56.js";import{a as p}from"./controller-7ac8de52.js";import{m as c}from"./component-names-ac6a27ae.js";import"./prop.validators-199a9714.js";import"./index-14005aa7.js";import"./a11y.tipps-902d8cd2.js";import"./hide-label-6ecf654c.js";import"./label-f00fb8dd.js";import"./tab-index-184396ee.js";import"./associated.controller-907cc2c3.js";const u=':host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}.required label>span::after,.required legend>span::after{content:"*"}:host{display:block}input,textarea{cursor:text}input[type=checkbox],input[type=color],input[type=file],input[type=radio],input[type=range],label,option,select{cursor:pointer}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select[multiple] option,textarea{font-size:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}: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:""}',f=u,b=class{render(){const{ariaDescribedBy:t,hasError:a}=h(this.state),o=d(this.state._label);return e(i,{key:"acd83c35943b3d9a111e654ce93ca5020544727a",class:"kol-input-radio"},e("fieldset",{key:"1c7305b87939e30a6e8b4fb49ce7e248c8ae6824",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:"aed0b7265e81587f70290aa0140ccff62cf32338",class:"block w-full mb-1 leading-normal"},e("span",{key:"436d964dd89b679beca1a2ae0db9763b62c0b9dc"},e("span",{key:"ffd29740b8124c5db46f4508d6151e72f68155e9",slot:"label"},o?e("slot",null):this.state._label))),this.state._options.map(((i,a)=>{const l=`${this.state._id}-${a}`,o=`radio-${a}`;return e(c,{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:o,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},e("div",{slot:o,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,{onInput:this.onInput,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(l,{key:"3ef92d22031b0af8985566cc91c440f019d11883",_alert:this.state._alert,_hideError:this.state._hideError,_error:this.state._error,_id:this.state._id})))}constructor(e){t(this,e),this.catchRef=e=>{o(this.host,e)},this.onInput=e=>{var t;if(e.target instanceof HTMLInputElement){const i=this.controller.getOptionByKey(e.target.value);void 0!==i&&(n("input",this.host,i.value),"function"==typeof(null===(t=this.state._on)||void 0===t?void 0:t.onInput)&&this.state._on.onInput(e,i.value))}},this.onChange=e=>{var t;if(e.target instanceof HTMLInputElement){const i=this.controller.getOptionByKey(e.target.value);void 0!==i&&(r(e),n("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:f};export{b as kol_input_radio};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h as i,H as t,r as e,g as a}from"./index-3e397955.js";import{n as s}from"./dev.utils-6d3dcc85.js";import{s as n,a as o}from"./reuse-d79ab469.js";import{p as d}from"./controller-83aa0900.js";import{g as r}from"./controller-c9ab2c5d.js";import{v as l}from"./suggestions-30782fba.js";import{w as h,e as p}from"./prop.validators-3121bc1b.js";import{I as u}from"./controller-icon-59fd3f70.js";import{m as c}from"./component-names-ac6a27ae.js";import"./a11y.tipps-abdda64e.js";import"./hide-label-db462624.js";import"./label-4f2b5f64.js";import"./events-fa760b68.js";import"./tab-index-c358b0d5.js";import"./associated.controller-1563a241.js";import"./index-14005aa7.js";import"./icons-2a4bd415.js";class f extends u{constructor(t,e,i){super(t,e,i),this.component=t}validateAutoComplete(t){h(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateList(t){Array.isArray(t)&&this.validateSuggestions(t.map((t=>t.value)))}validateMax(t){p(this.component,"_max",t)}validateMin(t){p(this.component,"_min",t)}validateStep(t){p(this.component,"_step",t)}validateSuggestions(t){l(this.component,t)}validateValue(t){p(this.component,"_value",t),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateList(this.component._list),this.validateMax(this.component._max),this.validateMin(this.component._min),this.validateStep(this.component._step),this.validateSuggestions(this.component._suggestions),this.validateValue(this.component._value)}}const b=':host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}.required label>span::after,.required legend>span::after{content:"*"}:host{display:block}input,textarea{cursor:text}input[type=checkbox],input[type=color],input[type=file],input[type=radio],input[type=range],label,option,select{cursor:pointer}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select[multiple] option,textarea{font-size:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}.kol-input{display:grid}.kol-input .input-slot{flex-grow:1}input:not([type=checkbox],[type=radio]),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>.kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}.kol-input.required .input-tooltip .span-label::after{content:"*"}.inputs-wrapper{align-items:center;display:flex;flex-direction:row}input[type=number]{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size);width:var(--kolibri-input-range--input-number--width)}input[type=range]{appearance:none;background-color:#d3d3d3;border:1px solid #000;display:inline-block;flex-grow:1;height:calc(8rem / var(--kolibri-root-font-size, 16));line-height:1.5em;padding:0;margin:0;width:0}input[type=range]::-webkit-slider-thumb{box-sizing:border-box;background-color:#000;height:20px;width:20px;border-radius:20px;cursor:pointer;-webkit-appearance:none}input[type=range]::-moz-range-thumb{box-sizing:border-box;background-color:#000;height:20px;width:20px;border-radius:20px;cursor:pointer;-moz-appearance:none}@media (prefers-contrast: more){::-webkit-slider-thumb{outline:1px solid currentColor}}',m=b,v=class{componentDidLoad(){var t;!this._value&&(null===(t=this.refInputRange)||void 0===t?void 0:t.value)&&this.validateValue(parseFloat(this.refInputRange.value))}render(){const{ariaDescribedBy:e}=r(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=n(this.state._label);return i(t,{key:"f93c3dea4ab3e45fcb970c5a2b9ddf9b14d02122",class:"kol-input-range"},i(c,{key:"aade6d3df99093f8fa704fecb4e3bf04c04accf1",class:{range:!0,"hide-label":!!this.state._hideLabel},_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},i("span",{key:"90c2707c95387a18d90c11c60f32b73a843b778a",slot:"label"},s?i("slot",null):this.state._label),i("div",{key:"af73f3f5934cc0fc489bdd1fed20c17de78480a2",slot:"input"},i("div",{key:"c4bf3b9854214b688315f46ac61d0d00de3d54b3",class:"inputs-wrapper",style:{"--kolibri-input-range--input-number--width":`${this.state._max}`.length+.5+"em"}},i("input",Object.assign({key:"72f23c2eb3116a917585c119b81627d4857b1f13",ref:this.catchInputRangeRef,title:"",accessKey:this.state._accessKey,"aria-describedby":e.length>0?e.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,"aria-hidden":"true",autoCapitalize:"off",autoComplete:this.state._autoComplete,autoCorrect:"off",disabled:this.state._disabled,list:a?`${this.state._id}-list`:void 0,max:this.state._max,min:this.state._min,name:this.state._name?`${this.state._name}-range`:void 0,spellcheck:"false",step:this.state._step,tabIndex:-1,type:"range",value:this.state._value},this.controller.onFacade,{onChange:this.onChange})),i("input",Object.assign({key:"31f21cc83972362e407f9030811368d98bb4a1d2",ref:this.catchInputNumberRef,title:"",accessKey:this.state._accessKey,"aria-describedby":e.length>0?e.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoComplete:this.state._autoComplete,autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,list:a?`${this.state._id}-list`:void 0,max:this.state._max,min:this.state._min,name:this.state._name?`${this.state._name}-number`:void 0,step:this.state._step,type:"number",value:this.state._value},this.controller.onFacade,{onKeyDown:this.onKeyDown,onChange:this.onChange}))),a&&[i("datalist",{key:"074427f8c542ba1a81e6e0b93c473f4724f70826",id:`${this.state._id}-list`},this.state._suggestions.map((t=>i("option",{value:t}))))])))}constructor(t){e(this,t),this.catchInputNumberRef=t=>{var e;t&&(this.refInputNumber=t,o(this.host,t),!this._value&&(null===(e=this.refInputNumber)||void 0===e?void 0:e.value)&&this.validateValue(parseFloat(this.refInputNumber.value)))},this.catchInputRangeRef=t=>{t&&(this.refInputRange=t)},this.onChange=t=>{var e,i;let a=parseFloat(t.target.value);this.state._max&&a>this.state._max&&(a=this.state._max),this.state._min&&a<this.state._min&&(a=this.state._min),this.validateValue(a),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onChange)&&(null===(i=this.state._on)||void 0===i||i.onChange(t,a))},this.onKeyDown=t=>{"Enter"!==t.code&&"NumpadEnter"!==t.code||d({form:this.host,ref:this.refInputRange})},this._accessKey=void 0,this._alert=!0,this._autoComplete=void 0,this._disabled=!1,this._error=void 0,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icon=void 0,this._icons=void 0,this._id=void 0,this._label=void 0,this._list=void 0,this._max=void 0,this._min=void 0,this._name=void 0,this._on=void 0,this._step=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_autoComplete:"off",_hideError:!1,_id:`id-${s()}`,_label:"…",_suggestions:[]},this.controller=new f(this,"range",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateAutoComplete(t){this.controller.validateAutoComplete(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcon(t){this.validateIcons(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateList(t){this.controller.validateList(t)}validateMax(t){this.controller.validateMax(t)}validateMin(t){this.controller.validateMin(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateStep(t){this.controller.validateStep(t)}validateSuggestions(t){this.controller.validateSuggestions(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad()}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_max:["validateMax"],_min:["validateMin"],_name:["validateName"],_on:["validateOn"],_step:["validateStep"],_suggestions:["validateSuggestions"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};v.style={default:m};export{v as kol_input_range};
4
+ import{h as i,H as t,r as e,g as a}from"./index-a8be3649.js";import{n as s}from"./dev.utils-10b37a09.js";import{s as n,a as o}from"./reuse-d79ab469.js";import{p as d}from"./controller-fda7f4bb.js";import{g as r}from"./controller-80517d56.js";import{v as l}from"./suggestions-122d6cf1.js";import{w as h,e as p}from"./prop.validators-199a9714.js";import{I as u}from"./controller-icon-4b6a735e.js";import{m as c}from"./component-names-ac6a27ae.js";import"./a11y.tipps-902d8cd2.js";import"./hide-label-6ecf654c.js";import"./label-f00fb8dd.js";import"./events-fa760b68.js";import"./tab-index-184396ee.js";import"./associated.controller-907cc2c3.js";import"./index-14005aa7.js";import"./icons-fd7e7c70.js";class f extends u{constructor(t,e,i){super(t,e,i),this.component=t}validateAutoComplete(t){h(this.component,"_autoComplete",(t=>"string"==typeof t&&("on"===t||"off"===t)),new Set(["on | off"]),t)}validateList(t){Array.isArray(t)&&this.validateSuggestions(t.map((t=>t.value)))}validateMax(t){p(this.component,"_max",t)}validateMin(t){p(this.component,"_min",t)}validateStep(t){p(this.component,"_step",t)}validateSuggestions(t){l(this.component,t)}validateValue(t){p(this.component,"_value",t),this.setFormAssociatedValue(this.component.state._value)}componentWillLoad(){super.componentWillLoad(),this.validateAutoComplete(this.component._autoComplete),this.validateList(this.component._list),this.validateMax(this.component._max),this.validateMin(this.component._min),this.validateStep(this.component._step),this.validateSuggestions(this.component._suggestions),this.validateValue(this.component._value)}}const b=':host{--a11y-min-size:44px;background-color:white;color:black;font-family:Verdana}*{hyphens:auto;letter-spacing:inherit;word-break:break-word;word-spacing:inherit}[role=button],button:not([role=link]),.kol-input .input{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size)}a,button,h1,h2,h3,h4,h5,h6,input,option,select,textarea{font-family:inherit;font-size:inherit}.visually-hidden{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:is(a,button){background-color:transparent;border:none;margin:0;padding:0;width:100%;}[hidden]{display:none !important}:host{max-width:100%}*{box-sizing:border-box}.kol-span-wc{display:grid;place-items:center}.kol-span-wc>span{display:flex;place-items:center}a,button{cursor:pointer}.icon-only>.kol-span-wc>span>span{display:none}.hidden{display:none;visibility:hidden}.required label>span::after,.required legend>span::after{content:"*"}:host{display:block}input,textarea{cursor:text}input[type=checkbox],input[type=color],input[type=file],input[type=radio],input[type=range],label,option,select{cursor:pointer}input[type=color],input[type=date],input[type=datetime-local],input[type=email],input[type=file],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],select,select[multiple] option,textarea{font-size:calc(16rem / var(--kolibri-root-font-size, 16));width:100%}input[type=file]{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 10) 0.5em}select[multiple] option{padding:calc((var(--a11y-min-size) - (16rem / var(--kolibri-root-font-size, 16))) / 2) 0.5em}.kol-input.disabled :is(button,input,option,select,textarea,.input-label){cursor:not-allowed;opacity:0.5}.kol-input{display:grid}.kol-input .input-slot{flex-grow:1}input:not([type=checkbox],[type=radio]),select:not([multiple],[size]){height:2.75em}input:focus,option:focus,select:focus,textarea:focus{outline:0}.input{display:flex;align-items:center}.input>.kol-icon{display:grid;height:var(--a11y-min-size);place-items:center}.kol-input.required .input-tooltip .span-label::after{content:"*"}.inputs-wrapper{align-items:center;display:flex;flex-direction:row}input[type=number]{min-height:var(--a11y-min-size);min-width:var(--a11y-min-size);width:var(--kolibri-input-range--input-number--width)}input[type=range]{appearance:none;background-color:#d3d3d3;border:1px solid #000;display:inline-block;flex-grow:1;height:calc(8rem / var(--kolibri-root-font-size, 16));line-height:1.5em;padding:0;margin:0;width:0}input[type=range]::-webkit-slider-thumb{box-sizing:border-box;background-color:#000;height:20px;width:20px;border-radius:20px;cursor:pointer;-webkit-appearance:none}input[type=range]::-moz-range-thumb{box-sizing:border-box;background-color:#000;height:20px;width:20px;border-radius:20px;cursor:pointer;-moz-appearance:none}@media (prefers-contrast: more){::-webkit-slider-thumb{outline:1px solid currentColor}}',m=b,v=class{componentDidLoad(){var t;!this._value&&(null===(t=this.refInputRange)||void 0===t?void 0:t.value)&&this.validateValue(parseFloat(this.refInputRange.value))}render(){const{ariaDescribedBy:e}=r(this.state),a=Array.isArray(this.state._suggestions)&&this.state._suggestions.length>0,s=n(this.state._label);return i(t,{key:"f93c3dea4ab3e45fcb970c5a2b9ddf9b14d02122",class:"kol-input-range"},i(c,{key:"aade6d3df99093f8fa704fecb4e3bf04c04accf1",class:{range:!0,"hide-label":!!this.state._hideLabel},_disabled:this.state._disabled,_error:this.state._error,_hideError:this.state._hideError,_hideLabel:this.state._hideLabel,_hint:this.state._hint,_icons:this.state._icons,_id:this.state._id,_label:this.state._label,_tooltipAlign:this._tooltipAlign,_touched:this.state._touched},i("span",{key:"90c2707c95387a18d90c11c60f32b73a843b778a",slot:"label"},s?i("slot",null):this.state._label),i("div",{key:"af73f3f5934cc0fc489bdd1fed20c17de78480a2",slot:"input"},i("div",{key:"c4bf3b9854214b688315f46ac61d0d00de3d54b3",class:"inputs-wrapper",style:{"--kolibri-input-range--input-number--width":`${this.state._max}`.length+.5+"em"}},i("input",Object.assign({key:"72f23c2eb3116a917585c119b81627d4857b1f13",ref:this.catchInputRangeRef,title:"",accessKey:this.state._accessKey,"aria-describedby":e.length>0?e.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,"aria-hidden":"true",autoCapitalize:"off",autoComplete:this.state._autoComplete,autoCorrect:"off",disabled:this.state._disabled,list:a?`${this.state._id}-list`:void 0,max:this.state._max,min:this.state._min,name:this.state._name?`${this.state._name}-range`:void 0,spellcheck:"false",step:this.state._step,tabIndex:-1,type:"range",value:this.state._value},this.controller.onFacade,{onChange:this.onChange})),i("input",Object.assign({key:"31f21cc83972362e407f9030811368d98bb4a1d2",ref:this.catchInputNumberRef,title:"",accessKey:this.state._accessKey,"aria-describedby":e.length>0?e.join(" "):void 0,"aria-label":this.state._hideLabel&&"string"==typeof this.state._label?this.state._label:void 0,autoCapitalize:"off",autoComplete:this.state._autoComplete,autoCorrect:"off",disabled:this.state._disabled,id:this.state._id,list:a?`${this.state._id}-list`:void 0,max:this.state._max,min:this.state._min,name:this.state._name?`${this.state._name}-number`:void 0,step:this.state._step,type:"number",value:this.state._value},this.controller.onFacade,{onKeyDown:this.onKeyDown,onChange:this.onChange}))),a&&[i("datalist",{key:"074427f8c542ba1a81e6e0b93c473f4724f70826",id:`${this.state._id}-list`},this.state._suggestions.map((t=>i("option",{value:t}))))])))}constructor(t){e(this,t),this.catchInputNumberRef=t=>{var e;t&&(this.refInputNumber=t,o(this.host,t),!this._value&&(null===(e=this.refInputNumber)||void 0===e?void 0:e.value)&&this.validateValue(parseFloat(this.refInputNumber.value)))},this.catchInputRangeRef=t=>{t&&(this.refInputRange=t)},this.onChange=t=>{var e,i;let a=parseFloat(t.target.value);this.state._max&&a>this.state._max&&(a=this.state._max),this.state._min&&a<this.state._min&&(a=this.state._min),this.validateValue(a),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e.onChange)&&(null===(i=this.state._on)||void 0===i||i.onChange(t,a))},this.onKeyDown=t=>{"Enter"!==t.code&&"NumpadEnter"!==t.code||d({form:this.host,ref:this.refInputRange})},this._accessKey=void 0,this._alert=!0,this._autoComplete=void 0,this._disabled=!1,this._error=void 0,this._hideError=!1,this._hideLabel=!1,this._hint="",this._icon=void 0,this._icons=void 0,this._id=void 0,this._label=void 0,this._list=void 0,this._max=void 0,this._min=void 0,this._name=void 0,this._on=void 0,this._step=void 0,this._suggestions=void 0,this._syncValueBySelector=void 0,this._tabIndex=void 0,this._tooltipAlign="top",this._touched=!1,this._value=void 0,this.state={_autoComplete:"off",_hideError:!1,_id:`id-${s()}`,_label:"…",_suggestions:[]},this.controller=new f(this,"range",this.host)}validateAccessKey(t){this.controller.validateAccessKey(t)}validateAlert(t){this.controller.validateAlert(t)}validateAutoComplete(t){this.controller.validateAutoComplete(t)}validateDisabled(t){this.controller.validateDisabled(t)}validateError(t){this.controller.validateError(t)}validateHideError(t){this.controller.validateHideError(t)}validateHideLabel(t){this.controller.validateHideLabel(t)}validateHint(t){this.controller.validateHint(t)}validateIcon(t){this.validateIcons(t)}validateIcons(t){this.controller.validateIcons(t)}validateId(t){this.controller.validateId(t)}validateLabel(t){this.controller.validateLabel(t)}validateList(t){this.controller.validateList(t)}validateMax(t){this.controller.validateMax(t)}validateMin(t){this.controller.validateMin(t)}validateName(t){this.controller.validateName(t)}validateOn(t){this.controller.validateOn(t)}validateStep(t){this.controller.validateStep(t)}validateSuggestions(t){this.controller.validateSuggestions(t)}validateSyncValueBySelector(t){this.controller.validateSyncValueBySelector(t)}validateTabIndex(t){this.controller.validateTabIndex(t)}validateTouched(t){this.controller.validateTouched(t)}validateValue(t){this.controller.validateValue(t)}componentWillLoad(){this._alert=!0===this._alert,this._touched=!0===this._touched,this.controller.componentWillLoad()}get host(){return a(this)}static get watchers(){return{_accessKey:["validateAccessKey"],_alert:["validateAlert"],_autoComplete:["validateAutoComplete"],_disabled:["validateDisabled"],_error:["validateError"],_hideError:["validateHideError"],_hideLabel:["validateHideLabel"],_hint:["validateHint"],_icon:["validateIcon"],_icons:["validateIcons"],_id:["validateId"],_label:["validateLabel"],_list:["validateList"],_max:["validateMax"],_min:["validateMin"],_name:["validateName"],_on:["validateOn"],_step:["validateStep"],_suggestions:["validateSuggestions"],_syncValueBySelector:["validateSyncValueBySelector"],_tabIndex:["validateTabIndex"],_touched:["validateTouched"],_value:["validateValue"]}}};v.style={default:m};export{v as kol_input_range};