@solid-design-system/components 4.4.1 → 4.4.2

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 (329) hide show
  1. package/cdn/chunks/chunk.BQKFXDN2.js +1 -0
  2. package/cdn/components/accordion/accordion.js +1 -1
  3. package/cdn/components/accordion-group/accordion-group.js +1 -1
  4. package/cdn/components/audio/audio.js +1 -1
  5. package/cdn/components/button/button.js +1 -1
  6. package/cdn/components/carousel/carousel.js +1 -1
  7. package/cdn/components/combobox/combobox.js +1 -1
  8. package/cdn/components/dialog/dialog.js +1 -1
  9. package/cdn/components/drawer/drawer.js +1 -1
  10. package/cdn/components/dropdown/dropdown.js +1 -1
  11. package/cdn/components/expandable/expandable.js +1 -1
  12. package/cdn/components/flipcard/flipcard.js +1 -1
  13. package/cdn/components/input/input.js +1 -1
  14. package/cdn/components/notification/notification.js +1 -1
  15. package/cdn/components/optgroup/optgroup.js +1 -1
  16. package/cdn/components/quickfact/quickfact.js +1 -1
  17. package/cdn/components/scrollable/scrollable.js +1 -1
  18. package/cdn/components/select/select.js +1 -1
  19. package/cdn/components/spinner/spinner.js +1 -1
  20. package/cdn/components/tab-group/tab-group.js +1 -1
  21. package/cdn/components/tooltip/tooltip.js +1 -1
  22. package/cdn/components/video/video.js +1 -1
  23. package/cdn/custom-elements.json +1 -1
  24. package/cdn/solid-components.bundle.js +11 -11
  25. package/cdn/solid-components.iife.js +10 -10
  26. package/cdn/solid-components.js +1 -1
  27. package/cdn/translations/de.js +1 -1
  28. package/cdn/utilities/localize.js +1 -1
  29. package/cdn/vscode.html-custom-data.json +27 -27
  30. package/cdn/web-types.json +77 -77
  31. package/cdn-versioned/_components/menu/menu.js +1 -1
  32. package/cdn-versioned/_components/menu/menu.styles.js +1 -1
  33. package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
  34. package/cdn-versioned/chunks/chunk.247MZWMU.js +1 -1
  35. package/cdn-versioned/chunks/chunk.2BLQ3VDT.js +4 -4
  36. package/cdn-versioned/chunks/chunk.2HJF2D4H.js +2 -2
  37. package/cdn-versioned/chunks/chunk.43NFQGWL.js +1 -1
  38. package/cdn-versioned/chunks/chunk.4QAJB6AU.js +1 -1
  39. package/cdn-versioned/chunks/chunk.5AILWWY2.js +1 -1
  40. package/cdn-versioned/chunks/chunk.5TTHL3M2.js +3 -3
  41. package/cdn-versioned/chunks/chunk.5YWPH3S7.js +2 -2
  42. package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
  43. package/cdn-versioned/chunks/chunk.7TRFUW6U.js +1 -1
  44. package/cdn-versioned/chunks/chunk.BHWV44KN.js +1 -1
  45. package/cdn-versioned/chunks/chunk.BQKFXDN2.js +1 -0
  46. package/cdn-versioned/chunks/chunk.BWMHPT4Y.js +1 -1
  47. package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
  48. package/cdn-versioned/chunks/chunk.CNGIUOE5.js +1 -1
  49. package/cdn-versioned/chunks/chunk.DDLTKNEO.js +1 -1
  50. package/cdn-versioned/chunks/chunk.DLY5AX2P.js +1 -1
  51. package/cdn-versioned/chunks/chunk.E5FCRWHS.js +1 -1
  52. package/cdn-versioned/chunks/chunk.F45IDVYA.js +1 -1
  53. package/cdn-versioned/chunks/chunk.FHU3KJ7Y.js +1 -1
  54. package/cdn-versioned/chunks/chunk.FVXID42E.js +1 -1
  55. package/cdn-versioned/chunks/chunk.HT2MRC4Z.js +1 -1
  56. package/cdn-versioned/chunks/chunk.I2WEQVU3.js +1 -1
  57. package/cdn-versioned/chunks/chunk.IUC5UQ2V.js +1 -1
  58. package/cdn-versioned/chunks/chunk.JCNKLGIS.js +1 -1
  59. package/cdn-versioned/chunks/chunk.JDSUZDP4.js +1 -1
  60. package/cdn-versioned/chunks/chunk.KLNBBP4R.js +4 -4
  61. package/cdn-versioned/chunks/chunk.KV424MMD.js +1 -1
  62. package/cdn-versioned/chunks/chunk.KWNRVZ54.js +1 -1
  63. package/cdn-versioned/chunks/chunk.LET4FMBB.js +1 -1
  64. package/cdn-versioned/chunks/chunk.LKO4ZRE7.js +1 -1
  65. package/cdn-versioned/chunks/chunk.NFQN6UG4.js +1 -1
  66. package/cdn-versioned/chunks/chunk.NOJV6ZZF.js +1 -1
  67. package/cdn-versioned/chunks/chunk.NQXQB7LN.js +1 -1
  68. package/cdn-versioned/chunks/chunk.NW6W2FSS.js +1 -1
  69. package/cdn-versioned/chunks/chunk.NZT4ORYP.js +1 -1
  70. package/cdn-versioned/chunks/chunk.O3IRROA2.js +1 -1
  71. package/cdn-versioned/chunks/chunk.ONLECFTO.js +1 -1
  72. package/cdn-versioned/chunks/chunk.PDIUABFP.js +1 -1
  73. package/cdn-versioned/chunks/chunk.PGBIGG5I.js +1 -1
  74. package/cdn-versioned/chunks/chunk.QWMQJ6TF.js +1 -1
  75. package/cdn-versioned/chunks/chunk.RCLIOOS5.js +1 -1
  76. package/cdn-versioned/chunks/chunk.RGJXEMYT.js +1 -1
  77. package/cdn-versioned/chunks/chunk.SDZ6E4CH.js +1 -1
  78. package/cdn-versioned/chunks/chunk.V3YHI2G2.js +1 -1
  79. package/cdn-versioned/chunks/chunk.VZSFEHBE.js +1 -1
  80. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  81. package/cdn-versioned/chunks/chunk.WJ55QSS3.js +1 -1
  82. package/cdn-versioned/chunks/chunk.WMV7GLXF.js +1 -1
  83. package/cdn-versioned/chunks/chunk.WUTY672B.js +1 -1
  84. package/cdn-versioned/chunks/chunk.XYZ5DKTA.js +1 -1
  85. package/cdn-versioned/chunks/chunk.Y4PTSCEB.js +1 -1
  86. package/cdn-versioned/chunks/chunk.ZN24IDXT.js +1 -1
  87. package/cdn-versioned/chunks/chunk.ZVVSLR3B.js +1 -1
  88. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  89. package/cdn-versioned/components/accordion/accordion.js +1 -1
  90. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  91. package/cdn-versioned/components/accordion-group/accordion-group.js +1 -1
  92. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  93. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  94. package/cdn-versioned/components/audio/audio.js +1 -1
  95. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  96. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  97. package/cdn-versioned/components/button/button.d.ts +1 -1
  98. package/cdn-versioned/components/button/button.js +1 -1
  99. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  100. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  101. package/cdn-versioned/components/carousel/carousel.js +1 -1
  102. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  103. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  104. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  105. package/cdn-versioned/components/combobox/combobox.d.ts +4 -4
  106. package/cdn-versioned/components/combobox/combobox.js +1 -1
  107. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  108. package/cdn-versioned/components/dialog/dialog.js +1 -1
  109. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  110. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  111. package/cdn-versioned/components/drawer/drawer.js +1 -1
  112. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  113. package/cdn-versioned/components/dropdown/dropdown.js +1 -1
  114. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  115. package/cdn-versioned/components/expandable/expandable.js +1 -1
  116. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  117. package/cdn-versioned/components/flipcard/flipcard.js +1 -1
  118. package/cdn-versioned/components/header/header.d.ts +1 -1
  119. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  120. package/cdn-versioned/components/include/include.d.ts +1 -1
  121. package/cdn-versioned/components/input/input.d.ts +1 -1
  122. package/cdn-versioned/components/input/input.js +1 -1
  123. package/cdn-versioned/components/link/link.d.ts +1 -1
  124. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  125. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  126. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  127. package/cdn-versioned/components/notification/notification.js +1 -1
  128. package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
  129. package/cdn-versioned/components/optgroup/optgroup.js +1 -1
  130. package/cdn-versioned/components/option/option.d.ts +1 -1
  131. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  132. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  133. package/cdn-versioned/components/quickfact/quickfact.js +1 -1
  134. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  135. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  136. package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
  137. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  138. package/cdn-versioned/components/scrollable/scrollable.js +1 -1
  139. package/cdn-versioned/components/select/select.d.ts +4 -4
  140. package/cdn-versioned/components/select/select.js +1 -1
  141. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  142. package/cdn-versioned/components/spinner/spinner.js +1 -1
  143. package/cdn-versioned/components/step/step.d.ts +1 -1
  144. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  145. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  146. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  147. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  148. package/cdn-versioned/components/tab-group/tab-group.js +1 -1
  149. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  150. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  151. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  152. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  153. package/cdn-versioned/components/tooltip/tooltip.js +1 -1
  154. package/cdn-versioned/components/video/video.d.ts +1 -1
  155. package/cdn-versioned/components/video/video.js +1 -1
  156. package/cdn-versioned/custom-elements.json +202 -202
  157. package/cdn-versioned/internal/form.js +3 -3
  158. package/cdn-versioned/solid-components.bundle.js +17 -17
  159. package/cdn-versioned/solid-components.css +2 -2
  160. package/cdn-versioned/solid-components.iife.js +17 -17
  161. package/cdn-versioned/solid-components.js +1 -1
  162. package/cdn-versioned/translations/de.js +1 -1
  163. package/cdn-versioned/utilities/localize.js +1 -1
  164. package/cdn-versioned/vscode.html-custom-data.json +104 -104
  165. package/cdn-versioned/web-types.json +205 -205
  166. package/dist/chunks/{chunk.KAQYKKNZ.js → chunk.KSVXMAIW.js} +3 -3
  167. package/dist/components/accordion/accordion.js +1 -1
  168. package/dist/components/accordion-group/accordion-group.js +1 -1
  169. package/dist/components/audio/audio.js +1 -1
  170. package/dist/components/button/button.js +1 -1
  171. package/dist/components/carousel/carousel.js +1 -1
  172. package/dist/components/combobox/combobox.js +1 -1
  173. package/dist/components/dialog/dialog.js +1 -1
  174. package/dist/components/drawer/drawer.js +1 -1
  175. package/dist/components/dropdown/dropdown.js +1 -1
  176. package/dist/components/expandable/expandable.js +1 -1
  177. package/dist/components/flipcard/flipcard.js +1 -1
  178. package/dist/components/input/input.js +1 -1
  179. package/dist/components/notification/notification.js +1 -1
  180. package/dist/components/optgroup/optgroup.js +1 -1
  181. package/dist/components/quickfact/quickfact.js +1 -1
  182. package/dist/components/scrollable/scrollable.js +1 -1
  183. package/dist/components/select/select.js +1 -1
  184. package/dist/components/spinner/spinner.js +1 -1
  185. package/dist/components/tab-group/tab-group.js +1 -1
  186. package/dist/components/tooltip/tooltip.js +1 -1
  187. package/dist/components/video/video.js +1 -1
  188. package/dist/custom-elements.json +1 -1
  189. package/dist/solid-components.js +1 -1
  190. package/dist/translations/de.js +1 -1
  191. package/dist/utilities/localize.js +1 -1
  192. package/dist/vscode.html-custom-data.json +27 -27
  193. package/dist/web-types.json +77 -77
  194. package/dist-versioned/_components/menu/menu.js +1 -1
  195. package/dist-versioned/_components/menu/menu.styles.js +1 -1
  196. package/dist-versioned/_components/menu-item/menu-item.js +2 -2
  197. package/dist-versioned/chunks/chunk.3UO2LKG5.js +13 -13
  198. package/dist-versioned/chunks/chunk.3YTMF6YZ.js +2 -2
  199. package/dist-versioned/chunks/chunk.5AX4S2QZ.js +2 -2
  200. package/dist-versioned/chunks/chunk.5V7TZU4Q.js +5 -5
  201. package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
  202. package/dist-versioned/chunks/chunk.6MMBMCHF.js +9 -9
  203. package/dist-versioned/chunks/chunk.6S3CCHLZ.js +1 -1
  204. package/dist-versioned/chunks/chunk.73HAOWEX.js +2 -2
  205. package/dist-versioned/chunks/chunk.7SZFMAVT.js +1 -1
  206. package/dist-versioned/chunks/chunk.AWASHA2T.js +1 -1
  207. package/dist-versioned/chunks/chunk.BFHRLREK.js +1 -1
  208. package/dist-versioned/chunks/chunk.CVHGDRIM.js +2 -2
  209. package/dist-versioned/chunks/chunk.DI4CIT2A.js +1 -1
  210. package/dist-versioned/chunks/chunk.DNHLNGIL.js +13 -13
  211. package/dist-versioned/chunks/chunk.F4BRIYYD.js +1 -1
  212. package/dist-versioned/chunks/chunk.G6KPFA3G.js +4 -4
  213. package/dist-versioned/chunks/chunk.GQXJC6ZE.js +2 -2
  214. package/dist-versioned/chunks/chunk.GWCHNKGW.js +1 -1
  215. package/dist-versioned/chunks/chunk.H54CZFCF.js +5 -5
  216. package/dist-versioned/chunks/chunk.HJ3ZUH4A.js +1 -1
  217. package/dist-versioned/chunks/chunk.I2JBWY5C.js +2 -2
  218. package/dist-versioned/chunks/chunk.IKWY7WM6.js +3 -3
  219. package/dist-versioned/chunks/chunk.JD5XFZKL.js +2 -2
  220. package/dist-versioned/chunks/chunk.JMAPLJHF.js +2 -2
  221. package/dist-versioned/chunks/chunk.JPGDK3CW.js +2 -2
  222. package/dist-versioned/chunks/chunk.K5MKZJEB.js +5 -5
  223. package/dist-versioned/chunks/{chunk.KAQYKKNZ.js → chunk.KSVXMAIW.js} +3 -3
  224. package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
  225. package/dist-versioned/chunks/chunk.L5QYLWGO.js +6 -6
  226. package/dist-versioned/chunks/chunk.LRQ55FZL.js +1 -1
  227. package/dist-versioned/chunks/chunk.LUV3NLSJ.js +3 -3
  228. package/dist-versioned/chunks/chunk.MCUC6LS6.js +2 -2
  229. package/dist-versioned/chunks/chunk.MKZ5TRQH.js +1 -1
  230. package/dist-versioned/chunks/chunk.MYCUDMGG.js +2 -2
  231. package/dist-versioned/chunks/chunk.OENW3EQT.js +5 -5
  232. package/dist-versioned/chunks/chunk.ONBGPY5D.js +5 -5
  233. package/dist-versioned/chunks/chunk.QN2ROZHZ.js +3 -3
  234. package/dist-versioned/chunks/chunk.RFVRT5UG.js +2 -2
  235. package/dist-versioned/chunks/chunk.SH45GYZL.js +1 -1
  236. package/dist-versioned/chunks/chunk.T5VRGBLR.js +1 -1
  237. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  238. package/dist-versioned/chunks/chunk.UXEDWUMA.js +26 -26
  239. package/dist-versioned/chunks/chunk.WHFYHMF4.js +2 -2
  240. package/dist-versioned/chunks/chunk.WJHCLJNK.js +1 -1
  241. package/dist-versioned/chunks/chunk.WPHOQL7V.js +2 -2
  242. package/dist-versioned/chunks/chunk.WZGJQPPD.js +2 -2
  243. package/dist-versioned/chunks/chunk.X7HEAUGJ.js +2 -2
  244. package/dist-versioned/chunks/chunk.XCNH2K2U.js +5 -5
  245. package/dist-versioned/chunks/chunk.XNH47HGG.js +29 -29
  246. package/dist-versioned/chunks/chunk.Y6WJUTMM.js +6 -6
  247. package/dist-versioned/chunks/chunk.Z3T4BG2M.js +1 -1
  248. package/dist-versioned/chunks/chunk.ZH6BP5XL.js +3 -3
  249. package/dist-versioned/chunks/chunk.ZJGD23K6.js +3 -3
  250. package/dist-versioned/chunks/chunk.ZWJNBDIV.js +11 -11
  251. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  252. package/dist-versioned/components/accordion/accordion.js +1 -1
  253. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  254. package/dist-versioned/components/accordion-group/accordion-group.js +1 -1
  255. package/dist-versioned/components/animation/animation.d.ts +1 -1
  256. package/dist-versioned/components/audio/audio.d.ts +1 -1
  257. package/dist-versioned/components/audio/audio.js +1 -1
  258. package/dist-versioned/components/badge/badge.d.ts +1 -1
  259. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  260. package/dist-versioned/components/button/button.d.ts +1 -1
  261. package/dist-versioned/components/button/button.js +1 -1
  262. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  263. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  264. package/dist-versioned/components/carousel/carousel.js +1 -1
  265. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  266. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  267. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  268. package/dist-versioned/components/combobox/combobox.d.ts +4 -4
  269. package/dist-versioned/components/combobox/combobox.js +1 -1
  270. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  271. package/dist-versioned/components/dialog/dialog.js +1 -1
  272. package/dist-versioned/components/divider/divider.d.ts +1 -1
  273. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  274. package/dist-versioned/components/drawer/drawer.js +1 -1
  275. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  276. package/dist-versioned/components/dropdown/dropdown.js +1 -1
  277. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  278. package/dist-versioned/components/expandable/expandable.js +1 -1
  279. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  280. package/dist-versioned/components/flipcard/flipcard.js +1 -1
  281. package/dist-versioned/components/header/header.d.ts +1 -1
  282. package/dist-versioned/components/icon/icon.d.ts +1 -1
  283. package/dist-versioned/components/include/include.d.ts +1 -1
  284. package/dist-versioned/components/input/input.d.ts +1 -1
  285. package/dist-versioned/components/input/input.js +1 -1
  286. package/dist-versioned/components/link/link.d.ts +1 -1
  287. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  288. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  289. package/dist-versioned/components/notification/notification.d.ts +1 -1
  290. package/dist-versioned/components/notification/notification.js +1 -1
  291. package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
  292. package/dist-versioned/components/optgroup/optgroup.js +1 -1
  293. package/dist-versioned/components/option/option.d.ts +1 -1
  294. package/dist-versioned/components/popup/popup.d.ts +1 -1
  295. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  296. package/dist-versioned/components/quickfact/quickfact.js +1 -1
  297. package/dist-versioned/components/radio/radio.d.ts +1 -1
  298. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  299. package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
  300. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  301. package/dist-versioned/components/scrollable/scrollable.js +1 -1
  302. package/dist-versioned/components/select/select.d.ts +4 -4
  303. package/dist-versioned/components/select/select.js +1 -1
  304. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  305. package/dist-versioned/components/spinner/spinner.js +1 -1
  306. package/dist-versioned/components/step/step.d.ts +1 -1
  307. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  308. package/dist-versioned/components/switch/switch.d.ts +1 -1
  309. package/dist-versioned/components/tab/tab.d.ts +1 -1
  310. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  311. package/dist-versioned/components/tab-group/tab-group.js +1 -1
  312. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  313. package/dist-versioned/components/tag/tag.d.ts +1 -1
  314. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  315. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  316. package/dist-versioned/components/tooltip/tooltip.js +1 -1
  317. package/dist-versioned/components/video/video.d.ts +1 -1
  318. package/dist-versioned/components/video/video.js +1 -1
  319. package/dist-versioned/custom-elements.json +202 -202
  320. package/dist-versioned/internal/form.js +3 -3
  321. package/dist-versioned/solid-components.css +2 -2
  322. package/dist-versioned/solid-components.js +1 -1
  323. package/dist-versioned/translations/de.js +1 -1
  324. package/dist-versioned/utilities/localize.js +1 -1
  325. package/dist-versioned/vscode.html-custom-data.json +104 -104
  326. package/dist-versioned/web-types.json +205 -205
  327. package/package.json +1 -1
  328. package/cdn/chunks/chunk.O3CT4L2X.js +0 -1
  329. package/cdn-versioned/chunks/chunk.O3CT4L2X.js +0 -1
