@solid-design-system/components 5.16.2-next.0 → 5.16.2-next.1

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 (618) hide show
  1. package/cdn/chunks/{chunk.QNIXOQEW.js → chunk.3DB2ELEL.js} +1 -1
  2. package/cdn/chunks/{chunk.U7FRUJCP.js → chunk.3ZRUHOGI.js} +1 -1
  3. package/cdn/chunks/{chunk.3VKPKJT4.js → chunk.5G7ZOEWT.js} +1 -1
  4. package/cdn/chunks/{chunk.SGIB3DYQ.js → chunk.5PA35WD2.js} +1 -1
  5. package/cdn/chunks/{chunk.TKHXP6O2.js → chunk.5ZPLQS6G.js} +1 -1
  6. package/cdn/chunks/{chunk.I5FWEUZV.js → chunk.5ZYFWIRD.js} +1 -1
  7. package/cdn/chunks/{chunk.BCGI3JHC.js → chunk.63IQ23S4.js} +1 -1
  8. package/cdn/chunks/{chunk.KPGRVUWN.js → chunk.66LOVPZM.js} +1 -1
  9. package/cdn/chunks/{chunk.4IHHF4BF.js → chunk.66OZDVLX.js} +1 -1
  10. package/cdn/chunks/{chunk.BWFYOVI3.js → chunk.6GHBG4PY.js} +1 -1
  11. package/cdn/chunks/{chunk.X6ZT6MLD.js → chunk.6Q6FRPBQ.js} +1 -1
  12. package/cdn/chunks/{chunk.LUATJXJQ.js → chunk.6XTQ6373.js} +1 -1
  13. package/cdn/chunks/{chunk.4UVLYSTM.js → chunk.6ZXO6XV7.js} +1 -1
  14. package/cdn/chunks/{chunk.5L4AEXM2.js → chunk.7JAXJRX2.js} +1 -1
  15. package/cdn/chunks/{chunk.4I6VQFJI.js → chunk.ALIY2YIR.js} +1 -1
  16. package/cdn/chunks/{chunk.LV3LCBSG.js → chunk.AZC2MB6N.js} +1 -1
  17. package/cdn/chunks/{chunk.EYR25GUX.js → chunk.BL5NWLDW.js} +1 -1
  18. package/cdn/chunks/{chunk.IJ2YZYNV.js → chunk.BTMWUMPI.js} +1 -1
  19. package/cdn/chunks/{chunk.3MVF6H4N.js → chunk.CINQCAVV.js} +1 -1
  20. package/cdn/chunks/{chunk.RBHJIKZL.js → chunk.E7DVDO4P.js} +1 -1
  21. package/cdn/chunks/{chunk.RLPQ5X67.js → chunk.EGKVLCBO.js} +1 -1
  22. package/cdn/chunks/{chunk.LVTMZQJV.js → chunk.EIG3V7LV.js} +1 -1
  23. package/cdn/chunks/{chunk.X7NSZVBU.js → chunk.F3OBG73C.js} +1 -1
  24. package/cdn/chunks/{chunk.6OEEW6XA.js → chunk.FYS76H7M.js} +1 -1
  25. package/cdn/chunks/{chunk.X3JCABXB.js → chunk.GZN62V5M.js} +1 -1
  26. package/cdn/chunks/{chunk.RNXCNTZ7.js → chunk.H7N4XIFF.js} +1 -1
  27. package/cdn/chunks/{chunk.ENJXLYMY.js → chunk.HO5NN73W.js} +1 -1
  28. package/cdn/chunks/{chunk.2AUHDXWC.js → chunk.HWXFA3JT.js} +1 -1
  29. package/cdn/chunks/{chunk.STI5RRSU.js → chunk.IQUVFHYA.js} +1 -1
  30. package/cdn/chunks/{chunk.RLENF6CV.js → chunk.J3HOSC6V.js} +1 -1
  31. package/cdn/chunks/{chunk.PTA76UAK.js → chunk.J4LE3LKP.js} +1 -1
  32. package/cdn/chunks/{chunk.YUOF3P5L.js → chunk.JGU23CP4.js} +1 -1
  33. package/cdn/chunks/{chunk.R62WGEQY.js → chunk.KL3CEU6E.js} +1 -1
  34. package/cdn/chunks/{chunk.QEBCSXFE.js → chunk.LVDWFX3X.js} +1 -1
  35. package/cdn/chunks/{chunk.67FPAI7X.js → chunk.MPLKGS34.js} +1 -1
  36. package/cdn/chunks/{chunk.IDZGQPGK.js → chunk.MQ6HTONQ.js} +1 -1
  37. package/cdn/chunks/{chunk.ZFOZJ36J.js → chunk.MWU6TZ4N.js} +1 -1
  38. package/cdn/chunks/{chunk.KIP6ZFAM.js → chunk.NMHY6H5N.js} +1 -1
  39. package/cdn/chunks/{chunk.SYZXP5BK.js → chunk.OXYZANQK.js} +1 -1
  40. package/cdn/chunks/{chunk.CJNOMH3T.js → chunk.P3QDLITO.js} +1 -1
  41. package/cdn/chunks/{chunk.45AHR6PI.js → chunk.PES7MZKA.js} +1 -1
  42. package/cdn/chunks/{chunk.UTR4DHLT.js → chunk.Q36WGVZ7.js} +1 -1
  43. package/cdn/chunks/{chunk.LTQPSLZX.js → chunk.RJVGGY3Q.js} +1 -1
  44. package/cdn/chunks/{chunk.IL6J56LC.js → chunk.RXQYBUHG.js} +1 -1
  45. package/cdn/chunks/chunk.S4EKTV5A.js +2 -0
  46. package/cdn/chunks/{chunk.ZTFDYBBO.js → chunk.S5SNELX3.js} +1 -1
  47. package/cdn/chunks/{chunk.5BQVQUB3.js → chunk.U6FGIHUI.js} +1 -1
  48. package/cdn/chunks/{chunk.N3UOZUQ7.js → chunk.UVDP4CO5.js} +1 -1
  49. package/cdn/chunks/{chunk.Z64LNQ5C.js → chunk.VA5ZPE34.js} +1 -1
  50. package/cdn/chunks/{chunk.UP6S5R5Q.js → chunk.VGYX7TTE.js} +1 -1
  51. package/cdn/chunks/{chunk.4U5HTMIG.js → chunk.VHHOKYE5.js} +1 -1
  52. package/cdn/chunks/{chunk.CO74B4DP.js → chunk.WUWSF33N.js} +1 -1
  53. package/cdn/chunks/{chunk.HNW7UQM6.js → chunk.XG6CO665.js} +1 -1
  54. package/cdn/chunks/{chunk.FK5L4QA6.js → chunk.XHDZVSCR.js} +1 -1
  55. package/cdn/chunks/{chunk.BZZT6LE2.js → chunk.XIRAK67B.js} +1 -1
  56. package/cdn/chunks/{chunk.AVBQMWIA.js → chunk.YL7YHMIF.js} +1 -1
  57. package/cdn/chunks/{chunk.FBLYG7TQ.js → chunk.YUPZE4GS.js} +1 -1
  58. package/cdn/chunks/{chunk.C26QR5OE.js → chunk.YXMHHML2.js} +1 -1
  59. package/cdn/chunks/{chunk.FJJG45JX.js → chunk.ZATYZ65D.js} +1 -1
  60. package/cdn/components/accordion/accordion.js +1 -1
  61. package/cdn/components/accordion-group/accordion-group.js +1 -1
  62. package/cdn/components/animation/animation.js +1 -1
  63. package/cdn/components/audio/audio.js +1 -1
  64. package/cdn/components/badge/badge.js +1 -1
  65. package/cdn/components/brandshape/brandshape.js +1 -1
  66. package/cdn/components/breadcrumb/breadcrumb.js +1 -1
  67. package/cdn/components/breadcrumb-item/breadcrumb-item.js +1 -1
  68. package/cdn/components/button/button.js +1 -1
  69. package/cdn/components/button-group/button-group.js +1 -1
  70. package/cdn/components/carousel/carousel.js +1 -1
  71. package/cdn/components/carousel-item/carousel-item.js +1 -1
  72. package/cdn/components/checkbox/checkbox.js +1 -1
  73. package/cdn/components/checkbox-group/checkbox-group.js +1 -1
  74. package/cdn/components/combobox/combobox.js +1 -1
  75. package/cdn/components/datepicker/datepicker.js +1 -1
  76. package/cdn/components/dialog/dialog.js +1 -1
  77. package/cdn/components/divider/divider.js +1 -1
  78. package/cdn/components/drawer/drawer.js +1 -1
  79. package/cdn/components/dropdown/dropdown.js +1 -1
  80. package/cdn/components/expandable/expandable.js +1 -1
  81. package/cdn/components/flipcard/flipcard.js +1 -1
  82. package/cdn/components/header/header.js +1 -1
  83. package/cdn/components/icon/icon.js +1 -1
  84. package/cdn/components/include/include.js +1 -1
  85. package/cdn/components/input/input.js +1 -1
  86. package/cdn/components/link/link.js +1 -1
  87. package/cdn/components/loader/loader.js +1 -1
  88. package/cdn/components/map-marker/map-marker.js +1 -1
  89. package/cdn/components/menu/menu.js +1 -1
  90. package/cdn/components/menu-item/menu-item.js +1 -1
  91. package/cdn/components/navigation-item/navigation-item.js +1 -1
  92. package/cdn/components/notification/notification.js +1 -1
  93. package/cdn/components/optgroup/optgroup.js +1 -1
  94. package/cdn/components/option/option.js +1 -1
  95. package/cdn/components/popup/popup.js +1 -1
  96. package/cdn/components/quickfact/quickfact.js +1 -1
  97. package/cdn/components/radio/radio.js +1 -1
  98. package/cdn/components/radio-button/radio-button.js +1 -1
  99. package/cdn/components/radio-group/radio-group.js +1 -1
  100. package/cdn/components/range/range.js +1 -1
  101. package/cdn/components/range-tick/range-tick.js +1 -1
  102. package/cdn/components/scrollable/scrollable.js +1 -1
  103. package/cdn/components/select/select.js +1 -1
  104. package/cdn/components/spinner/spinner.js +1 -1
  105. package/cdn/components/step/step.js +1 -1
  106. package/cdn/components/step-group/step-group.js +1 -1
  107. package/cdn/components/switch/switch.js +1 -1
  108. package/cdn/components/tab/tab.js +1 -1
  109. package/cdn/components/tab-group/tab-group.js +1 -1
  110. package/cdn/components/tab-panel/tab-panel.js +1 -1
  111. package/cdn/components/tag/tag.js +1 -1
  112. package/cdn/components/teaser/teaser.js +1 -1
  113. package/cdn/components/teaser-media/teaser-media.js +1 -1
  114. package/cdn/components/textarea/textarea.js +1 -1
  115. package/cdn/components/theme-listener/theme-listener.js +1 -1
  116. package/cdn/components/tooltip/tooltip.js +1 -1
  117. package/cdn/components/video/video.js +1 -1
  118. package/cdn/custom-elements.json +1 -1
  119. package/cdn/solid-components.bundle.js +3 -3
  120. package/cdn/solid-components.iife.js +3 -3
  121. package/cdn/solid-components.js +1 -1
  122. package/cdn/utilities/autocomplete-config.js +1 -1
  123. package/cdn/web-types.json +1 -1
  124. package/cdn-versioned/chunks/{chunk.QNIXOQEW.js → chunk.3DB2ELEL.js} +2 -2
  125. package/cdn-versioned/chunks/{chunk.U7FRUJCP.js → chunk.3ZRUHOGI.js} +2 -2
  126. package/cdn-versioned/chunks/{chunk.3VKPKJT4.js → chunk.5G7ZOEWT.js} +5 -5
  127. package/cdn-versioned/chunks/{chunk.SGIB3DYQ.js → chunk.5PA35WD2.js} +2 -2
  128. package/cdn-versioned/chunks/chunk.5TUC644H.js +2 -2
  129. package/cdn-versioned/chunks/{chunk.TKHXP6O2.js → chunk.5ZPLQS6G.js} +2 -2
  130. package/cdn-versioned/chunks/{chunk.I5FWEUZV.js → chunk.5ZYFWIRD.js} +2 -2
  131. package/cdn-versioned/chunks/{chunk.BCGI3JHC.js → chunk.63IQ23S4.js} +2 -2
  132. package/cdn-versioned/chunks/{chunk.KPGRVUWN.js → chunk.66LOVPZM.js} +2 -2
  133. package/cdn-versioned/chunks/{chunk.4IHHF4BF.js → chunk.66OZDVLX.js} +2 -2
  134. package/cdn-versioned/chunks/{chunk.BWFYOVI3.js → chunk.6GHBG4PY.js} +2 -2
  135. package/cdn-versioned/chunks/{chunk.X6ZT6MLD.js → chunk.6Q6FRPBQ.js} +2 -2
  136. package/cdn-versioned/chunks/{chunk.LUATJXJQ.js → chunk.6XTQ6373.js} +2 -2
  137. package/cdn-versioned/chunks/{chunk.4UVLYSTM.js → chunk.6ZXO6XV7.js} +2 -2
  138. package/cdn-versioned/chunks/{chunk.5L4AEXM2.js → chunk.7JAXJRX2.js} +2 -2
  139. package/cdn-versioned/chunks/{chunk.4I6VQFJI.js → chunk.ALIY2YIR.js} +2 -2
  140. package/cdn-versioned/chunks/{chunk.LV3LCBSG.js → chunk.AZC2MB6N.js} +2 -2
  141. package/cdn-versioned/chunks/{chunk.EYR25GUX.js → chunk.BL5NWLDW.js} +2 -2
  142. package/cdn-versioned/chunks/{chunk.IJ2YZYNV.js → chunk.BTMWUMPI.js} +2 -2
  143. package/cdn-versioned/chunks/chunk.CDP46OS4.js +1 -1
  144. package/cdn-versioned/chunks/{chunk.3MVF6H4N.js → chunk.CINQCAVV.js} +2 -2
  145. package/cdn-versioned/chunks/{chunk.RBHJIKZL.js → chunk.E7DVDO4P.js} +2 -2
  146. package/cdn-versioned/chunks/{chunk.RLPQ5X67.js → chunk.EGKVLCBO.js} +2 -2
  147. package/cdn-versioned/chunks/{chunk.LVTMZQJV.js → chunk.EIG3V7LV.js} +2 -2
  148. package/cdn-versioned/chunks/{chunk.X7NSZVBU.js → chunk.F3OBG73C.js} +2 -2
  149. package/cdn-versioned/chunks/{chunk.6OEEW6XA.js → chunk.FYS76H7M.js} +2 -2
  150. package/cdn-versioned/chunks/{chunk.X3JCABXB.js → chunk.GZN62V5M.js} +2 -2
  151. package/cdn-versioned/chunks/{chunk.RNXCNTZ7.js → chunk.H7N4XIFF.js} +2 -2
  152. package/cdn-versioned/chunks/{chunk.ENJXLYMY.js → chunk.HO5NN73W.js} +2 -2
  153. package/cdn-versioned/chunks/{chunk.2AUHDXWC.js → chunk.HWXFA3JT.js} +2 -2
  154. package/cdn-versioned/chunks/{chunk.STI5RRSU.js → chunk.IQUVFHYA.js} +2 -2
  155. package/cdn-versioned/chunks/{chunk.RLENF6CV.js → chunk.J3HOSC6V.js} +2 -2
  156. package/cdn-versioned/chunks/{chunk.PTA76UAK.js → chunk.J4LE3LKP.js} +2 -2
  157. package/cdn-versioned/chunks/{chunk.YUOF3P5L.js → chunk.JGU23CP4.js} +2 -2
  158. package/cdn-versioned/chunks/chunk.JS2HQ2N4.js +1 -1
  159. package/cdn-versioned/chunks/{chunk.R62WGEQY.js → chunk.KL3CEU6E.js} +3 -3
  160. package/cdn-versioned/chunks/{chunk.QEBCSXFE.js → chunk.LVDWFX3X.js} +2 -2
  161. package/cdn-versioned/chunks/{chunk.67FPAI7X.js → chunk.MPLKGS34.js} +2 -2
  162. package/cdn-versioned/chunks/{chunk.IDZGQPGK.js → chunk.MQ6HTONQ.js} +2 -2
  163. package/cdn-versioned/chunks/{chunk.ZFOZJ36J.js → chunk.MWU6TZ4N.js} +2 -2
  164. package/cdn-versioned/chunks/{chunk.KIP6ZFAM.js → chunk.NMHY6H5N.js} +7 -7
  165. package/cdn-versioned/chunks/{chunk.SYZXP5BK.js → chunk.OXYZANQK.js} +2 -2
  166. package/cdn-versioned/chunks/{chunk.CJNOMH3T.js → chunk.P3QDLITO.js} +2 -2
  167. package/cdn-versioned/chunks/{chunk.45AHR6PI.js → chunk.PES7MZKA.js} +1 -1
  168. package/cdn-versioned/chunks/{chunk.UTR4DHLT.js → chunk.Q36WGVZ7.js} +5 -5
  169. package/cdn-versioned/chunks/{chunk.LTQPSLZX.js → chunk.RJVGGY3Q.js} +2 -2
  170. package/cdn-versioned/chunks/{chunk.IL6J56LC.js → chunk.RXQYBUHG.js} +2 -2
  171. package/cdn-versioned/chunks/chunk.S4EKTV5A.js +2 -0
  172. package/cdn-versioned/chunks/{chunk.ZTFDYBBO.js → chunk.S5SNELX3.js} +2 -2
  173. package/cdn-versioned/chunks/{chunk.5BQVQUB3.js → chunk.U6FGIHUI.js} +2 -2
  174. package/cdn-versioned/chunks/{chunk.N3UOZUQ7.js → chunk.UVDP4CO5.js} +2 -2
  175. package/cdn-versioned/chunks/{chunk.Z64LNQ5C.js → chunk.VA5ZPE34.js} +2 -2
  176. package/cdn-versioned/chunks/{chunk.UP6S5R5Q.js → chunk.VGYX7TTE.js} +2 -2
  177. package/cdn-versioned/chunks/{chunk.4U5HTMIG.js → chunk.VHHOKYE5.js} +2 -2
  178. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  179. package/cdn-versioned/chunks/{chunk.CO74B4DP.js → chunk.WUWSF33N.js} +2 -2
  180. package/cdn-versioned/chunks/{chunk.HNW7UQM6.js → chunk.XG6CO665.js} +2 -2
  181. package/cdn-versioned/chunks/{chunk.FK5L4QA6.js → chunk.XHDZVSCR.js} +2 -2
  182. package/cdn-versioned/chunks/{chunk.BZZT6LE2.js → chunk.XIRAK67B.js} +2 -2
  183. package/cdn-versioned/chunks/{chunk.AVBQMWIA.js → chunk.YL7YHMIF.js} +3 -3
  184. package/cdn-versioned/chunks/{chunk.FBLYG7TQ.js → chunk.YUPZE4GS.js} +2 -2
  185. package/cdn-versioned/chunks/{chunk.C26QR5OE.js → chunk.YXMHHML2.js} +2 -2
  186. package/cdn-versioned/chunks/{chunk.FJJG45JX.js → chunk.ZATYZ65D.js} +2 -2
  187. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  188. package/cdn-versioned/components/accordion/accordion.js +1 -1
  189. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  190. package/cdn-versioned/components/accordion-group/accordion-group.js +1 -1
  191. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  192. package/cdn-versioned/components/animation/animation.js +1 -1
  193. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  194. package/cdn-versioned/components/audio/audio.js +1 -1
  195. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  196. package/cdn-versioned/components/badge/badge.js +1 -1
  197. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  198. package/cdn-versioned/components/brandshape/brandshape.js +1 -1
  199. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  200. package/cdn-versioned/components/breadcrumb/breadcrumb.js +1 -1
  201. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  202. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.js +1 -1
  203. package/cdn-versioned/components/button/button.d.ts +1 -1
  204. package/cdn-versioned/components/button/button.js +1 -1
  205. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  206. package/cdn-versioned/components/button-group/button-group.js +1 -1
  207. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  208. package/cdn-versioned/components/carousel/carousel.js +1 -1
  209. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  210. package/cdn-versioned/components/carousel-item/carousel-item.js +1 -1
  211. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  212. package/cdn-versioned/components/checkbox/checkbox.js +1 -1
  213. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  214. package/cdn-versioned/components/checkbox-group/checkbox-group.js +1 -1
  215. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  216. package/cdn-versioned/components/combobox/combobox.js +1 -1
  217. package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
  218. package/cdn-versioned/components/datepicker/datepicker.js +1 -1
  219. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  220. package/cdn-versioned/components/dialog/dialog.js +1 -1
  221. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  222. package/cdn-versioned/components/divider/divider.js +1 -1
  223. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  224. package/cdn-versioned/components/drawer/drawer.js +1 -1
  225. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  226. package/cdn-versioned/components/dropdown/dropdown.js +1 -1
  227. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  228. package/cdn-versioned/components/expandable/expandable.js +1 -1
  229. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  230. package/cdn-versioned/components/flipcard/flipcard.js +1 -1
  231. package/cdn-versioned/components/header/header.d.ts +1 -1
  232. package/cdn-versioned/components/header/header.js +1 -1
  233. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  234. package/cdn-versioned/components/icon/icon.js +1 -1
  235. package/cdn-versioned/components/include/include.d.ts +1 -1
  236. package/cdn-versioned/components/include/include.js +1 -1
  237. package/cdn-versioned/components/input/input.d.ts +1 -1
  238. package/cdn-versioned/components/input/input.js +1 -1
  239. package/cdn-versioned/components/link/link.d.ts +1 -1
  240. package/cdn-versioned/components/link/link.js +1 -1
  241. package/cdn-versioned/components/loader/loader.d.ts +1 -1
  242. package/cdn-versioned/components/loader/loader.js +1 -1
  243. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  244. package/cdn-versioned/components/map-marker/map-marker.js +1 -1
  245. package/cdn-versioned/components/menu/menu.d.ts +1 -1
  246. package/cdn-versioned/components/menu/menu.js +1 -1
  247. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  248. package/cdn-versioned/components/menu-item/menu-item.js +1 -1
  249. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  250. package/cdn-versioned/components/navigation-item/navigation-item.js +1 -1
  251. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  252. package/cdn-versioned/components/notification/notification.js +1 -1
  253. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  254. package/cdn-versioned/components/optgroup/optgroup.js +1 -1
  255. package/cdn-versioned/components/option/option.d.ts +1 -1
  256. package/cdn-versioned/components/option/option.js +1 -1
  257. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  258. package/cdn-versioned/components/popup/popup.js +1 -1
  259. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  260. package/cdn-versioned/components/quickfact/quickfact.js +1 -1
  261. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  262. package/cdn-versioned/components/radio/radio.js +1 -1
  263. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  264. package/cdn-versioned/components/radio-button/radio-button.js +1 -1
  265. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  266. package/cdn-versioned/components/radio-group/radio-group.js +1 -1
  267. package/cdn-versioned/components/range/range.d.ts +1 -1
  268. package/cdn-versioned/components/range/range.js +1 -1
  269. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  270. package/cdn-versioned/components/range-tick/range-tick.js +1 -1
  271. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  272. package/cdn-versioned/components/scrollable/scrollable.js +1 -1
  273. package/cdn-versioned/components/select/select.d.ts +1 -1
  274. package/cdn-versioned/components/select/select.js +1 -1
  275. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  276. package/cdn-versioned/components/spinner/spinner.js +1 -1
  277. package/cdn-versioned/components/step/step.d.ts +1 -1
  278. package/cdn-versioned/components/step/step.js +1 -1
  279. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  280. package/cdn-versioned/components/step-group/step-group.js +1 -1
  281. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  282. package/cdn-versioned/components/switch/switch.js +1 -1
  283. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  284. package/cdn-versioned/components/tab/tab.js +1 -1
  285. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  286. package/cdn-versioned/components/tab-group/tab-group.js +1 -1
  287. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  288. package/cdn-versioned/components/tab-panel/tab-panel.js +1 -1
  289. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  290. package/cdn-versioned/components/tag/tag.js +1 -1
  291. package/cdn-versioned/components/teaser/teaser.js +1 -1
  292. package/cdn-versioned/components/teaser-media/teaser-media.js +1 -1
  293. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  294. package/cdn-versioned/components/textarea/textarea.js +1 -1
  295. package/cdn-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  296. package/cdn-versioned/components/theme-listener/theme-listener.js +1 -1
  297. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  298. package/cdn-versioned/components/tooltip/tooltip.js +1 -1
  299. package/cdn-versioned/components/video/video.d.ts +1 -1
  300. package/cdn-versioned/components/video/video.js +1 -1
  301. package/cdn-versioned/custom-elements.json +248 -248
  302. package/cdn-versioned/internal/form.js +3 -3
  303. package/cdn-versioned/solid-components.bundle.js +74 -74
  304. package/cdn-versioned/solid-components.css +2 -2
  305. package/cdn-versioned/solid-components.iife.js +74 -74
  306. package/cdn-versioned/solid-components.js +1 -1
  307. package/cdn-versioned/utilities/autocomplete-config.js +1 -1
  308. package/cdn-versioned/vscode.html-custom-data.json +94 -94
  309. package/cdn-versioned/web-types.json +163 -163
  310. package/dist/chunks/{chunk.K6IPCLUI.js → chunk.2ER4MXZC.js} +1 -1
  311. package/dist/chunks/{chunk.CSGRFVC4.js → chunk.3BVNSUFD.js} +1 -1
  312. package/dist/chunks/{chunk.4VWYFR7Q.js → chunk.4CD5TTGT.js} +1 -1
  313. package/dist/chunks/{chunk.ZHMLJZFU.js → chunk.4FY6QRJ7.js} +1 -1
  314. package/dist/chunks/{chunk.OWPID45T.js → chunk.5D7C4MXB.js} +1 -1
  315. package/dist/chunks/{chunk.B2V3A3FX.js → chunk.5H7CWETG.js} +1 -1
  316. package/dist/chunks/{chunk.2EMJYE7P.js → chunk.5WAWAUSM.js} +1 -1
  317. package/dist/chunks/{chunk.FO5HZGHW.js → chunk.5ZRRM6UH.js} +1 -1
  318. package/dist/chunks/{chunk.MQNVPN2V.js → chunk.662O4CMZ.js} +1 -1
  319. package/dist/chunks/{chunk.GXJOE2HU.js → chunk.7RSL7EOY.js} +1 -1
  320. package/dist/chunks/{chunk.LQJSNWYP.js → chunk.7XXRAMBH.js} +1 -1
  321. package/dist/chunks/{chunk.ARM7CJQL.js → chunk.A3YMYTLW.js} +1 -1
  322. package/dist/chunks/{chunk.AKPL6DO2.js → chunk.AEFLWSEK.js} +2 -2
  323. package/dist/chunks/{chunk.QFCVUWPB.js → chunk.ANYT6TR4.js} +1 -1
  324. package/dist/chunks/{chunk.UG7ABG7Q.js → chunk.BFDY2E6R.js} +1 -1
  325. package/dist/chunks/{chunk.7OG77Q72.js → chunk.CR5C6OL5.js} +1 -1
  326. package/dist/chunks/{chunk.CNC35623.js → chunk.CT4BIUEI.js} +1 -1
  327. package/dist/chunks/{chunk.Y4AVD2WJ.js → chunk.DFQ2QJI5.js} +1 -1
  328. package/dist/chunks/{chunk.OEQMLH45.js → chunk.DJ3WYVWV.js} +1 -1
  329. package/dist/chunks/{chunk.P23KPMOU.js → chunk.E7L2RBML.js} +1 -1
  330. package/dist/chunks/{chunk.LTRLNXRR.js → chunk.EORXKFFT.js} +1 -1
  331. package/dist/chunks/{chunk.MFEFWNU4.js → chunk.F4A7G427.js} +1 -1
  332. package/dist/chunks/{chunk.NXR5NJ4D.js → chunk.FMSAUZWF.js} +1 -1
  333. package/dist/chunks/{chunk.MZYFWNJ2.js → chunk.FPMNMEXR.js} +1 -1
  334. package/dist/chunks/{chunk.QXA4KBMD.js → chunk.HB45IF2T.js} +1 -1
  335. package/dist/chunks/{chunk.JY6FHQV4.js → chunk.M5EPD6OZ.js} +2 -2
  336. package/dist/chunks/{chunk.XE2RRGVH.js → chunk.MB47FVBP.js} +1 -1
  337. package/dist/chunks/{chunk.QYH72BBU.js → chunk.MFE2NCVX.js} +1 -1
  338. package/dist/chunks/{chunk.4VCWVPDC.js → chunk.N5XK43AK.js} +1 -1
  339. package/dist/chunks/{chunk.JFYEW3KW.js → chunk.NCZBBZOR.js} +1 -1
  340. package/dist/chunks/{chunk.RDTKXRB7.js → chunk.NK5K5MMW.js} +1 -1
  341. package/dist/chunks/{chunk.35CDD4AI.js → chunk.NKPJM2WV.js} +1 -1
  342. package/dist/chunks/{chunk.X5F5FYN6.js → chunk.O6OCXI2L.js} +1 -1
  343. package/dist/chunks/{chunk.X5DOMMVJ.js → chunk.OBQTYYBW.js} +1 -1
  344. package/dist/chunks/{chunk.DPUEJBCS.js → chunk.OK3VBJRJ.js} +1 -1
  345. package/dist/chunks/{chunk.LRYVZCZB.js → chunk.PF4UKMOY.js} +3 -3
  346. package/dist/chunks/{chunk.S2LPDX6A.js → chunk.PJOYWTXL.js} +1 -1
  347. package/dist/chunks/{chunk.2G4FUBDQ.js → chunk.QHUH3UZT.js} +1 -1
  348. package/dist/chunks/{chunk.P6IWIVAX.js → chunk.QJ2PELD5.js} +1 -1
  349. package/dist/chunks/{chunk.B2OI7BBP.js → chunk.RIWKWSAL.js} +1 -1
  350. package/dist/chunks/{chunk.KPOYD3HP.js → chunk.RY4KWEME.js} +1 -1
  351. package/dist/chunks/{chunk.J24ES3ER.js → chunk.RZGUWSF6.js} +1 -1
  352. package/dist/chunks/{chunk.CJDJQNJE.js → chunk.SIUXYHUU.js} +1 -1
  353. package/dist/chunks/{chunk.5TXUJJY7.js → chunk.SZDLCBRQ.js} +1 -1
  354. package/dist/chunks/{chunk.66ESUTRL.js → chunk.TIOVWVCD.js} +1 -1
  355. package/dist/chunks/{chunk.KCQCBXXE.js → chunk.TXNCIVE5.js} +1 -1
  356. package/dist/chunks/{chunk.N6SDJ5F4.js → chunk.U7ASTWXS.js} +1 -1
  357. package/dist/chunks/{chunk.5ERDGBQ2.js → chunk.UIXXR3N5.js} +1 -1
  358. package/dist/chunks/{chunk.ZDLONKYZ.js → chunk.VN6V46I7.js} +1 -1
  359. package/dist/chunks/{chunk.TCIKEWTO.js → chunk.WSRHW32L.js} +1 -1
  360. package/dist/chunks/{chunk.TBWF2AZD.js → chunk.WSXDUNN7.js} +1 -1
  361. package/dist/chunks/{chunk.B267MNT3.js → chunk.WSXRRFIW.js} +1 -1
  362. package/dist/chunks/{chunk.3QRVTHVA.js → chunk.WTFF4KWO.js} +1 -1
  363. package/dist/chunks/{chunk.2LWMWEI6.js → chunk.XNEWFPWE.js} +1 -1
  364. package/dist/chunks/{chunk.PAHCSY5I.js → chunk.YBIM4TC7.js} +1 -1
  365. package/dist/chunks/{chunk.B4X6CPEB.js → chunk.YLQNXR3G.js} +2 -2
  366. package/dist/chunks/{chunk.GY73LR3S.js → chunk.ZBAABZKL.js} +1 -1
  367. package/dist/chunks/{chunk.LNHMJS3O.js → chunk.ZRJRFFVA.js} +1 -1
  368. package/dist/chunks/{chunk.ML26ETGW.js → chunk.ZXOKRAZP.js} +1 -1
  369. package/dist/components/accordion/accordion.js +3 -3
  370. package/dist/components/accordion-group/accordion-group.js +4 -4
  371. package/dist/components/animation/animation.js +2 -2
  372. package/dist/components/audio/audio.js +6 -6
  373. package/dist/components/badge/badge.js +2 -2
  374. package/dist/components/brandshape/brandshape.js +2 -2
  375. package/dist/components/breadcrumb/breadcrumb.js +2 -2
  376. package/dist/components/breadcrumb-item/breadcrumb-item.js +2 -2
  377. package/dist/components/button/button.js +3 -3
  378. package/dist/components/button-group/button-group.js +2 -2
  379. package/dist/components/carousel/carousel.js +4 -4
  380. package/dist/components/carousel-item/carousel-item.js +2 -2
  381. package/dist/components/checkbox/checkbox.js +3 -3
  382. package/dist/components/checkbox-group/checkbox-group.js +3 -3
  383. package/dist/components/combobox/combobox.js +5 -5
  384. package/dist/components/datepicker/datepicker.js +2 -2
  385. package/dist/components/dialog/dialog.js +5 -5
  386. package/dist/components/divider/divider.js +2 -2
  387. package/dist/components/drawer/drawer.js +5 -5
  388. package/dist/components/dropdown/dropdown.js +3 -3
  389. package/dist/components/expandable/expandable.js +3 -3
  390. package/dist/components/flipcard/flipcard.js +5 -5
  391. package/dist/components/header/header.js +2 -2
  392. package/dist/components/icon/icon.js +2 -2
  393. package/dist/components/include/include.js +2 -2
  394. package/dist/components/input/input.js +3 -3
  395. package/dist/components/link/link.js +2 -2
  396. package/dist/components/loader/loader.js +2 -2
  397. package/dist/components/map-marker/map-marker.js +2 -2
  398. package/dist/components/menu/menu.js +2 -2
  399. package/dist/components/menu-item/menu-item.js +2 -2
  400. package/dist/components/navigation-item/navigation-item.js +4 -4
  401. package/dist/components/notification/notification.js +5 -5
  402. package/dist/components/optgroup/optgroup.js +3 -3
  403. package/dist/components/option/option.js +3 -3
  404. package/dist/components/popup/popup.js +2 -2
  405. package/dist/components/quickfact/quickfact.js +4 -4
  406. package/dist/components/radio/radio.js +2 -2
  407. package/dist/components/radio-button/radio-button.js +2 -2
  408. package/dist/components/radio-group/radio-group.js +4 -4
  409. package/dist/components/range/range.js +2 -2
  410. package/dist/components/range-tick/range-tick.js +2 -2
  411. package/dist/components/scrollable/scrollable.js +3 -3
  412. package/dist/components/select/select.js +5 -5
  413. package/dist/components/spinner/spinner.js +2 -2
  414. package/dist/components/step/step.js +3 -3
  415. package/dist/components/step-group/step-group.js +2 -2
  416. package/dist/components/switch/switch.js +2 -2
  417. package/dist/components/tab/tab.js +2 -2
  418. package/dist/components/tab-group/tab-group.js +3 -3
  419. package/dist/components/tab-panel/tab-panel.js +2 -2
  420. package/dist/components/tag/tag.js +3 -3
  421. package/dist/components/teaser/teaser.js +2 -2
  422. package/dist/components/teaser-media/teaser-media.js +2 -2
  423. package/dist/components/textarea/textarea.js +3 -3
  424. package/dist/components/theme-listener/theme-listener.js +2 -2
  425. package/dist/components/tooltip/tooltip.js +4 -4
  426. package/dist/components/video/video.js +3 -3
  427. package/dist/custom-elements.json +1 -1
  428. package/dist/solid-components.js +59 -59
  429. package/dist/utilities/autocomplete-config.js +2 -2
  430. package/dist/web-types.json +1 -1
  431. package/dist-versioned/chunks/{chunk.K6IPCLUI.js → chunk.2ER4MXZC.js} +2 -2
  432. package/dist-versioned/chunks/{chunk.CSGRFVC4.js → chunk.3BVNSUFD.js} +2 -2
  433. package/dist-versioned/chunks/{chunk.4VWYFR7Q.js → chunk.4CD5TTGT.js} +5 -5
  434. package/dist-versioned/chunks/{chunk.ZHMLJZFU.js → chunk.4FY6QRJ7.js} +4 -4
  435. package/dist-versioned/chunks/{chunk.OWPID45T.js → chunk.5D7C4MXB.js} +3 -3
  436. package/dist-versioned/chunks/{chunk.B2V3A3FX.js → chunk.5H7CWETG.js} +3 -3
  437. package/dist-versioned/chunks/{chunk.2EMJYE7P.js → chunk.5WAWAUSM.js} +3 -3
  438. package/dist-versioned/chunks/{chunk.FO5HZGHW.js → chunk.5ZRRM6UH.js} +3 -3
  439. package/dist-versioned/chunks/{chunk.MQNVPN2V.js → chunk.662O4CMZ.js} +13 -13
  440. package/dist-versioned/chunks/{chunk.GXJOE2HU.js → chunk.7RSL7EOY.js} +7 -7
  441. package/dist-versioned/chunks/{chunk.LQJSNWYP.js → chunk.7XXRAMBH.js} +2 -2
  442. package/dist-versioned/chunks/{chunk.ARM7CJQL.js → chunk.A3YMYTLW.js} +5 -5
  443. package/dist-versioned/chunks/chunk.AAY5JRCW.js +4 -4
  444. package/dist-versioned/chunks/{chunk.AKPL6DO2.js → chunk.AEFLWSEK.js} +14 -14
  445. package/dist-versioned/chunks/{chunk.QFCVUWPB.js → chunk.ANYT6TR4.js} +2 -2
  446. package/dist-versioned/chunks/{chunk.UG7ABG7Q.js → chunk.BFDY2E6R.js} +12 -12
  447. package/dist-versioned/chunks/{chunk.7OG77Q72.js → chunk.CR5C6OL5.js} +27 -27
  448. package/dist-versioned/chunks/{chunk.CNC35623.js → chunk.CT4BIUEI.js} +7 -7
  449. package/dist-versioned/chunks/{chunk.Y4AVD2WJ.js → chunk.DFQ2QJI5.js} +3 -3
  450. package/dist-versioned/chunks/{chunk.OEQMLH45.js → chunk.DJ3WYVWV.js} +7 -7
  451. package/dist-versioned/chunks/{chunk.P23KPMOU.js → chunk.E7L2RBML.js} +6 -6
  452. package/dist-versioned/chunks/{chunk.LTRLNXRR.js → chunk.EORXKFFT.js} +2 -2
  453. package/dist-versioned/chunks/{chunk.MFEFWNU4.js → chunk.F4A7G427.js} +4 -4
  454. package/dist-versioned/chunks/{chunk.NXR5NJ4D.js → chunk.FMSAUZWF.js} +5 -5
  455. package/dist-versioned/chunks/{chunk.MZYFWNJ2.js → chunk.FPMNMEXR.js} +3 -3
  456. package/dist-versioned/chunks/{chunk.QXA4KBMD.js → chunk.HB45IF2T.js} +2 -2
  457. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  458. package/dist-versioned/chunks/{chunk.JY6FHQV4.js → chunk.M5EPD6OZ.js} +8 -8
  459. package/dist-versioned/chunks/{chunk.XE2RRGVH.js → chunk.MB47FVBP.js} +2 -2
  460. package/dist-versioned/chunks/{chunk.QYH72BBU.js → chunk.MFE2NCVX.js} +4 -4
  461. package/dist-versioned/chunks/{chunk.4VCWVPDC.js → chunk.N5XK43AK.js} +19 -19
  462. package/dist-versioned/chunks/{chunk.JFYEW3KW.js → chunk.NCZBBZOR.js} +2 -2
  463. package/dist-versioned/chunks/{chunk.RDTKXRB7.js → chunk.NK5K5MMW.js} +2 -2
  464. package/dist-versioned/chunks/{chunk.35CDD4AI.js → chunk.NKPJM2WV.js} +6 -6
  465. package/dist-versioned/chunks/{chunk.X5F5FYN6.js → chunk.O6OCXI2L.js} +4 -4
  466. package/dist-versioned/chunks/{chunk.X5DOMMVJ.js → chunk.OBQTYYBW.js} +3 -3
  467. package/dist-versioned/chunks/{chunk.DPUEJBCS.js → chunk.OK3VBJRJ.js} +4 -4
  468. package/dist-versioned/chunks/{chunk.LRYVZCZB.js → chunk.PF4UKMOY.js} +5 -5
  469. package/dist-versioned/chunks/{chunk.S2LPDX6A.js → chunk.PJOYWTXL.js} +2 -2
  470. package/dist-versioned/chunks/{chunk.2G4FUBDQ.js → chunk.QHUH3UZT.js} +3 -3
  471. package/dist-versioned/chunks/{chunk.P6IWIVAX.js → chunk.QJ2PELD5.js} +3 -3
  472. package/dist-versioned/chunks/{chunk.B2OI7BBP.js → chunk.RIWKWSAL.js} +3 -3
  473. package/dist-versioned/chunks/chunk.RY4KWEME.js +93 -0
  474. package/dist-versioned/chunks/{chunk.J24ES3ER.js → chunk.RZGUWSF6.js} +6 -6
  475. package/dist-versioned/chunks/{chunk.CJDJQNJE.js → chunk.SIUXYHUU.js} +9 -9
  476. package/dist-versioned/chunks/{chunk.5TXUJJY7.js → chunk.SZDLCBRQ.js} +25 -25
  477. package/dist-versioned/chunks/{chunk.66ESUTRL.js → chunk.TIOVWVCD.js} +3 -3
  478. package/dist-versioned/chunks/{chunk.KCQCBXXE.js → chunk.TXNCIVE5.js} +15 -15
  479. package/dist-versioned/chunks/{chunk.N6SDJ5F4.js → chunk.U7ASTWXS.js} +6 -6
  480. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  481. package/dist-versioned/chunks/{chunk.5ERDGBQ2.js → chunk.UIXXR3N5.js} +4 -4
  482. package/dist-versioned/chunks/{chunk.ZDLONKYZ.js → chunk.VN6V46I7.js} +3 -3
  483. package/dist-versioned/chunks/{chunk.TCIKEWTO.js → chunk.WSRHW32L.js} +4 -4
  484. package/dist-versioned/chunks/{chunk.TBWF2AZD.js → chunk.WSXDUNN7.js} +2 -2
  485. package/dist-versioned/chunks/{chunk.B267MNT3.js → chunk.WSXRRFIW.js} +2 -2
  486. package/dist-versioned/chunks/{chunk.3QRVTHVA.js → chunk.WTFF4KWO.js} +4 -4
  487. package/dist-versioned/chunks/chunk.XCQC3F3H.js +3 -3
  488. package/dist-versioned/chunks/{chunk.2LWMWEI6.js → chunk.XNEWFPWE.js} +4 -4
  489. package/dist-versioned/chunks/{chunk.PAHCSY5I.js → chunk.YBIM4TC7.js} +2 -2
  490. package/dist-versioned/chunks/{chunk.B4X6CPEB.js → chunk.YLQNXR3G.js} +4 -4
  491. package/dist-versioned/chunks/{chunk.GY73LR3S.js → chunk.ZBAABZKL.js} +2 -2
  492. package/dist-versioned/chunks/{chunk.LNHMJS3O.js → chunk.ZRJRFFVA.js} +4 -4
  493. package/dist-versioned/chunks/{chunk.ML26ETGW.js → chunk.ZXOKRAZP.js} +3 -3
  494. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  495. package/dist-versioned/components/accordion/accordion.js +3 -3
  496. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  497. package/dist-versioned/components/accordion-group/accordion-group.js +4 -4
  498. package/dist-versioned/components/animation/animation.d.ts +1 -1
  499. package/dist-versioned/components/animation/animation.js +2 -2
  500. package/dist-versioned/components/audio/audio.d.ts +1 -1
  501. package/dist-versioned/components/audio/audio.js +6 -6
  502. package/dist-versioned/components/badge/badge.d.ts +1 -1
  503. package/dist-versioned/components/badge/badge.js +2 -2
  504. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  505. package/dist-versioned/components/brandshape/brandshape.js +2 -2
  506. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  507. package/dist-versioned/components/breadcrumb/breadcrumb.js +2 -2
  508. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  509. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.js +2 -2
  510. package/dist-versioned/components/button/button.d.ts +1 -1
  511. package/dist-versioned/components/button/button.js +3 -3
  512. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  513. package/dist-versioned/components/button-group/button-group.js +2 -2
  514. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  515. package/dist-versioned/components/carousel/carousel.js +4 -4
  516. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  517. package/dist-versioned/components/carousel-item/carousel-item.js +2 -2
  518. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  519. package/dist-versioned/components/checkbox/checkbox.js +3 -3
  520. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  521. package/dist-versioned/components/checkbox-group/checkbox-group.js +3 -3
  522. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  523. package/dist-versioned/components/combobox/combobox.js +5 -5
  524. package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
  525. package/dist-versioned/components/datepicker/datepicker.js +2 -2
  526. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  527. package/dist-versioned/components/dialog/dialog.js +5 -5
  528. package/dist-versioned/components/divider/divider.d.ts +1 -1
  529. package/dist-versioned/components/divider/divider.js +2 -2
  530. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  531. package/dist-versioned/components/drawer/drawer.js +5 -5
  532. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  533. package/dist-versioned/components/dropdown/dropdown.js +3 -3
  534. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  535. package/dist-versioned/components/expandable/expandable.js +3 -3
  536. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  537. package/dist-versioned/components/flipcard/flipcard.js +5 -5
  538. package/dist-versioned/components/header/header.d.ts +1 -1
  539. package/dist-versioned/components/header/header.js +2 -2
  540. package/dist-versioned/components/icon/icon.d.ts +1 -1
  541. package/dist-versioned/components/icon/icon.js +2 -2
  542. package/dist-versioned/components/include/include.d.ts +1 -1
  543. package/dist-versioned/components/include/include.js +2 -2
  544. package/dist-versioned/components/input/input.d.ts +1 -1
  545. package/dist-versioned/components/input/input.js +3 -3
  546. package/dist-versioned/components/link/link.d.ts +1 -1
  547. package/dist-versioned/components/link/link.js +2 -2
  548. package/dist-versioned/components/loader/loader.d.ts +1 -1
  549. package/dist-versioned/components/loader/loader.js +2 -2
  550. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  551. package/dist-versioned/components/map-marker/map-marker.js +2 -2
  552. package/dist-versioned/components/menu/menu.d.ts +1 -1
  553. package/dist-versioned/components/menu/menu.js +2 -2
  554. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  555. package/dist-versioned/components/menu-item/menu-item.js +2 -2
  556. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  557. package/dist-versioned/components/navigation-item/navigation-item.js +4 -4
  558. package/dist-versioned/components/notification/notification.d.ts +1 -1
  559. package/dist-versioned/components/notification/notification.js +5 -5
  560. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  561. package/dist-versioned/components/optgroup/optgroup.js +3 -3
  562. package/dist-versioned/components/option/option.d.ts +1 -1
  563. package/dist-versioned/components/option/option.js +3 -3
  564. package/dist-versioned/components/popup/popup.d.ts +1 -1
  565. package/dist-versioned/components/popup/popup.js +2 -2
  566. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  567. package/dist-versioned/components/quickfact/quickfact.js +4 -4
  568. package/dist-versioned/components/radio/radio.d.ts +1 -1
  569. package/dist-versioned/components/radio/radio.js +2 -2
  570. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  571. package/dist-versioned/components/radio-button/radio-button.js +2 -2
  572. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  573. package/dist-versioned/components/radio-group/radio-group.js +4 -4
  574. package/dist-versioned/components/range/range.d.ts +1 -1
  575. package/dist-versioned/components/range/range.js +2 -2
  576. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  577. package/dist-versioned/components/range-tick/range-tick.js +2 -2
  578. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  579. package/dist-versioned/components/scrollable/scrollable.js +3 -3
  580. package/dist-versioned/components/select/select.d.ts +1 -1
  581. package/dist-versioned/components/select/select.js +5 -5
  582. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  583. package/dist-versioned/components/spinner/spinner.js +2 -2
  584. package/dist-versioned/components/step/step.d.ts +1 -1
  585. package/dist-versioned/components/step/step.js +3 -3
  586. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  587. package/dist-versioned/components/step-group/step-group.js +2 -2
  588. package/dist-versioned/components/switch/switch.d.ts +1 -1
  589. package/dist-versioned/components/switch/switch.js +2 -2
  590. package/dist-versioned/components/tab/tab.d.ts +1 -1
  591. package/dist-versioned/components/tab/tab.js +2 -2
  592. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  593. package/dist-versioned/components/tab-group/tab-group.js +3 -3
  594. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  595. package/dist-versioned/components/tab-panel/tab-panel.js +2 -2
  596. package/dist-versioned/components/tag/tag.d.ts +1 -1
  597. package/dist-versioned/components/tag/tag.js +3 -3
  598. package/dist-versioned/components/teaser/teaser.js +2 -2
  599. package/dist-versioned/components/teaser-media/teaser-media.js +2 -2
  600. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  601. package/dist-versioned/components/textarea/textarea.js +3 -3
  602. package/dist-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  603. package/dist-versioned/components/theme-listener/theme-listener.js +2 -2
  604. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  605. package/dist-versioned/components/tooltip/tooltip.js +4 -4
  606. package/dist-versioned/components/video/video.d.ts +1 -1
  607. package/dist-versioned/components/video/video.js +3 -3
  608. package/dist-versioned/custom-elements.json +248 -248
  609. package/dist-versioned/internal/form.js +3 -3
  610. package/dist-versioned/solid-components.css +2 -2
  611. package/dist-versioned/solid-components.js +59 -59
  612. package/dist-versioned/utilities/autocomplete-config.js +2 -2
  613. package/dist-versioned/vscode.html-custom-data.json +94 -94
  614. package/dist-versioned/web-types.json +163 -163
  615. package/package.json +1 -1
  616. package/cdn/chunks/chunk.5UBUNR4U.js +0 -2
  617. package/cdn-versioned/chunks/chunk.5UBUNR4U.js +0 -2
  618. package/dist-versioned/chunks/chunk.KPOYD3HP.js +0 -93
