@solid-design-system/components 4.3.0 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/cdn/chunks/{chunk.NER6LFUE.js → chunk.5YWPH3S7.js} +2 -2
  2. package/cdn/chunks/chunk.HT2MRC4Z.js +1 -0
  3. package/cdn/chunks/chunk.NQXQB7LN.js +1 -0
  4. package/cdn/components/carousel/carousel.js +1 -1
  5. package/cdn/components/step/step.d.ts +1 -0
  6. package/cdn/components/step/step.js +1 -1
  7. package/cdn/components/step-group/step-group.d.ts +1 -0
  8. package/cdn/components/step-group/step-group.js +1 -1
  9. package/cdn/custom-elements.json +20 -1
  10. package/cdn/solid-components.bundle.js +15 -15
  11. package/cdn/solid-components.iife.js +15 -15
  12. package/cdn/solid-components.js +1 -1
  13. package/cdn/vscode.html-custom-data.json +5 -0
  14. package/cdn/web-types.json +11 -1
  15. package/cdn-versioned/_components/menu/menu.js +1 -1
  16. package/cdn-versioned/_components/menu/menu.styles.js +1 -1
  17. package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
  18. package/cdn-versioned/chunks/chunk.247MZWMU.js +1 -1
  19. package/cdn-versioned/chunks/chunk.2BLQ3VDT.js +4 -4
  20. package/cdn-versioned/chunks/chunk.2HJF2D4H.js +2 -2
  21. package/cdn-versioned/chunks/chunk.43NFQGWL.js +1 -1
  22. package/cdn-versioned/chunks/chunk.4QAJB6AU.js +1 -1
  23. package/cdn-versioned/chunks/chunk.5AILWWY2.js +1 -1
  24. package/cdn-versioned/chunks/chunk.5TTHL3M2.js +3 -3
  25. package/cdn-versioned/chunks/{chunk.NER6LFUE.js → chunk.5YWPH3S7.js} +2 -2
  26. package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
  27. package/cdn-versioned/chunks/chunk.777DWZOA.js +1 -1
  28. package/cdn-versioned/chunks/chunk.7TRFUW6U.js +1 -1
  29. package/cdn-versioned/chunks/chunk.BHWV44KN.js +1 -1
  30. package/cdn-versioned/chunks/chunk.BWMHPT4Y.js +1 -1
  31. package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
  32. package/cdn-versioned/chunks/chunk.CNGIUOE5.js +1 -1
  33. package/cdn-versioned/chunks/chunk.DDLTKNEO.js +1 -1
  34. package/cdn-versioned/chunks/chunk.DLY5AX2P.js +1 -1
  35. package/cdn-versioned/chunks/chunk.E5FCRWHS.js +1 -1
  36. package/cdn-versioned/chunks/chunk.F45IDVYA.js +1 -1
  37. package/cdn-versioned/chunks/chunk.FHU3KJ7Y.js +1 -1
  38. package/cdn-versioned/chunks/chunk.FVXID42E.js +1 -1
  39. package/cdn-versioned/chunks/chunk.HT2MRC4Z.js +1 -0
  40. package/cdn-versioned/chunks/chunk.I2WEQVU3.js +1 -1
  41. package/cdn-versioned/chunks/chunk.IUC5UQ2V.js +1 -1
  42. package/cdn-versioned/chunks/chunk.JCNKLGIS.js +1 -1
  43. package/cdn-versioned/chunks/chunk.JDSUZDP4.js +1 -1
  44. package/cdn-versioned/chunks/chunk.KLNBBP4R.js +4 -4
  45. package/cdn-versioned/chunks/chunk.KV424MMD.js +1 -1
  46. package/cdn-versioned/chunks/chunk.KWNRVZ54.js +1 -1
  47. package/cdn-versioned/chunks/chunk.LET4FMBB.js +1 -1
  48. package/cdn-versioned/chunks/chunk.LKO4ZRE7.js +1 -1
  49. package/cdn-versioned/chunks/chunk.NFQN6UG4.js +1 -1
  50. package/cdn-versioned/chunks/chunk.NOJV6ZZF.js +1 -1
  51. package/cdn-versioned/chunks/chunk.NQXQB7LN.js +1 -0
  52. package/cdn-versioned/chunks/chunk.NZT4ORYP.js +1 -1
  53. package/cdn-versioned/chunks/chunk.O3IRROA2.js +1 -1
  54. package/cdn-versioned/chunks/chunk.ONLECFTO.js +1 -1
  55. package/cdn-versioned/chunks/chunk.PDIUABFP.js +1 -1
  56. package/cdn-versioned/chunks/chunk.PGBIGG5I.js +1 -1
  57. package/cdn-versioned/chunks/chunk.QWMQJ6TF.js +1 -1
  58. package/cdn-versioned/chunks/chunk.RCLIOOS5.js +1 -1
  59. package/cdn-versioned/chunks/chunk.RGJXEMYT.js +1 -1
  60. package/cdn-versioned/chunks/chunk.SDZ6E4CH.js +1 -1
  61. package/cdn-versioned/chunks/chunk.V3YHI2G2.js +1 -1
  62. package/cdn-versioned/chunks/chunk.VZSFEHBE.js +1 -1
  63. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  64. package/cdn-versioned/chunks/chunk.WJ55QSS3.js +1 -1
  65. package/cdn-versioned/chunks/chunk.WMV7GLXF.js +1 -1
  66. package/cdn-versioned/chunks/chunk.WUTY672B.js +1 -1
  67. package/cdn-versioned/chunks/chunk.XYZ5DKTA.js +1 -1
  68. package/cdn-versioned/chunks/chunk.Y4PTSCEB.js +1 -1
  69. package/cdn-versioned/chunks/chunk.ZN24IDXT.js +1 -1
  70. package/cdn-versioned/chunks/chunk.ZVVSLR3B.js +1 -1
  71. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  72. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  73. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  74. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  75. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  76. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  77. package/cdn-versioned/components/button/button.d.ts +1 -1
  78. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  79. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  80. package/cdn-versioned/components/carousel/carousel.js +1 -1
  81. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  82. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  83. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  84. package/cdn-versioned/components/combobox/combobox.d.ts +4 -4
  85. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  86. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  87. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  88. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  89. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  90. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  91. package/cdn-versioned/components/header/header.d.ts +1 -1
  92. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  93. package/cdn-versioned/components/include/include.d.ts +1 -1
  94. package/cdn-versioned/components/input/input.d.ts +1 -1
  95. package/cdn-versioned/components/link/link.d.ts +1 -1
  96. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  97. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  98. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  99. package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
  100. package/cdn-versioned/components/option/option.d.ts +1 -1
  101. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  102. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  103. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  104. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  105. package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
  106. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  107. package/cdn-versioned/components/select/select.d.ts +4 -4
  108. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  109. package/cdn-versioned/components/step/step.d.ts +2 -1
  110. package/cdn-versioned/components/step/step.js +1 -1
  111. package/cdn-versioned/components/step-group/step-group.d.ts +2 -1
  112. package/cdn-versioned/components/step-group/step-group.js +1 -1
  113. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  114. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  115. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  116. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  117. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  118. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  119. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  120. package/cdn-versioned/components/video/video.d.ts +1 -1
  121. package/cdn-versioned/custom-elements.json +221 -202
  122. package/cdn-versioned/internal/form.js +3 -3
  123. package/cdn-versioned/solid-components.bundle.js +20 -20
  124. package/cdn-versioned/solid-components.css +2 -2
  125. package/cdn-versioned/solid-components.iife.js +21 -21
  126. package/cdn-versioned/solid-components.js +1 -1
  127. package/cdn-versioned/vscode.html-custom-data.json +85 -80
  128. package/cdn-versioned/web-types.json +147 -137
  129. package/dist/chunks/{chunk.RI66LCUS.js → chunk.5AX4S2QZ.js} +9 -1
  130. package/dist/chunks/{chunk.2LL4ZNH4.js → chunk.JMAPLJHF.js} +5 -1
  131. package/dist/chunks/{chunk.5R6D4NTV.js → chunk.L5QYLWGO.js} +0 -2
  132. package/dist/components/carousel/carousel.js +1 -1
  133. package/dist/components/step/step.d.ts +1 -0
  134. package/dist/components/step/step.js +2 -1
  135. package/dist/components/step-group/step-group.d.ts +1 -0
  136. package/dist/components/step-group/step-group.js +1 -1
  137. package/dist/custom-elements.json +20 -1
  138. package/dist/solid-components.js +3 -3
  139. package/dist/vscode.html-custom-data.json +5 -0
  140. package/dist/web-types.json +11 -1
  141. package/dist-versioned/_components/menu/menu.js +1 -1
  142. package/dist-versioned/_components/menu/menu.styles.js +1 -1
  143. package/dist-versioned/_components/menu-item/menu-item.js +2 -2
  144. package/dist-versioned/chunks/chunk.35GLHXMN.js +2 -2
  145. package/dist-versioned/chunks/chunk.3UO2LKG5.js +13 -13
  146. package/dist-versioned/chunks/chunk.3YTMF6YZ.js +2 -2
  147. package/dist-versioned/chunks/{chunk.RI66LCUS.js → chunk.5AX4S2QZ.js} +11 -3
  148. package/dist-versioned/chunks/chunk.5V7TZU4Q.js +5 -5
  149. package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
  150. package/dist-versioned/chunks/chunk.6MMBMCHF.js +9 -9
  151. package/dist-versioned/chunks/chunk.6S3CCHLZ.js +1 -1
  152. package/dist-versioned/chunks/chunk.73HAOWEX.js +2 -2
  153. package/dist-versioned/chunks/chunk.7SZFMAVT.js +1 -1
  154. package/dist-versioned/chunks/chunk.AWASHA2T.js +1 -1
  155. package/dist-versioned/chunks/chunk.BFHRLREK.js +1 -1
  156. package/dist-versioned/chunks/chunk.CVHGDRIM.js +2 -2
  157. package/dist-versioned/chunks/chunk.DI4CIT2A.js +1 -1
  158. package/dist-versioned/chunks/chunk.DNHLNGIL.js +13 -13
  159. package/dist-versioned/chunks/chunk.F4BRIYYD.js +1 -1
  160. package/dist-versioned/chunks/chunk.G6KPFA3G.js +4 -4
  161. package/dist-versioned/chunks/chunk.GQXJC6ZE.js +2 -2
  162. package/dist-versioned/chunks/chunk.GWCHNKGW.js +1 -1
  163. package/dist-versioned/chunks/chunk.H54CZFCF.js +5 -5
  164. package/dist-versioned/chunks/chunk.HJ3ZUH4A.js +1 -1
  165. package/dist-versioned/chunks/chunk.I2JBWY5C.js +2 -2
  166. package/dist-versioned/chunks/chunk.IKWY7WM6.js +3 -3
  167. package/dist-versioned/chunks/chunk.JD5XFZKL.js +2 -2
  168. package/dist-versioned/chunks/{chunk.2LL4ZNH4.js → chunk.JMAPLJHF.js} +7 -3
  169. package/dist-versioned/chunks/chunk.JPGDK3CW.js +2 -2
  170. package/dist-versioned/chunks/chunk.K5MKZJEB.js +5 -5
  171. package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
  172. package/dist-versioned/chunks/{chunk.5R6D4NTV.js → chunk.L5QYLWGO.js} +6 -8
  173. package/dist-versioned/chunks/chunk.LRQ55FZL.js +1 -1
  174. package/dist-versioned/chunks/chunk.LUV3NLSJ.js +3 -3
  175. package/dist-versioned/chunks/chunk.MCUC6LS6.js +2 -2
  176. package/dist-versioned/chunks/chunk.MKZ5TRQH.js +1 -1
  177. package/dist-versioned/chunks/chunk.OENW3EQT.js +5 -5
  178. package/dist-versioned/chunks/chunk.ONBGPY5D.js +5 -5
  179. package/dist-versioned/chunks/chunk.QN2ROZHZ.js +3 -3
  180. package/dist-versioned/chunks/chunk.RFVRT5UG.js +2 -2
  181. package/dist-versioned/chunks/chunk.SH45GYZL.js +1 -1
  182. package/dist-versioned/chunks/chunk.T5VRGBLR.js +1 -1
  183. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  184. package/dist-versioned/chunks/chunk.UXEDWUMA.js +26 -26
  185. package/dist-versioned/chunks/chunk.WHFYHMF4.js +2 -2
  186. package/dist-versioned/chunks/chunk.WJHCLJNK.js +1 -1
  187. package/dist-versioned/chunks/chunk.WPHOQL7V.js +2 -2
  188. package/dist-versioned/chunks/chunk.WZGJQPPD.js +2 -2
  189. package/dist-versioned/chunks/chunk.X7HEAUGJ.js +2 -2
  190. package/dist-versioned/chunks/chunk.XCNH2K2U.js +5 -5
  191. package/dist-versioned/chunks/chunk.XNH47HGG.js +29 -29
  192. package/dist-versioned/chunks/chunk.Y6WJUTMM.js +6 -6
  193. package/dist-versioned/chunks/chunk.Z3T4BG2M.js +1 -1
  194. package/dist-versioned/chunks/chunk.ZH6BP5XL.js +3 -3
  195. package/dist-versioned/chunks/chunk.ZJGD23K6.js +3 -3
  196. package/dist-versioned/chunks/chunk.ZWJNBDIV.js +11 -11
  197. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  198. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  199. package/dist-versioned/components/animation/animation.d.ts +1 -1
  200. package/dist-versioned/components/audio/audio.d.ts +1 -1
  201. package/dist-versioned/components/badge/badge.d.ts +1 -1
  202. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  203. package/dist-versioned/components/button/button.d.ts +1 -1
  204. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  205. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  206. package/dist-versioned/components/carousel/carousel.js +1 -1
  207. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  208. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  209. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  210. package/dist-versioned/components/combobox/combobox.d.ts +4 -4
  211. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  212. package/dist-versioned/components/divider/divider.d.ts +1 -1
  213. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  214. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  215. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  216. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  217. package/dist-versioned/components/header/header.d.ts +1 -1
  218. package/dist-versioned/components/icon/icon.d.ts +1 -1
  219. package/dist-versioned/components/include/include.d.ts +1 -1
  220. package/dist-versioned/components/input/input.d.ts +1 -1
  221. package/dist-versioned/components/link/link.d.ts +1 -1
  222. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  223. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  224. package/dist-versioned/components/notification/notification.d.ts +1 -1
  225. package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
  226. package/dist-versioned/components/option/option.d.ts +1 -1
  227. package/dist-versioned/components/popup/popup.d.ts +1 -1
  228. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  229. package/dist-versioned/components/radio/radio.d.ts +1 -1
  230. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  231. package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
  232. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  233. package/dist-versioned/components/select/select.d.ts +4 -4
  234. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  235. package/dist-versioned/components/step/step.d.ts +2 -1
  236. package/dist-versioned/components/step/step.js +2 -1
  237. package/dist-versioned/components/step-group/step-group.d.ts +2 -1
  238. package/dist-versioned/components/step-group/step-group.js +1 -1
  239. package/dist-versioned/components/switch/switch.d.ts +1 -1
  240. package/dist-versioned/components/tab/tab.d.ts +1 -1
  241. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  242. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  243. package/dist-versioned/components/tag/tag.d.ts +1 -1
  244. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  245. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  246. package/dist-versioned/components/video/video.d.ts +1 -1
  247. package/dist-versioned/custom-elements.json +221 -202
  248. package/dist-versioned/internal/form.js +3 -3
  249. package/dist-versioned/solid-components.css +2 -2
  250. package/dist-versioned/solid-components.js +3 -3
  251. package/dist-versioned/vscode.html-custom-data.json +85 -80
  252. package/dist-versioned/web-types.json +147 -137
  253. package/package.json +2 -2
  254. package/cdn/chunks/chunk.HKGBSLKX.js +0 -1
  255. package/cdn/chunks/chunk.NLOKZURD.js +0 -1
  256. package/cdn-versioned/chunks/chunk.HKGBSLKX.js +0 -1
  257. package/cdn-versioned/chunks/chunk.NLOKZURD.js +0 -1