@@ -1 +1 @@
1
- import{a as Z}from"./chunks/chunk.CEVVDV52.js";import"./chunks/chunk.HAL7R4WT.js";import{a as q}from"./chunks/chunk.F45IDVYA.js";import{a as y}from"./chunks/chunk.JDSUZDP4.js";import{a as z}from"./chunks/chunk.WMV7GLXF.js";import{a as J}from"./chunks/chunk.RCLIOOS5.js";import{a as K}from"./chunks/chunk.2HJF2D4H.js";import{a as U}from"./chunks/chunk.RGJXEMYT.js";import{a as E}from"./chunks/chunk.LET4FMBB.js";import{a as F}from"./chunks/chunk.KLNBBP4R.js";import{a as H}from"./chunks/chunk.HT2MRC4Z.js";import{a as L}from"./chunks/chunk.NQXQB7LN.js";import{a as Q}from"./chunks/chunk.V3YHI2G2.js";import{a as V}from"./chunks/chunk.DDLTKNEO.js";import{a as j}from"./chunks/chunk.ZVVSLR3B.js";import{a as w}from"./chunks/chunk.O3IRROA2.js";import{a as R}from"./chunks/chunk.WUTY672B.js";import{a as M}from"./chunks/chunk.Y4PTSCEB.js";import{a as v}from"./chunks/chunk.5TTHL3M2.js";import{a as O}from"./chunks/chunk.BWMHPT4Y.js";import{a as P}from"./chunks/chunk.CNGIUOE5.js";import{a as N}from"./chunks/chunk.NOJV6ZZF.js";import{a as I}from"./chunks/chunk.43NFQGWL.js";import{a as h}from"./chunks/chunk.I2WEQVU3.js";import{a as A}from"./chunks/chunk.KWNRVZ54.js";import{a as B}from"./chunks/chunk.4QAJB6AU.js";import{a as D}from"./chunks/chunk.KV424MMD.js";import{a as g}from"./chunks/chunk.SDZ6E4CH.js";import{a as k}from"./chunks/chunk.PDIUABFP.js";import{a as C}from"./chunks/chunk.LKO4ZRE7.js";import{a as G}from"./chunks/chunk.VZSFEHBE.js";import{a as m}from"./chunks/chunk.247MZWMU.js";import"./chunks/chunk.5CK64GWQ.js";import{a as S}from"./chunks/chunk.WJ55QSS3.js";import{a as n}from"./chunks/chunk.2BLQ3VDT.js";import{a as i}from"./chunks/chunk.FVXID42E.js";import{a as s}from"./chunks/chunk.E5FCRWHS.js";import"./chunks/chunk.D7TMPF3D.js";import"./chunks/chunk.X2GM34WQ.js";import"./chunks/chunk.W7A3TU2Z.js";import{a as c}from"./chunks/chunk.QWMQJ6TF.js";import{a as b}from"./chunks/chunk.IUC5UQ2V.js";import{a as T}from"./chunks/chunk.NW6W2FSS.js";import"./chunks/chunk.X2O263YD.js";import"./chunks/chunk.64UNKF45.js";import"./chunks/chunk.3L472FD4.js";import{a as d}from"./chunks/chunk.BHWV44KN.js";import{a as f}from"./chunks/chunk.NZT4ORYP.js";import{a as u}from"./chunks/chunk.ZN24IDXT.js";import{a as p}from"./chunks/chunk.DLY5AX2P.js";import"./chunks/chunk.65NSSTJE.js";import"./chunks/chunk.HE2LNCWW.js";import"./chunks/chunk.JCNKLGIS.js";import{a as x}from"./chunks/chunk.5YWPH3S7.js";import"./chunks/chunk.CBQWVOOS.js";import"./chunks/chunk.EUGX6XW6.js";import"./chunks/chunk.MHWW3RZB.js";import{a as l}from"./chunks/chunk.NFQN6UG4.js";import{a}from"./chunks/chunk.XYZ5DKTA.js";import{a as e}from"./chunks/chunk.ONLECFTO.js";import"./chunks/chunk.A3DKF5BY.js";import"./chunks/chunk.5ZILM4TA.js";import{b as o}from"./chunks/chunk.7TRFUW6U.js";import"./chunks/chunk.SPDB3L7V.js";import{d as W,e as X}from"./chunks/chunk.SNS2IHBI.js";import"./chunks/chunk.TWZDCIM2.js";import"./chunks/chunk.MWDEA25W.js";import"./chunks/chunk.K7HF3VBZ.js";import"./chunks/chunk.PYHYYOBE.js";import"./chunks/chunk.EFLL7VXU.js";import"./chunks/chunk.RQYP7MH5.js";import"./chunks/chunk.KLRPP4NQ.js";import{a as t}from"./chunks/chunk.FHU3KJ7Y.js";import"./chunks/chunk.E2DRD2OX.js";import"./chunks/chunk.XR2KNB36.js";import{a as r}from"./chunks/chunk.PGBIGG5I.js";import"./chunks/chunk.6HO6CE4A.js";import{a as Y}from"./chunks/chunk.TNPIUMKG.js";import"./chunks/chunk.LO4SY63J.js";import"./chunks/chunk.O3CT4L2X.js";import"./chunks/chunk.HJGLYEWV.js";import"./chunks/chunk.26V4EXHB.js";import"./chunks/chunk.5AILWWY2.js";import"./chunks/chunk.IRWHG2Q4.js";import"./chunks/chunk.WNP2V63C.js";import"./chunks/chunk.TJOCV4DC.js";export{Y as LocalizeController,e as SdAccordion,a as SdAccordionGroup,t as SdAnimation,r as SdAudio,d as SdBadge,f as SdBrandshape,u as SdButton,x as SdCarousel,l as SdCarouselItem,m as SdCheckbox,S as SdCheckboxGroup,n as SdCombobox,c as SdDialog,b as SdDivider,T as SdDrawer,g as SdDropdown,k as SdExpandable,C as SdFlipcard,G as SdHeader,o as SdIcon,I as SdInclude,h as SdInput,A as SdLink,B as SdMapMarker,D as SdNavigationItem,w as SdNotification,R as SdOptgroup,M as SdOption,s as SdPopup,v as SdQuickfact,N as SdRadio,O as SdRadioButton,P as SdRadioGroup,E as SdScrollable,F as SdSelect,p as SdSpinner,H as SdStep,L as SdStepGroup,Q as SdSwitch,V as SdTab,j as SdTabGroup,q as SdTabPanel,i as SdTag,y as SdTeaser,z as SdTeaserMedia,J as SdTextarea,K as SdTooltip,U as SdVideo,W as registerIconLibrary,Z as setupAutocomplete,X as unregisterIconLibrary};
1
+ import{a as Z}from"./chunks/chunk.CEVVDV52.js";import"./chunks/chunk.HAL7R4WT.js";import{a as q}from"./chunks/chunk.F45IDVYA.js";import{a as y}from"./chunks/chunk.JDSUZDP4.js";import{a as z}from"./chunks/chunk.WMV7GLXF.js";import{a as J}from"./chunks/chunk.RCLIOOS5.js";import{a as K}from"./chunks/chunk.2HJF2D4H.js";import{a as U}from"./chunks/chunk.RGJXEMYT.js";import{a as E}from"./chunks/chunk.LET4FMBB.js";import{a as F}from"./chunks/chunk.KLNBBP4R.js";import{a as H}from"./chunks/chunk.HT2MRC4Z.js";import{a as L}from"./chunks/chunk.NQXQB7LN.js";import{a as Q}from"./chunks/chunk.V3YHI2G2.js";import{a as V}from"./chunks/chunk.DDLTKNEO.js";import{a as j}from"./chunks/chunk.ZVVSLR3B.js";import{a as w}from"./chunks/chunk.O3IRROA2.js";import{a as R}from"./chunks/chunk.WUTY672B.js";import{a as M}from"./chunks/chunk.Y4PTSCEB.js";import{a as v}from"./chunks/chunk.5TTHL3M2.js";import{a as O}from"./chunks/chunk.BWMHPT4Y.js";import{a as P}from"./chunks/chunk.CNGIUOE5.js";import{a as N}from"./chunks/chunk.NOJV6ZZF.js";import{a as I}from"./chunks/chunk.43NFQGWL.js";import{a as h}from"./chunks/chunk.I2WEQVU3.js";import{a as A}from"./chunks/chunk.KWNRVZ54.js";import{a as B}from"./chunks/chunk.4QAJB6AU.js";import{a as D}from"./chunks/chunk.KV424MMD.js";import{a as g}from"./chunks/chunk.SDZ6E4CH.js";import{a as k}from"./chunks/chunk.PDIUABFP.js";import{a as C}from"./chunks/chunk.LKO4ZRE7.js";import{a as G}from"./chunks/chunk.VZSFEHBE.js";import{a as m}from"./chunks/chunk.247MZWMU.js";import"./chunks/chunk.5CK64GWQ.js";import{a as S}from"./chunks/chunk.WJ55QSS3.js";import{a as n}from"./chunks/chunk.2BLQ3VDT.js";import{a as i}from"./chunks/chunk.FVXID42E.js";import{a as s}from"./chunks/chunk.E5FCRWHS.js";import"./chunks/chunk.D7TMPF3D.js";import"./chunks/chunk.X2GM34WQ.js";import"./chunks/chunk.W7A3TU2Z.js";import{a as c}from"./chunks/chunk.QWMQJ6TF.js";import{a as b}from"./chunks/chunk.IUC5UQ2V.js";import{a as T}from"./chunks/chunk.NW6W2FSS.js";import"./chunks/chunk.X2O263YD.js";import"./chunks/chunk.64UNKF45.js";import"./chunks/chunk.3L472FD4.js";import{a as d}from"./chunks/chunk.BHWV44KN.js";import{a as f}from"./chunks/chunk.NZT4ORYP.js";import{a as u}from"./chunks/chunk.ZN24IDXT.js";import{a as p}from"./chunks/chunk.DLY5AX2P.js";import"./chunks/chunk.65NSSTJE.js";import"./chunks/chunk.HE2LNCWW.js";import"./chunks/chunk.JCNKLGIS.js";import{a as x}from"./chunks/chunk.5YWPH3S7.js";import"./chunks/chunk.CBQWVOOS.js";import"./chunks/chunk.EUGX6XW6.js";import"./chunks/chunk.MHWW3RZB.js";import{a as l}from"./chunks/chunk.NFQN6UG4.js";import{a}from"./chunks/chunk.XYZ5DKTA.js";import{a as e}from"./chunks/chunk.ONLECFTO.js";import"./chunks/chunk.A3DKF5BY.js";import"./chunks/chunk.5ZILM4TA.js";import{b as o}from"./chunks/chunk.7TRFUW6U.js";import"./chunks/chunk.SPDB3L7V.js";import{d as W,e as X}from"./chunks/chunk.SNS2IHBI.js";import"./chunks/chunk.TWZDCIM2.js";import"./chunks/chunk.MWDEA25W.js";import"./chunks/chunk.K7HF3VBZ.js";import"./chunks/chunk.PYHYYOBE.js";import"./chunks/chunk.EFLL7VXU.js";import"./chunks/chunk.RQYP7MH5.js";import"./chunks/chunk.KLRPP4NQ.js";import{a as t}from"./chunks/chunk.FHU3KJ7Y.js";import"./chunks/chunk.E2DRD2OX.js";import"./chunks/chunk.XR2KNB36.js";import{a as r}from"./chunks/chunk.PGBIGG5I.js";import"./chunks/chunk.6HO6CE4A.js";import{a as Y}from"./chunks/chunk.TNPIUMKG.js";import"./chunks/chunk.LO4SY63J.js";import"./chunks/chunk.BQKFXDN2.js";import"./chunks/chunk.HJGLYEWV.js";import"./chunks/chunk.26V4EXHB.js";import"./chunks/chunk.5AILWWY2.js";import"./chunks/chunk.IRWHG2Q4.js";import"./chunks/chunk.WNP2V63C.js";import"./chunks/chunk.TJOCV4DC.js";export{Y as LocalizeController,e as SdAccordion,a as SdAccordionGroup,t as SdAnimation,r as SdAudio,d as SdBadge,f as SdBrandshape,u as SdButton,x as SdCarousel,l as SdCarouselItem,m as SdCheckbox,S as SdCheckboxGroup,n as SdCombobox,c as SdDialog,b as SdDivider,T as SdDrawer,g as SdDropdown,k as SdExpandable,C as SdFlipcard,G as SdHeader,o as SdIcon,I as SdInclude,h as SdInput,A as SdLink,B as SdMapMarker,D as SdNavigationItem,w as SdNotification,R as SdOptgroup,M as SdOption,s as SdPopup,v as SdQuickfact,N as SdRadio,O as SdRadioButton,P as SdRadioGroup,E as SdScrollable,F as SdSelect,p as SdSpinner,H as SdStep,L as SdStepGroup,Q as SdSwitch,V as SdTab,j as SdTabGroup,q as SdTabPanel,i as SdTag,y as SdTeaser,z as SdTeaserMedia,J as SdTextarea,K as SdTooltip,U as SdVideo,W as registerIconLibrary,Z as setupAutocomplete,X as unregisterIconLibrary};
@@ -1 +1 @@
1
- import{a}from"../chunks/chunk.O3CT4L2X.js";import"../chunks/chunk.HJGLYEWV.js";import"../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../chunks/chunk.BQKFXDN2.js";import"../chunks/chunk.HJGLYEWV.js";import"../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../chunks/chunk.TNPIUMKG.js";import"../chunks/chunk.LO4SY63J.js";import"../chunks/chunk.O3CT4L2X.js";import"../chunks/chunk.HJGLYEWV.js";import"../chunks/chunk.TJOCV4DC.js";export{a as LocalizeController};
1
+ import{a}from"../chunks/chunk.TNPIUMKG.js";import"../chunks/chunk.LO4SY63J.js";import"../chunks/chunk.BQKFXDN2.js";import"../chunks/chunk.HJGLYEWV.js";import"../chunks/chunk.TJOCV4DC.js";export{a as LocalizeController};
@@ -2446,33 +2446,6 @@
2446
2446
  }
