@solid-design-system/components 5.13.5 → 5.13.6

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 (263) hide show
  1. package/cdn/chunks/chunk.PS5Q6QLR.js +1 -0
  2. package/cdn/components/tab-group/tab-group.d.ts +2 -0
  3. package/cdn/components/tab-group/tab-group.js +1 -1
  4. package/cdn/custom-elements.json +1 -1
  5. package/cdn/solid-components.bundle.js +14 -14
  6. package/cdn/solid-components.iife.js +13 -13
  7. package/cdn/solid-components.js +1 -1
  8. package/cdn/web-types.json +1 -1
  9. package/cdn-versioned/chunks/chunk.2AESCEHJ.js +1 -1
  10. package/cdn-versioned/chunks/chunk.2HJAPXID.js +1 -1
  11. package/cdn-versioned/chunks/chunk.2IXCDCBI.js +1 -1
  12. package/cdn-versioned/chunks/chunk.2KNDUWBP.js +1 -1
  13. package/cdn-versioned/chunks/chunk.3ED5FZPY.js +1 -1
  14. package/cdn-versioned/chunks/chunk.3O5CSFK6.js +1 -1
  15. package/cdn-versioned/chunks/chunk.54FIHRIN.js +1 -1
  16. package/cdn-versioned/chunks/chunk.6HLS5XU2.js +1 -1
  17. package/cdn-versioned/chunks/chunk.6XXF5G5C.js +1 -1
  18. package/cdn-versioned/chunks/chunk.6YBQX3MQ.js +1 -1
  19. package/cdn-versioned/chunks/chunk.7HYHC4VH.js +1 -1
  20. package/cdn-versioned/chunks/chunk.7IH2NLBX.js +1 -1
  21. package/cdn-versioned/chunks/chunk.7INMWOUZ.js +1 -1
  22. package/cdn-versioned/chunks/chunk.7JI2ZUD5.js +1 -1
  23. package/cdn-versioned/chunks/chunk.7WMTV6I4.js +1 -1
  24. package/cdn-versioned/chunks/chunk.A25LJOFY.js +1 -1
  25. package/cdn-versioned/chunks/chunk.BBD6RMZH.js +1 -1
  26. package/cdn-versioned/chunks/chunk.BUD2EAST.js +1 -1
  27. package/cdn-versioned/chunks/chunk.C5W6LZD4.js +1 -1
  28. package/cdn-versioned/chunks/chunk.C6JGWWSD.js +1 -1
  29. package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
  30. package/cdn-versioned/chunks/chunk.CQ4QBZ5J.js +4 -4
  31. package/cdn-versioned/chunks/chunk.CQYFUSYG.js +1 -1
  32. package/cdn-versioned/chunks/chunk.CSSD2EF7.js +1 -1
  33. package/cdn-versioned/chunks/chunk.CZIBZYQR.js +1 -1
  34. package/cdn-versioned/chunks/chunk.DX3YFLMK.js +1 -1
  35. package/cdn-versioned/chunks/chunk.EAYWBCE7.js +1 -1
  36. package/cdn-versioned/chunks/chunk.EIYIMNPT.js +1 -1
  37. package/cdn-versioned/chunks/chunk.ENZOPZGC.js +1 -1
  38. package/cdn-versioned/chunks/chunk.F6VUPTBP.js +1 -1
  39. package/cdn-versioned/chunks/chunk.FZHHVY6Y.js +1 -1
  40. package/cdn-versioned/chunks/chunk.HAL2ARMM.js +1 -1
  41. package/cdn-versioned/chunks/chunk.HLGRDYA3.js +1 -1
  42. package/cdn-versioned/chunks/chunk.IP26UT3O.js +1 -1
  43. package/cdn-versioned/chunks/chunk.ITMQUAG2.js +1 -1
  44. package/cdn-versioned/chunks/chunk.IUTS4ODJ.js +1 -1
  45. package/cdn-versioned/chunks/chunk.IXHLVTCE.js +1 -1
  46. package/cdn-versioned/chunks/chunk.JEBG27AS.js +1 -1
  47. package/cdn-versioned/chunks/chunk.LD75GZVE.js +1 -1
  48. package/cdn-versioned/chunks/chunk.LOVOZACS.js +1 -1
  49. package/cdn-versioned/chunks/chunk.NHN2NTOB.js +1 -1
  50. package/cdn-versioned/chunks/chunk.NS75T6AP.js +1 -1
  51. package/cdn-versioned/chunks/chunk.OAVL5PS2.js +1 -1
  52. package/cdn-versioned/chunks/chunk.OQTFQZQD.js +1 -1
  53. package/cdn-versioned/chunks/chunk.OTZWFXC6.js +1 -1
  54. package/cdn-versioned/chunks/chunk.PEJM3PLJ.js +1 -1
  55. package/cdn-versioned/chunks/chunk.PJZCF7M2.js +1 -1
  56. package/cdn-versioned/chunks/chunk.PS5Q6QLR.js +1 -0
  57. package/cdn-versioned/chunks/chunk.RRVZNEFJ.js +1 -1
  58. package/cdn-versioned/chunks/chunk.RU2MXVG3.js +1 -1
  59. package/cdn-versioned/chunks/chunk.SM5KISBS.js +1 -1
  60. package/cdn-versioned/chunks/chunk.STQUP635.js +1 -1
  61. package/cdn-versioned/chunks/chunk.UBO3W67S.js +1 -1
  62. package/cdn-versioned/chunks/chunk.VMPJQLWX.js +1 -1
  63. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  64. package/cdn-versioned/chunks/chunk.WQU7XRRP.js +1 -1
  65. package/cdn-versioned/chunks/chunk.XGXHVRYA.js +1 -1
  66. package/cdn-versioned/chunks/chunk.Y77KMBSV.js +4 -4
  67. package/cdn-versioned/chunks/chunk.YGTSBRUS.js +1 -1
  68. package/cdn-versioned/chunks/chunk.YI3Y536X.js +1 -1
  69. package/cdn-versioned/chunks/chunk.ZWO2DZQK.js +2 -2
  70. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  71. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  72. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  73. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  74. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  75. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  76. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  77. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  78. package/cdn-versioned/components/button/button.d.ts +1 -1
  79. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  80. package/cdn-versioned/components/carousel/carousel.d.ts +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 +1 -1
  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/loader/loader.d.ts +1 -1
  97. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  98. package/cdn-versioned/components/menu/menu.d.ts +1 -1
  99. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  100. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  101. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  102. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  103. package/cdn-versioned/components/option/option.d.ts +1 -1
  104. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  105. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  106. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  107. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  108. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  109. package/cdn-versioned/components/range/range.d.ts +1 -1
  110. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  111. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  112. package/cdn-versioned/components/select/select.d.ts +1 -1
  113. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  114. package/cdn-versioned/components/step/step.d.ts +1 -1
  115. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  116. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  117. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  118. package/cdn-versioned/components/tab-group/tab-group.d.ts +3 -1
  119. package/cdn-versioned/components/tab-group/tab-group.js +1 -1
  120. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  121. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  122. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  123. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  124. package/cdn-versioned/components/video/video.d.ts +1 -1
  125. package/cdn-versioned/custom-elements.json +238 -238
  126. package/cdn-versioned/internal/form.js +3 -3
  127. package/cdn-versioned/solid-components.bundle.js +16 -16
  128. package/cdn-versioned/solid-components.css +2 -2
  129. package/cdn-versioned/solid-components.iife.js +16 -16
  130. package/cdn-versioned/solid-components.js +1 -1
  131. package/cdn-versioned/vscode.html-custom-data.json +91 -91
  132. package/cdn-versioned/web-types.json +154 -154
  133. package/dist/chunks/{chunk.SLDPP5NU.js → chunk.WJAVDZC4.js} +24 -2
  134. package/dist/components/tab-group/tab-group.d.ts +2 -0
  135. package/dist/components/tab-group/tab-group.js +2 -1
  136. package/dist/custom-elements.json +1 -1
  137. package/dist/solid-components.js +1 -1
  138. package/dist/web-types.json +1 -1
  139. package/dist-versioned/chunks/chunk.22XVLL4U.js +1 -1
  140. package/dist-versioned/chunks/chunk.2CWYTGUF.js +26 -26
  141. package/dist-versioned/chunks/chunk.2USKLT7E.js +6 -6
  142. package/dist-versioned/chunks/chunk.33JOPIXE.js +24 -24
  143. package/dist-versioned/chunks/chunk.3H34BS4K.js +1 -1
  144. package/dist-versioned/chunks/chunk.3HHT2OQH.js +12 -12
  145. package/dist-versioned/chunks/chunk.3IWFEPZF.js +4 -4
  146. package/dist-versioned/chunks/chunk.3P4CWN6B.js +3 -3
  147. package/dist-versioned/chunks/chunk.4GOBDXSS.js +1 -1
  148. package/dist-versioned/chunks/chunk.4JS6YQGE.js +3 -3
  149. package/dist-versioned/chunks/chunk.5DBXOC2V.js +1 -1
  150. package/dist-versioned/chunks/chunk.5PBRPBRT.js +5 -5
  151. package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
  152. package/dist-versioned/chunks/chunk.6P3RKSUO.js +1 -1
  153. package/dist-versioned/chunks/chunk.7AKLVTJJ.js +3 -3
  154. package/dist-versioned/chunks/chunk.7L25CLNU.js +2 -2
  155. package/dist-versioned/chunks/chunk.A5Z4VKXC.js +2 -2
  156. package/dist-versioned/chunks/chunk.COXPSVWJ.js +3 -3
  157. package/dist-versioned/chunks/chunk.CURD6RBZ.js +6 -6
  158. package/dist-versioned/chunks/chunk.CZOZQ3VO.js +1 -1
  159. package/dist-versioned/chunks/chunk.CZXEOVSI.js +4 -4
  160. package/dist-versioned/chunks/chunk.D4DTFLNK.js +1 -1
  161. package/dist-versioned/chunks/chunk.DG2EQDME.js +2 -2
  162. package/dist-versioned/chunks/chunk.E3JOKBV7.js +2 -2
  163. package/dist-versioned/chunks/chunk.EQ6ES4D4.js +2 -2
  164. package/dist-versioned/chunks/chunk.HDOXCV5R.js +2 -2
  165. package/dist-versioned/chunks/chunk.I34ENUW2.js +2 -2
  166. package/dist-versioned/chunks/chunk.I55X5D52.js +2 -2
  167. package/dist-versioned/chunks/chunk.K2A6FAQM.js +2 -2
  168. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  169. package/dist-versioned/chunks/chunk.KGO6SGAI.js +2 -2
  170. package/dist-versioned/chunks/chunk.KTW4YKIN.js +2 -2
  171. package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
  172. package/dist-versioned/chunks/chunk.L3CJJWQH.js +5 -5
  173. package/dist-versioned/chunks/chunk.LJGEETGS.js +2 -2
  174. package/dist-versioned/chunks/chunk.LVKMRGF7.js +2 -2
  175. package/dist-versioned/chunks/chunk.NIOP54NF.js +1 -1
  176. package/dist-versioned/chunks/chunk.NIVOUKTJ.js +5 -5
  177. package/dist-versioned/chunks/chunk.OKJADCUF.js +3 -3
  178. package/dist-versioned/chunks/chunk.PMP3SJSG.js +4 -4
  179. package/dist-versioned/chunks/chunk.R6QYQOQJ.js +1 -1
  180. package/dist-versioned/chunks/chunk.R7SUBHGP.js +1 -1
  181. package/dist-versioned/chunks/chunk.S4BMH7I6.js +3 -3
  182. package/dist-versioned/chunks/chunk.S4W23ZFB.js +2 -2
  183. package/dist-versioned/chunks/chunk.SGY6Q5FM.js +1 -1
  184. package/dist-versioned/chunks/chunk.SVC3IWAA.js +2 -2
  185. package/dist-versioned/chunks/chunk.TB76LMSK.js +11 -11
  186. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  187. package/dist-versioned/chunks/chunk.UMJTGYQ7.js +3 -3
  188. package/dist-versioned/chunks/chunk.VEBQYO6P.js +1 -1
  189. package/dist-versioned/chunks/chunk.VISHTUP5.js +1 -1
  190. package/dist-versioned/chunks/chunk.VNGVFWX6.js +1 -1
  191. package/dist-versioned/chunks/chunk.VPTCQBGB.js +5 -5
  192. package/dist-versioned/chunks/chunk.VPU4YXCW.js +2 -2
  193. package/dist-versioned/chunks/chunk.W2L2LAQR.js +12 -12
  194. package/dist-versioned/chunks/{chunk.SLDPP5NU.js → chunk.WJAVDZC4.js} +37 -15
  195. package/dist-versioned/chunks/chunk.WMLESPZB.js +8 -8
  196. package/dist-versioned/chunks/chunk.XHOP5USY.js +1 -1
  197. package/dist-versioned/chunks/chunk.YGJNZUTI.js +3 -3
  198. package/dist-versioned/chunks/chunk.YTLWADMX.js +1 -1
  199. package/dist-versioned/chunks/chunk.ZSG33GER.js +6 -6
  200. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  201. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  202. package/dist-versioned/components/animation/animation.d.ts +1 -1
  203. package/dist-versioned/components/audio/audio.d.ts +1 -1
  204. package/dist-versioned/components/badge/badge.d.ts +1 -1
  205. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  206. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  207. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  208. package/dist-versioned/components/button/button.d.ts +1 -1
  209. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  210. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  211. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  212. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  213. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  214. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  215. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  216. package/dist-versioned/components/divider/divider.d.ts +1 -1
  217. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  218. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  219. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  220. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  221. package/dist-versioned/components/header/header.d.ts +1 -1
  222. package/dist-versioned/components/icon/icon.d.ts +1 -1
  223. package/dist-versioned/components/include/include.d.ts +1 -1
  224. package/dist-versioned/components/input/input.d.ts +1 -1
  225. package/dist-versioned/components/link/link.d.ts +1 -1
  226. package/dist-versioned/components/loader/loader.d.ts +1 -1
  227. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  228. package/dist-versioned/components/menu/menu.d.ts +1 -1
  229. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  230. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  231. package/dist-versioned/components/notification/notification.d.ts +1 -1
  232. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  233. package/dist-versioned/components/option/option.d.ts +1 -1
  234. package/dist-versioned/components/popup/popup.d.ts +1 -1
  235. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  236. package/dist-versioned/components/radio/radio.d.ts +1 -1
  237. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  238. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  239. package/dist-versioned/components/range/range.d.ts +1 -1
  240. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  241. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  242. package/dist-versioned/components/select/select.d.ts +1 -1
  243. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  244. package/dist-versioned/components/step/step.d.ts +1 -1
  245. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  246. package/dist-versioned/components/switch/switch.d.ts +1 -1
  247. package/dist-versioned/components/tab/tab.d.ts +1 -1
  248. package/dist-versioned/components/tab-group/tab-group.d.ts +3 -1
  249. package/dist-versioned/components/tab-group/tab-group.js +2 -1
  250. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  251. package/dist-versioned/components/tag/tag.d.ts +1 -1
  252. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  253. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  254. package/dist-versioned/components/video/video.d.ts +1 -1
  255. package/dist-versioned/custom-elements.json +238 -238
  256. package/dist-versioned/internal/form.js +3 -3
  257. package/dist-versioned/solid-components.css +2 -2
  258. package/dist-versioned/solid-components.js +1 -1
  259. package/dist-versioned/vscode.html-custom-data.json +91 -91
  260. package/dist-versioned/web-types.json +154 -154
  261. package/package.json +1 -1
  262. package/cdn/chunks/chunk.JECBERJ6.js +0 -1
  263. package/cdn-versioned/chunks/chunk.JECBERJ6.js +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@solid-design-system/components",
