@solid-design-system/components 6.24.1 → 6.24.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 (283) hide show
  1. package/cdn/chunks/{chunk.AX6E7G7K.js → chunk.GNQ2AH6R.js} +2 -2
  2. package/cdn/chunks/chunk.MXPGGLKX.js +2 -0
  3. package/cdn/components/combobox/combobox.js +1 -1
  4. package/cdn/components/navigation-item/navigation-item.js +1 -1
  5. package/cdn/custom-elements.json +1 -1
  6. package/cdn/solid-components.bundle.js +3 -3
  7. package/cdn/solid-components.iife.js +3 -3
  8. package/cdn/solid-components.js +1 -1
  9. package/cdn/web-types.json +1 -1
  10. package/cdn-versioned/chunks/chunk.2FRV4JI3.js +1 -1
  11. package/cdn-versioned/chunks/chunk.2TCDQYYC.js +2 -2
  12. package/cdn-versioned/chunks/chunk.32WSNOK5.js +2 -2
  13. package/cdn-versioned/chunks/chunk.36LY3DX3.js +2 -2
  14. package/cdn-versioned/chunks/chunk.3FXWTJNG.js +2 -2
  15. package/cdn-versioned/chunks/chunk.3HJR4W7S.js +2 -2
  16. package/cdn-versioned/chunks/chunk.3NV5EFHF.js +9 -9
  17. package/cdn-versioned/chunks/chunk.4PBTCGFX.js +2 -2
  18. package/cdn-versioned/chunks/chunk.4TEHVEJ5.js +2 -2
  19. package/cdn-versioned/chunks/chunk.5B4C742P.js +2 -2
  20. package/cdn-versioned/chunks/chunk.5D2QLOPO.js +2 -2
  21. package/cdn-versioned/chunks/chunk.5LQXIFL5.js +1 -1
  22. package/cdn-versioned/chunks/chunk.6ZVU7R22.js +2 -2
  23. package/cdn-versioned/chunks/chunk.7EYPTWOC.js +2 -2
  24. package/cdn-versioned/chunks/chunk.A3QRJ5ME.js +2 -2
  25. package/cdn-versioned/chunks/chunk.BJGMSYKC.js +1 -1
  26. package/cdn-versioned/chunks/chunk.BMOWDQOV.js +2 -2
  27. package/cdn-versioned/chunks/chunk.BS3GML7W.js +3 -3
  28. package/cdn-versioned/chunks/chunk.CIRCXXWS.js +2 -2
  29. package/cdn-versioned/chunks/chunk.CPEHJK3R.js +1 -1
  30. package/cdn-versioned/chunks/chunk.D4KX4Q6E.js +2 -2
  31. package/cdn-versioned/chunks/chunk.DSKB3SEU.js +1 -1
  32. package/cdn-versioned/chunks/chunk.E3RBLJOD.js +2 -2
  33. package/cdn-versioned/chunks/chunk.EDVI5WKO.js +3 -3
  34. package/cdn-versioned/chunks/chunk.FK2QE2LJ.js +2 -2
  35. package/cdn-versioned/chunks/chunk.GCCUJ5RI.js +3 -3
  36. package/cdn-versioned/chunks/chunk.GICLEIQR.js +1 -1
  37. package/cdn-versioned/chunks/{chunk.AX6E7G7K.js → chunk.GNQ2AH6R.js} +5 -5
  38. package/cdn-versioned/chunks/chunk.GWINLIF6.js +2 -2
  39. package/cdn-versioned/chunks/chunk.HA4FSESN.js +2 -2
  40. package/cdn-versioned/chunks/chunk.ISEX6JDK.js +2 -2
  41. package/cdn-versioned/chunks/chunk.IXCKRXZP.js +2 -2
  42. package/cdn-versioned/chunks/chunk.KJ4O2AAU.js +2 -2
  43. package/cdn-versioned/chunks/chunk.KQBMEX4Q.js +2 -2
  44. package/cdn-versioned/chunks/chunk.L7DV2MLH.js +1 -1
  45. package/cdn-versioned/chunks/chunk.LVX7YSFZ.js +2 -2
  46. package/cdn-versioned/chunks/chunk.LWNOAXVZ.js +2 -2
  47. package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
  48. package/cdn-versioned/chunks/chunk.MXPGGLKX.js +2 -0
  49. package/cdn-versioned/chunks/chunk.NXUXZCC5.js +1 -1
  50. package/cdn-versioned/chunks/chunk.OFQAFMQN.js +2 -2
  51. package/cdn-versioned/chunks/chunk.OJN4DDNN.js +2 -2
  52. package/cdn-versioned/chunks/chunk.OW556SXG.js +2 -2
  53. package/cdn-versioned/chunks/chunk.P4GZNPGK.js +1 -1
  54. package/cdn-versioned/chunks/chunk.PQIUYCLY.js +2 -2
  55. package/cdn-versioned/chunks/chunk.PZSKPF3M.js +2 -2
  56. package/cdn-versioned/chunks/chunk.R3CFPFL7.js +2 -2
  57. package/cdn-versioned/chunks/chunk.RJ7RNCAD.js +2 -2
  58. package/cdn-versioned/chunks/chunk.SK3BEBJX.js +2 -2
  59. package/cdn-versioned/chunks/chunk.SW3IDYJO.js +1 -1
  60. package/cdn-versioned/chunks/chunk.TNHTS2QZ.js +2 -2
  61. package/cdn-versioned/chunks/chunk.TQXBNN2G.js +2 -2
  62. package/cdn-versioned/chunks/chunk.TTYJJ4T5.js +2 -2
  63. package/cdn-versioned/chunks/chunk.TYVGKCJX.js +2 -2
  64. package/cdn-versioned/chunks/chunk.U2Q5EORY.js +2 -2
  65. package/cdn-versioned/chunks/chunk.VMZSSKC5.js +1 -1
  66. package/cdn-versioned/chunks/chunk.VSRBSS6K.js +2 -2
  67. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  68. package/cdn-versioned/chunks/chunk.WB2ATZAO.js +5 -5
  69. package/cdn-versioned/chunks/chunk.XND4CVBN.js +2 -2
  70. package/cdn-versioned/chunks/chunk.XQ2AM7JO.js +2 -2
  71. package/cdn-versioned/chunks/chunk.YDZ7FOAV.js +2 -2
  72. package/cdn-versioned/chunks/chunk.YGYXL3BZ.js +2 -2
  73. package/cdn-versioned/chunks/chunk.ZC3U3HHB.js +2 -2
  74. package/cdn-versioned/chunks/chunk.ZFTFC2P4.js +2 -2
  75. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  76. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  77. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  78. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  79. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  80. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  81. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  82. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  83. package/cdn-versioned/components/button/button.d.ts +1 -1
  84. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  85. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  86. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  87. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  88. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  89. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  90. package/cdn-versioned/components/combobox/combobox.js +1 -1
  91. package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
  92. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  93. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  94. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  95. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  96. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  97. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  98. package/cdn-versioned/components/header/header.d.ts +1 -1
  99. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  100. package/cdn-versioned/components/include/include.d.ts +1 -1
  101. package/cdn-versioned/components/input/input.d.ts +1 -1
  102. package/cdn-versioned/components/link/link.d.ts +1 -1
  103. package/cdn-versioned/components/loader/loader.d.ts +1 -1
  104. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  105. package/cdn-versioned/components/menu/menu.d.ts +1 -1
  106. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  107. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  108. package/cdn-versioned/components/navigation-item/navigation-item.js +1 -1
  109. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  110. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  111. package/cdn-versioned/components/option/option.d.ts +1 -1
  112. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  113. package/cdn-versioned/components/progress-bar/progress-bar.d.ts +1 -1
  114. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  115. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  116. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  117. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  118. package/cdn-versioned/components/range/range.d.ts +1 -1
  119. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  120. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  121. package/cdn-versioned/components/select/select.d.ts +1 -1
  122. package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
  123. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  124. package/cdn-versioned/components/step/step.d.ts +1 -1
  125. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  126. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  127. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  128. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  129. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  130. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  131. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  132. package/cdn-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  133. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  134. package/cdn-versioned/components/video/video.d.ts +1 -1
  135. package/cdn-versioned/custom-elements.json +253 -253
  136. package/cdn-versioned/internal/form.js +2 -2
  137. package/cdn-versioned/solid-components.bundle.js +81 -81
  138. package/cdn-versioned/solid-components.css +2 -2
  139. package/cdn-versioned/solid-components.iife.js +81 -81
  140. package/cdn-versioned/solid-components.js +1 -1
  141. package/cdn-versioned/vscode.html-custom-data.json +109 -109
  142. package/cdn-versioned/web-types.json +165 -165
  143. package/dist/chunks/{chunk.X4BIP2Y2.js → chunk.GUWNLJ7W.js} +6 -2
  144. package/dist/chunks/{chunk.KTT6XPZB.js → chunk.JHHNBCX5.js} +7 -5
  145. package/dist/components/combobox/combobox.js +1 -1
  146. package/dist/components/navigation-item/navigation-item.js +1 -1
  147. package/dist/custom-elements.json +1 -1
  148. package/dist/solid-components.js +2 -2
  149. package/dist/web-types.json +1 -1
  150. package/dist-versioned/chunks/chunk.2KU6UVWZ.js +2 -2
  151. package/dist-versioned/chunks/chunk.2N4PQ34O.js +11 -11
  152. package/dist-versioned/chunks/chunk.4F4N3QQ6.js +4 -4
  153. package/dist-versioned/chunks/chunk.4QZT4Y6W.js +3 -3
  154. package/dist-versioned/chunks/chunk.4SNDWIKF.js +2 -2
  155. package/dist-versioned/chunks/chunk.5XP6OIKT.js +3 -3
  156. package/dist-versioned/chunks/chunk.6DDIBH76.js +14 -14
  157. package/dist-versioned/chunks/chunk.6MMNEOUE.js +2 -2
  158. package/dist-versioned/chunks/chunk.6V7SKGRY.js +4 -4
  159. package/dist-versioned/chunks/chunk.AIG5N2FZ.js +1 -1
  160. package/dist-versioned/chunks/chunk.AXZSMHWW.js +4 -4
  161. package/dist-versioned/chunks/chunk.BCZIRWVM.js +3 -3
  162. package/dist-versioned/chunks/chunk.BIYQLL42.js +11 -11
  163. package/dist-versioned/chunks/chunk.BVWAKEFC.js +1 -1
  164. package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
  165. package/dist-versioned/chunks/chunk.CTVKYPFB.js +5 -5
  166. package/dist-versioned/chunks/chunk.D3CLWL6Z.js +13 -13
  167. package/dist-versioned/chunks/chunk.D6W4R7CF.js +12 -12
  168. package/dist-versioned/chunks/chunk.DDBIUIIK.js +6 -6
  169. package/dist-versioned/chunks/chunk.DGV5QTN6.js +5 -5
  170. package/dist-versioned/chunks/chunk.EAJ3CM6N.js +4 -4
  171. package/dist-versioned/chunks/chunk.EHIUARAT.js +2 -2
  172. package/dist-versioned/chunks/chunk.EIHPDMVS.js +5 -5
  173. package/dist-versioned/chunks/chunk.EYTDOBZ4.js +6 -6
  174. package/dist-versioned/chunks/chunk.FMLTJI4Z.js +7 -7
  175. package/dist-versioned/chunks/chunk.FWMPHWGG.js +10 -10
  176. package/dist-versioned/chunks/chunk.G5PJCSSV.js +7 -7
  177. package/dist-versioned/chunks/chunk.GAQZ5NES.js +5 -5
  178. package/dist-versioned/chunks/chunk.GQ4ENMDG.js +10 -10
  179. package/dist-versioned/chunks/chunk.GUTW4VQD.js +5 -5
  180. package/dist-versioned/chunks/{chunk.X4BIP2Y2.js → chunk.GUWNLJ7W.js} +31 -27
  181. package/dist-versioned/chunks/chunk.JHGRQU5N.js +6 -6
  182. package/dist-versioned/chunks/{chunk.KTT6XPZB.js → chunk.JHHNBCX5.js} +17 -15
  183. package/dist-versioned/chunks/chunk.JYUKVPUJ.js +1 -1
  184. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  185. package/dist-versioned/chunks/chunk.KEUBCTKM.js +8 -8
  186. package/dist-versioned/chunks/chunk.KGQHJROJ.js +3 -3
  187. package/dist-versioned/chunks/chunk.LKDQ3TXG.js +2 -2
  188. package/dist-versioned/chunks/chunk.LMXGFI7F.js +11 -11
  189. package/dist-versioned/chunks/chunk.M52SSKFL.js +10 -10
  190. package/dist-versioned/chunks/chunk.MUOLK3RU.js +33 -33
  191. package/dist-versioned/chunks/chunk.N7WMSLKA.js +1 -1
  192. package/dist-versioned/chunks/chunk.NIKLDQ35.js +2 -2
  193. package/dist-versioned/chunks/chunk.NNMBBWIU.js +2 -2
  194. package/dist-versioned/chunks/chunk.OXCSSHRT.js +10 -10
  195. package/dist-versioned/chunks/chunk.P7RNSWL3.js +1 -1
  196. package/dist-versioned/chunks/chunk.QWPXBE3R.js +3 -3
  197. package/dist-versioned/chunks/chunk.R3ZRRK4P.js +4 -4
  198. package/dist-versioned/chunks/chunk.R6M52RPI.js +5 -5
  199. package/dist-versioned/chunks/chunk.RQN4WSFL.js +5 -5
  200. package/dist-versioned/chunks/chunk.RWGWOZ23.js +1 -1
  201. package/dist-versioned/chunks/chunk.SLLHUOTL.js +2 -2
  202. package/dist-versioned/chunks/chunk.SUQL6D3H.js +5 -5
  203. package/dist-versioned/chunks/chunk.TEHKQWUZ.js +6 -6
  204. package/dist-versioned/chunks/chunk.TEHS57B5.js +2 -2
  205. package/dist-versioned/chunks/chunk.TRG462TJ.js +1 -1
  206. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  207. package/dist-versioned/chunks/chunk.WASJNAOH.js +25 -25
  208. package/dist-versioned/chunks/chunk.XFU4IJSC.js +5 -5
  209. package/dist-versioned/chunks/chunk.XRYVTNMS.js +3 -3
  210. package/dist-versioned/chunks/chunk.YEO5QKA7.js +2 -2
  211. package/dist-versioned/chunks/chunk.YNVPCLKL.js +5 -5
  212. package/dist-versioned/chunks/chunk.YSZ7WBON.js +1 -1
  213. package/dist-versioned/chunks/chunk.ZCOV36IT.js +2 -2
  214. package/dist-versioned/chunks/chunk.ZF4JCUFV.js +6 -6
  215. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  216. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  217. package/dist-versioned/components/animation/animation.d.ts +1 -1
  218. package/dist-versioned/components/audio/audio.d.ts +1 -1
  219. package/dist-versioned/components/badge/badge.d.ts +1 -1
  220. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  221. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  222. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  223. package/dist-versioned/components/button/button.d.ts +1 -1
  224. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  225. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  226. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  227. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  228. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  229. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  230. package/dist-versioned/components/combobox/combobox.js +1 -1
  231. package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
  232. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  233. package/dist-versioned/components/divider/divider.d.ts +1 -1
  234. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  235. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  236. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  237. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  238. package/dist-versioned/components/header/header.d.ts +1 -1
  239. package/dist-versioned/components/icon/icon.d.ts +1 -1
  240. package/dist-versioned/components/include/include.d.ts +1 -1
  241. package/dist-versioned/components/input/input.d.ts +1 -1
  242. package/dist-versioned/components/link/link.d.ts +1 -1
  243. package/dist-versioned/components/loader/loader.d.ts +1 -1
  244. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  245. package/dist-versioned/components/menu/menu.d.ts +1 -1
  246. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  247. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  248. package/dist-versioned/components/navigation-item/navigation-item.js +1 -1
  249. package/dist-versioned/components/notification/notification.d.ts +1 -1
  250. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  251. package/dist-versioned/components/option/option.d.ts +1 -1
  252. package/dist-versioned/components/popup/popup.d.ts +1 -1
  253. package/dist-versioned/components/progress-bar/progress-bar.d.ts +1 -1
  254. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  255. package/dist-versioned/components/radio/radio.d.ts +1 -1
  256. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  257. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  258. package/dist-versioned/components/range/range.d.ts +1 -1
  259. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  260. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  261. package/dist-versioned/components/select/select.d.ts +1 -1
  262. package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
  263. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  264. package/dist-versioned/components/step/step.d.ts +1 -1
  265. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  266. package/dist-versioned/components/switch/switch.d.ts +1 -1
  267. package/dist-versioned/components/tab/tab.d.ts +1 -1
  268. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  269. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  270. package/dist-versioned/components/tag/tag.d.ts +1 -1
  271. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  272. package/dist-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  273. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  274. package/dist-versioned/components/video/video.d.ts +1 -1
  275. package/dist-versioned/custom-elements.json +253 -253
  276. package/dist-versioned/internal/form.js +2 -2
  277. package/dist-versioned/solid-components.css +2 -2
  278. package/dist-versioned/solid-components.js +2 -2
  279. package/dist-versioned/vscode.html-custom-data.json +109 -109
  280. package/dist-versioned/web-types.json +165 -165
  281. package/package.json +1 -1
  282. package/cdn/chunks/chunk.7R76DQCY.js +0 -2
  283. package/cdn-versioned/chunks/chunk.7R76DQCY.js +0 -2