2447
2447
  ]
2448
2448
  },
2449
- {
2450
- "name": "sd-tab-group",
2451
- "description": "Tab groups organize content into a container that shows one section at a time.\n---\n\n\n### **Events:**\n - **sd-tab-show** - Emitted when a tab is shown.\n- **sd-tab-hide** - Emitted when a tab is hidden.\n\n### **Methods:**\n - **show(panel: _string_)** - Shows the specified tab panel.\n- **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n\n### **Slots:**\n - _default_ - Used for grouping tab panels in the tab group. Must be `<sd-tab-panel>` elements.\n- **nav** - Used for grouping tabs in the tab group. Must be `<sd-tab>` elements.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **nav** - The tab group's navigation container where tabs are slotted in.\n- **scroll-container** - The container that wraps the tabs and active-tab-indicator.\n- **tabs** - The container that wraps the tabs.\n- **separation** - The line that separates tabs from panels.\n- **body** - The tab group's body where tab panels are slotted in.\n- **scroll-button--start** - The starting scroll button.\n- **scroll-button--end** - The ending scroll button.\n- **scroll-button__base** - The scroll button's exported `base` part.",
2452
- "attributes": [
2453
- {
2454
- "name": "activation",
2455
- "description": "When set to auto, navigating tabs with the arrow keys will instantly show the corresponding tab panel. When set to\nmanual, the tab will receive focus but will not show until the user presses spacebar or enter.",
2456
- "values": [{ "name": "auto" }, { "name": "manual" }]
2457
- },
2458
- {
2459
- "name": "dir",
2460
- "description": "The element's directionality.",
2461
- "values": [{ "name": "ltr" }, { "name": "rtl" }, { "name": "auto" }]
2462
- },
2463
- {
2464
- "name": "lang",
2465
- "description": "The element's language.",
2466
- "values": []
2467
- }
2468
- ],
2469
- "references": [
2470
- {
2471
- "name": "Documentation",
2472
- "url": "https://solid-design-system.fe.union-investment.de/docs/?path=/docs/components-sd-tab-group--docs"
2473
- }
2474
- ]
2475
- },
2476
2449
  {
2477
2450
  "name": "sd-tab",
2478
2451
  "description": "Tabs are used inside [tab groups](/components/tab-group) to represent and activate [tab panels](/components/tab-panel).\n---\n\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus to the tab.\n- **blur()** - Removes focus from the tab.\n- **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n\n### **Slots:**\n - _default_ - The tab's label.\n- **left** - Optional element (eg. icon) positioned to the left of the label.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **active-tab-indicator** - The active tab indicator.\n- **hover-bottom-border** - The bottom border that appears when the tab is hovered.",
@@ -2515,6 +2488,33 @@
2515
2488
  }
2516
2489
  ]
2517
2490
  },
2491
+ {
2492
+ "name": "sd-tab-group",
2493
+ "description": "Tab groups organize content into a container that shows one section at a time.\n---\n\n\n### **Events:**\n - **sd-tab-show** - Emitted when a tab is shown.\n- **sd-tab-hide** - Emitted when a tab is hidden.\n\n### **Methods:**\n - **show(panel: _string_)** - Shows the specified tab panel.\n- **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n\n### **Slots:**\n - _default_ - Used for grouping tab panels in the tab group. Must be `<sd-tab-panel>` elements.\n- **nav** - Used for grouping tabs in the tab group. Must be `<sd-tab>` elements.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **nav** - The tab group's navigation container where tabs are slotted in.\n- **scroll-container** - The container that wraps the tabs and active-tab-indicator.\n- **tabs** - The container that wraps the tabs.\n- **separation** - The line that separates tabs from panels.\n- **body** - The tab group's body where tab panels are slotted in.\n- **scroll-button--start** - The starting scroll button.\n- **scroll-button--end** - The ending scroll button.\n- **scroll-button__base** - The scroll button's exported `base` part.",
2494
+ "attributes": [
2495
+ {
2496
+ "name": "activation",
2497
+ "description": "When set to auto, navigating tabs with the arrow keys will instantly show the corresponding tab panel. When set to\nmanual, the tab will receive focus but will not show until the user presses spacebar or enter.",
2498
+ "values": [{ "name": "auto" }, { "name": "manual" }]
2499
+ },
2500
+ {
2501
+ "name": "dir",
2502
+ "description": "The element's directionality.",
2503
+ "values": [{ "name": "ltr" }, { "name": "rtl" }, { "name": "auto" }]
2504
+ },
2505
+ {
2506
+ "name": "lang",
2507
+ "description": "The element's language.",
2508
+ "values": []
2509
+ }
2510
+ ],
2511
+ "references": [
2512
+ {
2513
+ "name": "Documentation",
2514
+ "url": "https://solid-design-system.fe.union-investment.de/docs/?path=/docs/components-sd-tab-group--docs"
2515
+ }
2516
+ ]
2517
+ },
2518
2518
  {
2519
2519
  "name": "sd-tab-panel",
2520
2520
  "description": "Tab panels are used inside [tab groups](/components/tab-group) to display tabbed content.\n---\n\n\n### **Methods:**\n - **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n\n### **Slots:**\n - _default_ - The tab panel's content.\n\n### **CSS Properties:**\n - **--padding** - The tab panel's padding. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
@@ -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": "4.4.1",
4
+ "version": "4.4.2",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -5661,82 +5661,6 @@
5661
5661
  ]
5662
5662
  }
5663
5663
  },
5664
- {
5665
- "name": "sd-tab-group",
5666
- "description": "Tab groups organize content into a container that shows one section at a time.\n---\n\n\n### **Events:**\n - **sd-tab-show** - Emitted when a tab is shown.\n- **sd-tab-hide** - Emitted when a tab is hidden.\n\n### **Methods:**\n - **show(panel: _string_)** - Shows the specified tab panel.\n- **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n\n### **Slots:**\n - _default_ - Used for grouping tab panels in the tab group. Must be `<sd-tab-panel>` elements.\n- **nav** - Used for grouping tabs in the tab group. Must be `<sd-tab>` elements.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **nav** - The tab group's navigation container where tabs are slotted in.\n- **scroll-container** - The container that wraps the tabs and active-tab-indicator.\n- **tabs** - The container that wraps the tabs.\n- **separation** - The line that separates tabs from panels.\n- **body** - The tab group's body where tab panels are slotted in.\n- **scroll-button--start** - The starting scroll button.\n- **scroll-button--end** - The ending scroll button.\n- **scroll-button__base** - The scroll button's exported `base` part.",
5667
- "doc-url": "",
5668
- "attributes": [
5669
- {
5670
- "name": "activation",
5671
- "description": "When set to auto, navigating tabs with the arrow keys will instantly show the corresponding tab panel. When set to\nmanual, the tab will receive focus but will not show until the user presses spacebar or enter.",
5672
- "value": { "type": "'auto' | 'manual'", "default": "'auto'" }
5673
- },
5674
- {
5675
- "name": "dir",
5676
- "description": "The element's directionality.",
5677
- "value": { "type": "'ltr' | 'rtl' | 'auto'" }
5678
- },
5679
- {
5680
- "name": "lang",
5681
- "description": "The element's language.",
5682
- "value": { "type": "string" }
5683
- }
5684
- ],
5685
- "slots": [
5686
- {
5687
- "name": "",
5688
- "description": "Used for grouping tab panels in the tab group. Must be `<sd-tab-panel>` elements."
5689
- },
5690
- {
5691
- "name": "nav",
5692
- "description": "Used for grouping tabs in the tab group. Must be `<sd-tab>` elements."
5693
- }
5694
- ],
5695
- "events": [
5696
- {
5697
- "name": "sd-tab-show",
5698
- "type": "{ name: String }",
5699
- "description": "Emitted when a tab is shown."
5700
- },
5701
- {
5702
- "name": "sd-tab-hide",
5703
- "type": "{ name: String }",
5704
- "description": "Emitted when a tab is hidden."
5705
- }
5706
- ],
5707
- "js": {
5708
- "properties": [
5709
- { "name": "localize" },
5710
- {
5711
- "name": "activation",
5712
- "description": "When set to auto, navigating tabs with the arrow keys will instantly show the corresponding tab panel. When set to\nmanual, the tab will receive focus but will not show until the user presses spacebar or enter.",
5713
- "type": "'auto' | 'manual'"
5714
- },
5715
- {
5716
- "name": "dir",
5717
- "description": "The element's directionality.",
5718
- "type": "'ltr' | 'rtl' | 'auto'"
5719
- },
5720
- {
5721
- "name": "lang",
5722
- "description": "The element's language.",
5723
- "type": "string"
5724
- }
5725
- ],
5726
- "events": [
5727
- {
5728
- "name": "sd-tab-show",
5729
- "type": "{ name: String }",
5730
- "description": "Emitted when a tab is shown."
5731
- },
5732
- {
5733
- "name": "sd-tab-hide",
5734
- "type": "{ name: String }",
5735
- "description": "Emitted when a tab is hidden."
5736
- }
5737
- ]
5738
- }
5739
- },
5740
5664
  {
5741
5665
  "name": "sd-tab",
5742
5666
  "description": "Tabs are used inside [tab groups](/components/tab-group) to represent and activate [tab panels](/components/tab-panel).\n---\n\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus to the tab.\n- **blur()** - Removes focus from the tab.\n- **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n\n### **Slots:**\n - _default_ - The tab's label.\n- **left** - Optional element (eg. icon) positioned to the left of the label.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **active-tab-indicator** - The active tab indicator.\n- **hover-bottom-border** - The bottom border that appears when the tab is hovered.",
@@ -5820,6 +5744,82 @@
5820
5744
  "events": []
5821
5745
  }
