@solid-design-system/components 4.6.17 → 4.6.18

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 (409) hide show
  1. package/cdn/chunks/{chunk.6GKUJURA.js → chunk.45NSYAGI.js} +1 -7
  2. package/cdn/chunks/{chunk.52CHMYZW.js → chunk.4BXTHTGE.js} +1 -7
  3. package/cdn/chunks/{chunk.B7OV2MGV.js → chunk.4CGKMYCA.js} +1 -1
  4. package/cdn/chunks/{chunk.5CK64GWQ.js → chunk.5XTSQKKL.js} +1 -7
  5. package/cdn/chunks/{chunk.ISJHS7MI.js → chunk.64DNFBEV.js} +2 -2
  6. package/cdn/chunks/{chunk.65NSSTJE.js → chunk.6HLS5XU2.js} +1 -1
  7. package/cdn/chunks/{chunk.SA47JGYJ.js → chunk.6KIPPAY2.js} +1 -1
  8. package/cdn/chunks/{chunk.2JMCZERI.js → chunk.6OI543ET.js} +1 -1
  9. package/cdn/chunks/{chunk.JM55DS6E.js → chunk.7GPVXBAN.js} +1 -1
  10. package/cdn/chunks/{chunk.ZDAJBT6S.js → chunk.7KRPCRTL.js} +1 -1
  11. package/cdn/chunks/{chunk.CG4LKK2S.js → chunk.7OSUJMMK.js} +1 -1
  12. package/cdn/chunks/{chunk.JHFZ4SQS.js → chunk.AQS5P2M2.js} +1 -1
  13. package/cdn/chunks/{chunk.KC4QR2RU.js → chunk.BIGGEVRM.js} +1 -1
  14. package/cdn/chunks/{chunk.OFFOD4HJ.js → chunk.BOOA5A5M.js} +2 -2
  15. package/cdn/chunks/{chunk.R7PZA43R.js → chunk.BRYSSMEP.js} +1 -1
  16. package/cdn/chunks/{chunk.VVHLEF7M.js → chunk.C5EJWFGF.js} +1 -1
  17. package/cdn/chunks/{chunk.D7TMPF3D.js → chunk.CDC46OKY.js} +1 -1
  18. package/cdn/chunks/{chunk.PHDC3ZJX.js → chunk.CKBBOAJF.js} +1 -1
  19. package/cdn/chunks/{chunk.Q7HC4QG7.js → chunk.DJS5ILMG.js} +1 -1
  20. package/cdn/chunks/{chunk.TFU6EKNK.js → chunk.E7DNPM4P.js} +1 -1
  21. package/cdn/chunks/{chunk.AKRPR2FE.js → chunk.FNGD66UR.js} +1 -1
  22. package/cdn/chunks/{chunk.AG6BDL2P.js → chunk.GHOGFH4Y.js} +1 -1
  23. package/cdn/chunks/{chunk.YN2VA6K4.js → chunk.GZW45IB5.js} +1 -1
  24. package/cdn/chunks/{chunk.5ZILM4TA.js → chunk.H2TKMIFR.js} +1 -1
  25. package/cdn/chunks/{chunk.MQSPBCXW.js → chunk.HNGVY7KU.js} +1 -1
  26. package/cdn/chunks/{chunk.OUI6M7ZF.js → chunk.I2GDXWDW.js} +1 -1
  27. package/cdn/chunks/{chunk.IYARPLCS.js → chunk.I33XEZFH.js} +1 -1
  28. package/cdn/chunks/{chunk.GP64DANW.js → chunk.IBXGMKNS.js} +1 -1
  29. package/cdn/chunks/chunk.IGUVUXHL.js +1 -0
  30. package/cdn/chunks/{chunk.SKECM3YQ.js → chunk.KFLQJZMA.js} +1 -1
  31. package/cdn/chunks/{chunk.KAZ3MS4V.js → chunk.KFV2PKSN.js} +1 -1
  32. package/cdn/chunks/{chunk.KGU372F7.js → chunk.KW6DZL44.js} +1 -1
  33. package/cdn/chunks/chunk.LQBUYA4X.js +25 -0
  34. package/cdn/chunks/{chunk.7RAX23BW.js → chunk.MOEIX567.js} +1 -1
  35. package/cdn/chunks/{chunk.XSEMT26W.js → chunk.NW3DAALC.js} +1 -1
  36. package/cdn/chunks/{chunk.ANR6OR7S.js → chunk.O3OBLQQE.js} +1 -1
  37. package/cdn/chunks/{chunk.SBUEHOV4.js → chunk.OCFZC6GH.js} +1 -1
  38. package/cdn/chunks/{chunk.E47KIBIH.js → chunk.OP66HL2Y.js} +1 -1
  39. package/cdn/chunks/{chunk.3NV2WGOM.js → chunk.OYDGXDOR.js} +1 -1
  40. package/cdn/chunks/{chunk.AQEZRQ6X.js → chunk.QF7DQ4P2.js} +1 -1
  41. package/cdn/chunks/{chunk.AYMIGNKD.js → chunk.QZYGTXCJ.js} +1 -1
  42. package/cdn/chunks/{chunk.2TOUFYZX.js → chunk.S373TBS4.js} +1 -1
  43. package/cdn/chunks/{chunk.2EIABDX2.js → chunk.TBYAG53W.js} +1 -1
  44. package/cdn/chunks/{chunk.SDU4PEDX.js → chunk.TEQVGGIE.js} +1 -1
  45. package/cdn/chunks/{chunk.BIEMJHYC.js → chunk.TJ5NRC4S.js} +1 -1
  46. package/cdn/chunks/{chunk.4NRD2DLT.js → chunk.UHEM26SV.js} +1 -1
  47. package/cdn/chunks/{chunk.6DBFTJQI.js → chunk.UTOORRAI.js} +1 -1
  48. package/cdn/chunks/chunk.UWPDCU52.js +28 -0
  49. package/cdn/chunks/{chunk.JUXSVUQK.js → chunk.UZDT7263.js} +1 -1
  50. package/cdn/chunks/{chunk.P22O3TB3.js → chunk.W77R3U7M.js} +1 -1
  51. package/cdn/chunks/{chunk.BXNA34CP.js → chunk.WVKH7MCS.js} +1 -1
  52. package/cdn/chunks/{chunk.IO3TDZ4M.js → chunk.XFB5ZVPC.js} +1 -1
  53. package/cdn/chunks/{chunk.EWYYDURI.js → chunk.YBEQ53O2.js} +1 -1
  54. package/{cdn-versioned/chunks/chunk.HE2LNCWW.js → cdn/chunks/chunk.YTG5BN3U.js} +1 -1
  55. package/cdn/chunks/{chunk.ZVIXTCS5.js → chunk.YTVFQSX2.js} +1 -1
  56. package/cdn/chunks/{chunk.MZY457DM.js → chunk.Z2AXRHRS.js} +1 -1
  57. package/cdn/components/accordion/accordion.js +1 -1
  58. package/cdn/components/accordion-group/accordion-group.js +1 -1
  59. package/cdn/components/animation/animation.js +1 -1
  60. package/cdn/components/audio/audio.js +1 -1
  61. package/cdn/components/badge/badge.js +1 -1
  62. package/cdn/components/brandshape/brandshape.js +1 -1
  63. package/cdn/components/button/button.js +1 -1
  64. package/cdn/components/button-group/button-group.js +1 -1
  65. package/cdn/components/carousel/carousel.js +1 -1
  66. package/cdn/components/carousel-item/carousel-item.js +1 -1
  67. package/cdn/components/checkbox/checkbox.js +1 -1
  68. package/cdn/components/checkbox-group/checkbox-group.js +1 -1
  69. package/cdn/components/combobox/combobox.js +1 -1
  70. package/cdn/components/dialog/dialog.js +1 -1
  71. package/cdn/components/divider/divider.js +1 -1
  72. package/cdn/components/drawer/drawer.js +1 -1
  73. package/cdn/components/dropdown/dropdown.js +1 -1
  74. package/cdn/components/expandable/expandable.js +1 -1
  75. package/cdn/components/flipcard/flipcard.js +1 -1
  76. package/cdn/components/header/header.js +1 -1
  77. package/cdn/components/icon/icon.js +1 -1
  78. package/cdn/components/include/include.js +1 -1
  79. package/cdn/components/input/input.js +1 -1
  80. package/cdn/components/link/link.js +1 -1
  81. package/cdn/components/map-marker/map-marker.js +1 -1
  82. package/cdn/components/navigation-item/navigation-item.js +1 -1
  83. package/cdn/components/notification/notification.js +1 -1
  84. package/cdn/components/optgroup/optgroup.js +1 -1
  85. package/cdn/components/option/option.js +1 -1
  86. package/cdn/components/popup/popup.js +1 -1
  87. package/cdn/components/quickfact/quickfact.js +1 -1
  88. package/cdn/components/radio/radio.js +1 -1
  89. package/cdn/components/radio-button/radio-button.js +1 -1
  90. package/cdn/components/radio-group/radio-group.js +1 -1
  91. package/cdn/components/scrollable/scrollable.js +1 -1
  92. package/cdn/components/select/select.js +1 -1
  93. package/cdn/components/spinner/spinner.js +1 -1
  94. package/cdn/components/step/step.js +1 -1
  95. package/cdn/components/step-group/step-group.js +1 -1
  96. package/cdn/components/switch/switch.js +1 -1
  97. package/cdn/components/tab/tab.js +1 -1
  98. package/cdn/components/tab-group/tab-group.js +1 -1
  99. package/cdn/components/tab-panel/tab-panel.js +1 -1
  100. package/cdn/components/tag/tag.js +1 -1
  101. package/cdn/components/teaser/teaser.js +1 -1
  102. package/cdn/components/teaser-media/teaser-media.js +1 -1
  103. package/cdn/components/textarea/textarea.js +1 -1
  104. package/cdn/components/tooltip/tooltip.js +1 -1
  105. package/cdn/components/video/video.js +1 -1
  106. package/cdn/custom-elements.json +625 -625
  107. package/cdn/solid-components.bundle.js +25 -139
  108. package/cdn/solid-components.iife.js +25 -139
  109. package/cdn/solid-components.js +1 -1
  110. package/cdn/utilities/autocomplete-config.js +1 -1
  111. package/cdn/utilities/form.js +1 -1
  112. package/cdn/web-types.json +1 -1
  113. package/cdn-versioned/_components/menu/menu.js +1 -1
  114. package/cdn-versioned/_components/menu/menu.styles.js +1 -1
  115. package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
  116. package/cdn-versioned/chunks/{chunk.6GKUJURA.js → chunk.45NSYAGI.js} +1 -7
  117. package/cdn-versioned/chunks/{chunk.52CHMYZW.js → chunk.4BXTHTGE.js} +2 -8
  118. package/cdn-versioned/chunks/{chunk.B7OV2MGV.js → chunk.4CGKMYCA.js} +1 -1
  119. package/cdn-versioned/chunks/{chunk.5CK64GWQ.js → chunk.5XTSQKKL.js} +1 -7
  120. package/cdn-versioned/chunks/{chunk.ISJHS7MI.js → chunk.64DNFBEV.js} +4 -4
  121. package/cdn-versioned/chunks/{chunk.65NSSTJE.js → chunk.6HLS5XU2.js} +1 -1
  122. package/cdn-versioned/chunks/{chunk.SA47JGYJ.js → chunk.6KIPPAY2.js} +2 -2
  123. package/cdn-versioned/chunks/{chunk.2JMCZERI.js → chunk.6OI543ET.js} +1 -1
  124. package/cdn-versioned/chunks/{chunk.JM55DS6E.js → chunk.7GPVXBAN.js} +1 -1
  125. package/cdn-versioned/chunks/{chunk.ZDAJBT6S.js → chunk.7KRPCRTL.js} +1 -1
  126. package/cdn-versioned/chunks/{chunk.CG4LKK2S.js → chunk.7OSUJMMK.js} +1 -1
  127. package/cdn-versioned/chunks/{chunk.JHFZ4SQS.js → chunk.AQS5P2M2.js} +1 -1
  128. package/cdn-versioned/chunks/{chunk.KC4QR2RU.js → chunk.BIGGEVRM.js} +1 -1
  129. package/cdn-versioned/chunks/{chunk.OFFOD4HJ.js → chunk.BOOA5A5M.js} +4 -4
  130. package/cdn-versioned/chunks/{chunk.R7PZA43R.js → chunk.BRYSSMEP.js} +1 -1
  131. package/cdn-versioned/chunks/{chunk.VVHLEF7M.js → chunk.C5EJWFGF.js} +1 -1
  132. package/cdn-versioned/chunks/{chunk.D7TMPF3D.js → chunk.CDC46OKY.js} +1 -1
  133. package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
  134. package/cdn-versioned/chunks/{chunk.PHDC3ZJX.js → chunk.CKBBOAJF.js} +1 -1
  135. package/cdn-versioned/chunks/{chunk.Q7HC4QG7.js → chunk.DJS5ILMG.js} +1 -1
  136. package/cdn-versioned/chunks/{chunk.TFU6EKNK.js → chunk.E7DNPM4P.js} +1 -1
  137. package/cdn-versioned/chunks/{chunk.AKRPR2FE.js → chunk.FNGD66UR.js} +1 -1
  138. package/cdn-versioned/chunks/{chunk.AG6BDL2P.js → chunk.GHOGFH4Y.js} +1 -1
  139. package/cdn-versioned/chunks/{chunk.YN2VA6K4.js → chunk.GZW45IB5.js} +1 -1
  140. package/cdn-versioned/chunks/{chunk.5ZILM4TA.js → chunk.H2TKMIFR.js} +1 -1
  141. package/cdn-versioned/chunks/{chunk.MQSPBCXW.js → chunk.HNGVY7KU.js} +1 -1
  142. package/cdn-versioned/chunks/{chunk.OUI6M7ZF.js → chunk.I2GDXWDW.js} +1 -1
  143. package/cdn-versioned/chunks/{chunk.IYARPLCS.js → chunk.I33XEZFH.js} +1 -1
  144. package/cdn-versioned/chunks/{chunk.GP64DANW.js → chunk.IBXGMKNS.js} +1 -1
  145. package/cdn-versioned/chunks/chunk.IGUVUXHL.js +1 -0
  146. package/cdn-versioned/chunks/{chunk.SKECM3YQ.js → chunk.KFLQJZMA.js} +1 -1
  147. package/cdn-versioned/chunks/{chunk.KAZ3MS4V.js → chunk.KFV2PKSN.js} +1 -1
  148. package/cdn-versioned/chunks/{chunk.KGU372F7.js → chunk.KW6DZL44.js} +1 -1
  149. package/cdn-versioned/chunks/chunk.LQBUYA4X.js +25 -0
  150. package/cdn-versioned/chunks/{chunk.7RAX23BW.js → chunk.MOEIX567.js} +4 -4
  151. package/cdn-versioned/chunks/{chunk.XSEMT26W.js → chunk.NW3DAALC.js} +1 -1
  152. package/cdn-versioned/chunks/{chunk.ANR6OR7S.js → chunk.O3OBLQQE.js} +1 -1
  153. package/cdn-versioned/chunks/{chunk.SBUEHOV4.js → chunk.OCFZC6GH.js} +1 -1
  154. package/cdn-versioned/chunks/{chunk.E47KIBIH.js → chunk.OP66HL2Y.js} +1 -1
  155. package/cdn-versioned/chunks/{chunk.3NV2WGOM.js → chunk.OYDGXDOR.js} +1 -1
  156. package/cdn-versioned/chunks/{chunk.AQEZRQ6X.js → chunk.QF7DQ4P2.js} +1 -1
  157. package/cdn-versioned/chunks/{chunk.AYMIGNKD.js → chunk.QZYGTXCJ.js} +1 -1
  158. package/cdn-versioned/chunks/{chunk.2TOUFYZX.js → chunk.S373TBS4.js} +2 -2
  159. package/cdn-versioned/chunks/{chunk.2EIABDX2.js → chunk.TBYAG53W.js} +1 -1
  160. package/cdn-versioned/chunks/{chunk.SDU4PEDX.js → chunk.TEQVGGIE.js} +1 -1
  161. package/cdn-versioned/chunks/{chunk.BIEMJHYC.js → chunk.TJ5NRC4S.js} +1 -1
  162. package/cdn-versioned/chunks/{chunk.4NRD2DLT.js → chunk.UHEM26SV.js} +1 -1
  163. package/cdn-versioned/chunks/{chunk.6DBFTJQI.js → chunk.UTOORRAI.js} +1 -1
  164. package/cdn-versioned/chunks/chunk.UWPDCU52.js +28 -0
  165. package/cdn-versioned/chunks/{chunk.JUXSVUQK.js → chunk.UZDT7263.js} +2 -2
  166. package/cdn-versioned/chunks/{chunk.P22O3TB3.js → chunk.W77R3U7M.js} +1 -1
  167. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  168. package/cdn-versioned/chunks/{chunk.BXNA34CP.js → chunk.WVKH7MCS.js} +1 -1
  169. package/cdn-versioned/chunks/{chunk.IO3TDZ4M.js → chunk.XFB5ZVPC.js} +1 -1
  170. package/cdn-versioned/chunks/{chunk.EWYYDURI.js → chunk.YBEQ53O2.js} +1 -1
  171. package/{cdn/chunks/chunk.HE2LNCWW.js → cdn-versioned/chunks/chunk.YTG5BN3U.js} +1 -1
  172. package/cdn-versioned/chunks/{chunk.ZVIXTCS5.js → chunk.YTVFQSX2.js} +1 -1
  173. package/cdn-versioned/chunks/{chunk.MZY457DM.js → chunk.Z2AXRHRS.js} +1 -1
  174. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  175. package/cdn-versioned/components/accordion/accordion.js +1 -1
  176. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  177. package/cdn-versioned/components/accordion-group/accordion-group.js +1 -1
  178. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  179. package/cdn-versioned/components/animation/animation.js +1 -1
  180. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  181. package/cdn-versioned/components/audio/audio.js +1 -1
  182. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  183. package/cdn-versioned/components/badge/badge.js +1 -1
  184. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  185. package/cdn-versioned/components/brandshape/brandshape.js +1 -1
  186. package/cdn-versioned/components/button/button.d.ts +1 -1
  187. package/cdn-versioned/components/button/button.js +1 -1
  188. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  189. package/cdn-versioned/components/button-group/button-group.js +1 -1
  190. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  191. package/cdn-versioned/components/carousel/carousel.js +1 -1
  192. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  193. package/cdn-versioned/components/carousel-item/carousel-item.js +1 -1
  194. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  195. package/cdn-versioned/components/checkbox/checkbox.js +1 -1
  196. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  197. package/cdn-versioned/components/checkbox-group/checkbox-group.js +1 -1
  198. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  199. package/cdn-versioned/components/combobox/combobox.js +1 -1
  200. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  201. package/cdn-versioned/components/dialog/dialog.js +1 -1
  202. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  203. package/cdn-versioned/components/divider/divider.js +1 -1
  204. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  205. package/cdn-versioned/components/drawer/drawer.js +1 -1
  206. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  207. package/cdn-versioned/components/dropdown/dropdown.js +1 -1
  208. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  209. package/cdn-versioned/components/expandable/expandable.js +1 -1
  210. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  211. package/cdn-versioned/components/flipcard/flipcard.js +1 -1
  212. package/cdn-versioned/components/header/header.d.ts +1 -1
  213. package/cdn-versioned/components/header/header.js +1 -1
  214. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  215. package/cdn-versioned/components/icon/icon.js +1 -1
  216. package/cdn-versioned/components/include/include.d.ts +1 -1
  217. package/cdn-versioned/components/include/include.js +1 -1
  218. package/cdn-versioned/components/input/input.d.ts +1 -1
  219. package/cdn-versioned/components/input/input.js +1 -1
  220. package/cdn-versioned/components/link/link.d.ts +1 -1
  221. package/cdn-versioned/components/link/link.js +1 -1
  222. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  223. package/cdn-versioned/components/map-marker/map-marker.js +1 -1
  224. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  225. package/cdn-versioned/components/navigation-item/navigation-item.js +1 -1
  226. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  227. package/cdn-versioned/components/notification/notification.js +1 -1
  228. package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
  229. package/cdn-versioned/components/optgroup/optgroup.js +1 -1
  230. package/cdn-versioned/components/option/option.d.ts +1 -1
  231. package/cdn-versioned/components/option/option.js +1 -1
  232. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  233. package/cdn-versioned/components/popup/popup.js +1 -1
  234. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  235. package/cdn-versioned/components/quickfact/quickfact.js +1 -1
  236. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  237. package/cdn-versioned/components/radio/radio.js +1 -1
  238. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  239. package/cdn-versioned/components/radio-button/radio-button.js +1 -1
  240. package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
  241. package/cdn-versioned/components/radio-group/radio-group.js +1 -1
  242. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  243. package/cdn-versioned/components/scrollable/scrollable.js +1 -1
  244. package/cdn-versioned/components/select/select.d.ts +1 -1
  245. package/cdn-versioned/components/select/select.js +1 -1
  246. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  247. package/cdn-versioned/components/spinner/spinner.js +1 -1
  248. package/cdn-versioned/components/step/step.d.ts +1 -1
  249. package/cdn-versioned/components/step/step.js +1 -1
  250. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  251. package/cdn-versioned/components/step-group/step-group.js +1 -1
  252. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  253. package/cdn-versioned/components/switch/switch.js +1 -1
  254. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  255. package/cdn-versioned/components/tab/tab.js +1 -1
  256. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  257. package/cdn-versioned/components/tab-group/tab-group.js +1 -1
  258. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  259. package/cdn-versioned/components/tab-panel/tab-panel.js +1 -1
  260. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  261. package/cdn-versioned/components/tag/tag.js +1 -1
  262. package/cdn-versioned/components/teaser/teaser.js +1 -1
  263. package/cdn-versioned/components/teaser-media/teaser-media.js +1 -1
  264. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  265. package/cdn-versioned/components/textarea/textarea.js +1 -1
  266. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  267. package/cdn-versioned/components/tooltip/tooltip.js +1 -1
  268. package/cdn-versioned/components/video/video.d.ts +1 -1
  269. package/cdn-versioned/components/video/video.js +1 -1
  270. package/cdn-versioned/custom-elements.json +856 -856
  271. package/cdn-versioned/internal/form.js +3 -3
  272. package/cdn-versioned/solid-components.bundle.js +27 -141
  273. package/cdn-versioned/solid-components.css +2 -2
  274. package/cdn-versioned/solid-components.iife.js +27 -141
  275. package/cdn-versioned/solid-components.js +1 -1
  276. package/cdn-versioned/utilities/autocomplete-config.js +1 -1
  277. package/cdn-versioned/utilities/form.js +1 -1
  278. package/cdn-versioned/vscode.html-custom-data.json +80 -80
  279. package/cdn-versioned/web-types.json +137 -137
  280. package/dist/chunks/{chunk.R55MBA6F.js → chunk.CNYF5RAM.js} +1 -1
  281. package/dist/chunks/{chunk.AGI5ZMYC.js → chunk.L33EWCI5.js} +1 -1
  282. package/dist/chunks/{chunk.STR7Q2AE.js → chunk.WC2X4NWF.js} +1 -1
  283. package/dist/components/combobox/combobox.js +1 -1
  284. package/dist/components/input/input.js +1 -1
  285. package/dist/components/select/select.js +1 -1
  286. package/dist/custom-elements.json +625 -625
  287. package/dist/solid-components.js +7 -7
  288. package/dist/web-types.json +1 -1
  289. package/dist-versioned/_components/menu/menu.js +1 -1
  290. package/dist-versioned/_components/menu/menu.styles.js +1 -1
  291. package/dist-versioned/_components/menu-item/menu-item.js +2 -2
  292. package/dist-versioned/chunks/chunk.2B6KEGZJ.js +2 -2
  293. package/dist-versioned/chunks/chunk.3FCEMGCI.js +1 -1
  294. package/dist-versioned/chunks/chunk.4ASHVYWQ.js +2 -2
  295. package/dist-versioned/chunks/chunk.4RFDH3SL.js +3 -3
  296. package/dist-versioned/chunks/chunk.5EBZIKYH.js +1 -1
  297. package/dist-versioned/chunks/chunk.5FSG57H2.js +1 -1
  298. package/dist-versioned/chunks/chunk.5TWLYNWT.js +1 -1
  299. package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
  300. package/dist-versioned/chunks/chunk.6WYL4JXU.js +6 -6
  301. package/dist-versioned/chunks/chunk.B6IKQ26W.js +3 -3
  302. package/dist-versioned/chunks/{chunk.R55MBA6F.js → chunk.CNYF5RAM.js} +23 -23
  303. package/dist-versioned/chunks/chunk.DWHZP4ID.js +2 -2
  304. package/dist-versioned/chunks/chunk.DZ2V3IQW.js +1 -1
  305. package/dist-versioned/chunks/chunk.EBWV7WLX.js +2 -2
  306. package/dist-versioned/chunks/chunk.EDGHZRRO.js +4 -4
  307. package/dist-versioned/chunks/chunk.EEICCCWB.js +4 -4
  308. package/dist-versioned/chunks/chunk.ERSYOXHV.js +1 -1
  309. package/dist-versioned/chunks/chunk.F3R45NNC.js +1 -1
  310. package/dist-versioned/chunks/chunk.F6XYVX4T.js +2 -2
  311. package/dist-versioned/chunks/chunk.FTGGE5XH.js +8 -8
  312. package/dist-versioned/chunks/chunk.FUTSGCSR.js +2 -2
  313. package/dist-versioned/chunks/chunk.GEYUPHEW.js +9 -9
  314. package/dist-versioned/chunks/chunk.GFSU4Q7M.js +2 -2
  315. package/dist-versioned/chunks/chunk.H7LBUXAT.js +11 -11
  316. package/dist-versioned/chunks/chunk.HIOTTMRM.js +5 -5
  317. package/dist-versioned/chunks/chunk.HYV22M4U.js +1 -1
  318. package/dist-versioned/chunks/chunk.JUFMAAP2.js +2 -2
  319. package/dist-versioned/chunks/chunk.KHQD2N5S.js +5 -5
  320. package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
  321. package/dist-versioned/chunks/chunk.KWTDQ4KK.js +2 -2
  322. package/dist-versioned/chunks/{chunk.AGI5ZMYC.js → chunk.L33EWCI5.js} +26 -26
  323. package/dist-versioned/chunks/chunk.L3TICIB2.js +2 -2
  324. package/dist-versioned/chunks/chunk.LBJZBVP4.js +1 -1
  325. package/dist-versioned/chunks/chunk.O7I7F6Q2.js +1 -1
  326. package/dist-versioned/chunks/chunk.PVLYUNK7.js +2 -2
  327. package/dist-versioned/chunks/chunk.S4EWMXGX.js +5 -5
  328. package/dist-versioned/chunks/chunk.SIDHPKLE.js +6 -6
  329. package/dist-versioned/chunks/chunk.SLGJ34KM.js +2 -2
  330. package/dist-versioned/chunks/chunk.SOC7MXFP.js +14 -14
  331. package/dist-versioned/chunks/chunk.TECYWP64.js +13 -13
  332. package/dist-versioned/chunks/chunk.TG3K5WND.js +1 -1
  333. package/dist-versioned/chunks/chunk.TQJ46AIM.js +5 -5
  334. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  335. package/dist-versioned/chunks/chunk.V3OFS667.js +2 -2
  336. package/dist-versioned/chunks/chunk.V5S3KO2G.js +5 -5
  337. package/dist-versioned/chunks/chunk.VGPSQWRX.js +2 -2
  338. package/dist-versioned/chunks/chunk.VL533T34.js +5 -5
  339. package/dist-versioned/chunks/chunk.W5O6ZSSQ.js +3 -3
  340. package/dist-versioned/chunks/{chunk.STR7Q2AE.js → chunk.WC2X4NWF.js} +3 -3
  341. package/dist-versioned/chunks/chunk.YDCALUT4.js +1 -1
  342. package/dist-versioned/chunks/chunk.YEECK5EL.js +1 -1
  343. package/dist-versioned/chunks/chunk.ZCYYTGMW.js +2 -2
  344. package/dist-versioned/chunks/chunk.ZOBNVT2R.js +1 -1
  345. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  346. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  347. package/dist-versioned/components/animation/animation.d.ts +1 -1
  348. package/dist-versioned/components/audio/audio.d.ts +1 -1
  349. package/dist-versioned/components/badge/badge.d.ts +1 -1
  350. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  351. package/dist-versioned/components/button/button.d.ts +1 -1
  352. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  353. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  354. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  355. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  356. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  357. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  358. package/dist-versioned/components/combobox/combobox.js +1 -1
  359. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  360. package/dist-versioned/components/divider/divider.d.ts +1 -1
  361. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  362. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  363. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  364. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  365. package/dist-versioned/components/header/header.d.ts +1 -1
  366. package/dist-versioned/components/icon/icon.d.ts +1 -1
  367. package/dist-versioned/components/include/include.d.ts +1 -1
  368. package/dist-versioned/components/input/input.d.ts +1 -1
  369. package/dist-versioned/components/input/input.js +1 -1
  370. package/dist-versioned/components/link/link.d.ts +1 -1
  371. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  372. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  373. package/dist-versioned/components/notification/notification.d.ts +1 -1
  374. package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
  375. package/dist-versioned/components/option/option.d.ts +1 -1
  376. package/dist-versioned/components/popup/popup.d.ts +1 -1
  377. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  378. package/dist-versioned/components/radio/radio.d.ts +1 -1
  379. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  380. package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
  381. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  382. package/dist-versioned/components/select/select.d.ts +1 -1
  383. package/dist-versioned/components/select/select.js +1 -1
  384. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  385. package/dist-versioned/components/step/step.d.ts +1 -1
  386. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  387. package/dist-versioned/components/switch/switch.d.ts +1 -1
  388. package/dist-versioned/components/tab/tab.d.ts +1 -1
  389. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  390. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  391. package/dist-versioned/components/tag/tag.d.ts +1 -1
  392. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  393. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  394. package/dist-versioned/components/video/video.d.ts +1 -1
  395. package/dist-versioned/custom-elements.json +856 -856
  396. package/dist-versioned/internal/form.js +3 -3
  397. package/dist-versioned/solid-components.css +2 -2
  398. package/dist-versioned/solid-components.js +7 -7
  399. package/dist-versioned/vscode.html-custom-data.json +80 -80
  400. package/dist-versioned/web-types.json +137 -137
  401. package/package.json +9 -9
  402. package/cdn/chunks/chunk.IRWHG2Q4.js +0 -40
  403. package/cdn/chunks/chunk.QNLZDKXR.js +0 -73
  404. package/cdn/chunks/chunk.SHH4OB6S.js +0 -1
  405. package/cdn-versioned/chunks/chunk.IRWHG2Q4.js +0 -40
  406. package/cdn-versioned/chunks/chunk.QNLZDKXR.js +0 -73
  407. package/cdn-versioned/chunks/chunk.SHH4OB6S.js +0 -1
  408. /package/cdn/chunks/{chunk.SPDB3L7V.js → chunk.CDEXCMVF.js} +0 -0
  409. /package/cdn-versioned/chunks/{chunk.SPDB3L7V.js → chunk.CDEXCMVF.js} +0 -0
