@solid-design-system/components 5.17.1 → 5.17.2
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.KVJJEMOI.js → chunk.UVN2WVI6.js} +1 -1
- package/cdn/components/checkbox/checkbox.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.23JJBCLW.js +1 -1
- package/cdn-versioned/chunks/chunk.2D3B6W4C.js +1 -1
- package/cdn-versioned/chunks/chunk.2RPN4LHN.js +4 -4
- package/cdn-versioned/chunks/chunk.2YMJV2KL.js +1 -1
- package/cdn-versioned/chunks/chunk.37O5FAM6.js +1 -1
- package/cdn-versioned/chunks/chunk.3PTWVC7K.js +1 -1
- package/cdn-versioned/chunks/chunk.4HEDUSC5.js +1 -1
- package/cdn-versioned/chunks/chunk.4THKQ4PC.js +1 -1
- package/cdn-versioned/chunks/chunk.4USO2EJG.js +2 -2
- package/cdn-versioned/chunks/chunk.5GPPZUNF.js +1 -1
- package/cdn-versioned/chunks/chunk.6QNQMWSQ.js +2 -2
- package/cdn-versioned/chunks/chunk.6XOV6LQS.js +1 -1
- package/cdn-versioned/chunks/chunk.72JQHJ3G.js +1 -1
- package/cdn-versioned/chunks/chunk.75UMJKQC.js +1 -1
- package/cdn-versioned/chunks/chunk.7FMD6ZWC.js +1 -1
- package/cdn-versioned/chunks/chunk.7NHEEBDB.js +1 -1
- package/cdn-versioned/chunks/chunk.7SJXKLVN.js +1 -1
- package/cdn-versioned/chunks/chunk.ADTHFKFC.js +1 -1
- package/cdn-versioned/chunks/chunk.AKJ7U3Y3.js +1 -1
- package/cdn-versioned/chunks/chunk.BV42CEWL.js +1 -1
- package/cdn-versioned/chunks/chunk.CARQ25VA.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.CTOV3B4T.js +1 -1
- package/cdn-versioned/chunks/chunk.EIGW4PKE.js +1 -1
- package/cdn-versioned/chunks/chunk.EIRHQEOO.js +1 -1
- package/cdn-versioned/chunks/chunk.FYOUHXBZ.js +1 -1
- package/cdn-versioned/chunks/chunk.H3W4J4F4.js +1 -1
- package/cdn-versioned/chunks/chunk.H7I6O5HE.js +1 -1
- package/cdn-versioned/chunks/chunk.HJ4O4XQA.js +1 -1
- package/cdn-versioned/chunks/chunk.HXUQZXCZ.js +1 -1
- package/cdn-versioned/chunks/chunk.LLJ2OCGM.js +4 -4
- package/cdn-versioned/chunks/chunk.M6XINJ52.js +1 -1
- package/cdn-versioned/chunks/chunk.MGCXOSRH.js +1 -1
- package/cdn-versioned/chunks/chunk.MMM4IMJD.js +1 -1
- package/cdn-versioned/chunks/chunk.N4RSYGAV.js +1 -1
- package/cdn-versioned/chunks/chunk.NRBNWX7R.js +1 -1
- package/cdn-versioned/chunks/chunk.NTP4LLF3.js +1 -1
- package/cdn-versioned/chunks/chunk.OCIA2UJP.js +1 -1
- package/cdn-versioned/chunks/chunk.OIOXSZHI.js +1 -1
- package/cdn-versioned/chunks/chunk.OPMX2Q3A.js +1 -1
- package/cdn-versioned/chunks/chunk.OQSPWMNR.js +1 -1
- package/cdn-versioned/chunks/chunk.PCAKJGIV.js +1 -1
- package/cdn-versioned/chunks/chunk.PIAYQI7K.js +1 -1
- package/cdn-versioned/chunks/chunk.QJAN6R4E.js +1 -1
- package/cdn-versioned/chunks/chunk.QJFZKBPG.js +1 -1
- package/cdn-versioned/chunks/chunk.QJVPLDR4.js +1 -1
- package/cdn-versioned/chunks/chunk.RCMXIAQV.js +1 -1
- package/cdn-versioned/chunks/chunk.RIOXBQBC.js +1 -1
- package/cdn-versioned/chunks/chunk.ROIKKEJQ.js +1 -1
- package/cdn-versioned/chunks/chunk.SQ7OLI7Q.js +1 -1
- package/cdn-versioned/chunks/chunk.TDRPE2QQ.js +1 -1
- package/cdn-versioned/chunks/chunk.TFKNNQ5S.js +1 -1
- package/cdn-versioned/chunks/chunk.TTG6Y6QJ.js +1 -1
- package/cdn-versioned/chunks/{chunk.KVJJEMOI.js → chunk.UVN2WVI6.js} +1 -1
- package/cdn-versioned/chunks/chunk.W2JKI6K3.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.XAIFQKHV.js +1 -1
- package/cdn-versioned/chunks/chunk.YMTUR575.js +1 -1
- package/cdn-versioned/chunks/chunk.YVU7BES7.js +1 -1
- package/cdn-versioned/chunks/chunk.Z4V7WPTW.js +1 -1
- package/cdn-versioned/chunks/chunk.ZENM3WVO.js +1 -1
- package/cdn-versioned/chunks/chunk.ZKBX734R.js +1 -1
- package/cdn-versioned/chunks/chunk.ZZAPDP7V.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-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.js +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/datepicker/datepicker.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/skeleton/skeleton.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 +248 -248
- 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 +94 -94
- package/cdn-versioned/web-types.json +163 -163
- package/dist/chunks/{chunk.ZBDFCFOP.js → chunk.CA5LQ5RH.js} +1 -1
- package/dist/components/checkbox/checkbox.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.22DM7THN.js +2 -2
- package/dist-versioned/chunks/chunk.246LUIGB.js +1 -1
- package/dist-versioned/chunks/chunk.2EN4CJ2E.js +1 -1
- package/dist-versioned/chunks/chunk.3CUXBZXY.js +1 -1
- package/dist-versioned/chunks/chunk.4D5SPJ27.js +1 -1
- package/dist-versioned/chunks/chunk.4VSYGWIQ.js +2 -2
- package/dist-versioned/chunks/chunk.5L52M55A.js +3 -3
- package/dist-versioned/chunks/chunk.63D5DO3S.js +2 -2
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6KCL3YWT.js +3 -3
- package/dist-versioned/chunks/chunk.6OGLZOU3.js +1 -1
- package/dist-versioned/chunks/chunk.A5GKQZGQ.js +2 -2
- package/dist-versioned/chunks/chunk.AAK5STGD.js +2 -2
- package/dist-versioned/chunks/chunk.ATKLZZWE.js +2 -2
- package/dist-versioned/chunks/chunk.AUMWRORX.js +6 -6
- package/dist-versioned/chunks/chunk.AWVURKQ3.js +8 -8
- package/dist-versioned/chunks/chunk.AZ5YCFXX.js +2 -2
- package/dist-versioned/chunks/{chunk.ZBDFCFOP.js → chunk.CA5LQ5RH.js} +3 -3
- package/dist-versioned/chunks/chunk.DOGMVREV.js +3 -3
- package/dist-versioned/chunks/chunk.E4O3LVAZ.js +1 -1
- package/dist-versioned/chunks/chunk.FPIRMH7R.js +4 -4
- package/dist-versioned/chunks/chunk.FWDG6KMC.js +1 -1
- package/dist-versioned/chunks/chunk.HTEXYS4A.js +26 -26
- package/dist-versioned/chunks/chunk.IKDVBWFR.js +2 -2
- package/dist-versioned/chunks/chunk.J2MPIUT5.js +1 -1
- package/dist-versioned/chunks/chunk.JUZY76ML.js +1 -1
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KHS7FSFX.js +5 -5
- package/dist-versioned/chunks/chunk.KMU4KABG.js +2 -2
- package/dist-versioned/chunks/chunk.MCUIYSD6.js +2 -2
- package/dist-versioned/chunks/chunk.NBHVDDUK.js +4 -4
- package/dist-versioned/chunks/chunk.NYOWE72U.js +1 -1
- package/dist-versioned/chunks/chunk.OH3W4PGL.js +24 -24
- package/dist-versioned/chunks/chunk.OWYDTY46.js +2 -2
- package/dist-versioned/chunks/chunk.P2JBJQH6.js +1 -1
- package/dist-versioned/chunks/chunk.PKG3F2KC.js +1 -1
- package/dist-versioned/chunks/chunk.Q4HWX7FF.js +5 -5
- package/dist-versioned/chunks/chunk.QP27BG3Y.js +1 -1
- package/dist-versioned/chunks/chunk.QPBHKXL6.js +3 -3
- package/dist-versioned/chunks/chunk.QPBJEOPN.js +12 -12
- package/dist-versioned/chunks/chunk.QTQEKSJS.js +1 -1
- package/dist-versioned/chunks/chunk.QVNC3EJB.js +1 -1
- package/dist-versioned/chunks/chunk.RZLBIMEH.js +1 -1
- package/dist-versioned/chunks/chunk.S253T7LE.js +11 -11
- package/dist-versioned/chunks/chunk.SJZCQ5SU.js +12 -12
- package/dist-versioned/chunks/chunk.TD5EDBVC.js +2 -2
- package/dist-versioned/chunks/chunk.TJKIQ2ZR.js +5 -5
- package/dist-versioned/chunks/chunk.TMJN75ST.js +6 -6
- package/dist-versioned/chunks/chunk.U5L4ZATG.js +5 -5
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.URTB3C7J.js +3 -3
- package/dist-versioned/chunks/chunk.VDSIXERI.js +2 -2
- package/dist-versioned/chunks/chunk.VUTMPKYK.js +3 -3
- package/dist-versioned/chunks/chunk.W6RMEFFR.js +2 -2
- package/dist-versioned/chunks/chunk.WRP3NGPP.js +4 -4
- package/dist-versioned/chunks/chunk.WTG2WY6X.js +5 -5
- package/dist-versioned/chunks/chunk.WUB4VSXU.js +2 -2
- package/dist-versioned/chunks/chunk.XCQC3F3H.js +3 -3
- package/dist-versioned/chunks/chunk.XRKSJCLQ.js +6 -6
- package/dist-versioned/chunks/chunk.YBAAPYHP.js +14 -14
- package/dist-versioned/chunks/chunk.YGHO5R3O.js +3 -3
- package/dist-versioned/chunks/chunk.ZAQS4XFO.js +2 -2
- package/dist-versioned/chunks/chunk.ZUL25WD4.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-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.js +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/datepicker/datepicker.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/skeleton/skeleton.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 +248 -248
- 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 +94 -94
- package/dist-versioned/web-types.json +163 -163
- package/package.json +1 -1
|
@@ -26,7 +26,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
26
26
|
this.helpText = "";
|
|
27
27
|
}
|
|
28
28
|
getAllCheckboxes() {
|
|
29
|
-
return [...this.querySelectorAll("sd-5-17-
|
|
29
|
+
return [...this.querySelectorAll("sd-5-17-2-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-17-
|
|
42
|
+
if (customElements.get("sd-5-17-2-checkbox")) {
|
|
43
43
|
this.syncCheckboxElements();
|
|
44
44
|
} else {
|
|
45
|
-
customElements.whenDefined("sd-5-17-
|
|
45
|
+
customElements.whenDefined("sd-5-17-2-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-17-
|
|
82
|
+
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-5-17-2-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-5-17-2-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-5-17-2-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-5-17-2-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-17-2-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-17-2-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-17-
|
|
103
|
+
customElement("sd-5-17-2-checkbox-group")
|
|
104
104
|
], SdCheckboxGroup);
|
|
105
105
|
|
|
106
106
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/components/combobox/utils.ts
|
|
2
2
|
var getAssignedElementsForSlot = (slot) => Array.from(slot.assignedElements({ flatten: true }));
|
|
3
|
-
var getOptionOrNestedOptions = (item) => item.tagName.toLocaleLowerCase() === "sd-5-17-
|
|
4
|
-
var isOptgroup = (item) => item.tagName.toLocaleLowerCase() === "sd-5-17-
|
|
3
|
+
var getOptionOrNestedOptions = (item) => item.tagName.toLocaleLowerCase() === "sd-5-17-2-option" ? item : Array.from(item.querySelectorAll(":scope > sd-5-17-2-option"));
|
|
4
|
+
var isOptgroup = (item) => item.tagName.toLocaleLowerCase() === "sd-5-17-2-optgroup";
|
|
5
5
|
var getAllOptions = (items) => items.map(getOptionOrNestedOptions);
|
|
6
6
|
var filterOnlyOptgroups = (items) => items.filter(isOptgroup);
|
|
7
7
|
var normalizeString = (str) => str.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase();
|
|
@@ -107,12 +107,12 @@ var SdMenuItem = class extends SolidElement {
|
|
|
107
107
|
)}" .disabled="${this.disabled}" ?aria-haspopup="${this.isSubmenu()}" ?aria-expanded="${isSubmenuExpanded ? true : false}">${this.type === "checkbox" ? html`<span part="checked-icon" class="${cx(
|
|
108
108
|
"flex items-center justify-center grow-0 shrink-0 basis-auto",
|
|
109
109
|
this.checked ? "visible" : "invisible"
|
|
110
|
-
)}"><sd-5-17-
|
|
110
|
+
)}"><sd-5-17-2-icon name="status-check" library="sd-status-assets" aria-hidden="true"></sd-5-17-2-icon></span>` : ""} ${slots.iconIndent ? html`<slot name="icon-indent" part="icon-indent" class="flex items-center grow-0 shrink-0 basis-auto mr-2"></slot>` : ""}<slot part="label" class="inline-flex grow shrink basis-auto text-ellipsis overflow-hidden" @slotchange="${this.handleDefaultSlotChange}"></slot>${this.chevron || this.isSubmenu() ? html`<span part="submenu-icon" class="flex items-center justify-center grow-0 shrink-0 basis-auto ml-3"><sd-5-17-2-icon name="chevron-right" library="_internal" aria-hidden="true" class="h-6 w-6"></sd-5-17-2-icon></span>` : ""} ${this.submenuController.renderSubmenu()}</div>`;
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
SdMenuItem.styles = [
|
|
114
114
|
...SolidElement.styles,
|
|
115
|
-
css`:host{--submenu-offset:-6px;display:block}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}::slotted(sd-5-17-
|
|
115
|
+
css`:host{--submenu-offset:-6px;display:block}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}::slotted(sd-5-17-2-icon){height:var(--sd-spacing-6,1.5rem);width:var(--sd-spacing-6,1.5rem)}[part=checked-icon]{margin-right:var(--sd-spacing-3,.75rem)}.submenu-expanded:after{bottom:var(--sd-spacing-0,0);left:var(--sd-spacing-0,0);position:fixed;right:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);z-index:calc(var(z-dropdown) - 1);--tw-content:"";clip-path:polygon(var(--safe-triangle-cursor-x,0) var(--safe-triangle-cursor-y,0),var(--safe-triangle-submenu-start-x,0) var(--safe-triangle-submenu-start-y,0),var(--safe-triangle-submenu-end-x,0) var(--safe-triangle-submenu-end-y,0));content:var(--tw-content)}:host(:hover:not([aria-disabled=true],:focus-visible)) [part=base]{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1));outline:2px solid transparent;outline-offset:2px}:host(:focus-visible:not([aria-disabled=true])) [part=base]{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:-2px;outline-style:solid;outline-width:2px}:host(:hover) [part=base]{outline:2px solid transparent;outline-offset:2px}sd-5-17-2-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity,1));margin-left:var(--submenu-offset)}::slotted(sd-5-17-2-menu){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important}`
|
|
116
116
|
];
|
|
117
117
|
__decorateClass([
|
|
118
118
|
query("slot:not([name])")
|
|
@@ -145,7 +145,7 @@ __decorateClass([
|
|
|
145
145
|
watch("type")
|
|
146
146
|
], SdMenuItem.prototype, "handleTypeChange", 1);
|
|
147
147
|
SdMenuItem = __decorateClass([
|
|
148
|
-
customElement("sd-5-17-
|
|
148
|
+
customElement("sd-5-17-2-menu-item")
|
|
149
149
|
], SdMenuItem);
|
|
150
150
|
|
|
151
151
|
export {
|
|
@@ -105,7 +105,7 @@ var SdStep = class extends SolidElement {
|
|
|
105
105
|
"text-lg",
|
|
106
106
|
!this.disabled && !this.current && !this.notInteractive && !this.waiting && "text-primary hover:text-primary-500 hover:fill-primary-500",
|
|
107
107
|
this.notInteractive && "text-primary"
|
|
108
|
-
)}">${!this.disabled && !this.current && !this.notInteractive && !this.waiting ? html`<sd-5-17-
|
|
108
|
+
)}">${!this.disabled && !this.current && !this.notInteractive && !this.waiting ? html`<sd-5-17-2-icon name="status-check" library="_internal" class="${cx(this.size === "sm" && "text-sm")}"></sd-5-17-2-icon>` : html`${this.index}`}</slot></${tag}>${isHorizontalInline ? html`<div class="${cx(!this.noTail && "flex-1", "flex flex-col gap-1")}"><div class="${cx(
|
|
109
109
|
"flex w-full",
|
|
110
110
|
hasLabel && "gap-2",
|
|
111
111
|
this.size === "sm" && !hasDescription ? "mt-1" : "mt-3"
|
|
@@ -195,7 +195,7 @@ __decorateClass([
|
|
|
195
195
|
watch("notInteractive")
|
|
196
196
|
], SdStep.prototype, "handleInteractivityChange", 1);
|
|
197
197
|
SdStep = __decorateClass([
|
|
198
|
-
customElement("sd-5-17-
|
|
198
|
+
customElement("sd-5-17-2-step")
|
|
199
199
|
], SdStep);
|
|
200
200
|
|
|
201
201
|
export {
|
|
@@ -398,10 +398,10 @@ var SdRange = class extends SolidElement {
|
|
|
398
398
|
ariaLabel = this.tooltipFormatter(value);
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
return html`<sd-5-17-
|
|
401
|
+
return html`<sd-5-17-2-tooltip hoist trigger="focus" disabled="${ifDefined(this.disabled || this.visuallyDisabled || this.noTooltip ? true : void 0)}"><div id="${id}" part="thumb" role="slider" tabindex="${this.disabled || this.visuallyDisabled ? -1 : 0}" aria-disabled="${ifDefined(this.disabled || this.visuallyDisabled ? "true" : void 0)}" aria-labelledby="${ariaLabeledBy}" aria-label="${ariaLabel}" aria-valuemax="${this.max}" aria-valuemin="${this.min}" aria-valuenow="${value}" aria-valuetext="${this.tooltipFormatter(value)}" data-range-id="${rangeId}" @pointerdown="${this.onClickThumb}" @pointermove="${this.onDragThumb}" @pointerup="${this.onReleaseThumb}" @pointercancel="${this.onReleaseThumb}" @pointerleave="${this.onReleaseThumb}" @keydown="${this.onKeyPress}" @focus="${this.onFocusThumb}" class="${cx(
|
|
402
402
|
"rounded-full absolute top-0 size-4 hover:cursor-grab after:-inset-2",
|
|
403
403
|
this.disabled || this.visuallyDisabled ? "bg-neutral-500 outline-none" : "bg-primary hover:bg-primary-500 cursor-pointer focus-visible:focus-outline"
|
|
404
|
-
)}"></div></sd-5-17-
|
|
404
|
+
)}"></div></sd-5-17-2-tooltip>`;
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
render() {
|
|
@@ -473,7 +473,7 @@ __decorateClass([
|
|
|
473
473
|
property({ type: String })
|
|
474
474
|
], SdRange.prototype, "value", 1);
|
|
475
475
|
SdRange = __decorateClass([
|
|
476
|
-
customElement("sd-5-17-
|
|
476
|
+
customElement("sd-5-17-2-range")
|
|
477
477
|
], SdRange);
|
|
478
478
|
|
|
479
479
|
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-17-
|
|
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-17-2-icon library="_internal" name="close" label="${this.localize.term("remove")}"></sd-5-17-2-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-17-
|
|
118
|
+
customElement("sd-5-17-2-tag")
|
|
119
119
|
], SdTag);
|
|
120
120
|
|
|
121
121
|
export {
|
|
@@ -210,15 +210,15 @@ var SdNotification = class extends SolidElement {
|
|
|
210
210
|
warning: "bg-warning",
|
|
211
211
|
error: "bg-error"
|
|
212
212
|
}[this.variant]
|
|
213
|
-
)}"><sd-5-17-
|
|
213
|
+
)}"><sd-5-17-2-icon name="${{
|
|
214
214
|
info: "info-circle",
|
|
215
215
|
success: "confirm-circle",
|
|
216
216
|
warning: "exclamation-circle",
|
|
217
217
|
error: "warning"
|
|
218
|
-
}[this.variant] || ""}" library="_internal" class="h-6 w-6 text-white"></sd-5-17-
|
|
218
|
+
}[this.variant] || ""}" library="_internal" class="h-6 w-6 text-white"></sd-5-17-2-icon></slot><div part="content" class="${cx(
|
|
219
219
|
"h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white",
|
|
220
220
|
"border-solid border-[1px] border-l-0 border-neutral-400"
|
|
221
|
-
)}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable ? html`<sd-5-17-
|
|
221
|
+
)}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable ? html`<sd-5-17-2-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-5-17-2-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-5-17-2-icon></sd-5-17-2-button>` : ""}</div>${this.durationIndicator ? html`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${cx(`absolute w-0 h-[2px] bottom-0 bg-primary z-10 animate-grow`)}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>` : ""}</div></div>`;
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
224
|
/**
|
|
@@ -262,7 +262,7 @@ __decorateClass([
|
|
|
262
262
|
watch("duration")
|
|
263
263
|
], SdNotification.prototype, "handleDurationChange", 1);
|
|
264
264
|
SdNotification = __decorateClass([
|
|
265
|
-
customElement("sd-5-17-
|
|
265
|
+
customElement("sd-5-17-2-notification")
|
|
266
266
|
], SdNotification);
|
|
267
267
|
setDefaultAnimation("notification.show", {
|
|
268
268
|
keyframes: [
|
|
@@ -298,18 +298,18 @@ var SdAudio = class extends SolidElement {
|
|
|
298
298
|
)}" part="audio-controls"><button class="${cx(
|
|
299
299
|
"playback-speed justify-self-start text-base font-bold hover:cursor-pointer sd-interactive",
|
|
300
300
|
this.inverted && "sd-interactive--inverted"
|
|
301
|
-
)}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-5-17-
|
|
301
|
+
)}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-5-17-2-button ?inverted="${this.inverted ? true : false}" part="play-button" size="lg" @click="${!this.isPlaying ? this.playAudio : this.pauseAudio}" aria-label="${this.isPlaying ? this.localize.term("pauseAudio") : this.localize.term("playAudio")}" title="${this.isPlaying ? this.localize.term("pauseAudio") : this.localize.term("playAudio")}" class="mb-4">${this.isPlaying ? html`<slot name="pause-icon"><sd-5-17-2-icon class="text-xl" name="pause" library="_internal"></sd-5-17-2-icon></slot>` : html`<slot name="play-icon"><sd-5-17-2-icon class="text-xl" name="start" library="_internal"></sd-5-17-2-icon></slot>`}</sd-5-17-2-button><div class="flex items-center gap-6 justify-self-end">${this.hasSlotController.test("transcript") ? html`<button class="${cx("w-6 h-6 hover:cursor-pointer sd-interactive", this.inverted && "sd-interactive--inverted")}" aria-label="${this.isTranscriptOpen ? this.localize.term("transcriptIsOpen") : this.localize.term("openTranscript")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" part="transcript"><sd-5-17-2-icon class="w-6 h-6" name="transcript" library="_internal"></sd-5-17-2-icon></button>` : null} <button class="${cx("w-6 h-6 hover:cursor-pointer sd-interactive", this.inverted && "sd-interactive--inverted")}" part="volume" aria-label="${!this.isMuted ? this.localize.term("mute") : this.localize.term("unmute")}" @click="${this.toggleMute}" @keydown="${this.toggleMuteKeydown}"><sd-5-17-2-icon class="w-6 h-6" name="${this.isMuted ? "mute" : "volume"}" library="_internal"></sd-5-17-2-icon></button></div></div>`;
|
|
302
302
|
const renderTimestamps = html`<div class="${cx(
|
|
303
303
|
"w-full flex justify-between",
|
|
304
304
|
this.reversedLayout ? "mb-0.5" : "mt-0.5",
|
|
305
305
|
this.animated && this.reversedLayout && "absolute bottom-0 left-0 !mb-4"
|
|
306
306
|
)}" part="timestamps"><div class="${cx("current-time text-sm", this.inverted ? "text-primary-400" : "text-black")}">${this.currentTime}</div><div class="${cx("current-time text-sm", this.inverted ? "text-primary-400" : "text-black")}">${this.duration}</div></div>`;
|
|
307
|
-
return html`<div class="${cx("w-full flex relative", this.reversedLayout ? "flex-col-reverse" : "flex-col")}" aria-label="${this.localize.term("audioPlayer")}" part="audio-player"><slot @slotchange="${this.updateAudioDuration}"></slot>${!this.animated || this.animated && this.reversedLayout ? renderAudioControls : null}<div class="relative">${this.animated && !this.reversedLayout ? html`${renderAudioControls}` : null} ${this.animated ? html`<canvas class="w-full h-16 -mb-2"></canvas>` : null} ${!this.hideTimestamps && this.animated && this.reversedLayout ? renderTimestamps : null}<sd-5-17-
|
|
307
|
+
return html`<div class="${cx("w-full flex relative", this.reversedLayout ? "flex-col-reverse" : "flex-col")}" aria-label="${this.localize.term("audioPlayer")}" part="audio-player"><slot @slotchange="${this.updateAudioDuration}"></slot>${!this.animated || this.animated && this.reversedLayout ? renderAudioControls : null}<div class="relative">${this.animated && !this.reversedLayout ? html`${renderAudioControls}` : null} ${this.animated ? html`<canvas class="w-full h-16 -mb-2"></canvas>` : null} ${!this.hideTimestamps && this.animated && this.reversedLayout ? renderTimestamps : null}<sd-5-17-2-range part="progress-slider" no-tooltip min="0" max="100" step="0.001" label="${this.localize.term("seekBar")}" @mousedown="${this.handleThumbGrab}" @touchstart="${this.handleThumbGrab}" @mouseup="${this.handleThumbRelease}" @touchend="${this.handleThumbRelease}" @sd-5-17-2-input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}"></sd-5-17-2-range></div>${this.hasSlotController.test("transcript") ? html`<sd-5-17-2-drawer><slot name="transcript"></slot></sd-5-17-2-drawer>` : null} ${!this.hideTimestamps && (!this.animated || !this.reversedLayout) ? renderTimestamps : null}</div>`;
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
310
|
SdAudio.styles = [
|
|
311
311
|
...SolidElement.styles,
|
|
312
|
-
css`sd-5-17-
|
|
312
|
+
css`sd-5-17-2-button::part(base){align-items:center;border-radius:var(--sd-border-radius-full,9999px);display:flex;height:var(--sd-spacing-12,3rem);justify-content:center;width:var(--sd-spacing-12,3rem)}sd-5-17-2-button::part(motion-wrapper){border-radius:var(--sd-border-radius-full,9999px)}sd-5-17-2-button::part(label){align-items:center;display:flex;flex-grow:0}sd-5-17-2-range::part(form-control-label){display:none}:host([inverted]) sd-5-17-2-range::part(thumb){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity,1));outline-color:rgb(var(--sd-color-white,255 255 255)/1)}:host([animated]) sd-5-17-2-range::part(track){background-color:transparent}:host([inverted]:not([animated])) sd-5-17-2-range::part(track){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-bg-opacity,1))}:host([inverted]:not([animated])) sd-5-17-2-range::part(active-track){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity,1))}`
|
|
313
313
|
];
|
|
314
314
|
__decorateClass([
|
|
315
315
|
property({ type: Boolean, reflect: true, attribute: "reversed-layout" })
|
|
@@ -351,13 +351,13 @@ __decorateClass([
|
|
|
351
351
|
query('[part="audio-player"]')
|
|
352
352
|
], SdAudio.prototype, "audioPlayerContainer", 2);
|
|
353
353
|
__decorateClass([
|
|
354
|
-
query("sd-5-17-
|
|
354
|
+
query("sd-5-17-2-drawer")
|
|
355
355
|
], SdAudio.prototype, "drawer", 2);
|
|
356
356
|
__decorateClass([
|
|
357
357
|
query("canvas")
|
|
358
358
|
], SdAudio.prototype, "canvas", 2);
|
|
359
359
|
SdAudio = __decorateClass([
|
|
360
|
-
customElement("sd-5-17-
|
|
360
|
+
customElement("sd-5-17-2-audio")
|
|
361
361
|
], SdAudio);
|
|
362
362
|
|
|
363
363
|
export {
|
|
@@ -18,7 +18,7 @@ var SdTabPanel = class extends SolidElement {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
20
|
this.attrId = ++id;
|
|
21
|
-
this.componentId = `sd-5-17-
|
|
21
|
+
this.componentId = `sd-5-17-2-tab-panel-${this.attrId}`;
|
|
22
22
|
this.name = "";
|
|
23
23
|
this.active = false;
|
|
24
24
|
}
|
|
@@ -48,7 +48,7 @@ __decorateClass([
|
|
|
48
48
|
watch("active")
|
|
49
49
|
], SdTabPanel.prototype, "handleActiveChange", 1);
|
|
50
50
|
SdTabPanel = __decorateClass([
|
|
51
|
-
customElement("sd-5-17-
|
|
51
|
+
customElement("sd-5-17-2-tab-panel")
|
|
52
52
|
], SdTabPanel);
|
|
53
53
|
|
|
54
54
|
export {
|
|
@@ -15,7 +15,7 @@ var FormControlController = class {
|
|
|
15
15
|
const disabled = this.options.disabled(this.host);
|
|
16
16
|
const name = this.options.name(this.host);
|
|
17
17
|
const value = this.options.value(this.host);
|
|
18
|
-
const isButton = this.host.tagName.toLowerCase() === "sd-5-17-
|
|
18
|
+
const isButton = this.host.tagName.toLowerCase() === "sd-5-17-2-button";
|
|
19
19
|
if (!disabled && !isButton && typeof name === "string" && name.length > 0 && typeof value !== "undefined") {
|
|
20
20
|
if (Array.isArray(value)) {
|
|
21
21
|
value.forEach((val) => {
|
|
@@ -40,7 +40,7 @@ var FormControlController = class {
|
|
|
40
40
|
event.stopImmediatePropagation();
|
|
41
41
|
const invalidElements = (_b = this.form) == null ? void 0 : _b.querySelectorAll("[data-invalid]");
|
|
42
42
|
const sdRadioGroups = Array.from(invalidElements).filter(
|
|
43
|
-
(element) => element.tagName.toLowerCase() === "sd-5-17-
|
|
43
|
+
(element) => element.tagName.toLowerCase() === "sd-5-17-2-radio-group"
|
|
44
44
|
);
|
|
45
45
|
sdRadioGroups.forEach((radioGroup) => {
|
|
46
46
|
var _a2, _b2;
|
|
@@ -88,7 +88,7 @@ var FormControlController = class {
|
|
|
88
88
|
},
|
|
89
89
|
reportValidity: (input) => typeof input.reportValidity === "function" ? input.reportValidity() : true,
|
|
90
90
|
setValue: (input, value) => input.value = value,
|
|
91
|
-
assumeInteractionOn: ["sd-5-17-
|
|
91
|
+
assumeInteractionOn: ["sd-5-17-2-input"]
|
|
92
92
|
}, options);
|
|
93
93
|
}
|
|
94
94
|
hostConnected() {
|
|
@@ -60,7 +60,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
60
60
|
this.pausedAutoplay = false;
|
|
61
61
|
this.autoplayController = new AutoplayController(this, () => this.next());
|
|
62
62
|
this.scrollController = new ScrollController(this);
|
|
63
|
-
this.slides = this.getElementsByTagName("sd-5-17-
|
|
63
|
+
this.slides = this.getElementsByTagName("sd-5-17-2-carousel-item");
|
|
64
64
|
// determines which slide is displayed
|
|
65
65
|
// A map containing the state of all the slides
|
|
66
66
|
this.intersectionObserverEntries = /* @__PURE__ */ new Map();
|
|
@@ -449,7 +449,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
449
449
|
)}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${prevEnabled ? "false" : "true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${prevEnabled ? (e) => {
|
|
450
450
|
this.previous();
|
|
451
451
|
this.unblockAutoplay(e, this.previousButton);
|
|
452
|
-
} : null}"><slot name="previous-icon"><sd-5-17-
|
|
452
|
+
} : null}"><slot name="previous-icon"><sd-5-17-2-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${isLtr ? "chevron-down" : "chevron-up"}"></sd-5-17-2-icon></slot></button> ${this.variant === "dot" ? html`<div part="pagination-dot" role="tablist" class="${cx("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${map(range(pagesCount), (index) => {
|
|
453
453
|
const isActive = index + 1 === currentPage;
|
|
454
454
|
return html`<button part="pagination-item ${isActive ? "pagination-item--active" : ""}" class="${cx(
|
|
455
455
|
"carousel__pagination-item",
|
|
@@ -472,7 +472,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
472
472
|
)}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${nextEnabled ? "false" : "true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${nextEnabled ? (e) => {
|
|
473
473
|
this.next();
|
|
474
474
|
this.unblockAutoplay(e, this.nextButton);
|
|
475
|
-
} : null}"><slot name="next-icon"><sd-5-17-
|
|
475
|
+
} : null}"><slot name="next-icon"><sd-5-17-2-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${isLtr ? "chevron-up" : "chevron-down"}"></sd-5-17-2-icon></slot></button></div><button class="${cx(
|
|
476
476
|
"ml-6 !rounded-sm",
|
|
477
477
|
"!absolute !right-0 sd-interactive",
|
|
478
478
|
this.inverted ? "sd-interactive--inverted" : "sd-interactive--reset",
|
|
@@ -482,12 +482,12 @@ var SdCarousel = class extends SolidElement {
|
|
|
482
482
|
if (e.detail) {
|
|
483
483
|
this.autoplayControls.blur();
|
|
484
484
|
}
|
|
485
|
-
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-5-17-
|
|
485
|
+
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-5-17-2-icon class="h-6 w-6 grid place-items-center" library="_internal" name="start"></sd-5-17-2-icon></slot><slot name="autoplay-pause" class="${cx(this.pausedAutoplay ? "hidden" : "")}"><sd-5-17-2-icon class="h-6 w-6 grid place-items-center" library="_internal" name="pause"></sd-5-17-2-icon></slot></button></div></div>`;
|
|
486
486
|
}
|
|
487
487
|
};
|
|
488
488
|
SdCarousel.styles = [
|
|
489
489
|
...SolidElement.styles,
|
|
490
|
-
css`: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}:host([fade]){--carousel-height:auto}:host([fade]) .carousel__slides{display:block;height:var(--carousel-height);overflow:hidden;position:relative}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-5-17-
|
|
490
|
+
css`: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}:host([fade]){--carousel-height:auto}:host([fade]) .carousel__slides{display:block;height:var(--carousel-height);overflow:hidden;position:relative}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-5-17-2-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`
|
|
491
491
|
];
|
|
492
492
|
__decorateClass([
|
|
493
493
|
query('[part~="autoplay-controls"]')
|
|
@@ -560,7 +560,7 @@ __decorateClass([
|
|
|
560
560
|
watch("autoplay")
|
|
561
561
|
], SdCarousel.prototype, "handleAutoplayChange", 1);
|
|
562
562
|
SdCarousel = __decorateClass([
|
|
563
|
-
customElement("sd-5-17-
|
|
563
|
+
customElement("sd-5-17-2-carousel")
|
|
564
564
|
], SdCarousel);
|
|
565
565
|
|
|
566
566
|
export {
|
|
@@ -37,8 +37,8 @@ var SdTabGroup = class extends SolidElement {
|
|
|
37
37
|
}
|
|
38
38
|
connectedCallback() {
|
|
39
39
|
const whenAllDefined = Promise.all([
|
|
40
|
-
customElements.whenDefined("sd-5-17-
|
|
41
|
-
customElements.whenDefined("sd-5-17-
|
|
40
|
+
customElements.whenDefined("sd-5-17-2-tab"),
|
|
41
|
+
customElements.whenDefined("sd-5-17-2-tab-panel")
|
|
42
42
|
]);
|
|
43
43
|
super.connectedCallback();
|
|
44
44
|
this.resizeObserver = new ResizeObserver(() => {
|
|
@@ -86,20 +86,20 @@ var SdTabGroup = class extends SolidElement {
|
|
|
86
86
|
}
|
|
87
87
|
getAllTabs(options = { includeDisabled: true }) {
|
|
88
88
|
const slot = this.shadowRoot.querySelector('slot[name="nav"]');
|
|
89
|
-
return Array.from(slot.assignedElements()).map((el) => el.tagName.toLocaleLowerCase() === "sd-5-17-
|
|
90
|
-
return el && options.includeDisabled ? el.tagName.toLowerCase() === "sd-5-17-
|
|
89
|
+
return Array.from(slot.assignedElements()).map((el) => el.tagName.toLocaleLowerCase() === "sd-5-17-2-tab" ? el : el.querySelector("sd-5-17-2-tab")).filter((el) => {
|
|
90
|
+
return el && options.includeDisabled ? el.tagName.toLowerCase() === "sd-5-17-2-tab" : el.tagName.toLowerCase() === "sd-5-17-2-tab" && !el.disabled;
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
getAllPanels() {
|
|
94
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-5-17-
|
|
94
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-5-17-2-tab-panel");
|
|
95
95
|
}
|
|
96
96
|
getActiveTab() {
|
|
97
97
|
return this.tabs.find((t) => t.matches(":focus"));
|
|
98
98
|
}
|
|
99
99
|
handleClick(event) {
|
|
100
100
|
const target = event.target;
|
|
101
|
-
const tab = target.closest("sd-5-17-
|
|
102
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-5-17-
|
|
101
|
+
const tab = target.closest("sd-5-17-2-tab");
|
|
102
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-5-17-2-tab-group");
|
|
103
103
|
if (tabGroup !== this) {
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
@@ -109,8 +109,8 @@ var SdTabGroup = class extends SolidElement {
|
|
|
109
109
|
}
|
|
110
110
|
handleKeyDown(event) {
|
|
111
111
|
const target = event.target;
|
|
112
|
-
const tab = target.closest("sd-5-17-
|
|
113
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-5-17-
|
|
112
|
+
const tab = target.closest("sd-5-17-2-tab");
|
|
113
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-5-17-2-tab-group");
|
|
114
114
|
if (tabGroup !== this) {
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
@@ -137,7 +137,7 @@ var SdTabGroup = class extends SolidElement {
|
|
|
137
137
|
if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)) {
|
|
138
138
|
const activeEl = this.tabs.find((t) => t.matches(":focus"));
|
|
139
139
|
const isRtl = this.localize.dir() === "rtl";
|
|
140
|
-
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-5-17-
|
|
140
|
+
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-5-17-2-tab") {
|
|
141
141
|
let index = this.tabs.indexOf(activeEl);
|
|
142
142
|
if (event.key === "Home") {
|
|
143
143
|
index = 0;
|
|
@@ -258,15 +258,15 @@ var SdTabGroup = class extends SolidElement {
|
|
|
258
258
|
return html`<div part="base" class="${cx("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${cx(this.hasScrollControls && "relative py-0 px-12")}">${this.hasScrollControls ? html`<button part="scroll-button--start" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" disabled="${ifDefined(!this.canScroll.left || void 0)}" class="${cx(
|
|
259
259
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
260
260
|
this.localize.dir() === "rtl" && "left-auto right-0"
|
|
261
|
-
)}" @click="${this.handleScrollToStart}"><sd-5-17-
|
|
261
|
+
)}" @click="${this.handleScrollToStart}"><sd-5-17-2-icon library="_internal" name="${isRtl ? "chevron-up" : "chevron-down"}" label="previous" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-5-17-2-icon></button>` : ""}<div part="scroll-container" class="flex overflow-x-auto focus-visible:focus-outline !outline-offset-0"><div part="tabs" class="${cx("flex flex-auto relative flex-row")}" role="tablist">${((_a = this.activeTab) == null ? void 0 : _a.variant) !== "container" ? html`<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 ? html`<button part="scroll-button--end" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" disabled="${ifDefined(!this.canScroll.right || void 0)}" class="${cx(
|
|
262
262
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
263
263
|
this.localize.dir() === "rtl" && "right-auto left-0"
|
|
264
|
-
)}" @click="${this.handleScrollToEnd}"><sd-5-17-
|
|
264
|
+
)}" @click="${this.handleScrollToEnd}"><sd-5-17-2-icon library="_internal" name="${isRtl ? "chevron-down" : "chevron-up"}" label="next" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-5-17-2-icon></button>` : ""}</div><slot part="body" class="${cx("block auto py-8 px-6", this.variant === "container" && "border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`;
|
|
265
265
|
}
|
|
266
266
|
};
|
|
267
267
|
SdTabGroup.styles = [
|
|
268
268
|
...SolidElement.styles,
|
|
269
|
-
css`: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-17-
|
|
269
|
+
css`: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-17-2-tab-panel){--padding:1rem 0}::slotted(sd-5-17-2-tab-panel:focus-visible){outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}`
|
|
270
270
|
];
|
|
271
271
|
__decorateClass([
|
|
272
272
|
query("[part=base]")
|
|
@@ -299,7 +299,7 @@ __decorateClass([
|
|
|
299
299
|
debounce(20)
|
|
300
300
|
], SdTabGroup.prototype, "handleScroll", 1);
|
|
301
301
|
SdTabGroup = __decorateClass([
|
|
302
|
-
customElement("sd-5-17-
|
|
302
|
+
customElement("sd-5-17-2-tab-group")
|
|
303
303
|
], SdTabGroup);
|
|
304
304
|
|
|
305
305
|
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-17-
|
|
41
|
+
return html`<sd-5-17-2-link part="base" href="${ifDefined(!this.current ? this.href : void 0)}" target="${this.target}" standalone class="text-nowrap"><slot></slot></sd-5-17-2-link>`;
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
SdBreadcrumbItem.styles = [
|
|
45
45
|
...SolidElement.styles,
|
|
46
|
-
css`:host{align-items:center;display:inline-flex}sd-5-17-
|
|
46
|
+
css`:host{align-items:center;display:inline-flex}sd-5-17-2-link::part(base){align-items:center}sd-5-17-2-link::part(icon-left){display:inline-flex;margin-right:var(--sd-spacing-0,0)}sd-5-17-2-link sd-5-17-2-icon{margin:var(--sd-spacing-0,0)}:host([current]) sd-5-17-2-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-17-2-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-17-
|
|
64
|
+
customElement("sd-5-17-2-breadcrumb-item")
|
|
65
65
|
], SdBreadcrumbItem);
|
|
66
66
|
|
|
67
67
|
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-17-
|
|
38
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-17-2-icon library="_internal" name="chevron-down" class="group-hover:text-primary-500 transition-colors ease-in-out duration-medium"></sd-5-17-2-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-5-17-2-icon library="_internal" name="chevron-down" class="group-hover:text-primary-500 transition-colors ease-in-out duration-medium"></sd-5-17-2-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-17-
|
|
49
|
+
customElement("sd-5-17-2-quickfact")
|
|
50
50
|
], SdQuickfact);
|
|
51
51
|
setDefaultAnimation("quickfact.show", {
|
|
52
52
|
keyframes: [{ height: "0" }, { height: "auto" }],
|