5822
5746
  },
5747
+ {
5748
+ "name": "sd-tab-group",
5749
+ "description": "Tab groups organize content into a container that shows one section at a time.\n---\n\n\n### **Events:**\n - **sd-tab-show** - Emitted when a tab is shown.\n- **sd-tab-hide** - Emitted when a tab is hidden.\n\n### **Methods:**\n - **show(panel: _string_)** - Shows the specified tab panel.\n- **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n\n### **Slots:**\n - _default_ - Used for grouping tab panels in the tab group. Must be `<sd-tab-panel>` elements.\n- **nav** - Used for grouping tabs in the tab group. Must be `<sd-tab>` elements.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **nav** - The tab group's navigation container where tabs are slotted in.\n- **scroll-container** - The container that wraps the tabs and active-tab-indicator.\n- **tabs** - The container that wraps the tabs.\n- **separation** - The line that separates tabs from panels.\n- **body** - The tab group's body where tab panels are slotted in.\n- **scroll-button--start** - The starting scroll button.\n- **scroll-button--end** - The ending scroll button.\n- **scroll-button__base** - The scroll button's exported `base` part.",
5750
+ "doc-url": "",
5751
+ "attributes": [
5752
+ {
5753
+ "name": "activation",
5754
+ "description": "When set to auto, navigating tabs with the arrow keys will instantly show the corresponding tab panel. When set to\nmanual, the tab will receive focus but will not show until the user presses spacebar or enter.",
5755
+ "value": { "type": "'auto' | 'manual'", "default": "'auto'" }
5756
+ },
5757
+ {
5758
+ "name": "dir",
5759
+ "description": "The element's directionality.",
5760
+ "value": { "type": "'ltr' | 'rtl' | 'auto'" }
5761
+ },
5762
+ {
5763
+ "name": "lang",
5764
+ "description": "The element's language.",
5765
+ "value": { "type": "string" }
5766
+ }
5767
+ ],
5768
+ "slots": [
5769
+ {
5770
+ "name": "",
5771
+ "description": "Used for grouping tab panels in the tab group. Must be `<sd-tab-panel>` elements."
5772
+ },
5773
+ {
5774
+ "name": "nav",
5775
+ "description": "Used for grouping tabs in the tab group. Must be `<sd-tab>` elements."
5776
+ }
5777
+ ],
5778
+ "events": [
5779
+ {
5780
+ "name": "sd-tab-show",
5781
+ "type": "{ name: String }",
5782
+ "description": "Emitted when a tab is shown."
5783
+ },
5784
+ {
5785
+ "name": "sd-tab-hide",
5786
+ "type": "{ name: String }",
5787
+ "description": "Emitted when a tab is hidden."
5788
+ }
5789
+ ],
5790
+ "js": {
5791
+ "properties": [
5792
+ { "name": "localize" },
5793
+ {
5794
+ "name": "activation",
5795
+ "description": "When set to auto, navigating tabs with the arrow keys will instantly show the corresponding tab panel. When set to\nmanual, the tab will receive focus but will not show until the user presses spacebar or enter.",
5796
+ "type": "'auto' | 'manual'"
5797
+ },
5798
+ {
5799
+ "name": "dir",
5800
+ "description": "The element's directionality.",
5801
+ "type": "'ltr' | 'rtl' | 'auto'"
5802
+ },
5803
+ {
5804
+ "name": "lang",
5805
+ "description": "The element's language.",
5806
+ "type": "string"
5807
+ }
5808
+ ],
5809
+ "events": [
5810
+ {
5811
+ "name": "sd-tab-show",
5812
+ "type": "{ name: String }",
5813
+ "description": "Emitted when a tab is shown."
5814
+ },
5815
+ {
5816
+ "name": "sd-tab-hide",
5817
+ "type": "{ name: String }",
5818
+ "description": "Emitted when a tab is hidden."
5819
+ }
5820
+ ]
5821
+ }
5822
+ },
5823
5823
  {
5824
5824
  "name": "sd-tab-panel",
5825
5825
  "description": "Tab panels are used inside [tab groups](/components/tab-group) to display tabbed content.\n---\n\n\n### **Methods:**\n - **emit(name: _string_, options: _CustomEventInit_)** - Emits a custom event with more convenient defaults.\n\n### **Slots:**\n - _default_ - The tab panel's content.\n\n### **CSS Properties:**\n - **--padding** - The tab panel's padding. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
@@ -32,7 +32,7 @@ let SdMenu = class SdMenu extends SolidElement {
32
32
  if (item.type === 'checkbox') {
33
33
  item.checked = !item.checked;
34
34
  }
35
- this.emit('sd-4-4-1-select', { detail: { item } });
35
+ this.emit('sd-4-4-2-select', { detail: { item } });
36
36
  }
37
37
  handleKeyDown(event) {
38
38
  if (event.key === 'Enter') {
@@ -11,7 +11,7 @@ export default css `
11
11
  overscroll-behavior: none;
12
12
  }
13
13
 
14
- ::slotted(sd-4-4-1-divider) {
14
+ ::slotted(sd-4-4-2-divider) {
15
15
  --spacing: var(--sd-spacing-x-small);
16
16
  }
17
17
  `;
@@ -74,7 +74,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
74
74
  })}
75
75
  >
76
76
  <span part="checked-icon" class="menu-item__check">
77
- <sd-4-4-1-icon name="check" library="system" aria-hidden="true"></sd-4-4-1-icon>
77
+ <sd-4-4-2-icon name="check" library="system" aria-hidden="true"></sd-4-4-2-icon>
78
78
  </span>
79
79
 
80
80
  <slot name="prefix" part="prefix" class="menu-item__prefix"></slot>
@@ -84,7 +84,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
84
84
  <slot name="suffix" part="suffix" class="menu-item__suffix"></slot>
85
85
 
86
86
  <span class="menu-item__chevron">
87
- <sd-4-4-1-icon name="chevron-right" library="system" aria-hidden="true"></sd-4-4-1-icon>
87
+ <sd-4-4-2-icon name="chevron-right" library="system" aria-hidden="true"></sd-4-4-2-icon>
88
88
  </span>
89
89
  </div>