@@ -1 +1 @@
1
- import{a as Z}from"./chunks/chunk.CEVVDV52.js";import"./chunks/chunk.HAL7R4WT.js";import{a as q}from"./chunks/chunk.KAZ3MS4V.js";import{a as y}from"./chunks/chunk.B7OV2MGV.js";import{a as z}from"./chunks/chunk.AQEZRQ6X.js";import{a as J}from"./chunks/chunk.ANR6OR7S.js";import{a as K}from"./chunks/chunk.JUXSVUQK.js";import{a as U}from"./chunks/chunk.AG6BDL2P.js";import{a as E}from"./chunks/chunk.ZDAJBT6S.js";import{a as F}from"./chunks/chunk.ISJHS7MI.js";import{a as H}from"./chunks/chunk.PHDC3ZJX.js";import{a as L}from"./chunks/chunk.CG4LKK2S.js";import{a as Q}from"./chunks/chunk.2TOUFYZX.js";import{a as V}from"./chunks/chunk.6DBFTJQI.js";import{a as j}from"./chunks/chunk.ZVIXTCS5.js";import{a as D}from"./chunks/chunk.Q7HC4QG7.js";import{a as M}from"./chunks/chunk.VVHLEF7M.js";import{a as w}from"./chunks/chunk.IO3TDZ4M.js";import{a as R}from"./chunks/chunk.SHH4OB6S.js";import{a as v}from"./chunks/chunk.7RAX23BW.js";import{a as O}from"./chunks/chunk.AYMIGNKD.js";import{a as P}from"./chunks/chunk.SDU4PEDX.js";import{a as N}from"./chunks/chunk.MZY457DM.js";import{a as G}from"./chunks/chunk.GP64DANW.js";import{a as I}from"./chunks/chunk.EWYYDURI.js";import{a as h}from"./chunks/chunk.KGU372F7.js";import{a as A}from"./chunks/chunk.3NV2WGOM.js";import{a as B}from"./chunks/chunk.JHFZ4SQS.js";import{a as T}from"./chunks/chunk.TFU6EKNK.js";import{a as g}from"./chunks/chunk.YN2VA6K4.js";import{a as k}from"./chunks/chunk.SBUEHOV4.js";import{a as C}from"./chunks/chunk.KC4QR2RU.js";import{a as m}from"./chunks/chunk.2EIABDX2.js";import"./chunks/chunk.5CK64GWQ.js";import{a as S}from"./chunks/chunk.MQSPBCXW.js";import{a as i}from"./chunks/chunk.OFFOD4HJ.js";import{a as s}from"./chunks/chunk.2JMCZERI.js";import"./chunks/chunk.D7TMPF3D.js";import"./chunks/chunk.X2GM34WQ.js";import"./chunks/chunk.W7A3TU2Z.js";import{a as n}from"./chunks/chunk.R7PZA43R.js";import{a as c}from"./chunks/chunk.E47KIBIH.js";import{a as b}from"./chunks/chunk.P22O3TB3.js";import"./chunks/chunk.I6OYJBJI.js";import"./chunks/chunk.64UNKF45.js";import"./chunks/chunk.3L472FD4.js";import{a as p}from"./chunks/chunk.IYARPLCS.js";import{a as u}from"./chunks/chunk.AKRPR2FE.js";import"./chunks/chunk.XSEMT26W.js";import{a as x}from"./chunks/chunk.52CHMYZW.js";import"./chunks/chunk.CBQWVOOS.js";import"./chunks/chunk.EUGX6XW6.js";import"./chunks/chunk.MHWW3RZB.js";import{a as l}from"./chunks/chunk.BXNA34CP.js";import{a}from"./chunks/chunk.OUI6M7ZF.js";import{a as e}from"./chunks/chunk.BIEMJHYC.js";import"./chunks/chunk.A3DKF5BY.js";import"./chunks/chunk.RQYP7MH5.js";import"./chunks/chunk.KLRPP4NQ.js";import{a as f}from"./chunks/chunk.4NRD2DLT.js";import"./chunks/chunk.XR2KNB36.js";import{a as d}from"./chunks/chunk.SKECM3YQ.js";import{a as t}from"./chunks/chunk.SA47JGYJ.js";import{a as r}from"./chunks/chunk.JM55DS6E.js";import"./chunks/chunk.65NSSTJE.js";import"./chunks/chunk.HE2LNCWW.js";import"./chunks/chunk.6HO6CE4A.js";import"./chunks/chunk.5ZILM4TA.js";import{b as o}from"./chunks/chunk.6GKUJURA.js";import"./chunks/chunk.SPDB3L7V.js";import{d as W,e as X}from"./chunks/chunk.SNS2IHBI.js";import"./chunks/chunk.TWZDCIM2.js";import"./chunks/chunk.MWDEA25W.js";import"./chunks/chunk.K7HF3VBZ.js";import"./chunks/chunk.PYHYYOBE.js";import"./chunks/chunk.EFLL7VXU.js";import{a as Y}from"./chunks/chunk.DEXOQON7.js";import"./chunks/chunk.BVJF73VY.js";import"./chunks/chunk.E2XBRTA4.js";import"./chunks/chunk.HJGLYEWV.js";import"./chunks/chunk.26V4EXHB.js";import"./chunks/chunk.E2DRD2OX.js";import"./chunks/chunk.QNLZDKXR.js";import"./chunks/chunk.IRWHG2Q4.js";import"./chunks/chunk.WNP2V63C.js";import"./chunks/chunk.TJOCV4DC.js";export{Y as LocalizeController,e as SdAccordion,a as SdAccordionGroup,f as SdAnimation,d as SdAudio,p as SdBadge,u as SdBrandshape,t as SdButton,x as SdCarousel,l as SdCarouselItem,m as SdCheckbox,S as SdCheckboxGroup,i as SdCombobox,n as SdDialog,c as SdDivider,b as SdDrawer,T as SdDropdown,g as SdExpandable,k as SdFlipcard,C as SdHeader,o as SdIcon,G as SdInclude,I as SdInput,h as SdLink,A as SdMapMarker,B as SdNavigationItem,D as SdNotification,M as SdOptgroup,w as SdOption,R as SdPopup,v as SdQuickfact,N as SdRadio,O as SdRadioButton,P as SdRadioGroup,E as SdScrollable,F as SdSelect,r as SdSpinner,H as SdStep,L as SdStepGroup,Q as SdSwitch,V as SdTab,j as SdTabGroup,q as SdTabPanel,s as SdTag,y as SdTeaser,z as SdTeaserMedia,J as SdTextarea,K as SdTooltip,U as SdVideo,W as registerIconLibrary,Z as setupAutocomplete,X as unregisterIconLibrary};
1
+ import{a as Z}from"./chunks/chunk.CEVVDV52.js";import"./chunks/chunk.HAL7R4WT.js";import{a as q}from"./chunks/chunk.KFV2PKSN.js";import{a as y}from"./chunks/chunk.4CGKMYCA.js";import{a as z}from"./chunks/chunk.QF7DQ4P2.js";import{a as J}from"./chunks/chunk.O3OBLQQE.js";import{a as K}from"./chunks/chunk.UZDT7263.js";import{a as U}from"./chunks/chunk.GHOGFH4Y.js";import{a as E}from"./chunks/chunk.7KRPCRTL.js";import{a as F}from"./chunks/chunk.64DNFBEV.js";import{a as H}from"./chunks/chunk.CKBBOAJF.js";import{a as L}from"./chunks/chunk.7OSUJMMK.js";import{a as Q}from"./chunks/chunk.S373TBS4.js";import{a as V}from"./chunks/chunk.UTOORRAI.js";import{a as j}from"./chunks/chunk.YTVFQSX2.js";import{a as D}from"./chunks/chunk.DJS5ILMG.js";import{a as M}from"./chunks/chunk.C5EJWFGF.js";import{a as w}from"./chunks/chunk.XFB5ZVPC.js";import{a as R}from"./chunks/chunk.IGUVUXHL.js";import{a as v}from"./chunks/chunk.MOEIX567.js";import{a as O}from"./chunks/chunk.QZYGTXCJ.js";import{a as P}from"./chunks/chunk.TEQVGGIE.js";import{a as N}from"./chunks/chunk.Z2AXRHRS.js";import{a as G}from"./chunks/chunk.IBXGMKNS.js";import{a as I}from"./chunks/chunk.YBEQ53O2.js";import{a as h}from"./chunks/chunk.KW6DZL44.js";import{a as A}from"./chunks/chunk.OYDGXDOR.js";import{a as B}from"./chunks/chunk.AQS5P2M2.js";import{a as T}from"./chunks/chunk.E7DNPM4P.js";import{a as g}from"./chunks/chunk.GZW45IB5.js";import{a as k}from"./chunks/chunk.OCFZC6GH.js";import{a as C}from"./chunks/chunk.BIGGEVRM.js";import{a as m}from"./chunks/chunk.TBYAG53W.js";import"./chunks/chunk.5XTSQKKL.js";import{a as S}from"./chunks/chunk.HNGVY7KU.js";import{a as i}from"./chunks/chunk.BOOA5A5M.js";import{a as s}from"./chunks/chunk.6OI543ET.js";import"./chunks/chunk.CDC46OKY.js";import"./chunks/chunk.X2GM34WQ.js";import"./chunks/chunk.W7A3TU2Z.js";import{a as n}from"./chunks/chunk.BRYSSMEP.js";import{a as c}from"./chunks/chunk.OP66HL2Y.js";import{a as b}from"./chunks/chunk.W77R3U7M.js";import"./chunks/chunk.I6OYJBJI.js";import"./chunks/chunk.64UNKF45.js";import"./chunks/chunk.3L472FD4.js";import{a as p}from"./chunks/chunk.I33XEZFH.js";import{a as u}from"./chunks/chunk.FNGD66UR.js";import"./chunks/chunk.NW3DAALC.js";import{a as x}from"./chunks/chunk.4BXTHTGE.js";import"./chunks/chunk.CBQWVOOS.js";import"./chunks/chunk.EUGX6XW6.js";import"./chunks/chunk.MHWW3RZB.js";import{a as l}from"./chunks/chunk.WVKH7MCS.js";import{a}from"./chunks/chunk.I2GDXWDW.js";import{a as f}from"./chunks/chunk.UHEM26SV.js";import"./chunks/chunk.XR2KNB36.js";import{a as e}from"./chunks/chunk.TJ5NRC4S.js";import"./chunks/chunk.A3DKF5BY.js";import"./chunks/chunk.RQYP7MH5.js";import"./chunks/chunk.KLRPP4NQ.js";import{a as d}from"./chunks/chunk.KFLQJZMA.js";import{a as t}from"./chunks/chunk.6KIPPAY2.js";import{a as r}from"./chunks/chunk.7GPVXBAN.js";import"./chunks/chunk.6HLS5XU2.js";import"./chunks/chunk.YTG5BN3U.js";import"./chunks/chunk.6HO6CE4A.js";import"./chunks/chunk.H2TKMIFR.js";import{b as o}from"./chunks/chunk.45NSYAGI.js";import"./chunks/chunk.CDEXCMVF.js";import{d as W,e as X}from"./chunks/chunk.SNS2IHBI.js";import"./chunks/chunk.TWZDCIM2.js";import"./chunks/chunk.MWDEA25W.js";import"./chunks/chunk.K7HF3VBZ.js";import"./chunks/chunk.PYHYYOBE.js";import"./chunks/chunk.EFLL7VXU.js";import{a as Y}from"./chunks/chunk.DEXOQON7.js";import"./chunks/chunk.BVJF73VY.js";import"./chunks/chunk.E2XBRTA4.js";import"./chunks/chunk.HJGLYEWV.js";import"./chunks/chunk.26V4EXHB.js";import"./chunks/chunk.E2DRD2OX.js";import"./chunks/chunk.LQBUYA4X.js";import"./chunks/chunk.UWPDCU52.js";import"./chunks/chunk.WNP2V63C.js";import"./chunks/chunk.TJOCV4DC.js";export{Y as LocalizeController,e as SdAccordion,a as SdAccordionGroup,f as SdAnimation,d as SdAudio,p as SdBadge,u as SdBrandshape,t as SdButton,x as SdCarousel,l as SdCarouselItem,m as SdCheckbox,S as SdCheckboxGroup,i as SdCombobox,n as SdDialog,c as SdDivider,b as SdDrawer,T as SdDropdown,g as SdExpandable,k as SdFlipcard,C as SdHeader,o as SdIcon,G as SdInclude,I as SdInput,h as SdLink,A as SdMapMarker,B as SdNavigationItem,D as SdNotification,M as SdOptgroup,w as SdOption,R as SdPopup,v as SdQuickfact,N as SdRadio,O as SdRadioButton,P as SdRadioGroup,E as SdScrollable,F as SdSelect,r as SdSpinner,H as SdStep,L as SdStepGroup,Q as SdSwitch,V as SdTab,j as SdTabGroup,q as SdTabPanel,s as SdTag,y as SdTeaser,z as SdTeaserMedia,J as SdTextarea,K as SdTooltip,U as SdVideo,W as registerIconLibrary,Z as setupAutocomplete,X as unregisterIconLibrary};
@@ -1 +1 @@
1
- import{a}from"../chunks/chunk.CEVVDV52.js";import"../chunks/chunk.SHH4OB6S.js";import"../chunks/chunk.26V4EXHB.js";import"../chunks/chunk.QNLZDKXR.js";import"../chunks/chunk.IRWHG2Q4.js";import"../chunks/chunk.TJOCV4DC.js";export{a as setupAutocomplete};
1
+ import{a}from"../chunks/chunk.CEVVDV52.js";import"../chunks/chunk.IGUVUXHL.js";import"../chunks/chunk.26V4EXHB.js";import"../chunks/chunk.LQBUYA4X.js";import"../chunks/chunk.UWPDCU52.js";import"../chunks/chunk.TJOCV4DC.js";export{a as setupAutocomplete};
@@ -1 +1 @@
1
- import{a as i}from"../chunks/chunk.65NSSTJE.js";import"../chunks/chunk.IRWHG2Q4.js";import"../chunks/chunk.TJOCV4DC.js";function m(e){let s=new FormData(e),o={};return s.forEach((r,t)=>{if(Reflect.has(o,t)){let n=o[t];Array.isArray(n)?n.push(r):o[t]=[o[t],r]}else o[t]=r}),o}function d(e){let o=[...e.getRootNode().querySelectorAll("*")],r=[...e.elements],t=i.get(e),n=t?Array.from(t):[];return[...r,...n].sort((l,c)=>o.indexOf(l)<o.indexOf(c)?-1:o.indexOf(l)>o.indexOf(c)?1:0)}export{d as getFormControls,m as serialize};
1
+ import{a as i}from"../chunks/chunk.6HLS5XU2.js";import"../chunks/chunk.UWPDCU52.js";import"../chunks/chunk.TJOCV4DC.js";function m(e){let s=new FormData(e),o={};return s.forEach((r,t)=>{if(Reflect.has(o,t)){let n=o[t];Array.isArray(n)?n.push(r):o[t]=[o[t],r]}else o[t]=r}),o}function d(e){let o=[...e.getRootNode().querySelectorAll("*")],r=[...e.elements],t=i.get(e),n=t?Array.from(t):[];return[...r,...n].sort((l,c)=>o.indexOf(l)<o.indexOf(c)?-1:o.indexOf(l)>o.indexOf(c)?1:0)}export{d as getFormControls,m as serialize};
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@solid-design-system/components",
4
- "version": "4.6.17",
4
+ "version": "4.6.18",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -32,7 +32,7 @@ let SdMenu = class SdMenu extends SolidElement {
32
32
  if (item.type === 'checkbox') {
33
33
  item.checked = !item.checked;
34
34
  }
35
- this.emit('sd-4-6-17-select', { detail: { item } });
35
+ this.emit('sd-4-6-18-select', { detail: { item } });
36
36
  }
