@solid-design-system/components 6.4.1 → 6.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/cdn/chunks/chunk.2XOKLKTX.js +5 -0
  2. package/cdn/chunks/chunk.H2DZMP6C.js +2 -0
  3. package/cdn/chunks/chunk.I6EGY7RT.js +2 -0
  4. package/cdn/components/datepicker/datepicker.d.ts +3 -0
  5. package/cdn/components/datepicker/datepicker.js +1 -1
  6. package/cdn/components/range/range.js +1 -1
  7. package/cdn/components/tooltip/tooltip.d.ts +3 -0
  8. package/cdn/components/tooltip/tooltip.js +1 -1
  9. package/cdn/custom-elements.json +28 -1
  10. package/cdn/solid-components.bundle.js +77 -77
  11. package/cdn/solid-components.iife.js +77 -77
  12. package/cdn/solid-components.js +1 -1
  13. package/cdn/vscode.html-custom-data.json +5 -0
  14. package/cdn/web-types.json +12 -1
  15. package/cdn-versioned/chunks/chunk.2DPSCPM4.js +2 -2
  16. package/cdn-versioned/chunks/chunk.2HJLVWCE.js +2 -2
  17. package/cdn-versioned/chunks/chunk.2KV3QDYA.js +2 -2
  18. package/cdn-versioned/chunks/chunk.2XOKLKTX.js +5 -0
  19. package/cdn-versioned/chunks/chunk.3ETEQAPR.js +2 -2
  20. package/cdn-versioned/chunks/chunk.47H4SDKN.js +2 -2
  21. package/cdn-versioned/chunks/chunk.4LGCXG7D.js +2 -2
  22. package/cdn-versioned/chunks/chunk.4P5PT6MV.js +2 -2
  23. package/cdn-versioned/chunks/chunk.5M2K2EXR.js +2 -2
  24. package/cdn-versioned/chunks/chunk.5OE2GCRH.js +2 -2
  25. package/cdn-versioned/chunks/chunk.6GU6NFBF.js +1 -1
  26. package/cdn-versioned/chunks/chunk.745GDIND.js +2 -2
  27. package/cdn-versioned/chunks/chunk.ALCKOGA7.js +1 -1
  28. package/cdn-versioned/chunks/chunk.C44GZOLG.js +9 -9
  29. package/cdn-versioned/chunks/chunk.C4QT4K6T.js +2 -2
  30. package/cdn-versioned/chunks/chunk.CDP46OS4.js +1 -1
  31. package/cdn-versioned/chunks/chunk.CJ34NUTS.js +1 -1
  32. package/cdn-versioned/chunks/chunk.CMY3VPYA.js +2 -2
  33. package/cdn-versioned/chunks/chunk.D5FVDNYV.js +2 -2
  34. package/cdn-versioned/chunks/chunk.DEEJ4ON7.js +2 -2
  35. package/cdn-versioned/chunks/chunk.DXGVZ3KG.js +1 -1
  36. package/cdn-versioned/chunks/chunk.E64WXH47.js +1 -1
  37. package/cdn-versioned/chunks/chunk.G42N3VHE.js +2 -2
  38. package/cdn-versioned/chunks/chunk.GP2QVZP5.js +1 -1
  39. package/cdn-versioned/chunks/chunk.H2DZMP6C.js +2 -0
  40. package/cdn-versioned/chunks/chunk.H77CNSMK.js +2 -2
  41. package/cdn-versioned/chunks/chunk.HHASCDC2.js +5 -5
  42. package/cdn-versioned/chunks/chunk.I234MSSB.js +2 -2
  43. package/cdn-versioned/chunks/chunk.I3TTTGLW.js +1 -1
  44. package/cdn-versioned/chunks/chunk.I6EGY7RT.js +2 -0
  45. package/cdn-versioned/chunks/chunk.IAEOXYGB.js +1 -1
  46. package/cdn-versioned/chunks/chunk.JRSX44R6.js +2 -2
  47. package/cdn-versioned/chunks/chunk.KKKGNXIR.js +2 -2
  48. package/cdn-versioned/chunks/chunk.KM5W4EDY.js +2 -2
  49. package/cdn-versioned/chunks/chunk.L6PAHLSN.js +2 -2
  50. package/cdn-versioned/chunks/chunk.MWO5B7BA.js +2 -2
  51. package/cdn-versioned/chunks/chunk.OAVVKKBJ.js +2 -2
  52. package/cdn-versioned/chunks/chunk.OG2BQH6T.js +2 -2
  53. package/cdn-versioned/chunks/chunk.PDHMAKVQ.js +2 -2
  54. package/cdn-versioned/chunks/chunk.PPIS2HQ5.js +1 -1
  55. package/cdn-versioned/chunks/chunk.PRGLNPUF.js +1 -1
  56. package/cdn-versioned/chunks/chunk.PT6G5HKE.js +1 -1
  57. package/cdn-versioned/chunks/chunk.Q6GEIXGA.js +2 -2
  58. package/cdn-versioned/chunks/chunk.QMKNC76J.js +2 -2
  59. package/cdn-versioned/chunks/chunk.QUGI3FMS.js +2 -2
  60. package/cdn-versioned/chunks/chunk.RBVWPWFK.js +2 -2
  61. package/cdn-versioned/chunks/chunk.S4II2NTI.js +2 -2
  62. package/cdn-versioned/chunks/chunk.S7VIPIYX.js +2 -2
  63. package/cdn-versioned/chunks/chunk.TWNEU4H4.js +3 -3
  64. package/cdn-versioned/chunks/chunk.TWTQHJPN.js +2 -2
  65. package/cdn-versioned/chunks/chunk.U44PXBV2.js +2 -2
  66. package/cdn-versioned/chunks/chunk.U5N7L5RI.js +2 -2
  67. package/cdn-versioned/chunks/chunk.UVRZTPOZ.js +2 -2
  68. package/cdn-versioned/chunks/chunk.VAUP57XZ.js +2 -2
  69. package/cdn-versioned/chunks/chunk.VMUNNUNV.js +1 -1
  70. package/cdn-versioned/chunks/chunk.VTDQOKJM.js +2 -2
  71. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  72. package/cdn-versioned/chunks/chunk.WOZKICWV.js +5 -5
  73. package/cdn-versioned/chunks/chunk.XAPH6XNH.js +2 -2
  74. package/cdn-versioned/chunks/chunk.XQWDDXL2.js +2 -2
  75. package/cdn-versioned/chunks/chunk.XTRMRKZ6.js +2 -2
  76. package/cdn-versioned/chunks/chunk.Z6TAAGCD.js +2 -2
  77. package/cdn-versioned/chunks/chunk.ZTELVJ34.js +1 -1
  78. package/cdn-versioned/chunks/chunk.ZVHLKL7F.js +2 -2
  79. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  80. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  81. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  82. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  83. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  84. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  85. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  86. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  87. package/cdn-versioned/components/button/button.d.ts +1 -1
  88. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  89. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  90. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  91. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  92. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  93. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  94. package/cdn-versioned/components/datepicker/datepicker.d.ts +4 -1
  95. package/cdn-versioned/components/datepicker/datepicker.js +1 -1
  96. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  97. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  98. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  99. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  100. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  101. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  102. package/cdn-versioned/components/header/header.d.ts +1 -1
  103. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  104. package/cdn-versioned/components/include/include.d.ts +1 -1
  105. package/cdn-versioned/components/input/input.d.ts +1 -1
  106. package/cdn-versioned/components/link/link.d.ts +1 -1
  107. package/cdn-versioned/components/loader/loader.d.ts +1 -1
  108. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  109. package/cdn-versioned/components/menu/menu.d.ts +1 -1
  110. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  111. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  112. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  113. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  114. package/cdn-versioned/components/option/option.d.ts +1 -1
  115. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  116. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  117. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  118. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  119. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  120. package/cdn-versioned/components/range/range.d.ts +1 -1
  121. package/cdn-versioned/components/range/range.js +1 -1
  122. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  123. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  124. package/cdn-versioned/components/select/select.d.ts +1 -1
  125. package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
  126. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  127. package/cdn-versioned/components/step/step.d.ts +1 -1
  128. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  129. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  130. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  131. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  132. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  133. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  134. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  135. package/cdn-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  136. package/cdn-versioned/components/tooltip/tooltip.d.ts +4 -1
  137. package/cdn-versioned/components/tooltip/tooltip.js +1 -1
  138. package/cdn-versioned/components/video/video.d.ts +1 -1
  139. package/cdn-versioned/custom-elements.json +271 -244
  140. package/cdn-versioned/internal/form.js +3 -3
  141. package/cdn-versioned/solid-components.bundle.js +86 -86
  142. package/cdn-versioned/solid-components.css +2 -2
  143. package/cdn-versioned/solid-components.iife.js +86 -86
  144. package/cdn-versioned/solid-components.js +1 -1
  145. package/cdn-versioned/vscode.html-custom-data.json +99 -94
  146. package/cdn-versioned/web-types.json +168 -157
  147. package/dist/chunks/{chunk.QM4E25CD.js → chunk.CMGWC5BG.js} +46 -15
  148. package/dist/chunks/{chunk.2VPWVTT6.js → chunk.QFB3GZEP.js} +1 -0
  149. package/dist/chunks/{chunk.OJXVBFUH.js → chunk.ZD2JI4OC.js} +26 -9
  150. package/dist/components/datepicker/datepicker.d.ts +3 -0
  151. package/dist/components/datepicker/datepicker.js +1 -1
  152. package/dist/components/range/range.js +1 -1
  153. package/dist/components/tooltip/tooltip.d.ts +3 -0
  154. package/dist/components/tooltip/tooltip.js +1 -1
  155. package/dist/custom-elements.json +28 -1
  156. package/dist/solid-components.js +3 -3
  157. package/dist/vscode.html-custom-data.json +5 -0
  158. package/dist/web-types.json +12 -1
  159. package/dist-versioned/chunks/chunk.22PWID5B.js +2 -2
  160. package/dist-versioned/chunks/chunk.2EWH2DC2.js +1 -1
  161. package/dist-versioned/chunks/chunk.2HTII44Q.js +4 -4
  162. package/dist-versioned/chunks/chunk.3EJL5IKL.js +1 -1
  163. package/dist-versioned/chunks/chunk.3PTRIEGP.js +2 -2
  164. package/dist-versioned/chunks/chunk.4UT3FCHQ.js +2 -2
  165. package/dist-versioned/chunks/chunk.5XWO3USG.js +3 -3
  166. package/dist-versioned/chunks/chunk.75WDCMIC.js +24 -24
  167. package/dist-versioned/chunks/chunk.ASEJW6QN.js +5 -5
  168. package/dist-versioned/chunks/chunk.AUSBWPVD.js +7 -7
  169. package/dist-versioned/chunks/chunk.AZPOFDJP.js +4 -4
  170. package/dist-versioned/chunks/chunk.BBLAIT57.js +2 -2
  171. package/dist-versioned/chunks/chunk.BSP6J6R2.js +2 -2
  172. package/dist-versioned/chunks/chunk.BTNS6ZNO.js +4 -4
  173. package/dist-versioned/chunks/chunk.C3WIBDGG.js +3 -3
  174. package/dist-versioned/chunks/{chunk.QM4E25CD.js → chunk.CMGWC5BG.js} +48 -17
  175. package/dist-versioned/chunks/chunk.D4UC3BVQ.js +12 -12
  176. package/dist-versioned/chunks/chunk.D7CJJHHA.js +1 -1
  177. package/dist-versioned/chunks/chunk.DCHRUIDY.js +1 -1
  178. package/dist-versioned/chunks/chunk.DCOB6WLB.js +3 -3
  179. package/dist-versioned/chunks/chunk.DFHY67LW.js +5 -5
  180. package/dist-versioned/chunks/chunk.DTTVI7KT.js +11 -11
  181. package/dist-versioned/chunks/chunk.DXDDB6AB.js +1 -1
  182. package/dist-versioned/chunks/chunk.FKFGVTXH.js +3 -3
  183. package/dist-versioned/chunks/chunk.FSUOT4WC.js +12 -12
  184. package/dist-versioned/chunks/chunk.IJIPMNT2.js +3 -3
  185. package/dist-versioned/chunks/chunk.IYXPHPNO.js +1 -1
  186. package/dist-versioned/chunks/chunk.JGRI4R23.js +1 -1
  187. package/dist-versioned/chunks/chunk.K66JHYHC.js +2 -2
  188. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  189. package/dist-versioned/chunks/chunk.L2RS3IA6.js +8 -8
  190. package/dist-versioned/chunks/chunk.L3OEOSPQ.js +1 -1
  191. package/dist-versioned/chunks/chunk.L6ZE3RXX.js +14 -14
  192. package/dist-versioned/chunks/chunk.LBDV5GNR.js +4 -4
  193. package/dist-versioned/chunks/chunk.LZVVDTSP.js +26 -26
  194. package/dist-versioned/chunks/chunk.M2D3WWF3.js +8 -8
  195. package/dist-versioned/chunks/chunk.MH7JHBWP.js +2 -2
  196. package/dist-versioned/chunks/chunk.MLRNCOWA.js +3 -3
  197. package/dist-versioned/chunks/chunk.NEUULRS7.js +5 -5
  198. package/dist-versioned/chunks/chunk.P5FGSFP3.js +1 -1
  199. package/dist-versioned/chunks/chunk.PBXAIJQ4.js +5 -5
  200. package/dist-versioned/chunks/chunk.Q7ZMX7IB.js +3 -3
  201. package/dist-versioned/chunks/{chunk.2VPWVTT6.js → chunk.QFB3GZEP.js} +5 -4
  202. package/dist-versioned/chunks/chunk.R56JDQAF.js +2 -2
  203. package/dist-versioned/chunks/chunk.RFDAZXJG.js +3 -3
  204. package/dist-versioned/chunks/chunk.SCWR4Q4K.js +10 -10
  205. package/dist-versioned/chunks/chunk.SQYISG5I.js +4 -4
  206. package/dist-versioned/chunks/chunk.SVYFJMYF.js +3 -3
  207. package/dist-versioned/chunks/chunk.T46LX45D.js +6 -6
  208. package/dist-versioned/chunks/chunk.TNJNUASM.js +1 -1
  209. package/dist-versioned/chunks/chunk.TUMONDN4.js +4 -4
  210. package/dist-versioned/chunks/chunk.TVWV4PUH.js +2 -2
  211. package/dist-versioned/chunks/chunk.U2BN2DBY.js +4 -4
  212. package/dist-versioned/chunks/chunk.UDPSGKZL.js +4 -4
  213. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  214. package/dist-versioned/chunks/chunk.UPCVQSXM.js +3 -3
  215. package/dist-versioned/chunks/chunk.UWQPJU3Q.js +3 -3
  216. package/dist-versioned/chunks/chunk.XALPLS2Y.js +6 -6
  217. package/dist-versioned/chunks/chunk.XV2UO6TF.js +2 -2
  218. package/dist-versioned/chunks/chunk.YATRFNET.js +28 -28
  219. package/dist-versioned/chunks/chunk.YFRD2UEO.js +8 -8
  220. package/dist-versioned/chunks/chunk.YNBR5ZDU.js +4 -4
  221. package/dist-versioned/chunks/{chunk.OJXVBFUH.js → chunk.ZD2JI4OC.js} +31 -14
  222. package/dist-versioned/chunks/chunk.ZMEUQIVY.js +9 -9
  223. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  224. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  225. package/dist-versioned/components/animation/animation.d.ts +1 -1
  226. package/dist-versioned/components/audio/audio.d.ts +1 -1
  227. package/dist-versioned/components/badge/badge.d.ts +1 -1
  228. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  229. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  230. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  231. package/dist-versioned/components/button/button.d.ts +1 -1
  232. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  233. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  234. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  235. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  236. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  237. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  238. package/dist-versioned/components/datepicker/datepicker.d.ts +4 -1
  239. package/dist-versioned/components/datepicker/datepicker.js +1 -1
  240. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  241. package/dist-versioned/components/divider/divider.d.ts +1 -1
  242. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  243. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  244. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  245. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  246. package/dist-versioned/components/header/header.d.ts +1 -1
  247. package/dist-versioned/components/icon/icon.d.ts +1 -1
  248. package/dist-versioned/components/include/include.d.ts +1 -1
  249. package/dist-versioned/components/input/input.d.ts +1 -1
  250. package/dist-versioned/components/link/link.d.ts +1 -1
  251. package/dist-versioned/components/loader/loader.d.ts +1 -1
  252. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  253. package/dist-versioned/components/menu/menu.d.ts +1 -1
  254. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  255. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  256. package/dist-versioned/components/notification/notification.d.ts +1 -1
  257. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  258. package/dist-versioned/components/option/option.d.ts +1 -1
  259. package/dist-versioned/components/popup/popup.d.ts +1 -1
  260. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  261. package/dist-versioned/components/radio/radio.d.ts +1 -1
  262. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  263. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  264. package/dist-versioned/components/range/range.d.ts +1 -1
  265. package/dist-versioned/components/range/range.js +1 -1
  266. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  267. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  268. package/dist-versioned/components/select/select.d.ts +1 -1
  269. package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
  270. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  271. package/dist-versioned/components/step/step.d.ts +1 -1
  272. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  273. package/dist-versioned/components/switch/switch.d.ts +1 -1
  274. package/dist-versioned/components/tab/tab.d.ts +1 -1
  275. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  276. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  277. package/dist-versioned/components/tag/tag.d.ts +1 -1
  278. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  279. package/dist-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  280. package/dist-versioned/components/tooltip/tooltip.d.ts +4 -1
  281. package/dist-versioned/components/tooltip/tooltip.js +1 -1
  282. package/dist-versioned/components/video/video.d.ts +1 -1
  283. package/dist-versioned/custom-elements.json +271 -244
  284. package/dist-versioned/internal/form.js +3 -3
  285. package/dist-versioned/solid-components.css +2 -2
  286. package/dist-versioned/solid-components.js +3 -3
  287. package/dist-versioned/vscode.html-custom-data.json +99 -94
  288. package/dist-versioned/web-types.json +168 -157
  289. package/package.json +3 -3
  290. package/cdn/chunks/chunk.BZ3VHECJ.js +0 -5
  291. package/cdn/chunks/chunk.DC6UQXYF.js +0 -2
  292. package/cdn/chunks/chunk.EASLRW3B.js +0 -2
  293. package/cdn-versioned/chunks/chunk.BZ3VHECJ.js +0 -5
  294. package/cdn-versioned/chunks/chunk.DC6UQXYF.js +0 -2
  295. package/cdn-versioned/chunks/chunk.EASLRW3B.js +0 -2