90
90
  `;
@@ -1 +1 @@
1
- import{b as d}from"./chunk.5CK64GWQ.js";import{a as b}from"./chunk.D7TMPF3D.js";import{b as m}from"./chunk.65NSSTJE.js";import{a as p}from"./chunk.HE2LNCWW.js";import{a as n}from"./chunk.E2DRD2OX.js";import{a as s}from"./chunk.26V4EXHB.js";import{a as u,b as l,c,d as a,h as o}from"./chunk.5AILWWY2.js";import{b as h,e as r}from"./chunk.IRWHG2Q4.js";import{e as i}from"./chunk.TJOCV4DC.js";var e=class extends o{constructor(){super(...arguments);this.formControlController=new m(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,f)=>t.checked=f});this.title="";this.name="";this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1;this.indeterminate=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.showInvalidStyle=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(t){if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}this.checked=!this.checked,this.indeterminate=!1,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){let t=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",t?"true":"false"),this.formControlController.setValidity(t)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.disabled&&this.indeterminate?"disabledIndeterminate":this.disabled&&this.checked?"disabledChecked":this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":this.showInvalidStyle&&this.indeterminate?"invalidIndeterminate":this.showInvalidStyle?"invalid":this.checked||this.indeterminate?"filled":"default";return r`<label part="base" class="${s("sd-4-4-1-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${p(this.value)}" .indeterminate="${d(this.indeterminate)}" .checked="${d(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate?"mixed":this.checked}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"} ${this.indeterminate?" control--indeterminate":""}" class="${s("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4",this.visuallyDisabled?"":"peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary",{sm:"mt-[2px]",md:"mt-[3px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400",invalid:"border-error group-hover:bg-neutral-200",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[t])}">${this.checked?r`<sd-4-4-1-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-4-4-1-icon>`:""} ${!this.checked&&this.indeterminate?r`<sd-4-4-1-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-4-4-1-icon>`:""} </span><span part="label" id="label" class="${s("select-none inline-block ml-2",this.disabled||this.visuallyDisabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};e.styles=[...o.styles,h`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-width:0}:host([required]) #label:after{content:" *"}`],i([a('input[type="checkbox"]')],e.prototype,"input",2),i([a("#invalid-message")],e.prototype,"invalidMessage",2),i([l()],e.prototype,"title",2),i([l()],e.prototype,"name",2),i([l()],e.prototype,"value",2),i([l({reflect:!0})],e.prototype,"size",2),i([l({type:Boolean,reflect:!0})],e.prototype,"disabled",2),i([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],e.prototype,"visuallyDisabled",2),i([l({type:Boolean,reflect:!0})],e.prototype,"checked",2),i([l({type:Boolean,reflect:!0})],e.prototype,"indeterminate",2),i([b("checked")],e.prototype,"defaultChecked",2),i([l({reflect:!0})],e.prototype,"form",2),i([l({type:Boolean,reflect:!0})],e.prototype,"required",2),i([c()],e.prototype,"showInvalidStyle",2),i([n(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),i([n(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],e.prototype,"handleStateChange",1),e=i([u("sd-4-4-1-checkbox")],e);export{e as a};
1
+ import{b as d}from"./chunk.5CK64GWQ.js";import{a as b}from"./chunk.D7TMPF3D.js";import{b as m}from"./chunk.65NSSTJE.js";import{a as p}from"./chunk.HE2LNCWW.js";import{a as n}from"./chunk.E2DRD2OX.js";import{a as s}from"./chunk.26V4EXHB.js";import{a as u,b as l,c,d as a,h as o}from"./chunk.5AILWWY2.js";import{b as h,e as r}from"./chunk.IRWHG2Q4.js";import{e as i}from"./chunk.TJOCV4DC.js";var e=class extends o{constructor(){super(...arguments);this.formControlController=new m(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,f)=>t.checked=f});this.title="";this.name="";this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1;this.indeterminate=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.showInvalidStyle=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(t){if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}this.checked=!this.checked,this.indeterminate=!1,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){let t=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",t?"true":"false"),this.formControlController.setValidity(t)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.disabled&&this.indeterminate?"disabledIndeterminate":this.disabled&&this.checked?"disabledChecked":this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":this.showInvalidStyle&&this.indeterminate?"invalidIndeterminate":this.showInvalidStyle?"invalid":this.checked||this.indeterminate?"filled":"default";return r`<label part="base" class="${s("sd-4-4-2-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${p(this.value)}" .indeterminate="${d(this.indeterminate)}" .checked="${d(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate?"mixed":this.checked}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"} ${this.indeterminate?" control--indeterminate":""}" class="${s("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4",this.visuallyDisabled?"":"peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary",{sm:"mt-[2px]",md:"mt-[3px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400",invalid:"border-error group-hover:bg-neutral-200",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[t])}">${this.checked?r`<sd-4-4-2-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-4-4-2-icon>`:""} ${!this.checked&&this.indeterminate?r`<sd-4-4-2-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-4-4-2-icon>`:""} </span><span part="label" id="label" class="${s("select-none inline-block ml-2",this.disabled||this.visuallyDisabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};e.styles=[...o.styles,h`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-width:0}:host([required]) #label:after{content:" *"}`],i([a('input[type="checkbox"]')],e.prototype,"input",2),i([a("#invalid-message")],e.prototype,"invalidMessage",2),i([l()],e.prototype,"title",2),i([l()],e.prototype,"name",2),i([l()],e.prototype,"value",2),i([l({reflect:!0})],e.prototype,"size",2),i([l({type:Boolean,reflect:!0})],e.prototype,"disabled",2),i([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],e.prototype,"visuallyDisabled",2),i([l({type:Boolean,reflect:!0})],e.prototype,"checked",2),i([l({type:Boolean,reflect:!0})],e.prototype,"indeterminate",2),i([b("checked")],e.prototype,"defaultChecked",2),i([l({reflect:!0})],e.prototype,"form",2),i([l({type:Boolean,reflect:!0})],e.prototype,"required",2),i([c()],e.prototype,"showInvalidStyle",2),i([n(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),i([n(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],e.prototype,"handleStateChange",1),e=i([u("sd-4-4-2-checkbox")],e);export{e as a};
@@ -1,11 +1,11 @@
1
- import{a as U}from"./chunk.FVXID42E.js";import{a as K}from"./chunk.E5FCRWHS.js";import{a as A}from"./chunk.D7TMPF3D.js";import{a as P}from"./chunk.X2GM34WQ.js";import{a as L,d as H,e as R,f as w}from"./chunk.W7A3TU2Z.js";import{c as B}from"./chunk.3L472FD4.js";import{b as z}from"./chunk.65NSSTJE.js";import{a as C,c as E}from"./chunk.A3DKF5BY.js";import{a as $,b as k}from"./chunk.7TRFUW6U.js";import{a as S,d as T}from"./chunk.RQYP7MH5.js";import{a as x}from"./chunk.KLRPP4NQ.js";import{a as f}from"./chunk.E2DRD2OX.js";import{a as M}from"./chunk.6HO6CE4A.js";import{a as F}from"./chunk.TNPIUMKG.js";import{a as r}from"./chunk.26V4EXHB.js";import{a as V,b as o,c as h,d as c,h as I}from"./chunk.5AILWWY2.js";import{b as D,e as p}from"./chunk.IRWHG2Q4.js";import{e as a}from"./chunk.TJOCV4DC.js";var s=class extends I{constructor(){super(...arguments);this.formControlController=new z(this,{assumeInteractionOn:["sd-blur","sd-4-4-1-input"]});this.hasSlotController=new M(this,"help-text","label");this.localize=new F(this);this.hasHover=!1;this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.name="";this.value="";this.defaultValue="";this.size="lg";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.clearable=!1;this.open=!1;this.hoist=!1;this.label="";this.placement="bottom";this.helpText="";this.form="";this.required=!1;this.currentPlacement=this.placement;this.getOption=P;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let i=w(t.value),l=w(t.getTextLabel()),n=w(e);return i.includes(n)||l.includes(n)};this.getTag=t=>p`<sd-4-4-1-tag ?disabled="${this.disabled}" part="tag" exportparts="
1
+ import{a as U}from"./chunk.FVXID42E.js";import{a as K}from"./chunk.E5FCRWHS.js";import{a as A}from"./chunk.D7TMPF3D.js";import{a as P}from"./chunk.X2GM34WQ.js";import{a as L,d as H,e as R,f as w}from"./chunk.W7A3TU2Z.js";import{c as B}from"./chunk.3L472FD4.js";import{b as z}from"./chunk.65NSSTJE.js";import{a as C,c as E}from"./chunk.A3DKF5BY.js";import{a as $,b as k}from"./chunk.7TRFUW6U.js";import{a as S,d as T}from"./chunk.RQYP7MH5.js";import{a as x}from"./chunk.KLRPP4NQ.js";import{a as f}from"./chunk.E2DRD2OX.js";import{a as M}from"./chunk.6HO6CE4A.js";import{a as F}from"./chunk.TNPIUMKG.js";import{a as r}from"./chunk.26V4EXHB.js";import{a as V,b as o,c as h,d as c,h as I}from"./chunk.5AILWWY2.js";import{b as D,e as p}from"./chunk.IRWHG2Q4.js";import{e as a}from"./chunk.TJOCV4DC.js";var s=class extends I{constructor(){super(...arguments);this.formControlController=new z(this,{assumeInteractionOn:["sd-blur","sd-4-4-2-input"]});this.hasSlotController=new M(this,"help-text","label");this.localize=new F(this);this.hasHover=!1;this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.name="";this.value="";this.defaultValue="";this.size="lg";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.clearable=!1;this.open=!1;this.hoist=!1;this.label="";this.placement="bottom";this.helpText="";this.form="";this.required=!1;this.currentPlacement=this.placement;this.getOption=P;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let i=w(t.value),l=w(t.getTextLabel()),n=w(e);return i.includes(n)||l.includes(n)};this.getTag=t=>p`<sd-4-4-2-tag ?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-4-4-1-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}if(t.target.closest(".combobox__clear")===null){if(t.key==="Escape"&&(this.open?(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})):this.displayInputValue=""),t.key==="Backspace"&&this.multiple&&this.displayInput.value===""){this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0}));return}if(t.key==="Enter"){let l=this.getCurrentOption(),n=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;if(!this.open&&!n){setTimeout(()=>{t.defaultPrevented||this.formControlController.submit()});return}if(!this.open||l!=null&&l.disabled)return;if(l&&!l.disabled){let d=this.value;this.multiple?(this.toggleOptionSelection(l),this.lastOption=l,this.setOrderedSelectedOptions(l),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(l),this.setSelectedOptions(l)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==d&&(this.emit("sd-input"),this.emit("sd-change"))})}this.displayInput.focus({preventScroll:!0}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0}));return}["ArrowUp","ArrowDown"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.open||this.show(),this.selectNextOption(t.key==="ArrowDown")),["Home","End"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),t.key==="Home"?this.displayInput.setSelectionRange(0,0):t.key==="End"&&this.displayInput.setSelectionRange(this.displayInput.value.length,this.displayInput.value.length))}};this.handleDocumentMouseDown=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()}}connectedCallback(){super.connectedCallback(),this.open=!1}firstUpdated(){if(!this.multiple){let t=this.findOptionByValue(this.getSlottedOptions(),this.value);this.selectedTextLabel=(t==null?void 0:t.getTextLabel())||""}this.formControlController.updateValidity()}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}get options(){let t=e=>{let i=this.displayInput.value,l=this.getOption(e,i);return p`${typeof l=="string"?$(l):l}`};return this.filteredOptions.map(e=>e.tagName.toLowerCase()==="sd-4-4-1-optgroup"?(Array.from(e.children).forEach(i=>{i.tagName.toLowerCase()==="sd-4-4-1-option"&&t(i)}),e):t(e))}get tags(){return this.selectedOptions.length<=this.maxOptionsVisible?this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){let i=this.getTag(t,e);return p`<div @sd-remove="${l=>this.handleTagRemove(l,t)}">${typeof i=="string"?$(i):i}</div>`}return[p``]}):[p`<sd-4-4-1-tag ?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-4-4-2-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}if(t.target.closest(".combobox__clear")===null){if(t.key==="Escape"&&(this.open?(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})):this.displayInputValue=""),t.key==="Backspace"&&this.multiple&&this.displayInput.value===""){this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0}));return}if(t.key==="Enter"){let l=this.getCurrentOption(),n=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;if(!this.open&&!n){setTimeout(()=>{t.defaultPrevented||this.formControlController.submit()});return}if(!this.open||l!=null&&l.disabled)return;if(l&&!l.disabled){let d=this.value;this.multiple?(this.toggleOptionSelection(l),this.lastOption=l,this.setOrderedSelectedOptions(l),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(l),this.setSelectedOptions(l)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==d&&(this.emit("sd-input"),this.emit("sd-change"))})}this.displayInput.focus({preventScroll:!0}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0}));return}["ArrowUp","ArrowDown"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.open||this.show(),this.selectNextOption(t.key==="ArrowDown")),["Home","End"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),t.key==="Home"?this.displayInput.setSelectionRange(0,0):t.key==="End"&&this.displayInput.setSelectionRange(this.displayInput.value.length,this.displayInput.value.length))}};this.handleDocumentMouseDown=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()}}connectedCallback(){super.connectedCallback(),this.open=!1}firstUpdated(){if(!this.multiple){let t=this.findOptionByValue(this.getSlottedOptions(),this.value);this.selectedTextLabel=(t==null?void 0:t.getTextLabel())||""}this.formControlController.updateValidity()}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}get options(){let t=e=>{let i=this.displayInput.value,l=this.getOption(e,i);return p`${typeof l=="string"?$(l):l}`};return this.filteredOptions.map(e=>e.tagName.toLowerCase()==="sd-4-4-2-optgroup"?(Array.from(e.children).forEach(i=>{i.tagName.toLowerCase()==="sd-4-4-2-option"&&t(i)}),e):t(e))}get tags(){return this.selectedOptions.length<=this.maxOptionsVisible?this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){let i=this.getTag(t,e);return p`<div @sd-remove="${l=>this.handleTagRemove(l,t)}">${typeof i=="string"?$(i):i}</div>`}return[p``]}):[p`<sd-4-4-2-tag ?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-4-4-1-tag>`]}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().addEventListener("focusin",this.handleDocumentFocusIn)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().removeEventListener("focusin",this.handleDocumentFocusIn)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){t.key==="Backspace"&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleTagMaxOptionsKeyDown(t){t.key==="Backspace"&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleLabelClick(){this.visuallyDisabled||this.displayInput.focus()}handleTagRemove(t,e){t.stopPropagation(),e||this.clearCombobox(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.setOrderedSelectedOptions(e),this.updateComplete.then(()=>{this.selectionChanged(),this.emit("sd-input"),this.emit("sd-change")}))}handleComboboxMouseDown(t){if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}let i=t.composedPath().some(n=>n instanceof HTMLSlotElement&&n.name==="removable-indicator");if(this.disabled||i)return;(this.open?this.hide():this.show()).then(()=>{setTimeout(()=>this.displayInput.focus({preventScroll:!0}))})}handleComboboxKeyDown(t){t.key!=="Tab"&&this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearCombobox()}handleNoResultsClick(t){t.preventDefault(),this.hide()}clearCombobox(){this.value!==""&&(this.value="",this.displayInputValue="",this.selectedTextLabel="",this.lastOption=void 0,this.selectedOptions=[],this.getSlottedOptions().forEach(t=>{t.selected=!1}),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")}))}preventLoosingFocus(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let i=t.target.closest("sd-4-4-1-option"),l=this.value;i&&!i.disabled&&(this.multiple?(this.toggleOptionSelection(i),this.lastOption=i,this.setOrderedSelectedOptions(i),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(i),this.setSelectedOptions(i)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==l&&(this.emit("sd-input"),this.emit("sd-change"))}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}selectNextOption(t){let e=this.getAllFilteredOptions();if(e.length===0)return;let i=this.getCurrentOption(),l=e.indexOf(i),n=Math.max(0,l);if(t){let d=l+1;n=d>e.length-1?0:d}else{let d=l-1;n=d<0?e.length-1:d}this.setCurrentOption(e[n]),B(this.getCurrentOption(),this.listbox,"vertical","auto")}getAllFilteredOptions(){return[...this.filteredWrapper.querySelectorAll("sd-4-4-1-option")]}getCurrentOption(){return this.getAllFilteredOptions().find(t=>t.current)}setCurrentOption(t){let e=this.getAllFilteredOptions();this.displayInput.removeAttribute("aria-activedescendant"),e.forEach(i=>{i.current=!1,i.setAttribute("aria-selected","false")}),t&&(t.current=!0,t.setAttribute("aria-selected","true"),this.displayInput.setAttribute("aria-activedescendant",t.id))}toggleOptionSelection(t,e){let l=this.getSlottedOptions().find(n=>n.value&&t.value?n.value===t.value:n.getTextLabel()===t.getTextLabel());l&&(l.selected=e!=null?e:!l.selected)}findOptionByValue(t,e){if(e)return Array.isArray(e)?t.find(i=>e.includes(i.value)):t.find(i=>i.value===e)}selectedOptionsAndValueSynced(){var t;return!this.value&&this.selectedOptions.length===0?!0:Array.isArray(this.value)?this.value.length===this.selectedOptions.length:this.value===((t=this.selectedOptions[0])==null?void 0:t.value)}isOptionSelected(t){return t.value?this.value.includes(t.value):this.value.includes(t.getTextLabel())}syncSelectedOptionsAndValue(){return this.selectedOptionsAndValueSynced()?void 0:(this.getSlottedOptions().forEach(e=>{e.selected=!1}),this.selectedOptions=this.getSlottedOptions().filter(e=>this.isOptionSelected(e)),this.selectedOptions.forEach(e=>{e&&(e.selected=!0)}),Promise.resolve())}compareOptions(t,e){return t.value&&e.value?t.value===e.value:t.getTextLabel()===e.getTextLabel()}setSelectedOptions(t){this.getSlottedOptions().forEach(i=>{i.selected=this.compareOptions(i,t)}),this.selectionChanged()}setOrderedSelectedOptions(t){let e=this.getSlottedOptions().find(i=>this.compareOptions(i,t));this.multiple?this.selectedOptions.length>0&&e&&this.selectedOptions.find(i=>this.compareOptions(i,e))?this.selectedOptions=this.selectedOptions.filter(i=>!this.compareOptions(i,e)):this.selectedOptions=[...this.selectedOptions,e]:this.selectedOptions=[e]}selectionChanged(){var e,i,l;let t=this.selectedOptions.some(n=>n?this.isOptionSelected(n):!1);this.multiple?(!t&&this.selectedOptions.length>0?this.value=[...this.value,...this.selectedOptions.map(n=>n.value||n.getTextLabel())]:this.value=this.selectedOptions.map(n=>(n==null?void 0:n.value)||(n==null?void 0:n.getTextLabel())||""),this.displayInputValue=""):(this.value=((e=this.selectedOptions[0])==null?void 0:e.value)||((i=this.selectedOptions[0])==null?void 0:i.getTextLabel())||"",this.selectedTextLabel=((l=this.selectedOptions[0])==null?void 0:l.getTextLabel())||"",this.displayInputValue=""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}createComboboxOptionsFromQuery(t){let e=[];this.filteredOptions=this.getSlottedOptions().filter(i=>this.filter(i,t)||t==="").map(i=>{var y,b,m;let l=i.cloneNode(!0);if(l.current=l.value===((y=this.lastOption)==null?void 0:y.value),l.selected=i.selected,l.checkbox=i.checkbox,l.size=i.size,!(((b=i.parentElement)==null?void 0:b.tagName.toLowerCase())==="sd-4-4-1-optgroup"))return l;let d=i.parentElement,v=(m=d.querySelector('[slot="label"]'))==null?void 0:m.cloneNode(!0),u=e.find(O=>O.id===d.id);if(u){u==null||u.appendChild(l),v&&(u==null||u.appendChild(v));return}let g=d.cloneNode();return g.appendChild(l),v&&g.appendChild(v),e.push(g),g}).filter(Boolean)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleFilterChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}handleUseTagsChange(){let t=this.getAllFilteredOptions();customElements.get("sd-4-4-1-option")&&t.forEach(e=>{e.checkbox=this.multiple})}applySizeToOptions(){this.getSlottedOptions().forEach(t=>{t.size=this.size})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),(this.disabled||this.visuallyDisabled)&&(this.open=!1,this.handleOpenChange())}handleValueChange(){this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInput.value):this.createComboboxOptionsFromQuery("")}handleDisplayInputValueChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}async handleOpenChange(){if(this.open&&(!this.disabled||!this.visuallyDisabled)){this.emit("sd-show"),this.addOpenListeners(),await T(this),this.listbox.hidden=!1,this.popup.active=!0;let{keyframes:i,options:l}=E(this,"combobox.show",{dir:this.localize.dir()});await S(this.popup.popup,i,l),this.emit("sd-after-show"),this.filteredOptions.length===0&&this.emit("sd-error");return}this.setCurrentOption(null),this.displayInput.removeAttribute("aria-activedescendant"),this.emit("sd-hide"),this.removeOpenListeners(),await T(this);let{keyframes:t,options:e}=E(this,"combobox.hide",{dir:this.localize.dir()});await S(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,Promise.race([x(this,"sd-after-show"),x(this,"sd-error")])}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.displayInputValue="",this.open=!1,x(this,"sd-after-hide")}checkValidity(){return this.valueInput.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.displayInput.focus(t)}blur(){this.displayInput.blur()}async handleInput(){let t=this.displayInput.value;this.displayInputValue=t,await this.updateComplete,this.open=this.filteredWrapper.children.length>0,this.formControlController.updateValidity(),this.emit("sd-input")}handleChange(){(!this.selectedOptions||!this.multiple)&&(this.selectedTextLabel=this.displayInput.value,this.updateComplete.then(()=>{this.formControlController.updateValidity()}),this.emit("sd-change"))}getSlottedOptions(){return H(L(this.defaultSlot)).flat()}getSlottedOptGroups(){return R(L(this.defaultSlot))}async handleDefaultSlotChange(){if(!customElements.get("sd-4-4-1-option")){customElements.whenDefined("sd-4-4-1-option").then(()=>this.handleDefaultSlotChange());return}let t=this.getSlottedOptions(),e=this.getSlottedOptGroups();this.applySizeToOptions();let i=this.findOptionByValue(t,this.value);this.selectedTextLabel=(i==null?void 0:i.getTextLabel())||"",t.forEach((l,n)=>{this.multiple&&(l.checkbox=!0),l.id=l.id||`sd-4-4-1-combobox-option-${n}`}),e.forEach((l,n)=>{l.id=l.id||`sd-4-4-1-combobox-optgroup-${n}`}),await this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInputValue):this.createComboboxOptionsFromQuery("")}render(){let t={left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")},e=this.hasSlotController.test("label"),i=this.hasSlotController.test("help-text"),l=this.label?!0:!!e,n=this.helpText?!0:!!i,d=this.clearable&&!this.disabled&&!this.visuallyDisabled,v=this.disabled?"disabled":this.visuallyDisabled?"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",u=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",g=this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",y={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],b={sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size],m={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return p`<div part="form-control" class="${r("relative text-left",u,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><label id="label" part="form-control-label" class="${l&&"inline-block mb-2"}" aria-hidden="${!l}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="relative w-full bg-white text-black"><div part="border" class="${r("absolute top-0 w-full h-full pointer-events-none border rounded-default",this.hasHover&&!this.disabled&&!this.visuallyDisabled&&"bg-neutral-200",{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"}[v],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-4-4-1-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${r("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift 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-4-4-2-tag>`]}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().addEventListener("focusin",this.handleDocumentFocusIn)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().removeEventListener("focusin",this.handleDocumentFocusIn)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){t.key==="Backspace"&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleTagMaxOptionsKeyDown(t){t.key==="Backspace"&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleLabelClick(){this.visuallyDisabled||this.displayInput.focus()}handleTagRemove(t,e){t.stopPropagation(),e||this.clearCombobox(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.setOrderedSelectedOptions(e),this.updateComplete.then(()=>{this.selectionChanged(),this.emit("sd-input"),this.emit("sd-change")}))}handleComboboxMouseDown(t){if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}let i=t.composedPath().some(n=>n instanceof HTMLSlotElement&&n.name==="removable-indicator");if(this.disabled||i)return;(this.open?this.hide():this.show()).then(()=>{setTimeout(()=>this.displayInput.focus({preventScroll:!0}))})}handleComboboxKeyDown(t){t.key!=="Tab"&&this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearCombobox()}handleNoResultsClick(t){t.preventDefault(),this.hide()}clearCombobox(){this.value!==""&&(this.value="",this.displayInputValue="",this.selectedTextLabel="",this.lastOption=void 0,this.selectedOptions=[],this.getSlottedOptions().forEach(t=>{t.selected=!1}),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")}))}preventLoosingFocus(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let i=t.target.closest("sd-4-4-2-option"),l=this.value;i&&!i.disabled&&(this.multiple?(this.toggleOptionSelection(i),this.lastOption=i,this.setOrderedSelectedOptions(i),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(i),this.setSelectedOptions(i)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==l&&(this.emit("sd-input"),this.emit("sd-change"))}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}selectNextOption(t){let e=this.getAllFilteredOptions();if(e.length===0)return;let i=this.getCurrentOption(),l=e.indexOf(i),n=Math.max(0,l);if(t){let d=l+1;n=d>e.length-1?0:d}else{let d=l-1;n=d<0?e.length-1:d}this.setCurrentOption(e[n]),B(this.getCurrentOption(),this.listbox,"vertical","auto")}getAllFilteredOptions(){return[...this.filteredWrapper.querySelectorAll("sd-4-4-2-option")]}getCurrentOption(){return this.getAllFilteredOptions().find(t=>t.current)}setCurrentOption(t){let e=this.getAllFilteredOptions();this.displayInput.removeAttribute("aria-activedescendant"),e.forEach(i=>{i.current=!1,i.setAttribute("aria-selected","false")}),t&&(t.current=!0,t.setAttribute("aria-selected","true"),this.displayInput.setAttribute("aria-activedescendant",t.id))}toggleOptionSelection(t,e){let l=this.getSlottedOptions().find(n=>n.value&&t.value?n.value===t.value:n.getTextLabel()===t.getTextLabel());l&&(l.selected=e!=null?e:!l.selected)}findOptionByValue(t,e){if(e)return Array.isArray(e)?t.find(i=>e.includes(i.value)):t.find(i=>i.value===e)}selectedOptionsAndValueSynced(){var t;return!this.value&&this.selectedOptions.length===0?!0:Array.isArray(this.value)?this.value.length===this.selectedOptions.length:this.value===((t=this.selectedOptions[0])==null?void 0:t.value)}isOptionSelected(t){return t.value?this.value.includes(t.value):this.value.includes(t.getTextLabel())}syncSelectedOptionsAndValue(){return this.selectedOptionsAndValueSynced()?void 0:(this.getSlottedOptions().forEach(e=>{e.selected=!1}),this.selectedOptions=this.getSlottedOptions().filter(e=>this.isOptionSelected(e)),this.selectedOptions.forEach(e=>{e&&(e.selected=!0)}),Promise.resolve())}compareOptions(t,e){return t.value&&e.value?t.value===e.value:t.getTextLabel()===e.getTextLabel()}setSelectedOptions(t){this.getSlottedOptions().forEach(i=>{i.selected=this.compareOptions(i,t)}),this.selectionChanged()}setOrderedSelectedOptions(t){let e=this.getSlottedOptions().find(i=>this.compareOptions(i,t));this.multiple?this.selectedOptions.length>0&&e&&this.selectedOptions.find(i=>this.compareOptions(i,e))?this.selectedOptions=this.selectedOptions.filter(i=>!this.compareOptions(i,e)):this.selectedOptions=[...this.selectedOptions,e]:this.selectedOptions=[e]}selectionChanged(){var e,i,l;let t=this.selectedOptions.some(n=>n?this.isOptionSelected(n):!1);this.multiple?(!t&&this.selectedOptions.length>0?this.value=[...this.value,...this.selectedOptions.map(n=>n.value||n.getTextLabel())]:this.value=this.selectedOptions.map(n=>(n==null?void 0:n.value)||(n==null?void 0:n.getTextLabel())||""),this.displayInputValue=""):(this.value=((e=this.selectedOptions[0])==null?void 0:e.value)||((i=this.selectedOptions[0])==null?void 0:i.getTextLabel())||"",this.selectedTextLabel=((l=this.selectedOptions[0])==null?void 0:l.getTextLabel())||"",this.displayInputValue=""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}createComboboxOptionsFromQuery(t){let e=[];this.filteredOptions=this.getSlottedOptions().filter(i=>this.filter(i,t)||t==="").map(i=>{var y,b,m;let l=i.cloneNode(!0);if(l.current=l.value===((y=this.lastOption)==null?void 0:y.value),l.selected=i.selected,l.checkbox=i.checkbox,l.size=i.size,!(((b=i.parentElement)==null?void 0:b.tagName.toLowerCase())==="sd-4-4-2-optgroup"))return l;let d=i.parentElement,v=(m=d.querySelector('[slot="label"]'))==null?void 0:m.cloneNode(!0),u=e.find(O=>O.id===d.id);if(u){u==null||u.appendChild(l),v&&(u==null||u.appendChild(v));return}let g=d.cloneNode();return g.appendChild(l),v&&g.appendChild(v),e.push(g),g}).filter(Boolean)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleFilterChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}handleUseTagsChange(){let t=this.getAllFilteredOptions();customElements.get("sd-4-4-2-option")&&t.forEach(e=>{e.checkbox=this.multiple})}applySizeToOptions(){this.getSlottedOptions().forEach(t=>{t.size=this.size})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),(this.disabled||this.visuallyDisabled)&&(this.open=!1,this.handleOpenChange())}handleValueChange(){this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInput.value):this.createComboboxOptionsFromQuery("")}handleDisplayInputValueChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}async handleOpenChange(){if(this.open&&(!this.disabled||!this.visuallyDisabled)){this.emit("sd-show"),this.addOpenListeners(),await T(this),this.listbox.hidden=!1,this.popup.active=!0;let{keyframes:i,options:l}=E(this,"combobox.show",{dir:this.localize.dir()});await S(this.popup.popup,i,l),this.emit("sd-after-show"),this.filteredOptions.length===0&&this.emit("sd-error");return}this.setCurrentOption(null),this.displayInput.removeAttribute("aria-activedescendant"),this.emit("sd-hide"),this.removeOpenListeners(),await T(this);let{keyframes:t,options:e}=E(this,"combobox.hide",{dir:this.localize.dir()});await S(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,Promise.race([x(this,"sd-after-show"),x(this,"sd-error")])}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.displayInputValue="",this.open=!1,x(this,"sd-after-hide")}checkValidity(){return this.valueInput.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.displayInput.focus(t)}blur(){this.displayInput.blur()}async handleInput(){let t=this.displayInput.value;this.displayInputValue=t,await this.updateComplete,this.open=this.filteredWrapper.children.length>0,this.formControlController.updateValidity(),this.emit("sd-input")}handleChange(){(!this.selectedOptions||!this.multiple)&&(this.selectedTextLabel=this.displayInput.value,this.updateComplete.then(()=>{this.formControlController.updateValidity()}),this.emit("sd-change"))}getSlottedOptions(){return H(L(this.defaultSlot)).flat()}getSlottedOptGroups(){return R(L(this.defaultSlot))}async handleDefaultSlotChange(){if(!customElements.get("sd-4-4-2-option")){customElements.whenDefined("sd-4-4-2-option").then(()=>this.handleDefaultSlotChange());return}let t=this.getSlottedOptions(),e=this.getSlottedOptGroups();this.applySizeToOptions();let i=this.findOptionByValue(t,this.value);this.selectedTextLabel=(i==null?void 0:i.getTextLabel())||"",t.forEach((l,n)=>{this.multiple&&(l.checkbox=!0),l.id=l.id||`sd-4-4-2-combobox-option-${n}`}),e.forEach((l,n)=>{l.id=l.id||`sd-4-4-2-combobox-optgroup-${n}`}),await this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInputValue):this.createComboboxOptionsFromQuery("")}render(){let t={left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")},e=this.hasSlotController.test("label"),i=this.hasSlotController.test("help-text"),l=this.label?!0:!!e,n=this.helpText?!0:!!i,d=this.clearable&&!this.disabled&&!this.visuallyDisabled,v=this.disabled?"disabled":this.visuallyDisabled?"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",u=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",g=this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",y={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],b={sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size],m={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return p`<div part="form-control" class="${r("relative text-left",u,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><label id="label" part="form-control-label" class="${l&&"inline-block mb-2"}" aria-hidden="${!l}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="relative w-full bg-white text-black"><div part="border" class="${r("absolute top-0 w-full h-full pointer-events-none border rounded-default",this.hasHover&&!this.disabled&&!this.visuallyDisabled&&"bg-neutral-200",{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"}[v],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-4-4-2-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${r("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
10
10
  popup:popup__content,
11
- "><div part="combobox" class="${r("relative w-full px-4 flex flex-row items-center rounded-default",this.open&&"shadow",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}">${t.left?p`<slot part="left" name="left" class="${r("inline-flex",b,g,m)}"></slot>`:""} ${this.multiple&&this.useTags&&this.tags.length>0?p`<div part="tags" class="${r("flex items-center gap-1",b)}">${this.tags}</div>`:null} <input id="display-input" name="${this.name}" form="${this.form}" part="display-input" class="${r("appearance-none outline-none bg-transparent flex-auto min-w-0",u,this.selectedTextLabel&&!this.multiple?"placeholder-black":"placeholder-neutral-700")}" type="text" placeholder="${this.selectedTextLabel&&!this.multiple?this.selectedTextLabel:this.placeholder||this.localize.term("comboboxDefaultPlaceholder")}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled||this.visuallyDisabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(O=>O==null?void 0:O.getTextLabel()).join(", ")}</div><input class="${r("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",u)}" 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}"> ${d?p`<button part="clear-button" class="${r("flex justify-center",y,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-4-1-icon class="${r("text-icon-fill-neutral-800",m)}" name="closing-round" library="system"></sd-4-4-1-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-4-4-1-icon part="invalid-icon" class="${r(y,m,"text-error")}" library="system" name="risk"></sd-4-4-1-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-4-4-1-icon part="valid-icon" class="${r("flex-shrink-0 text-success",y,m)}" library="system" name="status-check"></sd-4-4-1-icon>`:""}<slot name="right" part="right" class="${r("inline-flex ml-2 leading-[0]",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",m)}"><sd-4-4-1-icon class="${r("transition-all",this.open?"rotate-180":"rotate-0")}" name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-4-1-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${r("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow",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" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${this.filteredOptions.length===0?p`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>`:this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-4-4-1-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700 mt-2" aria-hidden="${!n}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};s.dependencies={"sd-4-4-1-icon":k,"sd-4-4-1-popup":K,"sd-4-4-1-tag":U},s.styles=[...I.styles,D`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-4-1-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-4-1-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-4-4-1-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-4-1-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-4-1-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}[part=filtered-listbox] sd-4-4-1-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`],a([c("sd-4-4-1-popup")],s.prototype,"popup",2),a([c('[part="combobox"]')],s.prototype,"combobox",2),a([c('[part="display-input"]')],s.prototype,"displayInput",2),a([c(".value-input")],s.prototype,"valueInput",2),a([c('[part="listbox"]')],s.prototype,"listbox",2),a([c('[part="tags"]')],s.prototype,"tagWrapper",2),a([c('[part="filtered-listbox"]')],s.prototype,"filteredWrapper",2),a([c("slot:not([name])")],s.prototype,"defaultSlot",2),a([c("#invalid-message")],s.prototype,"invalidMessage",2),a([h()],s.prototype,"hasHover",2),a([h()],s.prototype,"hasFocus",2),a([h()],s.prototype,"displayInputValue",2),a([h()],s.prototype,"selectedTextLabel",2),a([h()],s.prototype,"selectedOptions",2),a([h()],s.prototype,"filteredOptions",2),a([h()],s.prototype,"allOptions",2),a([h()],s.prototype,"lastOption",2),a([h()],s.prototype,"showValidStyle",2),a([h()],s.prototype,"showInvalidStyle",2),a([o()],s.prototype,"name",2),a([o({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],s.prototype,"value",2),a([A()],s.prototype,"defaultValue",2),a([o({reflect:!0})],s.prototype,"size",2),a([o()],s.prototype,"placeholder",2),a([o({attribute:"max-options-tag-label"})],s.prototype,"maxOptionsTagLabel",2),a([o({reflect:!0,type:Boolean})],s.prototype,"disabled",2),a([o({reflect:!0,type:Boolean,attribute:"visually-disabled"})],s.prototype,"visuallyDisabled",2),a([o({type:Boolean})],s.prototype,"clearable",2),a([o({reflect:!0,type:Boolean})],s.prototype,"open",2),a([o({type:Boolean})],s.prototype,"hoist",2),a([o()],s.prototype,"label",2),a([o({reflect:!0})],s.prototype,"placement",2),a([o({attribute:"help-text"})],s.prototype,"helpText",2),a([o({reflect:!0})],s.prototype,"form",2),a([o({reflect:!0,type:Boolean})],s.prototype,"required",2),a([h()],s.prototype,"currentPlacement",2),a([o()],s.prototype,"getOption",2),a([o({type:Boolean,reflect:!0})],s.prototype,"multiple",2),a([o({type:Boolean,reflect:!0})],s.prototype,"useTags",2),a([o({attribute:"max-options-visible",type:Number})],s.prototype,"maxOptionsVisible",2),a([o({type:Boolean,reflect:!0,attribute:"style-on-valid"})],s.prototype,"styleOnValid",2),a([o()],s.prototype,"filter",2),a([o()],s.prototype,"getTag",2),a([f("filter",{waitUntilFirstUpdate:!0})],s.prototype,"handleFilterChange",1),a([f("useTags",{waitUntilFirstUpdate:!0})],s.prototype,"handleUseTagsChange",1),a([f("size",{waitUntilFirstUpdate:!0})],s.prototype,"applySizeToOptions",1),a([f(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],s.prototype,"handleDisabledChange",1),a([f("value",{waitUntilFirstUpdate:!0})],s.prototype,"handleValueChange",1),a([f("displayInputValue",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisplayInputValueChange",1),a([f("open",{waitUntilFirstUpdate:!0})],s.prototype,"handleOpenChange",1),s=a([V("sd-4-4-1-combobox")],s);C("combobox.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});C("combobox.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});export{s as a};
11
+ "><div part="combobox" class="${r("relative w-full px-4 flex flex-row items-center rounded-default",this.open&&"shadow",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}">${t.left?p`<slot part="left" name="left" class="${r("inline-flex",b,g,m)}"></slot>`:""} ${this.multiple&&this.useTags&&this.tags.length>0?p`<div part="tags" class="${r("flex items-center gap-1",b)}">${this.tags}</div>`:null} <input id="display-input" name="${this.name}" form="${this.form}" part="display-input" class="${r("appearance-none outline-none bg-transparent flex-auto min-w-0",u,this.selectedTextLabel&&!this.multiple?"placeholder-black":"placeholder-neutral-700")}" type="text" placeholder="${this.selectedTextLabel&&!this.multiple?this.selectedTextLabel:this.placeholder||this.localize.term("comboboxDefaultPlaceholder")}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled||this.visuallyDisabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(O=>O==null?void 0:O.getTextLabel()).join(", ")}</div><input class="${r("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",u)}" 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}"> ${d?p`<button part="clear-button" class="${r("flex justify-center",y,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-4-2-icon class="${r("text-icon-fill-neutral-800",m)}" name="closing-round" library="system"></sd-4-4-2-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-4-4-2-icon part="invalid-icon" class="${r(y,m,"text-error")}" library="system" name="risk"></sd-4-4-2-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-4-4-2-icon part="valid-icon" class="${r("flex-shrink-0 text-success",y,m)}" library="system" name="status-check"></sd-4-4-2-icon>`:""}<slot name="right" part="right" class="${r("inline-flex ml-2 leading-[0]",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",m)}"><sd-4-4-2-icon class="${r("transition-all",this.open?"rotate-180":"rotate-0")}" name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-4-2-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${r("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow",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" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${this.filteredOptions.length===0?p`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>`:this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-4-4-2-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700 mt-2" aria-hidden="${!n}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};s.dependencies={"sd-4-4-2-icon":k,"sd-4-4-2-popup":K,"sd-4-4-2-tag":U},s.styles=[...I.styles,D`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-4-2-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-4-2-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-4-4-2-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-4-2-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-4-2-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}[part=filtered-listbox] sd-4-4-2-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`],a([c("sd-4-4-2-popup")],s.prototype,"popup",2),a([c('[part="combobox"]')],s.prototype,"combobox",2),a([c('[part="display-input"]')],s.prototype,"displayInput",2),a([c(".value-input")],s.prototype,"valueInput",2),a([c('[part="listbox"]')],s.prototype,"listbox",2),a([c('[part="tags"]')],s.prototype,"tagWrapper",2),a([c('[part="filtered-listbox"]')],s.prototype,"filteredWrapper",2),a([c("slot:not([name])")],s.prototype,"defaultSlot",2),a([c("#invalid-message")],s.prototype,"invalidMessage",2),a([h()],s.prototype,"hasHover",2),a([h()],s.prototype,"hasFocus",2),a([h()],s.prototype,"displayInputValue",2),a([h()],s.prototype,"selectedTextLabel",2),a([h()],s.prototype,"selectedOptions",2),a([h()],s.prototype,"filteredOptions",2),a([h()],s.prototype,"allOptions",2),a([h()],s.prototype,"lastOption",2),a([h()],s.prototype,"showValidStyle",2),a([h()],s.prototype,"showInvalidStyle",2),a([o()],s.prototype,"name",2),a([o({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],s.prototype,"value",2),a([A()],s.prototype,"defaultValue",2),a([o({reflect:!0})],s.prototype,"size",2),a([o()],s.prototype,"placeholder",2),a([o({attribute:"max-options-tag-label"})],s.prototype,"maxOptionsTagLabel",2),a([o({reflect:!0,type:Boolean})],s.prototype,"disabled",2),a([o({reflect:!0,type:Boolean,attribute:"visually-disabled"})],s.prototype,"visuallyDisabled",2),a([o({type:Boolean})],s.prototype,"clearable",2),a([o({reflect:!0,type:Boolean})],s.prototype,"open",2),a([o({type:Boolean})],s.prototype,"hoist",2),a([o()],s.prototype,"label",2),a([o({reflect:!0})],s.prototype,"placement",2),a([o({attribute:"help-text"})],s.prototype,"helpText",2),a([o({reflect:!0})],s.prototype,"form",2),a([o({reflect:!0,type:Boolean})],s.prototype,"required",2),a([h()],s.prototype,"currentPlacement",2),a([o()],s.prototype,"getOption",2),a([o({type:Boolean,reflect:!0})],s.prototype,"multiple",2),a([o({type:Boolean,reflect:!0})],s.prototype,"useTags",2),a([o({attribute:"max-options-visible",type:Number})],s.prototype,"maxOptionsVisible",2),a([o({type:Boolean,reflect:!0,attribute:"style-on-valid"})],s.prototype,"styleOnValid",2),a([o()],s.prototype,"filter",2),a([o()],s.prototype,"getTag",2),a([f("filter",{waitUntilFirstUpdate:!0})],s.prototype,"handleFilterChange",1),a([f("useTags",{waitUntilFirstUpdate:!0})],s.prototype,"handleUseTagsChange",1),a([f("size",{waitUntilFirstUpdate:!0})],s.prototype,"applySizeToOptions",1),a([f(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],s.prototype,"handleDisabledChange",1),a([f("value",{waitUntilFirstUpdate:!0})],s.prototype,"handleValueChange",1),a([f("displayInputValue",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisplayInputValueChange",1),a([f("open",{waitUntilFirstUpdate:!0})],s.prototype,"handleOpenChange",1),s=a([V("sd-4-4-2-combobox")],s);C("combobox.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});C("combobox.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});export{s as a};
@@ -1,4 +1,4 @@
1
- import{a as c,c as m}from"./chunk.A3DKF5BY.js";import{a as p,b as l,d as u}from"./chunk.RQYP7MH5.js";import{a as f}from"./chunk.KLRPP4NQ.js";import{a as n}from"./chunk.E2DRD2OX.js";import{a as x}from"./chunk.TNPIUMKG.js";import{a as h}from"./chunk.26V4EXHB.js";import{a as g,b as o,d as r,h as d}from"./chunk.5AILWWY2.js";import{b as y,e as b}from"./chunk.IRWHG2Q4.js";import{e as i}from"./chunk.TJOCV4DC.js";var t=class extends d{constructor(){super(...arguments);this.localize=new x(this);this.size="lg";this.content="";this.placement="top";this.disabled=!1;this.open=!1;this.trigger="click focus";this.hoist=!1;this.handleMouseInteraction=()=>{this.interactionType="mouse"};this.handleKeyboardInteraction=()=>{this.interactionType="keyboard"}}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),document.addEventListener("mousedown",this.handleMouseInteraction),document.addEventListener("keydown",this.handleKeyboardInteraction),this.updateComplete.then(()=>{this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)})}firstUpdated(){this.body.hidden=!this.open,this.formatDefaultSlot(this.defaultSlot),this.open&&(this.popup.active=!0,this.popup.reposition())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this.handleBlur,!0),this.removeEventListener("focus",this.handleFocus,!0),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("mouseover",this.handleMouseOver),this.removeEventListener("mouseout",this.handleMouseOut),document.removeEventListener("mousedown",this.handleMouseInteraction),document.removeEventListener("keydown",this.handleKeyboardInteraction)}formatDefaultSlot(e){e.assignedNodes({flatten:!0}).forEach(s=>{var v,w;s.nodeType===Node.TEXT_NODE&&!((v=s==null?void 0:s.textContent)!=null&&v.trim())&&((w=s==null?void 0:s.parentNode)==null||w.removeChild(s))})}handleBlur(){this.hasTrigger("focus")&&this.hide()}handleClick(){this.hasTrigger("click")&&(this.open?this.hide():this.show())}handleFocus(){this.hasTrigger("focus")&&this.interactionType==="keyboard"&&this.show()}handleKeyDown(e){this.open&&e.key==="Escape"&&(e.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){let e=l(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),e)}}handleMouseOut(){if(this.hasTrigger("hover")){let e=l(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),e)}}hasTrigger(e){return this.trigger.split(" ").includes(e)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sd-show"),await u(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:e,options:a}=m(this,"tooltip.show",{dir:this.localize.dir()});await p(this.popup.popup,e,a),this.emit("sd-after-show")}else{this.emit("sd-hide"),await u(this.body);let{keyframes:e,options:a}=m(this,"tooltip.hide",{dir:this.localize.dir()});await p(this.popup.popup,e,a),this.popup.active=!1,this.body.hidden=!0,this.emit("sd-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,f(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,this.blur(),f(this,"sd-after-hide")}render(){let e=this.placement.endsWith("-start"),a=this.placement.endsWith("-end");return b`<sd-4-4-1-popup part="base" exportparts="
1
+ import{a as c,c as m}from"./chunk.A3DKF5BY.js";import{a as p,b as l,d as u}from"./chunk.RQYP7MH5.js";import{a as f}from"./chunk.KLRPP4NQ.js";import{a as n}from"./chunk.E2DRD2OX.js";import{a as x}from"./chunk.TNPIUMKG.js";import{a as h}from"./chunk.26V4EXHB.js";import{a as g,b as o,d as r,h as d}from"./chunk.5AILWWY2.js";import{b as y,e as b}from"./chunk.IRWHG2Q4.js";import{e as i}from"./chunk.TJOCV4DC.js";var t=class extends d{constructor(){super(...arguments);this.localize=new x(this);this.size="lg";this.content="";this.placement="top";this.disabled=!1;this.open=!1;this.trigger="click focus";this.hoist=!1;this.handleMouseInteraction=()=>{this.interactionType="mouse"};this.handleKeyboardInteraction=()=>{this.interactionType="keyboard"}}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),document.addEventListener("mousedown",this.handleMouseInteraction),document.addEventListener("keydown",this.handleKeyboardInteraction),this.updateComplete.then(()=>{this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)})}firstUpdated(){this.body.hidden=!this.open,this.formatDefaultSlot(this.defaultSlot),this.open&&(this.popup.active=!0,this.popup.reposition())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this.handleBlur,!0),this.removeEventListener("focus",this.handleFocus,!0),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("mouseover",this.handleMouseOver),this.removeEventListener("mouseout",this.handleMouseOut),document.removeEventListener("mousedown",this.handleMouseInteraction),document.removeEventListener("keydown",this.handleKeyboardInteraction)}formatDefaultSlot(e){e.assignedNodes({flatten:!0}).forEach(s=>{var v,w;s.nodeType===Node.TEXT_NODE&&!((v=s==null?void 0:s.textContent)!=null&&v.trim())&&((w=s==null?void 0:s.parentNode)==null||w.removeChild(s))})}handleBlur(){this.hasTrigger("focus")&&this.hide()}handleClick(){this.hasTrigger("click")&&(this.open?this.hide():this.show())}handleFocus(){this.hasTrigger("focus")&&this.interactionType==="keyboard"&&this.show()}handleKeyDown(e){this.open&&e.key==="Escape"&&(e.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){let e=l(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),e)}}handleMouseOut(){if(this.hasTrigger("hover")){let e=l(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),e)}}hasTrigger(e){return this.trigger.split(" ").includes(e)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sd-show"),await u(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:e,options:a}=m(this,"tooltip.show",{dir:this.localize.dir()});await p(this.popup.popup,e,a),this.emit("sd-after-show")}else{this.emit("sd-hide"),await u(this.body);let{keyframes:e,options:a}=m(this,"tooltip.hide",{dir:this.localize.dir()});await p(this.popup.popup,e,a),this.popup.active=!1,this.body.hidden=!0,this.emit("sd-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,f(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,this.blur(),f(this,"sd-after-hide")}render(){let e=this.placement.endsWith("-start"),a=this.placement.endsWith("-end");return b`<sd-4-4-2-popup part="base" exportparts="
2
2
  popup:base__popup,
3
3
  arrow:base__arrow
4
- " class="${h(this.open&&"tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{start:2,end:-2,default:0}[e?"start":a?"end":"default"]*(this.size==="sm"?-1:1)}" strategy="${this.hoist?"fixed":"absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0"><slot slot="anchor" class="${h(this.size==="lg"?"text-xl":"text-base")}"><button aria-describedby="tooltip" class="flex sd-interactive rounded-full" ?disabled="${this.disabled}"><sd-4-4-1-icon library="system" name="info-circle" label="Tooltip" class="${h(this.disabled&&"sd-interactive--disabled")}"></sd-4-4-1-icon></button></slot><slot name="content" part="body" id="tooltip" class="bg-primary text-white py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="Tooltip" aria-live="${this.open?"polite":"off"}">${this.content}</slot></sd-4-4-1-popup>`}};t.styles=[...d.styles,y`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-4-4-1-popup{--arrow-color:rgb(var(--sd-color-primary,0 53 142)/1);--arrow-size:10px}sd-4-4-1-popup::part(popup){pointer-events:none;z-index:10;--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-4-1-popup::part(arrow){--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-4-1-popup[placement^=top]::part(popup){transform-origin:bottom}sd-4-4-1-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important;overflow:auto}`],i([r("slot:not([name])")],t.prototype,"defaultSlot",2),i([r("#tooltip")],t.prototype,"body",2),i([r("sd-4-4-1-popup")],t.prototype,"popup",2),i([o()],t.prototype,"size",2),i([o()],t.prototype,"content",2),i([o({reflect:!0})],t.prototype,"placement",2),i([o({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([o({type:Boolean,reflect:!0})],t.prototype,"open",2),i([o()],t.prototype,"trigger",2),i([o({type:Boolean})],t.prototype,"hoist",2),i([n("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),i([n(["content","hoist","placement"])],t.prototype,"handleOptionsChange",1),i([n("disabled")],t.prototype,"handleDisabledChange",1),t=i([g("sd-4-4-1-tooltip")],t);c("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}});c("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}});export{t as a};
4
+ " class="${h(this.open&&"tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{start:2,end:-2,default:0}[e?"start":a?"end":"default"]*(this.size==="sm"?-1:1)}" strategy="${this.hoist?"fixed":"absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0"><slot slot="anchor" class="${h(this.size==="lg"?"text-xl":"text-base")}"><button aria-describedby="tooltip" class="flex sd-interactive rounded-full" ?disabled="${this.disabled}"><sd-4-4-2-icon library="system" name="info-circle" label="Tooltip" class="${h(this.disabled&&"sd-interactive--disabled")}"></sd-4-4-2-icon></button></slot><slot name="content" part="body" id="tooltip" class="bg-primary text-white py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="Tooltip" aria-live="${this.open?"polite":"off"}">${this.content}</slot></sd-4-4-2-popup>`}};t.styles=[...d.styles,y`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-4-4-2-popup{--arrow-color:rgb(var(--sd-color-primary,0 53 142)/1);--arrow-size:10px}sd-4-4-2-popup::part(popup){pointer-events:none;z-index:10;--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-4-2-popup::part(arrow){--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-4-2-popup[placement^=top]::part(popup){transform-origin:bottom}sd-4-4-2-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important;overflow:auto}`],i([r("slot:not([name])")],t.prototype,"defaultSlot",2),i([r("#tooltip")],t.prototype,"body",2),i([r("sd-4-4-2-popup")],t.prototype,"popup",2),i([o()],t.prototype,"size",2),i([o()],t.prototype,"content",2),i([o({reflect:!0})],t.prototype,"placement",2),i([o({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([o({type:Boolean,reflect:!0})],t.prototype,"open",2),i([o()],t.prototype,"trigger",2),i([o({type:Boolean})],t.prototype,"hoist",2),i([n("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),i([n(["content","hoist","placement"])],t.prototype,"handleOptionsChange",1),i([n("disabled")],t.prototype,"handleDisabledChange",1),t=i([g("sd-4-4-2-tooltip")],t);c("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}});c("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}});export{t as a};
@@ -1 +1 @@
1
- import{a as n}from"./chunk.MWDEA25W.js";import{a as p}from"./chunk.E2DRD2OX.js";import{a as m,b as o,h as a}from"./chunk.5AILWWY2.js";import{b as l,e as c}from"./chunk.IRWHG2Q4.js";import{e as s}from"./chunk.TJOCV4DC.js";var t=class extends a{constructor(){super(...arguments);this.mode="cors";this.allowScripts=!1}executeScript(e){let r=document.createElement("script");[...e.attributes].forEach(i=>r.setAttribute(i.name,i.value)),r.textContent=e.textContent,e.parentNode.replaceChild(r,e)}async handleSrcChange(){try{let e=this.src,r=await n(e,this.mode);if(e!==this.src)return;if(!r.ok){this.emit("sd-error",{detail:{status:r.status}});return}this.innerHTML=r.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach(i=>this.executeScript(i)),this.emit("sd-load")}catch(e){this.emit("sd-error",{detail:{status:-1}})}}render(){return c`<slot></slot>`}};t.styles=[...a.styles,l`:host{display:block}`],s([o()],t.prototype,"src",2),s([o()],t.prototype,"mode",2),s([o({attribute:"allow-scripts",type:Boolean})],t.prototype,"allowScripts",2),s([p("src")],t.prototype,"handleSrcChange",1),t=s([m("sd-4-4-1-include")],t);export{t as a};
1
+ import{a as n}from"./chunk.MWDEA25W.js";import{a as p}from"./chunk.E2DRD2OX.js";import{a as m,b as o,h as a}from"./chunk.5AILWWY2.js";import{b as l,e as c}from"./chunk.IRWHG2Q4.js";import{e as s}from"./chunk.TJOCV4DC.js";var t=class extends a{constructor(){super(...arguments);this.mode="cors";this.allowScripts=!1}executeScript(e){let r=document.createElement("script");[...e.attributes].forEach(i=>r.setAttribute(i.name,i.value)),r.textContent=e.textContent,e.parentNode.replaceChild(r,e)}async handleSrcChange(){try{let e=this.src,r=await n(e,this.mode);if(e!==this.src)return;if(!r.ok){this.emit("sd-error",{detail:{status:r.status}});return}this.innerHTML=r.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach(i=>this.executeScript(i)),this.emit("sd-load")}catch(e){this.emit("sd-error",{detail:{status:-1}})}}render(){return c`<slot></slot>`}};t.styles=[...a.styles,l`:host{display:block}`],s([o()],t.prototype,"src",2),s([o()],t.prototype,"mode",2),s([o({attribute:"allow-scripts",type:Boolean})],t.prototype,"allowScripts",2),s([p("src")],t.prototype,"handleSrcChange",1),t=s([m("sd-4-4-2-include")],t);export{t as a};
@@ -1 +1 @@
1
- import{a as i}from"./chunk.HE2LNCWW.js";import{a as n,b as m}from"./chunk.5ZILM4TA.js";import{a as l}from"./chunk.26V4EXHB.js";import{a as h,b as a,h as c}from"./chunk.5AILWWY2.js";import{b as v,f as s}from"./chunk.IRWHG2Q4.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends c{constructor(){super(...arguments);this.variant="main";this.state="default";this.animated=!1;this.notInteractive=!1;this.href="";this.marker={cluster:s`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><circle cx="25" cy="25" opacity="1" r="20"/><circle cx="25" cy="25" opacity=".3" r="25"/></svg>`,main:s`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z"/><circle cx="30" cy="28" r="10" fill="#fff"/></svg>`,place:s`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path fill-rule="evenodd" d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z" clip-rule="evenodd"/></svg>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){let r=this.isLink(),o=this.notInteractive?n`div`:r?n`a`:n`button`;return m`<${o} part="base" class="${l("flex justify-center",!this.notInteractive&&"focus:outline focus:outline-2 focus:outline-primary focus:outline-offset-2")}" href="${i(r?this.href:void 0)}" target="${i(r?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${i(this.notInteractive||r?void 0:"button")}" aria-labelledby="${i(this.notInteractive?void 0:"content")}"><div part="marker" class="${l("inline-flex",this.animated&&(this.variant==="main"||this.variant==="place")&&"animate-bounce-once",this.variant==="cluster"&&this.state==="hover"&&"scale-110 fill-primary-500",this.variant==="cluster"&&!this.notInteractive&&"transition-all duration-200 ease-in-out hover:scale-110 hover:fill-primary-500",this.variant==="main"&&this.state==="hover"&&"fill-accent-550",this.variant==="main"&&this.state==="active"&&"fill-accent-700",this.variant==="main"&&!this.notInteractive&&"hover:fill-accent-550 active:fill-accent-700",this.variant==="place"&&this.state==="default"&&"fill-white",this.variant==="place"&&this.state==="hover"&&"fill-primary-100",this.variant==="place"&&this.state==="active"&&"fill-primary-200",this.variant==="place"&&!this.notInteractive&&"hover:fill-primary-100",{cluster:"fill-primary",main:"fill-accent",place:""}[this.variant])}">${this.marker[this.variant]}</div><div id="content" part="content" class="${l("absolute self-center pointer-events-none",this.variant==="cluster"&&"font-bold text-white")}"><slot></slot></div></${o}>`}};t.styles=[...c.styles,v`:host{display:block}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem)*var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem)*var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem)*var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem)*var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{font-size:calc(var(--sd-font-size-3xl,2rem)*var(--map-marker-scaling,1));margin-top:calc(var(--sd-spacing-2,.5rem)*-1)}:host([variant=main]) [part=marker],:host([variant=place]) [part=marker]{--tw-drop-shadow:drop-shadow(var(--sd-shadow,0px 1px 3px #515151));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}`],e([a({reflect:!0})],t.prototype,"variant",2),e([a({reflect:!0})],t.prototype,"state",2),e([a({type:Boolean,reflect:!0})],t.prototype,"animated",2),e([a({type:Boolean,reflect:!0,attribute:"not-interactive"})],t.prototype,"notInteractive",2),e([a()],t.prototype,"href",2),e([a()],t.prototype,"target",2),t=e([h("sd-4-4-1-map-marker")],t);export{t as a};
1
+ import{a as i}from"./chunk.HE2LNCWW.js";import{a as n,b as m}from"./chunk.5ZILM4TA.js";import{a as l}from"./chunk.26V4EXHB.js";import{a as h,b as a,h as c}from"./chunk.5AILWWY2.js";import{b as v,f as s}from"./chunk.IRWHG2Q4.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends c{constructor(){super(...arguments);this.variant="main";this.state="default";this.animated=!1;this.notInteractive=!1;this.href="";this.marker={cluster:s`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><circle cx="25" cy="25" opacity="1" r="20"/><circle cx="25" cy="25" opacity=".3" r="25"/></svg>`,main:s`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z"/><circle cx="30" cy="28" r="10" fill="#fff"/></svg>`,place:s`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path fill-rule="evenodd" d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z" clip-rule="evenodd"/></svg>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){let r=this.isLink(),o=this.notInteractive?n`div`:r?n`a`:n`button`;return m`<${o} part="base" class="${l("flex justify-center",!this.notInteractive&&"focus:outline focus:outline-2 focus:outline-primary focus:outline-offset-2")}" href="${i(r?this.href:void 0)}" target="${i(r?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${i(this.notInteractive||r?void 0:"button")}" aria-labelledby="${i(this.notInteractive?void 0:"content")}"><div part="marker" class="${l("inline-flex",this.animated&&(this.variant==="main"||this.variant==="place")&&"animate-bounce-once",this.variant==="cluster"&&this.state==="hover"&&"scale-110 fill-primary-500",this.variant==="cluster"&&!this.notInteractive&&"transition-all duration-200 ease-in-out hover:scale-110 hover:fill-primary-500",this.variant==="main"&&this.state==="hover"&&"fill-accent-550",this.variant==="main"&&this.state==="active"&&"fill-accent-700",this.variant==="main"&&!this.notInteractive&&"hover:fill-accent-550 active:fill-accent-700",this.variant==="place"&&this.state==="default"&&"fill-white",this.variant==="place"&&this.state==="hover"&&"fill-primary-100",this.variant==="place"&&this.state==="active"&&"fill-primary-200",this.variant==="place"&&!this.notInteractive&&"hover:fill-primary-100",{cluster:"fill-primary",main:"fill-accent",place:""}[this.variant])}">${this.marker[this.variant]}</div><div id="content" part="content" class="${l("absolute self-center pointer-events-none",this.variant==="cluster"&&"font-bold text-white")}"><slot></slot></div></${o}>`}};t.styles=[...c.styles,v`:host{display:block}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem)*var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem)*var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem)*var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem)*var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{font-size:calc(var(--sd-font-size-3xl,2rem)*var(--map-marker-scaling,1));margin-top:calc(var(--sd-spacing-2,.5rem)*-1)}:host([variant=main]) [part=marker],:host([variant=place]) [part=marker]{--tw-drop-shadow:drop-shadow(var(--sd-shadow,0px 1px 3px #515151));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}`],e([a({reflect:!0})],t.prototype,"variant",2),e([a({reflect:!0})],t.prototype,"state",2),e([a({type:Boolean,reflect:!0})],t.prototype,"animated",2),e([a({type:Boolean,reflect:!0,attribute:"not-interactive"})],t.prototype,"notInteractive",2),e([a()],t.prototype,"href",2),e([a()],t.prototype,"target",2),t=e([h("sd-4-4-2-map-marker")],t);export{t as a};