@solid-design-system/components 6.16.3 → 6.16.5
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.I3AKT6BV.js +2 -0
- package/cdn/chunks/chunk.WWGARXPI.js +1 -0
- package/cdn/components/datepicker/datepicker.js +1 -1
- package/cdn/custom-elements.json +1 -1
- package/cdn/solid-components.bundle.js +22 -22
- package/cdn/solid-components.iife.js +21 -21
- package/cdn/solid-components.js +1 -1
- package/cdn/utilities/date.js +1 -1
- package/cdn/web-types.json +1 -1
- package/cdn-versioned/chunks/chunk.2B2B5P3U.js +2 -2
- package/cdn-versioned/chunks/chunk.3JB5EY7E.js +2 -2
- package/cdn-versioned/chunks/chunk.3MGPNQP3.js +2 -2
- package/cdn-versioned/chunks/chunk.3S7LCENC.js +2 -2
- package/cdn-versioned/chunks/chunk.4BTXQAGS.js +2 -2
- package/cdn-versioned/chunks/chunk.4EDRKPMV.js +1 -1
- package/cdn-versioned/chunks/chunk.52TRFRJK.js +2 -2
- package/cdn-versioned/chunks/chunk.5BES77F3.js +2 -2
- package/cdn-versioned/chunks/chunk.6FABT2P2.js +1 -1
- package/cdn-versioned/chunks/chunk.6G62L252.js +2 -2
- package/cdn-versioned/chunks/chunk.6KFFDNWZ.js +2 -2
- package/cdn-versioned/chunks/chunk.7X7C3TVK.js +5 -5
- package/cdn-versioned/chunks/chunk.7YCGT7U6.js +2 -2
- package/cdn-versioned/chunks/chunk.A2RFNZUI.js +2 -2
- package/cdn-versioned/chunks/chunk.AMY757PV.js +2 -2
- package/cdn-versioned/chunks/chunk.AWT6CEDB.js +2 -2
- package/cdn-versioned/chunks/chunk.BMADIO4C.js +1 -1
- package/cdn-versioned/chunks/chunk.BURXWAXN.js +2 -2
- package/cdn-versioned/chunks/chunk.BZ4RCXT2.js +2 -2
- package/cdn-versioned/chunks/chunk.BZLEZINT.js +2 -2
- package/cdn-versioned/chunks/chunk.CCNRQLG6.js +2 -2
- package/cdn-versioned/chunks/chunk.CSVJ5WK2.js +2 -2
- package/cdn-versioned/chunks/chunk.CX5IPEVT.js +2 -2
- package/cdn-versioned/chunks/chunk.DJZKZO3Y.js +2 -2
- package/cdn-versioned/chunks/chunk.E4XIKDUB.js +2 -2
- package/cdn-versioned/chunks/chunk.ELZMOANU.js +2 -2
- package/cdn-versioned/chunks/chunk.EP63MBIC.js +1 -1
- package/cdn-versioned/chunks/chunk.EXWRCLBQ.js +2 -2
- package/cdn-versioned/chunks/chunk.FBXBQWU2.js +1 -1
- package/cdn-versioned/chunks/chunk.FEAXOG7O.js +2 -2
- package/cdn-versioned/chunks/chunk.FT2B3D2H.js +3 -3
- package/cdn-versioned/chunks/chunk.GLO2H56S.js +2 -2
- package/cdn-versioned/chunks/chunk.GQTD57NE.js +2 -2
- package/cdn-versioned/chunks/chunk.GS5LOZLS.js +3 -3
- package/cdn-versioned/chunks/chunk.HLHMPYHS.js +2 -2
- package/cdn-versioned/chunks/chunk.I3AKT6BV.js +2 -0
- package/cdn-versioned/chunks/chunk.IFICRO7C.js +1 -1
- package/cdn-versioned/chunks/chunk.JHFM7KUH.js +2 -2
- package/cdn-versioned/chunks/chunk.JYLCWE5C.js +2 -2
- package/cdn-versioned/chunks/chunk.K6GLS6QL.js +1 -1
- package/cdn-versioned/chunks/chunk.LMXWTQJ5.js +2 -2
- package/cdn-versioned/chunks/chunk.LQ6VYVB5.js +2 -2
- package/cdn-versioned/chunks/chunk.ODC5ODPF.js +2 -2
- package/cdn-versioned/chunks/chunk.OFLN42UZ.js +2 -2
- package/cdn-versioned/chunks/chunk.OXXPH6YP.js +1 -1
- package/cdn-versioned/chunks/chunk.QAY6EJHY.js +2 -2
- package/cdn-versioned/chunks/chunk.R2Q62L3N.js +1 -1
- package/cdn-versioned/chunks/chunk.RAP66B6O.js +1 -1
- package/cdn-versioned/chunks/chunk.RZLPEVBG.js +2 -2
- package/cdn-versioned/chunks/chunk.VC6JNTW2.js +2 -2
- package/cdn-versioned/chunks/chunk.VT4WT4Y5.js +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WPSLP7SF.js +1 -1
- package/cdn-versioned/chunks/chunk.WR5GB2RK.js +2 -2
- package/cdn-versioned/chunks/chunk.WWGARXPI.js +1 -0
- package/cdn-versioned/chunks/chunk.X4UWQNTP.js +5 -5
- package/cdn-versioned/chunks/chunk.X6WPUO3U.js +2 -2
- package/cdn-versioned/chunks/chunk.XDDAXBEN.js +2 -2
- package/cdn-versioned/chunks/chunk.YA5ZEOKP.js +2 -2
- package/cdn-versioned/chunks/chunk.YPTZDABK.js +1 -1
- package/cdn-versioned/chunks/chunk.YY4JMXTS.js +2 -2
- package/cdn-versioned/chunks/chunk.ZBE6FUBE.js +2 -2
- package/cdn-versioned/chunks/chunk.ZFJ3T7TZ.js +9 -9
- package/cdn-versioned/chunks/chunk.ZLJ4GRUR.js +2 -2
- package/cdn-versioned/chunks/chunk.ZRHL55WX.js +2 -2
- 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-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/datepicker/datepicker.js +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/theme-listener/theme-listener.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 +245 -245
- package/cdn-versioned/internal/form.js +2 -2
- package/cdn-versioned/solid-components.bundle.js +83 -83
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +83 -83
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/utilities/date.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +107 -107
- package/cdn-versioned/web-types.json +157 -157
- package/dist/chunks/{chunk.SMPFJ52B.js → chunk.A4LR62QO.js} +8 -16
- package/dist/chunks/{chunk.QF4M6XJ6.js → chunk.XDGNL4X6.js} +17 -3
- package/dist/components/datepicker/datepicker.js +2 -2
- package/dist/custom-elements.json +1 -1
- package/dist/solid-components.js +5 -5
- package/dist/utilities/date.js +1 -1
- package/dist/web-types.json +1 -1
- package/dist-versioned/chunks/chunk.27CORLGD.js +2 -2
- package/dist-versioned/chunks/chunk.2EDPY2A5.js +2 -2
- package/dist-versioned/chunks/chunk.36OESV3O.js +1 -1
- package/dist-versioned/chunks/chunk.3PROMK3G.js +10 -10
- package/dist-versioned/chunks/chunk.4FQGHIRS.js +3 -3
- package/dist-versioned/chunks/chunk.4OJXQ3S3.js +4 -4
- package/dist-versioned/chunks/chunk.4WJBOMWG.js +11 -11
- package/dist-versioned/chunks/chunk.4YGFM4I2.js +6 -6
- package/dist-versioned/chunks/chunk.5DLSMYYF.js +5 -5
- package/dist-versioned/chunks/chunk.6GDF7RP6.js +5 -5
- package/dist-versioned/chunks/chunk.6JXHY72O.js +3 -3
- package/dist-versioned/chunks/chunk.6SZCCE7T.js +2 -2
- package/dist-versioned/chunks/chunk.6WM4R2DA.js +3 -3
- package/dist-versioned/chunks/chunk.7LLWTMC3.js +14 -14
- package/dist-versioned/chunks/chunk.7OODH6S5.js +5 -5
- package/dist-versioned/chunks/chunk.7YOG7JGW.js +4 -4
- package/dist-versioned/chunks/{chunk.SMPFJ52B.js → chunk.A4LR62QO.js} +8 -16
- package/dist-versioned/chunks/chunk.AJJI7TJL.js +2 -2
- package/dist-versioned/chunks/chunk.ANNKBF6X.js +32 -32
- package/dist-versioned/chunks/chunk.AQU3K3QW.js +2 -2
- package/dist-versioned/chunks/chunk.BDGTWJIT.js +12 -12
- package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
- package/dist-versioned/chunks/chunk.CDI4YMFV.js +4 -4
- package/dist-versioned/chunks/chunk.E2USZ7GU.js +6 -6
- package/dist-versioned/chunks/chunk.EGVMKWID.js +1 -1
- package/dist-versioned/chunks/chunk.ELS2J6VM.js +10 -10
- package/dist-versioned/chunks/chunk.FJM4XRBD.js +2 -2
- package/dist-versioned/chunks/chunk.FQAUOX63.js +1 -1
- package/dist-versioned/chunks/chunk.FRVVZRCH.js +1 -1
- package/dist-versioned/chunks/chunk.FV63VR7F.js +13 -13
- package/dist-versioned/chunks/chunk.FXZL5TSR.js +2 -2
- package/dist-versioned/chunks/chunk.HMOYAY72.js +5 -5
- package/dist-versioned/chunks/chunk.IRPULK4T.js +9 -9
- package/dist-versioned/chunks/chunk.IXAGOL3L.js +6 -6
- package/dist-versioned/chunks/chunk.IXY6JRMU.js +3 -3
- package/dist-versioned/chunks/chunk.J2WMB4UM.js +11 -11
- package/dist-versioned/chunks/chunk.JCFYB72C.js +3 -3
- package/dist-versioned/chunks/chunk.JT57FH4I.js +25 -25
- package/dist-versioned/chunks/chunk.JYR67QON.js +2 -2
- package/dist-versioned/chunks/chunk.K7OGNZLO.js +1 -1
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KJN55623.js +11 -11
- package/dist-versioned/chunks/chunk.KLN5272I.js +5 -5
- package/dist-versioned/chunks/chunk.MBVWPMPN.js +4 -4
- package/dist-versioned/chunks/chunk.MMI44BVI.js +2 -2
- package/dist-versioned/chunks/chunk.MQG727Y4.js +4 -4
- package/dist-versioned/chunks/chunk.NAD637BO.js +5 -5
- package/dist-versioned/chunks/chunk.OQ5QEVJF.js +6 -6
- package/dist-versioned/chunks/chunk.P6YK6F7T.js +3 -3
- package/dist-versioned/chunks/chunk.PJ4LG3IZ.js +10 -10
- package/dist-versioned/chunks/chunk.PO2OMSAQ.js +8 -8
- package/dist-versioned/chunks/chunk.RL7BJYL6.js +1 -1
- package/dist-versioned/chunks/chunk.RXD64SUC.js +4 -4
- package/dist-versioned/chunks/chunk.S3AIPHMB.js +25 -25
- package/dist-versioned/chunks/chunk.UE4MIFO2.js +2 -2
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.V3RBONZ7.js +2 -2
- package/dist-versioned/chunks/chunk.WV4VZLSM.js +7 -7
- package/dist-versioned/chunks/chunk.X7XDUKGF.js +1 -1
- package/dist-versioned/chunks/{chunk.QF4M6XJ6.js → chunk.XDGNL4X6.js} +27 -13
- package/dist-versioned/chunks/chunk.XNTGIC2L.js +1 -1
- package/dist-versioned/chunks/chunk.Y226ELYU.js +5 -5
- package/dist-versioned/chunks/chunk.YC3R5M35.js +5 -5
- package/dist-versioned/chunks/chunk.YGCCHEFS.js +6 -6
- package/dist-versioned/chunks/chunk.ZN4E3BW3.js +5 -5
- 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-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/datepicker/datepicker.js +2 -2
- 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/theme-listener/theme-listener.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 +245 -245
- package/dist-versioned/internal/form.js +2 -2
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +5 -5
- package/dist-versioned/utilities/date.js +1 -1
- package/dist-versioned/vscode.html-custom-data.json +107 -107
- package/dist-versioned/web-types.json +157 -157
- package/package.json +1 -1
- package/cdn/chunks/chunk.3MADQ6HK.js +0 -1
- package/cdn/chunks/chunk.HHEQMSA3.js +0 -2
- package/cdn-versioned/chunks/chunk.3MADQ6HK.js +0 -1
- package/cdn-versioned/chunks/chunk.HHEQMSA3.js +0 -2
|
@@ -22,22 +22,14 @@ var DateUtils = {
|
|
|
22
22
|
},
|
|
23
23
|
parseLocalISO: (iso) => {
|
|
24
24
|
if (!iso) return null;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} else if (/^\d{4}\.\d{2}\.\d{2}$/.test(iso)) {
|
|
34
|
-
const parts = iso.split(".");
|
|
35
|
-
y = Number(parts[0]);
|
|
36
|
-
m = Number(parts[1]) - 1;
|
|
37
|
-
d = Number(parts[2]);
|
|
38
|
-
} else {
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
25
|
+
const trimmed = iso.trim();
|
|
26
|
+
if (!trimmed) return null;
|
|
27
|
+
const normalized = trimmed.replace(/[./]/g, "-");
|
|
28
|
+
const match = normalized.match(/^(\d{4})-(\d{2})-(\d{2})$/);
|
|
29
|
+
if (!match) return null;
|
|
30
|
+
const y = Number(match[1]);
|
|
31
|
+
const m = Number(match[2]) - 1;
|
|
32
|
+
const d = Number(match[3]);
|
|
41
33
|
const date = new Date(y, m, d);
|
|
42
34
|
return Number.isNaN(date.getTime()) ? null : date;
|
|
43
35
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DateUtils
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.A4LR62QO.js";
|
|
4
4
|
import {
|
|
5
5
|
FormControlController
|
|
6
6
|
} from "./chunk.C3WIBDGG.js";
|
|
@@ -656,8 +656,22 @@ var SdDatepicker = class extends SolidElement {
|
|
|
656
656
|
return DateUtils.parseLocalISO(iso);
|
|
657
657
|
}
|
|
658
658
|
inMinMax(d) {
|
|
659
|
-
const
|
|
660
|
-
|
|
659
|
+
const normalizeBound = (value) => {
|
|
660
|
+
if (value === void 0 || value === null) return null;
|
|
661
|
+
if (value instanceof Date) {
|
|
662
|
+
return DateUtils.startOfDayLocal(value);
|
|
663
|
+
}
|
|
664
|
+
if (typeof value === "number") {
|
|
665
|
+
return DateUtils.startOfDayLocal(new Date(value));
|
|
666
|
+
}
|
|
667
|
+
if (typeof value === "string") {
|
|
668
|
+
const parsed = this.parseISO(value);
|
|
669
|
+
return parsed ? DateUtils.startOfDayLocal(parsed) : null;
|
|
670
|
+
}
|
|
671
|
+
return null;
|
|
672
|
+
};
|
|
673
|
+
const min = normalizeBound(this.min);
|
|
674
|
+
const max = normalizeBound(this.max);
|
|
661
675
|
if (min && d < min) return false;
|
|
662
676
|
if (max && d > max) return false;
|
|
663
677
|
return true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SdDatepicker
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.XDGNL4X6.js";
|
|
4
|
+
import "../../chunks/chunk.A4LR62QO.js";
|
|
5
5
|
import "../../chunks/chunk.6JXHY72O.js";
|
|
6
6
|
import "../../chunks/chunk.X7XDUKGF.js";
|
|
7
7
|
import "../../chunks/chunk.C3WIBDGG.js";
|
|
@@ -22867,7 +22867,7 @@
|
|
|
22867
22867
|
"package": {
|
|
22868
22868
|
"name": "@solid-design-system/components",
|
|
22869
22869
|
"description": "Solid Design System: Components",
|
|
22870
|
-
"version": "6.16.
|
|
22870
|
+
"version": "6.16.5",
|
|
22871
22871
|
"author": "Union Investment",
|
|
22872
22872
|
"homepage": "https://solid-design-system.fe.union-investment.de/docs/",
|
|
22873
22873
|
"license": "MIT"
|
package/dist/solid-components.js
CHANGED
|
@@ -26,12 +26,12 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
SdTabPanel
|
|
28
28
|
} from "./chunks/chunk.FXZL5TSR.js";
|
|
29
|
-
import {
|
|
30
|
-
SdTeaserMedia
|
|
31
|
-
} from "./chunks/chunk.OQ5QEVJF.js";
|
|
32
29
|
import {
|
|
33
30
|
SdTeaser
|
|
34
31
|
} from "./chunks/chunk.ZN4E3BW3.js";
|
|
32
|
+
import {
|
|
33
|
+
SdTeaserMedia
|
|
34
|
+
} from "./chunks/chunk.OQ5QEVJF.js";
|
|
35
35
|
import {
|
|
36
36
|
SdRange
|
|
37
37
|
} from "./chunks/chunk.Y226ELYU.js";
|
|
@@ -99,8 +99,8 @@ import {
|
|
|
99
99
|
} from "./chunks/chunk.EGVMKWID.js";
|
|
100
100
|
import {
|
|
101
101
|
SdDatepicker
|
|
102
|
-
} from "./chunks/chunk.
|
|
103
|
-
import "./chunks/chunk.
|
|
102
|
+
} from "./chunks/chunk.XDGNL4X6.js";
|
|
103
|
+
import "./chunks/chunk.A4LR62QO.js";
|
|
104
104
|
import {
|
|
105
105
|
SdDialog
|
|
106
106
|
} from "./chunks/chunk.2EDPY2A5.js";
|
package/dist/utilities/date.js
CHANGED
package/dist/web-types.json
CHANGED
|
@@ -54,7 +54,7 @@ var SdHeader = class extends SolidElement {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return html`<header class="w-full sd-6-16-
|
|
57
|
+
return html`<header class="w-full sd-6-16-5-header-color-background sd-6-16-5-header-padding-bottom relative" role="banner"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`;
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
SdHeader.styles = [
|
|
@@ -72,7 +72,7 @@ __decorateClass([
|
|
|
72
72
|
debounce(100)
|
|
73
73
|
], SdHeader.prototype, "updateCalculatedHeight", 1);
|
|
74
74
|
SdHeader = __decorateClass([
|
|
75
|
-
customElement("sd-6-16-
|
|
75
|
+
customElement("sd-6-16-5-header")
|
|
76
76
|
], SdHeader);
|
|
77
77
|
|
|
78
78
|
export {
|
|
@@ -183,7 +183,7 @@ var SdDialog = class extends SolidElement {
|
|
|
183
183
|
)}"><div part="overlay" class="fixed inset-0 overlay-color-background" @click="${() => this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${cx(
|
|
184
184
|
"panel-color-border border 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-6-16-
|
|
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-6-16-5-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-6-16-5-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-6-16-5-icon></sd-6-16-5-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 = [
|
|
@@ -213,7 +213,7 @@ __decorateClass([
|
|
|
213
213
|
watch("open", { waitUntilFirstUpdate: true })
|
|
214
214
|
], SdDialog.prototype, "handleOpenChange", 1);
|
|
215
215
|
SdDialog = __decorateClass([
|
|
216
|
-
customElement("sd-6-16-
|
|
216
|
+
customElement("sd-6-16-5-dialog")
|
|
217
217
|
], SdDialog);
|
|
218
218
|
setDefaultAnimation("dialog.show", {
|
|
219
219
|
keyframes: [
|
|
@@ -211,22 +211,22 @@ var SdNotification = class extends SolidElement {
|
|
|
211
211
|
warning: "bg-warning",
|
|
212
212
|
error: "bg-error"
|
|
213
213
|
}[this.variant]
|
|
214
|
-
)}"><sd-6-16-
|
|
214
|
+
)}"><sd-6-16-5-icon name="${{
|
|
215
215
|
info: "info-circle",
|
|
216
216
|
success: "confirm-circle",
|
|
217
217
|
warning: "exclamation-circle",
|
|
218
218
|
error: "warning"
|
|
219
|
-
}[this.variant] || ""}" library="_internal" class="h-6 w-6 text-white"></sd-6-16-
|
|
219
|
+
}[this.variant] || ""}" library="_internal" class="h-6 w-6 text-white"></sd-6-16-5-icon></slot><div part="content" class="${cx(
|
|
220
220
|
"h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white",
|
|
221
|
-
"border-solid border-[1px] border-l-0 sd-6-16-
|
|
221
|
+
"border-solid border-[1px] border-l-0 sd-6-16-5-notification-color-border",
|
|
222
222
|
{
|
|
223
|
-
info: "sd-6-16-
|
|
224
|
-
success: "sd-6-16-
|
|
225
|
-
warning: "sd-6-16-
|
|
226
|
-
error: "sd-6-16-
|
|
223
|
+
info: "sd-6-16-5-notification--info-color-background",
|
|
224
|
+
success: "sd-6-16-5-notification--success-color-background",
|
|
225
|
+
warning: "sd-6-16-5-notification--warning-color-background",
|
|
226
|
+
error: "sd-6-16-5-notification--error-color-background"
|
|
227
227
|
}[this.variant]
|
|
228
|
-
)}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable ? html`<sd-6-16-
|
|
229
|
-
`absolute w-0 h-[2px] bottom-0 sd-6-16-
|
|
228
|
+
)}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable ? html`<sd-6-16-5-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-6-16-5-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-6-16-5-icon></sd-6-16-5-button>` : ""}</div>${this.durationIndicator ? html`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${cx(
|
|
229
|
+
`absolute w-0 h-[2px] bottom-0 sd-6-16-5-notification__duration-indicator-color-background z-10 animate-grow`
|
|
230
230
|
)}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>` : ""}</div></div>`;
|
|
231
231
|
}
|
|
232
232
|
};
|
|
@@ -272,7 +272,7 @@ __decorateClass([
|
|
|
272
272
|
watch("duration")
|
|
273
273
|
], SdNotification.prototype, "handleDurationChange", 1);
|
|
274
274
|
SdNotification = __decorateClass([
|
|
275
|
-
customElement("sd-6-16-
|
|
275
|
+
customElement("sd-6-16-5-notification")
|
|
276
276
|
], SdNotification);
|
|
277
277
|
setDefaultAnimation("notification.show", {
|
|
278
278
|
keyframes: [
|
|
@@ -113,7 +113,7 @@ var SdMenu = class extends SolidElement {
|
|
|
113
113
|
}
|
|
114
114
|
isMenuItem(item) {
|
|
115
115
|
var _a;
|
|
116
|
-
return item.tagName.toLowerCase() === "sd-6-16-
|
|
116
|
+
return item.tagName.toLowerCase() === "sd-6-16-5-menu-item" || ["menuitem", "menuitemcheckbox", "menuitemradio"].includes((_a = item.getAttribute("role")) != null ? _a : "");
|
|
117
117
|
}
|
|
118
118
|
/** @internal Gets all slotted menu items, ignoring dividers, headers, and other elements. */
|
|
119
119
|
getAllItems() {
|
|
@@ -148,13 +148,13 @@ var SdMenu = class extends SolidElement {
|
|
|
148
148
|
SdMenu.styles = [
|
|
149
149
|
...SolidElement.styles,
|
|
150
150
|
css`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
151
|
-
:host{position:relative;display:block;overflow:auto;overscroll-behavior:auto;border-radius:var(--sd-radius-md);padding-inline:var(--sd-spacing-2);padding-block:var(--sd-spacing-3);--tw-shadow:var(--sd-shadow)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}::slotted(sd-6-16-
|
|
151
|
+
:host{position:relative;display:block;overflow:auto;overscroll-behavior:auto;border-radius:var(--sd-radius-md);padding-inline:var(--sd-spacing-2);padding-block:var(--sd-spacing-3);--tw-shadow:var(--sd-shadow)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}::slotted(sd-6-16-5-divider){padding-block:var(--sd-spacing-3)}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}`
|
|
152
152
|
];
|
|
153
153
|
__decorateClass([
|
|
154
154
|
query("slot")
|
|
155
155
|
], SdMenu.prototype, "defaultSlot", 2);
|
|
156
156
|
SdMenu = __decorateClass([
|
|
157
|
-
customElement("sd-6-16-
|
|
157
|
+
customElement("sd-6-16-5-menu")
|
|
158
158
|
], SdMenu);
|
|
159
159
|
|
|
160
160
|
export {
|
|
@@ -64,9 +64,9 @@ var SdRadioButton = class extends SolidElement {
|
|
|
64
64
|
const hasIconSlot = this.hasSlotController.test("icon");
|
|
65
65
|
const buttonSizeClass = `${this.size}-${hasDefaultSlot ? "label" : "no-label"}`;
|
|
66
66
|
return html`<div part="base" role="presentation" class="relative"><button part="${`button${this.checked ? " button--checked" : ""}`}" role="radio" aria-checked="${this.checked}" class="${cx(
|
|
67
|
-
"relative text-center sd-6-16-
|
|
67
|
+
"relative text-center sd-6-16-5-radio-button-border-radius transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline choice-control-font-weight",
|
|
68
68
|
this.size === "sm" ? "text-sm" : "text-base",
|
|
69
|
-
this.checked && !this.disabled && !this.visuallyDisabled ? "sd-6-16-
|
|
69
|
+
this.checked && !this.disabled && !this.visuallyDisabled ? "sd-6-16-5-button--primary--default-color-background sd-6-16-5-button--primary--default-color-text hover:sd-6-16-5-button--primary--hover-color-background hover:text-primary-100" : !this.checked && (this.disabled || this.visuallyDisabled) ? "text-neutral-500 hover:cursor-not-allowed" : this.checked && (this.disabled || this.visuallyDisabled) ? "bg-neutral-400 text-white hover:cursor-not-allowed " : "bg-transparent sd-6-16-5-radio-button-color-text border-primary cursor-pointer hover:sd-6-16-5-radio-button--hover-color-background hover:sd-6-16-5-radio-button--hover-color-text",
|
|
70
70
|
hasDefaultSlot && {
|
|
71
71
|
sm: "px-3",
|
|
72
72
|
md: "px-4",
|
|
@@ -89,7 +89,7 @@ var SdRadioButton = class extends SolidElement {
|
|
|
89
89
|
SdRadioButton.styles = [
|
|
90
90
|
...SolidElement.styles,
|
|
91
91
|
css`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
92
|
-
:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;position:absolute;inset:calc(var(--sd-spacing-1) * 0);z-index:calc(10 * -1);opacity:var(--sd-opacity-0);outline-style:var(--tw-outline-style);outline-width:1px;outline-color:var(--sd-color-border-error,var(--sd-color-error));--tw-outline-style:dotted;outline-style:dotted}.lg-label{height:46px}.lg-no-label{height:46px;padding-inline:calc(var(--sd-spacing-1) * 5)}.md-label{height:38px}.md-no-label{height:38px;padding-inline:var(--sd-spacing-4)}.sm-label{height:30px}.sm-no-label{height:30px;padding-inline:var(--sd-spacing-3)}:host([size=lg].sd-6-16-
|
|
92
|
+
:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;position:absolute;inset:calc(var(--sd-spacing-1) * 0);z-index:calc(10 * -1);opacity:var(--sd-opacity-0);outline-style:var(--tw-outline-style);outline-width:1px;outline-color:var(--sd-color-border-error,var(--sd-color-error));--tw-outline-style:dotted;outline-style:dotted}.lg-label{height:46px}.lg-no-label{height:46px;padding-inline:calc(var(--sd-spacing-1) * 5)}.md-label{height:38px}.md-no-label{height:38px;padding-inline:var(--sd-spacing-4)}.sm-label{height:30px}.sm-no-label{height:30px;padding-inline:var(--sd-spacing-3)}:host([size=lg].sd-6-16-5-button-group__button:not(.sd-6-16-5-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-3) * -1)}:host([size=md].sd-6-16-5-button-group__button:not(.sd-6-16-5-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-2) * -1)}:host([size=sm].sd-6-16-5-button-group__button:not(.sd-6-16-5-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-1) * -1)}:host(.sd-6-16-5-button-group__button--hover){z-index:20}:host(.sd-6-16-5-button-group__button--focus),:host(.sd-6-16-5-button-group__button[checked]){z-index:10}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`
|
|
93
93
|
];
|
|
94
94
|
__decorateClass([
|
|
95
95
|
query(".button")
|
|
@@ -119,7 +119,7 @@ __decorateClass([
|
|
|
119
119
|
watch(["disabled", "visually-disabled"], { waitUntilFirstUpdate: true })
|
|
120
120
|
], SdRadioButton.prototype, "handleDisabledChange", 1);
|
|
121
121
|
SdRadioButton = __decorateClass([
|
|
122
|
-
customElement("sd-6-16-
|
|
122
|
+
customElement("sd-6-16-5-radio-button")
|
|
123
123
|
], SdRadioButton);
|
|
124
124
|
|
|
125
125
|
export {
|
|
@@ -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-6-16-
|
|
20
|
+
button == null ? void 0 : button.classList.add("sd-6-16-5-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-6-16-
|
|
24
|
+
button == null ? void 0 : button.classList.remove("sd-6-16-5-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-6-16-
|
|
28
|
+
button == null ? void 0 : button.classList.add("sd-6-16-5-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-6-16-
|
|
32
|
+
button == null ? void 0 : button.classList.remove("sd-6-16-5-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-6-16-
|
|
41
|
-
button.classList.toggle("sd-6-16-
|
|
42
|
-
button.classList.toggle("sd-6-16-
|
|
43
|
-
button.classList.toggle("sd-6-16-
|
|
44
|
-
button.classList.toggle("sd-6-16-
|
|
40
|
+
button.classList.add("sd-6-16-5-button-group__button");
|
|
41
|
+
button.classList.toggle("sd-6-16-5-button-group__button--first", index === 0);
|
|
42
|
+
button.classList.toggle("sd-6-16-5-button-group__button--inner", index > 0 && index < slottedElements.length - 1);
|
|
43
|
+
button.classList.toggle("sd-6-16-5-button-group__button--last", index === slottedElements.length - 1);
|
|
44
|
+
button.classList.toggle("sd-6-16-5-button-group__button--radio", button.tagName.toLowerCase() === "sd-6-16-5-radio-button");
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
}
|
|
@@ -64,11 +64,11 @@ __decorateClass([
|
|
|
64
64
|
property({ type: String, reflect: true })
|
|
65
65
|
], SdButtonGroup.prototype, "label", 2);
|
|
66
66
|
SdButtonGroup = __decorateClass([
|
|
67
|
-
customElement("sd-6-16-
|
|
67
|
+
customElement("sd-6-16-5-button-group")
|
|
68
68
|
], SdButtonGroup);
|
|
69
69
|
function findButton(el) {
|
|
70
70
|
var _a;
|
|
71
|
-
const selector = "sd-6-16-
|
|
71
|
+
const selector = "sd-6-16-5-button, sd-6-16-5-radio-button";
|
|
72
72
|
return (_a = el.closest(selector)) != null ? _a : el.querySelector(selector);
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -135,20 +135,20 @@ var SdAccordion = class extends SolidElement {
|
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
137
|
return html`<details part="base" class="border-neutral-400"><summary part="header" id="header" class="${cx(
|
|
138
|
-
"flex text-base gap-4 font-bold items-center cursor-pointer select-none px-4 sd-6-16-
|
|
138
|
+
"flex text-base gap-4 font-bold items-center cursor-pointer select-none px-4 sd-6-16-5-accordion-padding-block focus-visible:focus-outline focus-visible:z-10 relative group transition-colors ease-in-out duration-fast hover:bg-neutral-200"
|
|
139
139
|
)}" aria-expanded="${this.open ? "true" : "false"}" aria-controls="content" tabindex="0" @click="${this.handleSummaryClick}" @keydown="${this.handleSummaryKeyDown}"><div part="summary-border" class="${cx(
|
|
140
140
|
!this.open && "opacity-0",
|
|
141
|
-
"w-1 sd-6-16-
|
|
142
|
-
)}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left sd-6-16-
|
|
141
|
+
"w-1 sd-6-16-5-accordion__indicator-color absolute left-0 transition-height duration-fast ease-in-out h-[calc(100%-16px)] group-hover:h-full"
|
|
142
|
+
)}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left sd-6-16-5-accordion-color-text">${this.summary}</slot><span part="summary-icon" class="${cx(
|
|
143
143
|
"flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-medium text-xl",
|
|
144
144
|
this.open && "rotate-180"
|
|
145
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-6-16-
|
|
145
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-6-16-5-icon library="_internal" name="chevron-down"></sd-6-16-5-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-6-16-5-icon library="_internal" name="chevron-down"></sd-6-16-5-icon></slot></span></summary><div part="content" id="content" class="overflow-hidden"><slot part="content__slot" class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></details>`;
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
148
|
SdAccordion.styles = [
|
|
149
149
|
...SolidElement.styles,
|
|
150
150
|
css`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
151
|
-
:host{display:block}[part=header]::-webkit-details-marker{display:none}[part=base]{border-block-width:var(--sd-accordion-border-width)}[part=summary-icon] sd-6-16-
|
|
151
|
+
:host{display:block}[part=header]::-webkit-details-marker{display:none}[part=base]{border-block-width:var(--sd-accordion-border-width)}[part=summary-icon] sd-6-16-5-icon{color:rgb(var(--sd-accordion__chevron-color-text,var(--sd-accordion-color-icon-fill)))}`
|
|
152
152
|
];
|
|
153
153
|
__decorateClass([
|
|
154
154
|
query('[part="base"]')
|
|
@@ -169,7 +169,7 @@ __decorateClass([
|
|
|
169
169
|
watch("open", { waitUntilFirstUpdate: true })
|
|
170
170
|
], SdAccordion.prototype, "handleOpenChange", 1);
|
|
171
171
|
SdAccordion = __decorateClass([
|
|
172
|
-
customElement("sd-6-16-
|
|
172
|
+
customElement("sd-6-16-5-accordion")
|
|
173
173
|
], SdAccordion);
|
|
174
174
|
setDefaultAnimation("accordion.show", {
|
|
175
175
|
keyframes: [
|
|
@@ -414,14 +414,14 @@ var SdInput = class extends SolidElement {
|
|
|
414
414
|
!isFloatingLabelActive || !hasValue && (this.readonly || this.visuallyDisabled) ? textSize : "text-xs",
|
|
415
415
|
(this.visuallyDisabled || this.disabled) && "text-neutral-500",
|
|
416
416
|
isFloatingLabelActive && !this.visuallyDisabled && !this.disabled && "form-control--filled__floating-label-color-text"
|
|
417
|
-
)}">${this.label}</span></label>` : null} ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-6-16-
|
|
417
|
+
)}">${this.label}</span></label>` : null} ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-6-16-5-icon class="${cx(
|
|
418
418
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-neutral-700",
|
|
419
419
|
iconSize
|
|
420
|
-
)}" library="_internal" name="closing-round"></sd-6-16-
|
|
420
|
+
)}" library="_internal" name="closing-round"></sd-6-16-5-icon></slot></button>` : ""} ${this.passwordToggle && this.type === "password" ? html`<button aria-label="${this.localize.term(this.passwordVisible ? "hidePassword" : "showPassword")}" part="password-toggle-button" class="${cx(
|
|
421
421
|
"flex items-center sd-interactive",
|
|
422
422
|
iconMarginLeft,
|
|
423
423
|
this.floatingLabel && !isFloatingLabelActive && "hide-password-toggle"
|
|
424
|
-
)}" type="button" @click="${this.handlePasswordToggle}" @mousedown="${this.handleClickableIconFocusIn}" @focus="${() => this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}">${this.passwordVisible ? html`<slot name="show-password-icon"><sd-6-16-
|
|
424
|
+
)}" type="button" @click="${this.handlePasswordToggle}" @mousedown="${this.handleClickableIconFocusIn}" @focus="${() => this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}">${this.passwordVisible ? html`<slot name="show-password-icon"><sd-6-16-5-icon class="${cx(iconColor, iconSize)}" library="_internal" name="eye"></sd-6-16-5-icon></slot>` : html`<slot name="hide-password-icon"><sd-6-16-5-icon class="${cx(iconColor, iconSize)}" library="_internal" name="eye-crossed-out"></sd-6-16-5-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-6-16-5-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="_internal" name="calendar"></sd-6-16-5-icon>` : ""} ${this.type === "time" ? html`<sd-6-16-5-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="_internal" name="clock"></sd-6-16-5-icon>` : ""} ${this.type === "search" ? html`<button class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button" @click="${this.handleSearchClick}"><sd-6-16-5-icon class="${cx(iconColor, iconSize)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-6-16-5-icon></button>` : ""} ${this.showInvalidStyle ? html`<sd-6-16-5-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="_internal" name="risk"></sd-6-16-5-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-6-16-5-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-16-5-icon>` : ""} ${slots["right"] ? html`<slot name="right" part="right" class="${cx("inline-flex", iconColor, iconMarginLeft, iconSize)}"></slot>` : ""} ${this.type === "number" && this.spinButtons ? html`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepDown(), end: () => this.handleChange() })} tabindex="-1" @mousedown="${this.handleClickableIconFocusIn}" @focus="${() => this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}"><slot name="decrement-number-stepper"><sd-6-16-5-icon library="_internal" name="minus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-6-16-5-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange() })} tabindex="-1"><slot name="increment-number-stepper"><sd-6-16-5-icon library="_internal" name="plus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-6-16-5-icon></slot></button></div>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-1", hasHelpText && !this.showInvalidStyle ? "block" : "hidden")}" aria-hidden="${!hasHelpText || this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`;
|
|
425
425
|
}
|
|
426
426
|
};
|
|
427
427
|
/**
|
|
@@ -430,7 +430,7 @@ var SdInput = class extends SolidElement {
|
|
|
430
430
|
SdInput.styles = [
|
|
431
431
|
...SolidElement.styles,
|
|
432
432
|
css`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
433
|
-
:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) :is(#label,#floating-label)::after{content:' *'}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0;display:none;-webkit-appearance:none}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-6-16-
|
|
433
|
+
:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) :is(#label,#floating-label)::after{content:' *'}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0;display:none;-webkit-appearance:none}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-6-16-5-icon{color:rgba(var(--sd-color-text-neutral-500))}.hide-password-toggle{display:none}.has-floating-label input[type=date]:not(.has-value),.has-floating-label input[type=datetime-local]:not(.has-value),.has-floating-label input[type=time]:not(.has-value){color:transparent}.has-floating-label input[type=date]:focus,.has-floating-label input[type=datetime-local]:focus,.has-floating-label input[type=time]:focus{color:inherit}.icon-color{color:rgb(var(--sd-color-icon-fill-primary))}`
|
|
434
434
|
];
|
|
435
435
|
__decorateClass([
|
|
436
436
|
query("#input")
|
|
@@ -569,7 +569,7 @@ __decorateClass([
|
|
|
569
569
|
watch(["size", "floatingLabel"])
|
|
570
570
|
], SdInput.prototype, "handleSizeChange", 1);
|
|
571
571
|
SdInput = __decorateClass([
|
|
572
|
-
customElement("sd-6-16-
|
|
572
|
+
customElement("sd-6-16-5-input")
|
|
573
573
|
], SdInput);
|
|
574
574
|
|
|
575
575
|
export {
|
|
@@ -88,7 +88,7 @@ var SdStep = class extends SolidElement {
|
|
|
88
88
|
this.orientation === "horizontal" && !this.horizontalInline ? this.size === "lg" ? "translateLg" : "translateSm" : this.size === "lg" ? "mt-1" : "mt-3"
|
|
89
89
|
);
|
|
90
90
|
const circleButtonClasses = cx(
|
|
91
|
-
"border sd-6-16-
|
|
91
|
+
"border sd-6-16-5-step__circle-border-width rounded-full aspect-square circle flex items-center justify-center shrink-0 font-bold select-none",
|
|
92
92
|
this.disabled ? "focus-visible:outline-none cursor-not-allowed" : !this.notInteractive && !this.waiting ? "focus-visible:focus-outline hover:cursor-pointer" : "",
|
|
93
93
|
this.notInteractive ? this.size === "lg" ? "not-interactive-lg" : "w-12" : this.size === "lg" ? "w-12" : "w-8",
|
|
94
94
|
this.disabled && "border-neutral-500 text-neutral-500",
|
|
@@ -104,8 +104,8 @@ var SdStep = class extends SolidElement {
|
|
|
104
104
|
)}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><div part="circle-and-tail-container" class="${circleAndTailContainerClasses}"><${tag} part="circle" href="${ifDefined(isLink ? this.href : void 0)}" aria-disabled="${ifDefined(this.disabled || this.waiting || void 0)}" aria-current="${this.current ? "step" : void 0}" aria-labelledby="${ifDefined(this.notInteractive || this.waiting || !hasLabel ? void 0 : "label")}" aria-describedby="${ifDefined(this.notInteractive || this.waiting || !hasDescription ? void 0 : "description")}" class="${circleButtonClasses}"><slot name="circle-content" class="${cx(
|
|
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
|
-
this.notInteractive && "sd-6-16-
|
|
108
|
-
)}">${!this.disabled && !this.current && !this.notInteractive && !this.waiting ? html`<sd-6-16-
|
|
107
|
+
this.notInteractive && "sd-6-16-5-step-color-text"
|
|
108
|
+
)}">${!this.disabled && !this.current && !this.notInteractive && !this.waiting ? html`<sd-6-16-5-icon name="status-check" library="_internal" class="${cx(this.size === "sm" && "text-sm")}"></sd-6-16-5-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"
|
|
@@ -145,7 +145,7 @@ var SdStep = class extends SolidElement {
|
|
|
145
145
|
SdStep.styles = [
|
|
146
146
|
...SolidElement.styles,
|
|
147
147
|
css`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
148
|
-
:host{flex:1}:host([orientation=horizontal]) [part=tail]{border-top-width:var(--sd-step__tail-border-width)}:host([orientation=vertical]) [part=tail]{border-left-width:var(--sd-step__tail-border-width)}:host([no-tail]){flex-grow:0}:host(:not([current])) (:not([notInteractive])) slot[name=circle-content]{color:rgba(var(--sd-color-text-neutral-700))}slot[name=circle-content] sd-6-16-
|
|
148
|
+
:host{flex:1}:host([orientation=horizontal]) [part=tail]{border-top-width:var(--sd-step__tail-border-width)}:host([orientation=vertical]) [part=tail]{border-left-width:var(--sd-step__tail-border-width)}:host([no-tail]){flex-grow:0}:host(:not([current])) (:not([notInteractive])) slot[name=circle-content]{color:rgba(var(--sd-color-text-neutral-700))}slot[name=circle-content] sd-6-16-5-icon,slot[name=circle-content]::slotted(sd-6-16-5-icon){color:rgba(var(--sd-color-icon-fill-primary))}[part=circle]:hover slot[name=circle-content] sd-6-16-5-icon,[part=circle]:hover slot[name=circle-content]::slotted(sd-6-16-5-icon){color:rgba(var(--sd-color-icon-fill-primary-500))}:host([horizontal-inline]):has([part=description]){min-width:calc(var(--sd-spacing-1) * 0);flex:1}.translateLg{transform:translateX(3.438rem)}.translateSm{transform:translateX(4rem)}.not-interactive-lg{width:4.5rem}`
|
|
149
149
|
];
|
|
150
150
|
__decorateClass([
|
|
151
151
|
property({ type: String, reflect: true })
|
|
@@ -196,7 +196,7 @@ __decorateClass([
|
|
|
196
196
|
watch("notInteractive")
|
|
197
197
|
], SdStep.prototype, "handleInteractivityChange", 1);
|
|
198
198
|
SdStep = __decorateClass([
|
|
199
|
-
customElement("sd-6-16-
|
|
199
|
+
customElement("sd-6-16-5-step")
|
|
200
200
|
], SdStep);
|
|
201
201
|
|
|
202
202
|
export {
|
|
@@ -22,7 +22,7 @@ var SdDivider = class extends SolidElement {
|
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
24
|
return html`<hr part="main" aria-orientation="${this.orientation}" class="${cx(
|
|
25
|
-
this.inverted ? "sd-6-16-
|
|
25
|
+
this.inverted ? "sd-6-16-5-divider--inverted-color-border" : "border-neutral-400",
|
|
26
26
|
this.orientation === "horizontal" ? "border-t w-full" : " border-l h-full"
|
|
27
27
|
)}">`;
|
|
28
28
|
}
|
|
@@ -33,7 +33,7 @@ var SdDivider = class extends SolidElement {
|
|
|
33
33
|
SdDivider.styles = [
|
|
34
34
|
...SolidElement.styles,
|
|
35
35
|
css`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
36
|
-
:host{margin:calc(var(--sd-spacing-1) * 0)}:host(sd-6-16-
|
|
36
|
+
:host{margin:calc(var(--sd-spacing-1) * 0)}:host(sd-6-16-5-divider[orientation=horizontal]){display:block}:host(sd-6-16-5-divider[orientation=vertical]){display:inline-block}`
|
|
37
37
|
];
|
|
38
38
|
__decorateClass([
|
|
39
39
|
property({ type: String, reflect: true })
|
|
@@ -42,7 +42,7 @@ __decorateClass([
|
|
|
42
42
|
property({ type: Boolean, reflect: true })
|
|
43
43
|
], SdDivider.prototype, "inverted", 2);
|
|
44
44
|
SdDivider = __decorateClass([
|
|
45
|
-
customElement("sd-6-16-
|
|
45
|
+
customElement("sd-6-16-5-divider")
|
|
46
46
|
], SdDivider);
|
|
47
47
|
|
|
48
48
|
export {
|
|
@@ -84,7 +84,7 @@ var SdLink = class extends SolidElement {
|
|
|
84
84
|
SdLink.styles = [
|
|
85
85
|
...SolidElement.styles,
|
|
86
86
|
css`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
87
|
-
::slotted(sd-6-16-
|
|
87
|
+
::slotted(sd-6-16-5-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-6-16-5-icon){font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}:host([size=lg][standalone]) ::slotted(sd-6-16-5-icon){font-size:var(--sd-text-xl);line-height:var(--tw-leading,var(--text-xl--line-height,calc(1.75 / 1.25)))}`
|
|
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-6-16-
|
|
114
|
+
customElement("sd-6-16-5-link")
|
|
115
115
|
], SdLink);
|
|
116
116
|
|
|
117
117
|
export {
|
|
@@ -38,13 +38,13 @@ var SdBreadcrumbItem = class extends SolidElement {
|
|
|
38
38
|
requestAnimationFrame(() => this.handleCurrentChange());
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return html`<sd-6-16-
|
|
41
|
+
return html`<sd-6-16-5-link part="base" href="${ifDefined(!this.current ? this.href : void 0)}" target="${this.target}" standalone class="text-nowrap"><slot></slot></sd-6-16-5-link>`;
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
SdBreadcrumbItem.styles = [
|
|
45
45
|
...SolidElement.styles,
|
|
46
46
|
css`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
47
|
-
:host{display:inline-flex;align-items:center}sd-6-16-
|
|
47
|
+
:host{display:inline-flex;align-items:center}sd-6-16-5-link::part(base){align-items:center}sd-6-16-5-link::part(icon-left){margin-right:calc(var(--sd-spacing-1) * 0);display:inline-flex}:host([current]) sd-6-16-5-link::part(base){color:rgba(var(--sd-color-text-neutral-700))}:host([current]) sd-6-16-5-link::part(label){text-decoration-line:none}`
|
|
48
48
|
];
|
|
49
49
|
__decorateClass([
|
|
50
50
|
query('[part="base"]')
|
|
@@ -62,7 +62,7 @@ __decorateClass([
|
|
|
62
62
|
watch("current")
|
|
63
63
|
], SdBreadcrumbItem.prototype, "handleCurrentChange", 1);
|
|
64
64
|
SdBreadcrumbItem = __decorateClass([
|
|
65
|
-
customElement("sd-6-16-
|
|
65
|
+
customElement("sd-6-16-5-breadcrumb-item")
|
|
66
66
|
], SdBreadcrumbItem);
|
|
67
67
|
|
|
68
68
|
export {
|