@solid-design-system/components 7.0.0-next.2 → 7.0.0-next.3

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 (289) hide show
  1. package/cdn/chunks/chunk.2MPVWXFB.js +2 -0
  2. package/cdn/chunks/{chunk.P6Y5AQHG.js → chunk.D7PE6JKX.js} +2 -2
  3. package/cdn/components/input/input.d.ts +1 -1
  4. package/cdn/components/input/input.js +1 -1
  5. package/cdn/components/textarea/textarea.d.ts +1 -1
  6. package/cdn/components/textarea/textarea.js +1 -1
  7. package/cdn/custom-elements.json +31 -29
  8. package/cdn/solid-components.bundle.js +4 -4
  9. package/cdn/solid-components.iife.js +4 -4
  10. package/cdn/solid-components.js +1 -1
  11. package/cdn/vscode.html-custom-data.json +3 -14
  12. package/cdn/web-types.json +37 -29
  13. package/cdn-versioned/chunks/chunk.2MPVWXFB.js +2 -0
  14. package/cdn-versioned/chunks/chunk.2XJ2J3VL.js +1 -1
  15. package/cdn-versioned/chunks/chunk.36YZDWQH.js +2 -2
  16. package/cdn-versioned/chunks/chunk.3H5XUPF5.js +5 -5
  17. package/cdn-versioned/chunks/chunk.47KQZYJR.js +2 -2
  18. package/cdn-versioned/chunks/chunk.4MY3PWSN.js +1 -1
  19. package/cdn-versioned/chunks/chunk.4QZMOBX3.js +2 -2
  20. package/cdn-versioned/chunks/chunk.5F5NZQB2.js +2 -2
  21. package/cdn-versioned/chunks/chunk.5ITG6KGD.js +2 -2
  22. package/cdn-versioned/chunks/chunk.64SUNU54.js +2 -2
  23. package/cdn-versioned/chunks/chunk.6GDQK5O5.js +2 -2
  24. package/cdn-versioned/chunks/chunk.6WQRLB7U.js +2 -2
  25. package/cdn-versioned/chunks/chunk.7LHRDGWP.js +2 -2
  26. package/cdn-versioned/chunks/chunk.7XY6DMAY.js +2 -2
  27. package/cdn-versioned/chunks/chunk.C45254AN.js +2 -2
  28. package/cdn-versioned/chunks/chunk.CWSVXPYD.js +1 -1
  29. package/cdn-versioned/chunks/{chunk.P6Y5AQHG.js → chunk.D7PE6JKX.js} +2 -2
  30. package/cdn-versioned/chunks/chunk.DIDMWRN3.js +2 -2
  31. package/cdn-versioned/chunks/chunk.DSKB3SEU.js +1 -1
  32. package/cdn-versioned/chunks/chunk.GHSIC6MA.js +2 -2
  33. package/cdn-versioned/chunks/chunk.HBXGLINC.js +2 -2
  34. package/cdn-versioned/chunks/chunk.IWKYZ6J2.js +2 -2
  35. package/cdn-versioned/chunks/chunk.IZCKJLZR.js +2 -2
  36. package/cdn-versioned/chunks/chunk.J5C22TF2.js +3 -3
  37. package/cdn-versioned/chunks/chunk.JI2XVLZH.js +2 -2
  38. package/cdn-versioned/chunks/chunk.JURMXI5Y.js +5 -5
  39. package/cdn-versioned/chunks/chunk.K6TOCFIN.js +2 -2
  40. package/cdn-versioned/chunks/chunk.KOMME47J.js +2 -2
  41. package/cdn-versioned/chunks/chunk.KR27MICN.js +2 -2
  42. package/cdn-versioned/chunks/chunk.KZ5SFF6G.js +2 -2
  43. package/cdn-versioned/chunks/chunk.LICVZSAH.js +3 -3
  44. package/cdn-versioned/chunks/chunk.LVATN3YW.js +2 -2
  45. package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
  46. package/cdn-versioned/chunks/chunk.MHW6ZP4T.js +2 -2
  47. package/cdn-versioned/chunks/chunk.NATZPKHW.js +2 -2
  48. package/cdn-versioned/chunks/chunk.NFDBY4LL.js +2 -2
  49. package/cdn-versioned/chunks/chunk.NICDKFPS.js +2 -2
  50. package/cdn-versioned/chunks/chunk.NJ5CEN2R.js +2 -2
  51. package/cdn-versioned/chunks/chunk.PJ4AHTMH.js +2 -2
  52. package/cdn-versioned/chunks/chunk.PNRCMW5N.js +1 -1
  53. package/cdn-versioned/chunks/chunk.QTPFQGR7.js +2 -2
  54. package/cdn-versioned/chunks/chunk.QW2U4ORE.js +2 -2
  55. package/cdn-versioned/chunks/chunk.RLTO5J3E.js +2 -2
  56. package/cdn-versioned/chunks/chunk.ROU5X4FC.js +9 -9
  57. package/cdn-versioned/chunks/chunk.SKS4G5SG.js +2 -2
  58. package/cdn-versioned/chunks/chunk.SWPN5WUJ.js +2 -2
  59. package/cdn-versioned/chunks/chunk.U5LYN6TY.js +2 -2
  60. package/cdn-versioned/chunks/chunk.UBUSZ4VB.js +2 -2
  61. package/cdn-versioned/chunks/chunk.UN7DL2MN.js +1 -1
  62. package/cdn-versioned/chunks/chunk.UTBC4DI6.js +1 -1
  63. package/cdn-versioned/chunks/chunk.UY5TXYXC.js +2 -2
  64. package/cdn-versioned/chunks/chunk.V3PA35KW.js +2 -2
  65. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  66. package/cdn-versioned/chunks/chunk.WZSNE2FO.js +2 -2
  67. package/cdn-versioned/chunks/chunk.X2QW55HD.js +1 -1
  68. package/cdn-versioned/chunks/chunk.XIIQ37KS.js +2 -2
  69. package/cdn-versioned/chunks/chunk.XNB5UHRT.js +1 -1
  70. package/cdn-versioned/chunks/chunk.XPALAZ3K.js +3 -3
  71. package/cdn-versioned/chunks/chunk.XY6LAPFB.js +1 -1
  72. package/cdn-versioned/chunks/chunk.YAUFTHOR.js +1 -1
  73. package/cdn-versioned/chunks/chunk.YG4OTB7M.js +2 -2
  74. package/cdn-versioned/chunks/chunk.YL7463TI.js +2 -2
  75. package/cdn-versioned/chunks/chunk.ZAB7A5W7.js +2 -2
  76. package/cdn-versioned/chunks/chunk.ZXMU6GLZ.js +2 -2
  77. package/cdn-versioned/chunks/chunk.ZXQQJBCT.js +2 -2
  78. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  79. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  80. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  81. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  82. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  83. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  84. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  85. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  86. package/cdn-versioned/components/button/button.d.ts +1 -1
  87. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  88. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  89. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  90. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  91. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  92. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  93. package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
  94. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  95. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  96. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  97. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  98. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  99. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  100. package/cdn-versioned/components/header/header.d.ts +1 -1
  101. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  102. package/cdn-versioned/components/include/include.d.ts +1 -1
  103. package/cdn-versioned/components/input/input.d.ts +2 -2
  104. package/cdn-versioned/components/input/input.js +1 -1
  105. package/cdn-versioned/components/link/link.d.ts +1 -1
  106. package/cdn-versioned/components/loader/loader.d.ts +1 -1
  107. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  108. package/cdn-versioned/components/menu/menu.d.ts +1 -1
  109. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  110. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  111. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  112. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  113. package/cdn-versioned/components/option/option.d.ts +1 -1
  114. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  115. package/cdn-versioned/components/progress-bar/progress-bar.d.ts +1 -1
  116. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  117. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  118. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  119. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  120. package/cdn-versioned/components/range/range.d.ts +1 -1
  121. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  122. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  123. package/cdn-versioned/components/select/select.d.ts +1 -1
  124. package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
  125. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  126. package/cdn-versioned/components/step/step.d.ts +1 -1
  127. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  128. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  129. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  130. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  131. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  132. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  133. package/cdn-versioned/components/textarea/textarea.d.ts +2 -2
  134. package/cdn-versioned/components/textarea/textarea.js +1 -1
  135. package/cdn-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  136. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  137. package/cdn-versioned/components/video/video.d.ts +1 -1
  138. package/cdn-versioned/custom-elements.json +290 -288
  139. package/cdn-versioned/internal/form.js +2 -2
  140. package/cdn-versioned/solid-components.bundle.js +81 -81
  141. package/cdn-versioned/solid-components.css +2 -2
  142. package/cdn-versioned/solid-components.iife.js +81 -81
  143. package/cdn-versioned/solid-components.js +1 -1
  144. package/cdn-versioned/vscode.html-custom-data.json +117 -128
  145. package/cdn-versioned/web-types.json +206 -198
  146. package/dist/chunks/{chunk.QIIQFT2B.js → chunk.332BBYHT.js} +10 -2
  147. package/dist/chunks/{chunk.4MPXU2RU.js → chunk.MZXDJ23T.js} +12 -2
  148. package/dist/components/input/input.d.ts +1 -1
  149. package/dist/components/input/input.js +1 -1
  150. package/dist/components/textarea/textarea.d.ts +1 -1
  151. package/dist/components/textarea/textarea.js +1 -1
  152. package/dist/custom-elements.json +31 -29
  153. package/dist/solid-components.js +2 -2
  154. package/dist/vscode.html-custom-data.json +3 -14
  155. package/dist/web-types.json +37 -29
  156. package/dist-versioned/chunks/{chunk.QIIQFT2B.js → chunk.332BBYHT.js} +12 -4
  157. package/dist-versioned/chunks/chunk.4ICMHKGL.js +7 -7
  158. package/dist-versioned/chunks/chunk.4KQSESLL.js +10 -10
  159. package/dist-versioned/chunks/chunk.4UWPPYNK.js +2 -2
  160. package/dist-versioned/chunks/chunk.64V7RPJM.js +4 -4
  161. package/dist-versioned/chunks/chunk.BGHQYSC6.js +2 -2
  162. package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
  163. package/dist-versioned/chunks/chunk.CBXPY7RV.js +5 -5
  164. package/dist-versioned/chunks/chunk.CEEZZN7A.js +2 -2
  165. package/dist-versioned/chunks/chunk.CFE22DL2.js +8 -8
  166. package/dist-versioned/chunks/chunk.DJIFAD75.js +13 -13
  167. package/dist-versioned/chunks/chunk.DZ6FRKXI.js +12 -12
  168. package/dist-versioned/chunks/chunk.EAM3NSOC.js +4 -4
  169. package/dist-versioned/chunks/chunk.EBLUHAPV.js +5 -5
  170. package/dist-versioned/chunks/chunk.EI5PCGH6.js +5 -5
  171. package/dist-versioned/chunks/chunk.ENPE3AO3.js +14 -14
  172. package/dist-versioned/chunks/chunk.FAQBBAJ3.js +25 -25
  173. package/dist-versioned/chunks/chunk.FRTXHCPD.js +6 -6
  174. package/dist-versioned/chunks/chunk.GWLYBCED.js +7 -7
  175. package/dist-versioned/chunks/chunk.H4N3X443.js +6 -6
  176. package/dist-versioned/chunks/chunk.H6K6J6HB.js +10 -10
  177. package/dist-versioned/chunks/chunk.HQZ5Y72U.js +5 -5
  178. package/dist-versioned/chunks/chunk.HVKZA5Q2.js +1 -1
  179. package/dist-versioned/chunks/chunk.HX75WC4T.js +10 -10
  180. package/dist-versioned/chunks/chunk.HXXLOMBL.js +2 -2
  181. package/dist-versioned/chunks/chunk.I5TVWNGY.js +3 -3
  182. package/dist-versioned/chunks/chunk.ICBYOTXZ.js +4 -4
  183. package/dist-versioned/chunks/chunk.IJQGWINY.js +2 -2
  184. package/dist-versioned/chunks/chunk.IU2IAYUW.js +5 -5
  185. package/dist-versioned/chunks/chunk.JO4VO3DE.js +23 -23
  186. package/dist-versioned/chunks/chunk.K5UVAUSH.js +1 -1
  187. package/dist-versioned/chunks/chunk.KDPFXMT7.js +2 -2
  188. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  189. package/dist-versioned/chunks/chunk.L3TT74JB.js +3 -3
  190. package/dist-versioned/chunks/chunk.LM6MZUBT.js +7 -7
  191. package/dist-versioned/chunks/chunk.LNZEJCES.js +3 -3
  192. package/dist-versioned/chunks/chunk.MLBOR3OA.js +2 -2
  193. package/dist-versioned/chunks/{chunk.4MPXU2RU.js → chunk.MZXDJ23T.js} +17 -7
  194. package/dist-versioned/chunks/chunk.NAAQDM44.js +1 -1
  195. package/dist-versioned/chunks/chunk.NDQTMQGH.js +5 -5
  196. package/dist-versioned/chunks/chunk.NEWIPIU5.js +3 -3
  197. package/dist-versioned/chunks/chunk.NHPAPNCA.js +11 -11
  198. package/dist-versioned/chunks/chunk.O6I23JYG.js +1 -1
  199. package/dist-versioned/chunks/chunk.PJELKFNY.js +1 -1
  200. package/dist-versioned/chunks/chunk.POPOYCUO.js +10 -10
  201. package/dist-versioned/chunks/chunk.QGERTGJH.js +4 -4
  202. package/dist-versioned/chunks/chunk.QUNBU6CO.js +5 -5
  203. package/dist-versioned/chunks/chunk.RH3RR3MN.js +6 -6
  204. package/dist-versioned/chunks/chunk.ROTKRIJL.js +4 -4
  205. package/dist-versioned/chunks/chunk.TACTLKX6.js +6 -6
  206. package/dist-versioned/chunks/chunk.TF2CAVQI.js +33 -33
  207. package/dist-versioned/chunks/chunk.TXBRN4WB.js +5 -5
  208. package/dist-versioned/chunks/chunk.U4QAR37W.js +1 -1
  209. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  210. package/dist-versioned/chunks/chunk.WCTYTU3K.js +3 -3
  211. package/dist-versioned/chunks/chunk.WD6OT624.js +6 -6
  212. package/dist-versioned/chunks/chunk.WJFZKOMO.js +2 -2
  213. package/dist-versioned/chunks/chunk.X6ZZWTS7.js +2 -2
  214. package/dist-versioned/chunks/chunk.XUYPFGE4.js +11 -11
  215. package/dist-versioned/chunks/chunk.XZHZDSPQ.js +1 -1
  216. package/dist-versioned/chunks/chunk.Y32GRFGF.js +2 -2
  217. package/dist-versioned/chunks/chunk.YC54RFTI.js +11 -11
  218. package/dist-versioned/chunks/chunk.YEAB2PEA.js +1 -1
  219. package/dist-versioned/chunks/chunk.ZI4J2JI6.js +2 -2
  220. package/dist-versioned/chunks/chunk.ZINALM6Z.js +12 -12
  221. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  222. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  223. package/dist-versioned/components/animation/animation.d.ts +1 -1
  224. package/dist-versioned/components/audio/audio.d.ts +1 -1
  225. package/dist-versioned/components/badge/badge.d.ts +1 -1
  226. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  227. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  228. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  229. package/dist-versioned/components/button/button.d.ts +1 -1
  230. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  231. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  232. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  233. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  234. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  235. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  236. package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
  237. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  238. package/dist-versioned/components/divider/divider.d.ts +1 -1
  239. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  240. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  241. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  242. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  243. package/dist-versioned/components/header/header.d.ts +1 -1
  244. package/dist-versioned/components/icon/icon.d.ts +1 -1
  245. package/dist-versioned/components/include/include.d.ts +1 -1
  246. package/dist-versioned/components/input/input.d.ts +2 -2
  247. package/dist-versioned/components/input/input.js +1 -1
  248. package/dist-versioned/components/link/link.d.ts +1 -1
  249. package/dist-versioned/components/loader/loader.d.ts +1 -1
  250. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  251. package/dist-versioned/components/menu/menu.d.ts +1 -1
  252. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  253. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  254. package/dist-versioned/components/notification/notification.d.ts +1 -1
  255. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  256. package/dist-versioned/components/option/option.d.ts +1 -1
  257. package/dist-versioned/components/popup/popup.d.ts +1 -1
  258. package/dist-versioned/components/progress-bar/progress-bar.d.ts +1 -1
  259. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  260. package/dist-versioned/components/radio/radio.d.ts +1 -1
  261. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  262. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  263. package/dist-versioned/components/range/range.d.ts +1 -1
  264. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  265. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  266. package/dist-versioned/components/select/select.d.ts +1 -1
  267. package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
  268. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  269. package/dist-versioned/components/step/step.d.ts +1 -1
  270. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  271. package/dist-versioned/components/switch/switch.d.ts +1 -1
  272. package/dist-versioned/components/tab/tab.d.ts +1 -1
  273. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  274. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  275. package/dist-versioned/components/tag/tag.d.ts +1 -1
  276. package/dist-versioned/components/textarea/textarea.d.ts +2 -2
  277. package/dist-versioned/components/textarea/textarea.js +1 -1
  278. package/dist-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  279. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  280. package/dist-versioned/components/video/video.d.ts +1 -1
  281. package/dist-versioned/custom-elements.json +290 -288
  282. package/dist-versioned/internal/form.js +2 -2
  283. package/dist-versioned/solid-components.css +2 -2
  284. package/dist-versioned/solid-components.js +2 -2
  285. package/dist-versioned/vscode.html-custom-data.json +117 -128
  286. package/dist-versioned/web-types.json +206 -198
  287. package/package.json +2 -2
  288. package/cdn/chunks/chunk.HEGJI2MO.js +0 -2
  289. package/cdn-versioned/chunks/chunk.HEGJI2MO.js +0 -2
