@solid-design-system/components 5.15.5 → 5.15.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.
- package/cdn/chunks/chunk.6NSE3DZZ.js +11 -0
- package/cdn/components/carousel/carousel.js +1 -1
- package/cdn/custom-elements.json +1 -1
- package/cdn/solid-components.bundle.js +1 -1
- package/cdn/solid-components.iife.js +1 -1
- package/cdn/solid-components.js +1 -1
- package/cdn/web-types.json +1 -1
- package/cdn-versioned/chunks/chunk.2HR2JHBL.js +1 -1
- package/cdn-versioned/chunks/chunk.35XMPPY5.js +1 -1
- package/cdn-versioned/chunks/chunk.3OGPT34F.js +1 -1
- package/cdn-versioned/chunks/chunk.4OSXAE67.js +1 -1
- package/cdn-versioned/chunks/chunk.4VGPLUHG.js +1 -1
- package/cdn-versioned/chunks/chunk.5FGVDYO4.js +1 -1
- package/cdn-versioned/chunks/chunk.5UU57WGX.js +1 -1
- package/cdn-versioned/chunks/chunk.5YR2BW6Z.js +1 -1
- package/cdn-versioned/chunks/chunk.6DD53IIK.js +1 -1
- package/cdn-versioned/chunks/chunk.6DEKOOVF.js +1 -1
- package/cdn-versioned/chunks/chunk.6DJJYTKZ.js +2 -2
- package/cdn-versioned/chunks/chunk.6LY4CQS5.js +1 -1
- package/cdn-versioned/chunks/chunk.6NSE3DZZ.js +11 -0
- package/cdn-versioned/chunks/chunk.77KBPY6M.js +1 -1
- package/cdn-versioned/chunks/chunk.7GJAULJA.js +1 -1
- package/cdn-versioned/chunks/chunk.7JV32P5Q.js +1 -1
- package/cdn-versioned/chunks/chunk.7ZT7XD7H.js +1 -1
- package/cdn-versioned/chunks/chunk.AVWCANBI.js +1 -1
- package/cdn-versioned/chunks/chunk.BGKGDPBP.js +1 -1
- package/cdn-versioned/chunks/chunk.C2K5FJG6.js +1 -1
- package/cdn-versioned/chunks/chunk.CE5ZCTLG.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.CNOQLSAS.js +4 -4
- package/cdn-versioned/chunks/chunk.DKTLAKVD.js +1 -1
- package/cdn-versioned/chunks/chunk.EBQAL4SG.js +1 -1
- package/cdn-versioned/chunks/chunk.EC63I62M.js +1 -1
- package/cdn-versioned/chunks/chunk.ENG4CGOQ.js +1 -1
- package/cdn-versioned/chunks/chunk.EWX245UT.js +1 -1
- package/cdn-versioned/chunks/chunk.GB43ZI2M.js +1 -1
- package/cdn-versioned/chunks/chunk.GC5HUEMT.js +4 -4
- package/cdn-versioned/chunks/chunk.GJAPEOYB.js +1 -1
- package/cdn-versioned/chunks/chunk.GVD7DPUX.js +1 -1
- package/cdn-versioned/chunks/chunk.HVSHE3SX.js +1 -1
- package/cdn-versioned/chunks/chunk.IHKACSKZ.js +1 -1
- package/cdn-versioned/chunks/chunk.IQ4XSBN6.js +1 -1
- package/cdn-versioned/chunks/chunk.JGGJ7DHB.js +1 -1
- package/cdn-versioned/chunks/chunk.KD3QQ6GF.js +1 -1
- package/cdn-versioned/chunks/chunk.LFTOGDCS.js +1 -1
- package/cdn-versioned/chunks/chunk.LUHUBO4Y.js +1 -1
- package/cdn-versioned/chunks/chunk.LZDITSGD.js +1 -1
- package/cdn-versioned/chunks/chunk.M4XF4HY6.js +2 -2
- package/cdn-versioned/chunks/chunk.N4VPOI2K.js +1 -1
- package/cdn-versioned/chunks/chunk.O6KTLPCX.js +1 -1
- package/cdn-versioned/chunks/chunk.OLYZZSH7.js +1 -1
- package/cdn-versioned/chunks/chunk.OZ4RSXMQ.js +1 -1
- package/cdn-versioned/chunks/chunk.Q3NMER3S.js +1 -1
- package/cdn-versioned/chunks/chunk.QVM2KJMY.js +1 -1
- package/cdn-versioned/chunks/chunk.RBVN4ZNT.js +1 -1
- package/cdn-versioned/chunks/chunk.RCDKFEMZ.js +1 -1
- package/cdn-versioned/chunks/chunk.RPGHXS3H.js +1 -1
- package/cdn-versioned/chunks/chunk.RW5KPI4Z.js +1 -1
- package/cdn-versioned/chunks/chunk.RYTJY7J3.js +1 -1
- package/cdn-versioned/chunks/chunk.SBW3IQVN.js +1 -1
- package/cdn-versioned/chunks/chunk.SOCURUDK.js +1 -1
- package/cdn-versioned/chunks/chunk.UQR7JBGF.js +1 -1
- package/cdn-versioned/chunks/chunk.VPFGICJP.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WG74SLXL.js +1 -1
- package/cdn-versioned/chunks/chunk.WZDZQ6LB.js +1 -1
- package/cdn-versioned/chunks/chunk.X3PHFNB7.js +1 -1
- package/cdn-versioned/chunks/chunk.ZRK4JWRJ.js +1 -1
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/cdn-versioned/components/button/button.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.js +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
- package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/cdn-versioned/components/header/header.d.ts +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/input/input.d.ts +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/loader/loader.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/menu/menu.d.ts +1 -1
- package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/cdn-versioned/components/range/range.d.ts +1 -1
- package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +1 -1
- package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +238 -238
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +14 -14
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +14 -14
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +91 -91
- package/cdn-versioned/web-types.json +154 -154
- package/dist/chunks/{chunk.2AQLDT5K.js → chunk.Y62XG7YE.js} +17 -1
- package/dist/components/carousel/carousel.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/solid-components.js +4 -4
- package/dist/web-types.json +1 -1
- package/dist-versioned/chunks/chunk.257BQ5G3.js +2 -2
- package/dist-versioned/chunks/chunk.2TPMKDGR.js +1 -1
- package/dist-versioned/chunks/chunk.2Z23SMCT.js +2 -2
- package/dist-versioned/chunks/chunk.34JZVZG6.js +2 -2
- package/dist-versioned/chunks/chunk.45EBRFJS.js +1 -1
- package/dist-versioned/chunks/chunk.4CMRVAWO.js +6 -6
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6S62Y3SN.js +2 -2
- package/dist-versioned/chunks/chunk.A6F5UBS5.js +1 -1
- package/dist-versioned/chunks/chunk.AO5E3XWU.js +2 -2
- package/dist-versioned/chunks/chunk.C7HV6GLS.js +1 -1
- package/dist-versioned/chunks/chunk.CWOPJ6AE.js +2 -2
- package/dist-versioned/chunks/chunk.CYAZC6LN.js +3 -3
- package/dist-versioned/chunks/chunk.CZ5NVXDL.js +2 -2
- package/dist-versioned/chunks/chunk.DC7DGLHJ.js +1 -1
- package/dist-versioned/chunks/chunk.DT3ZL7JI.js +12 -12
- package/dist-versioned/chunks/chunk.ELPOH7TW.js +11 -11
- package/dist-versioned/chunks/chunk.F2UZ5T7G.js +5 -5
- package/dist-versioned/chunks/chunk.GCRESMVG.js +3 -3
- package/dist-versioned/chunks/chunk.HBX6PDXK.js +4 -4
- package/dist-versioned/chunks/chunk.IJ2YK4AW.js +4 -4
- package/dist-versioned/chunks/chunk.IJIJ7YVU.js +1 -1
- package/dist-versioned/chunks/chunk.ILB62SSN.js +3 -3
- package/dist-versioned/chunks/chunk.IYSGB2DQ.js +5 -5
- package/dist-versioned/chunks/chunk.J3K6PVKE.js +2 -2
- package/dist-versioned/chunks/chunk.JSVTNGBN.js +2 -2
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KENPSAUU.js +1 -1
- package/dist-versioned/chunks/chunk.KZLAI4DK.js +1 -1
- package/dist-versioned/chunks/chunk.LNGJFVKN.js +2 -2
- package/dist-versioned/chunks/chunk.M55G2PHP.js +2 -2
- package/dist-versioned/chunks/chunk.MDZHXHUH.js +3 -3
- package/dist-versioned/chunks/chunk.MML77VKL.js +2 -2
- package/dist-versioned/chunks/chunk.NR3OWI4Y.js +1 -1
- package/dist-versioned/chunks/chunk.NSCG7U5D.js +14 -14
- package/dist-versioned/chunks/chunk.NZFEW5QU.js +1 -1
- package/dist-versioned/chunks/chunk.PAGQREWS.js +4 -4
- package/dist-versioned/chunks/chunk.PUT4BQ4M.js +5 -5
- package/dist-versioned/chunks/chunk.PVFVGCKE.js +1 -1
- package/dist-versioned/chunks/chunk.QENOXTAG.js +26 -26
- package/dist-versioned/chunks/chunk.QGSAYCDJ.js +5 -5
- package/dist-versioned/chunks/chunk.QIWHR4XZ.js +1 -1
- package/dist-versioned/chunks/chunk.QW32IQ37.js +6 -6
- package/dist-versioned/chunks/chunk.RVZPI7LZ.js +8 -8
- package/dist-versioned/chunks/chunk.THYGJ3F3.js +2 -2
- package/dist-versioned/chunks/chunk.TUOYTASX.js +3 -3
- package/dist-versioned/chunks/chunk.U44CWPXO.js +3 -3
- package/dist-versioned/chunks/chunk.U6LFASA7.js +1 -1
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.WDWZFQ4X.js +2 -2
- package/dist-versioned/chunks/chunk.XCQC3F3H.js +3 -3
- package/dist-versioned/chunks/chunk.XIRK4KQ5.js +3 -3
- package/dist-versioned/chunks/chunk.XK3MBLKI.js +24 -24
- package/dist-versioned/chunks/chunk.XVNT7HIE.js +1 -1
- package/dist-versioned/chunks/chunk.XX3EFOOF.js +3 -3
- package/dist-versioned/chunks/chunk.XZDQNDB2.js +12 -12
- package/dist-versioned/chunks/{chunk.2AQLDT5K.js → chunk.Y62XG7YE.js} +23 -7
- package/dist-versioned/chunks/chunk.Y7TQJEA7.js +2 -2
- package/dist-versioned/chunks/chunk.YFRXAKBQ.js +1 -1
- package/dist-versioned/chunks/chunk.YXP3Q4D5.js +2 -2
- package/dist-versioned/chunks/chunk.ZNPGMZAM.js +1 -1
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/animation/animation.d.ts +1 -1
- package/dist-versioned/components/audio/audio.d.ts +1 -1
- package/dist-versioned/components/badge/badge.d.ts +1 -1
- package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/dist-versioned/components/button/button.d.ts +1 -1
- package/dist-versioned/components/button-group/button-group.d.ts +1 -1
- package/dist-versioned/components/carousel/carousel.d.ts +1 -1
- package/dist-versioned/components/carousel/carousel.js +1 -1
- package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +1 -1
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/loader/loader.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/menu/menu.d.ts +1 -1
- package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/dist-versioned/components/range/range.d.ts +1 -1
- package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +1 -1
- package/dist-versioned/components/spinner/spinner.d.ts +1 -1
- package/dist-versioned/components/step/step.d.ts +1 -1
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/tab/tab.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +238 -238
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +4 -4
- package/dist-versioned/vscode.html-custom-data.json +91 -91
- package/dist-versioned/web-types.json +154 -154
- package/package.json +1 -1
- package/cdn/chunks/chunk.G43QKY2C.js +0 -11
- package/cdn-versioned/chunks/chunk.G43QKY2C.js +0 -11
|
@@ -120,7 +120,23 @@ var SdCarousel = class extends SolidElement {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
async firstUpdated() {
|
|
123
|
-
|
|
123
|
+
const areSlidesReady = (() => {
|
|
124
|
+
const slides = this.getSlides({ excludeClones: false });
|
|
125
|
+
return slides.length > 0 && slides[0].getBoundingClientRect().width > 0;
|
|
126
|
+
})();
|
|
127
|
+
if (areSlidesReady) {
|
|
128
|
+
this.initializeSlides();
|
|
129
|
+
} else {
|
|
130
|
+
const initObserver = new IntersectionObserver((entries) => {
|
|
131
|
+
entries.forEach((entry) => {
|
|
132
|
+
if (entry.isIntersecting && entry.target.getBoundingClientRect().width > 0) {
|
|
133
|
+
this.initializeSlides();
|
|
134
|
+
initObserver.disconnect();
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
initObserver.observe(this);
|
|
139
|
+
}
|
|
124
140
|
this.mutationObserver = new MutationObserver(this.handleSlotChange);
|
|
125
141
|
this.mutationObserver.observe(this, { childList: true, subtree: false });
|
|
126
142
|
if (this.fade) {
|
|
@@ -20628,7 +20628,7 @@
|
|
|
20628
20628
|
"package": {
|
|
20629
20629
|
"name": "@solid-design-system/components",
|
|
20630
20630
|
"description": "Solid Design System: Components",
|
|
20631
|
-
"version": "5.15.
|
|
20631
|
+
"version": "5.15.6",
|
|
20632
20632
|
"author": "Union Investment",
|
|
20633
20633
|
"homepage": "https://solid-design-system.fe.union-investment.de/docs/",
|
|
20634
20634
|
"license": "MIT"
|
package/dist/solid-components.js
CHANGED
|
@@ -75,13 +75,13 @@ import {
|
|
|
75
75
|
import {
|
|
76
76
|
SdMapMarker
|
|
77
77
|
} from "./chunks/chunk.C7HV6GLS.js";
|
|
78
|
-
import {
|
|
79
|
-
SdMenu
|
|
80
|
-
} from "./chunks/chunk.MDZHXHUH.js";
|
|
81
78
|
import {
|
|
82
79
|
SdMenuItem
|
|
83
80
|
} from "./chunks/chunk.XX3EFOOF.js";
|
|
84
81
|
import "./chunks/chunk.KEJFWGZI.js";
|
|
82
|
+
import {
|
|
83
|
+
SdMenu
|
|
84
|
+
} from "./chunks/chunk.MDZHXHUH.js";
|
|
85
85
|
import {
|
|
86
86
|
SdNavigationItem
|
|
87
87
|
} from "./chunks/chunk.4CMRVAWO.js";
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
import "./chunks/chunk.ELPOH7TW.js";
|
|
146
146
|
import {
|
|
147
147
|
SdCarousel
|
|
148
|
-
} from "./chunks/chunk.
|
|
148
|
+
} from "./chunks/chunk.Y62XG7YE.js";
|
|
149
149
|
import "./chunks/chunk.W2YDXTG5.js";
|
|
150
150
|
import "./chunks/chunk.FNYEXUNK.js";
|
|
151
151
|
import "./chunks/chunk.NOWCQZBS.js";
|
package/dist/web-types.json
CHANGED
|
@@ -84,7 +84,7 @@ var SdLink = class extends SolidElement {
|
|
|
84
84
|
};
|
|
85
85
|
SdLink.styles = [
|
|
86
86
|
...SolidElement.styles,
|
|
87
|
-
css`::slotted(sd-5-15-
|
|
87
|
+
css`::slotted(sd-5-15-6-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-5-15-6-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-5-15-6-icon){font-size:var(--sd-font-size-xl,1.5rem)}`
|
|
88
88
|
];
|
|
89
89
|
__decorateClass([
|
|
90
90
|
query("a")
|
|
@@ -111,7 +111,7 @@ __decorateClass([
|
|
|
111
111
|
property({ reflect: true })
|
|
112
112
|
], SdLink.prototype, "download", 2);
|
|
113
113
|
SdLink = __decorateClass([
|
|
114
|
-
customElement("sd-5-15-
|
|
114
|
+
customElement("sd-5-15-6-link")
|
|
115
115
|
], SdLink);
|
|
116
116
|
|
|
117
117
|
export {
|
|
@@ -35,7 +35,7 @@ var SdQuickfact = class extends SdAccordion {
|
|
|
35
35
|
"flex flex-grow-0 flex-shrink-0 flex-auto self-start sm:self-center transition-transform ease-in-out duration-medium text-xl sm:text-4xl sm:mt-2",
|
|
36
36
|
this.open && "rotate-180",
|
|
37
37
|
!this.expandable && "hidden"
|
|
38
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-15-
|
|
38
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-15-6-icon library="_internal" name="chevron-down" class="group-hover:text-primary-500 transition-colors ease-in-out duration-medium"></sd-5-15-6-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-5-15-6-icon library="_internal" name="chevron-down" class="group-hover:text-primary-500 transition-colors ease-in-out duration-medium"></sd-5-15-6-icon></slot></span></${header}><div part="content" id="content" class="${cx("overflow-hidden", !this.expandable && "hidden")}"><slot part="content__slot" class="block" role="region" aria-labelledby="header"></slot></div></${base}>`;
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
SdQuickfact.styles = [
|
|
@@ -46,7 +46,7 @@ __decorateClass([
|
|
|
46
46
|
property({ type: Boolean, reflect: true })
|
|
47
47
|
], SdQuickfact.prototype, "expandable", 2);
|
|
48
48
|
SdQuickfact = __decorateClass([
|
|
49
|
-
customElement("sd-5-15-
|
|
49
|
+
customElement("sd-5-15-6-quickfact")
|
|
50
50
|
], SdQuickfact);
|
|
51
51
|
setDefaultAnimation("quickfact.show", {
|
|
52
52
|
keyframes: [{ height: "0" }, { height: "auto" }],
|
|
@@ -24,7 +24,7 @@ var SdTab = class extends SolidElement {
|
|
|
24
24
|
constructor() {
|
|
25
25
|
super(...arguments);
|
|
26
26
|
this.attrId = ++id;
|
|
27
|
-
this.componentId = `sd-5-15-
|
|
27
|
+
this.componentId = `sd-5-15-6-tab-${this.attrId}`;
|
|
28
28
|
this.hasSlotController = new HasSlotController(this, "left");
|
|
29
29
|
this.localize = new LocalizeController(this);
|
|
30
30
|
this.variant = "default";
|
|
@@ -107,7 +107,7 @@ __decorateClass([
|
|
|
107
107
|
watch(["disabled", "visually-disabled"])
|
|
108
108
|
], SdTab.prototype, "handleDisabledChange", 1);
|
|
109
109
|
SdTab = __decorateClass([
|
|
110
|
-
customElement("sd-5-15-
|
|
110
|
+
customElement("sd-5-15-6-tab")
|
|
111
111
|
], SdTab);
|
|
112
112
|
|
|
113
113
|
export {
|
|
@@ -53,7 +53,7 @@ var SdNavigationItem = class extends SolidElement {
|
|
|
53
53
|
}
|
|
54
54
|
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
55
55
|
const element = node;
|
|
56
|
-
return element.tagName.toLowerCase() === "sd-5-15-
|
|
56
|
+
return element.tagName.toLowerCase() === "sd-5-15-6-icon";
|
|
57
57
|
}
|
|
58
58
|
return false;
|
|
59
59
|
});
|
|
@@ -143,19 +143,19 @@ var SdNavigationItem = class extends SolidElement {
|
|
|
143
143
|
slots["description"] && "pt-3",
|
|
144
144
|
!slots["description"] && !this.separated && horizontalPadding,
|
|
145
145
|
this.calculatePaddingX
|
|
146
|
-
)}">${this.divider && this.vertical ? html`<sd-5-15-
|
|
146
|
+
)}">${this.divider && this.vertical ? html`<sd-5-15-6-divider part="divider" class="${cx("w-full transition-all absolute -top-0.25 left-0", this.calculatePaddingX)}"></sd-5-15-6-divider>` : ""} <span id="content" part="content-container" class="inline-flex items-center flex-auto"><slot part="content" class="inline-flex text-start"></slot></span>${this.chevron || slots["children"] && this.vertical && !this.separated ? html`<sd-5-15-6-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${cx(
|
|
147
147
|
"h-6 w-6 ml-2 transition-all",
|
|
148
148
|
isAccordion ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
|
149
|
-
)}"></sd-5-15-
|
|
149
|
+
)}"></sd-5-15-6-icon>` : ""} </span>${slots["description"] && this.vertical ? html`<slot id="description" name="description" part="description" class="${cx(
|
|
150
150
|
"inline-block text-sm text-left font-normal text-black pb-3",
|
|
151
151
|
isAccordion || this.separated ? "grow" : "w-full",
|
|
152
152
|
this.calculatePaddingX
|
|
153
153
|
)}"></slot>` : ""}</div></${tag}>`;
|
|
154
154
|
if (this.separated) {
|
|
155
|
-
return html`<div part="details" id="navigation-item-details" class="relative flex flex-col"><div class="flex items-start">${root} ${slots["children"] && this.vertical ? html`<button type="button" title="${this.open ? this.localize.term("collapseNavigationItem") : this.localize.term("expandNavigationItem")}" class="sd-interactive sd-interactive--reset -mt-1" @click="${this.handleClickSummary}"><sd-5-15-
|
|
155
|
+
return html`<div part="details" id="navigation-item-details" class="relative flex flex-col"><div class="flex items-start">${root} ${slots["children"] && this.vertical ? html`<button type="button" title="${this.open ? this.localize.term("collapseNavigationItem") : this.localize.term("expandNavigationItem")}" class="sd-interactive sd-interactive--reset -mt-1" @click="${this.handleClickSummary}"><sd-5-15-6-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${cx(
|
|
156
156
|
"m-4 h-6 w-6 transition-all",
|
|
157
157
|
isAccordion || this.separated ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
|
158
|
-
)}"></sd-5-15-
|
|
158
|
+
)}"></sd-5-15-6-icon></button>` : ""}</div>${this.open ? html`<slot name="children"></slot>` : ""}</div>`;
|
|
159
159
|
}
|
|
160
160
|
if (isAccordion) {
|
|
161
161
|
return html`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative">${root}<slot name="children"></slot></details>`;
|
|
@@ -216,7 +216,7 @@ __decorateClass([
|
|
|
216
216
|
property({ type: Boolean, reflect: true })
|
|
217
217
|
], SdNavigationItem.prototype, "separated", 2);
|
|
218
218
|
SdNavigationItem = __decorateClass([
|
|
219
|
-
customElement("sd-5-15-
|
|
219
|
+
customElement("sd-5-15-6-navigation-item")
|
|
220
220
|
], SdNavigationItem);
|
|
221
221
|
|
|
222
222
|
export {
|
|
@@ -10,7 +10,7 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
10
10
|
var _a, _b;
|
|
11
11
|
const ul = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("ul");
|
|
12
12
|
ul == null ? void 0 : ul.setAttribute("part", "listbox");
|
|
13
|
-
const popup = document.createElement("sd-5-15-
|
|
13
|
+
const popup = document.createElement("sd-5-15-6-popup");
|
|
14
14
|
popup.appendChild(ul);
|
|
15
15
|
(_b = sdInput.shadowRoot) == null ? void 0 : _b.appendChild(popup);
|
|
16
16
|
popup == null ? void 0 : popup.setAttribute("exportparts", "popup__content");
|
|
@@ -22,7 +22,7 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
22
22
|
popup.anchor = sdInput;
|
|
23
23
|
popup.sync = "width";
|
|
24
24
|
}
|
|
25
|
-
const styles = css`sd-5-15-
|
|
25
|
+
const styles = css`sd-5-15-6-popup::part(popup){border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-bottom-right-radius:var(--sd-border-radius-default,.25rem);border-width:0 2px 2px;overflow-y:scroll;z-index:var(--sd-z-index-dropdown,900);--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity,1));padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-2,.5rem);--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-5-15-6-popup li{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}sd-5-15-6-popup li:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity,1))}sd-5-15-6-popup li{list-style-type:""}sd-5-15-6-popup li mark{background-color:transparent;font-weight:700}sd-5-15-6-popup li:not(:has(sd-5-15-6-option)){cursor:pointer;font-size:var(--sd-font-size-base,1rem);padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-4,1rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity,1))}sd-5-15-6-popup li:not(:has(sd-5-15-6-option)):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}sd-5-15-6-popup li[aria-selected=true]{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}`;
|
|
26
26
|
const styleSheet = new CSSStyleSheet();
|
|
27
27
|
styleSheet.replaceSync(styles);
|
|
28
28
|
sdInput.shadowRoot.adoptedStyleSheets = [...sdInput.shadowRoot.adoptedStyleSheets, styleSheet];
|
|
@@ -35,13 +35,13 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
35
35
|
}
|
|
36
36
|
input.addEventListener("open", () => {
|
|
37
37
|
var _a, _b, _c, _d, _e, _f;
|
|
38
|
-
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-5-15-
|
|
38
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-5-15-6-popup")) == null ? void 0 : _b.setAttribute("active", "true");
|
|
39
39
|
(_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.add("rounded-b-none");
|
|
40
40
|
(_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.add("z-50");
|
|
41
41
|
});
|
|
42
42
|
input.addEventListener("close", () => {
|
|
43
43
|
var _a, _b, _c, _d, _e, _f;
|
|
44
|
-
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-5-15-
|
|
44
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-5-15-6-popup")) == null ? void 0 : _b.removeAttribute("active");
|
|
45
45
|
(_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.remove("rounded-b-none");
|
|
46
46
|
(_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.remove("z-50");
|
|
47
47
|
});
|
|
@@ -55,7 +55,7 @@ var SdStepGroup = class extends SolidElement {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
getAllSteps() {
|
|
58
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-5-15-
|
|
58
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-5-15-6-step");
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* Sets the active step.
|
|
@@ -120,7 +120,7 @@ __decorateClass([
|
|
|
120
120
|
watch("notInteractive")
|
|
121
121
|
], SdStepGroup.prototype, "handleInteractivityChange", 1);
|
|
122
122
|
SdStepGroup = __decorateClass([
|
|
123
|
-
customElement("sd-5-15-
|
|
123
|
+
customElement("sd-5-15-6-step-group")
|
|
124
124
|
], SdStepGroup);
|
|
125
125
|
|
|
126
126
|
export {
|
|
@@ -323,7 +323,7 @@ __decorateClass([
|
|
|
323
323
|
property({ attribute: "auto-size-padding", type: Number })
|
|
324
324
|
], SdPopup.prototype, "autoSizePadding", 2);
|
|
325
325
|
SdPopup = __decorateClass([
|
|
326
|
-
customElement("sd-5-15-
|
|
326
|
+
customElement("sd-5-15-6-popup")
|
|
327
327
|
], SdPopup);
|
|
328
328
|
|
|
329
329
|
export {
|
|
@@ -80,7 +80,7 @@ var SdTag = class extends SolidElement {
|
|
|
80
80
|
!this.removable ? "hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500" : "has-[button:hover]:border-primary-500 has-[button:hover]:bg-neutral-100 has-[button:hover]:text-primary-500"
|
|
81
81
|
) : "bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500",
|
|
82
82
|
this.disabled && !isLink && "cursor-not-allowed"
|
|
83
|
-
)}"><slot id="content" part="content"></slot>${this.removable && !isLink ? html`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}"><slot part="removable-indicator" name="removable-indicator"><sd-5-15-
|
|
83
|
+
)}"><slot id="content" part="content"></slot>${this.removable && !isLink ? html`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}"><slot part="removable-indicator" name="removable-indicator"><sd-5-15-6-icon library="_internal" name="close" label="${this.localize.term("remove")}"></sd-5-15-6-icon></slot></button>` : ""}</${tag}>`;
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
SdTag.styles = [
|
|
@@ -115,7 +115,7 @@ __decorateClass([
|
|
|
115
115
|
property({ reflect: true })
|
|
116
116
|
], SdTag.prototype, "download", 2);
|
|
117
117
|
SdTag = __decorateClass([
|
|
118
|
-
customElement("sd-5-15-
|
|
118
|
+
customElement("sd-5-15-6-tag")
|
|
119
119
|
], SdTag);
|
|
120
120
|
|
|
121
121
|
export {
|
|
@@ -93,7 +93,7 @@ var SdOption = class extends SolidElement {
|
|
|
93
93
|
)}"></span> ${this.checkbox ? html`<span id="control" part="control ${this.selected ? " control--checked" : "control--unchecked"}" class="${cx(
|
|
94
94
|
"relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4 mr-2",
|
|
95
95
|
this.disabled ? "border-neutral-500" : this.selected ? "bg-accent border-accent" : "bg-white border-neutral-800"
|
|
96
|
-
)}">${this.selected ? html`<sd-5-15-
|
|
96
|
+
)}">${this.selected ? html`<sd-5-15-6-icon part="checked-icon" class="text-white w-3 h-3" library="_internal" name="status-check"></sd-5-15-6-icon>` : ""}</span>` : ""} ${slots["left"] ? html`<slot name="left" part="left" class="inline-flex mr-2"></slot>` : ""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${slots["right"] ? html`<slot name="right" part="right" class="inline-flex ml-2"></slot>` : ""}</div>`;
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
/**
|
|
@@ -140,7 +140,7 @@ __decorateClass([
|
|
|
140
140
|
watch("value")
|
|
141
141
|
], SdOption.prototype, "handleValueChange", 1);
|
|
142
142
|
SdOption = __decorateClass([
|
|
143
|
-
customElement("sd-5-15-
|
|
143
|
+
customElement("sd-5-15-6-option")
|
|
144
144
|
], SdOption);
|
|
145
145
|
|
|
146
146
|
export {
|
|
@@ -38,12 +38,12 @@ var SdBreadcrumbItem = class extends SolidElement {
|
|
|
38
38
|
requestAnimationFrame(() => this.handleCurrentChange());
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return html`<sd-5-15-
|
|
41
|
+
return html`<sd-5-15-6-link part="base" href="${ifDefined(!this.current ? this.href : void 0)}" target="${this.target}" standalone class="text-nowrap"><slot></slot></sd-5-15-6-link>`;
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
SdBreadcrumbItem.styles = [
|
|
45
45
|
...SolidElement.styles,
|
|
46
|
-
css`:host{align-items:center;display:inline-flex}sd-5-15-
|
|
46
|
+
css`:host{align-items:center;display:inline-flex}sd-5-15-6-link::part(base){align-items:center}sd-5-15-6-link::part(icon-left){display:inline-flex;margin-right:var(--sd-spacing-0,0)}sd-5-15-6-link sd-5-15-6-icon{margin:var(--sd-spacing-0,0)}:host([current]) sd-5-15-6-link::part(base){--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-text-opacity,1))}:host([current]) sd-5-15-6-link::part(label){text-decoration-line:none}`
|
|
47
47
|
];
|
|
48
48
|
__decorateClass([
|
|
49
49
|
query('[part="base"]')
|
|
@@ -61,7 +61,7 @@ __decorateClass([
|
|
|
61
61
|
watch("current")
|
|
62
62
|
], SdBreadcrumbItem.prototype, "handleCurrentChange", 1);
|
|
63
63
|
SdBreadcrumbItem = __decorateClass([
|
|
64
|
-
customElement("sd-5-15-
|
|
64
|
+
customElement("sd-5-15-6-breadcrumb-item")
|
|
65
65
|
], SdBreadcrumbItem);
|
|
66
66
|
|
|
67
67
|
export {
|
|
@@ -183,7 +183,7 @@ var SdDialog = class extends SolidElement {
|
|
|
183
183
|
)}"><div part="overlay" class="fixed inset-0 bg-primary-800 opacity-90" @click="${() => this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${cx(
|
|
184
184
|
"flex flex-col z-20 bg-white py-4 sm:py-8 relative gap-6 focus-visible:focus-outline-inverted overflow-y-auto",
|
|
185
185
|
this.open && "flex opacity-100"
|
|
186
|
-
)}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${ifDefined(this.headline ? this.headline : void 0)}" aria-labelledby="${ifDefined(!this.headline ? "title" : void 0)}" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length > 0 ? html`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>` : html`<slot name="headline"></slot>`}</h2>${!this.noCloseButton ? html`<sd-5-15-
|
|
186
|
+
)}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${ifDefined(this.headline ? this.headline : void 0)}" aria-labelledby="${ifDefined(!this.headline ? "title" : void 0)}" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length > 0 ? html`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>` : html`<slot name="headline"></slot>`}</h2>${!this.noCloseButton ? html`<sd-5-15-6-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${cx("absolute top-2 right-2")}" name="x-lg" @click="${() => this.requestClose("close-button")}" type="button"><sd-5-15-6-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-5-15-6-icon></sd-5-15-6-button>` : ""}</header><main part="body" class="flex flex-auto overflow-auto w-full px-6 sm:px-10"><slot></slot></main><footer part="footer" class="flex flex-grow-0 flex-shrink-0 basis-auto ml-auto gap-4 px-6 sm:px-10"><slot name="footer"></slot></footer></div></div>`;
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
SdDialog.styles = [
|
|
@@ -212,7 +212,7 @@ __decorateClass([
|
|
|
212
212
|
watch("open", { waitUntilFirstUpdate: true })
|
|
213
213
|
], SdDialog.prototype, "handleOpenChange", 1);
|
|
214
214
|
SdDialog = __decorateClass([
|
|
215
|
-
customElement("sd-5-15-
|
|
215
|
+
customElement("sd-5-15-6-dialog")
|
|
216
216
|
], SdDialog);
|
|
217
217
|
setDefaultAnimation("dialog.show", {
|
|
218
218
|
keyframes: [
|
|
@@ -97,7 +97,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
97
97
|
* within the slotted trigger. This could be the slotted element itself, a child of the slotted element,
|
|
98
98
|
* or an element within the slotted elements shadow root.
|
|
99
99
|
*
|
|
100
|
-
* e.g. the accessible trigger of an <sd-5-15-
|
|
100
|
+
* e.g. the accessible trigger of an <sd-5-15-6-button> is a <button> located inside its shadow root.
|
|
101
101
|
*
|
|
102
102
|
* To determine this, we assume the first tabbable element in the trigger slot is the "accessible trigger."
|
|
103
103
|
* */
|
|
@@ -108,11 +108,11 @@ var SdDropdown = class extends SolidElement {
|
|
|
108
108
|
if (accessibleTrigger) {
|
|
109
109
|
switch (accessibleTrigger.tagName.toLowerCase()) {
|
|
110
110
|
// Solid buttons have to update the internal button so it's announced correctly by screen readers
|
|
111
|
-
case "sd-5-15-
|
|
112
|
-
case "sd-5-15-
|
|
111
|
+
case "sd-5-15-6-button":
|
|
112
|
+
case "sd-5-15-6-icon-button":
|
|
113
113
|
target = accessibleTrigger.button;
|
|
114
114
|
break;
|
|
115
|
-
case "sd-5-15-
|
|
115
|
+
case "sd-5-15-6-navigation-item":
|
|
116
116
|
target = accessibleTrigger.button;
|
|
117
117
|
break;
|
|
118
118
|
default:
|
|
@@ -136,7 +136,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
getMenu() {
|
|
139
|
-
return this.panel.assignedElements({ flatten: true }).find((el) => el.tagName.toLowerCase() === "sd-5-15-
|
|
139
|
+
return this.panel.assignedElements({ flatten: true }).find((el) => el.tagName.toLowerCase() === "sd-5-15-6-menu");
|
|
140
140
|
}
|
|
141
141
|
handleKeyDown(event) {
|
|
142
142
|
if (this.open && event.key === "Escape") {
|
|
@@ -148,7 +148,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
148
148
|
handleDocumentKeyDown(event) {
|
|
149
149
|
var _a;
|
|
150
150
|
if (event.key === "Tab") {
|
|
151
|
-
if (this.open && ((_a = document.activeElement) == null ? void 0 : _a.tagName.toLowerCase()) === "sd-5-15-
|
|
151
|
+
if (this.open && ((_a = document.activeElement) == null ? void 0 : _a.tagName.toLowerCase()) === "sd-5-15-6-menu-item") {
|
|
152
152
|
event.preventDefault();
|
|
153
153
|
this.hide();
|
|
154
154
|
this.focusOnTrigger();
|
|
@@ -174,7 +174,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
174
174
|
}
|
|
175
175
|
handlePanelSelect(event) {
|
|
176
176
|
const target = event.target;
|
|
177
|
-
if (!this.stayOpenOnSelect && target.tagName.toLowerCase() === "sd-5-15-
|
|
177
|
+
if (!this.stayOpenOnSelect && target.tagName.toLowerCase() === "sd-5-15-6-menu") {
|
|
178
178
|
this.hide();
|
|
179
179
|
this.focusOnTrigger();
|
|
180
180
|
}
|
|
@@ -256,7 +256,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
256
256
|
}
|
|
257
257
|
addOpenListeners() {
|
|
258
258
|
this.panel.addEventListener("sd-activate", this.handleMenuItemActivate);
|
|
259
|
-
this.panel.addEventListener("sd-5-15-
|
|
259
|
+
this.panel.addEventListener("sd-5-15-6-select", this.handlePanelSelect);
|
|
260
260
|
this.panel.addEventListener("keydown", this.handleKeyDown);
|
|
261
261
|
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
262
262
|
document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
@@ -264,7 +264,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
264
264
|
removeOpenListeners() {
|
|
265
265
|
if (this.panel) {
|
|
266
266
|
this.panel.removeEventListener("sd-activate", this.handleMenuItemActivate);
|
|
267
|
-
this.panel.removeEventListener("sd-5-15-
|
|
267
|
+
this.panel.removeEventListener("sd-5-15-6-select", this.handlePanelSelect);
|
|
268
268
|
this.panel.removeEventListener("keydown", this.handleKeyDown);
|
|
269
269
|
}
|
|
270
270
|
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
@@ -297,13 +297,13 @@ var SdDropdown = class extends SolidElement {
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
render() {
|
|
300
|
-
return html`<sd-5-15-
|
|
300
|
+
return html`<sd-5-15-6-popup part="base" id="dropdown" exportparts="
|
|
301
301
|
popup:base__popup,
|
|
302
302
|
" placement="${this.placement}" distance="${this.rounded && this.distance < 1 ? 1 : this.distance}" skidding="${this.skidding}" strategy="${this.hoist ? "fixed" : "absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${cx(
|
|
303
303
|
"shadow bg-white block",
|
|
304
304
|
this.open ? "pointer-events-auto" : "pointer-events-none",
|
|
305
305
|
this.rounded && "rounded-md"
|
|
306
|
-
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-5-15-
|
|
306
|
+
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-5-15-6-popup>`;
|
|
307
307
|
}
|
|
308
308
|
};
|
|
309
309
|
SdDropdown.styles = [
|
|
@@ -356,7 +356,7 @@ __decorateClass([
|
|
|
356
356
|
watch("open", { waitUntilFirstUpdate: true })
|
|
357
357
|
], SdDropdown.prototype, "handleOpenChange", 1);
|
|
358
358
|
SdDropdown = __decorateClass([
|
|
359
|
-
customElement("sd-5-15-
|
|
359
|
+
customElement("sd-5-15-6-dropdown")
|
|
360
360
|
], SdDropdown);
|
|
361
361
|
setDefaultAnimation("dropdown.show", {
|
|
362
362
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -17,19 +17,19 @@ var SdButtonGroup = class extends SolidElement {
|
|
|
17
17
|
}
|
|
18
18
|
handleFocus(event) {
|
|
19
19
|
const button = findButton(event.target);
|
|
20
|
-
button == null ? void 0 : button.classList.add("sd-5-15-
|
|
20
|
+
button == null ? void 0 : button.classList.add("sd-5-15-6-button-group__button--focus");
|
|
21
21
|
}
|
|
22
22
|
handleBlur(event) {
|
|
23
23
|
const button = findButton(event.target);
|
|
24
|
-
button == null ? void 0 : button.classList.remove("sd-5-15-
|
|
24
|
+
button == null ? void 0 : button.classList.remove("sd-5-15-6-button-group__button--focus");
|
|
25
25
|
}
|
|
26
26
|
handleMouseOver(event) {
|
|
27
27
|
const button = findButton(event.target);
|
|
28
|
-
button == null ? void 0 : button.classList.add("sd-5-15-
|
|
28
|
+
button == null ? void 0 : button.classList.add("sd-5-15-6-button-group__button--hover");
|
|
29
29
|
}
|
|
30
30
|
handleMouseOut(event) {
|
|
31
31
|
const button = findButton(event.target);
|
|
32
|
-
button == null ? void 0 : button.classList.remove("sd-5-15-
|
|
32
|
+
button == null ? void 0 : button.classList.remove("sd-5-15-6-button-group__button--hover");
|
|
33
33
|
}
|
|
34
34
|
handleSlotChange() {
|
|
35
35
|
const slottedElements = [...this.defaultSlot.assignedElements({ flatten: true })];
|
|
@@ -37,11 +37,11 @@ var SdButtonGroup = class extends SolidElement {
|
|
|
37
37
|
const index = slottedElements.indexOf(el);
|
|
38
38
|
const button = findButton(el);
|
|
39
39
|
if (button !== null) {
|
|
40
|
-
button.classList.add("sd-5-15-
|
|
41
|
-
button.classList.toggle("sd-5-15-
|
|
42
|
-
button.classList.toggle("sd-5-15-
|
|
43
|
-
button.classList.toggle("sd-5-15-
|
|
44
|
-
button.classList.toggle("sd-5-15-
|
|
40
|
+
button.classList.add("sd-5-15-6-button-group__button");
|
|
41
|
+
button.classList.toggle("sd-5-15-6-button-group__button--first", index === 0);
|
|
42
|
+
button.classList.toggle("sd-5-15-6-button-group__button--inner", index > 0 && index < slottedElements.length - 1);
|
|
43
|
+
button.classList.toggle("sd-5-15-6-button-group__button--last", index === slottedElements.length - 1);
|
|
44
|
+
button.classList.toggle("sd-5-15-6-button-group__button--radio", button.tagName.toLowerCase() === "sd-5-15-6-radio-button");
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
}
|
|
@@ -63,11 +63,11 @@ __decorateClass([
|
|
|
63
63
|
property({ type: String, reflect: true })
|
|
64
64
|
], SdButtonGroup.prototype, "label", 2);
|
|
65
65
|
SdButtonGroup = __decorateClass([
|
|
66
|
-
customElement("sd-5-15-
|
|
66
|
+
customElement("sd-5-15-6-button-group")
|
|
67
67
|
], SdButtonGroup);
|
|
68
68
|
function findButton(el) {
|
|
69
69
|
var _a;
|
|
70
|
-
const selector = "sd-5-15-
|
|
70
|
+
const selector = "sd-5-15-6-button, sd-5-15-6-radio-button";
|
|
71
71
|
return (_a = el.closest(selector)) != null ? _a : el.querySelector(selector);
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -26,7 +26,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
26
26
|
this.helpText = "";
|
|
27
27
|
}
|
|
28
28
|
getAllCheckboxes() {
|
|
29
|
-
return [...this.querySelectorAll("sd-5-15-
|
|
29
|
+
return [...this.querySelectorAll("sd-5-15-6-checkbox")];
|
|
30
30
|
}
|
|
31
31
|
async syncCheckboxElements() {
|
|
32
32
|
const checkboxes = this.getAllCheckboxes();
|
|
@@ -39,10 +39,10 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
syncCheckboxes() {
|
|
42
|
-
if (customElements.get("sd-5-15-
|
|
42
|
+
if (customElements.get("sd-5-15-6-checkbox")) {
|
|
43
43
|
this.syncCheckboxElements();
|
|
44
44
|
} else {
|
|
45
|
-
customElements.whenDefined("sd-5-15-
|
|
45
|
+
customElements.whenDefined("sd-5-15-6-checkbox").then(() => this.syncCheckboxes());
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
handleSizeChange() {
|
|
@@ -79,7 +79,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
79
79
|
*/
|
|
80
80
|
SdCheckboxGroup.styles = [
|
|
81
81
|
...SolidElement.styles,
|
|
82
|
-
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-5-15-
|
|
82
|
+
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-5-15-6-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-5-15-6-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-5-15-6-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-5-15-6-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-15-6-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-15-6-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`
|
|
83
83
|
];
|
|
84
84
|
__decorateClass([
|
|
85
85
|
property({ type: String, reflect: true })
|
|
@@ -100,7 +100,7 @@ __decorateClass([
|
|
|
100
100
|
watch("invalid", { waitUntilFirstUpdate: true })
|
|
101
101
|
], SdCheckboxGroup.prototype, "handleInvalid", 1);
|
|
102
102
|
SdCheckboxGroup = __decorateClass([
|
|
103
|
-
customElement("sd-5-15-
|
|
103
|
+
customElement("sd-5-15-6-checkbox-group")
|
|
104
104
|
], SdCheckboxGroup);
|
|
105
105
|
|
|
106
106
|
export {
|