3
3
  "description": "Solid Design System: Components",
4
- "version": "5.13.5",
4
+ "version": "5.13.6",
5
5
  "homepage": "https://solid-design-system.fe.union-investment.de/docs/",
6
6
  "author": "Union Investment",
7
7
  "license": "MIT",
@@ -1 +0,0 @@
1
- import{c as d}from"./chunk.3L472FD4.js";import{a as c}from"./chunk.26V4EXHB.js";import{a as y}from"./chunk.GHC63SXL.js";import{a as m,b as g,c as v,d as h,h as u}from"./chunk.PJZCF7M2.js";import{b as f,e as b}from"./chunk.UWPDCU52.js";import{a as p,e as l}from"./chunk.TJOCV4DC.js";var r=class extends u{constructor(){super(...arguments);this.localize=new y(this);this.tabs=[];this.panels=[];this.hasScrollControls=!1;this.variant="default";this.activation="auto"}connectedCallback(){let t=Promise.all([customElements.whenDefined("sd-tab"),customElements.whenDefined("sd-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.updateScrollControls(),this.repositionIndicator()}),this.mutationObserver=new MutationObserver(s=>{s.some(e=>!["aria-labelledby","aria-controls"].includes(e.attributeName))&&setTimeout(()=>this.setAriaLabels()),s.some(e=>e.attributeName==="disabled")&&this.syncTabsAndPanels()}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),t.then(()=>{new IntersectionObserver((e,o)=>{var i;e[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab((i=this.activeTab)!=null?i:this.tabs[0],{emitEvents:!1}),o.unobserve(e[0].target))}).observe(this.tabGroup)})})}disconnectedCallback(){var t;this.mutationObserver.disconnect(),this.nav&&((t=this.resizeObserver)==null||t.unobserve(this.nav))}getAllTabs(t={includeDisabled:!0}){let s=this.shadowRoot.querySelector('slot[name="nav"]');return Array.from(s.assignedElements()).map(e=>e.tagName.toLocaleLowerCase()==="sd-tab"?e:e.querySelector("sd-tab")).filter(e=>e&&t.includeDisabled?e.tagName.toLowerCase()==="sd-tab":e.tagName.toLowerCase()==="sd-tab"&&!e.disabled)}getAllPanels(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-tab-panel")}getActiveTab(){return this.tabs.find(t=>t.matches(":focus"))}handleClick(t){let e=t.target.closest("sd-tab");(e==null?void 0:e.closest("sd-tab-group"))===this&&e!==null&&this.setActiveTab(e,{scrollBehavior:"smooth"})}handleKeyDown(t){let e=t.target.closest("sd-tab");if((e==null?void 0:e.closest("sd-tab-group"))===this){if(["Enter"," "].includes(t.key)&&e!==null&&(this.setActiveTab(e,{scrollBehavior:"smooth"}),t.preventDefault()),["Tab"].includes(t.key)){let i=this.tabs.indexOf(this.getActiveTab()),n=this.tabs[i+1];e!==null&&n&&d(n,this.nav,"horizontal")}if(["Shift","Tab"].includes(t.key)){let i=this.tabs.indexOf(this.getActiveTab()),n=this.tabs[i-1];e!==null&&n&&d(n,this.nav,"horizontal")}if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){let i=this.tabs.find(a=>a.matches(":focus")),n=this.localize.dir()==="rtl";if((i==null?void 0:i.tagName.toLowerCase())==="sd-tab"){let a=this.tabs.indexOf(i);t.key==="Home"?a=0:t.key==="End"?a=this.tabs.length-1:t.key===(n?"ArrowRight":"ArrowLeft")||t.key==="ArrowUp"?a--:(t.key===(n?"ArrowLeft":"ArrowRight")||t.key==="ArrowDown")&&a++,a<0&&(a=this.tabs.length-1),a>this.tabs.length-1&&(a=0),this.tabs[a].focus({preventScroll:!0}),this.activation==="auto"&&this.setActiveTab(this.tabs[a],{scrollBehavior:"smooth"}),d(this.tabs[a],this.nav,"horizontal"),t.preventDefault()}}}}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,s){if(s=p({emitEvents:!0,scrollBehavior:"auto"},s),t!==this.activeTab&&!t.disabled&&!t.visuallyDisabled){let e=this.activeTab;this.activeTab=t,this.tabs.map(o=>o.active=o===this.activeTab),this.panels.map(o=>{var i;return o.active=o.name===((i=this.activeTab)==null?void 0:i.panel)}),this.repositionIndicator(),d(this.activeTab,this.nav,"horizontal",s.scrollBehavior),s.emitEvents&&(e&&this.emit("sd-tab-hide",{detail:{name:e.panel}}),this.emit("sd-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(t=>{let s=this.panels.find(e=>e.name===t.panel);s&&t.setAttribute("aria-controls",s.getAttribute("id"))})}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.repositionIndicator(),this.panels.forEach(t=>{t.tabIndex=0}),this.updateComplete.then(()=>this.updateScrollControls()),this.tabs.length!==0&&this.tabs[0].variant==="container"&&(this.variant="container")}updateScrollControls(){this.hasScrollControls=this.nav.scrollWidth>this.nav.clientWidth}async repositionIndicator(){await this.updateComplete;let t=this.activeTab,s=this.indicator,e=this.tabsContainer;if(!t||!s||!e||t.variant==="container")return;let o=t.getBoundingClientRect(),i=e.getBoundingClientRect(),n=getComputedStyle(e).justifyContent==="center",a=i.left+i.width/2,w=o.left+o.width/2,T=t.offsetWidth,A=n?w-a:o.left-i.left;s.style.width=`${T}px`,s.style.transform=`translateX(${A}px)`}show(t){let s=this.tabs.find(e=>e.panel===t);s&&this.setActiveTab(s,{scrollBehavior:"smooth"})}render(){var s;let t=this.localize.dir()==="rtl";return b`<div part="base" class="${c("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${c(this.hasScrollControls&&"relative py-0 px-12")}">${this.hasScrollControls?b`<button part="scroll-button--start" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${c("sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10",this.localize.dir()==="rtl"&&"left-auto right-0")}" @click="${this.handleScrollToStart}"><sd-icon library="_internal" name="${t?"chevron-up":"chevron-down"}" label="previous" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-icon></button>`:""}<div part="scroll-container" class="flex overflow-x-auto focus-visible:focus-outline !outline-offset-0"><div part="tabs" class="${c("flex flex-auto relative flex-row")}" role="tablist">${((s=this.activeTab)==null?void 0:s.variant)!=="container"?b`<div part="active-tab-indicator" id="indicator" class="absolute h-1 bg-accent bottom-0 transition-[transform,width] duration-medium ease-in-out z-30"></div>`:""}<div part="separation" class="border-neutral-400 absolute w-full h-0.25 bottom-0 border-b z-10"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls?b`<button part="scroll-button--end" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${c("sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10",this.localize.dir()==="rtl"&&"right-auto left-0")}" @click="${this.handleScrollToEnd}"><sd-icon library="_internal" name="${t?"chevron-down":"chevron-up"}" label="next" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-icon></button>`:""}</div><slot part="body" class="${c("block auto py-8 px-6",this.variant==="container"&&"border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`}};r.styles=[...u.styles,f`:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}::slotted(sd-tab-panel){--padding:1rem 0}::slotted(sd-tab-panel:focus-visible){outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}`],l([h("[part=base]")],r.prototype,"tabGroup",2),l([h("[part=body]")],r.prototype,"body",2),l([h("[part=scroll-container]")],r.prototype,"nav",2),l([h("[part=active-tab-indicator]")],r.prototype,"indicator",2),l([h('[part="tabs"]')],r.prototype,"tabsContainer",2),l([v()],r.prototype,"hasScrollControls",2),l([v()],r.prototype,"variant",2),l([g({type:String,reflect:!0})],r.prototype,"activation",2),r=l([m("sd-tab-group")],r);export{r as a};
@@ -1 +0,0 @@
1
- import{c as d}from"./chunk.3L472FD4.js";import{a as c}from"./chunk.26V4EXHB.js";import{a as y}from"./chunk.GHC63SXL.js";import{a as m,b as g,c as v,d as h,h as u}from"./chunk.PJZCF7M2.js";import{b as f,e as b}from"./chunk.UWPDCU52.js";import{a as p,e as l}from"./chunk.TJOCV4DC.js";var r=class extends u{constructor(){super(...arguments);this.localize=new y(this);this.tabs=[];this.panels=[];this.hasScrollControls=!1;this.variant="default";this.activation="auto"}connectedCallback(){let t=Promise.all([customElements.whenDefined("sd-5-13-5-tab"),customElements.whenDefined("sd-5-13-5-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.updateScrollControls(),this.repositionIndicator()}),this.mutationObserver=new MutationObserver(s=>{s.some(e=>!["aria-labelledby","aria-controls"].includes(e.attributeName))&&setTimeout(()=>this.setAriaLabels()),s.some(e=>e.attributeName==="disabled")&&this.syncTabsAndPanels()}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),t.then(()=>{new IntersectionObserver((e,o)=>{var i;e[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab((i=this.activeTab)!=null?i:this.tabs[0],{emitEvents:!1}),o.unobserve(e[0].target))}).observe(this.tabGroup)})})}disconnectedCallback(){var t;this.mutationObserver.disconnect(),this.nav&&((t=this.resizeObserver)==null||t.unobserve(this.nav))}getAllTabs(t={includeDisabled:!0}){let s=this.shadowRoot.querySelector('slot[name="nav"]');return Array.from(s.assignedElements()).map(e=>e.tagName.toLocaleLowerCase()==="sd-5-13-5-tab"?e:e.querySelector("sd-5-13-5-tab")).filter(e=>e&&t.includeDisabled?e.tagName.toLowerCase()==="sd-5-13-5-tab":e.tagName.toLowerCase()==="sd-5-13-5-tab"&&!e.disabled)}getAllPanels(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-5-13-5-tab-panel")}getActiveTab(){return this.tabs.find(t=>t.matches(":focus"))}handleClick(t){let e=t.target.closest("sd-5-13-5-tab");(e==null?void 0:e.closest("sd-5-13-5-tab-group"))===this&&e!==null&&this.setActiveTab(e,{scrollBehavior:"smooth"})}handleKeyDown(t){let e=t.target.closest("sd-5-13-5-tab");if((e==null?void 0:e.closest("sd-5-13-5-tab-group"))===this){if(["Enter"," "].includes(t.key)&&e!==null&&(this.setActiveTab(e,{scrollBehavior:"smooth"}),t.preventDefault()),["Tab"].includes(t.key)){let i=this.tabs.indexOf(this.getActiveTab()),n=this.tabs[i+1];e!==null&&n&&d(n,this.nav,"horizontal")}if(["Shift","Tab"].includes(t.key)){let i=this.tabs.indexOf(this.getActiveTab()),n=this.tabs[i-1];e!==null&&n&&d(n,this.nav,"horizontal")}if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){let i=this.tabs.find(a=>a.matches(":focus")),n=this.localize.dir()==="rtl";if((i==null?void 0:i.tagName.toLowerCase())==="sd-5-13-5-tab"){let a=this.tabs.indexOf(i);t.key==="Home"?a=0:t.key==="End"?a=this.tabs.length-1:t.key===(n?"ArrowRight":"ArrowLeft")||t.key==="ArrowUp"?a--:(t.key===(n?"ArrowLeft":"ArrowRight")||t.key==="ArrowDown")&&a++,a<0&&(a=this.tabs.length-1),a>this.tabs.length-1&&(a=0),this.tabs[a].focus({preventScroll:!0}),this.activation==="auto"&&this.setActiveTab(this.tabs[a],{scrollBehavior:"smooth"}),d(this.tabs[a],this.nav,"horizontal"),t.preventDefault()}}}}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,s){if(s=p({emitEvents:!0,scrollBehavior:"auto"},s),t!==this.activeTab&&!t.disabled&&!t.visuallyDisabled){let e=this.activeTab;this.activeTab=t,this.tabs.map(o=>o.active=o===this.activeTab),this.panels.map(o=>{var i;return o.active=o.name===((i=this.activeTab)==null?void 0:i.panel)}),this.repositionIndicator(),d(this.activeTab,this.nav,"horizontal",s.scrollBehavior),s.emitEvents&&(e&&this.emit("sd-tab-hide",{detail:{name:e.panel}}),this.emit("sd-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(t=>{let s=this.panels.find(e=>e.name===t.panel);s&&t.setAttribute("aria-controls",s.getAttribute("id"))})}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.repositionIndicator(),this.panels.forEach(t=>{t.tabIndex=0}),this.updateComplete.then(()=>this.updateScrollControls()),this.tabs.length!==0&&this.tabs[0].variant==="container"&&(this.variant="container")}updateScrollControls(){this.hasScrollControls=this.nav.scrollWidth>this.nav.clientWidth}async repositionIndicator(){await this.updateComplete;let t=this.activeTab,s=this.indicator,e=this.tabsContainer;if(!t||!s||!e||t.variant==="container")return;let o=t.getBoundingClientRect(),i=e.getBoundingClientRect(),n=getComputedStyle(e).justifyContent==="center",a=i.left+i.width/2,w=o.left+o.width/2,T=t.offsetWidth,A=n?w-a:o.left-i.left;s.style.width=`${T}px`,s.style.transform=`translateX(${A}px)`}show(t){let s=this.tabs.find(e=>e.panel===t);s&&this.setActiveTab(s,{scrollBehavior:"smooth"})}render(){var s;let t=this.localize.dir()==="rtl";return b`<div part="base" class="${c("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${c(this.hasScrollControls&&"relative py-0 px-12")}">${this.hasScrollControls?b`<button part="scroll-button--start" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${c("sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10",this.localize.dir()==="rtl"&&"left-auto right-0")}" @click="${this.handleScrollToStart}"><sd-5-13-5-icon library="_internal" name="${t?"chevron-up":"chevron-down"}" label="previous" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-5-13-5-icon></button>`:""}<div part="scroll-container" class="flex overflow-x-auto focus-visible:focus-outline !outline-offset-0"><div part="tabs" class="${c("flex flex-auto relative flex-row")}" role="tablist">${((s=this.activeTab)==null?void 0:s.variant)!=="container"?b`<div part="active-tab-indicator" id="indicator" class="absolute h-1 bg-accent bottom-0 transition-[transform,width] duration-medium ease-in-out z-30"></div>`:""}<div part="separation" class="border-neutral-400 absolute w-full h-0.25 bottom-0 border-b z-10"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls?b`<button part="scroll-button--end" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${c("sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10",this.localize.dir()==="rtl"&&"right-auto left-0")}" @click="${this.handleScrollToEnd}"><sd-5-13-5-icon library="_internal" name="${t?"chevron-down":"chevron-up"}" label="next" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-5-13-5-icon></button>`:""}</div><slot part="body" class="${c("block auto py-8 px-6",this.variant==="container"&&"border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`}};r.styles=[...u.styles,f`:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}::slotted(sd-5-13-5-tab-panel){--padding:1rem 0}::slotted(sd-5-13-5-tab-panel:focus-visible){outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}`],l([h("[part=base]")],r.prototype,"tabGroup",2),l([h("[part=body]")],r.prototype,"body",2),l([h("[part=scroll-container]")],r.prototype,"nav",2),l([h("[part=active-tab-indicator]")],r.prototype,"indicator",2),l([h('[part="tabs"]')],r.prototype,"tabsContainer",2),l([v()],r.prototype,"hasScrollControls",2),l([v()],r.prototype,"variant",2),l([g({type:String,reflect:!0})],r.prototype,"activation",2),r=l([m("sd-5-13-5-tab-group")],r);export{r as a};