@@ -230,7 +230,6 @@
230
230
  "name": "variant",
231
231
  "description": "The brandshape's theme variant.",
232
232
  "values": [
233
- { "name": "" },
234
233
  { "name": "neutral-100" },
235
234
  { "name": "primary" },
236
235
  { "name": "white" },
@@ -1422,7 +1421,6 @@
1422
1421
  "name": "type",
1423
1422
  "description": "The type of input. Works the same as a native `<input>` element, but only a subset of types are supported. Defaults\nto `text`.",
1424
1423
  "values": [
1425
- { "name": "" },
1426
1424
  { "name": "date" },
1427
1425
  { "name": "datetime-local" },
1428
1426
  { "name": "email" },
@@ -1444,7 +1442,6 @@
1444
1442
  "name": "inputmode",
1445
1443
  "description": "Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual\nkeyboard on supportive devices.",
1446
1444
  "values": [
1447
- { "name": "" },
1448
1445
  { "name": "none" },
1449
1446
  { "name": "text" },
1450
1447
  { "name": "decimal" },
@@ -1569,7 +1566,6 @@
1569
1566
  "name": "autocapitalize",
1570
1567
  "description": "Controls whether and how text input is automatically capitalized as it is entered by the user.",
1571
1568
  "values": [
1572
- { "name": "" },
1573
1569
  { "name": "off" },
1574
1570
  { "name": "none" },
1575
1571
  { "name": "on" },
@@ -1580,7 +1576,8 @@
1580
1576
  },
1581
1577
  {
1582
1578
  "name": "autocorrect",
1583
- "values": [{ "name": "off" }, { "name": "on" }]
1579
+ "description": "Indicates whether the browser's autocorrect feature is on or off.",
1580
+ "values": []
1584
1581
  },
1585
1582
  {
1586
1583
  "name": "autocomplete",
@@ -1596,7 +1593,6 @@
1596
1593
  "name": "enterkeyhint",
1597
1594
  "description": "Used to customize the label or icon of the Enter key on virtual keyboards.",
1598
1595
  "values": [
1599
- { "name": "" },
1600
1596
  { "name": "enter" },
1601
1597
  { "name": "done" },
1602
1598
  { "name": "go" },
@@ -2143,7 +2139,6 @@
2143
2139
  "name": "arrow-placement",
2144
2140
  "description": "The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the\nanchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will\nalign the arrow to the start, end, or center of the popover instead.",
2145
2141
  "values": [
2146
- { "name": "" },
2147
2142
  { "name": "start" },
2148
2143
  { "name": "end" },
2149
2144
  { "name": "center" },
@@ -2534,7 +2529,6 @@
2534
2529
  "name": "tooltip",
2535
2530
  "description": "Defines the thumbs tooltip behaviour.",
2536
2531
  "values": [
2537
- { "name": "" },
2538
2532
  { "name": "on-interaction" },
2539
2533
  { "name": "hidden" },
2540
2534
  { "name": "always-visible" }
@@ -3197,7 +3191,6 @@
3197
3191
  "name": "variant",
3198
3192
  "description": "Variant of the teaser",
3199
3193
  "values": [
3200
- { "name": "" },
3201
3194
  { "name": "white" },
3202
3195
  { "name": "white border-neutral-400" },
3203
3196
  { "name": "neutral-100" },
@@ -3246,7 +3239,6 @@
3246
3239
  "name": "variant",
3247
3240
  "description": "Variant of the teaser",
3248
3241
  "values": [
3249
- { "name": "" },
3250
3242
  { "name": "white" },
3251
3243
  { "name": "neutral-100" },
3252
3244
  { "name": "primary" },
@@ -3366,7 +3358,6 @@
3366
3358
  "name": "autocapitalize",
3367
3359
  "description": "Controls whether and how text input is automatically capitalized as it is entered by the user.",
3368
3360
  "values": [
3369
- { "name": "" },
3370
3361
  { "name": "off" },
3371
3362
  { "name": "none" },
3372
3363
  { "name": "on" },
@@ -3378,7 +3369,7 @@
3378
3369
  {
3379
3370
  "name": "autocorrect",
3380
3371
  "description": "Indicates whether the browser's autocorrect feature is on or off.",
3381
- "values": [{ "name": "off" }, { "name": "on" }]
3372
+ "values": []
3382
3373
  },
3383
3374
  {
3384
3375
  "name": "autocomplete",
@@ -3394,7 +3385,6 @@
3394
3385
  "name": "enterkeyhint",
3395
3386
  "description": "Used to customize the label or icon of the Enter key on virtual keyboards.",
3396
3387
  "values": [
3397
- { "name": "" },
3398
3388
  { "name": "enter" },
3399
3389
  { "name": "done" },
3400
3390
  { "name": "go" },
@@ -3477,7 +3467,6 @@
3477
3467
  "name": "placement",
3478
3468
  "description": "The preferred placement of the tooltip. Note that the actual placement may vary as needed to keep the tooltip\ninside of the viewport.",
3479
3469
  "values": [
3480
- { "name": "" },
3481
3470
  { "name": "top" },
3482
3471
  { "name": "top-start" },
3483
3472
  { "name": "top-end" },
@@ -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": "7.0.0-next.2",
4
+ "version": "7.0.0-next.3",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -577,7 +577,7 @@
577
577
  "name": "variant",
578
578
  "description": "The brandshape's theme variant.",
579
579
  "value": {
580
- "type": "| 'neutral-100'\n | 'primary'\n | 'white'\n | 'border-primary'\n | 'border-white'\n | 'primary|80'\n | 'white|80'\n | 'image'",
580
+ "type": "'neutral-100' | 'primary' | 'white' | 'border-primary' | 'border-white' | 'primary|80' | 'white|80' | 'image'",
581
581
  "default": "'primary'"
582
582
  }
583
583
  },
@@ -613,7 +613,7 @@
613
613
  {
614
614
  "name": "variant",
615
615
  "description": "The brandshape's theme variant.",
616
- "type": "| 'neutral-100'\n | 'primary'\n | 'white'\n | 'border-primary'\n | 'border-white'\n | 'primary|80'\n | 'white|80'\n | 'image'"
616
+ "type": "'neutral-100' | 'primary' | 'white' | 'border-primary' | 'border-white' | 'primary|80' | 'white|80' | 'image'"
617
617
  },
618
618
  {
619
619
  "name": "shapes",
@@ -3355,7 +3355,7 @@
3355
3355
  "name": "type",
3356
3356
  "description": "The type of input. Works the same as a native `<input>` element, but only a subset of types are supported. Defaults\nto `text`.",
3357
3357
  "value": {
3358
- "type": "| 'date'\n | 'datetime-local'\n | 'email'\n | 'number'\n | 'password'\n | 'search'\n | 'tel'\n | 'text'\n | 'time'\n | 'url'",
3358
+ "type": "'date' | 'datetime-local' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'time' | 'url'",
3359
3359
  "default": "'text'"
3360
3360
  }
3361
3361
  },
@@ -3368,7 +3368,7 @@
3368
3368
  "name": "inputmode",
3369
3369
  "description": "Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual\nkeyboard on supportive devices.",
3370
3370
  "value": {
3371
- "type": "| 'none'\n | 'text'\n | 'decimal'\n | 'numeric'\n | 'tel'\n | 'search'\n | 'email'\n | 'url'"
3371
+ "type": "'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url'"
3372
3372
  }
3373
3373
  },
3374
3374
  {
@@ -3485,10 +3485,14 @@
3485
3485
  "name": "autocapitalize",
3486
3486
  "description": "Controls whether and how text input is automatically capitalized as it is entered by the user.",
3487
3487
  "value": {
3488
- "type": "| 'off'\n | 'none'\n | 'on'\n | 'sentences'\n | 'words'\n | 'characters'"
3488
+ "type": "'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters'"
3489
3489
  }
3490
3490
  },
3491
- { "name": "autocorrect", "value": { "type": "'off' | 'on'" } },
3491
+ {
3492
+ "name": "autocorrect",
3493
+ "description": "Indicates whether the browser's autocorrect feature is on or off.",
3494
+ "value": { "type": "boolean" }
3495
+ },
3492
3496
  {
3493
3497
  "name": "autocomplete",
3494
3498
  "description": "Specifies what permission the browser has to provide assistance in filling out form field values. Refer to\n[this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.",
@@ -3503,7 +3507,7 @@
3503
3507
  "name": "enterkeyhint",
3504
3508
  "description": "Used to customize the label or icon of the Enter key on virtual keyboards.",
3505
3509
  "value": {
3506
- "type": "| 'enter'\n | 'done'\n | 'go'\n | 'next'\n | 'previous'\n | 'search'\n | 'send'"
3510
+ "type": "'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'"
3507
3511
  }
3508
3512
  },
3509
3513
  {
@@ -3593,7 +3597,7 @@
3593
3597
  {
3594
3598
  "name": "type",
3595
3599
  "description": "The type of input. Works the same as a native `<input>` element, but only a subset of types are supported. Defaults\nto `text`.",
3596
- "type": "| 'date'\n | 'datetime-local'\n | 'email'\n | 'number'\n | 'password'\n | 'search'\n | 'tel'\n | 'text'\n | 'time'\n | 'url'"
3600
+ "type": "'date' | 'datetime-local' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'time' | 'url'"
3597
3601
  },
3598
3602
  {
3599
3603
  "name": "size",
@@ -3603,7 +3607,7 @@
3603
3607
  {
3604
3608
  "name": "inputmode",
3605
3609
  "description": "Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual\nkeyboard on supportive devices.",
3606
- "type": "| 'none'\n | 'text'\n | 'decimal'\n | 'numeric'\n | 'tel'\n | 'search'\n | 'email'\n | 'url'"
3610
+ "type": "'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url'"
3607
3611
  },
3608
3612
  {
3609
3613
  "name": "value",
@@ -3723,9 +3727,13 @@
3723
3727
  {
3724
3728
  "name": "autocapitalize",
3725
3729
  "description": "Controls whether and how text input is automatically capitalized as it is entered by the user.",
3726
- "type": "| 'off'\n | 'none'\n | 'on'\n | 'sentences'\n | 'words'\n | 'characters'"
3730
+ "type": "'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters'"
3731
+ },
3732
+ {
3733
+ "name": "autocorrect",
3734
+ "description": "Indicates whether the browser's autocorrect feature is on or off.",
3735
+ "type": "boolean"
3727
3736
  },
3728
- { "name": "autocorrect", "type": "'off' | 'on'" },
3729
3737
  {
3730
3738
  "name": "autocomplete",
3731
3739
  "description": "Specifies what permission the browser has to provide assistance in filling out form field values. Refer to\n[this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) for available values.",
@@ -3739,7 +3747,7 @@
3739
3747
  {
3740
3748
  "name": "enterkeyhint",
3741
3749
  "description": "Used to customize the label or icon of the Enter key on virtual keyboards.",
3742
- "type": "| 'enter'\n | 'done'\n | 'go'\n | 'next'\n | 'previous'\n | 'search'\n | 'send'"
3750
+ "type": "'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'"
3743
3751
  },
3744
3752
  {
3745
3753
  "name": "styleOnValid",
@@ -4783,7 +4791,7 @@
4783
4791
  "name": "arrow-placement",
4784
4792
  "description": "The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the\nanchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will\nalign the arrow to the start, end, or center of the popover instead.",
4785
4793
  "value": {
4786
- "type": "| 'start'\n | 'end'\n | 'center'\n | 'anchor'",
4794
+ "type": "'start' | 'end' | 'center' | 'anchor'",
4787
4795
  "default": "'anchor'"
4788
4796
  }
4789
4797
  },
@@ -4923,7 +4931,7 @@
4923
4931
  {
4924
4932
  "name": "arrowPlacement",
4925
4933
  "description": "The placement of the arrow. The default is `anchor`, which will align the arrow as close to the center of the\nanchor as possible, considering available space and `arrow-padding`. A value of `start`, `end`, or `center` will\nalign the arrow to the start, end, or center of the popover instead.",
4926
- "type": "| 'start'\n | 'end'\n | 'center'\n | 'anchor'"
4934
+ "type": "'start' | 'end' | 'center' | 'anchor'"
4927
4935
  },
4928
4936
  {
4929
4937
  "name": "arrowPadding",
@@ -5658,7 +5666,7 @@
5658
5666
  "name": "tooltip",
5659
5667
  "description": "Defines the thumbs tooltip behaviour.",
5660
5668
  "value": {
5661
- "type": "| 'on-interaction'\n | 'hidden'\n | 'always-visible'",
5669
+ "type": "'on-interaction' | 'hidden' | 'always-visible'",
5662
5670
  "default": "'on-interaction'"
5663
5671
  }
5664
5672
  },
@@ -5772,7 +5780,7 @@
5772
5780
  {
5773
5781
  "name": "tooltip",
5774
5782
  "description": "Defines the thumbs tooltip behaviour.",
5775
- "type": "| 'on-interaction'\n | 'hidden'\n | 'always-visible'"
5783
+ "type": "'on-interaction' | 'hidden' | 'always-visible'"
5776
5784
  },
5777
5785
  {
5778
5786
  "name": "defaultValue",
@@ -7322,7 +7330,7 @@
7322
7330
  "name": "variant",
7323
7331
  "description": "Variant of the teaser",
7324
7332
  "value": {
7325
- "type": "| 'white'\n | 'white border-neutral-400'\n | 'neutral-100'\n | 'primary'\n | 'primary-100'",
7333
+ "type": "'white' | 'white border-neutral-400' | 'neutral-100' | 'primary' | 'primary-100'",
7326
7334
  "default": "'white'"
7327
7335
  }
7328
7336
  },
@@ -7364,7 +7372,7 @@
7364
7372
  {
7365
7373
  "name": "variant",
7366
7374
  "description": "Variant of the teaser",
7367
- "type": "| 'white'\n | 'white border-neutral-400'\n | 'neutral-100'\n | 'primary'\n | 'primary-100'"
7375
+ "type": "'white' | 'white border-neutral-400' | 'neutral-100' | 'primary' | 'primary-100'"
7368
7376
  },
7369
7377
  {
7370
7378
  "name": "breakpoint",
@@ -7404,7 +7412,7 @@
7404
7412
  "name": "variant",
7405
7413
  "description": "Variant of the teaser",
7406
7414
  "value": {
7407
- "type": "| 'white'\n | 'neutral-100'\n | 'primary'\n | 'primary-100'\n | 'gradient-light'\n | 'gradient-dark'",
7415
+ "type": "'white' | 'neutral-100' | 'primary' | 'primary-100' | 'gradient-light' | 'gradient-dark'",
7408
7416
  "default": "'white'"
7409
7417
  }
7410
7418
  },
@@ -7440,7 +7448,7 @@
7440
7448
  {
7441
7449
  "name": "variant",
7442
7450
  "description": "Variant of the teaser",
7443
- "type": "| 'white'\n | 'neutral-100'\n | 'primary'\n | 'primary-100'\n | 'gradient-light'\n | 'gradient-dark'"
7451
+ "type": "'white' | 'neutral-100' | 'primary' | 'primary-100' | 'gradient-light' | 'gradient-dark'"
7444
7452
  },
7445
7453
  {
7446
7454
  "name": "open",
@@ -7550,13 +7558,13 @@
7550
7558
  "name": "autocapitalize",
7551
7559
  "description": "Controls whether and how text input is automatically capitalized as it is entered by the user.",
7552
7560
  "value": {
7553
- "type": "| 'off'\n | 'none'\n | 'on'\n | 'sentences'\n | 'words'\n | 'characters'"
7561
+ "type": "'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters'"
7554
7562
  }
7555
7563
  },
7556
7564
  {
7557
7565
  "name": "autocorrect",
7558
7566
  "description": "Indicates whether the browser's autocorrect feature is on or off.",
7559
- "value": { "type": "'off' | 'on'" }
7567
+ "value": { "type": "boolean" }
7560
7568
  },
7561
7569
  {
7562
7570
  "name": "autocomplete",
@@ -7572,7 +7580,7 @@
7572
7580
  "name": "enterkeyhint",
7573
7581
  "description": "Used to customize the label or icon of the Enter key on virtual keyboards.",
7574
7582
  "value": {
7575
- "type": "| 'enter'\n | 'done'\n | 'go'\n | 'next'\n | 'previous'\n | 'search'\n | 'send'"
7583
+ "type": "'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'"
7576
7584
  }
7577
7585
  },
7578
7586
  {
@@ -7722,12 +7730,12 @@
7722
7730
  {
7723
7731
  "name": "autocapitalize",
7724
7732
  "description": "Controls whether and how text input is automatically capitalized as it is entered by the user.",
7725
- "type": "| 'off'\n | 'none'\n | 'on'\n | 'sentences'\n | 'words'\n | 'characters'"
7733
+ "type": "'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters'"
7726
7734
  },
7727
7735
  {
7728
7736
  "name": "autocorrect",
7729
7737
  "description": "Indicates whether the browser's autocorrect feature is on or off.",
7730
- "type": "'off' | 'on'"
7738
+ "type": "boolean"
7731
7739
  },
7732
7740
  {
7733
7741
  "name": "autocomplete",
@@ -7742,7 +7750,7 @@
7742
7750
  {
7743
7751
  "name": "enterkeyhint",
7744
7752
  "description": "Used to customize the label or icon of the Enter key on virtual keyboards.",
7745
- "type": "| 'enter'\n | 'done'\n | 'go'\n | 'next'\n | 'previous'\n | 'search'\n | 'send'"
7753
+ "type": "'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'"
7746
7754
  },
7747
7755
  {
7748
7756
  "name": "styleOnValid",
@@ -7869,7 +7877,7 @@
7869
7877
  "name": "placement",
7870
7878
  "description": "The preferred placement of the tooltip. Note that the actual placement may vary as needed to keep the tooltip\ninside of the viewport.",
7871
7879
  "value": {
7872
- "type": "| 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'",
7880
+ "type": "'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end'",
7873
7881
  "default": "'top'"
7874
7882
  }
7875
7883
  },
@@ -7958,7 +7966,7 @@
7958
7966
  {
7959
7967
  "name": "placement",
7960
7968
  "description": "The preferred placement of the tooltip. Note that the actual placement may vary as needed to keep the tooltip\ninside of the viewport.",
7961
- "type": "| 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'"
7969
+ "type": "'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end'"
7962
7970
  },
7963
7971
  {
7964
7972
  "name": "disabled",
@@ -0,0 +1,2 @@
1
+ import{a as w}from"./chunk.SAEYIL5V.js";import{a as $}from"./chunk.ERP45OHF.js";import{b as x}from"./chunk.LZRL7OLU.js";import{a as r}from"./chunk.LHSR56PH.js";import{a as C}from"./chunk.CGQ2BPPZ.js";import{a as s}from"./chunk.4ZZFYCXX.js";import{a as d}from"./chunk.NYKJXI3Q.js";import{a as g,b as i,c,d as b,h as m}from"./chunk.YAUFTHOR.js";import{b as y,e as o}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends m{constructor(){super(...arguments);this.formControlController=new x(this);this.hasSlotController=new C(this,"help-text","label");this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.title="";this.name="";this.value="";this.size="lg";this.label="";this.helpText="";this.placeholder="";this.rows=4;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.form="";this.required=!1;this.floatingLabel=!1;this.styleOnValid=!1;this.spellcheck=!0;this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.setTextareaHeight()})}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.textarea.value=this.value;return}this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(l){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(l),this.invalidMessage.textContent=l.target.validationMessage}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}focus(l){this.textarea.focus(l)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(l){if(l){typeof l.top=="number"&&(this.textarea.scrollTop=l.top),typeof l.left=="number"&&(this.textarea.scrollLeft=l.left);return}return{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(l,a,n="none"){this.textarea.setSelectionRange(l,a,n)}setRangeText(l,a,n,p){this.textarea.setRangeText(l,a,n,p),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var l;return(l=this.textarea)==null?void 0:l.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.textarea.reportValidity()}setCustomValidity(l){this.textarea.setCustomValidity(l),this.formControlController.updateValidity()}render(){let l={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},a=this.label?!0:!!l.label,n=this.helpText?!0:!!l.helpText,p=!!l.tooltip,V=this.value!==null&&String(this.value).length>0,h=this.floatingLabel&&a&&(this.hasFocus&&!this.visuallyDisabled||V),u=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",f=this.size==="sm"?"text-sm":"text-base",v={sm:"text-base top-1",md:"text-lg top-2",lg:"text-xl top-2"}[this.size];return o`<div part="form-control" class="flex flex-col h-full text-left">${a&&!this.floatingLabel||p?o`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${s(a?"inline-block":"hidden",f,this.visuallyDisabled||this.disabled?"text-neutral-500":" form-control-color-text")}" for="input" aria-hidden="${a?"false":"true"}"><slot name="label">${this.label}</slot></label> ${l.tooltip?o`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${s("relative h-full w-full",this.disabled&&"cursor-not-allowed")}">${a&&this.floatingLabel?o`<label id="label" part="form-control-floating-label" class="${s("absolute left-4 z-20 transition-all duration-200 cursor-text",f,h?"top-2 text-xs":"top-2.5 form-control-color-text")}" for="input"><span class="${s("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="${s("absolute w-full h-full pointer-events-none border form-control-border-radius 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"}[u])}"></div><div part="base" class="${s("textarea h-full flex items-top form-control-border-radius group transition-colors duration-medium hover:duration-fast ease-in-out",this.floatingLabel&&"pt-6",{sm:"textarea-sm",md:"textarea-md",lg:"textarea-lg"}[this.size],!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:[@media(hover:hover)]:form-control--hover-color-background":"",this.readonly?"form-control--read-only-color-background":"bg-white",u==="disabled"||u==="visuallyDisabled"?"text-neutral-500":"text-black",["invalid","activeInvalid"].includes(u)&&"form-control--invalid-color-background")}"><textarea part="textarea" id="input" class="${s("ps-4 flex-grow focus:outline-none bg-transparent placeholder:text-neutral-700 resize-none group-has-[sd-7-0-0-next-3-icon]:pe-8",{sm:h?"pb-1":"py-2",md:h?"pb-1":"py-2",lg:h?"pb-2":"py-2"}[this.size],this.disabled&&"cursor-not-allowed",f)}" title="${this.title}" name="${r(this.name)}" .value="${w(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${!this.floatingLabel||h?r(this.placeholder):""}" minlength="${r(this.minlength)}" maxlength="${r(this.maxlength)}" rows="${r(this.rows)}" autocapitalize="${r(this.autocapitalize)}" autocorrect="${r(this.autocorrect===void 0?void 0:this.autocorrect?"on":"off")}" ?autofocus="${this.autofocus}" spellcheck="${r(this.spellcheck)}" enterkeyhint="${r(this.enterkeyhint)}" inputmode="${r(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?o`<sd-7-0-0-next-3-icon class="${s("text-error absolute right-4 pointer-events-none",v)}" library="_internal" name="risk" part="invalid-icon"></sd-7-0-0-next-3-icon>`:""} ${this.styleOnValid&&this.showValidStyle?o`<sd-7-0-0-next-3-icon class="${s("text-success absolute right-4 pointer-events-none",v)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-7-0-0-next-3-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${s("text-sm mt-1",n&&!this.showInvalidStyle?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!n||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};t.styles=[...m.styles,y`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{display:block;height:100%}:host textarea{scrollbar-gutter:stable}: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([required]) #label::after{content:' *'}:host([visually-disabled]) textarea{caret-color:transparent}.no-scrollbar::-webkit-scrollbar{display:none}`],e([b("#input")],t.prototype,"textarea",2),e([b("#invalid-message")],t.prototype,"invalidMessage",2),e([c()],t.prototype,"hasFocus",2),e([c()],t.prototype,"showValidStyle",2),e([c()],t.prototype,"showInvalidStyle",2),e([i({type:String,reflect:!0})],t.prototype,"title",2),e([i({type:String,reflect:!0})],t.prototype,"name",2),e([i()],t.prototype,"value",2),e([i({type:String,reflect:!0})],t.prototype,"size",2),e([i({type:String,reflect:!0})],t.prototype,"label",2),e([i({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),e([i({type:String,reflect:!0})],t.prototype,"placeholder",2),e([i({type:Number,reflect:!0})],t.prototype,"rows",2),e([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([i({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),e([i({type:Boolean,reflect:!0})],t.prototype,"readonly",2),e([i({type:String,reflect:!0})],t.prototype,"form",2),e([i({type:Boolean,reflect:!0})],t.prototype,"required",2),e([i({attribute:"floating-label",type:Boolean,reflect:!0})],t.prototype,"floatingLabel",2),e([i({type:Number,reflect:!0})],t.prototype,"minlength",2),e([i({type:Number,reflect:!0})],t.prototype,"maxlength",2),e([i({type:String,reflect:!0})],t.prototype,"autocapitalize",2),e([i({type:Boolean,reflect:!0,converter:{fromAttribute:l=>l!=="off",toAttribute:l=>l?"on":"off"}})],t.prototype,"autocorrect",2),e([i({reflect:!0})],t.prototype,"autocomplete",2),e([i({type:Boolean,reflect:!0})],t.prototype,"autofocus",2),e([i({type:String,reflect:!0})],t.prototype,"enterkeyhint",2),e([i({type:Boolean,reflect:!0,attribute:"style-on-valid"})],t.prototype,"styleOnValid",2),e([i({type:Boolean,converter:{fromAttribute:l=>!(!l||l==="false"),toAttribute:l=>l?"true":"false"}})],t.prototype,"spellcheck",2),e([i({type:String,reflect:!0})],t.prototype,"inputmode",2),e([$()],t.prototype,"defaultValue",2),e([d("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),e([d("rows",{waitUntilFirstUpdate:!0})],t.prototype,"handleRowsChange",1),e([d("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1),e([d(["size","floatingLabel"])],t.prototype,"handleSizeChange",1),t=e([g("sd-7-0-0-next-3-textarea")],t);export{t as a};
@@ -1,2 +1,2 @@
1
1
  import{a as c,h as e}from"./chunk.YAUFTHOR.js";import{b as l,e as o}from"./chunk.OBAEIKIV.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends e{static isCarouselItem(s){return s instanceof Element&&s.getAttribute("aria-roledescription")==="slide"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return o`<slot></slot>`}};t.styles=[...e.styles,l`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{aspect-ratio:var(--aspect-ratio);scroll-snap-align:start;scroll-snap-stop:always;display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}::slotted(img){height:100%;width:100%;-o-object-fit:cover;object-fit:cover}`],t=i([c("sd-7-0-0-next-2-carousel-item")],t);export{t as a};
2
+ :host{aspect-ratio:var(--aspect-ratio);scroll-snap-align:start;scroll-snap-stop:always;display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}::slotted(img){height:100%;width:100%;-o-object-fit:cover;object-fit:cover}`],t=i([c("sd-7-0-0-next-3-carousel-item")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as v}from"./chunk.4ZZFYCXX.js";import{a as n}from"./chunk.NYKJXI3Q.js";import{a as f,b as a,d as m,h as l}from"./chunk.YAUFTHOR.js";import{b as o,e as c,i as h}from"./chunk.OBAEIKIV.js";import{e as s}from"./chunk.6EV4YU6C.js";var e=class extends l{constructor(){super(...arguments);this.steps=[];this.size="lg";this.orientation="horizontal";this.activeStep=0;this.notInteractive=!1;this.label=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.steps=this.getAllSteps(),this.steps[this.steps.length-1].noTail=!0;let t;this.steps.forEach((i,r)=>{i.index=r+1,i.size=this.size,i.orientation=this.orientation,this.notInteractive?(i.current=!1,i.disabled=!1,i.notInteractive=!0):i.current&&(t=r)}),this.activeStep!==-1&&this.setActiveStep(t||this.activeStep)})}handleActiveStepChange(){let t=Number(this.activeStep);Number.isNaN(t)||this.setActiveStep(t)}updateSize(){this.steps.forEach(t=>{t.size=this.size})}updateOrientation(){this.steps.forEach(t=>{t.orientation=this.orientation})}getAllSteps(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-7-0-0-next-2-step")}setActiveStep(t){t>=0&&t<this.steps.length&&!this.notInteractive&&(this.activeStep=t,this.steps.forEach((i,r)=>{r===t?i.current=!0:r>t?(i.waiting=!0,i.current=!1):(i.current=!1,i.waiting=!1)}))}handleInteractivityChange(){this.notInteractive&&this.steps.forEach(t=>{t.current=!1,t.disabled=!1,t.notInteractive=!0})}render(){return this.size==="xs"&&this.orientation!=="vertical"?(console.warn('Size "xs" is only supported when orientation is "vertical". The element will not be rendered.'),h):c`<div role="${this.notInteractive?"group":"navigation"}" class="h-full" aria-label="${this.label}"><div role="list" part="base" class="${v("flex",this.orientation==="vertical"&&"flex-col h-full")}"><slot part="body"></slot></div></div>`}};e.styles=[...l.styles,o`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{width:-moz-max-content;width:max-content}`],s([m("[part=body]")],e.prototype,"body",2),s([a({type:String,reflect:!0})],e.prototype,"size",2),s([a({type:String,reflect:!0})],e.prototype,"orientation",2),s([a({type:Number,reflect:!0,attribute:"active-step"})],e.prototype,"activeStep",2),s([a({type:Boolean,reflect:!0,attribute:"not-interactive"})],e.prototype,"notInteractive",2),s([a({type:String,reflect:!0})],e.prototype,"label",2),s([n("activeStep",{waitUntilFirstUpdate:!0})],e.prototype,"handleActiveStepChange",1),s([n("size",{waitUntilFirstUpdate:!0})],e.prototype,"updateSize",1),s([n("orientation",{waitUntilFirstUpdate:!0})],e.prototype,"updateOrientation",1),s([n("notInteractive")],e.prototype,"handleInteractivityChange",1),e=s([f("sd-7-0-0-next-2-step-group")],e);export{e as a};
1
+ import{a as v}from"./chunk.4ZZFYCXX.js";import{a as n}from"./chunk.NYKJXI3Q.js";import{a as f,b as a,d as m,h as l}from"./chunk.YAUFTHOR.js";import{b as o,e as c,i as h}from"./chunk.OBAEIKIV.js";import{e as s}from"./chunk.6EV4YU6C.js";var e=class extends l{constructor(){super(...arguments);this.steps=[];this.size="lg";this.orientation="horizontal";this.activeStep=0;this.notInteractive=!1;this.label=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.steps=this.getAllSteps(),this.steps[this.steps.length-1].noTail=!0;let t;this.steps.forEach((i,r)=>{i.index=r+1,i.size=this.size,i.orientation=this.orientation,this.notInteractive?(i.current=!1,i.disabled=!1,i.notInteractive=!0):i.current&&(t=r)}),this.activeStep!==-1&&this.setActiveStep(t||this.activeStep)})}handleActiveStepChange(){let t=Number(this.activeStep);Number.isNaN(t)||this.setActiveStep(t)}updateSize(){this.steps.forEach(t=>{t.size=this.size})}updateOrientation(){this.steps.forEach(t=>{t.orientation=this.orientation})}getAllSteps(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-7-0-0-next-3-step")}setActiveStep(t){t>=0&&t<this.steps.length&&!this.notInteractive&&(this.activeStep=t,this.steps.forEach((i,r)=>{r===t?i.current=!0:r>t?(i.waiting=!0,i.current=!1):(i.current=!1,i.waiting=!1)}))}handleInteractivityChange(){this.notInteractive&&this.steps.forEach(t=>{t.current=!1,t.disabled=!1,t.notInteractive=!0})}render(){return this.size==="xs"&&this.orientation!=="vertical"?(console.warn('Size "xs" is only supported when orientation is "vertical". The element will not be rendered.'),h):c`<div role="${this.notInteractive?"group":"navigation"}" class="h-full" aria-label="${this.label}"><div role="list" part="base" class="${v("flex",this.orientation==="vertical"&&"flex-col h-full")}"><slot part="body"></slot></div></div>`}};e.styles=[...l.styles,o`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{width:-moz-max-content;width:max-content}`],s([m("[part=body]")],e.prototype,"body",2),s([a({type:String,reflect:!0})],e.prototype,"size",2),s([a({type:String,reflect:!0})],e.prototype,"orientation",2),s([a({type:Number,reflect:!0,attribute:"active-step"})],e.prototype,"activeStep",2),s([a({type:Boolean,reflect:!0,attribute:"not-interactive"})],e.prototype,"notInteractive",2),s([a({type:String,reflect:!0})],e.prototype,"label",2),s([n("activeStep",{waitUntilFirstUpdate:!0})],e.prototype,"handleActiveStepChange",1),s([n("size",{waitUntilFirstUpdate:!0})],e.prototype,"updateSize",1),s([n("orientation",{waitUntilFirstUpdate:!0})],e.prototype,"updateOrientation",1),s([n("notInteractive")],e.prototype,"handleInteractivityChange",1),e=s([f("sd-7-0-0-next-3-step-group")],e);export{e as a};
@@ -1,12 +1,12 @@
1
- import{a as R}from"./chunk.ERP45OHF.js";import{a as B}from"./chunk.X2GM34WQ.js";import{a as D,d as K,e as U,f as $}from"./chunk.W7A3TU2Z.js";import{c as H}from"./chunk.3L472FD4.js";import{b as A}from"./chunk.LZRL7OLU.js";import{a as P}from"./chunk.LHSR56PH.js";import{a as _}from"./chunk.CGQ2BPPZ.js";import{a as T,c as k}from"./chunk.B2NUKX6G.js";import{a as w}from"./chunk.KLRPP4NQ.js";import{a as I}from"./chunk.W5O4FM6B.js";import{a as M}from"./chunk.VAM5SM3O.js";import{a as d}from"./chunk.4ZZFYCXX.js";import{a as f}from"./chunk.NYKJXI3Q.js";import{a as F,b as r,c as u,d as m,h as E}from"./chunk.YAUFTHOR.js";import{b as V,e as p}from"./chunk.OBAEIKIV.js";import{b as S,e as C}from"./chunk.W4QBFD6E.js";import{e as l}from"./chunk.6EV4YU6C.js";var s=class extends E{constructor(){super(...arguments);this.formControlController=new A(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new _(this,"help-text","label");this.localize=new M(this);this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.deletedTagLabel="";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.floatingLabel=!1;this.type="text";this.currentPlacement=this.placement;this.getOption=B;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let i=$(t.value),a=$(t.getTextLabel()),o=$(e);return i.includes(o)||a.includes(o)};this.getTag=t=>p`<sd-7-0-0-next-2-tag class="min-w-0 max-w-full" ?disabled="${this.disabled}" part="tag" exportparts="
1
+ import{a as R}from"./chunk.ERP45OHF.js";import{a as B}from"./chunk.X2GM34WQ.js";import{a as D,d as K,e as U,f as $}from"./chunk.W7A3TU2Z.js";import{c as H}from"./chunk.3L472FD4.js";import{b as A}from"./chunk.LZRL7OLU.js";import{a as P}from"./chunk.LHSR56PH.js";import{a as _}from"./chunk.CGQ2BPPZ.js";import{a as T,c as k}from"./chunk.B2NUKX6G.js";import{a as w}from"./chunk.KLRPP4NQ.js";import{a as I}from"./chunk.W5O4FM6B.js";import{a as M}from"./chunk.VAM5SM3O.js";import{a as d}from"./chunk.4ZZFYCXX.js";import{a as f}from"./chunk.NYKJXI3Q.js";import{a as F,b as r,c as u,d as m,h as E}from"./chunk.YAUFTHOR.js";import{b as V,e as p}from"./chunk.OBAEIKIV.js";import{b as S,e as C}from"./chunk.W4QBFD6E.js";import{e as l}from"./chunk.6EV4YU6C.js";var s=class extends E{constructor(){super(...arguments);this.formControlController=new A(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new _(this,"help-text","label");this.localize=new M(this);this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.deletedTagLabel="";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.floatingLabel=!1;this.type="text";this.currentPlacement=this.placement;this.getOption=B;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let i=$(t.value),a=$(t.getTextLabel()),o=$(e);return i.includes(o)||a.includes(o)};this.getTag=t=>p`<sd-7-0-0-next-3-tag class="min-w-0 max-w-full" ?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-7-0-0-next-2-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{let i=t.composedPath().some(n=>n instanceof HTMLButtonElement&&n.classList.contains("combobox-button"));if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}if(!(i||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(!this.multiple&&(t.key==="Backspace"||t.key==="Delete")){this.clearCombobox();return}if(t.key==="Enter"){let n=this.getCurrentOption(),g=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;if(!this.open&&!g){setTimeout(()=>{t.defaultPrevented||this.formControlController.submit()});return}if(!this.open||n!=null&&n.disabled)return;if(n&&!n.disabled){let c=this.value;this.multiple?(this.toggleOptionSelection(n),this.lastOption=n,this.setOrderedSelectedOptions(n),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(n),this.setSelectedOptions(n)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==c&&(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,a=this.getOption(e,i);return e.tabIndex=0,p`${typeof a=="string"?I(a):a}`};return this.filteredOptions.map(e=>e.tagName.toLowerCase()==="sd-7-0-0-next-2-optgroup"?(Array.from(e.children).forEach(i=>{i.tagName.toLowerCase()==="sd-7-0-0-next-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="${a=>this.handleTagRemove(a,t)}">${typeof i=="string"?I(i):i}</div>`}return[p``]}):[p`<sd-7-0-0-next-2-tag class="min-w-0 max-w-full" ?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-7-0-0-next-3-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{let i=t.composedPath().some(n=>n instanceof HTMLButtonElement&&n.classList.contains("combobox-button"));if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}if(!(i||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(!this.multiple&&(t.key==="Backspace"||t.key==="Delete")){this.clearCombobox();return}if(t.key==="Enter"){let n=this.getCurrentOption(),g=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;if(!this.open&&!g){setTimeout(()=>{t.defaultPrevented||this.formControlController.submit()});return}if(!this.open||n!=null&&n.disabled)return;if(n&&!n.disabled){let c=this.value;this.multiple?(this.toggleOptionSelection(n),this.lastOption=n,this.setOrderedSelectedOptions(n),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(n),this.setSelectedOptions(n)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==c&&(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,a=this.getOption(e,i);return e.tabIndex=0,p`${typeof a=="string"?I(a):a}`};return this.filteredOptions.map(e=>e.tagName.toLowerCase()==="sd-7-0-0-next-3-optgroup"?(Array.from(e.children).forEach(i=>{i.tagName.toLowerCase()==="sd-7-0-0-next-3-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="${a=>this.handleTagRemove(a,t)}">${typeof i=="string"?I(i):i}</div>`}return[p``]}):[p`<sd-7-0-0-next-3-tag class="min-w-0 max-w-full" ?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-7-0-0-next-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"||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-7-0-0-next-2-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-7-0-0-next-2-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-7-0-0-next-2-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-7-0-0-next-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 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-7-0-0-next-2-option")){customElements.whenDefined("sd-7-0-0-next-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((a,o)=>{this.multiple&&(a.checkbox=!0),a.id=a.id||`sd-7-0-0-next-2-combobox-option-${o}`}),e.forEach((a,o)=>{a.id=a.id||`sd-7-0-0-next-2-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":"form-control-color-icon-fill",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-7-0-0-next-2-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-7-0-0-next-3-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-7-0-0-next-3-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-7-0-0-next-3-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-7-0-0-next-3-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-7-0-0-next-3-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-7-0-0-next-3-option")){customElements.whenDefined("sd-7-0-0-next-3-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-7-0-0-next-3-combobox-option-${o}`}),e.forEach((a,o)=>{a.id=a.id||`sd-7-0-0-next-3-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":"form-control-color-icon-fill",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-7-0-0-next-3-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&&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-7-0-0-next-2-icon class="${d("text-neutral-700",y)}" name="closing-round" library="_internal"></sd-7-0-0-next-2-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-7-0-0-next-2-icon part="invalid-icon" class="${d(b,y,"text-error")}" library="_internal" name="risk"></sd-7-0-0-next-2-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-7-0-0-next-2-icon part="valid-icon" class="${d("flex-shrink-0 text-success",b,y)}" library="_internal" name="confirm-circle"></sd-7-0-0-next-2-icon>`:""}<slot name="right" part="right" class="${d("inline-flex ml-2 leading-[0]",this.disabled||this.visuallyDisabled?"text-neutral-500":"form-control-color-icon-fill",y)}">${this.type!=="search"?p`<sd-7-0-0-next-2-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-7-0-0-next-2-icon>`:""}</slot>${this.type==="search"?p`<button class="${d("flex items-center",b)}" type="button" @mousedown="${this.preventLoosingFocus}" @click="${this.handleSearchClick}"><sd-7-0-0-next-2-icon class="${d(x,y)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-7-0-0-next-2-icon></button>`:p`<button class="combobox-button absolute top-2" 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-7-0-0-next-2-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.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
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-7-0-0-next-2-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-7-0-0-next-2-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-7-0-0-next-2-tag::part(content){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--tag-max-width,15ch)}sd-7-0-0-next-2-tag[size=lg]::part(base){padding-inline:var(--sd-spacing-2)}sd-7-0-0-next-2-tag[disabled=false]::part(base):hover{background-color:rgba(var(--sd-color-background-primary-100))}[part=filtered-listbox] sd-7-0-0-next-2-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}:host([type=search]) sd-7-0-0-next-2-icon[name=magnifying-glass],[part=chevron]{color:rgba(var(--sd-form-control-color-icon-fill))}:host([disabled])::part(chevron),:host([type=search][disabled]) sd-7-0-0-next-2-icon[name=magnifying-glass],:host([type=search][visually-disabled]) sd-7-0-0-next-2-icon[name=magnifying-glass],: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-7-0-0-next-2-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-7-0-0-next-2-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};
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-7-0-0-next-3-icon class="${d("text-neutral-700",y)}" name="closing-round" library="_internal"></sd-7-0-0-next-3-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-7-0-0-next-3-icon part="invalid-icon" class="${d(b,y,"text-error")}" library="_internal" name="risk"></sd-7-0-0-next-3-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-7-0-0-next-3-icon part="valid-icon" class="${d("flex-shrink-0 text-success",b,y)}" library="_internal" name="confirm-circle"></sd-7-0-0-next-3-icon>`:""}<slot name="right" part="right" class="${d("inline-flex ml-2 leading-[0]",this.disabled||this.visuallyDisabled?"text-neutral-500":"form-control-color-icon-fill",y)}">${this.type!=="search"?p`<sd-7-0-0-next-3-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-7-0-0-next-3-icon>`:""}</slot>${this.type==="search"?p`<button class="${d("flex items-center",b)}" type="button" @mousedown="${this.preventLoosingFocus}" @click="${this.handleSearchClick}"><sd-7-0-0-next-3-icon class="${d(x,y)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-7-0-0-next-3-icon></button>`:p`<button class="combobox-button absolute top-2" 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-7-0-0-next-3-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.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
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-7-0-0-next-3-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-7-0-0-next-3-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-7-0-0-next-3-tag::part(content){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--tag-max-width,15ch)}sd-7-0-0-next-3-tag[size=lg]::part(base){padding-inline:var(--sd-spacing-2)}sd-7-0-0-next-3-tag[disabled=false]::part(base):hover{background-color:rgba(var(--sd-color-background-primary-100))}[part=filtered-listbox] sd-7-0-0-next-3-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}:host([type=search]) sd-7-0-0-next-3-icon[name=magnifying-glass],[part=chevron]{color:rgba(var(--sd-form-control-color-icon-fill))}:host([disabled])::part(chevron),:host([type=search][disabled]) sd-7-0-0-next-3-icon[name=magnifying-glass],:host([type=search][visually-disabled]) sd-7-0-0-next-3-icon[name=magnifying-glass],: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-7-0-0-next-3-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-7-0-0-next-3-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};