@@ -1,12 +1,12 @@
1
- import{a as M}from"./chunk.N3WG3NAL.js";import{c as I}from"./chunk.3L472FD4.js";import{b as L}from"./chunk.JS2HQ2N4.js";import{a as z}from"./chunk.CGQ2BPPZ.js";import{a as w,c as O}from"./chunk.B2NUKX6G.js";import{a as C}from"./chunk.KLRPP4NQ.js";import{a as k}from"./chunk.MP6XEXRW.js";import{a as d}from"./chunk.YEDQWNIV.js";import{a as D}from"./chunk.7BPPDSHY.js";import{a as f}from"./chunk.NYKJXI3Q.js";import{a as $,b as a,c as u,d as c,g as E,h as x}from"./chunk.45AHR6PI.js";import{b as T,e as p}from"./chunk.763RLJEK.js";import{b as g,e as y}from"./chunk.W4QBFD6E.js";import{e as s}from"./chunk.6EV4YU6C.js";var i=class extends x{constructor(){super(...arguments);this.formControlController=new L(this,{assumeInteractionOn:["sd-blur","sd-5-16-2-next-0-input"]});this.hasSlotController=new z(this,"help-text","label");this.localize=new D(this);this.typeToSelectString="";this.deletedTagLabel="";this.hasFocus=!1;this.selectedOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.defaultValue="";this.open=!1;this.size="lg";this.placement="bottom";this.label="";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.helpText="";this.currentPlacement=this.placement;this.clearable=!1;this.multiple=!1;this.useTags=!1;this.maxOptionsVisible=3;this.form="";this.name="";this.value="";this.required=!1;this.styleOnValid=!1;this.hoist=!1;this.getTag=t=>p`<sd-5-16-2-next-0-tag class="relative z-10" ?disabled="${this.disabled}" part="tag" exportparts="
1
+ import{a as M}from"./chunk.N3WG3NAL.js";import{c as I}from"./chunk.3L472FD4.js";import{b as L}from"./chunk.JS2HQ2N4.js";import{a as z}from"./chunk.CGQ2BPPZ.js";import{a as w,c as O}from"./chunk.B2NUKX6G.js";import{a as C}from"./chunk.KLRPP4NQ.js";import{a as k}from"./chunk.MP6XEXRW.js";import{a as d}from"./chunk.YEDQWNIV.js";import{a as D}from"./chunk.7BPPDSHY.js";import{a as f}from"./chunk.NYKJXI3Q.js";import{a as $,b as a,c as u,d as c,g as E,h as x}from"./chunk.PES7MZKA.js";import{b as T,e as p}from"./chunk.763RLJEK.js";import{b as g,e as y}from"./chunk.W4QBFD6E.js";import{e as s}from"./chunk.6EV4YU6C.js";var i=class extends x{constructor(){super(...arguments);this.formControlController=new L(this,{assumeInteractionOn:["sd-blur","sd-5-16-2-next-1-input"]});this.hasSlotController=new z(this,"help-text","label");this.localize=new D(this);this.typeToSelectString="";this.deletedTagLabel="";this.hasFocus=!1;this.selectedOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.defaultValue="";this.open=!1;this.size="lg";this.placement="bottom";this.label="";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.helpText="";this.currentPlacement=this.placement;this.clearable=!1;this.multiple=!1;this.useTags=!1;this.maxOptionsVisible=3;this.form="";this.name="";this.value="";this.required=!1;this.styleOnValid=!1;this.hoist=!1;this.getTag=t=>p`<sd-5-16-2-next-1-tag class="relative z-10" ?disabled="${this.disabled}" part="tag" exportparts="
2
2
  base:tag__base,
3
3
  content:tag__content,
4
4
  removable-indicator:tag__removable-indicator,
5
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${e=>this.handleTagKeyDown(e,t)}" @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-5-16-2-next-0-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{let e=t.target,o=e.closest(".select__clear")!==null,l=e.closest("sd-5-16-2-next-0-icon-button")!==null;if(!(o||l)){if(t.key==="Escape"&&this.open&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.combobox.focus({preventScroll:!0})),t.key==="Enter"||t.key===" "&&this.typeToSelectString===""){if(t.preventDefault(),t.stopImmediatePropagation(),!this.open){this.show(),this.setCurrentOption(this.currentOption||this.getFirstOption(),t);return}this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.combobox.focus({preventScroll:!0})));return}if(["ArrowUp","ArrowDown","Home","End"].includes(t.key)){let h=this.getAllOptions(),n=h.indexOf(this.currentOption),r=Math.max(0,n);if(t.preventDefault(),!this.open&&(this.show(),this.currentOption))return;t.key==="ArrowDown"?(r=n+1,r>h.length-1&&(r=0)):t.key==="ArrowUp"?(r=n-1,r<0&&(r=h.length-1)):t.key==="Home"?r=0:t.key==="End"&&(r=h.length-1),this.setCurrentOption(h[r],t)}if(t.key.length===1||t.key==="Backspace"){let h=this.getAllOptions();if(t.metaKey||t.ctrlKey||t.altKey)return;if(!this.open){if(t.key==="Backspace")return;this.show()}t.stopPropagation(),t.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout(()=>this.typeToSelectString="",1e3),t.key==="Backspace"?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=t.key.toLowerCase();for(let n of h)if(n.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(n);break}}}};this.handleDocumentMouseDown=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.open=!1}firstUpdated(){this.applySizeToOptions()}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){var o,l,h;if((t.key==="Backspace"||t.key==="Enter"||t.key===" ")&&this.multiple){t.preventDefault(),t.stopPropagation();let n=(o=t.currentTarget)==null?void 0:o.parentElement,r=(l=n==null?void 0:n.previousElementSibling)==null?void 0:l.querySelector("sd-5-16-2-next-0-tag"),m=(h=n==null?void 0:n.nextElementSibling)==null?void 0:h.querySelector("sd-5-16-2-next-0-tag");this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>{m?m.focus():r?r.focus():this.focus({preventScroll:!0})})}}handleTagMaxOptionsKeyDown(t){(t.key==="Backspace"||t.key==="Enter")&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>{var o;let e=(o=this.shadowRoot)==null?void 0:o.querySelectorAll("sd-5-16-2-next-0-tag");e&&e.length>0?e==null||e[(e==null?void 0:e.length)-1].focus():this.focus({preventScroll:!0})}))}handleLabelClick(){this.combobox.focus()}handleComboboxMouseDown(t){let o=t.composedPath().some(l=>l instanceof HTMLSlotElement&&l.name==="removable-indicator");this.disabled||o||this.visuallyDisabled||(t.preventDefault(),this.combobox.focus({preventScroll:!0}),this.open=!this.open,this.setCurrentOption(this.currentOption||this.getFirstOption(),t))}handleComboboxKeyDown(t){t.stopPropagation(),this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearSelect()}clearSelect(){this.setSelectedOptions([]),this.combobox.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")})}handleClearMouseDown(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let o=t.target.closest("sd-5-16-2-next-0-option"),l=this.value;o&&!o.disabled&&(this.multiple?this.toggleOptionSelection(o):this.setSelectedOptions(o),this.updateComplete.then(()=>this.combobox.focus({preventScroll:!0})),this.value!==l&&this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.combobox.focus({preventScroll:!0})))}handleDefaultSlotChange(){let t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value],o=[];customElements.get("sd-5-16-2-next-0-option")?(t.forEach(l=>{this.multiple&&(l.checkbox=!0),o.push(l.value)}),this.setSelectedOptions(t.filter(l=>e.includes(l.value)))):customElements.whenDefined("sd-5-16-2-next-0-option").then(()=>this.handleDefaultSlotChange())}handleTagRemove(t,e){t.stopPropagation(),e||this.clearSelect(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.deletedTagLabel=this.localize.term("removed",e.textContent),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}))}getAllOptions(){return[...this.querySelectorAll("sd-5-16-2-next-0-option")]}getFirstOption(){return this.querySelector("sd-5-16-2-next-0-option")}setCurrentOption(t,e){this.getAllOptions().forEach(l=>{l.current=!1,l.tabIndex=-1,((e==null?void 0:e.type)==="keydown"||(e==null?void 0:e.type)==="mousedown")&&(l.isKeyboardFocus=!1)}),t&&(this.currentOption=t,t.current=!0,t.tabIndex=0,t.focus()),t&&(e==null?void 0:e.type)==="keydown"&&(t.isKeyboardFocus=!0)}setSelectedOptions(t){let e=this.getAllOptions(),o=Array.isArray(t)?t:[t];e.forEach(l=>l.selected=!1),o.length&&o.forEach(l=>l.selected=!0),Array.isArray(t)?this.selectionChanged():this.selectionChanged(t)}toggleOptionSelection(t,e){e===!0||e===!1?t.selected=e:t.selected=!t.selected,Array.isArray(t)?this.selectionChanged():this.selectionChanged(t)}get displayLabel(){var t,e;return this.multiple?this.useTags||this.value.length===0?"":this.localize.term("numOptionsSelected",this.selectedOptions.length):(e=(t=this.selectedOptions[0])==null?void 0:t.getTextLabel())!=null?e:""}selectionChanged(t){var e,o;t&&this.multiple?this.selectedOptions.find(l=>l.value===t.value)?this.selectedOptions=this.selectedOptions.filter(l=>l.value!==t.value):this.selectedOptions=[...this.selectedOptions,t]:this.selectedOptions=this.getAllOptions().filter(l=>l.selected),this.multiple?this.value=this.selectedOptions.map(l=>l.value):this.value=(o=(e=this.selectedOptions[0])==null?void 0:e.value)!=null?o:"",this.updateComplete.then(()=>{this.formControlController.updateValidity()})}get tags(){return this.selectedOptions.length<=this.maxOptionsVisible?this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){let o=this.getTag(t,e);return p`<div @sd-remove="${l=>this.handleTagRemove(l,t)}">${typeof o=="string"?k(o):o}</div>`}return[p``]}):[p`<sd-5-16-2-next-0-tag class="z-10" ?disabled="${this.disabled}" part="tag" exportparts="
5
+ " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${e=>this.handleTagKeyDown(e,t)}" @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-5-16-2-next-1-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{let e=t.target,o=e.closest(".select__clear")!==null,l=e.closest("sd-5-16-2-next-1-icon-button")!==null;if(!(o||l)){if(t.key==="Escape"&&this.open&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.combobox.focus({preventScroll:!0})),t.key==="Enter"||t.key===" "&&this.typeToSelectString===""){if(t.preventDefault(),t.stopImmediatePropagation(),!this.open){this.show(),this.setCurrentOption(this.currentOption||this.getFirstOption(),t);return}this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.combobox.focus({preventScroll:!0})));return}if(["ArrowUp","ArrowDown","Home","End"].includes(t.key)){let h=this.getAllOptions(),n=h.indexOf(this.currentOption),r=Math.max(0,n);if(t.preventDefault(),!this.open&&(this.show(),this.currentOption))return;t.key==="ArrowDown"?(r=n+1,r>h.length-1&&(r=0)):t.key==="ArrowUp"?(r=n-1,r<0&&(r=h.length-1)):t.key==="Home"?r=0:t.key==="End"&&(r=h.length-1),this.setCurrentOption(h[r],t)}if(t.key.length===1||t.key==="Backspace"){let h=this.getAllOptions();if(t.metaKey||t.ctrlKey||t.altKey)return;if(!this.open){if(t.key==="Backspace")return;this.show()}t.stopPropagation(),t.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout(()=>this.typeToSelectString="",1e3),t.key==="Backspace"?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=t.key.toLowerCase();for(let n of h)if(n.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(n);break}}}};this.handleDocumentMouseDown=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.open=!1}firstUpdated(){this.applySizeToOptions()}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){var o,l,h;if((t.key==="Backspace"||t.key==="Enter"||t.key===" ")&&this.multiple){t.preventDefault(),t.stopPropagation();let n=(o=t.currentTarget)==null?void 0:o.parentElement,r=(l=n==null?void 0:n.previousElementSibling)==null?void 0:l.querySelector("sd-5-16-2-next-1-tag"),m=(h=n==null?void 0:n.nextElementSibling)==null?void 0:h.querySelector("sd-5-16-2-next-1-tag");this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>{m?m.focus():r?r.focus():this.focus({preventScroll:!0})})}}handleTagMaxOptionsKeyDown(t){(t.key==="Backspace"||t.key==="Enter")&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>{var o;let e=(o=this.shadowRoot)==null?void 0:o.querySelectorAll("sd-5-16-2-next-1-tag");e&&e.length>0?e==null||e[(e==null?void 0:e.length)-1].focus():this.focus({preventScroll:!0})}))}handleLabelClick(){this.combobox.focus()}handleComboboxMouseDown(t){let o=t.composedPath().some(l=>l instanceof HTMLSlotElement&&l.name==="removable-indicator");this.disabled||o||this.visuallyDisabled||(t.preventDefault(),this.combobox.focus({preventScroll:!0}),this.open=!this.open,this.setCurrentOption(this.currentOption||this.getFirstOption(),t))}handleComboboxKeyDown(t){t.stopPropagation(),this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearSelect()}clearSelect(){this.setSelectedOptions([]),this.combobox.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")})}handleClearMouseDown(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let o=t.target.closest("sd-5-16-2-next-1-option"),l=this.value;o&&!o.disabled&&(this.multiple?this.toggleOptionSelection(o):this.setSelectedOptions(o),this.updateComplete.then(()=>this.combobox.focus({preventScroll:!0})),this.value!==l&&this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.combobox.focus({preventScroll:!0})))}handleDefaultSlotChange(){let t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value],o=[];customElements.get("sd-5-16-2-next-1-option")?(t.forEach(l=>{this.multiple&&(l.checkbox=!0),o.push(l.value)}),this.setSelectedOptions(t.filter(l=>e.includes(l.value)))):customElements.whenDefined("sd-5-16-2-next-1-option").then(()=>this.handleDefaultSlotChange())}handleTagRemove(t,e){t.stopPropagation(),e||this.clearSelect(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.deletedTagLabel=this.localize.term("removed",e.textContent),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}))}getAllOptions(){return[...this.querySelectorAll("sd-5-16-2-next-1-option")]}getFirstOption(){return this.querySelector("sd-5-16-2-next-1-option")}setCurrentOption(t,e){this.getAllOptions().forEach(l=>{l.current=!1,l.tabIndex=-1,((e==null?void 0:e.type)==="keydown"||(e==null?void 0:e.type)==="mousedown")&&(l.isKeyboardFocus=!1)}),t&&(this.currentOption=t,t.current=!0,t.tabIndex=0,t.focus()),t&&(e==null?void 0:e.type)==="keydown"&&(t.isKeyboardFocus=!0)}setSelectedOptions(t){let e=this.getAllOptions(),o=Array.isArray(t)?t:[t];e.forEach(l=>l.selected=!1),o.length&&o.forEach(l=>l.selected=!0),Array.isArray(t)?this.selectionChanged():this.selectionChanged(t)}toggleOptionSelection(t,e){e===!0||e===!1?t.selected=e:t.selected=!t.selected,Array.isArray(t)?this.selectionChanged():this.selectionChanged(t)}get displayLabel(){var t,e;return this.multiple?this.useTags||this.value.length===0?"":this.localize.term("numOptionsSelected",this.selectedOptions.length):(e=(t=this.selectedOptions[0])==null?void 0:t.getTextLabel())!=null?e:""}selectionChanged(t){var e,o;t&&this.multiple?this.selectedOptions.find(l=>l.value===t.value)?this.selectedOptions=this.selectedOptions.filter(l=>l.value!==t.value):this.selectedOptions=[...this.selectedOptions,t]:this.selectedOptions=this.getAllOptions().filter(l=>l.selected),this.multiple?this.value=this.selectedOptions.map(l=>l.value):this.value=(o=(e=this.selectedOptions[0])==null?void 0:e.value)!=null?o:"",this.updateComplete.then(()=>{this.formControlController.updateValidity()})}get tags(){return this.selectedOptions.length<=this.maxOptionsVisible?this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){let o=this.getTag(t,e);return p`<div @sd-remove="${l=>this.handleTagRemove(l,t)}">${typeof o=="string"?k(o):o}</div>`}return[p``]}):[p`<sd-5-16-2-next-1-tag class="z-10" ?disabled="${this.disabled}" part="tag" exportparts="
6
6
  base:tag__base,
7
7
  content:tag__content,
8
8
  removable-indicator:tag__removable-indicator,
9
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-5-16-2-next-0-tag>`]}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleUseTagsChange(){let t=this.getAllOptions();customElements.get("sd-5-16-2-next-0-option")&&t.forEach(e=>{e.checkbox=this.multiple})}handleDisabledChange(){(this.disabled||this.visuallyDisabled)&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&(!this.disabled||!this.visuallyDisabled)){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await y(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});let{keyframes:t,options:e}=O(this,"select.show",{dir:this.localize.dir()});await g(this.popup.popup,t,e),this.currentOption&&I(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await y(this);let{keyframes:t,options:e}=O(this,"select.hide",{dir:this.localize.dir()});await g(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach(t=>{t.size=this.size})}handleValueChange(){if(this.selectedOptions.length===(Array.isArray(this.value)?this.value.length:1))return;let t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(t.filter(o=>e.includes(o.value)))}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,C(this,"sd-after-show")}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.open=!1,C(this,"sd-after-hide")}checkValidity(){var t;return(t=this.valueInput)==null?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.combobox.focus(t)}blur(){this.combobox.blur()}render(){let t={default:this.hasSlotController.test("[default]"),label:this.hasSlotController.test("label"),clearIcon:this.hasSlotController.test("clear-icon"),expandIcon:this.hasSlotController.test("expand-icon"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,o=this.helpText?!0:!!t.helpText,l=this.clearable&&!this.disabled,h=!!t.tooltip,n=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",r=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",m={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],b={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return p`<div part="form-control" class="${d("relative text-left",r,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><span class="sr-only" aria-live="polite">${this.deletedTagLabel}</span> ${e||h?p`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${e&&"inline-block"}" aria-hidden="${e?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${d("relative w-full bg-white",n==="disabled"?"text-neutral-500":"text-black")}"><div part="border" class="${d("absolute top-0 w-full h-full pointer-events-none border rounded-default z-10 transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[n],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-5-16-2-next-0-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${d("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
9
+ " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-5-16-2-next-1-tag>`]}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleUseTagsChange(){let t=this.getAllOptions();customElements.get("sd-5-16-2-next-1-option")&&t.forEach(e=>{e.checkbox=this.multiple})}handleDisabledChange(){(this.disabled||this.visuallyDisabled)&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&(!this.disabled||!this.visuallyDisabled)){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await y(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});let{keyframes:t,options:e}=O(this,"select.show",{dir:this.localize.dir()});await g(this.popup.popup,t,e),this.currentOption&&I(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await y(this);let{keyframes:t,options:e}=O(this,"select.hide",{dir:this.localize.dir()});await g(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach(t=>{t.size=this.size})}handleValueChange(){if(this.selectedOptions.length===(Array.isArray(this.value)?this.value.length:1))return;let t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(t.filter(o=>e.includes(o.value)))}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,C(this,"sd-after-show")}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.open=!1,C(this,"sd-after-hide")}checkValidity(){var t;return(t=this.valueInput)==null?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.combobox.focus(t)}blur(){this.combobox.blur()}render(){let t={default:this.hasSlotController.test("[default]"),label:this.hasSlotController.test("label"),clearIcon:this.hasSlotController.test("clear-icon"),expandIcon:this.hasSlotController.test("expand-icon"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,o=this.helpText?!0:!!t.helpText,l=this.clearable&&!this.disabled,h=!!t.tooltip,n=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",r=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",m={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],b={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return p`<div part="form-control" class="${d("relative text-left",r,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><span class="sr-only" aria-live="polite">${this.deletedTagLabel}</span> ${e||h?p`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${e&&"inline-block"}" aria-hidden="${e?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${d("relative w-full bg-white",n==="disabled"?"text-neutral-500":"text-black")}"><div part="border" class="${d("absolute top-0 w-full h-full pointer-events-none border rounded-default z-10 transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[n],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-5-16-2-next-1-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${d("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
10
10
  popup:popup__content,
11
- "><div class="${d("relative w-full h-full grid rounded-default transition-colors hover:duration-fast ease-in-out",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:bg-neutral-200")}" slot="anchor"><div class="${d("input-container flex items-center w-full h-full px-4",{sm:"py-1",md:"py-1",lg:"py-2"}[this.size])}"><input name="${this.name}" form="${this.form}" part="display-input" class="${d("top-0 left-0 appearance-none outline-none flex-grow bg-transparent flex-1 placeholder:text-neutral-700",r,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" .disabled="${this.disabled}" placeholder="${this.placeholder||this.localize.term("selectDefaultPlaceholder")}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="help-text invalid-message" role="combobox" tabindex="-1"> ${this.multiple&&this.useTags?p`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""}<div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(v=>v==null?void 0:v.getTextLabel()).join(", ")}</div><input class="${d("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",r)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${l?p`<button part="clear-button" class="${d("select__clear flex justify-center",m,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-16-2-next-0-icon class="${d("text-neutral-700 z-10",b)}" library="_internal" name="closing-round"></sd-5-16-2-next-0-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-5-16-2-next-0-icon part="invalid-icon" class="${d(m,b,"text-error")}" library="_internal" name="risk"></sd-5-16-2-next-0-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-5-16-2-next-0-icon part="valid-icon" class="${d("flex-shrink-0 text-success",m,b)}" library="_internal" name="confirm-circle"></sd-5-16-2-next-0-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${d("inline-flex ml-2 items-center transition-transform duration-medium ease-in-out",this.open?"rotate-180":"rotate-0",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",b)}"><sd-5-16-2-next-0-icon name="chevron-down" part="chevron" library="_internal" color="currentColor"></sd-5-16-2-next-0-icon></slot></div><button part="combobox" class="${d("relative w-full px-4 flex flex-row items-center rounded-default focus-visible:outline-none",r,this.open&&"shadow transition-shadow duration-medium ease-in-out",{sm:"min-h-[32px]",md:"min-h-[40px]",lg:"min-h-[48px]"}[this.size])}" type="button" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-labelledby="label"></button></div><div id="listbox" role="listbox" aria-expanded="${this.open?"true":"false"}" aria-multiselectable="${this.multiple?"true":"false"}" aria-labelledby="label" part="listbox" class="${d("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow transition-shadow duration-medium ease-in-out",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-5-16-2-next-0-popup></div><div class="text-sm text-neutral-700 mt-1" part="form-control-help-text" id="help-text" aria-hidden="${o?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};i.styles=[...x.styles,T`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
12
- :host{position:relative;display:block;width:auto}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:var(--sd-color-text-neutral-500)}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:var(--sd-color-text-neutral-500)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}.input-container,[part=combobox]{grid-column:1/1;grid-row:1/1}sd-5-16-2-next-0-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-5-16-2-next-0-tag::part(base){border-radius:var(--sd-radius);padding-inline:var(--sd-spacing-1)}sd-5-16-2-next-0-tag::part(content){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--tag-max-width,15ch)}sd-5-16-2-next-0-tag[size=lg]::part(base){padding-inline:var(--sd-spacing-2)}sd-5-16-2-next-0-tag[disabled=false]::part(base):hover{background-color:var(--sd-color-background-primary-100)}`],s([E({selector:"sd-5-16-2-next-0-option"})],i.prototype,"_optionsInDefaultSlot",2),s([c("sd-5-16-2-next-0-popup")],i.prototype,"popup",2),s([c('[part="combobox"]')],i.prototype,"combobox",2),s([c('[part="display-input"]')],i.prototype,"displayInput",2),s([c(".value-input")],i.prototype,"valueInput",2),s([c('[part="listbox"]')],i.prototype,"listbox",2),s([c("#invalid-message")],i.prototype,"invalidMessage",2),s([u()],i.prototype,"deletedTagLabel",2),s([u()],i.prototype,"hasFocus",2),s([u()],i.prototype,"currentOption",2),s([u()],i.prototype,"selectedOptions",2),s([u()],i.prototype,"showValidStyle",2),s([u()],i.prototype,"showInvalidStyle",2),s([M()],i.prototype,"defaultValue",2),s([a({type:Boolean,reflect:!0})],i.prototype,"open",2),s([a({type:String,reflect:!0})],i.prototype,"size",2),s([a({type:String,reflect:!0})],i.prototype,"placement",2),s([a({type:String,reflect:!0})],i.prototype,"label",2),s([a({type:String,reflect:!0})],i.prototype,"placeholder",2),s([a({type:String,attribute:"max-options-tag-label",reflect:!0})],i.prototype,"maxOptionsTagLabel",2),s([a({type:Boolean,reflect:!0})],i.prototype,"disabled",2),s([a({type:Boolean,reflect:!0,attribute:"visually-disabled"})],i.prototype,"visuallyDisabled",2),s([a({type:String,attribute:"help-text",reflect:!0})],i.prototype,"helpText",2),s([u()],i.prototype,"currentPlacement",2),s([a({type:Boolean,reflect:!0})],i.prototype,"clearable",2),s([a({type:Boolean,reflect:!0})],i.prototype,"multiple",2),s([a({type:Boolean,reflect:!0})],i.prototype,"useTags",2),s([a({attribute:"max-options-visible",type:Number,reflect:!0})],i.prototype,"maxOptionsVisible",2),s([a({reflect:!0})],i.prototype,"form",2),s([a({reflect:!0})],i.prototype,"name",2),s([a({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],i.prototype,"value",2),s([a({type:Boolean,reflect:!0})],i.prototype,"required",2),s([a({type:Boolean,reflect:!0,attribute:"style-on-valid"})],i.prototype,"styleOnValid",2),s([a({type:Boolean,reflect:!0})],i.prototype,"hoist",2),s([a()],i.prototype,"getTag",2),s([f("useTags",{waitUntilFirstUpdate:!0})],i.prototype,"handleUseTagsChange",1),s([f(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],i.prototype,"handleDisabledChange",1),s([f("open",{waitUntilFirstUpdate:!0})],i.prototype,"handleOpenChange",1),s([f("size",{waitUntilFirstUpdate:!0})],i.prototype,"applySizeToOptions",1),s([f("value",{waitUntilFirstUpdate:!0})],i.prototype,"handleValueChange",1),i=s([$("sd-5-16-2-next-0-select")],i);w("select.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});w("select.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{i as a};
11
+ "><div class="${d("relative w-full h-full grid rounded-default transition-colors hover:duration-fast ease-in-out",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:bg-neutral-200")}" slot="anchor"><div class="${d("input-container flex items-center w-full h-full px-4",{sm:"py-1",md:"py-1",lg:"py-2"}[this.size])}"><input name="${this.name}" form="${this.form}" part="display-input" class="${d("top-0 left-0 appearance-none outline-none flex-grow bg-transparent flex-1 placeholder:text-neutral-700",r,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" .disabled="${this.disabled}" placeholder="${this.placeholder||this.localize.term("selectDefaultPlaceholder")}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="help-text invalid-message" role="combobox" tabindex="-1"> ${this.multiple&&this.useTags?p`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""}<div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(v=>v==null?void 0:v.getTextLabel()).join(", ")}</div><input class="${d("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",r)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${l?p`<button part="clear-button" class="${d("select__clear flex justify-center",m,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-16-2-next-1-icon class="${d("text-neutral-700 z-10",b)}" library="_internal" name="closing-round"></sd-5-16-2-next-1-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-5-16-2-next-1-icon part="invalid-icon" class="${d(m,b,"text-error")}" library="_internal" name="risk"></sd-5-16-2-next-1-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-5-16-2-next-1-icon part="valid-icon" class="${d("flex-shrink-0 text-success",m,b)}" library="_internal" name="confirm-circle"></sd-5-16-2-next-1-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${d("inline-flex ml-2 items-center transition-transform duration-medium ease-in-out",this.open?"rotate-180":"rotate-0",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",b)}"><sd-5-16-2-next-1-icon name="chevron-down" part="chevron" library="_internal" color="currentColor"></sd-5-16-2-next-1-icon></slot></div><button part="combobox" class="${d("relative w-full px-4 flex flex-row items-center rounded-default focus-visible:outline-none",r,this.open&&"shadow transition-shadow duration-medium ease-in-out",{sm:"min-h-[32px]",md:"min-h-[40px]",lg:"min-h-[48px]"}[this.size])}" type="button" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-labelledby="label"></button></div><div id="listbox" role="listbox" aria-expanded="${this.open?"true":"false"}" aria-multiselectable="${this.multiple?"true":"false"}" aria-labelledby="label" part="listbox" class="${d("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow transition-shadow duration-medium ease-in-out",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-5-16-2-next-1-popup></div><div class="text-sm text-neutral-700 mt-1" part="form-control-help-text" id="help-text" aria-hidden="${o?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};i.styles=[...x.styles,T`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
12
+ :host{position:relative;display:block;width:auto}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:var(--sd-color-text-neutral-500)}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:var(--sd-color-text-neutral-500)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}.input-container,[part=combobox]{grid-column:1/1;grid-row:1/1}sd-5-16-2-next-1-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-5-16-2-next-1-tag::part(base){border-radius:var(--sd-radius);padding-inline:var(--sd-spacing-1)}sd-5-16-2-next-1-tag::part(content){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--tag-max-width,15ch)}sd-5-16-2-next-1-tag[size=lg]::part(base){padding-inline:var(--sd-spacing-2)}sd-5-16-2-next-1-tag[disabled=false]::part(base):hover{background-color:var(--sd-color-background-primary-100)}`],s([E({selector:"sd-5-16-2-next-1-option"})],i.prototype,"_optionsInDefaultSlot",2),s([c("sd-5-16-2-next-1-popup")],i.prototype,"popup",2),s([c('[part="combobox"]')],i.prototype,"combobox",2),s([c('[part="display-input"]')],i.prototype,"displayInput",2),s([c(".value-input")],i.prototype,"valueInput",2),s([c('[part="listbox"]')],i.prototype,"listbox",2),s([c("#invalid-message")],i.prototype,"invalidMessage",2),s([u()],i.prototype,"deletedTagLabel",2),s([u()],i.prototype,"hasFocus",2),s([u()],i.prototype,"currentOption",2),s([u()],i.prototype,"selectedOptions",2),s([u()],i.prototype,"showValidStyle",2),s([u()],i.prototype,"showInvalidStyle",2),s([M()],i.prototype,"defaultValue",2),s([a({type:Boolean,reflect:!0})],i.prototype,"open",2),s([a({type:String,reflect:!0})],i.prototype,"size",2),s([a({type:String,reflect:!0})],i.prototype,"placement",2),s([a({type:String,reflect:!0})],i.prototype,"label",2),s([a({type:String,reflect:!0})],i.prototype,"placeholder",2),s([a({type:String,attribute:"max-options-tag-label",reflect:!0})],i.prototype,"maxOptionsTagLabel",2),s([a({type:Boolean,reflect:!0})],i.prototype,"disabled",2),s([a({type:Boolean,reflect:!0,attribute:"visually-disabled"})],i.prototype,"visuallyDisabled",2),s([a({type:String,attribute:"help-text",reflect:!0})],i.prototype,"helpText",2),s([u()],i.prototype,"currentPlacement",2),s([a({type:Boolean,reflect:!0})],i.prototype,"clearable",2),s([a({type:Boolean,reflect:!0})],i.prototype,"multiple",2),s([a({type:Boolean,reflect:!0})],i.prototype,"useTags",2),s([a({attribute:"max-options-visible",type:Number,reflect:!0})],i.prototype,"maxOptionsVisible",2),s([a({reflect:!0})],i.prototype,"form",2),s([a({reflect:!0})],i.prototype,"name",2),s([a({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],i.prototype,"value",2),s([a({type:Boolean,reflect:!0})],i.prototype,"required",2),s([a({type:Boolean,reflect:!0,attribute:"style-on-valid"})],i.prototype,"styleOnValid",2),s([a({type:Boolean,reflect:!0})],i.prototype,"hoist",2),s([a()],i.prototype,"getTag",2),s([f("useTags",{waitUntilFirstUpdate:!0})],i.prototype,"handleUseTagsChange",1),s([f(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],i.prototype,"handleDisabledChange",1),s([f("open",{waitUntilFirstUpdate:!0})],i.prototype,"handleOpenChange",1),s([f("size",{waitUntilFirstUpdate:!0})],i.prototype,"applySizeToOptions",1),s([f("value",{waitUntilFirstUpdate:!0})],i.prototype,"handleValueChange",1),i=s([$("sd-5-16-2-next-1-select")],i);w("select.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});w("select.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{i as a};
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk.CGQ2BPPZ.js";import{a as i}from"./chunk.YEDQWNIV.js";import{a as o}from"./chunk.NYKJXI3Q.js";import{a as h,b as a,c as r,d,h as n}from"./chunk.45AHR6PI.js";import{b as c,e as l}from"./chunk.763RLJEK.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends n{constructor(){super(...arguments);this.hasSlotController=new u(this,"default","left","right");this.current=!1;this.selected=!1;this.hasHover=!1;this.isKeyboardFocus=!1;this.size="lg";this.checkbox=!1;this.disabled=!1;this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){let s=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=s;return}s!==this.cachedTextLabel&&(this.cachedTextLabel=s,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){var s;return((s=this.textContent)!=null?s:"").trim()}render(){let s={default:this.hasSlotController.test("default"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")};return l`<div part="base" class="${i("px-4 flex items-center w-full transition-colors duration-fast ease-in-out text-left text-base relative",{sm:"text-sm py-1",md:"text-base py-2",lg:"text-base py-3"}[this.size],this.disabled?"text-neutral-500 cursor-not-allowed":"text-black cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.isKeyboardFocus?"focus-outline focus-outline-offset":"",this.current&&"bg-neutral-200")}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><span class="${i("absolute w-full left-0 top-0 pointer-events-none transition-[height,top] duration-fast ease-in-out border-l-4 h-[calc(100%-8px)]",this.selected&&!this.checkbox?"border-accent":"border-transparent",this.disabled&&"border-neutral-500 top-1",!this.disabled&&this.hasHover?"h-full top-0":"top-1")}"></span> ${this.checkbox?l`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${i("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4 mr-2",this.disabled?"border-neutral-500":this.selected?"bg-accent border-accent":"bg-white form-control-color-border")}">${this.selected?l`<sd-5-16-2-next-0-icon part="checked-icon" class="text-white w-3 h-3" library="_internal" name="status-check"></sd-5-16-2-next-0-icon>`:""}</span>`:""} ${s.left?l`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${s.right?l`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};e.styles=[...n.styles,c`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{position:relative;display:block;width:100%;--tw-outline-style:none!important;outline-style:none!important}.focus-outline-offset{outline-offset:-2px}`],t([d('[part="base"]')],e.prototype,"defaultSlot",2),t([r()],e.prototype,"current",2),t([r()],e.prototype,"selected",2),t([r()],e.prototype,"hasHover",2),t([r()],e.prototype,"isKeyboardFocus",2),t([a({type:String,reflect:!0})],e.prototype,"size",2),t([a({type:Boolean,reflect:!0})],e.prototype,"checkbox",2),t([a({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([a({type:String,reflect:!0})],e.prototype,"value",2),t([o("disabled")],e.prototype,"handleDisabledChange",1),t([o("selected")],e.prototype,"handleSelectedChange",1),t([o("value")],e.prototype,"handleValueChange",1),e=t([h("sd-5-16-2-next-0-option")],e);export{e as a};
1
+ import{a as u}from"./chunk.CGQ2BPPZ.js";import{a as i}from"./chunk.YEDQWNIV.js";import{a as o}from"./chunk.NYKJXI3Q.js";import{a as h,b as a,c as r,d,h as n}from"./chunk.PES7MZKA.js";import{b as c,e as l}from"./chunk.763RLJEK.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends n{constructor(){super(...arguments);this.hasSlotController=new u(this,"default","left","right");this.current=!1;this.selected=!1;this.hasHover=!1;this.isKeyboardFocus=!1;this.size="lg";this.checkbox=!1;this.disabled=!1;this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){let s=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=s;return}s!==this.cachedTextLabel&&(this.cachedTextLabel=s,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){var s;return((s=this.textContent)!=null?s:"").trim()}render(){let s={default:this.hasSlotController.test("default"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")};return l`<div part="base" class="${i("px-4 flex items-center w-full transition-colors duration-fast ease-in-out text-left text-base relative",{sm:"text-sm py-1",md:"text-base py-2",lg:"text-base py-3"}[this.size],this.disabled?"text-neutral-500 cursor-not-allowed":"text-black cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.isKeyboardFocus?"focus-outline focus-outline-offset":"",this.current&&"bg-neutral-200")}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><span class="${i("absolute w-full left-0 top-0 pointer-events-none transition-[height,top] duration-fast ease-in-out border-l-4 h-[calc(100%-8px)]",this.selected&&!this.checkbox?"border-accent":"border-transparent",this.disabled&&"border-neutral-500 top-1",!this.disabled&&this.hasHover?"h-full top-0":"top-1")}"></span> ${this.checkbox?l`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${i("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4 mr-2",this.disabled?"border-neutral-500":this.selected?"bg-accent border-accent":"bg-white form-control-color-border")}">${this.selected?l`<sd-5-16-2-next-1-icon part="checked-icon" class="text-white w-3 h-3" library="_internal" name="status-check"></sd-5-16-2-next-1-icon>`:""}</span>`:""} ${s.left?l`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${s.right?l`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};e.styles=[...n.styles,c`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{position:relative;display:block;width:100%;--tw-outline-style:none!important;outline-style:none!important}.focus-outline-offset{outline-offset:-2px}`],t([d('[part="base"]')],e.prototype,"defaultSlot",2),t([r()],e.prototype,"current",2),t([r()],e.prototype,"selected",2),t([r()],e.prototype,"hasHover",2),t([r()],e.prototype,"isKeyboardFocus",2),t([a({type:String,reflect:!0})],e.prototype,"size",2),t([a({type:Boolean,reflect:!0})],e.prototype,"checkbox",2),t([a({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([a({type:String,reflect:!0})],e.prototype,"value",2),t([o("disabled")],e.prototype,"handleDisabledChange",1),t([o("selected")],e.prototype,"handleSelectedChange",1),t([o("value")],e.prototype,"handleValueChange",1),e=t([h("sd-5-16-2-next-1-option")],e);export{e as a};
@@ -1,2 +1,2 @@
1
- import{a as A}from"./chunk.CSLPZKLY.js";import{a as z}from"./chunk.VYBQ3X2B.js";import{a as L}from"./chunk.N3WG3NAL.js";import{b as F}from"./chunk.JS2HQ2N4.js";import{a as M}from"./chunk.CGQ2BPPZ.js";import{a as n}from"./chunk.PV6UYBMY.js";import{a as P,b as T}from"./chunk.D6LAH53B.js";import{a}from"./chunk.YEDQWNIV.js";import{a as V}from"./chunk.7BPPDSHY.js";import{a as m}from"./chunk.NYKJXI3Q.js";import{a as E,b as s,c as p,d as v,h as y}from"./chunk.45AHR6PI.js";import{b as C,e as r,h as k,i as D}from"./chunk.763RLJEK.js";import{a as $,e as i}from"./chunk.6EV4YU6C.js";var g=class extends A{constructor(e){super(e);this.handlePointerDown=e=>{e.button!==0||this.host.disabled||this.spinOnLongPressCallback(e)};this.handlePointerUp=e=>{e==null||e.preventDefault(),e==null||e.stopPropagation(),this.timeout&&this.callbacks.start(),this.stopSpinningAndCleanUp(),this.callbacks.end(),document.removeEventListener("pointerup",this.handlePointerUp)};if(e.type!==P.ELEMENT||!(e.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(e){return D}update(e,[l]){return this.callbacks===void 0&&this.host===void 0&&(this.host=e.element,this.callbacks=$({},l),this.host.addEventListener("pointerdown",this.handlePointerDown)),k}disconnected(){this.stopSpinningAndCleanUp(),this.host.removeEventListener("pointerdown",this.handlePointerDown),document.removeEventListener("pointerup",this.handlePointerUp)}spinOnLongPressCallback(e){var l;e.preventDefault(),e.stopPropagation(),this.timeout=setTimeout(()=>{this.timeout=void 0,this.interval=setInterval(()=>{this.callbacks.start()},50)},500),document.addEventListener("pointerup",this.handlePointerUp),(l=this.observer)==null||l.disconnect(),this.observer=new MutationObserver(u=>{u.forEach(c=>{c.attributeName==="disabled"&&this.stopSpinningAndCleanUp()})}),this.observer.observe(this.host,{attributes:!0})}stopSpinningAndCleanUp(){var e;clearInterval(this.interval),clearTimeout(this.timeout),(e=this.observer)==null||e.disconnect()}},w=T(g);var B,S=(B=navigator.userAgentData)==null?void 0:B.brands.some(b=>b.brand.includes("Chromium")),_=S?!1:navigator.userAgent.includes("Firefox"),t=class extends y{constructor(){super(...arguments);this.formControlController=new F(this);this.hasSlotController=new M(this,"help-text","label","left","right","message","placeholder");this.localize=new V(this);this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.type="text";this.size="lg";this.value="";this.defaultValue="";this.placeholder="";this.label="";this.helpText="";this.clearable=!1;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.passwordToggle=!1;this.passwordVisible=!1;this.spinButtons=!1;this.form="";this.name="";this.title="";this.required=!1;this.styleOnValid=!1;this.spellcheck=!0}get valueAsDate(){var e,l;return(l=(e=this.input)==null?void 0:e.valueAsDate)!=null?l:null}set valueAsDate(e){let l=document.createElement("input");l.type="date",l.valueAsDate=e,this.value=l.value}get valueAsNumber(){var e,l;return(l=(e=this.input)==null?void 0:e.valueAsNumber)!=null?l:parseFloat(this.value)}set valueAsNumber(e){let l=document.createElement("input");l.type="number",l.valueAsNumber=e,this.value=l.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(e){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),e.stopPropagation()}handleSearchClick(e){this.emit("sd-search"),e.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.input.value=this.value;return}this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e),this.invalidMessage.textContent=e.target.validationMessage}handleKeyDown(e){let l=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;e.key==="Enter"&&!l&&setTimeout(()=>{!e.defaultPrevented&&!e.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}isDecrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.min===void 0||this.min===null)return!1;let e=typeof this.min=="string"?parseFloat(this.min):this.min;return this.valueAsNumber<=e}isIncrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.max===void 0||this.max===null)return!1;let e=typeof this.max=="string"?parseFloat(this.max):this.max;return this.valueAsNumber>=e}handleStep(){this.handleInput(),this.input.focus()}handleStepUp(){this.stepUp(),this.handleStep()}handleStepDown(){this.stepDown(),this.handleStep()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(e){this.input.focus(e)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(e,l,u="none"){this.input.setSelectionRange(e,l,u)}setRangeText(e,l,u,c){this.input.setRangeText(e,l,u,c),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var e;return(e=this.input)==null?void 0:e.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),description:this.hasSlotController.test("description"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right"),tooltip:this.hasSlotController.test("tooltip")},l=this.label?!0:!!e.label,u=this.helpText?!0:!!e.helpText,c=this.clearable&&!this.readonly&&(typeof this.value=="number"||this.value.length>0),U=!!e.tooltip,f=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",x=this.size==="sm"?"text-sm":"text-base",H={disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[f],d=this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",h={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],o={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return r`<div part="form-control" class="${a((this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${l||U?r`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${a(l?"inline-block":"hidden",x)}" for="input" aria-hidden="${l?"false":"true"}"><slot name="label">${this.label}</slot></label> ${e.tooltip?r`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${a("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}"><div part="border" class="${a("absolute w-full h-full pointer-events-none border rounded-default transition-[border] ease-in-out duration-medium hover:duration-fast",H)}"></div><div part="base" class="${a("px-4 flex flex-row items-center rounded-default transition-colors ease-in-out duration-medium hover:duration-fast",this.size==="lg"?"py-2":"py-1",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",f==="disabled"||f==="visuallyDisabled"?"text-neutral-500":"text-black")}">${e.left?r`<slot name="left" part="left" class="${a("inline-flex",this.size==="sm"?"mr-1":"mr-2",d,o)}"></slot>`:""} <input part="input" id="input" class="${a("min-w-0 flex-grow focus:outline-none bg-transparent",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",this.size==="sm"?"h-6":"h-8",x)}" type="${this.type==="password"&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${n(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${n(this.placeholder)}" minlength="${n(this.minlength)}" maxlength="${n(this.maxlength)}" min="${n(this.min)}" max="${n(this.max)}" step="${n(this.step)}" .value="${z(this.value)}" autocapitalize="${n(this.type==="password"?"off":this.autocapitalize)}" autocomplete="${n(this.autocomplete)}" autocorrect="${n(this.type==="password"?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${n(this.pattern)}" enterkeyhint="${n(this.enterkeyhint)}" inputmode="${n(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled||this.disabled?"true":"false"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${c?r`<button part="clear-button" class="${a("flex justify-center",h)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-16-2-next-0-icon class="${a("text-neutral-700",o)}" library="_internal" name="closing-round"></sd-5-16-2-next-0-icon></slot></button>`:""} ${this.passwordToggle&&this.type==="password"?r`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="${a("flex items-center sd-interactive",h)}" type="button" @click="${this.handlePasswordToggle}">${this.passwordVisible?r`<slot name="show-password-icon"><sd-5-16-2-next-0-icon class="${a(d,o)}" library="_internal" name="eye"></sd-5-16-2-next-0-icon></slot>`:r`<slot name="hide-password-icon"><sd-5-16-2-next-0-icon class="${a(d,o)}" library="_internal" name="eye-crossed-out"></sd-5-16-2-next-0-icon></slot>`}</button>`:""} ${(this.type==="date"||this.type==="datetime-local")&&!_?r`<sd-5-16-2-next-0-icon class="${a(d,h,o)}" library="_internal" name="calendar"></sd-5-16-2-next-0-icon>`:""} ${this.type==="time"?r`<sd-5-16-2-next-0-icon class="${a(d,h,o)}" library="_internal" name="clock"></sd-5-16-2-next-0-icon>`:""} ${this.type==="search"?r`<button class="${a("flex items-center sd-interactive",h)}" type="button" @click="${this.handleSearchClick}"><sd-5-16-2-next-0-icon class="${a(d,o)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-5-16-2-next-0-icon></button>`:""} ${this.showInvalidStyle?r`<sd-5-16-2-next-0-icon part="invalid-icon" class="${a("text-error",h,o)}" library="_internal" name="risk"></sd-5-16-2-next-0-icon>`:""} ${this.showValidStyle&&this.styleOnValid?r`<sd-5-16-2-next-0-icon class="${a("text-success flex-shrink-0",h,o)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-5-16-2-next-0-icon>`:""} ${e.right?r`<slot name="right" part="right" class="${a("inline-flex",d,h,o)}"></slot>`:""} ${this.type==="number"&&this.spinButtons?r`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${w({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1"><slot name="decrement-number-stepper"><sd-5-16-2-next-0-icon library="_internal" name="minus-circle" label="Decrease value" class="${a(d,h,o)}"></sd-5-16-2-next-0-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${w({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-5-16-2-next-0-icon library="_internal" name="plus-circle" label="Decrease value" class="${a(d,h,o)}"></sd-5-16-2-next-0-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${a("text-sm text-neutral-700 mt-1",u?"block":"hidden")}" aria-hidden="${!u}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};t.styles=[...y.styles,C`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) #label::after{content:' *'}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-5-16-2-next-0-icon{color:var(--sd-color-text-neutral-500)}`],i([v("#input")],t.prototype,"input",2),i([v("#invalid-message")],t.prototype,"invalidMessage",2),i([p()],t.prototype,"hasFocus",2),i([p()],t.prototype,"showValidStyle",2),i([p()],t.prototype,"showInvalidStyle",2),i([s({type:String,reflect:!0})],t.prototype,"type",2),i([s({type:String,reflect:!0})],t.prototype,"size",2),i([s({type:String,reflect:!0})],t.prototype,"inputmode",2),i([s()],t.prototype,"value",2),i([L()],t.prototype,"defaultValue",2),i([s({type:String,reflect:!0})],t.prototype,"placeholder",2),i([s({type:String,reflect:!0})],t.prototype,"label",2),i([s({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),i([s({type:Boolean,reflect:!0})],t.prototype,"clearable",2),i([s({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([s({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),i([s({type:Boolean,reflect:!0})],t.prototype,"readonly",2),i([s({attribute:"password-toggle",type:Boolean,reflect:!0})],t.prototype,"passwordToggle",2),i([s({attribute:"password-visible",type:Boolean,reflect:!0})],t.prototype,"passwordVisible",2),i([s({attribute:"spin-buttons",type:Boolean,reflect:!0})],t.prototype,"spinButtons",2),i([s({type:Number,reflect:!0})],t.prototype,"minlength",2),i([s({type:Number,reflect:!0})],t.prototype,"maxlength",2),i([s({reflect:!0})],t.prototype,"min",2),i([s({reflect:!0})],t.prototype,"max",2),i([s({type:String,reflect:!0})],t.prototype,"form",2),i([s({type:String,reflect:!0})],t.prototype,"name",2),i([s({type:String,reflect:!0})],t.prototype,"title",2),i([s({type:Boolean,reflect:!0})],t.prototype,"required",2),i([s()],t.prototype,"pattern",2),i([s({reflect:!0})],t.prototype,"step",2),i([s({type:String,reflect:!0})],t.prototype,"autocapitalize",2),i([s({type:String,reflect:!0})],t.prototype,"autocorrect",2),i([s({reflect:!0})],t.prototype,"autocomplete",2),i([s({type:Boolean,reflect:!0})],t.prototype,"autofocus",2),i([s({type:String,reflect:!0})],t.prototype,"enterkeyhint",2),i([s({type:Boolean,reflect:!0,attribute:"style-on-valid"})],t.prototype,"styleOnValid",2),i([s({type:Boolean,converter:{fromAttribute:e=>!(!e||e==="false"),toAttribute:e=>e?"true":"false"}})],t.prototype,"spellcheck",2),i([m("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),i([m("step",{waitUntilFirstUpdate:!0})],t.prototype,"handleStepChange",1),i([m("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1),t=i([E("sd-5-16-2-next-0-input")],t);export{t as a};
1
+ import{a as A}from"./chunk.CSLPZKLY.js";import{a as z}from"./chunk.VYBQ3X2B.js";import{a as L}from"./chunk.N3WG3NAL.js";import{b as F}from"./chunk.JS2HQ2N4.js";import{a as M}from"./chunk.CGQ2BPPZ.js";import{a as n}from"./chunk.PV6UYBMY.js";import{a as P,b as T}from"./chunk.D6LAH53B.js";import{a}from"./chunk.YEDQWNIV.js";import{a as V}from"./chunk.7BPPDSHY.js";import{a as m}from"./chunk.NYKJXI3Q.js";import{a as E,b as s,c as p,d as v,h as y}from"./chunk.PES7MZKA.js";import{b as C,e as r,h as k,i as D}from"./chunk.763RLJEK.js";import{a as $,e as i}from"./chunk.6EV4YU6C.js";var g=class extends A{constructor(e){super(e);this.handlePointerDown=e=>{e.button!==0||this.host.disabled||this.spinOnLongPressCallback(e)};this.handlePointerUp=e=>{e==null||e.preventDefault(),e==null||e.stopPropagation(),this.timeout&&this.callbacks.start(),this.stopSpinningAndCleanUp(),this.callbacks.end(),document.removeEventListener("pointerup",this.handlePointerUp)};if(e.type!==P.ELEMENT||!(e.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(e){return D}update(e,[l]){return this.callbacks===void 0&&this.host===void 0&&(this.host=e.element,this.callbacks=$({},l),this.host.addEventListener("pointerdown",this.handlePointerDown)),k}disconnected(){this.stopSpinningAndCleanUp(),this.host.removeEventListener("pointerdown",this.handlePointerDown),document.removeEventListener("pointerup",this.handlePointerUp)}spinOnLongPressCallback(e){var l;e.preventDefault(),e.stopPropagation(),this.timeout=setTimeout(()=>{this.timeout=void 0,this.interval=setInterval(()=>{this.callbacks.start()},50)},500),document.addEventListener("pointerup",this.handlePointerUp),(l=this.observer)==null||l.disconnect(),this.observer=new MutationObserver(u=>{u.forEach(c=>{c.attributeName==="disabled"&&this.stopSpinningAndCleanUp()})}),this.observer.observe(this.host,{attributes:!0})}stopSpinningAndCleanUp(){var e;clearInterval(this.interval),clearTimeout(this.timeout),(e=this.observer)==null||e.disconnect()}},w=T(g);var B,S=(B=navigator.userAgentData)==null?void 0:B.brands.some(b=>b.brand.includes("Chromium")),_=S?!1:navigator.userAgent.includes("Firefox"),t=class extends y{constructor(){super(...arguments);this.formControlController=new F(this);this.hasSlotController=new M(this,"help-text","label","left","right","message","placeholder");this.localize=new V(this);this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.type="text";this.size="lg";this.value="";this.defaultValue="";this.placeholder="";this.label="";this.helpText="";this.clearable=!1;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.passwordToggle=!1;this.passwordVisible=!1;this.spinButtons=!1;this.form="";this.name="";this.title="";this.required=!1;this.styleOnValid=!1;this.spellcheck=!0}get valueAsDate(){var e,l;return(l=(e=this.input)==null?void 0:e.valueAsDate)!=null?l:null}set valueAsDate(e){let l=document.createElement("input");l.type="date",l.valueAsDate=e,this.value=l.value}get valueAsNumber(){var e,l;return(l=(e=this.input)==null?void 0:e.valueAsNumber)!=null?l:parseFloat(this.value)}set valueAsNumber(e){let l=document.createElement("input");l.type="number",l.valueAsNumber=e,this.value=l.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(e){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),e.stopPropagation()}handleSearchClick(e){this.emit("sd-search"),e.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.input.value=this.value;return}this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e),this.invalidMessage.textContent=e.target.validationMessage}handleKeyDown(e){let l=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;e.key==="Enter"&&!l&&setTimeout(()=>{!e.defaultPrevented&&!e.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}isDecrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.min===void 0||this.min===null)return!1;let e=typeof this.min=="string"?parseFloat(this.min):this.min;return this.valueAsNumber<=e}isIncrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.max===void 0||this.max===null)return!1;let e=typeof this.max=="string"?parseFloat(this.max):this.max;return this.valueAsNumber>=e}handleStep(){this.handleInput(),this.input.focus()}handleStepUp(){this.stepUp(),this.handleStep()}handleStepDown(){this.stepDown(),this.handleStep()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(e){this.input.focus(e)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(e,l,u="none"){this.input.setSelectionRange(e,l,u)}setRangeText(e,l,u,c){this.input.setRangeText(e,l,u,c),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var e;return(e=this.input)==null?void 0:e.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),description:this.hasSlotController.test("description"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right"),tooltip:this.hasSlotController.test("tooltip")},l=this.label?!0:!!e.label,u=this.helpText?!0:!!e.helpText,c=this.clearable&&!this.readonly&&(typeof this.value=="number"||this.value.length>0),U=!!e.tooltip,f=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",x=this.size==="sm"?"text-sm":"text-base",H={disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[f],d=this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",h={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],o={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return r`<div part="form-control" class="${a((this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${l||U?r`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${a(l?"inline-block":"hidden",x)}" for="input" aria-hidden="${l?"false":"true"}"><slot name="label">${this.label}</slot></label> ${e.tooltip?r`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${a("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}"><div part="border" class="${a("absolute w-full h-full pointer-events-none border rounded-default transition-[border] ease-in-out duration-medium hover:duration-fast",H)}"></div><div part="base" class="${a("px-4 flex flex-row items-center rounded-default transition-colors ease-in-out duration-medium hover:duration-fast",this.size==="lg"?"py-2":"py-1",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",f==="disabled"||f==="visuallyDisabled"?"text-neutral-500":"text-black")}">${e.left?r`<slot name="left" part="left" class="${a("inline-flex",this.size==="sm"?"mr-1":"mr-2",d,o)}"></slot>`:""} <input part="input" id="input" class="${a("min-w-0 flex-grow focus:outline-none bg-transparent",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",this.size==="sm"?"h-6":"h-8",x)}" type="${this.type==="password"&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${n(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${n(this.placeholder)}" minlength="${n(this.minlength)}" maxlength="${n(this.maxlength)}" min="${n(this.min)}" max="${n(this.max)}" step="${n(this.step)}" .value="${z(this.value)}" autocapitalize="${n(this.type==="password"?"off":this.autocapitalize)}" autocomplete="${n(this.autocomplete)}" autocorrect="${n(this.type==="password"?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${n(this.pattern)}" enterkeyhint="${n(this.enterkeyhint)}" inputmode="${n(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled||this.disabled?"true":"false"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${c?r`<button part="clear-button" class="${a("flex justify-center",h)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-16-2-next-1-icon class="${a("text-neutral-700",o)}" library="_internal" name="closing-round"></sd-5-16-2-next-1-icon></slot></button>`:""} ${this.passwordToggle&&this.type==="password"?r`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="${a("flex items-center sd-interactive",h)}" type="button" @click="${this.handlePasswordToggle}">${this.passwordVisible?r`<slot name="show-password-icon"><sd-5-16-2-next-1-icon class="${a(d,o)}" library="_internal" name="eye"></sd-5-16-2-next-1-icon></slot>`:r`<slot name="hide-password-icon"><sd-5-16-2-next-1-icon class="${a(d,o)}" library="_internal" name="eye-crossed-out"></sd-5-16-2-next-1-icon></slot>`}</button>`:""} ${(this.type==="date"||this.type==="datetime-local")&&!_?r`<sd-5-16-2-next-1-icon class="${a(d,h,o)}" library="_internal" name="calendar"></sd-5-16-2-next-1-icon>`:""} ${this.type==="time"?r`<sd-5-16-2-next-1-icon class="${a(d,h,o)}" library="_internal" name="clock"></sd-5-16-2-next-1-icon>`:""} ${this.type==="search"?r`<button class="${a("flex items-center sd-interactive",h)}" type="button" @click="${this.handleSearchClick}"><sd-5-16-2-next-1-icon class="${a(d,o)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-5-16-2-next-1-icon></button>`:""} ${this.showInvalidStyle?r`<sd-5-16-2-next-1-icon part="invalid-icon" class="${a("text-error",h,o)}" library="_internal" name="risk"></sd-5-16-2-next-1-icon>`:""} ${this.showValidStyle&&this.styleOnValid?r`<sd-5-16-2-next-1-icon class="${a("text-success flex-shrink-0",h,o)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-5-16-2-next-1-icon>`:""} ${e.right?r`<slot name="right" part="right" class="${a("inline-flex",d,h,o)}"></slot>`:""} ${this.type==="number"&&this.spinButtons?r`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${w({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1"><slot name="decrement-number-stepper"><sd-5-16-2-next-1-icon library="_internal" name="minus-circle" label="Decrease value" class="${a(d,h,o)}"></sd-5-16-2-next-1-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${w({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-5-16-2-next-1-icon library="_internal" name="plus-circle" label="Decrease value" class="${a(d,h,o)}"></sd-5-16-2-next-1-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${a("text-sm text-neutral-700 mt-1",u?"block":"hidden")}" aria-hidden="${!u}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};t.styles=[...y.styles,C`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) #label::after{content:' *'}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-5-16-2-next-1-icon{color:var(--sd-color-text-neutral-500)}`],i([v("#input")],t.prototype,"input",2),i([v("#invalid-message")],t.prototype,"invalidMessage",2),i([p()],t.prototype,"hasFocus",2),i([p()],t.prototype,"showValidStyle",2),i([p()],t.prototype,"showInvalidStyle",2),i([s({type:String,reflect:!0})],t.prototype,"type",2),i([s({type:String,reflect:!0})],t.prototype,"size",2),i([s({type:String,reflect:!0})],t.prototype,"inputmode",2),i([s()],t.prototype,"value",2),i([L()],t.prototype,"defaultValue",2),i([s({type:String,reflect:!0})],t.prototype,"placeholder",2),i([s({type:String,reflect:!0})],t.prototype,"label",2),i([s({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),i([s({type:Boolean,reflect:!0})],t.prototype,"clearable",2),i([s({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([s({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),i([s({type:Boolean,reflect:!0})],t.prototype,"readonly",2),i([s({attribute:"password-toggle",type:Boolean,reflect:!0})],t.prototype,"passwordToggle",2),i([s({attribute:"password-visible",type:Boolean,reflect:!0})],t.prototype,"passwordVisible",2),i([s({attribute:"spin-buttons",type:Boolean,reflect:!0})],t.prototype,"spinButtons",2),i([s({type:Number,reflect:!0})],t.prototype,"minlength",2),i([s({type:Number,reflect:!0})],t.prototype,"maxlength",2),i([s({reflect:!0})],t.prototype,"min",2),i([s({reflect:!0})],t.prototype,"max",2),i([s({type:String,reflect:!0})],t.prototype,"form",2),i([s({type:String,reflect:!0})],t.prototype,"name",2),i([s({type:String,reflect:!0})],t.prototype,"title",2),i([s({type:Boolean,reflect:!0})],t.prototype,"required",2),i([s()],t.prototype,"pattern",2),i([s({reflect:!0})],t.prototype,"step",2),i([s({type:String,reflect:!0})],t.prototype,"autocapitalize",2),i([s({type:String,reflect:!0})],t.prototype,"autocorrect",2),i([s({reflect:!0})],t.prototype,"autocomplete",2),i([s({type:Boolean,reflect:!0})],t.prototype,"autofocus",2),i([s({type:String,reflect:!0})],t.prototype,"enterkeyhint",2),i([s({type:Boolean,reflect:!0,attribute:"style-on-valid"})],t.prototype,"styleOnValid",2),i([s({type:Boolean,converter:{fromAttribute:e=>!(!e||e==="false"),toAttribute:e=>e?"true":"false"}})],t.prototype,"spellcheck",2),i([m("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),i([m("step",{waitUntilFirstUpdate:!0})],t.prototype,"handleStepChange",1),i([m("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1),t=i([E("sd-5-16-2-next-1-input")],t);export{t as a};
@@ -0,0 +1,2 @@
1
+ import{a as h}from"./chunk.CGQ2BPPZ.js";import{a}from"./chunk.YEDQWNIV.js";import{a as y}from"./chunk.7BPPDSHY.js";import{a as c,b as o,d as u,h as l}from"./chunk.PES7MZKA.js";import{b as p,e as r}from"./chunk.763RLJEK.js";import{e as s}from"./chunk.6EV4YU6C.js";var e=class extends l{constructor(){super(...arguments);this.localize=new y(this);this.playing=!1;this.isBelowBreakpoint=!1;this.hasSlotController=new h(this,"[default]","play-icon","poster")}get poster(){let t=this.shadowRoot.querySelector("slot[name=poster]");return(t==null?void 0:t.assignedElements().length)>0?t.assignedElements()[0]:null}get video(){return this.querySelector("video")}async hidePoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.opacity="0",await new Promise(t=>setTimeout(t,this.token("--sd-duration-medium",300))),this.poster.style.display="none")}setVideoInert(t){var i,n;t?(i=this.video)==null||i.setAttribute("inert",""):(n=this.video)==null||n.removeAttribute("inert")}play(){var t;this.emit("sd-play"),this.playing=!0,(t=this.video)==null||t.play(),this.hidePoster(),this.setVideoInert(!1)}handleKeydown(t){t instanceof KeyboardEvent&&(t.key==="Enter"||t.key===" ")&&(this.play(),setTimeout(()=>{var i;(i=this.video)==null||i.focus()}))}handleButtonResize(){this.hostEl.clientWidth<=414&&!this.isBelowBreakpoint&&(this.isBelowBreakpoint=!0),this.hostEl.clientWidth>414&&this.isBelowBreakpoint&&(this.isBelowBreakpoint=!1)}connectedCallback(){super.connectedCallback(),this.setVideoInert(!0),this.resizeObserver=new ResizeObserver(()=>this.handleButtonResize()),this.updateComplete.then(()=>{this.resizeObserver.observe(this.hostEl)})}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.hostEl)}render(){return r`<div part="base" class="cursor-pointer"><button part="play-button" aria-label="${this.localize.term("playVideo")}" tabindex="0" @click="${this.play}" @keydown="${this.handleKeydown}" class="${a(this.playing&&"pointer-events-none","group w-full h-full absolute top-0 left-0 z-30 text-primary hover:text-primary-500 sd-interactive outline-hidden focus-visible:focus-outline")}"><div part="play-button-bg" class="${a(this.playing?"opacity-0":"opacity-100",this.isBelowBreakpoint?"w-[48px] h-[48px]":"w-[96px] h-[96px]","absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white/75 rounded-full play-pause-transition group-focus-visible:outline-2 group-focus-visible:outline-offset-2")}"><slot name="play-icon" part="play-icon" class="${a(this.isBelowBreakpoint?"text-[2rem]":"text-[4rem]")}"><sd-5-16-2-next-1-icon id="default-play-icon" library="_internal" name="start"></sd-5-16-2-next-1-icon></slot></div></button> ${this.hasSlotController.test("poster")?r`<div part="poster-wrapper" class="absolute left-0 top-0 w-full z-10 overflow-hidden"><slot name="poster" role="presentation"></slot></div>`:null}<slot></slot></div>`}};e.styles=[...l.styles,p`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
+ :host{position:relative;display:inline-block;overflow:hidden}.play-pause-transition,::slotted([slot=poster]){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);transition-property:opacity,scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-medium, 300ms);transition-duration:var(--sd-duration-medium,300ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}#default-play-icon,::slotted([slot=play-icon]){position:absolute;top:calc(1/2 * 100%);left:calc(1/2 * 100%);--tw-translate-x:calc(calc(1/2 * 100%) * -1)!important;--tw-translate-y:calc(calc(1/2 * 100%) * -1)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important;transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}:has([part=play-button]:hover) ::slotted([slot=poster]){--tw-scale-x:110%!important;--tw-scale-y:110%!important;--tw-scale-z:110%!important;scale:var(--tw-scale-x) var(--tw-scale-y)!important}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}`],s([u("[part=base]")],e.prototype,"hostEl",2),s([o({type:Boolean,reflect:!0})],e.prototype,"playing",2),s([o({type:Boolean})],e.prototype,"isBelowBreakpoint",2),e=s([c("sd-5-16-2-next-1-video")],e);export{e as a};
@@ -1,2 +1,2 @@
1
- import{a as w}from"./chunk.7BPPDSHY.js";import{a as p,d as f,h}from"./chunk.45AHR6PI.js";import{b as u,e as c}from"./chunk.763RLJEK.js";import{e as m}from"./chunk.6EV4YU6C.js";var a=class extends h{constructor(){super(...arguments);this.localize=new w(this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menu")}handleClick(t){let e=["menuitem","menuitemcheckbox"],r=t.composedPath(),s=r.find(i=>{var l;return e.includes(((l=i==null?void 0:i.getAttribute)==null?void 0:l.call(i,"role"))||"")});if(!s||r.find(i=>{var l;return((l=i==null?void 0:i.getAttribute)==null?void 0:l.call(i,"role"))==="menu"})!==this)return;let o=s;o.type==="checkbox"&&(o.checked=!o.checked),this.emit("sd-select",{detail:{item:o}})}handleKeyDown(t){if(t.key==="Enter"||t.key===" "){let e=this.getCurrentItem();t.preventDefault(),t.stopPropagation(),e==null||e.click()}else if(["ArrowDown","ArrowUp","Home","End"].includes(t.key)){let e=this.getAllItems(),r=this.getCurrentItem(),s=r?e.indexOf(r):0;if(e.length>0){t.preventDefault(),t.stopPropagation();let d=(n,o)=>{let i=n;for(let l of e)if(i=(i+o+e.length)%e.length,!e[i].disabled)return i;return n};if(t.key==="ArrowDown")s=d(s,1);else if(t.key==="ArrowUp")s=d(s,-1);else if(t.key==="Home")s=e.findIndex(n=>!n.disabled),s===-1&&(s=0);else if(t.key==="End"){s=e.length-1;for(let n=e.length-1;n>=0;n--)if(!e[n].disabled){s=n;break}}this.setCurrentItem(e[s]),e[s].focus()}}}handleMouseDown(t){let e=t.target;this.isMenuItem(e)&&this.setCurrentItem(e)}handleSlotChange(){let t=this.getAllItems();t.length>0&&this.setCurrentItem(t[0])}isMenuItem(t){var e;return t.tagName.toLowerCase()==="sd-5-16-2-next-0-menu-item"||["menuitem","menuitemcheckbox","menuitemradio"].includes((e=t.getAttribute("role"))!=null?e:"")}getAllItems(){return[...this.defaultSlot.assignedElements({flatten:!0})].filter(t=>!!this.isMenuItem(t))}getCurrentItem(){return this.getAllItems().find(t=>t.getAttribute("tabindex")==="0")}setCurrentItem(t){this.getAllItems().forEach(r=>{r.setAttribute("tabindex",r===t?"0":"-1")})}render(){return c`<slot @slotchange="${this.handleSlotChange}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}" @mousedown="${this.handleMouseDown}"></slot>`}};a.styles=[...h.styles,u`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
- :host{position:relative;display:block;overflow:auto;overscroll-behavior:auto;border-radius:var(--sd-radius-md);padding-inline:var(--sd-spacing-2);padding-block:var(--sd-spacing-3);--tw-shadow:var(--sd-shadow)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}::slotted(sd-5-16-2-next-0-divider){padding-block:var(--sd-spacing-3)}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}`],m([f("slot")],a.prototype,"defaultSlot",2),a=m([p("sd-5-16-2-next-0-menu")],a);export{a};
1
+ import{a as w}from"./chunk.7BPPDSHY.js";import{a as p,d as f,h}from"./chunk.PES7MZKA.js";import{b as u,e as c}from"./chunk.763RLJEK.js";import{e as m}from"./chunk.6EV4YU6C.js";var a=class extends h{constructor(){super(...arguments);this.localize=new w(this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menu")}handleClick(t){let e=["menuitem","menuitemcheckbox"],r=t.composedPath(),s=r.find(i=>{var l;return e.includes(((l=i==null?void 0:i.getAttribute)==null?void 0:l.call(i,"role"))||"")});if(!s||r.find(i=>{var l;return((l=i==null?void 0:i.getAttribute)==null?void 0:l.call(i,"role"))==="menu"})!==this)return;let o=s;o.type==="checkbox"&&(o.checked=!o.checked),this.emit("sd-select",{detail:{item:o}})}handleKeyDown(t){if(t.key==="Enter"||t.key===" "){let e=this.getCurrentItem();t.preventDefault(),t.stopPropagation(),e==null||e.click()}else if(["ArrowDown","ArrowUp","Home","End"].includes(t.key)){let e=this.getAllItems(),r=this.getCurrentItem(),s=r?e.indexOf(r):0;if(e.length>0){t.preventDefault(),t.stopPropagation();let d=(n,o)=>{let i=n;for(let l of e)if(i=(i+o+e.length)%e.length,!e[i].disabled)return i;return n};if(t.key==="ArrowDown")s=d(s,1);else if(t.key==="ArrowUp")s=d(s,-1);else if(t.key==="Home")s=e.findIndex(n=>!n.disabled),s===-1&&(s=0);else if(t.key==="End"){s=e.length-1;for(let n=e.length-1;n>=0;n--)if(!e[n].disabled){s=n;break}}this.setCurrentItem(e[s]),e[s].focus()}}}handleMouseDown(t){let e=t.target;this.isMenuItem(e)&&this.setCurrentItem(e)}handleSlotChange(){let t=this.getAllItems();t.length>0&&this.setCurrentItem(t[0])}isMenuItem(t){var e;return t.tagName.toLowerCase()==="sd-5-16-2-next-1-menu-item"||["menuitem","menuitemcheckbox","menuitemradio"].includes((e=t.getAttribute("role"))!=null?e:"")}getAllItems(){return[...this.defaultSlot.assignedElements({flatten:!0})].filter(t=>!!this.isMenuItem(t))}getCurrentItem(){return this.getAllItems().find(t=>t.getAttribute("tabindex")==="0")}setCurrentItem(t){this.getAllItems().forEach(r=>{r.setAttribute("tabindex",r===t?"0":"-1")})}render(){return c`<slot @slotchange="${this.handleSlotChange}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}" @mousedown="${this.handleMouseDown}"></slot>`}};a.styles=[...h.styles,u`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
+ :host{position:relative;display:block;overflow:auto;overscroll-behavior:auto;border-radius:var(--sd-radius-md);padding-inline:var(--sd-spacing-2);padding-block:var(--sd-spacing-3);--tw-shadow:var(--sd-shadow)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}::slotted(sd-5-16-2-next-1-divider){padding-block:var(--sd-spacing-3)}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}`],m([f("slot")],a.prototype,"defaultSlot",2),a=m([p("sd-5-16-2-next-1-menu")],a);export{a};
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk.MHWW3RZB.js";import{a as s,b as n,d as l,h as a}from"./chunk.45AHR6PI.js";import{b as r,e as d}from"./chunk.763RLJEK.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends a{constructor(){super(...arguments);this.fixed=!1}connectedCallback(){super.connectedCallback(),this.updateCalculatedHeight=this.updateCalculatedHeight.bind(this),this.addResizeObserver=this.addResizeObserver.bind(this),window.addEventListener("resize",this.updateCalculatedHeight)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.updateCalculatedHeight)}firstUpdated(){this.updateCalculatedHeight(),this.addResizeObserver()}updated(i){super.updated(i),i.has("fixed")&&this.updateCalculatedHeight()}addResizeObserver(){this.resizeObserver=new ResizeObserver(this.updateCalculatedHeight),this.header&&this.resizeObserver.observe(this.header)}updateCalculatedHeight(){let i=parseFloat(getComputedStyle(document.documentElement).fontSize),h=window.innerHeight/i;this.header&&this.fixed&&h>=32?document.documentElement.style.setProperty("--sd-header-calculated-height",`${this.header.clientHeight}px`):document.documentElement.style.removeProperty("--sd-header-calculated-height")}render(){return d`<header class="w-full sd-5-16-2-next-0-header-color-background relative" role="banner"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`}};e.styles=[...a.styles,r`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
- :host{position:relative;z-index:var(--sd-z-index-header,600);display:block}@media (min-height:32rem){:host([fixed]){padding-bottom:var(--sd-header-calculated-height)!important}:host([fixed]) header{position:fixed;top:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);width:100%}:host([fixed]) header::after{position:absolute;top:100%;right:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);height:var(--sd-spacing-2);--tw-content:'';content:var(--tw-content);background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%))}}[part=main]{width:var(--sd-header-inner-width);max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px)}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],t([n({reflect:!0,type:Boolean})],e.prototype,"fixed",2),t([l("header")],e.prototype,"header",2),t([o(100)],e.prototype,"updateCalculatedHeight",1),e=t([s("sd-5-16-2-next-0-header")],e);export{e as a};
1
+ import{a as o}from"./chunk.MHWW3RZB.js";import{a as s,b as n,d as l,h as a}from"./chunk.PES7MZKA.js";import{b as r,e as d}from"./chunk.763RLJEK.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends a{constructor(){super(...arguments);this.fixed=!1}connectedCallback(){super.connectedCallback(),this.updateCalculatedHeight=this.updateCalculatedHeight.bind(this),this.addResizeObserver=this.addResizeObserver.bind(this),window.addEventListener("resize",this.updateCalculatedHeight)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.updateCalculatedHeight)}firstUpdated(){this.updateCalculatedHeight(),this.addResizeObserver()}updated(i){super.updated(i),i.has("fixed")&&this.updateCalculatedHeight()}addResizeObserver(){this.resizeObserver=new ResizeObserver(this.updateCalculatedHeight),this.header&&this.resizeObserver.observe(this.header)}updateCalculatedHeight(){let i=parseFloat(getComputedStyle(document.documentElement).fontSize),h=window.innerHeight/i;this.header&&this.fixed&&h>=32?document.documentElement.style.setProperty("--sd-header-calculated-height",`${this.header.clientHeight}px`):document.documentElement.style.removeProperty("--sd-header-calculated-height")}render(){return d`<header class="w-full sd-5-16-2-next-1-header-color-background relative" role="banner"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`}};e.styles=[...a.styles,r`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
+ :host{position:relative;z-index:var(--sd-z-index-header,600);display:block}@media (min-height:32rem){:host([fixed]){padding-bottom:var(--sd-header-calculated-height)!important}:host([fixed]) header{position:fixed;top:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);width:100%}:host([fixed]) header::after{position:absolute;top:100%;right:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);height:var(--sd-spacing-2);--tw-content:'';content:var(--tw-content);background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%))}}[part=main]{width:var(--sd-header-inner-width);max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px)}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`],t([n({reflect:!0,type:Boolean})],e.prototype,"fixed",2),t([l("header")],e.prototype,"header",2),t([o(100)],e.prototype,"updateCalculatedHeight",1),e=t([s("sd-5-16-2-next-1-header")],e);export{e as a};
@@ -1,2 +1,2 @@
1
- import{a as p}from"./chunk.CGQ2BPPZ.js";import{a}from"./chunk.YEDQWNIV.js";import{a as r}from"./chunk.NYKJXI3Q.js";import{a as d,b as o,h as n}from"./chunk.45AHR6PI.js";import{b as m,e as s}from"./chunk.763RLJEK.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends n{constructor(){super(...arguments);this.hasSlotController=new p(this,"label","help-text");this.size="lg";this.orientation="vertical";this.label="";this.helpText=""}getAllCheckboxes(){return[...this.querySelectorAll("sd-5-16-2-next-0-checkbox")]}async syncCheckboxElements(){let i=this.getAllCheckboxes();await Promise.all(i.map(async l=>{await l.updateComplete,l.size=this.size}))}syncCheckboxes(){customElements.get("sd-5-16-2-next-0-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-5-16-2-next-0-checkbox").then(()=>this.syncCheckboxes())}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){let i=this.hasSlotController.test("label"),l=this.label?!0:i,b=this.hasSlotController.test("help-text"),c=this.helpText?!0:b,x=s`<slot @slotchange="${this.syncCheckboxes}"></slot>`,h=this.hasSlotController.test("tooltip");return s`<fieldset part="form-control" class="${a("border-0 p-0 m-0",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label">${l||h?s`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${a("p-0 font-bold leading-normal text-black",l?"flex":"hidden")}" aria-hidden="${l?"false":"true"}"><slot name="label">${this.label}</slot></label> ${h?s`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${a({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${x}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${a("text-sm text-neutral-700 mt-2",c?"block":"hidden")}" aria-hidden="${!c}">${this.helpText}</slot>`}};t.styles=[...n.styles,m`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{display:block}:host([orientation=vertical]) ::slotted(sd-5-16-2-next-0-checkbox){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-5-16-2-next-0-checkbox:last-of-type){margin-bottom:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]) ::slotted(sd-5-16-2-next-0-checkbox){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-5-16-2-next-0-checkbox:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-16-2-next-0-checkbox){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-16-2-next-0-checkbox:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}`],e([o({type:String,reflect:!0})],t.prototype,"size",2),e([o({type:String,reflect:!0})],t.prototype,"orientation",2),e([o({type:String,reflect:!0})],t.prototype,"label",2),e([o({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),e([r("size",{waitUntilFirstUpdate:!0})],t.prototype,"handleSizeChange",1),e([r("invalid",{waitUntilFirstUpdate:!0})],t.prototype,"handleInvalid",1),t=e([d("sd-5-16-2-next-0-checkbox-group")],t);export{t as a};
1
+ import{a as p}from"./chunk.CGQ2BPPZ.js";import{a}from"./chunk.YEDQWNIV.js";import{a as r}from"./chunk.NYKJXI3Q.js";import{a as d,b as o,h as n}from"./chunk.PES7MZKA.js";import{b as m,e as s}from"./chunk.763RLJEK.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends n{constructor(){super(...arguments);this.hasSlotController=new p(this,"label","help-text");this.size="lg";this.orientation="vertical";this.label="";this.helpText=""}getAllCheckboxes(){return[...this.querySelectorAll("sd-5-16-2-next-1-checkbox")]}async syncCheckboxElements(){let i=this.getAllCheckboxes();await Promise.all(i.map(async l=>{await l.updateComplete,l.size=this.size}))}syncCheckboxes(){customElements.get("sd-5-16-2-next-1-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-5-16-2-next-1-checkbox").then(()=>this.syncCheckboxes())}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){let i=this.hasSlotController.test("label"),l=this.label?!0:i,b=this.hasSlotController.test("help-text"),c=this.helpText?!0:b,x=s`<slot @slotchange="${this.syncCheckboxes}"></slot>`,h=this.hasSlotController.test("tooltip");return s`<fieldset part="form-control" class="${a("border-0 p-0 m-0",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label">${l||h?s`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${a("p-0 font-bold leading-normal text-black",l?"flex":"hidden")}" aria-hidden="${l?"false":"true"}"><slot name="label">${this.label}</slot></label> ${h?s`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${a({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${x}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${a("text-sm text-neutral-700 mt-2",c?"block":"hidden")}" aria-hidden="${!c}">${this.helpText}</slot>`}};t.styles=[...n.styles,m`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{display:block}:host([orientation=vertical]) ::slotted(sd-5-16-2-next-1-checkbox){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-5-16-2-next-1-checkbox:last-of-type){margin-bottom:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]) ::slotted(sd-5-16-2-next-1-checkbox){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-5-16-2-next-1-checkbox:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-16-2-next-1-checkbox){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-16-2-next-1-checkbox:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}`],e([o({type:String,reflect:!0})],t.prototype,"size",2),e([o({type:String,reflect:!0})],t.prototype,"orientation",2),e([o({type:String,reflect:!0})],t.prototype,"label",2),e([o({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),e([r("size",{waitUntilFirstUpdate:!0})],t.prototype,"handleSizeChange",1),e([r("invalid",{waitUntilFirstUpdate:!0})],t.prototype,"handleInvalid",1),t=e([d("sd-5-16-2-next-1-checkbox-group")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as f}from"./chunk.PV6UYBMY.js";import{a as h}from"./chunk.7BPPDSHY.js";import{a as p}from"./chunk.NYKJXI3Q.js";import{a as o,b as r,d as c,h as i}from"./chunk.45AHR6PI.js";import{b as l,e as a}from"./chunk.763RLJEK.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends i{constructor(){super(...arguments);this.localize=new h(this);this.href="";this.current=!1}handleCurrentChange(){var s,n;!this.base||!this.current||(n=(s=this.base.shadowRoot)==null?void 0:s.querySelector("a"))==null||n.setAttribute("aria-current","page")}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","listitem"),super.connectedCallback()}firstUpdated(){requestAnimationFrame(()=>this.handleCurrentChange())}render(){return a`<sd-5-16-2-next-0-link part="base" href="${f(this.current?void 0:this.href)}" target="${this.target}" standalone class="text-nowrap"><slot></slot></sd-5-16-2-next-0-link>`}};t.styles=[...i.styles,l`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{display:inline-flex;align-items:center}sd-5-16-2-next-0-link::part(base){align-items:center}sd-5-16-2-next-0-link::part(icon-left){margin-right:calc(var(--sd-spacing-1) * 0);display:inline-flex}:host([current]) sd-5-16-2-next-0-link::part(base){color:var(--sd-color-text-neutral-700)}:host([current]) sd-5-16-2-next-0-link::part(label){text-decoration-line:none}`],e([c('[part="base"]')],t.prototype,"base",2),e([r({type:String,reflect:!0})],t.prototype,"href",2),e([r({type:String,reflect:!0})],t.prototype,"target",2),e([r({type:Boolean,reflect:!0})],t.prototype,"current",2),e([p("current")],t.prototype,"handleCurrentChange",1),t=e([o("sd-5-16-2-next-0-breadcrumb-item")],t);export{t as a};
1
+ import{a as f}from"./chunk.PV6UYBMY.js";import{a as h}from"./chunk.7BPPDSHY.js";import{a as p}from"./chunk.NYKJXI3Q.js";import{a as o,b as r,d as c,h as i}from"./chunk.PES7MZKA.js";import{b as l,e as a}from"./chunk.763RLJEK.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends i{constructor(){super(...arguments);this.localize=new h(this);this.href="";this.current=!1}handleCurrentChange(){var s,n;!this.base||!this.current||(n=(s=this.base.shadowRoot)==null?void 0:s.querySelector("a"))==null||n.setAttribute("aria-current","page")}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","listitem"),super.connectedCallback()}firstUpdated(){requestAnimationFrame(()=>this.handleCurrentChange())}render(){return a`<sd-5-16-2-next-1-link part="base" href="${f(this.current?void 0:this.href)}" target="${this.target}" standalone class="text-nowrap"><slot></slot></sd-5-16-2-next-1-link>`}};t.styles=[...i.styles,l`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{display:inline-flex;align-items:center}sd-5-16-2-next-1-link::part(base){align-items:center}sd-5-16-2-next-1-link::part(icon-left){margin-right:calc(var(--sd-spacing-1) * 0);display:inline-flex}:host([current]) sd-5-16-2-next-1-link::part(base){color:var(--sd-color-text-neutral-700)}:host([current]) sd-5-16-2-next-1-link::part(label){text-decoration-line:none}`],e([c('[part="base"]')],t.prototype,"base",2),e([r({type:String,reflect:!0})],t.prototype,"href",2),e([r({type:String,reflect:!0})],t.prototype,"target",2),e([r({type:Boolean,reflect:!0})],t.prototype,"current",2),e([p("current")],t.prototype,"handleCurrentChange",1),t=e([o("sd-5-16-2-next-1-breadcrumb-item")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk.635MGLIZ.js";import{b as H}from"./chunk.JS2HQ2N4.js";import{a as q}from"./chunk.CGQ2BPPZ.js";import{a as E}from"./chunk.YEDQWNIV.js";import{a as A}from"./chunk.7BPPDSHY.js";import{a as F}from"./chunk.NYKJXI3Q.js";import{a as B,b as y,c as L,d as Y,h as z}from"./chunk.45AHR6PI.js";import{b as R,e as C,i as P}from"./chunk.763RLJEK.js";import{e as d}from"./chunk.6EV4YU6C.js";var o=class extends z{constructor(){super();this.localize=new A(this);this.hasSlotController=new q(this,"label","help-text","tooltip");this.formControlController=new H(this,{assumeInteractionOn:["sd-blur","sd-5-16-2-next-0-input"]});this.locale="en-US";this.value=null;this.range=!1;this.rangeStart=null;this.rangeEnd=null;this.allowSameDayRange=!1;this.min=void 0;this.max=void 0;this.firstDayOfWeek=null;this.disabledWeekends=!1;this.disabledDates=[];this.isDateDisabled=null;this.size="lg";this.alignment="left";this.label="";this.helpText="";this.disabled=!1;this.visuallyDisabled=!1;this.styleOnValid=!1;this.readonly=!1;this.placement="bottom";this.placeholder="";this.name="";this.form="";this.open=!1;this.today=a.startOfDayLocal(new Date);this.disabledDatesSet=new Set;this.previewEnd=null;this.statusNavText="";this.statusSelectText="";this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.currentPlacement=this.placement;this.inputValue="";this.tabbingIntoGrid=!1;this.statusBumpCounter=0;this.onFocusIn=t=>{t.composedPath().some(i=>{var n,l;return i instanceof HTMLElement&&(((n=i.classList)==null?void 0:n.contains("nav"))||((l=i.classList)==null?void 0:l.contains("month-label")))})&&(this.tabbingIntoGrid=!0)};this.handleInput=t=>{var l,u,c;let e=t.target,s=e.value,i=(l=e.selectionStart)!=null?l:s.length,n=(u=t.inputType)==null?void 0:u.startsWith("delete");if(this.visuallyDisabled||this.disabled){t.preventDefault(),t.stopPropagation();return}if(this.range){let g=s.replace(/\D/g,""),h=g.slice(0,8),f=g.slice(8,16),r=this.buildDmyFromDigits(h),p=this.buildDmyFromDigits(f),v;h.length===0?v="":h.length<8?v=r:f.length>0?v=`${r} - ${p}`:v=n?r:`${r} -`;let I=this.countDigitsBeforeCaret(s,i),D;if(I<=8){let m=this.digitIndexToDmyCaretPos(Math.min(I,8));D=Math.min(m,r.length)}else{let m=h.length<8?r.length:r.length+3,b=Math.min(I-8,8),S=this.digitIndexToDmyCaretPos(b);D=m+Math.min(S,p.length)}this.inputValue=v;let w=!1;if(/^\d{2}\.\d{2}\.\d{4}$/.test(r)){let m=this.dmyToIso(r),b=m?a.parseLocalISO(m):null;!!b&&!this.isDisabled(b)&&this.inMinMax(b)&&this.rangeStart!==m&&(this.rangeStart=m,this.previewEnd=null,this.viewMonth=new Date(b.getFullYear(),b.getMonth(),1),this.focusedDate=a.startOfDayLocal(b),w=!0)}else this.rangeStart&&(this.rangeStart=null,w=!0),this.rangeEnd&&(this.rangeEnd=null,w=!0);if(/^\d{2}\.\d{2}\.\d{4}$/.test(p)&&this.rangeStart){let m=a.parseLocalISO(this.rangeStart),b=this.dmyToIso(p),S=b?a.parseLocalISO(b):null;if(!!S&&!this.isDisabled(S)&&this.inMinMax(S)){let[T,$]=a.compareDates(m,S)<=0?[m,S]:[S,m],k=a.isSameDay(T,$);if((this.allowSameDayRange||!k)&&!this.wouldRangeContainDisabled(T,$)){let O=a.toLocalISODate(a.startOfDayLocal(T)),x=a.toLocalISODate(a.startOfDayLocal($));(this.rangeStart!==O||this.rangeEnd!==x)&&(this.rangeStart=O,this.rangeEnd=x,this.viewMonth=new Date($.getFullYear(),$.getMonth(),1),this.focusedDate=a.startOfDayLocal($),w=!0)}}}else this.rangeEnd&&(this.rangeEnd=null,w=!0);this.showInvalidStyle=!1,this.showValidStyle=!!(this.rangeStart&&this.rangeEnd),w&&(this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})),Promise.resolve().then(()=>{requestAnimationFrame(()=>{var b;let m=(b=this.input)!=null?b:e;m&&(m.value=this.inputValue,m.setSelectionRange(D,D))})})}else{let g=e,h=g.value,f=(c=g.selectionStart)!=null?c:h.length,r=h.replace(/\D/g,"").slice(0,8),p=r.slice(0,2),v=r.slice(2,4),I=r.slice(4,8),D="";p.length>0&&(D+=p,p.length===2&&(D+=".")),v.length>0&&p.length===2&&(D+=v,v.length===2&&(D+=".")),I.length>0&&p.length===2&&v.length===2&&(D+=I),D=D.replace(/\.\.+/g,".");let w=this.inputValue||"";this.inputValue=D;let m=f,b=M=>{let O=[];for(let x=0;x<M.length;x++)M[x]==="."&&O.push(x);return O},S=b(w),V=b(D),T=S.filter(M=>M<f).length,k=V.filter(M=>M<f).length-T;if(k>0?m+=k:!S.includes(f)&&V.includes(f)&&(m+=1),m=Math.min(Math.max(0,m),D.length),requestAnimationFrame(()=>{var O;let M=(O=this.input)!=null?O:g;M&&(M.value=this.inputValue,M.setSelectionRange(m,m))}),/^\d{2}\.\d{2}\.\d{4}$/.test(D)){let M=this.parseInputText(D);this.applyParsedInput(M)}else this.showInvalidStyle=!1,this.showValidStyle=!1;return}if(!this.open&&this.hasFocus&&!this.disabled&&!this.visuallyDisabled&&this.show(),this.range){let g=this.rangeStart?a.parseLocalISO(this.rangeStart):null,h=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;g&&!h?this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(g)}`):g&&h&&this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(g)}; ${this.termEndSelected()}: ${this.formatSelectionLabel(h)}`)}else if(this.value){let g=a.parseLocalISO(this.value);this.setNavStatus(`${this.formatSelectionLabel(g)}`)}};this.handleInputBlur=()=>{let t=this.parseInputText(this.inputValue);t.valid?this.applyParsedInput(t):(this.inputValue=this.formatInputValue(),this.showInvalidStyle=!!this.inputValue&&!this.value&&!this.rangeStart),this.handleBlur()};this.handleCurrentPlacement=t=>{this.currentPlacement=t.detail.placement};this.handleHeaderKeyDown=(t,e,s,i)=>{if(t.key==="Tab"&&!t.shiftKey){i&&(t.preventDefault(),t.stopPropagation(),this.tabbingIntoGrid=!0,this.focusInitialGridDay());return}(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation(),e==="month"?this.setMonth(s):this.setYear(s))};this.onKeyDown=t=>{let e=t.key,s=!0,i=new Date(this.focusedDate);switch(e){case"ArrowLeft":i.setDate(i.getDate()-1);break;case"ArrowRight":i.setDate(i.getDate()+1);break;case"ArrowUp":i.setDate(i.getDate()-7);break;case"ArrowDown":i.setDate(i.getDate()+7);break;case"Escape":{this.previewEnd?(this.previewEnd=null,this.setNavStatus(this.localize.term("selectionCleared"))):this.range&&this.rangeStart&&!this.rangeEnd&&(this.rangeStart=null,this.setNavStatus(this.localize.term("selectionCleared")),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}})),this.open&&(this.hide(),this.emit("sd-datepicker-close"));break}case"Enter":case" ":this.selectDate(this.focusedDate);break;default:s=!1}if(s){if(t.preventDefault(),i.getMonth()!==this.viewMonth.getMonth()||i.getFullYear()!==this.viewMonth.getFullYear()){this.viewMonth=new Date(i.getFullYear(),i.getMonth(),1);let c=this.formatMonthYear(this.viewMonth);this.setNavStatus(c)}let l=a.startOfDayLocal(i);(!this.focusedDate||l.getTime()!==this.focusedDate.getTime())&&(this.focusedDate=l);let u=l.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"});this.setNavStatus(u),this.requestUpdate(),requestAnimationFrame(()=>{let c=this.shadowRoot,g=c==null?void 0:c.querySelector("button.day.focused");g==null||g.focus({preventScroll:!0})})}};this.handleInputKeyDown=t=>{if(!(t.key==="ArrowLeft"||t.key==="ArrowRight"||t.key==="ArrowUp"||t.key==="ArrowDown"||t.key==="Home"||t.key==="End"||t.key==="PageUp"||t.key==="PageDown")){if(t.key==="Escape"&&this.open){t.preventDefault(),this.hide(),this.emit("sd-datepicker-close");return}t.key==="Enter"&&!this.open&&!this.disabled&&!this.visuallyDisabled&&(t.preventDefault(),this.show())}};this.handleOutsideClick=this.handleOutsideClick.bind(this)}connectedCallback(){super.connectedCallback(),this.syncDisabledDatesSet(),document.addEventListener("click",this.handleOutsideClick),this.updateComplete.then(()=>{this.formControlController.updateValidity()});let t=this.value?a.parseLocalISO(this.value):null,e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,s=this.range&&e?e:t!=null?t:a.startOfDayLocal(new Date);this.viewMonth=new Date(s.getFullYear(),s.getMonth(),1),this.focusedDate=a.clampDateToMonth(s,this.viewMonth),(this.firstDayOfWeek===null||this.firstDayOfWeek===void 0)&&(this.firstDayOfWeek=1),this.inputValue=this.formatInputValue(),this.tabIndex=0,this.setAttribute("role","group"),this.setAttribute("aria-label",this.range?this.localize.term("datePickerRange"):this.localize.term("datePicker")),this.addEventListener("focusin",this.onFocusIn)}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.onFocusIn),document.removeEventListener("click",this.handleOutsideClick)}handleLocaleChange(){this.firstDayOfWeek===null&&(this.firstDayOfWeek=1),this.requestUpdate()}handleDisabledDatesChange(){this.syncDisabledDatesSet(),this.requestUpdate()}handleValueChange(){let t=this.value?a.parseLocalISO(this.value):null;t&&(this.viewMonth=new Date(t.getFullYear(),t.getMonth(),1),this.focusedDate=a.startOfDayLocal(t)),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var s;let e=this.input;if(e){e.value=(s=this.inputValue)!=null?s:"";let i=e.value.length;e.setSelectionRange(i,i)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleRangeChange(){let t=this.rangeStart?a.parseLocalISO(this.rangeStart):null,e=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null,s=t!=null?t:e;s&&(this.viewMonth=new Date(s.getFullYear(),s.getMonth(),1),this.focusedDate=a.startOfDayLocal(s)),this.previewEnd!==null&&(this.previewEnd=null),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var n;let i=this.input;if(i){i.value=(n=this.inputValue)!=null?n:"";let l=i.value.length;i.setSelectionRange(l,l)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),(this.disabled||this.visuallyDisabled)&&(this.open=!1)}get validity(){let t={valid:!0};return this.input instanceof HTMLInputElement?this.input.validity:t}get validationMessage(){return(this.input instanceof HTMLInputElement?this.input.validationMessage:"")||""}checkValidity(){return this.input instanceof HTMLInputElement?this.input.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input instanceof HTMLInputElement?this.input.reportValidity():!0}setCustomValidity(t){var e;(e=this.input)==null||e.setCustomValidity(t),this.formControlController.updateValidity()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}parseISO(t){return a.parseLocalISO(t)}inMinMax(t){let e=this.parseISO(this.min!==null?String(this.min):null),s=this.parseISO(this.max!==null?String(this.max):null);return!(e&&t<e||s&&t>s)}isInDisabledDates(t){if(!this.disabledDatesSet||this.disabledDatesSet.size===0)return!1;let e=a.toLocalISODate(a.startOfDayLocal(t));return this.disabledDatesSet.has(e)}isWeekend(t){let e=t.getDay();return e===0||e===6}isDisabled(t){var e;return!!(!this.inMinMax(t)||this.disabledWeekends&&this.isWeekend(t)||this.isInDisabledDates(t)||(e=this.isDateDisabled)!=null&&e.call(this,t))}setNavStatus(t){this.statusNavText=t}announceSelect(t,e=40){setTimeout(()=>{this.statusBumpCounter++;let s="\u200B".repeat(this.statusBumpCounter%3);this.statusSelectText=t+s},e)}formatSelectionLabel(t){if(this.locale==="de-DE")return t.toLocaleDateString("de-DE",{day:"numeric",month:"long",year:"numeric"});let e=t.getDate(),s=this.ordinal(e),i=t.toLocaleDateString("en-US",{month:"long"}),n=t.getFullYear();return`${s} of ${i} ${n}`}ordinal(t){let e=["th","st","nd","rd"],s=t%100,i=e[(s-20)%10]||e[s]||e[0];return t+i}syncDisabledDatesSet(){let t=[];if(Array.isArray(this.disabledDates))t=this.disabledDates;else if(typeof this.disabledDates=="string"){let e=this.disabledDates.trim();if(e.startsWith("["))try{let s=JSON.parse(e);Array.isArray(s)&&(t=s)}catch(s){t=[]}else e.length>0&&(t=e.split(",").map(s=>s.trim()).filter(Boolean))}this.disabledDatesSet=new Set(t)}wouldRangeContainDisabled(t,e){let s=a.compareDates(t,e)<=0?a.startOfDayLocal(t):a.startOfDayLocal(e),i=a.compareDates(t,e)<=0?a.startOfDayLocal(e):a.startOfDayLocal(t),n=new Date(s);for(;a.compareDates(n,i)<=0;){if(this.isDisabled(n))return!0;n.setDate(n.getDate()+1)}return!1}termStartSelected(){var t,e;return(e=(t=this.localize)==null?void 0:t.term)==null?void 0:e.call(t,"startDateSelected")}termEndSelected(){var t,e;return(e=(t=this.localize)==null?void 0:t.term)==null?void 0:e.call(t,"endDateSelected")}isoToDmy(t){if(!t)return"";let e=a.parseLocalISO(t);if(!e)return"";let s=String(e.getDate()).padStart(2,"0"),i=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getFullYear());return`${s}.${i}.${n}`}dmyToIso(t){if(!t)return null;let e=t.match(/^(\d{2})\.(\d{2})\.(\d{4})$/);if(!e)return null;let s=Number(e[1]),i=Number(e[2]),n=Number(e[3]),l=new Date(n,i-1,s);if(l.getFullYear()!==n||l.getMonth()!==i-1||l.getDate()!==s)return null;let u=a.startOfDayLocal(l);return a.toLocalISODate(u)}formatInputValue(){let t=(this.locale||"").toLowerCase(),e=(this.getAttribute("lang")||"").toLowerCase(),i=t.startsWith("de")||e.startsWith("de")?"\u2013":"-";if(!this.range)return this.isoToDmy(this.value);let n=this.isoToDmy(this.rangeStart),l=this.isoToDmy(this.rangeEnd);return n&&l?`${n} ${i} ${l}`:n&&!l?`${n} ${i}`:""}parseInputText(t){var i,n;let e=t.trim();if(this.range){let l=e.split(/\s*-\s*/);if(l.length===1){let u=l[0];if(!u)return{start:null,end:null,valid:!0};let c=this.dmyToIso(u);return c?{start:c,end:null,valid:!0}:{start:null,end:null,valid:!1}}else if(l.length>=2){let u=(i=l[0])!=null?i:"",c=(n=l[1])!=null?n:"",g=u?this.dmyToIso(u):null,h=c?this.dmyToIso(c):null;return u&&!g?{start:null,end:null,valid:!1}:c&&!h?{start:null,end:null,valid:!1}:{start:g,end:h,valid:!0}}return{start:null,end:null,valid:!1}}if(!e)return{single:null,valid:!0};let s=this.dmyToIso(e);return s?{single:s,valid:!0}:{single:null,valid:!1}}applyParsedInput(t){var u,c,g,h;if(!t.valid)return this.showInvalidStyle=!0,this.showValidStyle=!1,this.formControlController.setValidity(!1),!1;let e=f=>{if(!f)return!0;let r=a.parseLocalISO(f);return!(!this.inMinMax(r)||this.isDisabled(r))},s=!1;if(this.range){let f=(u=t.start)!=null?u:null,r=(c=t.end)!=null?c:null;if(!e(f)||r&&!e(r))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let p=f?a.parseLocalISO(f):null,v=r?a.parseLocalISO(r):null;if(p&&v){if(a.compareDates(p,v)>0){let w=p;p=v,v=w}if(!this.allowSameDayRange&&a.isSameDay(p,v))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;if(this.wouldRangeContainDisabled(p,v))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1}let I=p?a.toLocalISODate(a.startOfDayLocal(p)):null,D=v?a.toLocalISODate(a.startOfDayLocal(v)):null;if(this.rangeStart!==I||this.rangeEnd!==D){this.rangeStart=I,this.rangeEnd=D,this.previewEnd=null,s=!0;let w=(g=p!=null?p:v)!=null?g:this.today;this.viewMonth=new Date(w.getFullYear(),w.getMonth(),1),this.focusedDate=a.startOfDayLocal(w),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}})}return this.showInvalidStyle=!1,this.range?this.showValidStyle=!!(this.rangeStart&&this.rangeEnd&&this.styleOnValid):this.showValidStyle=!!(this.value&&this.styleOnValid),this.formControlController.setValidity(!0),this.updateComplete.then(()=>{this.formControlController.updateValidity()}),!0}let i=(h=t.single)!=null?h:null;if(!e(i))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let n=i?a.parseLocalISO(i):null,l=n?a.toLocalISODate(a.startOfDayLocal(n)):null;return this.value!==l&&(this.value=l,s=!0,n&&(this.viewMonth=new Date(n.getFullYear(),n.getMonth(),1),this.focusedDate=a.startOfDayLocal(n)),this.emit("sd-select",{detail:{value:this.value,date:n!=null?n:null}})),this.showInvalidStyle=!1,this.showValidStyle=!!this.value,this.inputValue=this.formatInputValue(),s}buildDmyFromDigits(t){let e=t.slice(0,8),s=e.slice(0,2),i=e.slice(2,4),n=e.slice(4,8),l=s;return i.length&&(l+="."+i),n.length&&(l+="."+n),l}digitIndexToDmyCaretPos(t){return t<=2?t:t<=4?3+(t-2):6+(t-4)}countDigitsBeforeCaret(t,e){return t.slice(0,e).replace(/\D/g,"").length}handleOutsideClick(t){var s,i;((i=(s=t.composedPath)==null?void 0:s.call(t))!=null?i:[]).includes(this)||(this.hide(),this.hasFocus=!1,this.emit("sd-datepicker-close"))}show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}this.open=!0}hide(){if(!this.open||this.disabled){this.open=!1;return}this.open=!1}handleMouseDown(t){if(this.visuallyDisabled||this.disabled){t.preventDefault(),t.stopPropagation();return}t.preventDefault(),this.open||this.show()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleFocus(){this.visuallyDisabled||this.disabled||(this.hasFocus=!0,!this.open&&!this.disabled&&!this.visuallyDisabled&&this.show(),this.emit("sd-focus"))}setMonth(t){let e=new Date(this.viewMonth.getFullYear(),this.viewMonth.getMonth()+t,1);if(e.getMonth()===this.viewMonth.getMonth()&&e.getFullYear()===this.viewMonth.getFullYear())return;this.viewMonth=e;let s=this.formatMonthYear(this.viewMonth);this.setNavStatus(s),this.emit("sd-month-change",{detail:{month:this.viewMonth}})}setYear(t){let e=new Date(this.viewMonth.getFullYear()+t,this.viewMonth.getMonth(),1);if(e.getFullYear()===this.viewMonth.getFullYear()&&e.getMonth()===this.viewMonth.getMonth())return;this.viewMonth=e;let s=this.formatMonthYear(this.viewMonth);this.setNavStatus(s),this.emit("sd-month-year",{detail:{month:this.viewMonth}})}focusInitialGridDay(){let t=null;if(!this.range&&this.value){let s=a.parseLocalISO(this.value);s&&(t=a.startOfDayLocal(s))}if(this.range){let s=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;i?t=a.startOfDayLocal(i):s&&(t=a.startOfDayLocal(s))}if(!(s=>s?s.getFullYear()===this.viewMonth.getFullYear()&&s.getMonth()===this.viewMonth.getMonth()&&!this.isDisabled(s):!1)(t)){let{weeks:s}=this.getMonthMatrix(this.viewMonth),i=s.flat().find(n=>n.getMonth()===this.viewMonth.getMonth()&&a.isSameDay(n,this.today)&&!this.isDisabled(n));if(i)t=a.startOfDayLocal(i);else{let n=s.flat().find(l=>l.getMonth()===this.viewMonth.getMonth()&&!this.isDisabled(l));t=n?a.startOfDayLocal(n):null}}t&&(this.focusedDate=t),this.requestUpdate(),requestAnimationFrame(()=>{let s=this.shadowRoot,i=(s==null?void 0:s.querySelector("button.day.selected"))||(s==null?void 0:s.querySelector("button.day.focused"))||(s==null?void 0:s.querySelector('button.day[tabindex="0"]'))||(s==null?void 0:s.querySelector("button.day"));i==null||i.focus({preventScroll:!0})})}selectSingleDate(t){if(this.isDisabled(t))return;let e=a.startOfDayLocal(t),s=a.toLocalISODate(e);if(this.value===s)return;this.value=s;let i=`${this.formatSelectionLabel(e)}, ${this.localize.term("selected")}`;this.announceSelect(i),this.emit("sd-select",{detail:{value:this.value,date:e}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var l;let n=this.input;n&&(n.value=(l=this.inputValue)!=null?l:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let u=n.value.length;n.setSelectionRange(u,u)})}))})}selectRangeDate(t){let e=a.startOfDayLocal(t),s=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;if(!s&&!i){if(this.isDisabled(e))return;this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let n=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${n}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var u;let l=this.input;l&&(l.value=(u=this.inputValue)!=null?u:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let c=l.value.length;l.setSelectionRange(c,c)})}))});return}if(s&&!i){if(this.isDisabled(e))return;if(a.isSameDay(s,e)){if(!this.allowSameDayRange){this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let f=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${f}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var p;let r=this.input;r&&(r.value=(p=this.inputValue)!=null?p:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let v=r.value.length;r.setSelectionRange(v,v)})}))});return}this.rangeStart=a.toLocalISODate(e),this.rangeEnd=a.toLocalISODate(e),this.previewEnd=null;let h=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${h}`,40),this.announceSelect(`${this.termEndSelected()}: ${h}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var r;let f=this.input;f&&(f.value=(r=this.inputValue)!=null?r:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let p=f.value.length;f.setSelectionRange(p,p)})}))});return}let n=a.parseLocalISO(this.rangeStart);if(this.wouldRangeContainDisabled(n,e))return;let[l,u]=a.compareDates(n,e)<=0?[n,e]:[e,n];this.rangeStart=a.toLocalISODate(l),this.rangeEnd=a.toLocalISODate(u),this.previewEnd=null;let c=this.formatSelectionLabel(l),g=this.formatSelectionLabel(u);this.announceSelect(`${this.termStartSelected()}: ${c}`,40),this.announceSelect(`${this.termEndSelected()}: ${g}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var f;let h=this.input;h&&(h.value=(f=this.inputValue)!=null?f:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let r=h.value.length;h.setSelectionRange(r,r)})}))});return}if(s&&i){if(this.isDisabled(e))return;this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let n=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${n}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var u;let l=this.input;l&&(l.value=(u=this.inputValue)!=null?u:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let c=l.value.length;l.setSelectionRange(c,c)})}))})}}selectDate(t){this.range?this.selectRangeDate(t):this.selectSingleDate(t)}getMonthMatrix(t){var c;let e=(c=this.firstDayOfWeek)!=null?c:1,s=new Date(t.getFullYear(),t.getMonth(),1),i=new Date(s),n=(s.getDay()-e+7)%7;i.setDate(s.getDate()-n);let l=[],u=i;for(let g=0;g<6;g++){let h=[];for(let f=0;f<7;f++)h.push(new Date(u)),u.setDate(u.getDate()+1);l.push(h)}return{weeks:l}}formatMonthYear(t){try{return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)}catch(e){return`${t.toLocaleString(void 0,{month:"long"})} ${t.getFullYear()}`}}weekdayLabels(){var i;let t=(i=this.firstDayOfWeek)!=null?i:1,e=new Date(2021,7,1),s=[];for(let n=0;n<7;n++){let l=new Date(e);l.setDate(e.getDate()+(t+n)%7);try{s.push(new Intl.DateTimeFormat(this.locale,{weekday:"short"}).format(l))}catch(u){s.push(l.toLocaleDateString(void 0,{weekday:"short"}))}}return s}getTabTargetDayForCurrentView(t){let e=t.flat().find(i=>i.getMonth()===this.viewMonth.getMonth()&&a.isSameDay(i,this.today)&&!this.isDisabled(i));if(e)return a.startOfDayLocal(e);let s=t.flat().find(i=>i.getMonth()===this.viewMonth.getMonth()&&!this.isDisabled(i));return s?a.startOfDayLocal(s):null}onDayMouseEnter(t){if(!this.range)return;let e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,s=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;if(e&&!s){let i=a.startOfDayLocal(t);this.previewEnd=this.isDisabled(i)?null:i,this.requestUpdate()}}onGridMouseLeave(){this.previewEnd!==null&&(this.previewEnd=null,this.requestUpdate())}renderCalendar(){let{weeks:t}=this.getMonthMatrix(this.viewMonth),e=this.formatMonthYear(this.viewMonth),s=this.weekdayLabels(),i=this.value?this.parseISO(this.value):null,n=this.rangeStart?this.parseISO(this.rangeStart):null,l=this.rangeEnd?this.parseISO(this.rangeEnd):null,u=this.previewEnd,c=h=>!this.range||!n||l||!u?!1:a.isBetweenInclusive(h,n,u),g=this.getTabTargetDayForCurrentView(t);return C`<div part="datepicker" class="w-[284px] z-50 absolute top-full bg-white border-2 border-t-0 border-primary py-3 px-4 ${this.open?"block rounded-bl-default rounded-br-default":"hidden"} ${this.alignment==="left"?"left-0":"right-0"}"><div class="flex flex-row items-center w-full justify-between mb-3" part="header"><div class="flex items-center"><button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-year-button" @click="${()=>this.setYear(-1)}" @keydown="${h=>this.handleHeaderKeyDown(h,"year",-1,!1)}" aria-label="${this.localize.term("previousYear")}"><sd-5-16-2-next-0-icon library="_internal" name="chevrons-sm-left" class="h-6 w-6"></sd-5-16-2-next-0-icon></button> <button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-month-button" @click="${()=>this.setMonth(-1)}" @keydown="${h=>this.handleHeaderKeyDown(h,"month",-1,!1)}" aria-label="${this.localize.term("previousMonth")}"><sd-5-16-2-next-0-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-5-16-2-next-0-icon></button></div><div tabindex="-1" class="month-label flex justify-center sd-headline sd-headline--size-base !text-primary" part="month-label" aria-live="polite">${e}</div><div class="flex items-center"><button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-month-button" @click="${()=>this.setMonth(1)}" @keydown="${h=>this.handleHeaderKeyDown(h,"month",1,!1)}" aria-label="${this.localize.term("nextMonth")}"><sd-5-16-2-next-0-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-5-16-2-next-0-icon></button> <button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-year-button" @click="${()=>this.setYear(1)}" @keydown="${h=>this.handleHeaderKeyDown(h,"year",1,!0)}" aria-label="${this.localize.term("nextYear")}"><sd-5-16-2-next-0-icon library="_internal" name="chevrons-sm-right" class="h-6 w-6"></sd-5-16-2-next-0-icon></button></div></div><sd-5-16-2-next-0-divider></sd-5-16-2-next-0-divider><div class="sr-only" aria-live="polite" aria-atomic="true">${this.statusNavText}</div><div class="sr-only" aria-live="assertive" aria-atomic="true">${this.statusSelectText}</div><div class="sr-only" id="keyboard-hint">${this.localize.term("datePickerInfo")}</div><div class="grid mt-2" role="grid" aria-describedby="keyboard-hint" aria-label="${e}" part="grid" @mouseleave="${this.onGridMouseLeave}" @focusin="${()=>{this.tabbingIntoGrid=!1}}"><div class="grid-row grid-head grid grid-cols-7 gap-y-[1px]" role="row">${s.map((h,f)=>C`<div role="columnheader" aria-colindex="${f+1}" part="weekday" class="cell head flex items-center justify-center font-bold text-black text-sm leading-none h-8" aria-label="${h}" title="${h}" id="${"col-"+(f+1)}">${h}</div>`)}</div>${t.map((h,f)=>C`<div class="grid-row grid grid-cols-7 ${f===0?"mt-2":""}" role="row" aria-rowindex="${f+2}">${h.map((r,p)=>{let v=r.getMonth()===this.viewMonth.getMonth(),I=this.isDisabled(r),D=a.isSameDay(r,this.focusedDate),w=a.isSameDay(r,this.today),m=!this.range&&i?a.isSameDay(r,i):!1,b=this.range&&n?a.isSameDay(r,n):!1,S=this.range&&l?a.isSameDay(r,l):!1,V=this.range&&n&&l?a.isBetweenInclusive(r,n,l):!1,T=c(r)&&!I,$=-1,k=g&&a.isSameDay(r,g);(this.tabbingIntoGrid&&k||!this.tabbingIntoGrid&&D)&&($=0);let M=this.isWeekend(r),O=r.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),x=b?this.localize.term("startDateSelected"):S?this.localize.term("endDateSelected"):void 0;return C`<button type="button" part="day" class="${E("cell day flex items-center justify-center focus-visible:outline focus:outline-2 focus:outline-primary -outline-offset-2 rounded-md w-[36px]",this.size==="sm"?"text-sm h-6":"text-base h-8",b||S?"hover:bg-primary-500":"hover:bg-primary-100 hover:text-primary-500",v?this.isInDisabledDates(r)?"out-month text-neutral-700":this.disabledWeekends&&M?"weekend-day text-neutral-500":"in-month text-primary":M?"out-month weekend-day text-neutral-500":"out-month text-neutral-700",m?"selected border-primary bg-primary text-white hover:bg-primary-500 hover:text-white":"",b?"bg-primary text-white rounded-l-md rounded-r-none":"",S?"bg-primary text-white range-end rounded-r-md rounded-l-none":"",V&&!b&&!S?"in-range selected bg-primary-100 text-primary-500 rounded-none hover:bg-primary-500 hover:text-white":"",!V&&T&&!b&&!S?"in-preview-range bg-primary-100 text-primary-500 rounded-none":"",w&&!m&&!b&&!S&&D?"today border-[1px] border-primary font-bold":"",I?"disabled cursor-not-allowed hover:bg-transparent":"",D&&!w?"focused outline outline-2 outline-primary":"")}" role="gridcell" aria-colindex="${p+1}" aria-labelledby="${"col-"+(p+1)}" .tabIndex="${$}" ?disabled="${I||this.disabled}" aria-disabled="${I||this.visuallyDisabled||this.disabled?"true":"false"}" aria-selected="${m||V||b||S?"true":"false"}" aria-current="${w?"date":P}" aria-label="${O}" aria-roledescription="${x!=null?x:P}" @focus="${()=>this.focusedDate=a.startOfDayLocal(r)}" @mouseenter="${()=>this.onDayMouseEnter(r)}" @keydown="${this.onKeyDown}" @click="${()=>{this.focusedDate=a.startOfDayLocal(r),this.selectDate(r)}}">${r.getDate()}</button>`})}</div>`)}</div></div>`}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,s=this.helpText?!0:!!t.helpText,i=!!t.tooltip,n=this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",l={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],u={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],c=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",g={disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[c],h=this.size==="sm"?"text-sm":"text-base";return C`<div part="form-control" class="${E("w-[370px]",this.open&&"z-50",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${e||i?C`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${E(e?"inline-block":"hidden",h)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?C`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${E("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}"><div part="border" class="${E("absolute top-0 w-full h-full pointer-events-none border rounded-default z-10 transition-[border] duration-medium ease-in-out",g,this.open&&this.alignment==="left"?"rounded-bl-none":"",this.open&&this.alignment==="right"?"rounded-br-none":"")}"></div><sd-5-16-2-next-0-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${E("inline-flex relative w-full")}" sync="width" auto-size="vertical" auto-size-padding="10" exportparts="popup:popup__content,"><div part="base" class="${E("px-4 flex flex-row items-center rounded-default transition-colors ease-in-out duration-medium hover:duration-fast w-full",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",c==="disabled"||c==="visuallyDisabled"?"text-neutral-500":"text-black")}" slot="anchor"><input id="input" type="text" role="combobox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="dialog" aria-controls="calendar-grid" aria-describedby="${s?"help-text":void 0}" aria-invalid="${this.showInvalidStyle?"true":"false"}" aria-label="${this.range?"Select date range":"Select a date"}" class="${E("min-w-0 flex-grow focus:outline-none bg-transparent",this.visuallyDisabled||this.disabled?"placeholder-neutral-500 cursor-not-allowed":"placeholder-neutral-700",{sm:"h-8",md:"h-10",lg:"h-12"}[this.size],h)}" placeholder="${this.placeholder||this.localize.term(this.range?"dateRangePlaceholder":"datePlaceholder")}" ?disabled="${this.disabled||this.disabled}" ?readonly="${this.readonly}" @input="${this.handleInput}" @click="${this.handleMouseDown}" @keydown="${this.handleInputKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleInputBlur}" @invalid="${this.handleInvalid}"> ${this.showInvalidStyle?C`<sd-5-16-2-next-0-icon part="invalid-icon" class="${E("text-error",l,u)}" library="_internal" name="risk"></sd-5-16-2-next-0-icon>`:""} ${this.showValidStyle&&this.styleOnValid?C`<sd-5-16-2-next-0-icon class="${E("text-success flex-shrink-0",l,u)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-5-16-2-next-0-icon>`:""}<sd-5-16-2-next-0-icon class="${E(n,l,u)}" library="_internal" name="calendar"></sd-5-16-2-next-0-icon>${this.renderCalendar()}</div></sd-5-16-2-next-0-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${E("text-sm text-neutral-700 mt-1",s?"block":"hidden")}" aria-hidden="${!s}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};o.styles=[...z.styles,R`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{position:relative;display:inline-block;--tw-outline-style:none;outline-style:none}:host([required]) #label::after{content:' *'}`],d([y({type:String,reflect:!0})],o.prototype,"locale",2),d([y({type:String})],o.prototype,"value",2),d([y({type:Boolean,reflect:!0})],o.prototype,"range",2),d([y({type:String})],o.prototype,"rangeStart",2),d([y({type:String})],o.prototype,"rangeEnd",2),d([y({type:Boolean})],o.prototype,"allowSameDayRange",2),d([y({type:String})],o.prototype,"min",2),d([y({type:String})],o.prototype,"max",2),d([y({type:Number})],o.prototype,"firstDayOfWeek",2),d([y({type:Boolean,reflect:!0,attribute:"disabled-weekends"})],o.prototype,"disabledWeekends",2),d([y({attribute:"disabled-dates"})],o.prototype,"disabledDates",2),d([y({attribute:!1})],o.prototype,"isDateDisabled",2),d([y({type:String,reflect:!0})],o.prototype,"size",2),d([y({type:String})],o.prototype,"alignment",2),d([y({type:String,reflect:!0})],o.prototype,"label",2),d([y({type:String,attribute:"help-text",reflect:!0})],o.prototype,"helpText",2),d([y({type:Boolean,reflect:!0})],o.prototype,"disabled",2),d([y({type:Boolean,attribute:"visually-disabled"})],o.prototype,"visuallyDisabled",2),d([y({type:Boolean,reflect:!0,attribute:"style-on-valid"})],o.prototype,"styleOnValid",2),d([y({type:Boolean,reflect:!0})],o.prototype,"readonly",2),d([y({type:String,reflect:!0})],o.prototype,"placement",2),d([y({type:String,reflect:!0})],o.prototype,"placeholder",2),d([y({reflect:!0})],o.prototype,"name",2),d([y({type:String,reflect:!0})],o.prototype,"form",2),d([L()],o.prototype,"open",2),d([L()],o.prototype,"viewMonth",2),d([L()],o.prototype,"focusedDate",2),d([L()],o.prototype,"today",2),d([L()],o.prototype,"disabledDatesSet",2),d([L()],o.prototype,"previewEnd",2),d([L()],o.prototype,"statusNavText",2),d([L()],o.prototype,"statusSelectText",2),d([L()],o.prototype,"hasFocus",2),d([L()],o.prototype,"showValidStyle",2),d([L()],o.prototype,"showInvalidStyle",2),d([L()],o.prototype,"currentPlacement",2),d([L()],o.prototype,"inputValue",2),d([Y("#invalid-message")],o.prototype,"invalidMessage",2),d([Y("#input")],o.prototype,"input",2),d([F("locale")],o.prototype,"handleLocaleChange",1),d([F("disabledDates")],o.prototype,"handleDisabledDatesChange",1),d([F("value")],o.prototype,"handleValueChange",1),d([F("rangeStart"),F("rangeEnd")],o.prototype,"handleRangeChange",1),d([F(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],o.prototype,"handleDisabledChange",1),o=d([B("sd-5-16-2-next-0-datepicker")],o);export{o as a};
1
+ import{a}from"./chunk.635MGLIZ.js";import{b as H}from"./chunk.JS2HQ2N4.js";import{a as q}from"./chunk.CGQ2BPPZ.js";import{a as E}from"./chunk.YEDQWNIV.js";import{a as A}from"./chunk.7BPPDSHY.js";import{a as F}from"./chunk.NYKJXI3Q.js";import{a as B,b as y,c as L,d as Y,h as z}from"./chunk.PES7MZKA.js";import{b as R,e as C,i as P}from"./chunk.763RLJEK.js";import{e as d}from"./chunk.6EV4YU6C.js";var o=class extends z{constructor(){super();this.localize=new A(this);this.hasSlotController=new q(this,"label","help-text","tooltip");this.formControlController=new H(this,{assumeInteractionOn:["sd-blur","sd-5-16-2-next-1-input"]});this.locale="en-US";this.value=null;this.range=!1;this.rangeStart=null;this.rangeEnd=null;this.allowSameDayRange=!1;this.min=void 0;this.max=void 0;this.firstDayOfWeek=null;this.disabledWeekends=!1;this.disabledDates=[];this.isDateDisabled=null;this.size="lg";this.alignment="left";this.label="";this.helpText="";this.disabled=!1;this.visuallyDisabled=!1;this.styleOnValid=!1;this.readonly=!1;this.placement="bottom";this.placeholder="";this.name="";this.form="";this.open=!1;this.today=a.startOfDayLocal(new Date);this.disabledDatesSet=new Set;this.previewEnd=null;this.statusNavText="";this.statusSelectText="";this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.currentPlacement=this.placement;this.inputValue="";this.tabbingIntoGrid=!1;this.statusBumpCounter=0;this.onFocusIn=t=>{t.composedPath().some(i=>{var n,l;return i instanceof HTMLElement&&(((n=i.classList)==null?void 0:n.contains("nav"))||((l=i.classList)==null?void 0:l.contains("month-label")))})&&(this.tabbingIntoGrid=!0)};this.handleInput=t=>{var l,u,c;let e=t.target,s=e.value,i=(l=e.selectionStart)!=null?l:s.length,n=(u=t.inputType)==null?void 0:u.startsWith("delete");if(this.visuallyDisabled||this.disabled){t.preventDefault(),t.stopPropagation();return}if(this.range){let g=s.replace(/\D/g,""),h=g.slice(0,8),f=g.slice(8,16),r=this.buildDmyFromDigits(h),p=this.buildDmyFromDigits(f),v;h.length===0?v="":h.length<8?v=r:f.length>0?v=`${r} - ${p}`:v=n?r:`${r} -`;let I=this.countDigitsBeforeCaret(s,i),D;if(I<=8){let m=this.digitIndexToDmyCaretPos(Math.min(I,8));D=Math.min(m,r.length)}else{let m=h.length<8?r.length:r.length+3,b=Math.min(I-8,8),S=this.digitIndexToDmyCaretPos(b);D=m+Math.min(S,p.length)}this.inputValue=v;let w=!1;if(/^\d{2}\.\d{2}\.\d{4}$/.test(r)){let m=this.dmyToIso(r),b=m?a.parseLocalISO(m):null;!!b&&!this.isDisabled(b)&&this.inMinMax(b)&&this.rangeStart!==m&&(this.rangeStart=m,this.previewEnd=null,this.viewMonth=new Date(b.getFullYear(),b.getMonth(),1),this.focusedDate=a.startOfDayLocal(b),w=!0)}else this.rangeStart&&(this.rangeStart=null,w=!0),this.rangeEnd&&(this.rangeEnd=null,w=!0);if(/^\d{2}\.\d{2}\.\d{4}$/.test(p)&&this.rangeStart){let m=a.parseLocalISO(this.rangeStart),b=this.dmyToIso(p),S=b?a.parseLocalISO(b):null;if(!!S&&!this.isDisabled(S)&&this.inMinMax(S)){let[T,$]=a.compareDates(m,S)<=0?[m,S]:[S,m],k=a.isSameDay(T,$);if((this.allowSameDayRange||!k)&&!this.wouldRangeContainDisabled(T,$)){let O=a.toLocalISODate(a.startOfDayLocal(T)),x=a.toLocalISODate(a.startOfDayLocal($));(this.rangeStart!==O||this.rangeEnd!==x)&&(this.rangeStart=O,this.rangeEnd=x,this.viewMonth=new Date($.getFullYear(),$.getMonth(),1),this.focusedDate=a.startOfDayLocal($),w=!0)}}}else this.rangeEnd&&(this.rangeEnd=null,w=!0);this.showInvalidStyle=!1,this.showValidStyle=!!(this.rangeStart&&this.rangeEnd),w&&(this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})),Promise.resolve().then(()=>{requestAnimationFrame(()=>{var b;let m=(b=this.input)!=null?b:e;m&&(m.value=this.inputValue,m.setSelectionRange(D,D))})})}else{let g=e,h=g.value,f=(c=g.selectionStart)!=null?c:h.length,r=h.replace(/\D/g,"").slice(0,8),p=r.slice(0,2),v=r.slice(2,4),I=r.slice(4,8),D="";p.length>0&&(D+=p,p.length===2&&(D+=".")),v.length>0&&p.length===2&&(D+=v,v.length===2&&(D+=".")),I.length>0&&p.length===2&&v.length===2&&(D+=I),D=D.replace(/\.\.+/g,".");let w=this.inputValue||"";this.inputValue=D;let m=f,b=M=>{let O=[];for(let x=0;x<M.length;x++)M[x]==="."&&O.push(x);return O},S=b(w),V=b(D),T=S.filter(M=>M<f).length,k=V.filter(M=>M<f).length-T;if(k>0?m+=k:!S.includes(f)&&V.includes(f)&&(m+=1),m=Math.min(Math.max(0,m),D.length),requestAnimationFrame(()=>{var O;let M=(O=this.input)!=null?O:g;M&&(M.value=this.inputValue,M.setSelectionRange(m,m))}),/^\d{2}\.\d{2}\.\d{4}$/.test(D)){let M=this.parseInputText(D);this.applyParsedInput(M)}else this.showInvalidStyle=!1,this.showValidStyle=!1;return}if(!this.open&&this.hasFocus&&!this.disabled&&!this.visuallyDisabled&&this.show(),this.range){let g=this.rangeStart?a.parseLocalISO(this.rangeStart):null,h=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;g&&!h?this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(g)}`):g&&h&&this.setNavStatus(`${this.termStartSelected()}: ${this.formatSelectionLabel(g)}; ${this.termEndSelected()}: ${this.formatSelectionLabel(h)}`)}else if(this.value){let g=a.parseLocalISO(this.value);this.setNavStatus(`${this.formatSelectionLabel(g)}`)}};this.handleInputBlur=()=>{let t=this.parseInputText(this.inputValue);t.valid?this.applyParsedInput(t):(this.inputValue=this.formatInputValue(),this.showInvalidStyle=!!this.inputValue&&!this.value&&!this.rangeStart),this.handleBlur()};this.handleCurrentPlacement=t=>{this.currentPlacement=t.detail.placement};this.handleHeaderKeyDown=(t,e,s,i)=>{if(t.key==="Tab"&&!t.shiftKey){i&&(t.preventDefault(),t.stopPropagation(),this.tabbingIntoGrid=!0,this.focusInitialGridDay());return}(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.stopPropagation(),e==="month"?this.setMonth(s):this.setYear(s))};this.onKeyDown=t=>{let e=t.key,s=!0,i=new Date(this.focusedDate);switch(e){case"ArrowLeft":i.setDate(i.getDate()-1);break;case"ArrowRight":i.setDate(i.getDate()+1);break;case"ArrowUp":i.setDate(i.getDate()-7);break;case"ArrowDown":i.setDate(i.getDate()+7);break;case"Escape":{this.previewEnd?(this.previewEnd=null,this.setNavStatus(this.localize.term("selectionCleared"))):this.range&&this.rangeStart&&!this.rangeEnd&&(this.rangeStart=null,this.setNavStatus(this.localize.term("selectionCleared")),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}})),this.open&&(this.hide(),this.emit("sd-datepicker-close"));break}case"Enter":case" ":this.selectDate(this.focusedDate);break;default:s=!1}if(s){if(t.preventDefault(),i.getMonth()!==this.viewMonth.getMonth()||i.getFullYear()!==this.viewMonth.getFullYear()){this.viewMonth=new Date(i.getFullYear(),i.getMonth(),1);let c=this.formatMonthYear(this.viewMonth);this.setNavStatus(c)}let l=a.startOfDayLocal(i);(!this.focusedDate||l.getTime()!==this.focusedDate.getTime())&&(this.focusedDate=l);let u=l.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"});this.setNavStatus(u),this.requestUpdate(),requestAnimationFrame(()=>{let c=this.shadowRoot,g=c==null?void 0:c.querySelector("button.day.focused");g==null||g.focus({preventScroll:!0})})}};this.handleInputKeyDown=t=>{if(!(t.key==="ArrowLeft"||t.key==="ArrowRight"||t.key==="ArrowUp"||t.key==="ArrowDown"||t.key==="Home"||t.key==="End"||t.key==="PageUp"||t.key==="PageDown")){if(t.key==="Escape"&&this.open){t.preventDefault(),this.hide(),this.emit("sd-datepicker-close");return}t.key==="Enter"&&!this.open&&!this.disabled&&!this.visuallyDisabled&&(t.preventDefault(),this.show())}};this.handleOutsideClick=this.handleOutsideClick.bind(this)}connectedCallback(){super.connectedCallback(),this.syncDisabledDatesSet(),document.addEventListener("click",this.handleOutsideClick),this.updateComplete.then(()=>{this.formControlController.updateValidity()});let t=this.value?a.parseLocalISO(this.value):null,e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,s=this.range&&e?e:t!=null?t:a.startOfDayLocal(new Date);this.viewMonth=new Date(s.getFullYear(),s.getMonth(),1),this.focusedDate=a.clampDateToMonth(s,this.viewMonth),(this.firstDayOfWeek===null||this.firstDayOfWeek===void 0)&&(this.firstDayOfWeek=1),this.inputValue=this.formatInputValue(),this.tabIndex=0,this.setAttribute("role","group"),this.setAttribute("aria-label",this.range?this.localize.term("datePickerRange"):this.localize.term("datePicker")),this.addEventListener("focusin",this.onFocusIn)}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.onFocusIn),document.removeEventListener("click",this.handleOutsideClick)}handleLocaleChange(){this.firstDayOfWeek===null&&(this.firstDayOfWeek=1),this.requestUpdate()}handleDisabledDatesChange(){this.syncDisabledDatesSet(),this.requestUpdate()}handleValueChange(){let t=this.value?a.parseLocalISO(this.value):null;t&&(this.viewMonth=new Date(t.getFullYear(),t.getMonth(),1),this.focusedDate=a.startOfDayLocal(t)),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var s;let e=this.input;if(e){e.value=(s=this.inputValue)!=null?s:"";let i=e.value.length;e.setSelectionRange(i,i)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleRangeChange(){let t=this.rangeStart?a.parseLocalISO(this.rangeStart):null,e=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null,s=t!=null?t:e;s&&(this.viewMonth=new Date(s.getFullYear(),s.getMonth(),1),this.focusedDate=a.startOfDayLocal(s)),this.previewEnd!==null&&(this.previewEnd=null),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var n;let i=this.input;if(i){i.value=(n=this.inputValue)!=null?n:"";let l=i.value.length;i.setSelectionRange(l,l)}this.formControlController.updateValidity()}),this.emit("sd-change",{detail:{value:this.value,rangeStart:this.rangeStart,rangeEnd:this.rangeEnd}})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),(this.disabled||this.visuallyDisabled)&&(this.open=!1)}get validity(){let t={valid:!0};return this.input instanceof HTMLInputElement?this.input.validity:t}get validationMessage(){return(this.input instanceof HTMLInputElement?this.input.validationMessage:"")||""}checkValidity(){return this.input instanceof HTMLInputElement?this.input.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input instanceof HTMLInputElement?this.input.reportValidity():!0}setCustomValidity(t){var e;(e=this.input)==null||e.setCustomValidity(t),this.formControlController.updateValidity()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}parseISO(t){return a.parseLocalISO(t)}inMinMax(t){let e=this.parseISO(this.min!==null?String(this.min):null),s=this.parseISO(this.max!==null?String(this.max):null);return!(e&&t<e||s&&t>s)}isInDisabledDates(t){if(!this.disabledDatesSet||this.disabledDatesSet.size===0)return!1;let e=a.toLocalISODate(a.startOfDayLocal(t));return this.disabledDatesSet.has(e)}isWeekend(t){let e=t.getDay();return e===0||e===6}isDisabled(t){var e;return!!(!this.inMinMax(t)||this.disabledWeekends&&this.isWeekend(t)||this.isInDisabledDates(t)||(e=this.isDateDisabled)!=null&&e.call(this,t))}setNavStatus(t){this.statusNavText=t}announceSelect(t,e=40){setTimeout(()=>{this.statusBumpCounter++;let s="\u200B".repeat(this.statusBumpCounter%3);this.statusSelectText=t+s},e)}formatSelectionLabel(t){if(this.locale==="de-DE")return t.toLocaleDateString("de-DE",{day:"numeric",month:"long",year:"numeric"});let e=t.getDate(),s=this.ordinal(e),i=t.toLocaleDateString("en-US",{month:"long"}),n=t.getFullYear();return`${s} of ${i} ${n}`}ordinal(t){let e=["th","st","nd","rd"],s=t%100,i=e[(s-20)%10]||e[s]||e[0];return t+i}syncDisabledDatesSet(){let t=[];if(Array.isArray(this.disabledDates))t=this.disabledDates;else if(typeof this.disabledDates=="string"){let e=this.disabledDates.trim();if(e.startsWith("["))try{let s=JSON.parse(e);Array.isArray(s)&&(t=s)}catch(s){t=[]}else e.length>0&&(t=e.split(",").map(s=>s.trim()).filter(Boolean))}this.disabledDatesSet=new Set(t)}wouldRangeContainDisabled(t,e){let s=a.compareDates(t,e)<=0?a.startOfDayLocal(t):a.startOfDayLocal(e),i=a.compareDates(t,e)<=0?a.startOfDayLocal(e):a.startOfDayLocal(t),n=new Date(s);for(;a.compareDates(n,i)<=0;){if(this.isDisabled(n))return!0;n.setDate(n.getDate()+1)}return!1}termStartSelected(){var t,e;return(e=(t=this.localize)==null?void 0:t.term)==null?void 0:e.call(t,"startDateSelected")}termEndSelected(){var t,e;return(e=(t=this.localize)==null?void 0:t.term)==null?void 0:e.call(t,"endDateSelected")}isoToDmy(t){if(!t)return"";let e=a.parseLocalISO(t);if(!e)return"";let s=String(e.getDate()).padStart(2,"0"),i=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getFullYear());return`${s}.${i}.${n}`}dmyToIso(t){if(!t)return null;let e=t.match(/^(\d{2})\.(\d{2})\.(\d{4})$/);if(!e)return null;let s=Number(e[1]),i=Number(e[2]),n=Number(e[3]),l=new Date(n,i-1,s);if(l.getFullYear()!==n||l.getMonth()!==i-1||l.getDate()!==s)return null;let u=a.startOfDayLocal(l);return a.toLocalISODate(u)}formatInputValue(){let t=(this.locale||"").toLowerCase(),e=(this.getAttribute("lang")||"").toLowerCase(),i=t.startsWith("de")||e.startsWith("de")?"\u2013":"-";if(!this.range)return this.isoToDmy(this.value);let n=this.isoToDmy(this.rangeStart),l=this.isoToDmy(this.rangeEnd);return n&&l?`${n} ${i} ${l}`:n&&!l?`${n} ${i}`:""}parseInputText(t){var i,n;let e=t.trim();if(this.range){let l=e.split(/\s*-\s*/);if(l.length===1){let u=l[0];if(!u)return{start:null,end:null,valid:!0};let c=this.dmyToIso(u);return c?{start:c,end:null,valid:!0}:{start:null,end:null,valid:!1}}else if(l.length>=2){let u=(i=l[0])!=null?i:"",c=(n=l[1])!=null?n:"",g=u?this.dmyToIso(u):null,h=c?this.dmyToIso(c):null;return u&&!g?{start:null,end:null,valid:!1}:c&&!h?{start:null,end:null,valid:!1}:{start:g,end:h,valid:!0}}return{start:null,end:null,valid:!1}}if(!e)return{single:null,valid:!0};let s=this.dmyToIso(e);return s?{single:s,valid:!0}:{single:null,valid:!1}}applyParsedInput(t){var u,c,g,h;if(!t.valid)return this.showInvalidStyle=!0,this.showValidStyle=!1,this.formControlController.setValidity(!1),!1;let e=f=>{if(!f)return!0;let r=a.parseLocalISO(f);return!(!this.inMinMax(r)||this.isDisabled(r))},s=!1;if(this.range){let f=(u=t.start)!=null?u:null,r=(c=t.end)!=null?c:null;if(!e(f)||r&&!e(r))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let p=f?a.parseLocalISO(f):null,v=r?a.parseLocalISO(r):null;if(p&&v){if(a.compareDates(p,v)>0){let w=p;p=v,v=w}if(!this.allowSameDayRange&&a.isSameDay(p,v))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;if(this.wouldRangeContainDisabled(p,v))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1}let I=p?a.toLocalISODate(a.startOfDayLocal(p)):null,D=v?a.toLocalISODate(a.startOfDayLocal(v)):null;if(this.rangeStart!==I||this.rangeEnd!==D){this.rangeStart=I,this.rangeEnd=D,this.previewEnd=null,s=!0;let w=(g=p!=null?p:v)!=null?g:this.today;this.viewMonth=new Date(w.getFullYear(),w.getMonth(),1),this.focusedDate=a.startOfDayLocal(w),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}})}return this.showInvalidStyle=!1,this.range?this.showValidStyle=!!(this.rangeStart&&this.rangeEnd&&this.styleOnValid):this.showValidStyle=!!(this.value&&this.styleOnValid),this.formControlController.setValidity(!0),this.updateComplete.then(()=>{this.formControlController.updateValidity()}),!0}let i=(h=t.single)!=null?h:null;if(!e(i))return this.showInvalidStyle=!0,this.showValidStyle=!1,!1;let n=i?a.parseLocalISO(i):null,l=n?a.toLocalISODate(a.startOfDayLocal(n)):null;return this.value!==l&&(this.value=l,s=!0,n&&(this.viewMonth=new Date(n.getFullYear(),n.getMonth(),1),this.focusedDate=a.startOfDayLocal(n)),this.emit("sd-select",{detail:{value:this.value,date:n!=null?n:null}})),this.showInvalidStyle=!1,this.showValidStyle=!!this.value,this.inputValue=this.formatInputValue(),s}buildDmyFromDigits(t){let e=t.slice(0,8),s=e.slice(0,2),i=e.slice(2,4),n=e.slice(4,8),l=s;return i.length&&(l+="."+i),n.length&&(l+="."+n),l}digitIndexToDmyCaretPos(t){return t<=2?t:t<=4?3+(t-2):6+(t-4)}countDigitsBeforeCaret(t,e){return t.slice(0,e).replace(/\D/g,"").length}handleOutsideClick(t){var s,i;((i=(s=t.composedPath)==null?void 0:s.call(t))!=null?i:[]).includes(this)||(this.hide(),this.hasFocus=!1,this.emit("sd-datepicker-close"))}show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}this.open=!0}hide(){if(!this.open||this.disabled){this.open=!1;return}this.open=!1}handleMouseDown(t){if(this.visuallyDisabled||this.disabled){t.preventDefault(),t.stopPropagation();return}t.preventDefault(),this.open||this.show()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleFocus(){this.visuallyDisabled||this.disabled||(this.hasFocus=!0,!this.open&&!this.disabled&&!this.visuallyDisabled&&this.show(),this.emit("sd-focus"))}setMonth(t){let e=new Date(this.viewMonth.getFullYear(),this.viewMonth.getMonth()+t,1);if(e.getMonth()===this.viewMonth.getMonth()&&e.getFullYear()===this.viewMonth.getFullYear())return;this.viewMonth=e;let s=this.formatMonthYear(this.viewMonth);this.setNavStatus(s),this.emit("sd-month-change",{detail:{month:this.viewMonth}})}setYear(t){let e=new Date(this.viewMonth.getFullYear()+t,this.viewMonth.getMonth(),1);if(e.getFullYear()===this.viewMonth.getFullYear()&&e.getMonth()===this.viewMonth.getMonth())return;this.viewMonth=e;let s=this.formatMonthYear(this.viewMonth);this.setNavStatus(s),this.emit("sd-month-year",{detail:{month:this.viewMonth}})}focusInitialGridDay(){let t=null;if(!this.range&&this.value){let s=a.parseLocalISO(this.value);s&&(t=a.startOfDayLocal(s))}if(this.range){let s=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;i?t=a.startOfDayLocal(i):s&&(t=a.startOfDayLocal(s))}if(!(s=>s?s.getFullYear()===this.viewMonth.getFullYear()&&s.getMonth()===this.viewMonth.getMonth()&&!this.isDisabled(s):!1)(t)){let{weeks:s}=this.getMonthMatrix(this.viewMonth),i=s.flat().find(n=>n.getMonth()===this.viewMonth.getMonth()&&a.isSameDay(n,this.today)&&!this.isDisabled(n));if(i)t=a.startOfDayLocal(i);else{let n=s.flat().find(l=>l.getMonth()===this.viewMonth.getMonth()&&!this.isDisabled(l));t=n?a.startOfDayLocal(n):null}}t&&(this.focusedDate=t),this.requestUpdate(),requestAnimationFrame(()=>{let s=this.shadowRoot,i=(s==null?void 0:s.querySelector("button.day.selected"))||(s==null?void 0:s.querySelector("button.day.focused"))||(s==null?void 0:s.querySelector('button.day[tabindex="0"]'))||(s==null?void 0:s.querySelector("button.day"));i==null||i.focus({preventScroll:!0})})}selectSingleDate(t){if(this.isDisabled(t))return;let e=a.startOfDayLocal(t),s=a.toLocalISODate(e);if(this.value===s)return;this.value=s;let i=`${this.formatSelectionLabel(e)}, ${this.localize.term("selected")}`;this.announceSelect(i),this.emit("sd-select",{detail:{value:this.value,date:e}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var l;let n=this.input;n&&(n.value=(l=this.inputValue)!=null?l:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let u=n.value.length;n.setSelectionRange(u,u)})}))})}selectRangeDate(t){let e=a.startOfDayLocal(t),s=this.rangeStart?a.parseLocalISO(this.rangeStart):null,i=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;if(!s&&!i){if(this.isDisabled(e))return;this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let n=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${n}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var u;let l=this.input;l&&(l.value=(u=this.inputValue)!=null?u:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let c=l.value.length;l.setSelectionRange(c,c)})}))});return}if(s&&!i){if(this.isDisabled(e))return;if(a.isSameDay(s,e)){if(!this.allowSameDayRange){this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let f=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${f}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var p;let r=this.input;r&&(r.value=(p=this.inputValue)!=null?p:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let v=r.value.length;r.setSelectionRange(v,v)})}))});return}this.rangeStart=a.toLocalISODate(e),this.rangeEnd=a.toLocalISODate(e),this.previewEnd=null;let h=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${h}`,40),this.announceSelect(`${this.termEndSelected()}: ${h}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var r;let f=this.input;f&&(f.value=(r=this.inputValue)!=null?r:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let p=f.value.length;f.setSelectionRange(p,p)})}))});return}let n=a.parseLocalISO(this.rangeStart);if(this.wouldRangeContainDisabled(n,e))return;let[l,u]=a.compareDates(n,e)<=0?[n,e]:[e,n];this.rangeStart=a.toLocalISODate(l),this.rangeEnd=a.toLocalISODate(u),this.previewEnd=null;let c=this.formatSelectionLabel(l),g=this.formatSelectionLabel(u);this.announceSelect(`${this.termStartSelected()}: ${c}`,40),this.announceSelect(`${this.termEndSelected()}: ${g}`,140),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var f;let h=this.input;h&&(h.value=(f=this.inputValue)!=null?f:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let r=h.value.length;h.setSelectionRange(r,r)})}))});return}if(s&&i){if(this.isDisabled(e))return;this.rangeStart=a.toLocalISODate(e),this.rangeEnd=null,this.previewEnd=null;let n=this.formatSelectionLabel(e);this.announceSelect(`${this.termStartSelected()}: ${n}`,40),this.emit("sd-range-select",{detail:{start:this.rangeStart,end:this.rangeEnd}}),this.inputValue=this.formatInputValue(),this.updateComplete.then(()=>{var u;let l=this.input;l&&(l.value=(u=this.inputValue)!=null?u:"",Promise.resolve().then(()=>{requestAnimationFrame(()=>{let c=l.value.length;l.setSelectionRange(c,c)})}))})}}selectDate(t){this.range?this.selectRangeDate(t):this.selectSingleDate(t)}getMonthMatrix(t){var c;let e=(c=this.firstDayOfWeek)!=null?c:1,s=new Date(t.getFullYear(),t.getMonth(),1),i=new Date(s),n=(s.getDay()-e+7)%7;i.setDate(s.getDate()-n);let l=[],u=i;for(let g=0;g<6;g++){let h=[];for(let f=0;f<7;f++)h.push(new Date(u)),u.setDate(u.getDate()+1);l.push(h)}return{weeks:l}}formatMonthYear(t){try{return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)}catch(e){return`${t.toLocaleString(void 0,{month:"long"})} ${t.getFullYear()}`}}weekdayLabels(){var i;let t=(i=this.firstDayOfWeek)!=null?i:1,e=new Date(2021,7,1),s=[];for(let n=0;n<7;n++){let l=new Date(e);l.setDate(e.getDate()+(t+n)%7);try{s.push(new Intl.DateTimeFormat(this.locale,{weekday:"short"}).format(l))}catch(u){s.push(l.toLocaleDateString(void 0,{weekday:"short"}))}}return s}getTabTargetDayForCurrentView(t){let e=t.flat().find(i=>i.getMonth()===this.viewMonth.getMonth()&&a.isSameDay(i,this.today)&&!this.isDisabled(i));if(e)return a.startOfDayLocal(e);let s=t.flat().find(i=>i.getMonth()===this.viewMonth.getMonth()&&!this.isDisabled(i));return s?a.startOfDayLocal(s):null}onDayMouseEnter(t){if(!this.range)return;let e=this.rangeStart?a.parseLocalISO(this.rangeStart):null,s=this.rangeEnd?a.parseLocalISO(this.rangeEnd):null;if(e&&!s){let i=a.startOfDayLocal(t);this.previewEnd=this.isDisabled(i)?null:i,this.requestUpdate()}}onGridMouseLeave(){this.previewEnd!==null&&(this.previewEnd=null,this.requestUpdate())}renderCalendar(){let{weeks:t}=this.getMonthMatrix(this.viewMonth),e=this.formatMonthYear(this.viewMonth),s=this.weekdayLabels(),i=this.value?this.parseISO(this.value):null,n=this.rangeStart?this.parseISO(this.rangeStart):null,l=this.rangeEnd?this.parseISO(this.rangeEnd):null,u=this.previewEnd,c=h=>!this.range||!n||l||!u?!1:a.isBetweenInclusive(h,n,u),g=this.getTabTargetDayForCurrentView(t);return C`<div part="datepicker" class="w-[284px] z-50 absolute top-full bg-white border-2 border-t-0 border-primary py-3 px-4 ${this.open?"block rounded-bl-default rounded-br-default":"hidden"} ${this.alignment==="left"?"left-0":"right-0"}"><div class="flex flex-row items-center w-full justify-between mb-3" part="header"><div class="flex items-center"><button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-year-button" @click="${()=>this.setYear(-1)}" @keydown="${h=>this.handleHeaderKeyDown(h,"year",-1,!1)}" aria-label="${this.localize.term("previousYear")}"><sd-5-16-2-next-1-icon library="_internal" name="chevrons-sm-left" class="h-6 w-6"></sd-5-16-2-next-1-icon></button> <button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-month-button" @click="${()=>this.setMonth(-1)}" @keydown="${h=>this.handleHeaderKeyDown(h,"month",-1,!1)}" aria-label="${this.localize.term("previousMonth")}"><sd-5-16-2-next-1-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-5-16-2-next-1-icon></button></div><div tabindex="-1" class="month-label flex justify-center sd-headline sd-headline--size-base !text-primary" part="month-label" aria-live="polite">${e}</div><div class="flex items-center"><button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-month-button" @click="${()=>this.setMonth(1)}" @keydown="${h=>this.handleHeaderKeyDown(h,"month",1,!1)}" aria-label="${this.localize.term("nextMonth")}"><sd-5-16-2-next-1-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-5-16-2-next-1-icon></button> <button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-year-button" @click="${()=>this.setYear(1)}" @keydown="${h=>this.handleHeaderKeyDown(h,"year",1,!0)}" aria-label="${this.localize.term("nextYear")}"><sd-5-16-2-next-1-icon library="_internal" name="chevrons-sm-right" class="h-6 w-6"></sd-5-16-2-next-1-icon></button></div></div><sd-5-16-2-next-1-divider></sd-5-16-2-next-1-divider><div class="sr-only" aria-live="polite" aria-atomic="true">${this.statusNavText}</div><div class="sr-only" aria-live="assertive" aria-atomic="true">${this.statusSelectText}</div><div class="sr-only" id="keyboard-hint">${this.localize.term("datePickerInfo")}</div><div class="grid mt-2" role="grid" aria-describedby="keyboard-hint" aria-label="${e}" part="grid" @mouseleave="${this.onGridMouseLeave}" @focusin="${()=>{this.tabbingIntoGrid=!1}}"><div class="grid-row grid-head grid grid-cols-7 gap-y-[1px]" role="row">${s.map((h,f)=>C`<div role="columnheader" aria-colindex="${f+1}" part="weekday" class="cell head flex items-center justify-center font-bold text-black text-sm leading-none h-8" aria-label="${h}" title="${h}" id="${"col-"+(f+1)}">${h}</div>`)}</div>${t.map((h,f)=>C`<div class="grid-row grid grid-cols-7 ${f===0?"mt-2":""}" role="row" aria-rowindex="${f+2}">${h.map((r,p)=>{let v=r.getMonth()===this.viewMonth.getMonth(),I=this.isDisabled(r),D=a.isSameDay(r,this.focusedDate),w=a.isSameDay(r,this.today),m=!this.range&&i?a.isSameDay(r,i):!1,b=this.range&&n?a.isSameDay(r,n):!1,S=this.range&&l?a.isSameDay(r,l):!1,V=this.range&&n&&l?a.isBetweenInclusive(r,n,l):!1,T=c(r)&&!I,$=-1,k=g&&a.isSameDay(r,g);(this.tabbingIntoGrid&&k||!this.tabbingIntoGrid&&D)&&($=0);let M=this.isWeekend(r),O=r.toLocaleDateString(this.locale,{weekday:"long",day:"numeric",month:"long",year:"numeric"}),x=b?this.localize.term("startDateSelected"):S?this.localize.term("endDateSelected"):void 0;return C`<button type="button" part="day" class="${E("cell day flex items-center justify-center focus-visible:outline focus:outline-2 focus:outline-primary -outline-offset-2 rounded-md w-[36px]",this.size==="sm"?"text-sm h-6":"text-base h-8",b||S?"hover:bg-primary-500":"hover:bg-primary-100 hover:text-primary-500",v?this.isInDisabledDates(r)?"out-month text-neutral-700":this.disabledWeekends&&M?"weekend-day text-neutral-500":"in-month text-primary":M?"out-month weekend-day text-neutral-500":"out-month text-neutral-700",m?"selected border-primary bg-primary text-white hover:bg-primary-500 hover:text-white":"",b?"bg-primary text-white rounded-l-md rounded-r-none":"",S?"bg-primary text-white range-end rounded-r-md rounded-l-none":"",V&&!b&&!S?"in-range selected bg-primary-100 text-primary-500 rounded-none hover:bg-primary-500 hover:text-white":"",!V&&T&&!b&&!S?"in-preview-range bg-primary-100 text-primary-500 rounded-none":"",w&&!m&&!b&&!S&&D?"today border-[1px] border-primary font-bold":"",I?"disabled cursor-not-allowed hover:bg-transparent":"",D&&!w?"focused outline outline-2 outline-primary":"")}" role="gridcell" aria-colindex="${p+1}" aria-labelledby="${"col-"+(p+1)}" .tabIndex="${$}" ?disabled="${I||this.disabled}" aria-disabled="${I||this.visuallyDisabled||this.disabled?"true":"false"}" aria-selected="${m||V||b||S?"true":"false"}" aria-current="${w?"date":P}" aria-label="${O}" aria-roledescription="${x!=null?x:P}" @focus="${()=>this.focusedDate=a.startOfDayLocal(r)}" @mouseenter="${()=>this.onDayMouseEnter(r)}" @keydown="${this.onKeyDown}" @click="${()=>{this.focusedDate=a.startOfDayLocal(r),this.selectDate(r)}}">${r.getDate()}</button>`})}</div>`)}</div></div>`}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,s=this.helpText?!0:!!t.helpText,i=!!t.tooltip,n=this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",l={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],u={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],c=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",g={disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[c],h=this.size==="sm"?"text-sm":"text-base";return C`<div part="form-control" class="${E("w-[370px]",this.open&&"z-50",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${e||i?C`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${E(e?"inline-block":"hidden",h)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${t.tooltip?C`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${E("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}"><div part="border" class="${E("absolute top-0 w-full h-full pointer-events-none border rounded-default z-10 transition-[border] duration-medium ease-in-out",g,this.open&&this.alignment==="left"?"rounded-bl-none":"",this.open&&this.alignment==="right"?"rounded-br-none":"")}"></div><sd-5-16-2-next-1-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${E("inline-flex relative w-full")}" sync="width" auto-size="vertical" auto-size-padding="10" exportparts="popup:popup__content,"><div part="base" class="${E("px-4 flex flex-row items-center rounded-default transition-colors ease-in-out duration-medium hover:duration-fast w-full",!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",c==="disabled"||c==="visuallyDisabled"?"text-neutral-500":"text-black")}" slot="anchor"><input id="input" type="text" role="combobox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="dialog" aria-controls="calendar-grid" aria-describedby="${s?"help-text":void 0}" aria-invalid="${this.showInvalidStyle?"true":"false"}" aria-label="${this.range?"Select date range":"Select a date"}" class="${E("min-w-0 flex-grow focus:outline-none bg-transparent",this.visuallyDisabled||this.disabled?"placeholder-neutral-500 cursor-not-allowed":"placeholder-neutral-700",{sm:"h-8",md:"h-10",lg:"h-12"}[this.size],h)}" placeholder="${this.placeholder||this.localize.term(this.range?"dateRangePlaceholder":"datePlaceholder")}" ?disabled="${this.disabled||this.disabled}" ?readonly="${this.readonly}" @input="${this.handleInput}" @click="${this.handleMouseDown}" @keydown="${this.handleInputKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleInputBlur}" @invalid="${this.handleInvalid}"> ${this.showInvalidStyle?C`<sd-5-16-2-next-1-icon part="invalid-icon" class="${E("text-error",l,u)}" library="_internal" name="risk"></sd-5-16-2-next-1-icon>`:""} ${this.showValidStyle&&this.styleOnValid?C`<sd-5-16-2-next-1-icon class="${E("text-success flex-shrink-0",l,u)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-5-16-2-next-1-icon>`:""}<sd-5-16-2-next-1-icon class="${E(n,l,u)}" library="_internal" name="calendar"></sd-5-16-2-next-1-icon>${this.renderCalendar()}</div></sd-5-16-2-next-1-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${E("text-sm text-neutral-700 mt-1",s?"block":"hidden")}" aria-hidden="${!s}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};o.styles=[...z.styles,R`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{position:relative;display:inline-block;--tw-outline-style:none;outline-style:none}:host([required]) #label::after{content:' *'}`],d([y({type:String,reflect:!0})],o.prototype,"locale",2),d([y({type:String})],o.prototype,"value",2),d([y({type:Boolean,reflect:!0})],o.prototype,"range",2),d([y({type:String})],o.prototype,"rangeStart",2),d([y({type:String})],o.prototype,"rangeEnd",2),d([y({type:Boolean})],o.prototype,"allowSameDayRange",2),d([y({type:String})],o.prototype,"min",2),d([y({type:String})],o.prototype,"max",2),d([y({type:Number})],o.prototype,"firstDayOfWeek",2),d([y({type:Boolean,reflect:!0,attribute:"disabled-weekends"})],o.prototype,"disabledWeekends",2),d([y({attribute:"disabled-dates"})],o.prototype,"disabledDates",2),d([y({attribute:!1})],o.prototype,"isDateDisabled",2),d([y({type:String,reflect:!0})],o.prototype,"size",2),d([y({type:String})],o.prototype,"alignment",2),d([y({type:String,reflect:!0})],o.prototype,"label",2),d([y({type:String,attribute:"help-text",reflect:!0})],o.prototype,"helpText",2),d([y({type:Boolean,reflect:!0})],o.prototype,"disabled",2),d([y({type:Boolean,attribute:"visually-disabled"})],o.prototype,"visuallyDisabled",2),d([y({type:Boolean,reflect:!0,attribute:"style-on-valid"})],o.prototype,"styleOnValid",2),d([y({type:Boolean,reflect:!0})],o.prototype,"readonly",2),d([y({type:String,reflect:!0})],o.prototype,"placement",2),d([y({type:String,reflect:!0})],o.prototype,"placeholder",2),d([y({reflect:!0})],o.prototype,"name",2),d([y({type:String,reflect:!0})],o.prototype,"form",2),d([L()],o.prototype,"open",2),d([L()],o.prototype,"viewMonth",2),d([L()],o.prototype,"focusedDate",2),d([L()],o.prototype,"today",2),d([L()],o.prototype,"disabledDatesSet",2),d([L()],o.prototype,"previewEnd",2),d([L()],o.prototype,"statusNavText",2),d([L()],o.prototype,"statusSelectText",2),d([L()],o.prototype,"hasFocus",2),d([L()],o.prototype,"showValidStyle",2),d([L()],o.prototype,"showInvalidStyle",2),d([L()],o.prototype,"currentPlacement",2),d([L()],o.prototype,"inputValue",2),d([Y("#invalid-message")],o.prototype,"invalidMessage",2),d([Y("#input")],o.prototype,"input",2),d([F("locale")],o.prototype,"handleLocaleChange",1),d([F("disabledDates")],o.prototype,"handleDisabledDatesChange",1),d([F("value")],o.prototype,"handleValueChange",1),d([F("rangeStart"),F("rangeEnd")],o.prototype,"handleRangeChange",1),d([F(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],o.prototype,"handleDisabledChange",1),o=d([B("sd-5-16-2-next-1-datepicker")],o);export{o as a};