37
37
  handleKeyDown(event) {
38
38
  if (event.key === 'Enter') {
@@ -11,7 +11,7 @@ export default css `
11
11
  overscroll-behavior: none;
12
12
  }
13
13
 
14
- ::slotted(sd-4-6-17-divider) {
14
+ ::slotted(sd-4-6-18-divider) {
15
15
  --spacing: var(--sd-spacing-x-small);
16
16
  }
17
17
  `;
@@ -74,7 +74,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
74
74
  })}
75
75
  >
76
76
  <span part="checked-icon" class="menu-item__check">
77
- <sd-4-6-17-icon name="check" library="system" aria-hidden="true"></sd-4-6-17-icon>
77
+ <sd-4-6-18-icon name="check" library="system" aria-hidden="true"></sd-4-6-18-icon>
78
78
  </span>
79
79
 
80
80
  <slot name="prefix" part="prefix" class="menu-item__prefix"></slot>
@@ -84,7 +84,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
84
84
  <slot name="suffix" part="suffix" class="menu-item__suffix"></slot>
85
85
 
86
86
  <span class="menu-item__chevron">
87
- <sd-4-6-17-icon name="chevron-right" library="system" aria-hidden="true"></sd-4-6-17-icon>
87
+ <sd-4-6-18-icon name="chevron-right" library="system" aria-hidden="true"></sd-4-6-18-icon>
88
88
  </span>
89
89
  </div>
90
90
  `;
@@ -1,13 +1,7 @@
1
- import{a as k,b as l,c as H}from"./chunk.SPDB3L7V.js";import{a as T,b as L,c as u}from"./chunk.SNS2IHBI.js";import{a as M}from"./chunk.TWZDCIM2.js";import{a as p}from"./chunk.E2DRD2OX.js";import{a as x,b as o,c as C,h as f}from"./chunk.QNLZDKXR.js";import{b,e as y,h as w,i as m}from"./chunk.IRWHG2Q4.js";import{e as s}from"./chunk.TJOCV4DC.js";var i=class extends H{constructor(e){if(super(e),this.it=m,e.type!==k.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===m||e==null)return this._t=void 0,this.it=e;if(e===w)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};i.directiveName="unsafeHTML",i.resultType=1;var N=l(i);var a=class extends i{};a.directiveName="unsafeSVG",a.resultType=2;var A=l(a);var d,t=class extends f{constructor(){super(...arguments);this.svg="";this.label="";this.library="default";this.color="currentColor"}connectedCallback(){super.connectedCallback(),T(this)}firstUpdated(){this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),L(this)}getUrl(){let r=u(this.library);return this.name&&r?r.resolver(this.name):this.src}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var v;let r=u(this.library),n=this.getUrl();if(d||(d=new DOMParser),n)try{let c=await M(n);if(n===this.getUrl())if(c.ok){let h=d.parseFromString(c.svg,"text/html").body.querySelector("svg");h!==null?((v=r==null?void 0:r.mutator)==null||v.call(r,h),this.svg=h.outerHTML,this.emit("sd-load")):(this.svg="",this.emit("sd-error"))}else this.svg="",this.emit("sd-error")}catch(c){this.emit("sd-error")}else this.svg.length>0&&(this.svg="")}render(){return y`${A(this.svg)}`}};t.styles=[...f.styles,b`:host{box-sizing:content-box!important;display:inline-block;height:1em;width:1em}svg{display:block;height:100%;width:100%}:host([color=primary]) svg{--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity,1))}:host([color=white]) svg{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}`],s([C()],t.prototype,"svg",2),s([o({reflect:!0})],t.prototype,"name",2),s([o()],t.prototype,"src",2),s([o()],t.prototype,"label",2),s([o({reflect:!0})],t.prototype,"library",2),s([o({reflect:!0})],t.prototype,"color",2),s([p("label")],t.prototype,"handleLabelChange",1),s([p(["name","src","library"])],t.prototype,"setIcon",1),t=s([x("sd-4-6-17-icon")],t);export{N as a,t as b};
1
+ import{a as k,b as l,c as H}from"./chunk.CDEXCMVF.js";import{a as T,b as L,c as u}from"./chunk.SNS2IHBI.js";import{a as M}from"./chunk.TWZDCIM2.js";import{a as p}from"./chunk.E2DRD2OX.js";import{a as x,b as o,c as C,h as f}from"./chunk.LQBUYA4X.js";import{b,e as y,h as w,i as m}from"./chunk.UWPDCU52.js";import{e as s}from"./chunk.TJOCV4DC.js";var i=class extends H{constructor(e){if(super(e),this.it=m,e.type!==k.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===m||e==null)return this._t=void 0,this.it=e;if(e===w)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};i.directiveName="unsafeHTML",i.resultType=1;var N=l(i);var a=class extends i{};a.directiveName="unsafeSVG",a.resultType=2;var A=l(a);var d,t=class extends f{constructor(){super(...arguments);this.svg="";this.label="";this.library="default";this.color="currentColor"}connectedCallback(){super.connectedCallback(),T(this)}firstUpdated(){this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),L(this)}getUrl(){let r=u(this.library);return this.name&&r?r.resolver(this.name):this.src}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var v;let r=u(this.library),n=this.getUrl();if(d||(d=new DOMParser),n)try{let c=await M(n);if(n===this.getUrl())if(c.ok){let h=d.parseFromString(c.svg,"text/html").body.querySelector("svg");h!==null?((v=r==null?void 0:r.mutator)==null||v.call(r,h),this.svg=h.outerHTML,this.emit("sd-load")):(this.svg="",this.emit("sd-error"))}else this.svg="",this.emit("sd-error")}catch(c){this.emit("sd-error")}else this.svg.length>0&&(this.svg="")}render(){return y`${A(this.svg)}`}};t.styles=[...f.styles,b`:host{box-sizing:content-box!important;display:inline-block;height:1em;width:1em}svg{display:block;height:100%;width:100%}:host([color=primary]) svg{--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity,1))}:host([color=white]) svg{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}`],s([C()],t.prototype,"svg",2),s([o({reflect:!0})],t.prototype,"name",2),s([o()],t.prototype,"src",2),s([o()],t.prototype,"label",2),s([o({reflect:!0})],t.prototype,"library",2),s([o({reflect:!0})],t.prototype,"color",2),s([p("label")],t.prototype,"handleLabelChange",1),s([p(["name","src","library"])],t.prototype,"setIcon",1),t=s([x("sd-4-6-18-icon")],t);export{N as a,t as b};
2
2
  /*! Bundled license information:
3
3
 
4
4
  lit-html/directives/unsafe-html.js:
5
- (**
6
- * @license
7
- * Copyright 2017 Google LLC
8
- * SPDX-License-Identifier: BSD-3-Clause
9
- *)
10
-
11
5
  lit-html/directives/unsafe-svg.js:
12
6
  (**
13
7
  * @license
@@ -1,15 +1,9 @@
1
- import{a as k}from"./chunk.CBQWVOOS.js";import{a as T}from"./chunk.EUGX6XW6.js";import{a as C}from"./chunk.BXNA34CP.js";import{c as A}from"./chunk.RQYP7MH5.js";import{a as M}from"./chunk.DEXOQON7.js";import{a as l}from"./chunk.26V4EXHB.js";import{a as m}from"./chunk.E2DRD2OX.js";import{a as E,b as v,c as f,d as g,e as $,h as P}from"./chunk.QNLZDKXR.js";import{b as x,e as b}from"./chunk.IRWHG2Q4.js";import{e as o}from"./chunk.TJOCV4DC.js";function L(h,d,e){let i=t=>Object.is(t,-0)?0:t;return h<d?i(d):h>e?i(e):i(h)}function*_(h,d){if(h!==void 0){let e=0;for(let i of h)yield d(i,e++)}}function*B(h,d,e=1){let i=d===void 0?0:h;d!=null||(d=h);for(let t=i;e>0?t<d:d<t;t+=e)yield t}var r=class extends P{constructor(){super(...arguments);this.variant="number";this.inverted=!1;this.loop=!1;this.autoplay=!1;this.slidesPerPage=1;this.slidesPerMove=1;this.activeSlide=0;this.currentPage=1;this.pausedAutoplay=!1;this.autoplayController=new k(this,()=>this.next());this.scrollController=new T(this);this.slides=this.getElementsByTagName("sd-4-6-17-carousel-item");this.intersectionObserverEntries=new Map;this.localize=new M(this);this.userInteracted=!1;this.handleUserInteraction=()=>{this.userInteracted=!0};this.handleSlotChange=e=>{e.some(t=>[...t.addedNodes,...t.removedNodes].some(s=>C.isCarouselItem(s)&&!s.hasAttribute("data-clone")))&&this.initializeSlides(),this.requestUpdate()};this.unblockAutoplay=(e,i)=>{e.detail&&i.blur()}}connectedCallback(){super.connectedCallback(),["click","keydown"].forEach(i=>this.addEventListener(i,this.handleUserInteraction));let e=new IntersectionObserver(i=>{i.forEach(t=>{this.intersectionObserverEntries.set(t.target,t);let s=t.target;s.toggleAttribute("inert",!t.isIntersecting),s.classList.toggle("--in-view",t.isIntersecting),s.setAttribute("aria-hidden",t.isIntersecting?"false":"true")})},{root:this,threshold:.6});this.intersectionObserver=e,e.takeRecords().forEach(i=>{this.intersectionObserverEntries.set(i.target,i)})}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver.disconnect(),this.mutationObserver.disconnect(),["click","keydown"].forEach(e=>this.removeEventListener(e,this.handleUserInteraction))}firstUpdated(){this.initializeSlides(),this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!1})}getPageCount(e,i,t){return Math.ceil((e-i)/t)+1>0?Math.ceil((e-i)/t)+1:1}getCurrentPage(e,i,t,s){return Math.ceil((e-t)/s)-Math.ceil((e-t-i)/s)+1}getSlides({excludeClones:e=!0}={}){return[...this.slides].filter(i=>!e||!i.hasAttribute("data-clone"))}handleKeyDown(e){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key)){let i=e.target,t=this.localize.dir()==="rtl",s=i.closest('[part~="pagination-item"]')!==null,n=e.key==="ArrowDown"||!t&&e.key==="ArrowRight"||t&&e.key==="ArrowLeft",c=e.key==="ArrowUp"||!t&&e.key==="ArrowLeft"||t&&e.key==="ArrowRight";e.preventDefault(),c&&this.previous(),n&&this.next(),e.key==="Home"&&this.goToSlide(0),e.key==="End"&&this.goToSlide(this.getSlides().length-1),s&&this.updateComplete.then(()=>{var a;let u=(a=this.shadowRoot)==null?void 0:a.querySelector('[part~="pagination-item--active"]');u&&u.focus()})}}handleScrollEnd(){let e=this.getSlides(),t=[...this.intersectionObserverEntries.values()].find(s=>s.isIntersecting);if(this.loop&&(t!=null&&t.target.hasAttribute("data-clone"))){let s=Number(t.target.getAttribute("data-clone"));this.goToSlide(s,"auto");return}t&&(this.activeSlide=e.indexOf(t.target))}handleFocus(){this.autoplay&&this.scrollContainer.setAttribute("aria-live","polite")}handleBlur(){this.autoplay&&this.scrollContainer.setAttribute("aria-live","off")}pause(){this.pausedAutoplay=!0}resume(){this.pausedAutoplay=!1}handlePausedAutoplay(){var e,i;this.pausedAutoplay?(this.autoplayController.stop(),(e=this.autoplayControls)==null||e.setAttribute("aria-pressed","false")):this.autoplay&&(this.autoplayController.start(3e3),(i=this.autoplayControls)==null||i.setAttribute("aria-pressed","true"))}initializeSlides(){let e=this.getSlides(),i=this.intersectionObserver;if(this.intersectionObserverEntries.clear(),this.getSlides({excludeClones:!1}).forEach((t,s)=>{i.unobserve(t),t.classList.remove("--in-view"),t.classList.remove("--is-active"),t.setAttribute("aria-label",this.localize.term("slideNum",s+1,e.length)),t.hasAttribute("data-clone")&&t.remove()}),this.loop){let t=this.slidesPerPage,s=e.slice(-t),n=e.slice(0,t);s.reverse().forEach((c,u)=>{let a=c.cloneNode(!0);a.setAttribute("data-clone",String(e.length-u-1)),this.prepend(a)}),n.forEach((c,u)=>{let a=c.cloneNode(!0);a.setAttribute("data-clone",String(u)),this.append(a)})}this.getSlides({excludeClones:!1}).forEach(t=>{i.observe(t)}),this.goToSlide(this.activeSlide,"auto")}handleSlideChange(){let e=this.getSlides();e.forEach((s,n)=>{s.classList.toggle("--is-active",n===this.activeSlide)});let i=this.getCurrentPage(e.length,this.activeSlide,this.slidesPerPage,this.slidesPerMove);this.currentPage!==i&&(this.currentPage=i),this.hasUpdated&&this.emit("sd-slide-change",{detail:{index:this.activeSlide,slide:e[this.activeSlide]}});let t=this.getPageCount(e.length,this.slidesPerPage,this.slidesPerMove);this.currentPage>t&&requestAnimationFrame(()=>{this.nextTillFirst()})}handleSlidesPerMoveChange(){let e=this.getSlides({excludeClones:!1}),i=this.slidesPerMove;e.forEach((t,s)=>{Math.abs(s-i)%i===0?t.style.removeProperty("scroll-snap-align"):t.style.setProperty("scroll-snap-align","none")})}handleAutoplayChange(){this.autoplayController.stop(),this.autoplay&&!this.pausedAutoplay&&this.autoplayController.start(3e3)}previous(e="smooth"){let i=this.activeSlide||this.activeSlide-this.slidesPerMove,t=!1;for(;!t&&i>0;)i-=1,t=Math.abs(i-this.slidesPerMove)%this.slidesPerMove===0;this.currentPage-1===0&&this.loop?this.goToSlide(this.activeSlide-this.slidesPerPage,e):this.goToSlide(i,e)}next(e="smooth"){this.currentPage+1<=this.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove)?this.goToSlide(this.activeSlide+this.slidesPerMove,e):this.loop&&this.nextTillFirst(e)}nextTillFirst(e="smooth"){for(;this.activeSlide!==0;)this.goToSlide(this.activeSlide+1,e);this.currentPage=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove)}goToSlide(e,i="smooth"){let{slidesPerPage:t,loop:s,scrollContainer:n}=this,c=this.getSlides(),u=this.getSlides({excludeClones:!1}),a=(e+c.length)%c.length;this.activeSlide=a;let p=L(e+(s?t:0),0,u.length+1),y=u[p],w=n.getBoundingClientRect(),S=y.getBoundingClientRect();if(n.scrollTo({left:S.left-w.left+n.scrollLeft,top:S.top-w.top+n.scrollTop,behavior:A()?"auto":i}),this.userInteracted&&!this.loop){let I=this.activeSlide===c.length-1||this.activeSlide===this.slides.length-this.slidesPerPage,O=this.activeSlide===0;I?this.previousButton.focus({preventScroll:!0}):O&&this.nextButton.focus({preventScroll:!0})}}render(){let{scrollController:e,slidesPerMove:i}=this,t=this.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove),s=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove),n=this.loop||s>1,c=this.loop||s<t,u=this.localize.dir()==="ltr";return b`<div part="base" class="${l("carousel h-full w-full")}"><div id="scroll-container" part="scroll-container" class="${l(`carousel__slides mb-6
1
+ import{a as k}from"./chunk.CBQWVOOS.js";import{a as T}from"./chunk.EUGX6XW6.js";import{a as C}from"./chunk.WVKH7MCS.js";import{c as A}from"./chunk.RQYP7MH5.js";import{a as M}from"./chunk.DEXOQON7.js";import{a as l}from"./chunk.26V4EXHB.js";import{a as m}from"./chunk.E2DRD2OX.js";import{a as E,b as v,c as f,d as g,e as $,h as P}from"./chunk.LQBUYA4X.js";import{b as x,e as b}from"./chunk.UWPDCU52.js";import{e as o}from"./chunk.TJOCV4DC.js";function L(h,d,e){let i=t=>Object.is(t,-0)?0:t;return h<d?i(d):h>e?i(e):i(h)}function*_(h,d){if(h!==void 0){let e=0;for(let i of h)yield d(i,e++)}}function*B(h,d,e=1){let i=d===void 0?0:h;d!=null||(d=h);for(let t=i;e>0?t<d:d<t;t+=e)yield t}var r=class extends P{constructor(){super(...arguments);this.variant="number";this.inverted=!1;this.loop=!1;this.autoplay=!1;this.slidesPerPage=1;this.slidesPerMove=1;this.activeSlide=0;this.currentPage=1;this.pausedAutoplay=!1;this.autoplayController=new k(this,()=>this.next());this.scrollController=new T(this);this.slides=this.getElementsByTagName("sd-4-6-18-carousel-item");this.intersectionObserverEntries=new Map;this.localize=new M(this);this.userInteracted=!1;this.handleUserInteraction=()=>{this.userInteracted=!0};this.handleSlotChange=e=>{e.some(t=>[...t.addedNodes,...t.removedNodes].some(s=>C.isCarouselItem(s)&&!s.hasAttribute("data-clone")))&&this.initializeSlides(),this.requestUpdate()};this.unblockAutoplay=(e,i)=>{e.detail&&i.blur()}}connectedCallback(){super.connectedCallback(),["click","keydown"].forEach(i=>this.addEventListener(i,this.handleUserInteraction));let e=new IntersectionObserver(i=>{i.forEach(t=>{this.intersectionObserverEntries.set(t.target,t);let s=t.target;s.toggleAttribute("inert",!t.isIntersecting),s.classList.toggle("--in-view",t.isIntersecting),s.setAttribute("aria-hidden",t.isIntersecting?"false":"true")})},{root:this,threshold:.6});this.intersectionObserver=e,e.takeRecords().forEach(i=>{this.intersectionObserverEntries.set(i.target,i)})}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver.disconnect(),this.mutationObserver.disconnect(),["click","keydown"].forEach(e=>this.removeEventListener(e,this.handleUserInteraction))}firstUpdated(){this.initializeSlides(),this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!1})}getPageCount(e,i,t){return Math.ceil((e-i)/t)+1>0?Math.ceil((e-i)/t)+1:1}getCurrentPage(e,i,t,s){return Math.ceil((e-t)/s)-Math.ceil((e-t-i)/s)+1}getSlides({excludeClones:e=!0}={}){return[...this.slides].filter(i=>!e||!i.hasAttribute("data-clone"))}handleKeyDown(e){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key)){let i=e.target,t=this.localize.dir()==="rtl",s=i.closest('[part~="pagination-item"]')!==null,n=e.key==="ArrowDown"||!t&&e.key==="ArrowRight"||t&&e.key==="ArrowLeft",c=e.key==="ArrowUp"||!t&&e.key==="ArrowLeft"||t&&e.key==="ArrowRight";e.preventDefault(),c&&this.previous(),n&&this.next(),e.key==="Home"&&this.goToSlide(0),e.key==="End"&&this.goToSlide(this.getSlides().length-1),s&&this.updateComplete.then(()=>{var a;let u=(a=this.shadowRoot)==null?void 0:a.querySelector('[part~="pagination-item--active"]');u&&u.focus()})}}handleScrollEnd(){let e=this.getSlides(),t=[...this.intersectionObserverEntries.values()].find(s=>s.isIntersecting);if(this.loop&&(t!=null&&t.target.hasAttribute("data-clone"))){let s=Number(t.target.getAttribute("data-clone"));this.goToSlide(s,"auto");return}t&&(this.activeSlide=e.indexOf(t.target))}handleFocus(){this.autoplay&&this.scrollContainer.setAttribute("aria-live","polite")}handleBlur(){this.autoplay&&this.scrollContainer.setAttribute("aria-live","off")}pause(){this.pausedAutoplay=!0}resume(){this.pausedAutoplay=!1}handlePausedAutoplay(){var e,i;this.pausedAutoplay?(this.autoplayController.stop(),(e=this.autoplayControls)==null||e.setAttribute("aria-pressed","false")):this.autoplay&&(this.autoplayController.start(3e3),(i=this.autoplayControls)==null||i.setAttribute("aria-pressed","true"))}initializeSlides(){let e=this.getSlides(),i=this.intersectionObserver;if(this.intersectionObserverEntries.clear(),this.getSlides({excludeClones:!1}).forEach((t,s)=>{i.unobserve(t),t.classList.remove("--in-view"),t.classList.remove("--is-active"),t.setAttribute("aria-label",this.localize.term("slideNum",s+1,e.length)),t.hasAttribute("data-clone")&&t.remove()}),this.loop){let t=this.slidesPerPage,s=e.slice(-t),n=e.slice(0,t);s.reverse().forEach((c,u)=>{let a=c.cloneNode(!0);a.setAttribute("data-clone",String(e.length-u-1)),this.prepend(a)}),n.forEach((c,u)=>{let a=c.cloneNode(!0);a.setAttribute("data-clone",String(u)),this.append(a)})}this.getSlides({excludeClones:!1}).forEach(t=>{i.observe(t)}),this.goToSlide(this.activeSlide,"auto")}handleSlideChange(){let e=this.getSlides();e.forEach((s,n)=>{s.classList.toggle("--is-active",n===this.activeSlide)});let i=this.getCurrentPage(e.length,this.activeSlide,this.slidesPerPage,this.slidesPerMove);this.currentPage!==i&&(this.currentPage=i),this.hasUpdated&&this.emit("sd-slide-change",{detail:{index:this.activeSlide,slide:e[this.activeSlide]}});let t=this.getPageCount(e.length,this.slidesPerPage,this.slidesPerMove);this.currentPage>t&&requestAnimationFrame(()=>{this.nextTillFirst()})}handleSlidesPerMoveChange(){let e=this.getSlides({excludeClones:!1}),i=this.slidesPerMove;e.forEach((t,s)=>{Math.abs(s-i)%i===0?t.style.removeProperty("scroll-snap-align"):t.style.setProperty("scroll-snap-align","none")})}handleAutoplayChange(){this.autoplayController.stop(),this.autoplay&&!this.pausedAutoplay&&this.autoplayController.start(3e3)}previous(e="smooth"){let i=this.activeSlide||this.activeSlide-this.slidesPerMove,t=!1;for(;!t&&i>0;)i-=1,t=Math.abs(i-this.slidesPerMove)%this.slidesPerMove===0;this.currentPage-1===0&&this.loop?this.goToSlide(this.activeSlide-this.slidesPerPage,e):this.goToSlide(i,e)}next(e="smooth"){this.currentPage+1<=this.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove)?this.goToSlide(this.activeSlide+this.slidesPerMove,e):this.loop&&this.nextTillFirst(e)}nextTillFirst(e="smooth"){for(;this.activeSlide!==0;)this.goToSlide(this.activeSlide+1,e);this.currentPage=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove)}goToSlide(e,i="smooth"){let{slidesPerPage:t,loop:s,scrollContainer:n}=this,c=this.getSlides(),u=this.getSlides({excludeClones:!1}),a=(e+c.length)%c.length;this.activeSlide=a;let p=L(e+(s?t:0),0,u.length+1),y=u[p],w=n.getBoundingClientRect(),S=y.getBoundingClientRect();if(n.scrollTo({left:S.left-w.left+n.scrollLeft,top:S.top-w.top+n.scrollTop,behavior:A()?"auto":i}),this.userInteracted&&!this.loop){let I=this.activeSlide===c.length-1||this.activeSlide===this.slides.length-this.slidesPerPage,O=this.activeSlide===0;I?this.previousButton.focus({preventScroll:!0}):O&&this.nextButton.focus({preventScroll:!0})}}render(){let{scrollController:e,slidesPerMove:i}=this,t=this.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove),s=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove),n=this.loop||s>1,c=this.loop||s<t,u=this.localize.dir()==="ltr";return b`<div part="base" class="${l("carousel h-full w-full")}"><div id="scroll-container" part="scroll-container" class="${l(`carousel__slides mb-6
2
2
  grid max-h-full w-full items-center justify-items-center overflow-auto`,this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",`overscroll-x-contain grid-flow-col auto-rows-[100%]