@@ -1,6 +1,6 @@
1
- import{a as k}from"./chunk.CBQWVOOS.js";import{a as T}from"./chunk.EUGX6XW6.js";import{a as L}from"./chunk.NFQN6UG4.js";import{c as M}from"./chunk.RQYP7MH5.js";import{a as m}from"./chunk.E2DRD2OX.js";import{a as $}from"./chunk.TNPIUMKG.js";import{a as n}from"./chunk.26V4EXHB.js";import{a as E,b as g,c as f,d as v,e as A,h as P}from"./chunk.5AILWWY2.js";import{b as x,e as b}from"./chunk.IRWHG2Q4.js";import{e as o}from"./chunk.TJOCV4DC.js";function _(h,d,e){let i=t=>Object.is(t,-0)?0:t;return h<d?i(d):h>e?i(e):i(h)}function*C(h,d){if(h!==void 0){let e=0;for(let i of h)yield d(i,e++)}}function*I(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-carousel-item");this.intersectionObserverEntries=new Map;this.localize=new $(this);this.userInteracted=!1;this.handleUserInteraction=()=>{this.userInteracted=!0};this.handleSlotChange=e=>{e.some(t=>[...t.addedNodes,...t.removedNodes].some(s=>L.isCarouselItem(s)&&!s.hasAttribute("data-clone")))&&this.initializeSlides(),this.requestUpdate()};this.unblockAutoplay=(e,i)=>{e.detail&&i.blur()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.localize.term("carousel")),["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,l=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(),l&&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))}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),l=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)}),l.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,l)=>{s.classList.toggle("--is-active",l===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:l}=this,c=this.getSlides(),u=this.getSlides({excludeClones:!1}),a=(e+c.length)%c.length;this.activeSlide=a;let p=_(e+(s?t:0),0,u.length+1),y=u[p],w=l.getBoundingClientRect(),S=y.getBoundingClientRect();if(l.scrollTo({left:S.left-w.left+l.scrollLeft,top:S.top-w.top+l.scrollTop,behavior:M()?"auto":i}),this.userInteracted&&!this.loop){let O=this.activeSlide===c.length-1||this.activeSlide===this.slides.length-this.slidesPerPage,B=this.activeSlide===0;O?this.previousButton.focus({preventScroll:!0}):B&&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),l=this.loop||s>1,c=this.loop||s<t,u=this.localize.dir()==="ltr";return b`<div part="base" class="${n("carousel h-full w-full")}"><div id="scroll-container" part="scroll-container" class="${n(`carousel__slides mb-6
1
+ import{a as k}from"./chunk.CBQWVOOS.js";import{a as T}from"./chunk.EUGX6XW6.js";import{a as L}from"./chunk.NFQN6UG4.js";import{c as A}from"./chunk.RQYP7MH5.js";import{a as m}from"./chunk.E2DRD2OX.js";import{a as $}from"./chunk.TNPIUMKG.js";import{a as n}from"./chunk.26V4EXHB.js";import{a as E,b as g,c as f,d as v,e as M,h as P}from"./chunk.5AILWWY2.js";import{b as x,e as b}from"./chunk.IRWHG2Q4.js";import{e as o}from"./chunk.TJOCV4DC.js";function _(h,d,e){let i=t=>Object.is(t,-0)?0:t;return h<d?i(d):h>e?i(e):i(h)}function*C(h,d){if(h!==void 0){let e=0;for(let i of h)yield d(i,e++)}}function*I(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-carousel-item");this.intersectionObserverEntries=new Map;this.localize=new $(this);this.userInteracted=!1;this.handleUserInteraction=()=>{this.userInteracted=!0};this.handleSlotChange=e=>{e.some(t=>[...t.addedNodes,...t.removedNodes].some(s=>L.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,l=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(),l&&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))}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),l=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)}),l.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,l)=>{s.classList.toggle("--is-active",l===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:l}=this,c=this.getSlides(),u=this.getSlides({excludeClones:!1}),a=(e+c.length)%c.length;this.activeSlide=a;let p=_(e+(s?t:0),0,u.length+1),y=u[p],w=l.getBoundingClientRect(),S=y.getBoundingClientRect();if(l.scrollTo({left:S.left-w.left+l.scrollLeft,top:S.top-w.top+l.scrollTop,behavior:A()?"auto":i}),this.userInteracted&&!this.loop){let O=this.activeSlide===c.length-1||this.activeSlide===this.slides.length-this.slidesPerPage,B=this.activeSlide===0;O?this.previousButton.focus({preventScroll:!0}):B&&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),l=this.loop||s>1,c=this.loop||s<t,u=this.localize.dir()==="ltr";return b`<div part="base" class="${n("carousel h-full w-full")}"><div id="scroll-container" part="scroll-container" class="${n(`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"}" role="status" tabindex="0" @keydown="${this.handleKeyDown}" @scrollend="${this.handleScrollEnd}"><slot></slot></div><div part="controls" class="${n("w-full flex items-center justify-center relative")}"><div part="navigation" class="${n("carousel__navigation flex items-center justify-center")}"><button part="navigation-button navigation-button--previous" id="carousel__navigation-button--previous" ?disabled="${!l}" class="${n("!mr-6 !rounded-sm sd-interactive",!l&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${l?"false":"true"}" @click="${l?a=>{this.previous(),this.unblockAutoplay(a,this.previousButton)}:null}"><slot name="previous-icon"><sd-icon class="${n("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${u?"chevron-down":"chevron-up"}"></sd-icon></slot></button> ${this.variant==="dot"?b`<div part="pagination-dot" role="tablist" class="${n("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${C(I(t),a=>{let p=a+1===s;return b`<button part="pagination-item ${p?"pagination-item--active":""}" class="${n("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="${n("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="${n("w-5 text-center border-b-2 border-accent",this.inverted?"text-white":"text-black")}">${s}</span> <span part="pagination-divider" class="${n("scale-y-[1.5]","text-center",this.inverted?"text-white":"text-black")}">/</span> <span part="pagination-item" class="${n("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="${n("!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"}" @click="${c?a=>{this.next(),this.unblockAutoplay(a,this.nextButton)}:null}"><slot name="next-icon"><sd-icon class="${n("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${u?"chevron-up":"chevron-down"}"></sd-icon></slot></button></div><button class="${n("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="${n(this.pausedAutoplay?"":"hidden")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-icon></slot><slot name="autoplay-pause" class="${n(this.pausedAutoplay?"hidden":"")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-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-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`],o([v('[part~="autoplay-controls"]')],r.prototype,"autoplayControls",2),o([v('[part~="navigation-button--previous"]')],r.prototype,"previousButton",2),o([v('[part~="navigation-button--next"]')],r.prototype,"nextButton",2),o([A('[part~="pagination-item"]')],r.prototype,"paginationItems",2),o([g({type:String,reflect:!0})],r.prototype,"variant",2),o([g({type:Boolean,reflect:!0})],r.prototype,"inverted",2),o([g({type:Boolean,reflect:!0})],r.prototype,"loop",2),o([g({type:Boolean,reflect:!0})],r.prototype,"autoplay",2),o([g({type:Number,attribute:"slides-per-page"})],r.prototype,"slidesPerPage",2),o([g({type:Number,attribute:"slides-per-move"})],r.prototype,"slidesPerMove",2),o([v("slot:not([name])")],r.prototype,"defaultSlot",2),o([v(".carousel__slides")],r.prototype,"scrollContainer",2),o([v(".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-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"}" role="status" tabindex="0" @keydown="${this.handleKeyDown}" @scrollend="${this.handleScrollEnd}"><slot></slot></div><div part="controls" class="${n("w-full flex items-center justify-center relative")}"><div part="navigation" class="${n("carousel__navigation flex items-center justify-center")}"><button part="navigation-button navigation-button--previous" id="carousel__navigation-button--previous" ?disabled="${!l}" class="${n("!mr-6 !rounded-sm sd-interactive",!l&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${l?"false":"true"}" @click="${l?a=>{this.previous(),this.unblockAutoplay(a,this.previousButton)}:null}"><slot name="previous-icon"><sd-icon class="${n("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${u?"chevron-down":"chevron-up"}"></sd-icon></slot></button> ${this.variant==="dot"?b`<div part="pagination-dot" role="tablist" class="${n("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${C(I(t),a=>{let p=a+1===s;return b`<button part="pagination-item ${p?"pagination-item--active":""}" class="${n("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="${n("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="${n("w-5 text-center border-b-2 border-accent",this.inverted?"text-white":"text-black")}">${s}</span> <span part="pagination-divider" class="${n("scale-y-[1.5]","text-center",this.inverted?"text-white":"text-black")}">/</span> <span part="pagination-item" class="${n("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="${n("!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"}" @click="${c?a=>{this.next(),this.unblockAutoplay(a,this.nextButton)}:null}"><slot name="next-icon"><sd-icon class="${n("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${u?"chevron-up":"chevron-down"}"></sd-icon></slot></button></div><button class="${n("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="${n(this.pausedAutoplay?"":"hidden")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-icon></slot><slot name="autoplay-pause" class="${n(this.pausedAutoplay?"hidden":"")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-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-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`],o([v('[part~="autoplay-controls"]')],r.prototype,"autoplayControls",2),o([v('[part~="navigation-button--previous"]')],r.prototype,"previousButton",2),o([v('[part~="navigation-button--next"]')],r.prototype,"nextButton",2),o([M('[part~="pagination-item"]')],r.prototype,"paginationItems",2),o([g({type:String,reflect:!0})],r.prototype,"variant",2),o([g({type:Boolean,reflect:!0})],r.prototype,"inverted",2),o([g({type:Boolean,reflect:!0})],r.prototype,"loop",2),o([g({type:Boolean,reflect:!0})],r.prototype,"autoplay",2),o([g({type:Number,attribute:"slides-per-page"})],r.prototype,"slidesPerPage",2),o([g({type:Number,attribute:"slides-per-move"})],r.prototype,"slidesPerMove",2),o([v("slot:not([name])")],r.prototype,"defaultSlot",2),o([v(".carousel__slides")],r.prototype,"scrollContainer",2),o([v(".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-carousel")],r);export{r as a};
4
4
  /*! Bundled license information:
5
5
 
6
6
  lit-html/directives/map.js:
@@ -0,0 +1 @@
1
+ import{a}from"./chunk.HE2LNCWW.js";import{a as o,b as s}from"./chunk.5ZILM4TA.js";import{a as l}from"./chunk.E2DRD2OX.js";import{a as f}from"./chunk.6HO6CE4A.js";import{a as i}from"./chunk.26V4EXHB.js";import{a as u,b as r,h as n}from"./chunk.5AILWWY2.js";import{b as d}from"./chunk.IRWHG2Q4.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends n{constructor(){super(...arguments);this.hasSlotController=new f(this,"label","[default]");this.size="lg";this.orientation="horizontal";this.disabled=!1;this.current=!1;this.noTail=!1;this.notInteractive=!1;this.label="";this.description="";this.index=1;this.href=""}connectedCallback(){super.connectedCallback()}isLink(){return!!this.href}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleCurrentChange(){this.current&&(this.disabled=!1)}handleDisabledChange(){this.disabled&&(this.current=!1)}handleInteractivityChange(){this.notInteractive&&(this.current=!1,this.disabled=!1)}render(){let h=this.isLink(),c=this.notInteractive?o`div`:h?o`a`:o`button`,b=this.hasSlotController.test("label"),m=this.label?!0:b,p=this.hasSlotController.test("[default]"),v=this.description?!0:p;return s`<div role="listitem" part="base" class="${i("flex pt-1",this.orientation==="horizontal"?"flex-col w-full":"flex-row gap-4 items-stretch h-full w-min overflow-hidden",!this.disabled&&!this.current&&!this.notInteractive&&"group")}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><div part="circle-and-tail-container" class="${i("flex shrink-0 gap-2",this.noTail&&"w-max",this.orientation==="horizontal"?"flex-row":"flex-col items-stretch",this.orientation==="horizontal"?this.size==="lg"?"translateLg":"translateSm":this.size==="lg"?"mt-1":"mt-3")}"><${c} part="circle" href="${a(h?this.href:void 0)}" aria-disabled="${a(this.disabled||void 0)}" aria-current="${this.current?"step":void 0}" aria-labelledby="${a(this.notInteractive||!m?void 0:"label")}" aria-describedby="${a(this.notInteractive||!v?void 0:"description")}" class="${i("border rounded-full aspect-square circle flex items-center justify-center shrink-0 font-bold select-none",this.disabled?"focus-visible:outline-none cursor-not-allowed":"focus-visible:focus-outline group-hover:cursor-pointer",this.notInteractive?this.size==="lg"?"w-[72px]":"w-12":this.size==="lg"?"w-12":"w-8",this.disabled&&"border-neutral-400 text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive&&"border-primary group-hover:bg-primary-100 group-hover:border-primary-500",this.notInteractive&&"border-neutral-400",this.current&&"bg-accent border-none text-white")}"><slot name="circle-content" class="${i(!this.disabled&&!this.current&&!this.notInteractive&&"text-primary group-hover:text-primary-500 group-hover:fill-primary-500",this.notInteractive&&"text-primary",this.size==="lg"?"text-lg":"text-sm")}">${!this.disabled&&!this.current&&!this.notInteractive?s`<sd-icon name="status-check" library="system"></sd-icon>`:s`${this.index}`}</slot></${c}>${this.noTail?"":s`<div part="tail" class="${i(this.orientation==="horizontal"?"border-t w-full my-auto mr-2":"border-l flex-grow flex-shrink-0 basis-auto h-full w-[1px] mx-auto",!this.disabled&&!this.current&&!this.notInteractive?" border-primary group-hover:border-primary-500":"border-neutral-400")}"></div>`}</div><div part="text-container" class="${i("mt-4 break-words flex flex-col gap-2",this.orientation==="horizontal"?"text-center w-40":"w-max text-left",this.disabled&&"!text-neutral-700",this.notInteractive?"ml-3":"mr-4")}"><div part="label" id="label" class="${i("!font-bold sd-paragraph",this.disabled&&"!text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive?"!text-primary group-hover:!text-primary-500 group-hover:cursor-pointer":"text-black")}"><slot name="label">${this.label}</slot></div><div part="description" id="description" class="${i("sd-paragraph sd-paragraph--size-sm",this.disabled&&"!text-neutral-700")}">${this.description||s`<slot></slot>`}</div></div></div>`}};t.styles=[...n.styles,d`:host{flex:1 1 0%}:host([no-tail]){flex-grow:0}.translateLg{transform:translateX(55px)}.translateSm{transform:translateX(64px)}`],e([r({reflect:!0})],t.prototype,"size",2),e([r({reflect:!0})],t.prototype,"orientation",2),e([r({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([r({type:Boolean,reflect:!0})],t.prototype,"current",2),e([r({reflect:!0,type:Boolean,attribute:"no-tail"})],t.prototype,"noTail",2),e([r({type:Boolean,reflect:!0,attribute:"not-interactive"})],t.prototype,"notInteractive",2),e([r()],t.prototype,"label",2),e([r()],t.prototype,"description",2),e([r({type:Number,reflect:!0,attribute:"index"})],t.prototype,"index",2),e([r()],t.prototype,"href",2),e([l("current")],t.prototype,"handleCurrentChange",1),e([l("disabled")],t.prototype,"handleDisabledChange",1),e([l("notInteractive")],t.prototype,"handleInteractivityChange",1),t=e([u("sd-step")],t);export{t as a};
@@ -0,0 +1 @@
1
+ import{a as l}from"./chunk.E2DRD2OX.js";import{a as m}from"./chunk.26V4EXHB.js";import{a as h,b as a,d as f,h as n}from"./chunk.5AILWWY2.js";import{b as o,e as c}from"./chunk.IRWHG2Q4.js";import{e as s}from"./chunk.TJOCV4DC.js";var e=class extends n{constructor(){super(...arguments);this.steps=[];this.size="lg";this.orientation="horizontal";this.activeStep=0;this.notInteractive=!1;this.label=""}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.steps=this.getAllSteps(),this.steps[this.steps.length-1].noTail=!0;let t;this.steps.forEach((i,r)=>{i.index=r+1,i.size=this.size,i.orientation=this.orientation,this.notInteractive?(i.current=!1,i.disabled=!1,i.notInteractive=!0):i.current&&(t=r)}),this.setActiveStep(t||this.activeStep)})}updateSize(){this.steps.forEach(t=>{t.size=this.size})}updateOrientation(){this.steps.forEach(t=>{t.orientation=this.orientation})}getAllSteps(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-step")}setActiveStep(t){t>=0&&t<this.steps.length&&!this.notInteractive&&(this.activeStep=t,this.steps.forEach((i,r)=>{r===t?i.current=!0:r>t?i.disabled=!0:i.current=!1}))}handleInteractivityChange(){this.notInteractive&&this.steps.forEach(t=>{t.current=!1,t.disabled=!1,t.notInteractive=!0})}render(){return c`<div role="${this.notInteractive?"group":"navigation"}" class="h-full" aria-label="${this.label}"><div role="list" part="base" class="${m("flex",this.orientation==="vertical"&&"flex-col h-full")}"><slot part="body"></slot></div></div>`}};e.styles=[...n.styles,o`:host{width:-moz-max-content;width:max-content}`],s([f("[part=body]")],e.prototype,"body",2),s([a({reflect:!0})],e.prototype,"size",2),s([a({reflect:!0})],e.prototype,"orientation",2),s([a({type:Number,reflect:!0,attribute:"active-step"})],e.prototype,"activeStep",2),s([a({type:Boolean,reflect:!0,attribute:"not-interactive"})],e.prototype,"notInteractive",2),s([a({type:String})],e.prototype,"label",2),s([l("size",{waitUntilFirstUpdate:!0})],e.prototype,"updateSize",1),s([l("orientation",{waitUntilFirstUpdate:!0})],e.prototype,"updateOrientation",1),s([l("notInteractive")],e.prototype,"handleInteractivityChange",1),e=s([h("sd-step-group")],e);export{e as a};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.NER6LFUE.js";import"../../chunks/chunk.CBQWVOOS.js";import"../../chunks/chunk.EUGX6XW6.js";import"../../chunks/chunk.MHWW3RZB.js";import"../../chunks/chunk.NFQN6UG4.js";import"../../chunks/chunk.7TRFUW6U.js";import"../../chunks/chunk.SPDB3L7V.js";import"../../chunks/chunk.SNS2IHBI.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.K7HF3VBZ.js";import"../../chunks/chunk.PYHYYOBE.js";import"../../chunks/chunk.EFLL7VXU.js";import"../../chunks/chunk.RQYP7MH5.js";import"../../chunks/chunk.KLRPP4NQ.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.TNPIUMKG.js";import"../../chunks/chunk.LO4SY63J.js";import"../../chunks/chunk.O3CT4L2X.js";import"../../chunks/chunk.HJGLYEWV.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.5AILWWY2.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.5YWPH3S7.js";import"../../chunks/chunk.CBQWVOOS.js";import"../../chunks/chunk.EUGX6XW6.js";import"../../chunks/chunk.MHWW3RZB.js";import"../../chunks/chunk.NFQN6UG4.js";import"../../chunks/chunk.7TRFUW6U.js";import"../../chunks/chunk.SPDB3L7V.js";import"../../chunks/chunk.SNS2IHBI.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.K7HF3VBZ.js";import"../../chunks/chunk.PYHYYOBE.js";import"../../chunks/chunk.EFLL7VXU.js";import"../../chunks/chunk.RQYP7MH5.js";import"../../chunks/chunk.KLRPP4NQ.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.TNPIUMKG.js";import"../../chunks/chunk.LO4SY63J.js";import"../../chunks/chunk.O3CT4L2X.js";import"../../chunks/chunk.HJGLYEWV.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.5AILWWY2.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -1,5 +1,6 @@
1
1
  import SolidElement from '../../internal/solid-element';
2
2
  export default class SdStep extends SolidElement {
3
+ private readonly hasSlotController;
3
4
  size: 'lg' | 'sm';
4
5
  orientation: 'horizontal' | 'vertical';
5
6
  disabled: boolean;
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.HKGBSLKX.js";import"../../chunks/chunk.HE2LNCWW.js";import"../../chunks/chunk.5ZILM4TA.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.5AILWWY2.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.HT2MRC4Z.js";import"../../chunks/chunk.HE2LNCWW.js";import"../../chunks/chunk.5ZILM4TA.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.6HO6CE4A.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.5AILWWY2.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -6,6 +6,7 @@ export default class SdStepGroup extends SolidElement {
6
6
  orientation: 'horizontal' | 'vertical';
7
7
  activeStep: number;
8
8
  notInteractive: boolean;
9
+ label: string;
9
10
  connectedCallback(): void;
10
11
  updateSize(): void;
11
12
  updateOrientation(): void;
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.NLOKZURD.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.5AILWWY2.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.NQXQB7LN.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.5AILWWY2.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -13748,6 +13748,16 @@
13748
13748
  "attribute": "not-interactive",
13749
13749
  "reflects": true
13750
13750
  },
13751
+ {
13752
+ "kind": "field",
13753
+ "name": "label",
13754
+ "type": {
13755
+ "text": "string"
13756
+ },
13757
+ "default": "''",
13758
+ "description": "A label to use in the step-group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
13759
+ "attribute": "label"
13760
+ },
13751
13761
  {
13752
13762
  "kind": "method",
13753
13763
  "name": "setActiveStep",
@@ -13850,6 +13860,15 @@
13850
13860
  "description": "Determines if the step-group is not interactive.",
13851
13861
  "fieldName": "notInteractive"
13852
13862
  },
13863
+ {
13864
+ "name": "label",
13865
+ "type": {
13866
+ "text": "string"
13867
+ },
13868
+ "default": "''",
13869
+ "description": "A label to use in the step-group. This won't be displayed on the screen, but it will be announced by assistive\ndevices when interacting with the control and is strongly recommended.",
13870
+ "fieldName": "label"
13871
+ },
13853
13872
  {
13854
13873
  "name": "dir",
13855
13874
  "type": {
@@ -16991,7 +17010,7 @@
16991
17010
  "package": {
16992
17011
  "name": "@solid-design-system/components",
16993
17012
  "description": "Solid Design System: Components",
16994
- "version": "4.3.0",
17013
+ "version": "4.4.0",
16995
17014
  "author": "Union Investment",
16996
17015
  "homepage": "https://solid-design-system.fe.union-investment.de/docs/",
16997
17016
  "license": "MIT"