@@ -6,7 +6,7 @@ import{a as R}from"./chunk.ERP45OHF.js";import{a as B}from"./chunk.X2GM34WQ.js";
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-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"||t.key==="Enter"||t.key===" ")&&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"||t.key==="Enter"||t.key===" ")&&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.deletedTagLabel="",this.deletedTagLabel=this.localize.term("removed",e.textContent),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(o=>o instanceof HTMLSlotElement&&o.name==="removable-indicator");if(this.disabled||i)return;(this.open?this.hide():this.show()).then(()=>{setTimeout(()=>this.displayInput.focus({preventScroll:!0}))})}async handleComboboxKeyDown(t){var e;if(t.key==="Tab"){if(this.displayInputValue="",this.displayInput.value="",this.open&&((e=this.shadowRoot)==null?void 0:e.activeElement)===this.displayInput){t.preventDefault(),this.open=!1,await this.updateComplete,this.displayInput.focus();return}return}this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearCombobox()}handleSearchClick(t){t.stopPropagation(),!(this.disabled||this.visuallyDisabled)&&this.emit("sd-search")}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-option"),a=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!==a&&(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(),a=e.indexOf(i),o=Math.max(0,a);if(t){let n=a+1;o=n>e.length-1?0:n}else{let n=a-1;o=n<0?e.length-1:n}this.setCurrentOption(e[o],new KeyboardEvent("keydown")),H(this.getCurrentOption(),this.listbox,"vertical","auto")}getAllFilteredOptions(){return[...this.filteredWrapper.querySelectorAll("sd-option")]}getCurrentOption(){return this.getAllFilteredOptions().find(t=>t.current)}setCurrentOption(t,e){let i=this.getAllFilteredOptions();this.displayInput.removeAttribute("aria-activedescendant"),i.forEach(a=>{a.current=!1,a.setAttribute("aria-selected","false"),a.isKeyboardFocus=!1}),t&&(t.current=!0,t.setAttribute("aria-selected","true"),this.displayInput.setAttribute("aria-activedescendant",t.id)),t&&(e==null?void 0:e.type)==="keydown"&&(t.isKeyboardFocus=!0)}toggleOptionSelection(t,e){let a=this.getSlottedOptions().find(o=>o.value&&t.value?o.value===t.value:o.getTextLabel()===t.getTextLabel());a&&(a.selected=e!=null?e:!a.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,a;let t=this.selectedOptions.some(o=>o?this.isOptionSelected(o):!1);this.multiple?(!t&&this.selectedOptions.length>0?this.value=[...this.value,...this.selectedOptions.map(o=>o.value||o.getTextLabel())]:this.value=this.selectedOptions.map(o=>(o==null?void 0:o.value)||(o==null?void 0:o.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=((a=this.selectedOptions[0])==null?void 0:a.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 O,v,x;let a=i.cloneNode(!0);if(a.current=a.value===((O=this.lastOption)==null?void 0:O.value),a.selected=i.selected,a.checkbox=i.checkbox,a.size=i.size,!(((v=i.parentElement)==null?void 0:v.tagName.toLowerCase())==="sd-optgroup"))return a;let n=i.parentElement,g=(x=n.querySelector('[slot="label"]'))==null?void 0:x.cloneNode(!0),c=e.find(b=>b.id===n.id);if(c){c==null||c.appendChild(a),g&&(c==null||c.appendChild(g));return}let h=n.cloneNode();return h.appendChild(a),g&&h.appendChild(g),e.push(h),h}).filter(Boolean)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleFilterChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}handleUseTagsChange(){let t=this.getAllFilteredOptions();customElements.get("sd-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 C(this),this.listbox.hidden=!1,this.popup.active=!0;let{keyframes:i,options:a}=k(this,"combobox.show",{dir:this.localize.dir()});await S(this.popup.popup,i,a),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 C(this);let{keyframes:t,options:e}=k(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")}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,Promise.race([w(this,"sd-after-show"),w(this,"sd-error")])}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.displayInputValue="",this.open=!1,w(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 K(D(this.defaultSlot)).flat()}getSlottedOptGroups(){return U(D(this.defaultSlot))}async handleDefaultSlotChange(){if(!customElements.get("sd-option")){customElements.whenDefined("sd-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((a,o)=>{this.multiple&&(a.checkbox=!0),a.id=a.id||`sd-combobox-option-${o}`}),e.forEach((a,o)=>{a.id=a.id||`sd-combobox-optgroup-${o}`}),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"),a=this.label?!0:!!e,o=this.helpText?!0:!!i,n=this.clearable&&!this.disabled&&!this.visuallyDisabled,g=t.left,c=this.value!==null&&String(this.value).length>0,h=this.floatingLabel&&a&&(this.hasFocus||c),O=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",v=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",x=this.disabled||this.visuallyDisabled?"text-neutral-500":"sd-icon-fill-primary",b={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],z={sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size],y={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],N=this.size==="lg"?this.floatingLabel?h?"py-3":"py-4":"py-2":this.floatingLabel?h?"py-2":"py-3":"py-1",q={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return p`<div part="form-control" class="${d("relative text-left",v,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}">${a&&!this.floatingLabel?p`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${d(a&&"inline-block",a&&(this.visuallyDisabled||this.disabled)?"text-neutral-500":"form-control-color-text")}" aria-hidden="${a?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label></div>`:null} <span aria-live="polite" class="sr-only">${this.deletedTagLabel}</span><div part="form-control-input" class="relative w-full bg-white text-black">${a&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${d("absolute left-4 z-20 pointer-events-none transition-all duration-200",g?q:"left-4",h?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 form-control-color-text",h&&"mt-1")}" for="input"><span class="${d("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",h&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${d("absolute top-0 w-full h-full pointer-events-none border form-control-border-radius z-10 transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[O],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${d("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip 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-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"||t.key==="Enter"||t.key===" ")&&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"||t.key==="Enter"||t.key===" ")&&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.deletedTagLabel="",this.deletedTagLabel=this.localize.term("removed",e.textContent),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(o=>o instanceof HTMLSlotElement&&o.name==="removable-indicator");if(this.disabled||i)return;(this.open?this.hide():this.show()).then(()=>{setTimeout(()=>this.displayInput.focus({preventScroll:!0}))})}async handleComboboxKeyDown(t){var e;if(t.key==="Tab"){if(this.displayInputValue="",this.displayInput.value="",this.open&&((e=this.shadowRoot)==null?void 0:e.activeElement)===this.displayInput){t.preventDefault(),this.open=!1,await this.updateComplete,this.displayInput.focus();return}return}this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearCombobox()}handleSearchClick(t){t.stopPropagation(),!(this.disabled||this.visuallyDisabled)&&this.emit("sd-search")}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-option"),a=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!==a&&(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(),a=e.indexOf(i),o=Math.max(0,a);if(t){let n=a+1;o=n>e.length-1?0:n}else{let n=a-1;o=n<0?e.length-1:n}this.setCurrentOption(e[o],new KeyboardEvent("keydown")),H(this.getCurrentOption(),this.listbox,"vertical","auto")}getAllFilteredOptions(){return[...this.filteredWrapper.querySelectorAll("sd-option")]}getCurrentOption(){return this.getAllFilteredOptions().find(t=>t.current)}setCurrentOption(t,e){let i=this.getAllFilteredOptions();this.displayInput.removeAttribute("aria-activedescendant"),i.forEach(a=>{a.current=!1,a.setAttribute("aria-selected","false"),a.isKeyboardFocus=!1}),t&&(t.current=!0,t.setAttribute("aria-selected","true"),this.displayInput.setAttribute("aria-activedescendant",t.id)),t&&(e==null?void 0:e.type)==="keydown"&&(t.isKeyboardFocus=!0)}toggleOptionSelection(t,e){let a=this.getSlottedOptions().find(o=>o.value&&t.value?o.value===t.value:o.getTextLabel()===t.getTextLabel());a&&(a.selected=e!=null?e:!a.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,a;let t=this.selectedOptions.some(o=>o?this.isOptionSelected(o):!1);this.multiple?(!t&&this.selectedOptions.length>0?this.value=[...this.value,...this.selectedOptions.map(o=>o.value||o.getTextLabel())]:this.value=this.selectedOptions.map(o=>(o==null?void 0:o.value)||(o==null?void 0:o.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=((a=this.selectedOptions[0])==null?void 0:a.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 O,v,x;let a=i.cloneNode(!0);if(a.current=a.value===((O=this.lastOption)==null?void 0:O.value),a.selected=i.selected,a.checkbox=i.checkbox,a.size=i.size,!(((v=i.parentElement)==null?void 0:v.tagName.toLowerCase())==="sd-optgroup"))return a;let n=i.parentElement,g=(x=n.querySelector('[slot="label"]'))==null?void 0:x.cloneNode(!0),c=e.find(b=>b.id===n.id);if(c){c==null||c.appendChild(a),g&&(c==null||c.appendChild(g));return}let h=n.cloneNode();return h.appendChild(a),g&&h.appendChild(g),e.push(h),h}).filter(Boolean)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleFilterChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}handleUseTagsChange(){let t=this.getAllFilteredOptions();customElements.get("sd-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 C(this),this.listbox.hidden=!1,this.popup.active=!0;let{keyframes:i,options:a}=k(this,"combobox.show",{dir:this.localize.dir()});await S(this.popup.popup,i,a),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 C(this);let{keyframes:t,options:e}=k(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")}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,Promise.race([w(this,"sd-after-show"),w(this,"sd-error")])}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.displayInputValue="",this.open=!1,w(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 K(D(this.defaultSlot)).flat()}getSlottedOptGroups(){return U(D(this.defaultSlot))}async handleDefaultSlotChange(){if(!customElements.get("sd-option")){customElements.whenDefined("sd-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((a,o)=>{this.multiple&&(a.checkbox=!0),a.id=a.id||`sd-combobox-option-${o}`}),e.forEach((a,o)=>{a.id=a.id||`sd-combobox-optgroup-${o}`}),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"),a=this.label?!0:!!e,o=this.helpText?!0:!!i,n=this.clearable&&!this.disabled&&!this.visuallyDisabled,g=t.left,c=this.value!==null&&String(this.value).length>0,h=this.floatingLabel&&a&&(this.hasFocus||c),O=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",v=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",x=this.disabled||this.visuallyDisabled?"text-neutral-500":"sd-icon-fill-primary",b={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],z={sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size],y={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],N=this.size==="lg"?this.floatingLabel?"py-3":"py-2":this.floatingLabel?h?"py-2":"py-3":"py-1",q={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return p`<div part="form-control" class="${d("relative text-left",v,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}">${a&&!this.floatingLabel?p`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${d(a&&"inline-block",a&&(this.visuallyDisabled||this.disabled)?"text-neutral-500":"form-control-color-text")}" aria-hidden="${a?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label></div>`:null} <span aria-live="polite" class="sr-only">${this.deletedTagLabel}</span><div part="form-control-input" class="relative w-full bg-white text-black">${a&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${d("absolute left-4 z-20 pointer-events-none transition-all duration-200",g?q:"left-4",h?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 form-control-color-text",h&&"mt-1")}" for="input"><span class="${d("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",h&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${d("absolute top-0 w-full h-full pointer-events-none border form-control-border-radius z-10 transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[O],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${d("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
10
10
  popup:popup__content,
11
- "><div part="combobox" class="${d("relative w-full px-4 flex flex-row items-center form-control-border-radius transition-colors hover:duration-fast ease-in-out",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:[@media(hover:hover)]:form-control--hover-color-background",this.open&&"shadow transition-shadow duration-medium ease-in-out",["invalid","activeInvalid"].includes(O)&&"form-control--invalid-color-background",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size],N)}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}">${t.left?p`<slot part="left" name="left" class="${d("inline-flex",z,x,y)}"></slot>`:""}<div class="${d("flex flex-wrap items-center gap-1 w-full min-w-0 relative",this.floatingLabel&&"mt-4")}">${this.multiple&&this.useTags&&this.tags&&this.tags.length>0?p`<div part="tags" class="${d("flex flex-wrap items-center gap-1 min-w-0",z)}">${this.tags}</div>`:null} <input id="display-input" name="${this.name}" form="${this.form}" part="display-input" class="${d("appearance-none outline-none bg-transparent flex-auto min-w-0",v,this.selectedTextLabel&&!this.multiple?"placeholder:text-black":"placeholder:text-neutral-700",this.size==="sm"?h?"h-4":"h-6":h?"h-6":"h-8")}" type="text" placeholder="${!this.floatingLabel||h?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><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(L=>L==null?void 0:L.getTextLabel()).join(", ")}</div><input class="${d("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",v)}" 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}"> ${n?p`<button part="clear-button" class="${d("flex justify-center",b,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-icon class="${d("text-neutral-700",y)}" name="closing-round" library="_internal"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-icon part="invalid-icon" class="${d(b,y,"text-error")}" library="_internal" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-icon part="valid-icon" class="${d("flex-shrink-0 text-success",b,y)}" library="_internal" name="confirm-circle"></sd-icon>`:""}<slot name="right" part="right" class="${d("inline-flex ml-2 leading-[0]",this.disabled||this.visuallyDisabled?"text-neutral-500":"sd-icon-fill-primary",y)}">${this.type!=="search"?p`<sd-icon class="${d("transition-transform duration-medium ease-in-out",this.open?"rotate-180":"rotate-0")}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-icon>`:""}</slot>${this.type==="search"?p`<button class="${d("flex items-center sd-interactive",b)}" type="button" @mousedown="${this.preventLoosingFocus}" @click="${this.handleSearchClick}"><sd-icon class="${d(x,y)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-icon></button>`:p`<button class="sd-interactive combobox-button absolute top-2 sd-color-icon-fill-primary" tabindex="-1" aria-hidden="true" @keydown="${this.handleComboboxMouseDown}" type="button"><span class="sr-only">${this.localize.term("open")}</span></button>`}</div><div id="listbox" role="${P(this.multiple?void 0:"listbox")}" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${d("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow-listbox transition-shadow duration-medium ease-in-out",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 form-control__listbox-border-bottom-right-radius form-control__listbox-border-bottom-left-radius":"border-r-2 border-t-2 border-l-2 form-control__listbox-border-top-right-radius form-control__listbox-border-top-left-radius")}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox">${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-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${d("text-sm mt-1",o?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!o}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};s.styles=[...E.styles,V`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
11
+ "><div part="combobox" class="${d("relative w-full px-4 flex flex-row items-center form-control-border-radius transition-colors hover:duration-fast ease-in-out",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:[@media(hover:hover)]:form-control--hover-color-background",this.open&&"shadow transition-shadow duration-medium ease-in-out",["invalid","activeInvalid"].includes(O)&&"form-control--invalid-color-background",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size],N)}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}">${t.left?p`<slot part="left" name="left" class="${d("inline-flex",z,x,y)}"></slot>`:""}<div class="${d("flex flex-wrap items-center gap-1 w-full min-w-0 relative",this.floatingLabel&&h&&"mt-4",this.floatingLabel&&!h&&this.size==="lg"&&"mt-2")}">${this.multiple&&this.useTags&&this.tags&&this.tags.length>0?p`<div part="tags" class="${d("flex flex-wrap items-center gap-1 min-w-0",z)}">${this.tags}</div>`:null} <input id="display-input" name="${this.name}" form="${this.form}" part="display-input" class="${d("appearance-none outline-none bg-transparent flex-auto min-w-0",v,this.selectedTextLabel&&!this.multiple?"placeholder:text-black":"placeholder:text-neutral-700",this.size==="sm"?h?"h-4":"h-6":h?"h-6":"h-8")}" type="text" placeholder="${!this.floatingLabel||h?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><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(L=>L==null?void 0:L.getTextLabel()).join(", ")}</div><input class="${d("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",v)}" 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}"> ${n?p`<button part="clear-button" class="${d("flex justify-center",b,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-icon class="${d("text-neutral-700",y)}" name="closing-round" library="_internal"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-icon part="invalid-icon" class="${d(b,y,"text-error")}" library="_internal" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-icon part="valid-icon" class="${d("flex-shrink-0 text-success",b,y)}" library="_internal" name="confirm-circle"></sd-icon>`:""}<slot name="right" part="right" class="${d("inline-flex ml-2 leading-[0]",this.disabled||this.visuallyDisabled?"text-neutral-500":"sd-icon-fill-primary",y)}">${this.type!=="search"?p`<sd-icon class="${d("transition-transform duration-medium ease-in-out",this.open?"rotate-180":"rotate-0")}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-icon>`:""}</slot>${this.type==="search"?p`<button class="${d("flex items-center sd-interactive",b)}" type="button" @mousedown="${this.preventLoosingFocus}" @click="${this.handleSearchClick}"><sd-icon class="${d(x,y)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-icon></button>`:p`<button class="sd-interactive combobox-button absolute top-2 sd-color-icon-fill-primary" tabindex="-1" aria-hidden="true" @keydown="${this.handleComboboxMouseDown}" type="button"><span class="sr-only">${this.localize.term("open")}</span></button>`}</div><div id="listbox" role="${P(this.multiple?void 0:"listbox")}" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${d("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow-listbox transition-shadow duration-medium ease-in-out",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 form-control__listbox-border-bottom-right-radius form-control__listbox-border-bottom-left-radius":"border-r-2 border-t-2 border-l-2 form-control__listbox-border-top-right-radius form-control__listbox-border-top-left-radius")}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox">${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-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${d("text-sm mt-1",o?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!o}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};s.styles=[...E.styles,V`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
12
12
  :host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{right:var(--sd-spacing-4);height:var(--sd-spacing-4);width:var(--sd-spacing-4)}:host([size=md]) .combobox-button{right:.85rem;height:var(--sd-spacing-6);width:var(--sd-spacing-6)}:host([size=lg]) .combobox-button{right:var(--sd-spacing-3);height:var(--sd-spacing-8);width:var(--sd-spacing-8)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-tag::part(base){border-radius:var(--sd-radius);border-width:var(--sd-combobox__tag-border-width,var(--sd-spacing-0\\.25));padding-inline:var(--sd-spacing-1)}sd-tag::part(content){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--tag-max-width,15ch)}sd-tag[size=lg]::part(base){padding-inline:var(--sd-spacing-2)}sd-tag[disabled=false]::part(base):hover{background-color:rgba(var(--sd-color-background-primary-100))}[part=filtered-listbox] sd-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;--tw-font-weight:var(--sd-font-weight-bold);font-weight:var(--sd-font-weight-bold);color:inherit}[part=chevron]{color:rgb(var(--sd-color-icon-fill-primary))}:host([disabled])::part(chevron),:host([visually-disabled])::part(chevron){color:rgba(var(--sd-color-icon-fill-neutral-500,--sd-color-neutral-500))}@property --tw-font-weight{syntax:"*";inherits:false}`],l([m("sd-popup")],s.prototype,"popup",2),l([m('[part="combobox"]')],s.prototype,"combobox",2),l([m('[part="display-input"]')],s.prototype,"displayInput",2),l([m(".value-input")],s.prototype,"valueInput",2),l([m('[part="listbox"]')],s.prototype,"listbox",2),l([m('[part="tags"]')],s.prototype,"tagWrapper",2),l([m('[part="filtered-listbox"]')],s.prototype,"filteredWrapper",2),l([m("slot:not([name])")],s.prototype,"defaultSlot",2),l([m("#invalid-message")],s.prototype,"invalidMessage",2),l([u()],s.prototype,"hasFocus",2),l([u()],s.prototype,"displayInputValue",2),l([u()],s.prototype,"selectedTextLabel",2),l([u()],s.prototype,"selectedOptions",2),l([u()],s.prototype,"filteredOptions",2),l([u()],s.prototype,"allOptions",2),l([u()],s.prototype,"lastOption",2),l([u()],s.prototype,"showValidStyle",2),l([u()],s.prototype,"showInvalidStyle",2),l([u()],s.prototype,"deletedTagLabel",2),l([r({reflect:!0})],s.prototype,"name",2),l([r({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],s.prototype,"value",2),l([R()],s.prototype,"defaultValue",2),l([r({type:String,reflect:!0})],s.prototype,"size",2),l([r({type:String,reflect:!0})],s.prototype,"placeholder",2),l([r({type:String,attribute:"max-options-tag-label",reflect:!0})],s.prototype,"maxOptionsTagLabel",2),l([r({type:Boolean,reflect:!0})],s.prototype,"disabled",2),l([r({type:Boolean,reflect:!0,attribute:"visually-disabled"})],s.prototype,"visuallyDisabled",2),l([r({type:Boolean,reflect:!0})],s.prototype,"clearable",2),l([r({type:Boolean,reflect:!0})],s.prototype,"open",2),l([r({type:Boolean,reflect:!0})],s.prototype,"hoist",2),l([r({type:String,reflect:!0})],s.prototype,"label",2),l([r({type:String,reflect:!0})],s.prototype,"placement",2),l([r({type:String,attribute:"help-text",reflect:!0})],s.prototype,"helpText",2),l([r({type:String,reflect:!0})],s.prototype,"form",2),l([r({type:Boolean,reflect:!0})],s.prototype,"required",2),l([r({attribute:"floating-label",type:Boolean,reflect:!0})],s.prototype,"floatingLabel",2),l([r({type:String,reflect:!0})],s.prototype,"type",2),l([u()],s.prototype,"currentPlacement",2),l([r()],s.prototype,"getOption",2),l([r({type:Boolean,reflect:!0})],s.prototype,"multiple",2),l([r({type:Boolean,reflect:!0})],s.prototype,"useTags",2),l([r({type:Number,reflect:!0,attribute:"max-options-visible"})],s.prototype,"maxOptionsVisible",2),l([r({type:Boolean,reflect:!0,attribute:"style-on-valid"})],s.prototype,"styleOnValid",2),l([r()],s.prototype,"filter",2),l([r()],s.prototype,"getTag",2),l([f("filter",{waitUntilFirstUpdate:!0})],s.prototype,"handleFilterChange",1),l([f("useTags",{waitUntilFirstUpdate:!0})],s.prototype,"handleUseTagsChange",1),l([f("size",{waitUntilFirstUpdate:!0})],s.prototype,"applySizeToOptions",1),l([f(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],s.prototype,"handleDisabledChange",1),l([f("value",{waitUntilFirstUpdate:!0})],s.prototype,"handleValueChange",1),l([f("displayInputValue",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisplayInputValueChange",1),l([f("open",{waitUntilFirstUpdate:!0})],s.prototype,"handleOpenChange",1),l([f(["size","floatingLabel"])],s.prototype,"handleSizeChange",1),s=l([F("sd-combobox")],s);T("combobox.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});T("combobox.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{s as a};
@@ -0,0 +1,2 @@
1
+ import{a as o}from"./chunk.LHSR56PH.js";import{a as y}from"./chunk.CGQ2BPPZ.js";import{a as h,b as a}from"./chunk.NL7YFV4O.js";import{a as b}from"./chunk.VAM5SM3O.js";import{a as s}from"./chunk.UFTAQNZB.js";import{a as m,b as r,d as p,h as f}from"./chunk.VMZSSKC5.js";import{b as v}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends f{constructor(){super(...arguments);this.hasSlotController=new y(this,"[default]","description","children");this.localize=new b(this);this.vertical=!1;this.size="md";this.current=!1;this.disabled=!1;this.stacked=!1;this.chevron=!1;this.relaxed=!1;this.divider=!1;this.indented=!1;this.open=!1;this.separated=!1}get isButton(){return!this.href&&!this.hasSlotController.test("children")}get isLink(){return!!this.href}get isAccordion(){return!this.separated&&!this.href&&this.hasSlotController.test("children")}get isIconOnly(){if(!this.defaultSlot)return!1;let i=this.defaultSlot.assignedNodes({flatten:!0});return i.length>0&&i.every(n=>{var c;return n.nodeType===Node.TEXT_NODE?!((c=n.textContent)!=null&&c.trim()):n.nodeType===Node.ELEMENT_NODE?n.tagName.toLowerCase()==="sd-icon":!1})}get isStackedHorizontal(){return!this.vertical&&this.stacked}handleClickButton(i){this.disabled&&(i.preventDefault(),i.stopPropagation())}handleClickSummary(i){i.preventDefault(),i.stopPropagation(),this.disabled||(this.open?this.hideDetails():this.showDetails())}hideDetails(){this.open=!1,this.emit("sd-hide",{cancelable:!0})}showDetails(){this.open=!0,this.emit("sd-show",{cancelable:!0})}get calculatePaddingX(){return this.relaxed&&this.indented?"pl-8 pr-4":this.relaxed?"px-4":this.indented?"pl-4":""}get tag(){return this.separated&&!this.isLink?h`div`:this.isAccordion&&!this.isLink?h`summary`:this.isLink?h`a`:h`button`}focus(){var i;this.disabled||(i=this.button)==null||i.focus()}blur(){var i;(i=this.button)==null||i.blur()}render(){let i=this.tag,n=this.isLink,c=this.isButton,l=this.isAccordion,x=this.isIconOnly,d={label:this.hasSlotController.test("[default]"),main:this.hasSlotController.test("main"),description:this.hasSlotController.test("description"),children:this.hasSlotController.test("children")},g=this.vertical?"py-3":this.isStackedHorizontal?"py-1":"py-2",u=a`<${i} part="base" class="${s("flex items-center cursor-pointer relative focus-visible:focus-outline group hover:bg-neutral-200 transition-colors duration-fast ease-in-out min-h-[48px] navigable-border-radius",this.isStackedHorizontal?"text-xs leading-4.5":{md:"navigable-font-size",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"sd-navigation-item-color-text",this.current&&!this.disabled&&"sd-navigation-item--current-color-text",this.current&&!this.isStackedHorizontal&&"font-bold",!this.current&&!this.isStackedHorizontal&&"choice-control-font-weight",!l&&"w-full",this.divider&&this.vertical&&"mt-0.25",!this.vertical&&(this.isStackedHorizontal?"inline-flex flex-col items-center justify-center text-center rounded-full wrap":"inline-flex items-center"),!this.separated&&"hover:bg-neutral-200 group transition-colors duration-fast ease-in-out min-h-[48px]",x?"justify-center aspect-square p-3":this.isStackedHorizontal?"px-8":"px-4")}" aria-current="${o(this.current?"page":void 0)}" aria-disabled="${this.disabled}" aria-labelledby="content" aria-describedby="description" ?disabled="${o(c?this.disabled:void 0)}" href="${o(n?this.href:void 0)}" target="${o(n?this.target:void 0)}" download="${o(n?this.download:void 0)}" rel="${o(n&&this.target?"noreferrer noopener":void 0)}" tabindex="${this.disabled?"-1":"0"}" @click="${this.separated?void 0:l?this.handleClickSummary:c?this.handleClickButton:void 0}"><div part="current-indicator" class="${s("absolute bg-accent pointer-events-none navigable__current-indicator-border-radius",this.vertical?"navigable__current-indicator-width h-[calc(100%-16px)] top-2 left-0 group-hover:h-full group-hover:top-0":this.isStackedHorizontal?"h-[2px] left-6 right-6 bottom-0":"navigable__current-indicator-height w-[calc(100%-16px)] left-2 bottom-0 group-hover:w-full group-hover:left-0 transition-all",this.disabled&&"bg-neutral-500")}"></div><div class="${s("inline-flex flex-col justify-center gap-1 w-full h-full",this.isStackedHorizontal&&"flex-col items-center")}"><span part="content-area" class="${s("relative inline-flex justify-between items-center",l?"grow":"w-full",this.isStackedHorizontal&&"justify-center",d.description&&"pt-3",!d.description&&!this.separated&&g,this.calculatePaddingX)}">${this.divider&&this.vertical?a`<sd-divider part="divider" class="${s("w-full transition-all absolute -top-0.25 left-0",this.calculatePaddingX)}"></sd-divider>`:""} <span id="content" part="content-container" class="${s("inline-flex items-center",this.vertical?"flex-auto gap-2":this.isStackedHorizontal?"text-center":"flex-auto flex-col justify-center gap-1 text-center")}"><slot part="content" class="${s("inline-flex items-center",this.vertical?"gap-2":this.isStackedHorizontal?"flex-col justify-center gap-1 text-center":"justify-center gap-1 text-center")}"></slot></span>${this.chevron||d.children&&this.vertical&&!this.separated?a`<sd-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${s("h-6 w-6 ml-2 transition-all",l?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon>`:""} </span>${d.description&&this.vertical?a`<slot id="description" name="description" part="description" class="${s("inline-block text-sm text-left font-normal text-black pb-3",l||this.separated?"grow":"w-full",this.calculatePaddingX)}"></slot>`:""}</div></${i}>`;return this.separated?a`<div part="details" id="navigation-item-details" class="relative flex flex-col"><div class="flex items-start">${u} ${d.children&&this.vertical?a`<button type="button" title="${this.open?this.localize.term("collapseNavigationItem"):this.localize.term("expandNavigationItem")}" class="sd-interactive sd-interactive--reset -mt-1" @click="${this.handleClickSummary}"><sd-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${s("m-4 h-6 w-6 transition-all",l||this.separated?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon></button>`:""}</div>${this.open?a`<slot name="children"></slot>`:""}</div>`:l?a`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative">${u}<slot name="children"></slot></details>`:a`${u}`}};t.styles=[...f.styles,v`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
+ :host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}:host([stacked]:not([vertical])) ::slotted(sd-icon){height:var(--sd-spacing-6);width:var(--sd-spacing-6)}.sd-navigation-item--current-color-text{color:rgb(var(--sd-navigation-item--current-color-text,var(--sd-navigation-item-color-text)))}details summary::-webkit-details-marker{display:none}[part=current-indicator]{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-0);--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);transition:width var(--sd-duration-fast) ease-in-out,height var(--sd-duration-fast) ease-in-out,left var(--sd-duration-fast) ease-in-out,top var(--sd-duration-fast) ease-in-out,opacity var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out var(--sd-duration-fast)}:host([current]) [part=current-indicator]{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-100);transition:width var(--sd-duration-fast) ease-in-out,height var(--sd-duration-fast) ease-in-out,left var(--sd-duration-fast) ease-in-out,top var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-duration{syntax:"*";inherits:false}`],e([p('[part="base"]')],t.prototype,"button",2),e([p("slot:not([name])")],t.prototype,"defaultSlot",2),e([r({type:Boolean,reflect:!0})],t.prototype,"vertical",2),e([r({type:String,reflect:!0})],t.prototype,"size",2),e([r({reflect:!0})],t.prototype,"href",2),e([r({type:String,reflect:!0})],t.prototype,"target",2),e([r({reflect:!0})],t.prototype,"download",2),e([r({type:Boolean,reflect:!0})],t.prototype,"current",2),e([r({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([r({type:Boolean,reflect:!0})],t.prototype,"stacked",2),e([r({type:Boolean,reflect:!0})],t.prototype,"chevron",2),e([r({type:Boolean,reflect:!0})],t.prototype,"relaxed",2),e([r({type:Boolean,reflect:!0})],t.prototype,"divider",2),e([r({type:Boolean,reflect:!0})],t.prototype,"indented",2),e([r({type:Boolean,reflect:!0})],t.prototype,"open",2),e([r({type:Boolean,reflect:!0})],t.prototype,"separated",2),t=e([m("sd-navigation-item")],t);export{t as a};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.AX6E7G7K.js";import"../../chunks/chunk.54DO3JVH.js";import"../../chunks/chunk.TTYJJ4T5.js";import"../../chunks/chunk.ERP45OHF.js";import"../../chunks/chunk.X2GM34WQ.js";import"../../chunks/chunk.W7A3TU2Z.js";import"../../chunks/chunk.2FRV4JI3.js";import"../../chunks/chunk.3L472FD4.js";import"../../chunks/chunk.LZRL7OLU.js";import"../../chunks/chunk.LHSR56PH.js";import"../../chunks/chunk.CGQ2BPPZ.js";import"../../chunks/chunk.B2NUKX6G.js";import"../../chunks/chunk.NL7YFV4O.js";import"../../chunks/chunk.KLRPP4NQ.js";import"../../chunks/chunk.YGYXL3BZ.js";import"../../chunks/chunk.W5O4FM6B.js";import"../../chunks/chunk.QQD62QOV.js";import"../../chunks/chunk.HFID7R26.js";import"../../chunks/chunk.TRGIF57L.js";import"../../chunks/chunk.MB7SWCJ2.js";import"../../chunks/chunk.LGQNGLG3.js";import"../../chunks/chunk.PYHYYOBE.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.VAM5SM3O.js";import"../../chunks/chunk.PB7NJRWC.js";import"../../chunks/chunk.NADOKI3X.js";import"../../chunks/chunk.4XDRYWQQ.js";import"../../chunks/chunk.UFTAQNZB.js";import"../../chunks/chunk.NYKJXI3Q.js";import"../../chunks/chunk.VMZSSKC5.js";import"../../chunks/chunk.OBAEIKIV.js";import"../../chunks/chunk.W4QBFD6E.js";import"../../chunks/chunk.6EV4YU6C.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.GNQ2AH6R.js";import"../../chunks/chunk.54DO3JVH.js";import"../../chunks/chunk.TTYJJ4T5.js";import"../../chunks/chunk.ERP45OHF.js";import"../../chunks/chunk.X2GM34WQ.js";import"../../chunks/chunk.W7A3TU2Z.js";import"../../chunks/chunk.2FRV4JI3.js";import"../../chunks/chunk.3L472FD4.js";import"../../chunks/chunk.LZRL7OLU.js";import"../../chunks/chunk.LHSR56PH.js";import"../../chunks/chunk.CGQ2BPPZ.js";import"../../chunks/chunk.B2NUKX6G.js";import"../../chunks/chunk.NL7YFV4O.js";import"../../chunks/chunk.KLRPP4NQ.js";import"../../chunks/chunk.YGYXL3BZ.js";import"../../chunks/chunk.W5O4FM6B.js";import"../../chunks/chunk.QQD62QOV.js";import"../../chunks/chunk.HFID7R26.js";import"../../chunks/chunk.TRGIF57L.js";import"../../chunks/chunk.MB7SWCJ2.js";import"../../chunks/chunk.LGQNGLG3.js";import"../../chunks/chunk.PYHYYOBE.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.VAM5SM3O.js";import"../../chunks/chunk.PB7NJRWC.js";import"../../chunks/chunk.NADOKI3X.js";import"../../chunks/chunk.4XDRYWQQ.js";import"../../chunks/chunk.UFTAQNZB.js";import"../../chunks/chunk.NYKJXI3Q.js";import"../../chunks/chunk.VMZSSKC5.js";import"../../chunks/chunk.OBAEIKIV.js";import"../../chunks/chunk.W4QBFD6E.js";import"../../chunks/chunk.6EV4YU6C.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.7R76DQCY.js";import"../../chunks/chunk.ISEX6JDK.js";import"../../chunks/chunk.LHSR56PH.js";import"../../chunks/chunk.CGQ2BPPZ.js";import"../../chunks/chunk.NL7YFV4O.js";import"../../chunks/chunk.YGYXL3BZ.js";import"../../chunks/chunk.W5O4FM6B.js";import"../../chunks/chunk.QQD62QOV.js";import"../../chunks/chunk.HFID7R26.js";import"../../chunks/chunk.TRGIF57L.js";import"../../chunks/chunk.MB7SWCJ2.js";import"../../chunks/chunk.LGQNGLG3.js";import"../../chunks/chunk.PYHYYOBE.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.VAM5SM3O.js";import"../../chunks/chunk.PB7NJRWC.js";import"../../chunks/chunk.NADOKI3X.js";import"../../chunks/chunk.4XDRYWQQ.js";import"../../chunks/chunk.UFTAQNZB.js";import"../../chunks/chunk.NYKJXI3Q.js";import"../../chunks/chunk.VMZSSKC5.js";import"../../chunks/chunk.OBAEIKIV.js";import"../../chunks/chunk.W4QBFD6E.js";import"../../chunks/chunk.6EV4YU6C.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.MXPGGLKX.js";import"../../chunks/chunk.ISEX6JDK.js";import"../../chunks/chunk.LHSR56PH.js";import"../../chunks/chunk.CGQ2BPPZ.js";import"../../chunks/chunk.NL7YFV4O.js";import"../../chunks/chunk.YGYXL3BZ.js";import"../../chunks/chunk.W5O4FM6B.js";import"../../chunks/chunk.QQD62QOV.js";import"../../chunks/chunk.HFID7R26.js";import"../../chunks/chunk.TRGIF57L.js";import"../../chunks/chunk.MB7SWCJ2.js";import"../../chunks/chunk.LGQNGLG3.js";import"../../chunks/chunk.PYHYYOBE.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.VAM5SM3O.js";import"../../chunks/chunk.PB7NJRWC.js";import"../../chunks/chunk.NADOKI3X.js";import"../../chunks/chunk.4XDRYWQQ.js";import"../../chunks/chunk.UFTAQNZB.js";import"../../chunks/chunk.NYKJXI3Q.js";import"../../chunks/chunk.VMZSSKC5.js";import"../../chunks/chunk.OBAEIKIV.js";import"../../chunks/chunk.W4QBFD6E.js";import"../../chunks/chunk.6EV4YU6C.js";export{a as default};
@@ -23669,7 +23669,7 @@
23669
23669
  "package": {
23670
23670
  "name": "@solid-design-system/components",
23671
23671
  "description": "Solid Design System: Components",
23672
- "version": "6.24.1",
23672
+ "version": "6.24.2",
23673
23673
  "author": "Union Investment",
23674
23674
  "homepage": "https://solid-design-system.fe.union-investment.de/docs/",
23675
23675
  "license": "MIT"