3
- snap-x snap-mandatory overflow-y-hidden`)}" style="--slides-per-page:${this.slidesPerPage}" aria-busy="${e.scrolling?"true":"false"}" aria-label="${this.localize.term("carouselContainer",this.slides.length)}" aria-live="${this.autoplay?"off":"polite"}" tabindex="0" @keydown="${this.handleKeyDown}" @scrollend="${this.handleScrollEnd}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><slot></slot></div><div part="controls" class="${l("w-full flex items-center justify-center relative")}"><div part="navigation" class="${l("carousel__navigation flex items-center justify-center")}"><button part="navigation-button navigation-button--previous" id="carousel__navigation-button--previous" ?disabled="${!n}" class="${l("!mr-6 !rounded-sm sd-interactive",!n&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${n?"false":"true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${n?a=>{this.previous(),this.unblockAutoplay(a,this.previousButton)}:null}"><slot name="previous-icon"><sd-4-6-17-icon class="${l("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${u?"chevron-down":"chevron-up"}"></sd-4-6-17-icon></slot></button> ${this.variant==="dot"?b`<div part="pagination-dot" role="tablist" class="${l("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${_(B(t),a=>{let p=a+1===s;return b`<button part="pagination-item ${p?"pagination-item--active":""}" class="${l("carousel__pagination-item","block cursor-pointer bg-none border-0 rounded-full",p?"bg-accent":"",this.inverted?"focus-within:focus-outline-inverted":"focus-within:focus-outline")}" role="tab" tabindex="0" aria-selected="${p?"true":"false"}" aria-label="${this.localize.term("goToSlide",a+1,t)}" @click="${y=>{this.goToSlide(a*i),this.unblockAutoplay(y,this.paginationItems[a])}}" @keydown="${this.handleKeyDown}"><span class="${l("h-4 w-4 block border hover:border-primary-500 rounded-full",this.inverted?"border-white hover:border-primary-500":"border-primary",p&&"bg-accent border-none",p?this.inverted?"hover:bg-accent-300":"hover:bg-accent-550":"")}"></span></button>`})}</div>`:b`<span part="pagination-number" class="carousel__pagination number flex gap-0.5 cursor-default select-none" aria-controls="scroll-container"><span part="pagination-item" class="${l("w-5 text-center border-b-2 border-accent",this.inverted?"text-white":"text-black")}">${s}</span> <span part="pagination-divider" class="${l("scale-y-[1.5]","text-center",this.inverted?"text-white":"text-black")}">/</span> <span part="pagination-item" class="${l("w-5 text-center",this.inverted?"text-white":"text-black")}">${t}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!c}" class="${l("!ml-6 !rounded-sm sd-interactive ",!c&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${c?"false":"true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${c?a=>{this.next(),this.unblockAutoplay(a,this.nextButton)}:null}"><slot name="next-icon"><sd-4-6-17-icon class="${l("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${u?"chevron-up":"chevron-down"}"></sd-4-6-17-icon></slot></button></div><button class="${l("ml-6 !rounded-sm","!absolute !right-0 sd-interactive",this.inverted?"sd-interactive--inverted":"sd-interactive--reset",!this.autoplay&&"!hidden")}" part="autoplay-controls" aria-label="${this.localize.term("autoplay")}" aria-pressed="true" @click="${a=>{this.pausedAutoplay=!this.pausedAutoplay,a.detail&&this.autoplayControls.blur()}}"><slot name="autoplay-start" class="${l(this.pausedAutoplay?"":"hidden")}"><sd-4-6-17-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-4-6-17-icon></slot><slot name="autoplay-pause" class="${l(this.pausedAutoplay?"hidden":"")}"><sd-4-6-17-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-4-6-17-icon></slot></button></div></div>`}};r.styles=[...P.styles,x`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-4-6-17-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`],o([g('[part~="autoplay-controls"]')],r.prototype,"autoplayControls",2),o([g('[part~="navigation-button--previous"]')],r.prototype,"previousButton",2),o([g('[part~="navigation-button--next"]')],r.prototype,"nextButton",2),o([$('[part~="pagination-item"]')],r.prototype,"paginationItems",2),o([v({type:String,reflect:!0})],r.prototype,"variant",2),o([v({type:Boolean,reflect:!0})],r.prototype,"inverted",2),o([v({type:Boolean,reflect:!0})],r.prototype,"loop",2),o([v({type:Boolean,reflect:!0})],r.prototype,"autoplay",2),o([v({type:Number,attribute:"slides-per-page",reflect:!0})],r.prototype,"slidesPerPage",2),o([v({type:Number,attribute:"slides-per-move",reflect:!0})],r.prototype,"slidesPerMove",2),o([g("slot:not([name])")],r.prototype,"defaultSlot",2),o([g(".carousel__slides")],r.prototype,"scrollContainer",2),o([g(".carousel__pagination")],r.prototype,"paginationContainer",2),o([f()],r.prototype,"activeSlide",2),o([f()],r.prototype,"currentPage",2),o([f()],r.prototype,"pausedAutoplay",2),o([m("pausedAutoplay")],r.prototype,"handlePausedAutoplay",1),o([m("loop",{waitUntilFirstUpdate:!0}),m("slidesPerPage",{waitUntilFirstUpdate:!0})],r.prototype,"initializeSlides",1),o([m("activeSlide")],r.prototype,"handleSlideChange",1),o([m("slidesPerMove")],r.prototype,"handleSlidesPerMoveChange",1),o([m("autoplay")],r.prototype,"handleAutoplayChange",1),r=o([E("sd-4-6-17-carousel")],r);export{r as a};
3
+ snap-x snap-mandatory overflow-y-hidden`)}" style="--slides-per-page:${this.slidesPerPage}" aria-busy="${e.scrolling?"true":"false"}" aria-label="${this.localize.term("carouselContainer",this.slides.length)}" aria-live="${this.autoplay?"off":"polite"}" tabindex="0" @keydown="${this.handleKeyDown}" @scrollend="${this.handleScrollEnd}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><slot></slot></div><div part="controls" class="${l("w-full flex items-center justify-center relative")}"><div part="navigation" class="${l("carousel__navigation flex items-center justify-center")}"><button part="navigation-button navigation-button--previous" id="carousel__navigation-button--previous" ?disabled="${!n}" class="${l("!mr-6 !rounded-sm sd-interactive",!n&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${n?"false":"true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${n?a=>{this.previous(),this.unblockAutoplay(a,this.previousButton)}:null}"><slot name="previous-icon"><sd-4-6-18-icon class="${l("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${u?"chevron-down":"chevron-up"}"></sd-4-6-18-icon></slot></button> ${this.variant==="dot"?b`<div part="pagination-dot" role="tablist" class="${l("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${_(B(t),a=>{let p=a+1===s;return b`<button part="pagination-item ${p?"pagination-item--active":""}" class="${l("carousel__pagination-item","block cursor-pointer bg-none border-0 rounded-full",p?"bg-accent":"",this.inverted?"focus-within:focus-outline-inverted":"focus-within:focus-outline")}" role="tab" tabindex="0" aria-selected="${p?"true":"false"}" aria-label="${this.localize.term("goToSlide",a+1,t)}" @click="${y=>{this.goToSlide(a*i),this.unblockAutoplay(y,this.paginationItems[a])}}" @keydown="${this.handleKeyDown}"><span class="${l("h-4 w-4 block border hover:border-primary-500 rounded-full",this.inverted?"border-white hover:border-primary-500":"border-primary",p&&"bg-accent border-none",p?this.inverted?"hover:bg-accent-300":"hover:bg-accent-550":"")}"></span></button>`})}</div>`:b`<span part="pagination-number" class="carousel__pagination number flex gap-0.5 cursor-default select-none" aria-controls="scroll-container"><span part="pagination-item" class="${l("w-5 text-center border-b-2 border-accent",this.inverted?"text-white":"text-black")}">${s}</span> <span part="pagination-divider" class="${l("scale-y-[1.5]","text-center",this.inverted?"text-white":"text-black")}">/</span> <span part="pagination-item" class="${l("w-5 text-center",this.inverted?"text-white":"text-black")}">${t}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!c}" class="${l("!ml-6 !rounded-sm sd-interactive ",!c&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${c?"false":"true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${c?a=>{this.next(),this.unblockAutoplay(a,this.nextButton)}:null}"><slot name="next-icon"><sd-4-6-18-icon class="${l("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${u?"chevron-up":"chevron-down"}"></sd-4-6-18-icon></slot></button></div><button class="${l("ml-6 !rounded-sm","!absolute !right-0 sd-interactive",this.inverted?"sd-interactive--inverted":"sd-interactive--reset",!this.autoplay&&"!hidden")}" part="autoplay-controls" aria-label="${this.localize.term("autoplay")}" aria-pressed="true" @click="${a=>{this.pausedAutoplay=!this.pausedAutoplay,a.detail&&this.autoplayControls.blur()}}"><slot name="autoplay-start" class="${l(this.pausedAutoplay?"":"hidden")}"><sd-4-6-18-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-4-6-18-icon></slot><slot name="autoplay-pause" class="${l(this.pausedAutoplay?"hidden":"")}"><sd-4-6-18-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-4-6-18-icon></slot></button></div></div>`}};r.styles=[...P.styles,x`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-4-6-18-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`],o([g('[part~="autoplay-controls"]')],r.prototype,"autoplayControls",2),o([g('[part~="navigation-button--previous"]')],r.prototype,"previousButton",2),o([g('[part~="navigation-button--next"]')],r.prototype,"nextButton",2),o([$('[part~="pagination-item"]')],r.prototype,"paginationItems",2),o([v({type:String,reflect:!0})],r.prototype,"variant",2),o([v({type:Boolean,reflect:!0})],r.prototype,"inverted",2),o([v({type:Boolean,reflect:!0})],r.prototype,"loop",2),o([v({type:Boolean,reflect:!0})],r.prototype,"autoplay",2),o([v({type:Number,attribute:"slides-per-page",reflect:!0})],r.prototype,"slidesPerPage",2),o([v({type:Number,attribute:"slides-per-move",reflect:!0})],r.prototype,"slidesPerMove",2),o([g("slot:not([name])")],r.prototype,"defaultSlot",2),o([g(".carousel__slides")],r.prototype,"scrollContainer",2),o([g(".carousel__pagination")],r.prototype,"paginationContainer",2),o([f()],r.prototype,"activeSlide",2),o([f()],r.prototype,"currentPage",2),o([f()],r.prototype,"pausedAutoplay",2),o([m("pausedAutoplay")],r.prototype,"handlePausedAutoplay",1),o([m("loop",{waitUntilFirstUpdate:!0}),m("slidesPerPage",{waitUntilFirstUpdate:!0})],r.prototype,"initializeSlides",1),o([m("activeSlide")],r.prototype,"handleSlideChange",1),o([m("slidesPerMove")],r.prototype,"handleSlidesPerMoveChange",1),o([m("autoplay")],r.prototype,"handleAutoplayChange",1),r=o([E("sd-4-6-18-carousel")],r);export{r as a};
4
4
  /*! Bundled license information:
5
5
 
6
6
  lit-html/directives/map.js:
7
- (**
8
- * @license
9
- * Copyright 2021 Google LLC
10
- * SPDX-License-Identifier: BSD-3-Clause
11
- *)
12
-
13
7
  lit-html/directives/range.js:
14
8
  (**
15
9
  * @license
@@ -1 +1 @@
1
- import{a as p}from"./chunk.6HO6CE4A.js";import{a as r}from"./chunk.26V4EXHB.js";import{a as h,b as a,c as d,d as m,h as s}from"./chunk.QNLZDKXR.js";import{b as l,e as n}from"./chunk.IRWHG2Q4.js";import{e as i}from"./chunk.TJOCV4DC.js";var t=class extends s{constructor(){super(...arguments);this.variant="white";this.breakpoint=448;this.inset=!1;this.hasSlotController=new p(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),this.breakpoint===0?this._orientation="horizontal":this.breakpoint===9999?this._orientation="vertical":window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(()=>this.updateOrientation()),this.resizeObserver.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&this.resizeObserver.disconnect()}updated(e){super.updated(e),e.has("breakpoint")&&this.updateOrientation()}updateOrientation(){this._orientation=this.offsetWidth>=this.breakpoint?"horizontal":"vertical"}render(){let e=this.variant==="white border-neutral-400"||this.inset,o={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline")};return n`<div class="${r("flex",{white:"bg-white","white border-neutral-400":"bg-white border border-neutral-400","neutral-100":"bg-neutral-100",primary:"bg-primary text-white","primary-100":"bg-primary-100"}[this.variant],this._orientation==="vertical"&&"flex-col",this._orientation==="horizontal"&&"flex-row gap-8",this._orientation==="horizontal"&&e&&"py-8 px-10")}" part="base"><div style="${this._orientation==="horizontal"?`width: var(--distribution-content, 100%); ${e?"width: var(--distribution-content, calc(100% - 2rem));":""}`:""}" class="${r("flex flex-col text-left order-2",this._orientation==="horizontal"&&"flex flex-col",this._orientation==="vertical"&&e&&"m-4")}" part="content"><div class="flex flex-col-reverse"><div part="headline" class="${r("text-lg font-bold m-0",this.variant==="primary"?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. &lt;h2>)</slot></div><div part="meta" class="${r("gap-2 mb-4",!o["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div></div><div part="main" class="${r(!o["teaser-has-default"]&&"hidden")}" role="group" aria-labelledby="headline"><slot></slot></div></div><div part="media" id="media" style="${this._orientation==="horizontal"?"width: var(--distribution-media, 100%);":""}" class="${r("order-1",!e&&this._orientation==="vertical"&&"mb-4",!o["teaser-has-media"]&&"hidden",this.variant==="white border-neutral-400"&&this._orientation==="vertical"&&"mx-[-1px] mt-[-1px]")}"><slot name="media"></slot></div></div>`}};t.styles=[...s.styles,l`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700;margin:var(--sd-spacing-0,0)!important}`],i([a({type:String,reflect:!0})],t.prototype,"variant",2),i([a({reflect:!0,type:Number})],t.prototype,"breakpoint",2),i([a({type:Boolean,reflect:!0})],t.prototype,"inset",2),i([m('[part="base"]')],t.prototype,"teaser",2),i([d()],t.prototype,"_orientation",2),t=i([h("sd-4-6-17-teaser")],t);export{t as a};
1
+ import{a as p}from"./chunk.6HO6CE4A.js";import{a as r}from"./chunk.26V4EXHB.js";import{a as h,b as a,c as d,d as m,h as s}from"./chunk.LQBUYA4X.js";import{b as l,e as n}from"./chunk.UWPDCU52.js";import{e as i}from"./chunk.TJOCV4DC.js";var t=class extends s{constructor(){super(...arguments);this.variant="white";this.breakpoint=448;this.inset=!1;this.hasSlotController=new p(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),this.breakpoint===0?this._orientation="horizontal":this.breakpoint===9999?this._orientation="vertical":window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(()=>this.updateOrientation()),this.resizeObserver.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&this.resizeObserver.disconnect()}updated(e){super.updated(e),e.has("breakpoint")&&this.updateOrientation()}updateOrientation(){this._orientation=this.offsetWidth>=this.breakpoint?"horizontal":"vertical"}render(){let e=this.variant==="white border-neutral-400"||this.inset,o={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline")};return n`<div class="${r("flex",{white:"bg-white","white border-neutral-400":"bg-white border border-neutral-400","neutral-100":"bg-neutral-100",primary:"bg-primary text-white","primary-100":"bg-primary-100"}[this.variant],this._orientation==="vertical"&&"flex-col",this._orientation==="horizontal"&&"flex-row gap-8",this._orientation==="horizontal"&&e&&"py-8 px-10")}" part="base"><div style="${this._orientation==="horizontal"?`width: var(--distribution-content, 100%); ${e?"width: var(--distribution-content, calc(100% - 2rem));":""}`:""}" class="${r("flex flex-col text-left order-2",this._orientation==="horizontal"&&"flex flex-col",this._orientation==="vertical"&&e&&"m-4")}" part="content"><div class="flex flex-col-reverse"><div part="headline" class="${r("text-lg font-bold m-0",this.variant==="primary"?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. &lt;h2>)</slot></div><div part="meta" class="${r("gap-2 mb-4",!o["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div></div><div part="main" class="${r(!o["teaser-has-default"]&&"hidden")}" role="group" aria-labelledby="headline"><slot></slot></div></div><div part="media" id="media" style="${this._orientation==="horizontal"?"width: var(--distribution-media, 100%);":""}" class="${r("order-1",!e&&this._orientation==="vertical"&&"mb-4",!o["teaser-has-media"]&&"hidden",this.variant==="white border-neutral-400"&&this._orientation==="vertical"&&"mx-[-1px] mt-[-1px]")}"><slot name="media"></slot></div></div>`}};t.styles=[...s.styles,l`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700;margin:var(--sd-spacing-0,0)!important}`],i([a({type:String,reflect:!0})],t.prototype,"variant",2),i([a({reflect:!0,type:Number})],t.prototype,"breakpoint",2),i([a({type:Boolean,reflect:!0})],t.prototype,"inset",2),i([m('[part="base"]')],t.prototype,"teaser",2),i([d()],t.prototype,"_orientation",2),t=i([h("sd-4-6-18-teaser")],t);export{t as a};
@@ -1,13 +1,7 @@
1
- import{a as i,b as o,c as p}from"./chunk.SPDB3L7V.js";import{h as s,i as l,j as a}from"./chunk.IRWHG2Q4.js";var{I:_}=a;var A=e=>e.strings===void 0;var $={},c=(e,t=$)=>e._$AH=t;var v=o(class extends p{constructor(e){if(super(e),e.type!==i.PROPERTY&&e.type!==i.ATTRIBUTE&&e.type!==i.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!A(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===s||t===l)return t;let r=e.element,n=e.name;if(e.type===i.PROPERTY){if(t===r[n])return s}else if(e.type===i.BOOLEAN_ATTRIBUTE){if(!!t===r.hasAttribute(n))return s}else if(e.type===i.ATTRIBUTE&&r.getAttribute(n)===t+"")return s;return c(e),t}});export{A as a,v as b};
1
+ import{a as i,b as o,c as p}from"./chunk.CDEXCMVF.js";import{h as s,i as l,j as a}from"./chunk.UWPDCU52.js";var{I:_}=a;var A=e=>e.strings===void 0;var $={},c=(e,t=$)=>e._$AH=t;var v=o(class extends p{constructor(e){if(super(e),e.type!==i.PROPERTY&&e.type!==i.ATTRIBUTE&&e.type!==i.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!A(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===s||t===l)return t;let r=e.element,n=e.name;if(e.type===i.PROPERTY){if(t===r[n])return s}else if(e.type===i.BOOLEAN_ATTRIBUTE){if(!!t===r.hasAttribute(n))return s}else if(e.type===i.ATTRIBUTE&&r.getAttribute(n)===t+"")return s;return c(e),t}});export{A as a,v as b};
2
2
  /*! Bundled license information:
3
3
 
4
4
  lit-html/directive-helpers.js:
5
- (**
6
- * @license
7
- * Copyright 2020 Google LLC
8
- * SPDX-License-Identifier: BSD-3-Clause
9
- *)
10
-
11
5
  lit-html/directives/live.js:
12
6
  (**
13
7
  * @license
@@ -1,11 +1,11 @@
1
- import{a as I}from"./chunk.D7TMPF3D.js";import{c as M}from"./chunk.3L472FD4.js";import{a as w,c as O}from"./chunk.A3DKF5BY.js";import{a as y,d as x}from"./chunk.RQYP7MH5.js";import{a as C}from"./chunk.KLRPP4NQ.js";import{b as L}from"./chunk.65NSSTJE.js";import{a as z}from"./chunk.6HO6CE4A.js";import{a as k}from"./chunk.6GKUJURA.js";import{a as D}from"./chunk.DEXOQON7.js";import{a as d}from"./chunk.26V4EXHB.js";import{a as b}from"./chunk.E2DRD2OX.js";import{a as $,b as r,c as u,d as c,g as E,h as v}from"./chunk.QNLZDKXR.js";import{b as T,e as p}from"./chunk.IRWHG2Q4.js";import{e as s}from"./chunk.TJOCV4DC.js";var i=class extends v{constructor(){super(...arguments);this.formControlController=new L(this,{assumeInteractionOn:["sd-blur","sd-4-6-17-input"]});this.hasSlotController=new z(this,"help-text","label");this.localize=new D(this);this.typeToSelectString="";this.displayLabel="";this.deletedTagLabel="";this.hasFocus=!1;this.selectedOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.defaultValue="";this.open=!1;this.size="lg";this.placement="bottom";this.label="";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.helpText="";this.currentPlacement=this.placement;this.clearable=!1;this.multiple=!1;this.useTags=!1;this.maxOptionsVisible=3;this.form="";this.name="";this.value="";this.required=!1;this.styleOnValid=!1;this.hoist=!1;this.getTag=t=>p`<sd-4-6-17-tag class="relative z-10" ?disabled="${this.disabled}" part="tag" exportparts="
1
+ import{a as I}from"./chunk.CDC46OKY.js";import{c as M}from"./chunk.3L472FD4.js";import{a as w,c as O}from"./chunk.A3DKF5BY.js";import{a as y,d as x}from"./chunk.RQYP7MH5.js";import{a as C}from"./chunk.KLRPP4NQ.js";import{b as L}from"./chunk.6HLS5XU2.js";import{a as z}from"./chunk.6HO6CE4A.js";import{a as k}from"./chunk.45NSYAGI.js";import{a as D}from"./chunk.DEXOQON7.js";import{a as d}from"./chunk.26V4EXHB.js";import{a as b}from"./chunk.E2DRD2OX.js";import{a as $,b as r,c as u,d as c,g as E,h as v}from"./chunk.LQBUYA4X.js";import{b as T,e as p}from"./chunk.UWPDCU52.js";import{e as s}from"./chunk.TJOCV4DC.js";var i=class extends v{constructor(){super(...arguments);this.formControlController=new L(this,{assumeInteractionOn:["sd-blur","sd-4-6-18-input"]});this.hasSlotController=new z(this,"help-text","label");this.localize=new D(this);this.typeToSelectString="";this.displayLabel="";this.deletedTagLabel="";this.hasFocus=!1;this.selectedOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.defaultValue="";this.open=!1;this.size="lg";this.placement="bottom";this.label="";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.helpText="";this.currentPlacement=this.placement;this.clearable=!1;this.multiple=!1;this.useTags=!1;this.maxOptionsVisible=3;this.form="";this.name="";this.value="";this.required=!1;this.styleOnValid=!1;this.hoist=!1;this.getTag=t=>p`<sd-4-6-18-tag class="relative z-10" ?disabled="${this.disabled}" part="tag" exportparts="
2
2
  base:tag__base,
3
3
  content:tag__content,
4
4
  removable-indicator:tag__removable-indicator,
5
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${e=>this.handleTagKeyDown(e,t)}" @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-4-6-17-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{let e=t.target,l=e.closest(".select__clear")!==null,o=e.closest("sd-4-6-17-icon-button")!==null;if(!(l||o)){if(t.key==="Escape"&&this.open&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.combobox.focus({preventScroll:!0})),t.key==="Enter"||t.key===" "&&this.typeToSelectString===""){if(t.preventDefault(),t.stopImmediatePropagation(),!this.open){this.show(),this.setCurrentOption(this.currentOption||this.getFirstOption(),t);return}this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.combobox.focus({preventScroll:!0})));return}if(["ArrowUp","ArrowDown","Home","End"].includes(t.key)){let h=this.getAllOptions(),a=h.indexOf(this.currentOption),n=Math.max(0,a);if(t.preventDefault(),!this.open&&(this.show(),this.currentOption))return;t.key==="ArrowDown"?(n=a+1,n>h.length-1&&(n=0)):t.key==="ArrowUp"?(n=a-1,n<0&&(n=h.length-1)):t.key==="Home"?n=0:t.key==="End"&&(n=h.length-1),this.setCurrentOption(h[n],t)}if(t.key.length===1||t.key==="Backspace"){let h=this.getAllOptions();if(t.metaKey||t.ctrlKey||t.altKey)return;if(!this.open){if(t.key==="Backspace")return;this.show()}t.stopPropagation(),t.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout(()=>this.typeToSelectString="",1e3),t.key==="Backspace"?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=t.key.toLowerCase();for(let a of h)if(a.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(a);break}}}};this.handleDocumentMouseDown=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.open=!1}firstUpdated(){this.applySizeToOptions()}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){var l,o,h;if((t.key==="Backspace"||t.key==="Enter"||t.key===" ")&&this.multiple){t.preventDefault(),t.stopPropagation();let a=(l=t.currentTarget)==null?void 0:l.parentElement,n=(o=a==null?void 0:a.previousElementSibling)==null?void 0:o.querySelector("sd-4-6-17-tag"),m=(h=a==null?void 0:a.nextElementSibling)==null?void 0:h.querySelector("sd-4-6-17-tag");this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>{m?m.focus():n?n.focus():this.focus({preventScroll:!0})})}}handleTagMaxOptionsKeyDown(t){(t.key==="Backspace"||t.key==="Enter")&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>{var l;let e=(l=this.shadowRoot)==null?void 0:l.querySelectorAll("sd-4-6-17-tag");e&&e.length>0?e==null||e[(e==null?void 0:e.length)-1].focus():this.focus({preventScroll:!0})}))}handleLabelClick(){this.combobox.focus()}handleComboboxMouseDown(t){let l=t.composedPath().some(o=>o instanceof HTMLSlotElement&&o.name==="removable-indicator");this.disabled||l||this.visuallyDisabled||(t.preventDefault(),this.combobox.focus({preventScroll:!0}),this.open=!this.open,this.setCurrentOption(this.currentOption||this.getFirstOption(),t))}handleComboboxKeyDown(t){t.stopPropagation(),this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearSelect()}clearSelect(){this.setSelectedOptions([]),this.combobox.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")})}handleClearMouseDown(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let l=t.target.closest("sd-4-6-17-option"),o=this.value;l&&!l.disabled&&(this.multiple?this.toggleOptionSelection(l):this.setSelectedOptions(l),this.updateComplete.then(()=>this.combobox.focus({preventScroll:!0})),this.value!==o&&this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.combobox.focus({preventScroll:!0})))}handleDefaultSlotChange(){let t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value],l=[];customElements.get("sd-4-6-17-option")?(t.forEach(o=>{this.multiple&&(o.checkbox=!0),l.push(o.value)}),this.setSelectedOptions(t.filter(o=>e.includes(o.value)))):customElements.whenDefined("sd-4-6-17-option").then(()=>this.handleDefaultSlotChange())}handleTagRemove(t,e){t.stopPropagation(),e||this.clearSelect(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.deletedTagLabel=this.localize.term("removed",e.textContent),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}))}getAllOptions(){return[...this.querySelectorAll("sd-4-6-17-option")]}getFirstOption(){return this.querySelector("sd-4-6-17-option")}setCurrentOption(t,e){this.getAllOptions().forEach(o=>{o.current=!1,o.tabIndex=-1,((e==null?void 0:e.type)==="keydown"||(e==null?void 0:e.type)==="mousedown")&&(o.isKeyboardFocus=!1)}),t&&(this.currentOption=t,t.current=!0,t.tabIndex=0,t.focus()),t&&(e==null?void 0:e.type)==="keydown"&&(t.isKeyboardFocus=!0)}setSelectedOptions(t){let e=this.getAllOptions(),l=Array.isArray(t)?t:[t];e.forEach(o=>o.selected=!1),l.length&&l.forEach(o=>o.selected=!0),Array.isArray(t)?this.selectionChanged():this.selectionChanged(t)}toggleOptionSelection(t,e){e===!0||e===!1?t.selected=e:t.selected=!t.selected,Array.isArray(t)?this.selectionChanged():this.selectionChanged(t)}selectionChanged(t){var e,l,o,h;t&&this.multiple?this.selectedOptions.find(a=>a.value===t.value)?this.selectedOptions=this.selectedOptions.filter(a=>a.value!==t.value):this.selectedOptions=[...this.selectedOptions,t]:this.selectedOptions=this.getAllOptions().filter(a=>a.selected),this.multiple?(this.value=this.selectedOptions.map(a=>a.value),this.useTags||this.value.length===0?this.displayLabel="":this.displayLabel=this.localize.term("numOptionsSelected",this.selectedOptions.length)):(this.value=(l=(e=this.selectedOptions[0])==null?void 0:e.value)!=null?l:"",this.displayLabel=(h=(o=this.selectedOptions[0])==null?void 0:o.getTextLabel())!=null?h:""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}get tags(){return this.selectedOptions.length<=this.maxOptionsVisible?this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){let l=this.getTag(t,e);return p`<div @sd-remove="${o=>this.handleTagRemove(o,t)}">${typeof l=="string"?k(l):l}</div>`}return[p``]}):[p`<sd-4-6-17-tag class="z-10" ?disabled="${this.disabled}" part="tag" exportparts="
5
+ " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${e=>this.handleTagKeyDown(e,t)}" @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-4-6-18-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{let e=t.target,l=e.closest(".select__clear")!==null,o=e.closest("sd-4-6-18-icon-button")!==null;if(!(l||o)){if(t.key==="Escape"&&this.open&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.combobox.focus({preventScroll:!0})),t.key==="Enter"||t.key===" "&&this.typeToSelectString===""){if(t.preventDefault(),t.stopImmediatePropagation(),!this.open){this.show(),this.setCurrentOption(this.currentOption||this.getFirstOption(),t);return}this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.combobox.focus({preventScroll:!0})));return}if(["ArrowUp","ArrowDown","Home","End"].includes(t.key)){let h=this.getAllOptions(),a=h.indexOf(this.currentOption),n=Math.max(0,a);if(t.preventDefault(),!this.open&&(this.show(),this.currentOption))return;t.key==="ArrowDown"?(n=a+1,n>h.length-1&&(n=0)):t.key==="ArrowUp"?(n=a-1,n<0&&(n=h.length-1)):t.key==="Home"?n=0:t.key==="End"&&(n=h.length-1),this.setCurrentOption(h[n],t)}if(t.key.length===1||t.key==="Backspace"){let h=this.getAllOptions();if(t.metaKey||t.ctrlKey||t.altKey)return;if(!this.open){if(t.key==="Backspace")return;this.show()}t.stopPropagation(),t.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout(()=>this.typeToSelectString="",1e3),t.key==="Backspace"?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=t.key.toLowerCase();for(let a of h)if(a.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(a);break}}}};this.handleDocumentMouseDown=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.open=!1}firstUpdated(){this.applySizeToOptions()}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){var l,o,h;if((t.key==="Backspace"||t.key==="Enter"||t.key===" ")&&this.multiple){t.preventDefault(),t.stopPropagation();let a=(l=t.currentTarget)==null?void 0:l.parentElement,n=(o=a==null?void 0:a.previousElementSibling)==null?void 0:o.querySelector("sd-4-6-18-tag"),m=(h=a==null?void 0:a.nextElementSibling)==null?void 0:h.querySelector("sd-4-6-18-tag");this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>{m?m.focus():n?n.focus():this.focus({preventScroll:!0})})}}handleTagMaxOptionsKeyDown(t){(t.key==="Backspace"||t.key==="Enter")&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>{var l;let e=(l=this.shadowRoot)==null?void 0:l.querySelectorAll("sd-4-6-18-tag");e&&e.length>0?e==null||e[(e==null?void 0:e.length)-1].focus():this.focus({preventScroll:!0})}))}handleLabelClick(){this.combobox.focus()}handleComboboxMouseDown(t){let l=t.composedPath().some(o=>o instanceof HTMLSlotElement&&o.name==="removable-indicator");this.disabled||l||this.visuallyDisabled||(t.preventDefault(),this.combobox.focus({preventScroll:!0}),this.open=!this.open,this.setCurrentOption(this.currentOption||this.getFirstOption(),t))}handleComboboxKeyDown(t){t.stopPropagation(),this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearSelect()}clearSelect(){this.setSelectedOptions([]),this.combobox.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")})}handleClearMouseDown(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let l=t.target.closest("sd-4-6-18-option"),o=this.value;l&&!l.disabled&&(this.multiple?this.toggleOptionSelection(l):this.setSelectedOptions(l),this.updateComplete.then(()=>this.combobox.focus({preventScroll:!0})),this.value!==o&&this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.combobox.focus({preventScroll:!0})))}handleDefaultSlotChange(){let t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value],l=[];customElements.get("sd-4-6-18-option")?(t.forEach(o=>{this.multiple&&(o.checkbox=!0),l.push(o.value)}),this.setSelectedOptions(t.filter(o=>e.includes(o.value)))):customElements.whenDefined("sd-4-6-18-option").then(()=>this.handleDefaultSlotChange())}handleTagRemove(t,e){t.stopPropagation(),e||this.clearSelect(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.deletedTagLabel=this.localize.term("removed",e.textContent),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}))}getAllOptions(){return[...this.querySelectorAll("sd-4-6-18-option")]}getFirstOption(){return this.querySelector("sd-4-6-18-option")}setCurrentOption(t,e){this.getAllOptions().forEach(o=>{o.current=!1,o.tabIndex=-1,((e==null?void 0:e.type)==="keydown"||(e==null?void 0:e.type)==="mousedown")&&(o.isKeyboardFocus=!1)}),t&&(this.currentOption=t,t.current=!0,t.tabIndex=0,t.focus()),t&&(e==null?void 0:e.type)==="keydown"&&(t.isKeyboardFocus=!0)}setSelectedOptions(t){let e=this.getAllOptions(),l=Array.isArray(t)?t:[t];e.forEach(o=>o.selected=!1),l.length&&l.forEach(o=>o.selected=!0),Array.isArray(t)?this.selectionChanged():this.selectionChanged(t)}toggleOptionSelection(t,e){e===!0||e===!1?t.selected=e:t.selected=!t.selected,Array.isArray(t)?this.selectionChanged():this.selectionChanged(t)}selectionChanged(t){var e,l,o,h;t&&this.multiple?this.selectedOptions.find(a=>a.value===t.value)?this.selectedOptions=this.selectedOptions.filter(a=>a.value!==t.value):this.selectedOptions=[...this.selectedOptions,t]:this.selectedOptions=this.getAllOptions().filter(a=>a.selected),this.multiple?(this.value=this.selectedOptions.map(a=>a.value),this.useTags||this.value.length===0?this.displayLabel="":this.displayLabel=this.localize.term("numOptionsSelected",this.selectedOptions.length)):(this.value=(l=(e=this.selectedOptions[0])==null?void 0:e.value)!=null?l:"",this.displayLabel=(h=(o=this.selectedOptions[0])==null?void 0:o.getTextLabel())!=null?h:""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}get tags(){return this.selectedOptions.length<=this.maxOptionsVisible?this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){let l=this.getTag(t,e);return p`<div @sd-remove="${o=>this.handleTagRemove(o,t)}">${typeof l=="string"?k(l):l}</div>`}return[p``]}):[p`<sd-4-6-18-tag class="z-10" ?disabled="${this.disabled}" part="tag" exportparts="
6
6
  base:tag__base,
7
7
  content:tag__content,
8
8
  removable-indicator:tag__removable-indicator,
9
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-6-17-tag>`]}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleUseTagsChange(){let t=this.getAllOptions();customElements.get("sd-4-6-17-option")&&t.forEach(e=>{e.checkbox=this.multiple})}handleDisabledChange(){(this.disabled||this.visuallyDisabled)&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&(!this.disabled||!this.visuallyDisabled)){this.multiple||this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await x(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});let{keyframes:t,options:e}=O(this,"select.show",{dir:this.localize.dir()});await y(this.popup.popup,t,e),this.currentOption&&M(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await x(this);let{keyframes:t,options:e}=O(this,"select.hide",{dir:this.localize.dir()});await y(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach(t=>{t.size=this.size})}handleValueChange(){if(this.selectedOptions.length===(Array.isArray(this.value)?this.value.length:1))return;let t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(t.filter(l=>e.includes(l.value)))}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,C(this,"sd-after-show")}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.open=!1,C(this,"sd-after-hide")}checkValidity(){var t;return(t=this.valueInput)==null?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.combobox.focus(t)}blur(){this.combobox.blur()}render(){let t={default:this.hasSlotController.test("[default]"),label:this.hasSlotController.test("label"),clearIcon:this.hasSlotController.test("clear-icon"),expandIcon:this.hasSlotController.test("expand-icon"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,l=this.helpText?!0:!!t.helpText,o=this.clearable&&!this.disabled,h=!!t.tooltip,a=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",n=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",m={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],f={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return p`<div part="form-control" class="${d("relative text-left",n,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><span class="sr-only" aria-live="polite">${this.deletedTagLabel}</span> ${e||h?p`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${e&&"inline-block"}" aria-hidden="${e?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${d("relative w-full bg-white",a==="disabled"?"text-neutral-500":"text-black")}"><div part="border" class="${d("absolute top-0 w-full h-full pointer-events-none border rounded-default z-10",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[a],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-4-6-17-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-4-6-18-tag>`]}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleUseTagsChange(){let t=this.getAllOptions();customElements.get("sd-4-6-18-option")&&t.forEach(e=>{e.checkbox=this.multiple})}handleDisabledChange(){(this.disabled||this.visuallyDisabled)&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&(!this.disabled||!this.visuallyDisabled)){this.multiple||this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await x(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});let{keyframes:t,options:e}=O(this,"select.show",{dir:this.localize.dir()});await y(this.popup.popup,t,e),this.currentOption&&M(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await x(this);let{keyframes:t,options:e}=O(this,"select.hide",{dir:this.localize.dir()});await y(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach(t=>{t.size=this.size})}handleValueChange(){if(this.selectedOptions.length===(Array.isArray(this.value)?this.value.length:1))return;let t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(t.filter(l=>e.includes(l.value)))}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,C(this,"sd-after-show")}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.open=!1,C(this,"sd-after-hide")}checkValidity(){var t;return(t=this.valueInput)==null?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.combobox.focus(t)}blur(){this.combobox.blur()}render(){let t={default:this.hasSlotController.test("[default]"),label:this.hasSlotController.test("label"),clearIcon:this.hasSlotController.test("clear-icon"),expandIcon:this.hasSlotController.test("expand-icon"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},e=this.label?!0:!!t.label,l=this.helpText?!0:!!t.helpText,o=this.clearable&&!this.disabled,h=!!t.tooltip,a=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",n=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",m={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],f={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return p`<div part="form-control" class="${d("relative text-left",n,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><span class="sr-only" aria-live="polite">${this.deletedTagLabel}</span> ${e||h?p`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${e&&"inline-block"}" aria-hidden="${e?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label> ${t.tooltip?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${d("relative w-full bg-white",a==="disabled"?"text-neutral-500":"text-black")}"><div part="border" class="${d("absolute top-0 w-full h-full pointer-events-none border rounded-default z-10",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[a],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-4-6-18-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 class="${d("relative w-full h-full grid grid-cols-1",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:bg-neutral-200")}" slot="anchor"><div class="${d("input-container flex items-center w-full h-full px-4",{sm:"py-1",md:"py-1",lg:"py-2"}[this.size])}"><input name="${this.name}" form="${this.form}" part="display-input" class="${d("top-0 left-0 appearance-none outline-none flex-grow bg-transparent w-full placeholder-neutral-700",n,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" .disabled="${this.disabled}" placeholder="${this.placeholder||this.localize.term("selectDefaultPlaceholder")}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="help-text invalid-message" role="combobox" tabindex="-1"> ${this.multiple&&this.useTags?p`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""}<div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(g=>g==null?void 0:g.getTextLabel()).join(", ")}</div><input class="${d("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",n)}" 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}"> ${o?p`<button part="clear-button" class="${d("select__clear flex justify-center",m,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-6-17-icon class="${d("text-icon-fill-neutral-800 z-10",f)}" library="system" name="closing-round"></sd-4-6-17-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-4-6-17-icon part="invalid-icon" class="${d(m,f,"text-error")}" library="system" name="risk"></sd-4-6-17-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-4-6-17-icon part="valid-icon" class="${d("flex-shrink-0 text-success",m,f)}" library="system" name="status-check"></sd-4-6-17-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${d("inline-flex ml-2 transition-all items-center",this.open?"rotate-180":"rotate-0",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",f)}"><sd-4-6-17-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-6-17-icon></slot></div><button part="combobox" class="${d("relative w-full px-4 flex flex-row items-center rounded-default focus-visible:outline-none",n,this.open&&"shadow",{sm:"min-h-[32px]",md:"min-h-[40px]",lg:"min-h-[48px]"}[this.size])}" type="button" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-labelledby="label"></button></div><div id="listbox" role="listbox" aria-expanded="${this.open?"true":"false"}" aria-multiselectable="${this.multiple?"true":"false"}" aria-labelledby="label" part="listbox" class="${d("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-4-6-17-popup></div><div class="text-sm text-neutral-700 mt-2" part="form-control-help-text" id="help-text" aria-hidden="${l?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};i.styles=[...v.styles,T`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}.input-container,[part=combobox]{grid-column:1/1;grid-row:1/1}sd-4-6-17-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-6-17-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-4-6-17-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-6-17-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-6-17-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}`],s([E({selector:"sd-4-6-17-option"})],i.prototype,"_optionsInDefaultSlot",2),s([c("sd-4-6-17-popup")],i.prototype,"popup",2),s([c('[part="combobox"]')],i.prototype,"combobox",2),s([c('[part="display-input"]')],i.prototype,"displayInput",2),s([c(".value-input")],i.prototype,"valueInput",2),s([c('[part="listbox"]')],i.prototype,"listbox",2),s([c("#invalid-message")],i.prototype,"invalidMessage",2),s([u()],i.prototype,"displayLabel",2),s([u()],i.prototype,"deletedTagLabel",2),s([u()],i.prototype,"hasFocus",2),s([u()],i.prototype,"currentOption",2),s([u()],i.prototype,"selectedOptions",2),s([u()],i.prototype,"showValidStyle",2),s([u()],i.prototype,"showInvalidStyle",2),s([I()],i.prototype,"defaultValue",2),s([r({type:Boolean,reflect:!0})],i.prototype,"open",2),s([r({type:String,reflect:!0})],i.prototype,"size",2),s([r({type:String,reflect:!0})],i.prototype,"placement",2),s([r({type:String,reflect:!0})],i.prototype,"label",2),s([r({type:String,reflect:!0})],i.prototype,"placeholder",2),s([r({type:String,attribute:"max-options-tag-label",reflect:!0})],i.prototype,"maxOptionsTagLabel",2),s([r({type:Boolean,reflect:!0})],i.prototype,"disabled",2),s([r({type:Boolean,reflect:!0,attribute:"visually-disabled"})],i.prototype,"visuallyDisabled",2),s([r({type:String,attribute:"help-text",reflect:!0})],i.prototype,"helpText",2),s([u()],i.prototype,"currentPlacement",2),s([r({type:Boolean,reflect:!0})],i.prototype,"clearable",2),s([r({type:Boolean,reflect:!0})],i.prototype,"multiple",2),s([r({type:Boolean,reflect:!0})],i.prototype,"useTags",2),s([r({attribute:"max-options-visible",type:Number,reflect:!0})],i.prototype,"maxOptionsVisible",2),s([r({reflect:!0})],i.prototype,"form",2),s([r({reflect:!0})],i.prototype,"name",2),s([r({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],i.prototype,"value",2),s([r({type:Boolean,reflect:!0})],i.prototype,"required",2),s([r({type:Boolean,reflect:!0,attribute:"style-on-valid"})],i.prototype,"styleOnValid",2),s([r({type:Boolean,reflect:!0})],i.prototype,"hoist",2),s([r()],i.prototype,"getTag",2),s([b("useTags",{waitUntilFirstUpdate:!0})],i.prototype,"handleUseTagsChange",1),s([b(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],i.prototype,"handleDisabledChange",1),s([b("open",{waitUntilFirstUpdate:!0})],i.prototype,"handleOpenChange",1),s([b("size",{waitUntilFirstUpdate:!0})],i.prototype,"applySizeToOptions",1),s([b("value",{waitUntilFirstUpdate:!0})],i.prototype,"handleValueChange",1),i=s([$("sd-4-6-17-select")],i);w("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});w("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});export{i as a};
11
+ "><div class="${d("relative w-full h-full grid grid-cols-1",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:bg-neutral-200")}" slot="anchor"><div class="${d("input-container flex items-center w-full h-full px-4",{sm:"py-1",md:"py-1",lg:"py-2"}[this.size])}"><input name="${this.name}" form="${this.form}" part="display-input" class="${d("top-0 left-0 appearance-none outline-none flex-grow bg-transparent w-full placeholder-neutral-700",n,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" .disabled="${this.disabled}" placeholder="${this.placeholder||this.localize.term("selectDefaultPlaceholder")}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="help-text invalid-message" role="combobox" tabindex="-1"> ${this.multiple&&this.useTags?p`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""}<div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(g=>g==null?void 0:g.getTextLabel()).join(", ")}</div><input class="${d("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",n)}" 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}"> ${o?p`<button part="clear-button" class="${d("select__clear flex justify-center",m,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-6-18-icon class="${d("text-neutral-700 z-10",f)}" library="system" name="closing-round"></sd-4-6-18-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-4-6-18-icon part="invalid-icon" class="${d(m,f,"text-error")}" library="system" name="risk"></sd-4-6-18-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-4-6-18-icon part="valid-icon" class="${d("flex-shrink-0 text-success",m,f)}" library="system" name="status-check"></sd-4-6-18-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${d("inline-flex ml-2 transition-all items-center",this.open?"rotate-180":"rotate-0",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-primary",f)}"><sd-4-6-18-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-6-18-icon></slot></div><button part="combobox" class="${d("relative w-full px-4 flex flex-row items-center rounded-default focus-visible:outline-none",n,this.open&&"shadow",{sm:"min-h-[32px]",md:"min-h-[40px]",lg:"min-h-[48px]"}[this.size])}" type="button" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-labelledby="label"></button></div><div id="listbox" role="listbox" aria-expanded="${this.open?"true":"false"}" aria-multiselectable="${this.multiple?"true":"false"}" aria-labelledby="label" part="listbox" class="${d("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-4-6-18-popup></div><div class="text-sm text-neutral-700 mt-2" part="form-control-help-text" id="help-text" aria-hidden="${l?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};i.styles=[...v.styles,T`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}.input-container,[part=combobox]{grid-column:1/1;grid-row:1/1}sd-4-6-18-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-6-18-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-4-6-18-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-6-18-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-6-18-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}`],s([E({selector:"sd-4-6-18-option"})],i.prototype,"_optionsInDefaultSlot",2),s([c("sd-4-6-18-popup")],i.prototype,"popup",2),s([c('[part="combobox"]')],i.prototype,"combobox",2),s([c('[part="display-input"]')],i.prototype,"displayInput",2),s([c(".value-input")],i.prototype,"valueInput",2),s([c('[part="listbox"]')],i.prototype,"listbox",2),s([c("#invalid-message")],i.prototype,"invalidMessage",2),s([u()],i.prototype,"displayLabel",2),s([u()],i.prototype,"deletedTagLabel",2),s([u()],i.prototype,"hasFocus",2),s([u()],i.prototype,"currentOption",2),s([u()],i.prototype,"selectedOptions",2),s([u()],i.prototype,"showValidStyle",2),s([u()],i.prototype,"showInvalidStyle",2),s([I()],i.prototype,"defaultValue",2),s([r({type:Boolean,reflect:!0})],i.prototype,"open",2),s([r({type:String,reflect:!0})],i.prototype,"size",2),s([r({type:String,reflect:!0})],i.prototype,"placement",2),s([r({type:String,reflect:!0})],i.prototype,"label",2),s([r({type:String,reflect:!0})],i.prototype,"placeholder",2),s([r({type:String,attribute:"max-options-tag-label",reflect:!0})],i.prototype,"maxOptionsTagLabel",2),s([r({type:Boolean,reflect:!0})],i.prototype,"disabled",2),s([r({type:Boolean,reflect:!0,attribute:"visually-disabled"})],i.prototype,"visuallyDisabled",2),s([r({type:String,attribute:"help-text",reflect:!0})],i.prototype,"helpText",2),s([u()],i.prototype,"currentPlacement",2),s([r({type:Boolean,reflect:!0})],i.prototype,"clearable",2),s([r({type:Boolean,reflect:!0})],i.prototype,"multiple",2),s([r({type:Boolean,reflect:!0})],i.prototype,"useTags",2),s([r({attribute:"max-options-visible",type:Number,reflect:!0})],i.prototype,"maxOptionsVisible",2),s([r({reflect:!0})],i.prototype,"form",2),s([r({reflect:!0})],i.prototype,"name",2),s([r({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],i.prototype,"value",2),s([r({type:Boolean,reflect:!0})],i.prototype,"required",2),s([r({type:Boolean,reflect:!0,attribute:"style-on-valid"})],i.prototype,"styleOnValid",2),s([r({type:Boolean,reflect:!0})],i.prototype,"hoist",2),s([r()],i.prototype,"getTag",2),s([b("useTags",{waitUntilFirstUpdate:!0})],i.prototype,"handleUseTagsChange",1),s([b(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],i.prototype,"handleDisabledChange",1),s([b("open",{waitUntilFirstUpdate:!0})],i.prototype,"handleOpenChange",1),s([b("size",{waitUntilFirstUpdate:!0})],i.prototype,"applySizeToOptions",1),s([b("value",{waitUntilFirstUpdate:!0})],i.prototype,"handleValueChange",1),i=s([$("sd-4-6-18-select")],i);w("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});w("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});export{i as a};
@@ -1 +1 @@
1
- import{e as p}from"./chunk.IRWHG2Q4.js";import{a as l,b as m}from"./chunk.TJOCV4DC.js";var a=new WeakMap,n=new WeakMap,c=new WeakMap,d=new WeakMap,v=class{constructor(t,e){this.handleFormData=t=>{let e=this.options.disabled(this.host),o=this.options.name(this.host),i=this.options.value(this.host),s=this.host.tagName.toLowerCase()==="sd-4-6-17-button";!e&&!s&&typeof o=="string"&&o.length>0&&typeof i!="undefined"&&(Array.isArray(i)?i.forEach(r=>{t.formData.append(o,r.toString())}):t.formData.append(o,i.toString()))};this.handleFormSubmit=t=>{var i,s;let e=this.options.disabled(this.host),o=this.options.reportValidity;if(this.form&&!this.form.noValidate&&((i=a.get(this.form))==null||i.forEach(r=>{this.setUserInteracted(r,!0)})),this.form&&!this.form.noValidate&&!e&&!o(this.host)){t.preventDefault(),t.stopImmediatePropagation();let r=(s=this.form)==null?void 0:s.querySelectorAll("[data-invalid]");Array.from(r).filter(h=>h.tagName.toLowerCase()==="sd-4-6-17-radio-group").forEach(h=>{var f,u;(u=(f=h.shadowRoot)==null?void 0:f.querySelector("input"))==null||u.dispatchEvent(new Event("invalid"))}),r!=null&&r.length&&r[0].focus()}};this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),d.set(this.host,[])};this.handleInteraction=t=>{let e=d.get(this.host);e.includes(t.type)||e.push(t.type),e.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)};this.fakeUserInteraction=()=>{this.setUserInteracted(this.host,!0)};(this.host=t).addController(this),this.options=l({form:o=>{if(o.hasAttribute("form")&&o.getAttribute("form")!==""){let i=o.getRootNode(),s=o.getAttribute("form");if(s)return i.getElementById(s)}return o.closest("form")},name:o=>o.name,value:o=>o.value,defaultValue:o=>o.defaultValue,disabled:o=>{var i;return(i=o.disabled)!=null?i:!1},reportValidity:o=>typeof o.reportValidity=="function"?o.reportValidity():!0,setValue:(o,i)=>o.value=i,assumeInteractionOn:["sd-4-6-17-input"]},e)}hostConnected(){let t=this.options.form(this.host);t&&this.attachForm(t),d.set(this.host,[]),this.options.assumeInteractionOn.forEach(e=>{this.host.addEventListener(e,this.handleInteraction)})}hostDisconnected(){this.detachForm(),d.delete(this.host),this.options.assumeInteractionOn.forEach(t=>{this.host.removeEventListener(t,this.handleInteraction)})}hostUpdated(){var e;let t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t)),this.host.hasUpdated&&(this.setValidity((e=this.host)==null?void 0:e.validity.valid),this.updateValidityStyle())}attachForm(t){t?(this.form=t,a.has(this.form)?a.get(this.form).add(this.host):a.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),n.has(this.form)||(n.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var t;this.form&&((t=a.get(this.form))==null||t.delete(this.host),this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),n.has(this.form)&&(this.form.reportValidity=n.get(this.form),n.delete(this.form))),this.form=void 0}reportFormValidity(){if(this.form&&!this.form.noValidate){let t=this.form.querySelectorAll("*");for(let e of t)if(typeof e.reportValidity=="function"&&!e.reportValidity())return!1}return!0}setUserInteracted(t,e){c.set(t,e),t.requestUpdate()}doAction(t,e){if(this.form){let o=document.createElement("button");o.type=t,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",e&&(o.name=e.name,o.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(i=>{e.hasAttribute(i)&&o.setAttribute(i,e.getAttribute(i))})),this.form.append(o),o.click(),o.remove()}}updateValidityStyle(){this.host.hasAttribute("data-user-valid")&&this.host.checkValidity()?(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!0),this.host.showInvalidStyle=!1):this.host.hasAttribute("data-user-invalid")&&!this.host.checkValidity()?(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!1),this.host.showInvalidStyle=!0):(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!1),this.host.showInvalidStyle=!1)}getForm(){var t;return(t=this.form)!=null?t:null}renderInvalidMessage(){return p`<div id="invalid-message" class="text-error text-sm mt-2 text-left" part="invalid-message" aria-live="polite" ?hidden="${!this.host.showInvalidStyle}"></div>`}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){var s;let e=this.host,o=!!c.get(e),i=!!e.required;(s=this.form)!=null&&s.noValidate?(e.removeAttribute("data-required"),e.removeAttribute("data-optional"),e.removeAttribute("data-invalid"),e.removeAttribute("data-valid"),e.removeAttribute("data-user-invalid"),e.removeAttribute("data-user-valid"),e.removeAttribute("aria-invalid")):(e.toggleAttribute("data-required",i),e.toggleAttribute("data-optional",!i),e.toggleAttribute("data-invalid",!t),e.toggleAttribute("data-valid",t),e.toggleAttribute("data-user-invalid",!t&&o),e.toggleAttribute("data-user-valid",t&&o),e.setAttribute("aria-invalid",(!t).toString()))}updateValidity(){let t=this.host;this.setValidity(t==null?void 0:t.validity.valid)}emitInvalidEvent(t){t==null||t.preventDefault();let e=new CustomEvent("sd-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||e.preventDefault()}},y=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),F=Object.freeze(m(l({},y),{valid:!1,valueMissing:!0})),V=Object.freeze(m(l({},y),{valid:!1,customError:!0}));export{a,v as b,y as c,F as d,V as e};
1
+ import{e as p}from"./chunk.UWPDCU52.js";import{a as l,b as m}from"./chunk.TJOCV4DC.js";var a=new WeakMap,n=new WeakMap,c=new WeakMap,d=new WeakMap,v=class{constructor(t,e){this.handleFormData=t=>{let e=this.options.disabled(this.host),o=this.options.name(this.host),i=this.options.value(this.host),s=this.host.tagName.toLowerCase()==="sd-4-6-18-button";!e&&!s&&typeof o=="string"&&o.length>0&&typeof i!="undefined"&&(Array.isArray(i)?i.forEach(r=>{t.formData.append(o,r.toString())}):t.formData.append(o,i.toString()))};this.handleFormSubmit=t=>{var i,s;let e=this.options.disabled(this.host),o=this.options.reportValidity;if(this.form&&!this.form.noValidate&&((i=a.get(this.form))==null||i.forEach(r=>{this.setUserInteracted(r,!0)})),this.form&&!this.form.noValidate&&!e&&!o(this.host)){t.preventDefault(),t.stopImmediatePropagation();let r=(s=this.form)==null?void 0:s.querySelectorAll("[data-invalid]");Array.from(r).filter(h=>h.tagName.toLowerCase()==="sd-4-6-18-radio-group").forEach(h=>{var f,u;(u=(f=h.shadowRoot)==null?void 0:f.querySelector("input"))==null||u.dispatchEvent(new Event("invalid"))}),r!=null&&r.length&&r[0].focus()}};this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),d.set(this.host,[])};this.handleInteraction=t=>{let e=d.get(this.host);e.includes(t.type)||e.push(t.type),e.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)};this.fakeUserInteraction=()=>{this.setUserInteracted(this.host,!0)};(this.host=t).addController(this),this.options=l({form:o=>{if(o.hasAttribute("form")&&o.getAttribute("form")!==""){let i=o.getRootNode(),s=o.getAttribute("form");if(s)return i.getElementById(s)}return o.closest("form")},name:o=>o.name,value:o=>o.value,defaultValue:o=>o.defaultValue,disabled:o=>{var i;return(i=o.disabled)!=null?i:!1},reportValidity:o=>typeof o.reportValidity=="function"?o.reportValidity():!0,setValue:(o,i)=>o.value=i,assumeInteractionOn:["sd-4-6-18-input"]},e)}hostConnected(){let t=this.options.form(this.host);t&&this.attachForm(t),d.set(this.host,[]),this.options.assumeInteractionOn.forEach(e=>{this.host.addEventListener(e,this.handleInteraction)})}hostDisconnected(){this.detachForm(),d.delete(this.host),this.options.assumeInteractionOn.forEach(t=>{this.host.removeEventListener(t,this.handleInteraction)})}hostUpdated(){var e;let t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t)),this.host.hasUpdated&&(this.setValidity((e=this.host)==null?void 0:e.validity.valid),this.updateValidityStyle())}attachForm(t){t?(this.form=t,a.has(this.form)?a.get(this.form).add(this.host):a.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),n.has(this.form)||(n.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var t;this.form&&((t=a.get(this.form))==null||t.delete(this.host),this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),n.has(this.form)&&(this.form.reportValidity=n.get(this.form),n.delete(this.form))),this.form=void 0}reportFormValidity(){if(this.form&&!this.form.noValidate){let t=this.form.querySelectorAll("*");for(let e of t)if(typeof e.reportValidity=="function"&&!e.reportValidity())return!1}return!0}setUserInteracted(t,e){c.set(t,e),t.requestUpdate()}doAction(t,e){if(this.form){let o=document.createElement("button");o.type=t,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",e&&(o.name=e.name,o.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(i=>{e.hasAttribute(i)&&o.setAttribute(i,e.getAttribute(i))})),this.form.append(o),o.click(),o.remove()}}updateValidityStyle(){this.host.hasAttribute("data-user-valid")&&this.host.checkValidity()?(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!0),this.host.showInvalidStyle=!1):this.host.hasAttribute("data-user-invalid")&&!this.host.checkValidity()?(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!1),this.host.showInvalidStyle=!0):(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!1),this.host.showInvalidStyle=!1)}getForm(){var t;return(t=this.form)!=null?t:null}renderInvalidMessage(){return p`<div id="invalid-message" class="text-error text-sm mt-2 text-left" part="invalid-message" aria-live="polite" ?hidden="${!this.host.showInvalidStyle}"></div>`}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){var s;let e=this.host,o=!!c.get(e),i=!!e.required;(s=this.form)!=null&&s.noValidate?(e.removeAttribute("data-required"),e.removeAttribute("data-optional"),e.removeAttribute("data-invalid"),e.removeAttribute("data-valid"),e.removeAttribute("data-user-invalid"),e.removeAttribute("data-user-valid"),e.removeAttribute("aria-invalid")):(e.toggleAttribute("data-required",i),e.toggleAttribute("data-optional",!i),e.toggleAttribute("data-invalid",!t),e.toggleAttribute("data-valid",t),e.toggleAttribute("data-user-invalid",!t&&o),e.toggleAttribute("data-user-valid",t&&o),e.setAttribute("aria-invalid",(!t).toString()))}updateValidity(){let t=this.host;this.setValidity(t==null?void 0:t.validity.valid)}emitInvalidEvent(t){t==null||t.preventDefault();let e=new CustomEvent("sd-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||e.preventDefault()}},y=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),F=Object.freeze(m(l({},y),{valid:!1,valueMissing:!0})),V=Object.freeze(m(l({},y),{valid:!1,customError:!0}));export{a,v as b,y as c,F as d,V as e};
@@ -1,4 +1,4 @@
1
- import{b as v,c as y}from"./chunk.65NSSTJE.js";import{a}from"./chunk.HE2LNCWW.js";import{a as g}from"./chunk.6HO6CE4A.js";import{a as d,b as u}from"./chunk.5ZILM4TA.js";import{a as n}from"./chunk.26V4EXHB.js";import{a as f}from"./chunk.E2DRD2OX.js";import{a as h,b as i,c as m,d as p,g as b,h as s}from"./chunk.QNLZDKXR.js";import{b as c}from"./chunk.IRWHG2Q4.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends s{constructor(){super(...arguments);this.formControlController=new v(this,{form:r=>{if(r.hasAttribute("form")){let o=r.getRootNode(),l=r.getAttribute("form");return o.getElementById(l)}return r.closest("form")}});this.hasSlotController=new g(this,"[default]","icon-left","icon-right");this.invalid=!1;this.title="";this.variant="primary";this.inverted=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.loading=!1;this.type="button";this.name="";this.value="";this.href=""}get validity(){return this.isButton()?this.button.validity:y}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(r){if(this.disabled||this.loading||this.visuallyDisabled){r.preventDefault(),r.stopPropagation();return}this.type==="submit"&&this.formControlController.submit(this),this.type==="reset"&&this.formControlController.reset(this)}handleInvalid(r){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(r)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(r){this.button.focus(r)}blur(){this.button.blur()}checkValidity(){return this.isButton()?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.isButton()?this.button.reportValidity():!0}setCustomValidity(r){this.isButton()&&(this.button.setCustomValidity(r),this.formControlController.updateValidity())}render(){let r=this.isLink(),o=r?d`a`:d`button`,l={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right"),"icon-only":this._iconsInDefaultSlot.length>0};return u`<${o} part="base" class="${n(`font-md leading-[calc(var(--tw-varspacing)-2px)] no-underline
1
+ import{b as v,c as y}from"./chunk.6HLS5XU2.js";import{a}from"./chunk.YTG5BN3U.js";import{a as g}from"./chunk.6HO6CE4A.js";import{a as d,b as u}from"./chunk.H2TKMIFR.js";import{a as n}from"./chunk.26V4EXHB.js";import{a as f}from"./chunk.E2DRD2OX.js";import{a as h,b as i,c as m,d as p,g as b,h as s}from"./chunk.LQBUYA4X.js";import{b as c}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends s{constructor(){super(...arguments);this.formControlController=new v(this,{form:r=>{if(r.hasAttribute("form")){let o=r.getRootNode(),l=r.getAttribute("form");return o.getElementById(l)}return r.closest("form")}});this.hasSlotController=new g(this,"[default]","icon-left","icon-right");this.invalid=!1;this.title="";this.variant="primary";this.inverted=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.loading=!1;this.type="button";this.name="";this.value="";this.href=""}get validity(){return this.isButton()?this.button.validity:y}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(r){if(this.disabled||this.loading||this.visuallyDisabled){r.preventDefault(),r.stopPropagation();return}this.type==="submit"&&this.formControlController.submit(this),this.type==="reset"&&this.formControlController.reset(this)}handleInvalid(r){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(r)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(r){this.button.focus(r)}blur(){this.button.blur()}checkValidity(){return this.isButton()?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.isButton()?this.button.reportValidity():!0}setCustomValidity(r){this.isButton()&&(this.button.setCustomValidity(r),this.formControlController.updateValidity())}render(){let r=this.isLink(),o=r?d`a`:d`button`,l={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right"),"icon-only":this._iconsInDefaultSlot.length>0};return u`<${o} part="base" class="${n(`font-md leading-[calc(var(--tw-varspacing)-2px)] no-underline
2
2
  w-full h-varspacing whitespace-nowrap align-middle inline-flex items-stretch justify-center
3
3
  border transition-colors duration-200 ease-in-out rounded-default
4
4
  select-none cursor-[inherit]`,this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",this.loading&&"relative cursor-wait",(this.disabled||this.visuallyDisabled)&&"cursor-not-allowed",l["icon-only"]&&"px-0 w-varspacing",{sm:"text-sm varspacing-8 px-4",md:"text-base varspacing-10 px-4",lg:"text-base varspacing-12 px-4"}[this.size],{primary:this.inverted?`border-transparent ${this.visuallyDisabled?"bg-neutral-500 text-white hover:bg-neutral-500 active:bg-neutral-500":"text-primary bg-white hover:text-primary-500 hover:bg-primary-100 active:text-primary-800 active:bg-primary-200"}
@@ -8,4 +8,4 @@ import{b as v,c as y}from"./chunk.65NSSTJE.js";import{a}from"./chunk.HE2LNCWW.js
8
8
  disabled:text-neutral-500 disabled:border-neutral-500`,tertiary:this.inverted?`border-transparent ${this.visuallyDisabled?"text-neutral-600 hover:text-neutral-600 active:text-neutral-600":"text-white hover:text-primary-100 hover:bg-primary-500 active:text-primary-200 active:bg-primary-800"}
9
9
  disabled:text-neutral-600`:`border-transparent ${this.visuallyDisabled?"text-neutral-500 hover:text-neutral-500 active:text-neutral-500":"text-primary hover:text-primary-500 hover:bg-primary-100 active:text-primary-800 active:bg-primary-200"}
10
10
  disabled:text-neutral-500`,cta:`text-white ${this.visuallyDisabled?"bg-neutral-500 hover:bg-neutral-500 active:bg-neutral-500":"bg-accent-500 border-transparent hover:bg-accent-550 active:bg-accent-700"}
11
- ${this.inverted?"disabled:bg-neutral-600":"disabled:bg-neutral-500"} disabled:text-white`}[this.variant])}" ?disabled="${a(r?void 0:this.disabled)}" type="${a(r?void 0:this.type)}" title="${this.title}" name="${a(r?void 0:this.name)}" value="${a(r?void 0:this.value)}" href="${a(r?this.href:void 0)}" target="${a(r?this.target:void 0)}" download="${a(r?this.download:void 0)}" rel="${a(r&&this.target?"noreferrer noopener":void 0)}" role="${a(r?void 0:"button")}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" aria-labelledby="content" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @invalid="${this.isButton()?this.handleInvalid:null}" @click="${this.handleClick}"><slot name="icon-left" part="icon-left" class="${n("flex flex-auto items-center pointer-events-none",l["icon-only"]&&"hidden",this.loading&&"invisible",l["icon-left"]&&{sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size])}"></slot><slot part="label" id="content" class="${n("inline-flex items-center justify-center",l["icon-only"]&&"pointer-events-none",this.loading&&"invisible")}"></slot><slot name="icon-right" part="icon-right" class="${n("flex flex-auto items-center pointer-events-none",this.loading&&"invisible",l["icon-only"]&&"hidden",l["icon-right"]&&{sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size])}"></slot>${this.loading?u`<sd-4-6-17-spinner class="${n("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-4-6-17-spinner>`:""}</${o}>`}};t.styles=[...s.styles,c`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto)}sd-4-6-17-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-4-6-17-badge){pointer-events:none;position:absolute;right:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);--tw-translate-x:50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}::slotted(sd-4-6-17-icon),sd-4-6-17-spinner{font-size:calc(var(--tw-varspacing)/2)}`],e([p("a, button")],t.prototype,"button",2),e([b({selector:"sd-4-6-17-icon"})],t.prototype,"_iconsInDefaultSlot",2),e([m()],t.prototype,"invalid",2),e([i({type:String,reflect:!0})],t.prototype,"title",2),e([i({type:String,reflect:!0})],t.prototype,"variant",2),e([i({type:Boolean,reflect:!0})],t.prototype,"inverted",2),e([i({type:String,reflect:!0})],t.prototype,"size",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,"loading",2),e([i({type:String,reflect:!0})],t.prototype,"type",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,"href",2),e([i({type:String,reflect:!0})],t.prototype,"target",2),e([i({reflect:!0})],t.prototype,"download",2),e([i({reflect:!0})],t.prototype,"form",2),e([i({attribute:"formaction"})],t.prototype,"formAction",2),e([i({attribute:"formenctype"})],t.prototype,"formEnctype",2),e([i({attribute:"formmethod"})],t.prototype,"formMethod",2),e([i({attribute:"formnovalidate",type:Boolean})],t.prototype,"formNoValidate",2),e([i({attribute:"formtarget"})],t.prototype,"formTarget",2),e([f("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),t=e([h("sd-4-6-17-button")],t);export{t as a};
11
+ ${this.inverted?"disabled:bg-neutral-600":"disabled:bg-neutral-500"} disabled:text-white`}[this.variant])}" ?disabled="${a(r?void 0:this.disabled)}" type="${a(r?void 0:this.type)}" title="${this.title}" name="${a(r?void 0:this.name)}" value="${a(r?void 0:this.value)}" href="${a(r?this.href:void 0)}" target="${a(r?this.target:void 0)}" download="${a(r?this.download:void 0)}" rel="${a(r&&this.target?"noreferrer noopener":void 0)}" role="${a(r?void 0:"button")}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" aria-labelledby="content" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @invalid="${this.isButton()?this.handleInvalid:null}" @click="${this.handleClick}"><slot name="icon-left" part="icon-left" class="${n("flex flex-auto items-center pointer-events-none",l["icon-only"]&&"hidden",this.loading&&"invisible",l["icon-left"]&&{sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size])}"></slot><slot part="label" id="content" class="${n("inline-flex items-center justify-center",l["icon-only"]&&"pointer-events-none",this.loading&&"invisible")}"></slot><slot name="icon-right" part="icon-right" class="${n("flex flex-auto items-center pointer-events-none",this.loading&&"invisible",l["icon-only"]&&"hidden",l["icon-right"]&&{sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size])}"></slot>${this.loading?u`<sd-4-6-18-spinner class="${n("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-4-6-18-spinner>`:""}</${o}>`}};t.styles=[...s.styles,c`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto)}sd-4-6-18-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-4-6-18-badge){pointer-events:none;position:absolute;right:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);--tw-translate-x:50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}::slotted(sd-4-6-18-icon),sd-4-6-18-spinner{font-size:calc(var(--tw-varspacing)/2)}`],e([p("a, button")],t.prototype,"button",2),e([b({selector:"sd-4-6-18-icon"})],t.prototype,"_iconsInDefaultSlot",2),e([m()],t.prototype,"invalid",2),e([i({type:String,reflect:!0})],t.prototype,"title",2),e([i({type:String,reflect:!0})],t.prototype,"variant",2),e([i({type:Boolean,reflect:!0})],t.prototype,"inverted",2),e([i({type:String,reflect:!0})],t.prototype,"size",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,"loading",2),e([i({type:String,reflect:!0})],t.prototype,"type",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,"href",2),e([i({type:String,reflect:!0})],t.prototype,"target",2),e([i({reflect:!0})],t.prototype,"download",2),e([i({reflect:!0})],t.prototype,"form",2),e([i({attribute:"formaction"})],t.prototype,"formAction",2),e([i({attribute:"formenctype"})],t.prototype,"formEnctype",2),e([i({attribute:"formmethod"})],t.prototype,"formMethod",2),e([i({attribute:"formnovalidate",type:Boolean})],t.prototype,"formNoValidate",2),e([i({attribute:"formtarget"})],t.prototype,"formTarget",2),e([f("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),t=e([h("sd-4-6-18-button")],t);export{t as a};
@@ -1 +1 @@
1
- import{a as l}from"./chunk.HE2LNCWW.js";import{a as s,b as a}from"./chunk.5ZILM4TA.js";import{a as b}from"./chunk.DEXOQON7.js";import{a as c}from"./chunk.26V4EXHB.js";import{a as m,b as i,d as p,h as o}from"./chunk.QNLZDKXR.js";import{b as d}from"./chunk.IRWHG2Q4.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends o{constructor(){super(...arguments);this.localize=new b(this);this.size="lg";this.selected=!1;this.toggleable=!1;this.removable=!1;this.disabled=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemoveClick(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(r){this.tag.focus(r)}blur(){this.tag.blur()}render(){let r=this.isLink(),n=r?s`a`:this.removable?s`div`:s`button`;return a`<${n} part="base" type="${l(r?void 0:"button")}" href="${l(r?this.href:void 0)}" rel="${l(r&&this.target?"noreferrer noopener":void 0)}" target="${l(r?this.target:void 0)}" download="${l(r?this.download:void 0)}" ?disabled="${l(r?void 0:this.disabled)}" aria-labelledby="content" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${l(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled||this.removable?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${c("inline-flex border box-border rounded-full items-center leading-none whitespace-nowrap focus-visible:focus-outline",{lg:"h-8 text-base gap-2",sm:"h-6 text-sm gap-1"}[this.size],{lg:this.removable?"pl-4 pr-3 py-2":"px-4 py-2",sm:this.removable?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.selected?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500":"border-primary text-primary hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500 disabled:border-neutral-500 disabled:text-neutral-500",this.disabled&&!r&&"cursor-not-allowed")}"><slot id="content" part="content"></slot>${this.removable?a`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemoveClick}"><slot part="removable-indicator" name="removable-indicator"><sd-4-6-17-icon library="system" name="close" label="${this.localize.term("remove")}"></sd-4-6-17-icon></slot></button>`:""}</${n}>`}};e.styles=[...o.styles,d`:host{display:inline-block}:host([size=lg])::part(removable-indicator){font-size:var(--sd-font-size-base,1rem)}:host([size=sm])::part(removable-indicator){font-size:.75rem}`],t([p("a, button, div")],e.prototype,"tag",2),t([i({type:String,reflect:!0})],e.prototype,"size",2),t([i({type:Boolean,reflect:!0})],e.prototype,"selected",2),t([i({type:Boolean,reflect:!0})],e.prototype,"toggleable",2),t([i({type:Boolean,reflect:!0})],e.prototype,"removable",2),t([i({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([i({type:String,reflect:!0})],e.prototype,"href",2),t([i({type:String,reflect:!0})],e.prototype,"target",2),t([i({reflect:!0})],e.prototype,"download",2),e=t([m("sd-4-6-17-tag")],e);export{e as a};
1
+ import{a as l}from"./chunk.YTG5BN3U.js";import{a as s,b as a}from"./chunk.H2TKMIFR.js";import{a as b}from"./chunk.DEXOQON7.js";import{a as c}from"./chunk.26V4EXHB.js";import{a as m,b as i,d as p,h as o}from"./chunk.LQBUYA4X.js";import{b as d}from"./chunk.UWPDCU52.js";import{e as t}from"./chunk.TJOCV4DC.js";var e=class extends o{constructor(){super(...arguments);this.localize=new b(this);this.size="lg";this.selected=!1;this.toggleable=!1;this.removable=!1;this.disabled=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemoveClick(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(r){this.tag.focus(r)}blur(){this.tag.blur()}render(){let r=this.isLink(),n=r?s`a`:this.removable?s`div`:s`button`;return a`<${n} part="base" type="${l(r?void 0:"button")}" href="${l(r?this.href:void 0)}" rel="${l(r&&this.target?"noreferrer noopener":void 0)}" target="${l(r?this.target:void 0)}" download="${l(r?this.download:void 0)}" ?disabled="${l(r?void 0:this.disabled)}" aria-labelledby="content" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${l(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled||this.removable?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${c("inline-flex border box-border rounded-full items-center leading-none whitespace-nowrap focus-visible:focus-outline",{lg:"h-8 text-base gap-2",sm:"h-6 text-sm gap-1"}[this.size],{lg:this.removable?"pl-4 pr-3 py-2":"px-4 py-2",sm:this.removable?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.selected?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500":"border-primary text-primary hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500 disabled:border-neutral-500 disabled:text-neutral-500",this.disabled&&!r&&"cursor-not-allowed")}"><slot id="content" part="content"></slot>${this.removable?a`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemoveClick}"><slot part="removable-indicator" name="removable-indicator"><sd-4-6-18-icon library="system" name="close" label="${this.localize.term("remove")}"></sd-4-6-18-icon></slot></button>`:""}</${n}>`}};e.styles=[...o.styles,d`:host{display:inline-block}:host([size=lg])::part(removable-indicator){font-size:var(--sd-font-size-base,1rem)}:host([size=sm])::part(removable-indicator){font-size:.75rem}`],t([p("a, button, div")],e.prototype,"tag",2),t([i({type:String,reflect:!0})],e.prototype,"size",2),t([i({type:Boolean,reflect:!0})],e.prototype,"selected",2),t([i({type:Boolean,reflect:!0})],e.prototype,"toggleable",2),t([i({type:Boolean,reflect:!0})],e.prototype,"removable",2),t([i({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([i({type:String,reflect:!0})],e.prototype,"href",2),t([i({type:String,reflect:!0})],e.prototype,"target",2),t([i({reflect:!0})],e.prototype,"download",2),e=t([m("sd-4-6-18-tag")],e);export{e as a};
@@ -1 +1 @@
1
- import{a}from"./chunk.DEXOQON7.js";import{a as m}from"./chunk.26V4EXHB.js";import{a as i,b as s,h as l}from"./chunk.QNLZDKXR.js";import{b as t,e as o}from"./chunk.IRWHG2Q4.js";import{e as r}from"./chunk.TJOCV4DC.js";var e=class extends l{constructor(){super(...arguments);this.color="currentColor";this.localize=new a(this)}render(){return o`<svg role="progressbar" viewBox="0 0 24 24" class="${m("animate-spin",{primary:"text-primary",white:"text-white",currentColor:""}[this.color])}" aria-label="${this.localize.term("loading")}"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" class="opacity-20" fill="currentColor"/><mask id="mask0_5273_25391" style="mask-type:alpha" maskUnits="userSpaceOnUse"><path d="M24 12C24 5.37258 18.6274 0 12 0V12H24Z" fill="currentColor"/></mask><g mask="url(#mask0_5273_25391)"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" fill="currentColor"/></g></svg>`}};e.styles=[...l.styles,t`:host{display:inline-block;height:1em;width:1em}`],r([s({type:String,reflect:!0})],e.prototype,"color",2),e=r([i("sd-4-6-17-spinner")],e);export{e as a};
1
+ import{a}from"./chunk.DEXOQON7.js";import{a as m}from"./chunk.26V4EXHB.js";import{a as i,b as s,h as l}from"./chunk.LQBUYA4X.js";import{b as t,e as o}from"./chunk.UWPDCU52.js";import{e as r}from"./chunk.TJOCV4DC.js";var e=class extends l{constructor(){super(...arguments);this.color="currentColor";this.localize=new a(this)}render(){return o`<svg role="progressbar" viewBox="0 0 24 24" class="${m("animate-spin",{primary:"text-primary",white:"text-white",currentColor:""}[this.color])}" aria-label="${this.localize.term("loading")}"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" class="opacity-20" fill="currentColor"/><mask id="mask0_5273_25391" style="mask-type:alpha" maskUnits="userSpaceOnUse"><path d="M24 12C24 5.37258 18.6274 0 12 0V12H24Z" fill="currentColor"/></mask><g mask="url(#mask0_5273_25391)"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" fill="currentColor"/></g></svg>`}};e.styles=[...l.styles,t`:host{display:inline-block;height:1em;width:1em}`],r([s({type:String,reflect:!0})],e.prototype,"color",2),e=r([i("sd-4-6-18-spinner")],e);export{e as a};
@@ -1 +1 @@
1
- import{a as i}from"./chunk.HE2LNCWW.js";import{a as B}from"./chunk.DEXOQON7.js";import{a as s}from"./chunk.26V4EXHB.js";import{a as x,b as c,c as f,d,h as m}from"./chunk.QNLZDKXR.js";import{b as y,e as r}from"./chunk.IRWHG2Q4.js";import{e as o}from"./chunk.TJOCV4DC.js";var n=class extends m{constructor(){super(...arguments);this.localize=new B(this);this.orientation="horizontal";this.scrollbars=!1;this.buttons=!1;this.shadows=!1;this.inset=!1;this.step=150;this.canScroll={left:!1,right:!1,up:!1,down:!1};this.isScrollHorizontalEnabled=!1;this.isScrollVerticalEnabled=!1}connectedCallback(){super.connectedCallback(),this.updateScrollEnabledFlags(),this.resizeObserver=new ResizeObserver(()=>{this.handleContainerScroll()}),this.updateComplete.then(()=>{this.container&&this.resizeObserver.observe(this.container)})}disconnectedCallback(){super.disconnectedCallback(),this.container&&this.resizeObserver.unobserve(this.container)}updated(t){super.updated(t),(t.has("orientation")||t.has("buttons")||t.has("shadows"))&&(this.updateScrollEnabledFlags(),this.handleContainerScroll())}updateScrollEnabledFlags(){let t=this.orientation;this.isScrollHorizontalEnabled=t==="horizontal"||t==="auto",this.isScrollVerticalEnabled=t==="vertical"||t==="auto"}get scrollButtons(){return{left:this.leftButton,right:this.rightButton,up:this.upButton,down:this.downButton}}handleContainerScroll(){if(!this.container)return;let t=this.isScrollHorizontalEnabled&&this.container.scrollLeft>0,l=this.isScrollHorizontalEnabled&&this.container.scrollLeft+this.container.clientWidth<this.container.scrollWidth-1,e=this.isScrollVerticalEnabled&&this.container.scrollTop>0,a=this.isScrollVerticalEnabled&&this.container.scrollTop+this.container.clientHeight<this.container.scrollHeight-1;this.canScroll={left:this.isScrollHorizontalEnabled&&t,right:this.isScrollHorizontalEnabled&&l,up:this.isScrollVerticalEnabled&&e,down:this.isScrollVerticalEnabled&&a};let b=t||e,h=l||a;b&&this.dispatchEvent(new CustomEvent("start")),h&&this.dispatchEvent(new CustomEvent("end"))}handleScroll(t,l){var E,$,z;let e=["left","up"].includes(t)?-this.step:this.step,a=["left","right"].includes(t)?"horizontal":"vertical",b=["left","up"].includes(t)?"start":"end",h=!["mouse","touch"].includes((E=l==null?void 0:l.pointerType)!=null?E:""),T=a==="horizontal"?"left":"top";($=this.container)==null||$.scrollBy({behavior:"smooth",[T]:e});let S=`button-${t}`;this.dispatchEvent(new CustomEvent(S,{bubbles:!0,composed:!0}));let g=(a==="horizontal"?this.container.scrollLeft:this.container.scrollTop)+e,k=a==="horizontal"?this.container.scrollWidth-this.container.clientWidth:this.container.scrollHeight-this.container.clientHeight,w=b==="start"&&g<=0,C=b==="end"&&g>=k-1;if(!(w||C)){let v=this.localize.term("scrolled");this.announcementContainer.textContent=this.announcementContainer.textContent===v?`${v}\u200B`:v;return}let p=this.scrollButtons[t],u={left:this.rightButton,right:this.leftButton,up:this.downButton,down:this.upButton}[t],H=w?`${this.localize.term("scrolled")}. ${this.localize.term("scrollToEnd")}`:`${this.localize.term("scrolled")}. ${this.localize.term("scrollToStart")}`;(z=u==null?void 0:u.querySelector("sd-4-6-17-icon"))==null||z.setAttribute("label",H),h?u==null||u.focus():p==null||p.blur()}handleButtonBlur(t,l){var h;let a=(["left","up"].includes(t)?"start":"end")==="start"?this.localize.term("scrollToStart"):this.localize.term("scrollToEnd");(h=l.target.querySelector("sd-4-6-17-icon"))==null||h.setAttribute("label",a)}render(){let t="relative p-0 border-0 bg-transparent cursor-pointer w-5 h-5 flex items-center justify-center sd-interactive rounded-md flex text-lg",l="scroll-shadow absolute z-10 pointer-events-none";return r`<div part="base" class="${s("scroll-container flex overflow-hidden flex-1",this.scrollbars?"show-scrollbars":"hide-scrollbars",this.inset&&"p-4",{horizontal:"scroll-horizontal flex-row whitespace-nowrap items-center overflow-x-scroll overflow-y-hidden",vertical:"scroll-vertical justify-items-center overflow-y-scroll overflow-x-hidden",auto:"scroll-auto overflow-auto"}[this.orientation])}" @scroll="${this.handleContainerScroll}" tabindex="0"><div id="announcement-container" role="status" class="sr-only"></div><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons?r`${this.isScrollHorizontalEnabled?r`<div part="button-left" class="${s("absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8",!this.canScroll.left&&"opacity-0 pointer-events-none")}"><button part="button-start" class="${s(t)}" aria-hidden="${i(!this.canScroll.left||void 0)}" tabindex="${i(this.canScroll.left?void 0:-1)}" @click="${e=>this.handleScroll("left",e)}" @blur="${e=>this.handleButtonBlur("left",e)}"><slot name="icon-start"><sd-4-6-17-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-4-6-17-icon></slot></button></div><div part="button-right" class="${s("absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8",!this.canScroll.right&&"opacity-0 pointer-events-none")}"><button part="button-end" class="${s(t)}" aria-hidden="${i(!this.canScroll.right||void 0)}" tabindex="${i(this.canScroll.right?void 0:-1)}" @click="${e=>this.handleScroll("right",e)}" @blur="${e=>this.handleButtonBlur("right",e)}"><slot name="icon-end"><sd-4-6-17-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-4-6-17-icon></slot></button></div>`:null} ${this.isScrollVerticalEnabled?r`<div part="button-top" class="${s("absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8",!this.canScroll.up&&"opacity-0 pointer-events-none")}"><button part="button-start" class="${s(t)}" aria-hidden="${i(!this.canScroll.up||void 0)}" tabindex="${i(this.canScroll.up?void 0:-1)}" @click="${e=>this.handleScroll("up",e)}" @blur="${e=>this.handleButtonBlur("up",e)}"><slot name="icon-start"><sd-4-6-17-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-4-6-17-icon></slot></button></div><div part="button-bottom" class="${s("absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8",!this.canScroll.down&&"opacity-0 pointer-events-none")}"><button part="button-end" class="${s(t)}" aria-hidden="${i(!this.canScroll.down||void 0)}" tabindex="${i(this.canScroll.down?void 0:-1)}" @click="${e=>this.handleScroll("down",e)}" @blur="${e=>this.handleButtonBlur("down",e)}"><slot name="icon-end"><sd-4-6-17-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-4-6-17-icon></slot></button></div>`:null}`:null} ${this.shadows?r`${this.isScrollHorizontalEnabled?r`${this.canScroll.left?r`<div part="shadow-left" class="${l} left top-0 left-0 w-[6px] h-full"></div>`:null} ${this.canScroll.right?r`<div part="shadow-right" class="${l} right top-0 right-0 w-[6px] h-full"></div>`:null}`:null} ${this.isScrollVerticalEnabled?r`${this.canScroll.up?r`<div part="shadow-top" class="${l} top top-0 left-0 w-full h-[6px]"></div>`:null} ${this.canScroll.down?r`<div part="shadow-bottom" class="${l} bottom bottom-0 left-0 w-full h-[6px]"></div>`:null}`:null}`:null}`}};n.styles=[...m.styles,y`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-4-6-17-icon--top{align-self:flex-start}.sd-4-6-17-icon--down{align-self:flex-end}`],o([d('[part="button-right"] button')],n.prototype,"rightButton",2),o([d('[part="button-left"] button')],n.prototype,"leftButton",2),o([d('[part="button-bottom"] button')],n.prototype,"downButton",2),o([d('[part="button-top"] button')],n.prototype,"upButton",2),o([d(".scroll-container")],n.prototype,"container",2),o([d("#announcement-container")],n.prototype,"announcementContainer",2),o([c({type:String,reflect:!0})],n.prototype,"orientation",2),o([c({type:Boolean,reflect:!0})],n.prototype,"scrollbars",2),o([c({type:Boolean,reflect:!0})],n.prototype,"buttons",2),o([c({type:Boolean,reflect:!0})],n.prototype,"shadows",2),o([c({type:Boolean,reflect:!0})],n.prototype,"inset",2),o([c({type:Number,reflect:!0})],n.prototype,"step",2),o([f()],n.prototype,"canScroll",2),o([f()],n.prototype,"isScrollHorizontalEnabled",2),o([f()],n.prototype,"isScrollVerticalEnabled",2),n=o([x("sd-4-6-17-scrollable")],n);export{n as a};
1
+ import{a as i}from"./chunk.YTG5BN3U.js";import{a as B}from"./chunk.DEXOQON7.js";import{a as s}from"./chunk.26V4EXHB.js";import{a as x,b as c,c as f,d,h as m}from"./chunk.LQBUYA4X.js";import{b as y,e as r}from"./chunk.UWPDCU52.js";import{e as o}from"./chunk.TJOCV4DC.js";var n=class extends m{constructor(){super(...arguments);this.localize=new B(this);this.orientation="horizontal";this.scrollbars=!1;this.buttons=!1;this.shadows=!1;this.inset=!1;this.step=150;this.canScroll={left:!1,right:!1,up:!1,down:!1};this.isScrollHorizontalEnabled=!1;this.isScrollVerticalEnabled=!1}connectedCallback(){super.connectedCallback(),this.updateScrollEnabledFlags(),this.resizeObserver=new ResizeObserver(()=>{this.handleContainerScroll()}),this.updateComplete.then(()=>{this.container&&this.resizeObserver.observe(this.container)})}disconnectedCallback(){super.disconnectedCallback(),this.container&&this.resizeObserver.unobserve(this.container)}updated(t){super.updated(t),(t.has("orientation")||t.has("buttons")||t.has("shadows"))&&(this.updateScrollEnabledFlags(),this.handleContainerScroll())}updateScrollEnabledFlags(){let t=this.orientation;this.isScrollHorizontalEnabled=t==="horizontal"||t==="auto",this.isScrollVerticalEnabled=t==="vertical"||t==="auto"}get scrollButtons(){return{left:this.leftButton,right:this.rightButton,up:this.upButton,down:this.downButton}}handleContainerScroll(){if(!this.container)return;let t=this.isScrollHorizontalEnabled&&this.container.scrollLeft>0,l=this.isScrollHorizontalEnabled&&this.container.scrollLeft+this.container.clientWidth<this.container.scrollWidth-1,e=this.isScrollVerticalEnabled&&this.container.scrollTop>0,a=this.isScrollVerticalEnabled&&this.container.scrollTop+this.container.clientHeight<this.container.scrollHeight-1;this.canScroll={left:this.isScrollHorizontalEnabled&&t,right:this.isScrollHorizontalEnabled&&l,up:this.isScrollVerticalEnabled&&e,down:this.isScrollVerticalEnabled&&a};let b=t||e,h=l||a;b&&this.dispatchEvent(new CustomEvent("start")),h&&this.dispatchEvent(new CustomEvent("end"))}handleScroll(t,l){var E,$,z;let e=["left","up"].includes(t)?-this.step:this.step,a=["left","right"].includes(t)?"horizontal":"vertical",b=["left","up"].includes(t)?"start":"end",h=!["mouse","touch"].includes((E=l==null?void 0:l.pointerType)!=null?E:""),T=a==="horizontal"?"left":"top";($=this.container)==null||$.scrollBy({behavior:"smooth",[T]:e});let S=`button-${t}`;this.dispatchEvent(new CustomEvent(S,{bubbles:!0,composed:!0}));let g=(a==="horizontal"?this.container.scrollLeft:this.container.scrollTop)+e,k=a==="horizontal"?this.container.scrollWidth-this.container.clientWidth:this.container.scrollHeight-this.container.clientHeight,w=b==="start"&&g<=0,C=b==="end"&&g>=k-1;if(!(w||C)){let v=this.localize.term("scrolled");this.announcementContainer.textContent=this.announcementContainer.textContent===v?`${v}\u200B`:v;return}let p=this.scrollButtons[t],u={left:this.rightButton,right:this.leftButton,up:this.downButton,down:this.upButton}[t],H=w?`${this.localize.term("scrolled")}. ${this.localize.term("scrollToEnd")}`:`${this.localize.term("scrolled")}. ${this.localize.term("scrollToStart")}`;(z=u==null?void 0:u.querySelector("sd-4-6-18-icon"))==null||z.setAttribute("label",H),h?u==null||u.focus():p==null||p.blur()}handleButtonBlur(t,l){var h;let a=(["left","up"].includes(t)?"start":"end")==="start"?this.localize.term("scrollToStart"):this.localize.term("scrollToEnd");(h=l.target.querySelector("sd-4-6-18-icon"))==null||h.setAttribute("label",a)}render(){let t="relative p-0 border-0 bg-transparent cursor-pointer w-5 h-5 flex items-center justify-center sd-interactive rounded-md flex text-lg",l="scroll-shadow absolute z-10 pointer-events-none";return r`<div part="base" class="${s("scroll-container flex overflow-hidden flex-1",this.scrollbars?"show-scrollbars":"hide-scrollbars",this.inset&&"p-4",{horizontal:"scroll-horizontal flex-row whitespace-nowrap items-center overflow-x-scroll overflow-y-hidden",vertical:"scroll-vertical justify-items-center overflow-y-scroll overflow-x-hidden",auto:"scroll-auto overflow-auto"}[this.orientation])}" @scroll="${this.handleContainerScroll}" tabindex="0"><div id="announcement-container" role="status" class="sr-only"></div><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons?r`${this.isScrollHorizontalEnabled?r`<div part="button-left" class="${s("absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8",!this.canScroll.left&&"opacity-0 pointer-events-none")}"><button part="button-start" class="${s(t)}" aria-hidden="${i(!this.canScroll.left||void 0)}" tabindex="${i(this.canScroll.left?void 0:-1)}" @click="${e=>this.handleScroll("left",e)}" @blur="${e=>this.handleButtonBlur("left",e)}"><slot name="icon-start"><sd-4-6-18-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-4-6-18-icon></slot></button></div><div part="button-right" class="${s("absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8",!this.canScroll.right&&"opacity-0 pointer-events-none")}"><button part="button-end" class="${s(t)}" aria-hidden="${i(!this.canScroll.right||void 0)}" tabindex="${i(this.canScroll.right?void 0:-1)}" @click="${e=>this.handleScroll("right",e)}" @blur="${e=>this.handleButtonBlur("right",e)}"><slot name="icon-end"><sd-4-6-18-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-4-6-18-icon></slot></button></div>`:null} ${this.isScrollVerticalEnabled?r`<div part="button-top" class="${s("absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8",!this.canScroll.up&&"opacity-0 pointer-events-none")}"><button part="button-start" class="${s(t)}" aria-hidden="${i(!this.canScroll.up||void 0)}" tabindex="${i(this.canScroll.up?void 0:-1)}" @click="${e=>this.handleScroll("up",e)}" @blur="${e=>this.handleButtonBlur("up",e)}"><slot name="icon-start"><sd-4-6-18-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-4-6-18-icon></slot></button></div><div part="button-bottom" class="${s("absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8",!this.canScroll.down&&"opacity-0 pointer-events-none")}"><button part="button-end" class="${s(t)}" aria-hidden="${i(!this.canScroll.down||void 0)}" tabindex="${i(this.canScroll.down?void 0:-1)}" @click="${e=>this.handleScroll("down",e)}" @blur="${e=>this.handleButtonBlur("down",e)}"><slot name="icon-end"><sd-4-6-18-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-4-6-18-icon></slot></button></div>`:null}`:null} ${this.shadows?r`${this.isScrollHorizontalEnabled?r`${this.canScroll.left?r`<div part="shadow-left" class="${l} left top-0 left-0 w-[6px] h-full"></div>`:null} ${this.canScroll.right?r`<div part="shadow-right" class="${l} right top-0 right-0 w-[6px] h-full"></div>`:null}`:null} ${this.isScrollVerticalEnabled?r`${this.canScroll.up?r`<div part="shadow-top" class="${l} top top-0 left-0 w-full h-[6px]"></div>`:null} ${this.canScroll.down?r`<div part="shadow-bottom" class="${l} bottom bottom-0 left-0 w-full h-[6px]"></div>`:null}`:null}`:null}`}};n.styles=[...m.styles,y`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-4-6-18-icon--top{align-self:flex-start}.sd-4-6-18-icon--down{align-self:flex-end}`],o([d('[part="button-right"] button')],n.prototype,"rightButton",2),o([d('[part="button-left"] button')],n.prototype,"leftButton",2),o([d('[part="button-bottom"] button')],n.prototype,"downButton",2),o([d('[part="button-top"] button')],n.prototype,"upButton",2),o([d(".scroll-container")],n.prototype,"container",2),o([d("#announcement-container")],n.prototype,"announcementContainer",2),o([c({type:String,reflect:!0})],n.prototype,"orientation",2),o([c({type:Boolean,reflect:!0})],n.prototype,"scrollbars",2),o([c({type:Boolean,reflect:!0})],n.prototype,"buttons",2),o([c({type:Boolean,reflect:!0})],n.prototype,"shadows",2),o([c({type:Boolean,reflect:!0})],n.prototype,"inset",2),o([c({type:Number,reflect:!0})],n.prototype,"step",2),o([f()],n.prototype,"canScroll",2),o([f()],n.prototype,"isScrollHorizontalEnabled",2),o([f()],n.prototype,"isScrollVerticalEnabled",2),n=o([x("sd-4-6-18-scrollable")],n);export{n as a};