@@ -151,7 +151,7 @@ var SdDatepicker = class extends SolidElement {
151
151
  };
152
152
  this.handleInput = (ev) => {
153
153
  var _a, _b, _c, _d, _e;
154
- if (this.disabled || this.visuallyDisabled) {
154
+ if (this.disabled || this.visuallyDisabled || this.readonly) {
155
155
  (_a = ev.preventDefault) == null ? void 0 : _a.call(ev);
156
156
  (_b = ev.stopPropagation) == null ? void 0 : _b.call(ev);
157
157
  return;
@@ -349,10 +349,16 @@ var SdDatepicker = class extends SolidElement {
349
349
  }
350
350
  this.handleBlur();
351
351
  };
352
- this.handleCurrentPlacement = (ev) => {
353
- this.currentPlacement = ev.detail.placement;
352
+ this.handleCurrentPlacement = (e) => {
353
+ const incomingPlacement = e.detail;
354
+ if (incomingPlacement) {
355
+ this.currentPlacement = incomingPlacement;
356
+ }
354
357
  };
355
358
  this.handleHeaderKeyDown = (ev, type, direction, isLastHeaderControl) => {
359
+ if (this.disabled || this.visuallyDisabled || this.readonly) {
360
+ return;
361
+ }
356
362
  if (ev.key === "Tab" && !ev.shiftKey) {
357
363
  if (isLastHeaderControl) {
358
364
  ev.preventDefault();
@@ -370,7 +376,7 @@ var SdDatepicker = class extends SolidElement {
370
376
  }
371
377
  };
372
378
  this.onKeyDown = (ev) => {
373
- if (this.disabled || this.visuallyDisabled) {
379
+ if (this.disabled || this.visuallyDisabled || this.readonly) {
374
380
  ev.preventDefault();
375
381
  ev.stopPropagation();
376
382
  return;
@@ -441,7 +447,7 @@ var SdDatepicker = class extends SolidElement {
441
447
  }
442
448
  };
443
449
  this.handleInputKeyDown = (ev) => {
444
- if ((this.disabled || this.visuallyDisabled) && ev.key !== "Tab") {
450
+ if ((this.disabled || this.visuallyDisabled || this.readonly) && ev.key !== "Tab") {
445
451
  ev.preventDefault();
446
452
  ev.stopPropagation();
447
453
  return;
@@ -455,7 +461,7 @@ var SdDatepicker = class extends SolidElement {
455
461
  this.emit("sd-datepicker-close");
456
462
  return;
457
463
  }
458
- if (ev.key === "Enter" && !this.open && !this.disabled && !this.visuallyDisabled) {
464
+ if (ev.key === "Enter" && !this.open && !this.disabled && !this.visuallyDisabled && !this.readonly) {
459
465
  ev.preventDefault();
460
466
  this.show();
461
467
  }
@@ -489,6 +495,11 @@ var SdDatepicker = class extends SolidElement {
489
495
  firstUpdated() {
490
496
  this.formControlController.updateValidity();
491
497
  }
498
+ handleOpenChange() {
499
+ if (this.popup) {
500
+ this.popup.active = this.open && !this.disabled && !this.visuallyDisabled;
501
+ }
502
+ }
492
503
  disconnectedCallback() {
493
504
  super.disconnectedCallback();
494
505
  this.removeEventListener("focusin", this.onFocusIn);
@@ -888,7 +899,7 @@ var SdDatepicker = class extends SolidElement {
888
899
  }
889
900
  }
890
901
  show() {
891
- if (this.open || this.disabled || this.visuallyDisabled) {
902
+ if (this.open || this.disabled || this.visuallyDisabled || this.readonly) {
892
903
  this.open = false;
893
904
  return;
894
905
  }
@@ -902,7 +913,7 @@ var SdDatepicker = class extends SolidElement {
902
913
  this.open = false;
903
914
  }
904
915
  handleMouseDown(event) {
905
- if (this.visuallyDisabled || this.disabled) {
916
+ if (this.visuallyDisabled || this.disabled || this.readonly) {
906
917
  event.preventDefault();
907
918
  event.stopPropagation();
908
919
  return;
@@ -916,7 +927,7 @@ var SdDatepicker = class extends SolidElement {
916
927
  }
917
928
  handleFocus() {
918
929
  this.hasFocus = true;
919
- if (!this.open && !this.disabled && !this.visuallyDisabled) {
930
+ if (!this.open && !this.disabled && !this.visuallyDisabled && !this.readonly) {
920
931
  this.show();
921
932
  }
922
933
  this.emit("sd-focus");
@@ -979,6 +990,7 @@ var SdDatepicker = class extends SolidElement {
979
990
  });
980
991
  }
981
992
  selectSingleDate(d) {
993
+ if (this.readonly) return;
982
994
  if (this.isDisabled(d)) return;
983
995
  const localMidnight = DateUtils.startOfDayLocal(d);
984
996
  const iso = DateUtils.toLocalISODate(localMidnight);
@@ -1003,6 +1015,7 @@ var SdDatepicker = class extends SolidElement {
1003
1015
  });
1004
1016
  }
1005
1017
  selectRangeDate(d) {
1018
+ if (this.readonly) return;
1006
1019
  const day = DateUtils.startOfDayLocal(d);
1007
1020
  const rs = this.rangeStart ? DateUtils.parseLocalISO(this.rangeStart) : null;
1008
1021
  const re = this.rangeEnd ? DateUtils.parseLocalISO(this.rangeEnd) : null;
@@ -1131,6 +1144,7 @@ var SdDatepicker = class extends SolidElement {
1131
1144
  }
1132
1145
  }
1133
1146
  selectDate(d) {
1147
+ if (this.readonly) return;
1134
1148
  if (this.range) this.selectRangeDate(d);
1135
1149
  else this.selectSingleDate(d);
1136
1150
  }
@@ -1191,7 +1205,7 @@ var SdDatepicker = class extends SolidElement {
1191
1205
  }
1192
1206
  /** Mouse enter on a day: updates preview end when selecting a range. */
1193
1207
  onDayMouseEnter(day) {
1194
- if (!this.range) return;
1208
+ if (!this.range || this.readonly) return;
1195
1209
  const rs = this.rangeStart ? DateUtils.parseLocalISO(this.rangeStart) : null;
1196
1210
  const re = this.rangeEnd ? DateUtils.parseLocalISO(this.rangeEnd) : null;
1197
1211
  if (rs && !re) {
@@ -1207,6 +1221,7 @@ var SdDatepicker = class extends SolidElement {
1207
1221
  }
1208
1222
  }
1209
1223
  renderCalendar() {
1224
+ var _a;
1210
1225
  const { weeks } = this.getMonthMatrix(this.viewMonth);
1211
1226
  const monthLabel = this.formatMonthYear(this.viewMonth);
1212
1227
  const weekdays = this.weekdayLabels();
@@ -1219,7 +1234,12 @@ var SdDatepicker = class extends SolidElement {
1219
1234
  return DateUtils.isBetweenInclusive(day, rs, pe);
1220
1235
  };
1221
1236
  const tabTarget = this.getTabTargetDayForCurrentView(weeks);
1222
- return html`<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="${(ev) => this.handleHeaderKeyDown(ev, "year", -1, false)}" aria-label="${this.localize.term("previousYear")}"><sd-icon library="_internal" name="chevrons-sm-left" class="h-6 w-6"></sd-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="${(ev) => this.handleHeaderKeyDown(ev, "month", -1, false)}" aria-label="${this.localize.term("previousMonth")}"><sd-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-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">${monthLabel}</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="${(ev) => this.handleHeaderKeyDown(ev, "month", 1, false)}" aria-label="${this.localize.term("nextMonth")}"><sd-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-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="${(ev) => this.handleHeaderKeyDown(ev, "year", 1, true)}" aria-label="${this.localize.term("nextYear")}"><sd-icon library="_internal" name="chevrons-sm-right" class="h-6 w-6"></sd-icon></button></div></div><sd-divider></sd-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="${monthLabel}" part="grid" @mouseleave="${this.onGridMouseLeave}" @focusin="${() => {
1237
+ return html`<div part="datepicker" class="${cx(
1238
+ "w-[284px] z-50 bg-white py-3 px-4",
1239
+ this.open ? "block" : "hidden",
1240
+ ((_a = this.currentPlacement) == null ? void 0 : _a.startsWith("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",
1241
+ "border-primary"
1242
+ )}"><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="${(ev) => this.handleHeaderKeyDown(ev, "year", -1, false)}" aria-label="${this.localize.term("previousYear")}"><sd-icon library="_internal" name="chevrons-sm-left" class="h-6 w-6"></sd-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="${(ev) => this.handleHeaderKeyDown(ev, "month", -1, false)}" aria-label="${this.localize.term("previousMonth")}"><sd-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-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">${monthLabel}</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="${(ev) => this.handleHeaderKeyDown(ev, "month", 1, false)}" aria-label="${this.localize.term("nextMonth")}"><sd-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-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="${(ev) => this.handleHeaderKeyDown(ev, "year", 1, true)}" aria-label="${this.localize.term("nextYear")}"><sd-icon library="_internal" name="chevrons-sm-right" class="h-6 w-6"></sd-icon></button></div></div><sd-divider></sd-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="${monthLabel}" part="grid" @mouseleave="${this.onGridMouseLeave}" @focusin="${() => {
1223
1243
  this.tabbingIntoGrid = false;
1224
1244
  }}"><div class="grid-row grid-head grid grid-cols-7 gap-y-[1px]" role="row">${weekdays.map(
1225
1245
  (w, colIndex) => html`<div role="columnheader" aria-colindex="${colIndex + 1}" part="weekday" class="cell head flex items-center justify-center font-bold text-black text-sm leading-none h-8" aria-label="${w}" title="${w}" id="${"col-" + (colIndex + 1)}">${w}</div>`
@@ -1262,7 +1282,7 @@ var SdDatepicker = class extends SolidElement {
1262
1282
  isToday && !isSelectedSingle && !isRangeStart && !isRangeEnd && isFocused ? "today border-[1px] border-primary font-bold" : "",
1263
1283
  disabled ? "disabled cursor-not-allowed hover:bg-transparent" : "cursor-pointer",
1264
1284
  isFocused && !isToday ? "focused outline outline-2 outline-primary" : ""
1265
- )}" role="gridcell" aria-colindex="${colIndex + 1}" aria-labelledby="${"col-" + (colIndex + 1)}" .tabIndex="${tabIndex}" ?disabled="${disabled || this.disabled}" aria-disabled="${disabled || this.visuallyDisabled || this.disabled ? "true" : "false"}" aria-selected="${isSelectedSingle || inSelectedRange || isRangeStart || isRangeEnd ? "true" : "false"}" aria-current="${isToday ? "date" : nothing}" aria-label="${label}" aria-roledescription="${roleDesc != null ? roleDesc : nothing}" @focus="${() => this.focusedDate = DateUtils.startOfDayLocal(day)}" @mouseenter="${() => this.onDayMouseEnter(day)}" @keydown="${this.onKeyDown}" @click="${() => {
1285
+ )}" role="gridcell" aria-colindex="${colIndex + 1}" aria-labelledby="${"col-" + (colIndex + 1)}" .tabIndex="${tabIndex}" ?disabled="${disabled || this.disabled || this.readonly}" aria-disabled="${disabled || this.visuallyDisabled || this.disabled || this.readonly ? "true" : "false"}" aria-selected="${isSelectedSingle || inSelectedRange || isRangeStart || isRangeEnd ? "true" : "false"}" aria-current="${isToday ? "date" : nothing}" aria-label="${label}" aria-roledescription="${roleDesc != null ? roleDesc : nothing}" @focus="${() => this.focusedDate = DateUtils.startOfDayLocal(day)}" @mouseenter="${() => this.onDayMouseEnter(day)}" @keydown="${this.onKeyDown}" @click="${() => {
1266
1286
  this.focusedDate = DateUtils.startOfDayLocal(day);
1267
1287
  this.selectDate(day);
1268
1288
  }}">${day.getDate()}</button>`;
@@ -1270,6 +1290,7 @@ var SdDatepicker = class extends SolidElement {
1270
1290
  )}</div></div>`;
1271
1291
  }
1272
1292
  render() {
1293
+ var _a, _b;
1273
1294
  const slots = {
1274
1295
  label: this.hasSlotController.test("label"),
1275
1296
  helpText: this.hasSlotController.test("help-text"),
@@ -1308,7 +1329,8 @@ var SdDatepicker = class extends SolidElement {
1308
1329
  "absolute top-0 w-full h-full pointer-events-none border rounded-default z-10 transition-[border] duration-medium ease-in-out",
1309
1330
  borderColor,
1310
1331
  this.open && this.alignment === "left" ? "rounded-bl-none" : "",
1311
- this.open && this.alignment === "right" ? "rounded-br-none" : ""
1332
+ this.open && this.alignment === "right" ? "rounded-br-none" : "",
1333
+ this.open && (((_a = this.currentPlacement) == null ? void 0 : _a.startsWith("bottom")) ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
1312
1334
  )}">${hasLabel && this.floatingLabel ? html`<label id="label" part="form-control-floating-label" class="${cx(
1313
1335
  "absolute left-4 z-20 pointer-events-none transition-all duration-200",
1314
1336
  !isFloatingLabelActive ? "top-1/2 -translate-y-1/2 text-base" : this.size === "lg" ? "top-2 text-xs" : "top-1 text-xs",
@@ -1317,7 +1339,10 @@ var SdDatepicker = class extends SolidElement {
1317
1339
  "leading-none",
1318
1340
  (this.visuallyDisabled || this.disabled) && "text-neutral-500",
1319
1341
  isFloatingLabelActive && !this.visuallyDisabled && !this.disabled && "form-control--filled__floating-label-color-text"
1320
- )}">${this.label}</span></label>` : null}</div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx("inline-flex relative w-full")}" sync="width" auto-size="vertical" auto-size-padding="10" exportparts="popup:popup__content,"><div part="base" class="${cx(
1342
+ )}">${this.label}</span></label>` : null}</div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
1343
+ "inline-flex relative w-full",
1344
+ ((_b = this.currentPlacement) == null ? void 0 : _b.startsWith("bottom")) ? "origin-top" : "origin-bottom"
1345
+ )}" placement="${this.alignment === "left" ? `${this.placement}-start` : `${this.placement}-end`}" flip shift auto-size="vertical" auto-size-padding="10" exportparts="popup:popup__content,"><div part="base" class="${cx(
1321
1346
  "px-4 flex flex-row items-center rounded-default transition-colors ease-in-out duration-medium hover:duration-fast w-full",
1322
1347
  !this.disabled && !this.readonly && !this.visuallyDisabled ? "hover:bg-neutral-200" : "",
1323
1348
  this.readonly ? "bg-neutral-100" : "bg-white",
@@ -1328,7 +1353,7 @@ var SdDatepicker = class extends SolidElement {
1328
1353
  { sm: "h-8", md: "h-10", lg: "h-12" }[this.size],
1329
1354
  textSize,
1330
1355
  this.floatingLabel && "mt-4"
1331
- )}" autocomplete="off" spellcheck="false" placeholder="${!this.floatingLabel || isFloatingLabelActive ? this.placeholder || this.localize.term(this.range ? "dateRangePlaceholder" : "datePlaceholder") : ""}" ?disabled="${this.disabled}" ?required="${this.required}" ?readonly="${this.readonly || this.visuallyDisabled}" @input="${this.handleInput}" @click="${this.handleMouseDown}" @keydown="${this.handleInputKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleInputBlur}" @invalid="${this.handleInvalid}"> ${this.showInvalidStyle ? html`<sd-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="_internal" name="risk"></sd-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-icon>` : ""}<sd-icon class="${cx(iconColor, iconMarginLeft, iconSize, "hover:cursor-pointer")}" library="_internal" name="calendar" @click="${this.show}"></sd-icon>${this.renderCalendar()}</div></sd-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-1", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`;
1356
+ )}" autocomplete="off" spellcheck="false" placeholder="${!this.floatingLabel || isFloatingLabelActive ? this.placeholder || this.localize.term(this.range ? "dateRangePlaceholder" : "datePlaceholder") : ""}" ?disabled="${this.disabled}" ?required="${this.required}" ?readonly="${this.readonly || this.visuallyDisabled}" @input="${this.handleInput}" @click="${this.handleMouseDown}" @keydown="${this.handleInputKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleInputBlur}" @invalid="${this.handleInvalid}"> ${this.showInvalidStyle ? html`<sd-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="_internal" name="risk"></sd-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-icon>` : ""}<sd-icon class="${cx(iconColor, iconMarginLeft, iconSize, "hover:cursor-pointer")}" library="_internal" name="calendar" @click="${this.show}"></sd-icon></div>${this.renderCalendar()}</sd-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-1", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`;
1332
1357
  }
1333
1358
  };
1334
1359
  SdDatepicker.styles = [
@@ -1453,12 +1478,18 @@ __decorateClass([
1453
1478
  __decorateClass([
1454
1479
  state()
1455
1480
  ], SdDatepicker.prototype, "inputValue", 2);
1481
+ __decorateClass([
1482
+ query("sd-popup")
1483
+ ], SdDatepicker.prototype, "popup", 2);
1456
1484
  __decorateClass([
1457
1485
  query("#invalid-message")
1458
1486
  ], SdDatepicker.prototype, "invalidMessage", 2);
1459
1487
  __decorateClass([
1460
1488
  query("#input")
1461
1489
  ], SdDatepicker.prototype, "input", 2);
1490
+ __decorateClass([
1491
+ watch("open", { waitUntilFirstUpdate: true })
1492
+ ], SdDatepicker.prototype, "handleOpenChange", 1);
1462
1493
  __decorateClass([
1463
1494
  watch("locale")
1464
1495
  ], SdDatepicker.prototype, "handleLocaleChange", 1);
@@ -110,6 +110,7 @@ var SdRange = class extends SolidElement {
110
110
  if (!this._rangeValues.has(rangeId)) continue;
111
111
  this.moveThumb(thumb, this._rangeValues.get(rangeId));
112
112
  if (this.tooltip === "always-visible") {
113
+ thumb.parentElement.closeTrigger = "manual";
113
114
  thumb.parentElement.show();
114
115
  }
115
116
  }
@@ -42,6 +42,7 @@ var SdTooltip = class extends SolidElement {
42
42
  this.disabled = false;
43
43
  this.open = false;
44
44
  this.trigger = "click focus";
45
+ this.closeTrigger = "click focus escape";
45
46
  this.hoist = false;
46
47
  this.handleMouseInteraction = () => {
47
48
  this.interactionType = "mouse";
@@ -60,6 +61,8 @@ var SdTooltip = class extends SolidElement {
60
61
  this.handleMouseOut = this.handleMouseOut.bind(this);
61
62
  document.addEventListener("mousedown", this.handleMouseInteraction);
62
63
  document.addEventListener("keydown", this.handleKeyboardInteraction);
64
+ this.handleDocumentClick = this.handleDocumentClick.bind(this);
65
+ document.addEventListener("click", this.handleDocumentClick);
63
66
  this.updateComplete.then(() => {
64
67
  this.addEventListener("blur", this.handleBlur, true);
65
68
  this.addEventListener("focus", this.handleFocus, true);
@@ -87,6 +90,7 @@ var SdTooltip = class extends SolidElement {
87
90
  this.removeEventListener("mouseout", this.handleMouseOut);
88
91
  document.removeEventListener("mousedown", this.handleMouseInteraction);
89
92
  document.removeEventListener("keydown", this.handleKeyboardInteraction);
93
+ document.removeEventListener("click", this.handleDocumentClick);
90
94
  }
91
95
  get hasCustomTrigger() {
92
96
  return this.hasSlotController.test("[default]");
@@ -105,17 +109,15 @@ var SdTooltip = class extends SolidElement {
105
109
  });
106
110
  }
107
111
  handleBlur() {
108
- if (this.hasTrigger("focus")) {
112
+ if (this.hasCloseTrigger("focus")) {
109
113
  this.hide();
110
114
  }
111
115
  }
112
116
  handleClick() {
113
- if (this.hasTrigger("click")) {
114
- if (this.open) {
115
- this.hide();
116
- } else {
117
- this.show();
118
- }
117
+ if (this.open && this.hasCloseTrigger("click")) {
118
+ this.hide();
119
+ } else if (this.hasTrigger("click")) {
120
+ this.show();
119
121
  }
120
122
  }
121
123
  handleFocus() {
@@ -126,7 +128,7 @@ var SdTooltip = class extends SolidElement {
126
128
  }
127
129
  }
128
130
  handleKeyDown(event) {
129
- if (this.open && event.key === "Escape") {
131
+ if (this.open && event.key === "Escape" && this.hasCloseTrigger("escape")) {
130
132
  event.stopPropagation();
131
133
  this.hide();
132
134
  }
@@ -139,16 +141,28 @@ var SdTooltip = class extends SolidElement {
139
141
  }
140
142
  }
141
143
  handleMouseOut() {
142
- if (this.hasTrigger("hover")) {
144
+ if (this.hasCloseTrigger("hover")) {
143
145
  const delay = parseDuration(getComputedStyle(this).getPropertyValue("--hide-delay"));
144
146
  clearTimeout(this.hoverTimeout);
145
147
  this.hoverTimeout = window.setTimeout(() => this.hide(), delay);
146
148
  }
147
149
  }
150
+ handleDocumentClick(event) {
151
+ if (!this.open) return;
152
+ if (this.interactionType === "keyboard") return;
153
+ const path = event.composedPath();
154
+ if (this.hasCloseTrigger("focus") && !path.includes(this) && !path.includes(this.popup)) {
155
+ this.hide();
156
+ }
157
+ }
148
158
  hasTrigger(triggerType) {
149
159
  const triggers = this.trigger.split(" ");
150
160
  return triggers.includes(triggerType);
151
161
  }
162
+ hasCloseTrigger(type) {
163
+ const triggers = this.closeTrigger.split(" ");
164
+ return triggers.includes(type);
165
+ }
152
166
  async handleOpenChange() {
153
167
  if (this.open) {
154
168
  if (this.disabled) {
@@ -244,6 +258,9 @@ __decorateClass([
244
258
  __decorateClass([
245
259
  property({ type: String, reflect: true })
246
260
  ], SdTooltip.prototype, "trigger", 2);
261
+ __decorateClass([
262
+ property({ type: String, attribute: "close-trigger", reflect: true })
263
+ ], SdTooltip.prototype, "closeTrigger", 2);
247
264
  __decorateClass([
248
265
  property({ type: Boolean, reflect: true })
249
266
  ], SdTooltip.prototype, "hoist", 2);
@@ -4,6 +4,7 @@ import '../popup/popup';
4
4
  import { LocalizeController } from '../../utilities/localize';
5
5
  import SolidElement from '../../internal/solid-element';
6
6
  import type { SolidFormControl } from '../../internal/solid-element';
7
+ import type SdPopup from '../popup/popup';
7
8
  export default class SdDatepicker extends SolidElement implements SolidFormControl {
8
9
  localize: LocalizeController;
9
10
  private readonly hasSlotController;
@@ -47,6 +48,7 @@ export default class SdDatepicker extends SolidElement implements SolidFormContr
47
48
  showInvalidStyle: boolean;
48
49
  currentPlacement: "top" | "bottom";
49
50
  private inputValue;
51
+ popup: SdPopup;
50
52
  invalidMessage: HTMLDivElement;
51
53
  input: HTMLInputElement;
52
54
  private tabbingIntoGrid;
@@ -54,6 +56,7 @@ export default class SdDatepicker extends SolidElement implements SolidFormContr
54
56
  constructor();
55
57
  connectedCallback(): void;
56
58
  firstUpdated(): void;
59
+ handleOpenChange(): void;
57
60
  disconnectedCallback(): void;
58
61
  handleLocaleChange(): void;
59
62
  handleDisabledDatesChange(): void;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SdDatepicker
3
- } from "../../chunks/chunk.QM4E25CD.js";
3
+ } from "../../chunks/chunk.CMGWC5BG.js";
4
4
  import "../../chunks/chunk.SMPFJ52B.js";
5
5
  import "../../chunks/chunk.Q7ZMX7IB.js";
6
6
  import "../../chunks/chunk.P5FGSFP3.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SdRange
3
- } from "../../chunks/chunk.2VPWVTT6.js";
3
+ } from "../../chunks/chunk.QFB3GZEP.js";
4
4
  import "../../chunks/chunk.D3YSIVTB.js";
5
5
  import "../../chunks/chunk.GI7VDIWX.js";
6
6
  import "../../chunks/chunk.C3WIBDGG.js";
@@ -17,6 +17,7 @@ export default class SdTooltip extends SolidElement {
17
17
  disabled: boolean;
18
18
  open: boolean;
19
19
  trigger: string;
20
+ closeTrigger: string;
20
21
  hoist: boolean;
21
22
  connectedCallback(): void;
22
23
  firstUpdated(): void;
@@ -31,7 +32,9 @@ export default class SdTooltip extends SolidElement {
31
32
  private handleKeyDown;
32
33
  private handleMouseOver;
33
34
  private handleMouseOut;
35
+ private handleDocumentClick;
34
36
  private hasTrigger;
37
+ private hasCloseTrigger;
35
38
  handleOpenChange(): Promise<void>;
36
39
  handleOptionsChange(): Promise<void>;
37
40
  handleDisabledChange(): void;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SdTooltip
3
- } from "../../chunks/chunk.OJXVBFUH.js";
3
+ } from "../../chunks/chunk.ZD2JI4OC.js";
4
4
  import "../../chunks/chunk.P5FGSFP3.js";
5
5
  import "../../chunks/chunk.IVMQWO2L.js";
6
6
  import "../../chunks/chunk.N4LHE3QK.js";
@@ -6410,6 +6410,13 @@
6410
6410
  "name": "currentPlacement",
6411
6411
  "description": "Actual placement currently used by the flyout."
6412
6412
  },
6413
+ {
6414
+ "kind": "field",
6415
+ "name": "popup",
6416
+ "type": {
6417
+ "text": "SdPopup"
6418
+ }
6419
+ },
6413
6420
  {
6414
6421
  "kind": "field",
6415
6422
  "name": "validity",
@@ -21997,6 +22004,17 @@
21997
22004
  "attribute": "trigger",
21998
22005
  "reflects": true
21999
22006
  },
22007
+ {
22008
+ "kind": "field",
22009
+ "name": "closeTrigger",
22010
+ "type": {
22011
+ "text": "string"
22012
+ },
22013
+ "default": "'click focus escape'",
22014
+ "description": "Controls how the tooltip is closed.\nPossible options: `click`, `hover`, `focus`, `escape`, `manual`.\nMultiple options can be passed with spaces.",
22015
+ "attribute": "close-trigger",
22016
+ "reflects": true
22017
+ },
22000
22018
  {
22001
22019
  "kind": "field",
22002
22020
  "name": "hoist",
@@ -22170,6 +22188,15 @@
22170
22188
  "description": "Controls how the tooltip is activated. Possible options include `click`, `hover`, `focus`, and `manual`. Multiple\noptions can be passed by separating them with a space. When manual is used, the tooltip must be activated\nprogrammatically.",
22171
22189
  "fieldName": "trigger"
22172
22190
  },
22191
+ {
22192
+ "name": "close-trigger",
22193
+ "type": {
22194
+ "text": "string"
22195
+ },
22196
+ "default": "'click focus escape'",
22197
+ "description": "Controls how the tooltip is closed.\nPossible options: `click`, `hover`, `focus`, `escape`, `manual`.\nMultiple options can be passed with spaces.",
22198
+ "fieldName": "closeTrigger"
22199
+ },
22173
22200
  {
22174
22201
  "name": "hoist",
22175
22202
  "type": {
@@ -22493,7 +22520,7 @@
22493
22520
  "package": {
22494
22521
  "name": "@solid-design-system/components",
22495
22522
  "description": "Solid Design System: Components",
22496
- "version": "6.4.1",
22523
+ "version": "6.5.0",
22497
22524
  "author": "Union Investment",
22498
22525
  "homepage": "https://solid-design-system.fe.union-investment.de/docs/",
22499
22526
  "license": "MIT"
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunks/chunk.DCHRUIDY.js";
11
11
  import {
12
12
  SdTooltip
13
- } from "./chunks/chunk.OJXVBFUH.js";
13
+ } from "./chunks/chunk.ZD2JI4OC.js";
14
14
  import {
15
15
  SdVideo
16
16
  } from "./chunks/chunk.BSP6J6R2.js";
@@ -37,7 +37,7 @@ import {
37
37
  } from "./chunks/chunk.FKFGVTXH.js";
38
38
  import {
39
39
  SdRange
40
- } from "./chunks/chunk.2VPWVTT6.js";
40
+ } from "./chunks/chunk.QFB3GZEP.js";
41
41
  import "./chunks/chunk.D3YSIVTB.js";
42
42
  import {
43
43
  SdRangeTick
@@ -99,7 +99,7 @@ import {
99
99
  } from "./chunks/chunk.L3OEOSPQ.js";
100
100
  import {
101
101
  SdDatepicker
102
- } from "./chunks/chunk.QM4E25CD.js";
102
+ } from "./chunks/chunk.CMGWC5BG.js";
103
103
  import "./chunks/chunk.SMPFJ52B.js";
104
104
  import {
105
105
  SdDialog
@@ -3425,6 +3425,11 @@
3425
3425
  "description": "Controls how the tooltip is activated. Possible options include `click`, `hover`, `focus`, and `manual`. Multiple\noptions can be passed by separating them with a space. When manual is used, the tooltip must be activated\nprogrammatically.",
3426
3426
  "values": []
3427
3427
  },
3428
+ {
3429
+ "name": "close-trigger",
3430
+ "description": "Controls how the tooltip is closed.\nPossible options: `click`, `hover`, `focus`, `escape`, `manual`.\nMultiple options can be passed with spaces.",
3431
+ "values": []
3432
+ },
3428
3433
  {
3429
3434
  "name": "hoist",
3430
3435
  "description": "Enable this option to prevent the tooltip from being clipped when the component is placed inside a container with\n`overflow: auto|hidden|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all,\nscenarios.",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@solid-design-system/components",
4
- "version": "6.4.1",
4
+ "version": "6.5.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -2246,6 +2246,7 @@
2246
2246
  "name": "currentPlacement",
2247
2247
  "description": "Actual placement currently used by the flyout."
2248
2248
  },
2249
+ { "name": "popup", "type": "SdPopup" },
2249
2250
  { "name": "validity" },
2250
2251
  { "name": "validationMessage" },
2251
2252
  {
@@ -7653,6 +7654,11 @@
7653
7654
  "description": "Controls how the tooltip is activated. Possible options include `click`, `hover`, `focus`, and `manual`. Multiple\noptions can be passed by separating them with a space. When manual is used, the tooltip must be activated\nprogrammatically.",
7654
7655
  "value": { "type": "string", "default": "'click focus'" }
7655
7656
  },
7657
+ {
7658
+ "name": "close-trigger",
7659
+ "description": "Controls how the tooltip is closed.\nPossible options: `click`, `hover`, `focus`, `escape`, `manual`.\nMultiple options can be passed with spaces.",
7660
+ "value": { "type": "string", "default": "'click focus escape'" }
7661
+ },
7656
7662
  {
7657
7663
  "name": "hoist",
7658
7664
  "description": "Enable this option to prevent the tooltip from being clipped when the component is placed inside a container with\n`overflow: auto|hidden|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all,\nscenarios.",
@@ -7735,6 +7741,11 @@
7735
7741
  "description": "Controls how the tooltip is activated. Possible options include `click`, `hover`, `focus`, and `manual`. Multiple\noptions can be passed by separating them with a space. When manual is used, the tooltip must be activated\nprogrammatically.",
7736
7742
  "type": "string"
7737
7743
  },
7744
+ {
7745
+ "name": "closeTrigger",
7746
+ "description": "Controls how the tooltip is closed.\nPossible options: `click`, `hover`, `focus`, `escape`, `manual`.\nMultiple options can be passed with spaces.",
7747
+ "type": "string"
7748
+ },
7738
7749
  {
7739
7750
  "name": "hoist",
7740
7751
  "description": "Enable this option to prevent the tooltip from being clipped when the component is placed inside a container with\n`overflow: auto|hidden|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all,\nscenarios.",
@@ -84,7 +84,7 @@ var SdLink = class extends SolidElement {
84
84
  SdLink.styles = [
85
85
  ...SolidElement.styles,
86
86
  css`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
87
- ::slotted(sd-6-4-1-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-6-4-1-icon){font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}:host([size=lg][standalone]) ::slotted(sd-6-4-1-icon){font-size:var(--sd-text-xl);line-height:var(--tw-leading,var(--text-xl--line-height,calc(1.75 / 1.25)))}`
87
+ ::slotted(sd-6-5-0-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-6-5-0-icon){font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}:host([size=lg][standalone]) ::slotted(sd-6-5-0-icon){font-size:var(--sd-text-xl);line-height:var(--tw-leading,var(--text-xl--line-height,calc(1.75 / 1.25)))}`
88
88
  ];
89
89
  __decorateClass([
90
90
  query("a")
@@ -111,7 +111,7 @@ __decorateClass([
111
111
  property({ reflect: true })
112
112
  ], SdLink.prototype, "download", 2);
113
113
  SdLink = __decorateClass([
114
- customElement("sd-6-4-1-link")
114
+ customElement("sd-6-5-0-link")
115
115
  ], SdLink);
116
116
 
117
117
  export {
@@ -56,7 +56,7 @@ __decorateClass([
56
56
  property({ type: String, reflect: true })
57
57
  ], SdLoader.prototype, "color", 2);
58
58
  SdLoader = __decorateClass([
59
- customElement("sd-6-4-1-loader")
59
+ customElement("sd-6-5-0-loader")
60
60
  ], SdLoader);
61
61
 
62
62
  export {
@@ -60,10 +60,10 @@ var SdTeaser = class extends SolidElement {
60
60
  "flex",
61
61
  {
62
62
  white: "bg-white",
63
- "white border-neutral-400": "bg-white border sd-6-4-1-teaser--neutral-400-color-border",
64
- "neutral-100": "sd-6-4-1-teaser--neutral-100-color-background",
63
+ "white border-neutral-400": "bg-white border sd-6-5-0-teaser--neutral-400-color-border",
64
+ "neutral-100": "sd-6-5-0-teaser--neutral-100-color-background",
65
65
  primary: "bg-primary text-white",
66
- "primary-100": "sd-6-4-1-teaser--primary-100-color-background"
66
+ "primary-100": "sd-6-5-0-teaser--primary-100-color-background"
67
67
  }[this.variant],
68
68
  this._orientation === "vertical" && "flex-col",
69
69
  this._orientation === "horizontal" && "flex-row gap-8",
@@ -105,7 +105,7 @@ __decorateClass([
105
105
  state()
106
106
  ], SdTeaser.prototype, "_orientation", 2);
107
107
  SdTeaser = __decorateClass([
108
- customElement("sd-6-4-1-teaser")
108
+ customElement("sd-6-5-0-teaser")
109
109
  ], SdTeaser);
110
110
 
111
111
  export {
@@ -130,7 +130,7 @@ __decorateClass([
130
130
  state()
131
131
  ], SdBrandshape.prototype, "componentBreakpoint", 2);
132
132
  SdBrandshape = __decorateClass([
133
- customElement("sd-6-4-1-brandshape")
133
+ customElement("sd-6-5-0-brandshape")
134
134
  ], SdBrandshape);
135
135
 
136
136
  export {
@@ -54,7 +54,7 @@ var SdHeader = class extends SolidElement {
54
54
  }
55
55
  }
56
56
  render() {
57
- return html`<header class="w-full sd-6-4-1-header-color-background relative" role="banner"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`;
57
+ return html`<header class="w-full sd-6-5-0-header-color-background relative" role="banner"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`;
58
58
  }
59
59
  };
60
60
  SdHeader.styles = [
@@ -72,7 +72,7 @@ __decorateClass([
72
72
  debounce(100)
73
73
  ], SdHeader.prototype, "updateCalculatedHeight", 1);
74
74
  SdHeader = __decorateClass([
75
- customElement("sd-6-4-1-header")
75
+ customElement("sd-6-5-0-header")
76
76
  ], SdHeader);
77
77
 
78
78
  export {
@@ -55,7 +55,7 @@ var SdStepGroup = class extends SolidElement {
55
55
  });
56
56
  }
57
57
  getAllSteps() {
58
- return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-6-4-1-step");
58
+ return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-6-5-0-step");
59
59
  }
60
60
  /**
61
61
  * Sets the active step.
@@ -121,7 +121,7 @@ __decorateClass([
121
121
  watch("notInteractive")
122
122
  ], SdStepGroup.prototype, "handleInteractivityChange", 1);
123
123
  SdStepGroup = __decorateClass([
124
- customElement("sd-6-4-1-step-group")
124
+ customElement("sd-6-5-0-step-group")
125
125
  ], SdStepGroup);
126
126
 
127
127
  export {