@solid-design-system/components 6.0.0-next.2 → 6.0.0-next.3
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.URYTIP6C.js +2 -0
- package/cdn/components/range/range.d.ts +1 -1
- package/cdn/components/range/range.js +1 -1
- package/cdn/custom-elements.json +11 -11
- package/cdn/solid-components.bundle.js +38 -38
- package/cdn/solid-components.iife.js +44 -44
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +8 -3
- package/cdn/web-types.json +10 -7
- package/cdn-versioned/chunks/chunk.3DB2ELEL.js +1 -1
- package/cdn-versioned/chunks/chunk.3ZRUHOGI.js +1 -1
- package/cdn-versioned/chunks/chunk.5G7ZOEWT.js +5 -5
- package/cdn-versioned/chunks/chunk.5PA35WD2.js +1 -1
- package/cdn-versioned/chunks/chunk.5TUC644H.js +2 -2
- package/cdn-versioned/chunks/chunk.5ZPLQS6G.js +2 -2
- package/cdn-versioned/chunks/chunk.5ZYFWIRD.js +1 -1
- package/cdn-versioned/chunks/chunk.63IQ23S4.js +1 -1
- package/cdn-versioned/chunks/chunk.66LOVPZM.js +1 -1
- package/cdn-versioned/chunks/chunk.66OZDVLX.js +2 -2
- package/cdn-versioned/chunks/chunk.6GHBG4PY.js +2 -2
- package/cdn-versioned/chunks/chunk.6Q6FRPBQ.js +2 -2
- package/cdn-versioned/chunks/chunk.6XTQ6373.js +2 -2
- package/cdn-versioned/chunks/chunk.6ZXO6XV7.js +2 -2
- package/cdn-versioned/chunks/chunk.7JAXJRX2.js +2 -2
- package/cdn-versioned/chunks/chunk.ALIY2YIR.js +2 -2
- package/cdn-versioned/chunks/chunk.AZC2MB6N.js +2 -2
- package/cdn-versioned/chunks/chunk.BL5NWLDW.js +1 -1
- package/cdn-versioned/chunks/chunk.BTMWUMPI.js +1 -1
- package/cdn-versioned/chunks/chunk.CDP46OS4.js +1 -1
- package/cdn-versioned/chunks/chunk.CINQCAVV.js +2 -2
- package/cdn-versioned/chunks/chunk.E7DVDO4P.js +1 -1
- package/cdn-versioned/chunks/chunk.EGKVLCBO.js +2 -2
- package/cdn-versioned/chunks/chunk.EIG3V7LV.js +2 -2
- package/cdn-versioned/chunks/chunk.F3OBG73C.js +1 -1
- package/cdn-versioned/chunks/chunk.FYS76H7M.js +1 -1
- package/cdn-versioned/chunks/chunk.GZN62V5M.js +2 -2
- package/cdn-versioned/chunks/chunk.H7N4XIFF.js +2 -2
- package/cdn-versioned/chunks/chunk.HO5NN73W.js +1 -1
- package/cdn-versioned/chunks/chunk.HWXFA3JT.js +2 -2
- package/cdn-versioned/chunks/chunk.IQUVFHYA.js +1 -1
- package/cdn-versioned/chunks/chunk.J3HOSC6V.js +2 -2
- package/cdn-versioned/chunks/chunk.J4LE3LKP.js +2 -2
- package/cdn-versioned/chunks/chunk.JGU23CP4.js +2 -2
- package/cdn-versioned/chunks/chunk.JS2HQ2N4.js +1 -1
- package/cdn-versioned/chunks/chunk.KL3CEU6E.js +3 -3
- package/cdn-versioned/chunks/chunk.MPLKGS34.js +2 -2
- package/cdn-versioned/chunks/chunk.MQ6HTONQ.js +2 -2
- package/cdn-versioned/chunks/chunk.MWU6TZ4N.js +2 -2
- package/cdn-versioned/chunks/chunk.NMHY6H5N.js +6 -6
- package/cdn-versioned/chunks/chunk.OXYZANQK.js +2 -2
- package/cdn-versioned/chunks/chunk.P3QDLITO.js +1 -1
- package/cdn-versioned/chunks/chunk.PES7MZKA.js +1 -1
- package/cdn-versioned/chunks/chunk.Q36WGVZ7.js +5 -5
- package/cdn-versioned/chunks/chunk.RJVGGY3Q.js +2 -2
- package/cdn-versioned/chunks/chunk.RXQYBUHG.js +2 -2
- package/cdn-versioned/chunks/chunk.S4EKTV5A.js +2 -2
- package/cdn-versioned/chunks/chunk.S5SNELX3.js +2 -2
- package/cdn-versioned/chunks/chunk.U6FGIHUI.js +2 -2
- package/cdn-versioned/chunks/chunk.URYTIP6C.js +2 -0
- package/cdn-versioned/chunks/chunk.UVDP4CO5.js +2 -2
- package/cdn-versioned/chunks/chunk.VA5ZPE34.js +2 -2
- package/cdn-versioned/chunks/chunk.VGYX7TTE.js +2 -2
- package/cdn-versioned/chunks/chunk.VHHOKYE5.js +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WUWSF33N.js +1 -1
- package/cdn-versioned/chunks/chunk.XG6CO665.js +1 -1
- package/cdn-versioned/chunks/chunk.XHDZVSCR.js +2 -2
- package/cdn-versioned/chunks/chunk.XIRAK67B.js +1 -1
- package/cdn-versioned/chunks/chunk.YL7YHMIF.js +3 -3
- package/cdn-versioned/chunks/chunk.YUPZE4GS.js +2 -2
- package/cdn-versioned/chunks/chunk.YXMHHML2.js +2 -2
- package/cdn-versioned/chunks/chunk.ZATYZ65D.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/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 +2 -2
- package/cdn-versioned/components/range/range.js +1 -1
- package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +1 -1
- package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/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 +258 -258
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +78 -78
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +81 -81
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +102 -97
- package/cdn-versioned/web-types.json +172 -169
- package/dist/chunks/{chunk.XNEWFPWE.js → chunk.ES7AAS4J.js} +20 -7
- package/dist/components/range/range.d.ts +1 -1
- package/dist/components/range/range.js +1 -1
- package/dist/custom-elements.json +11 -11
- package/dist/solid-components.js +1 -1
- package/dist/vscode.html-custom-data.json +8 -3
- package/dist/web-types.json +10 -7
- package/dist-versioned/chunks/chunk.2ER4MXZC.js +1 -1
- package/dist-versioned/chunks/chunk.3BVNSUFD.js +1 -1
- package/dist-versioned/chunks/chunk.4CD5TTGT.js +4 -4
- package/dist-versioned/chunks/chunk.4FY6QRJ7.js +3 -3
- package/dist-versioned/chunks/chunk.5D7C4MXB.js +2 -2
- package/dist-versioned/chunks/chunk.5H7CWETG.js +2 -2
- package/dist-versioned/chunks/chunk.5WAWAUSM.js +2 -2
- package/dist-versioned/chunks/chunk.5ZRRM6UH.js +2 -2
- package/dist-versioned/chunks/chunk.662O4CMZ.js +12 -12
- package/dist-versioned/chunks/chunk.7RSL7EOY.js +6 -6
- package/dist-versioned/chunks/chunk.7XXRAMBH.js +1 -1
- package/dist-versioned/chunks/chunk.A3YMYTLW.js +4 -4
- package/dist-versioned/chunks/chunk.AAY5JRCW.js +4 -4
- package/dist-versioned/chunks/chunk.AEFLWSEK.js +12 -12
- package/dist-versioned/chunks/chunk.ANYT6TR4.js +1 -1
- package/dist-versioned/chunks/chunk.BFDY2E6R.js +11 -11
- package/dist-versioned/chunks/chunk.CR5C6OL5.js +26 -26
- package/dist-versioned/chunks/chunk.CT4BIUEI.js +6 -6
- package/dist-versioned/chunks/chunk.DFQ2QJI5.js +2 -2
- package/dist-versioned/chunks/chunk.DJ3WYVWV.js +6 -6
- package/dist-versioned/chunks/chunk.E7L2RBML.js +5 -5
- package/dist-versioned/chunks/chunk.EORXKFFT.js +1 -1
- package/dist-versioned/chunks/{chunk.XNEWFPWE.js → chunk.ES7AAS4J.js} +22 -9
- package/dist-versioned/chunks/chunk.F4A7G427.js +3 -3
- package/dist-versioned/chunks/chunk.FMSAUZWF.js +4 -4
- package/dist-versioned/chunks/chunk.FPMNMEXR.js +2 -2
- package/dist-versioned/chunks/chunk.HB45IF2T.js +1 -1
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.M5EPD6OZ.js +6 -6
- package/dist-versioned/chunks/chunk.MB47FVBP.js +1 -1
- package/dist-versioned/chunks/chunk.MFE2NCVX.js +3 -3
- package/dist-versioned/chunks/chunk.N5XK43AK.js +18 -18
- package/dist-versioned/chunks/chunk.NCZBBZOR.js +1 -1
- package/dist-versioned/chunks/chunk.NK5K5MMW.js +1 -1
- package/dist-versioned/chunks/chunk.NKPJM2WV.js +5 -5
- package/dist-versioned/chunks/chunk.O6OCXI2L.js +3 -3
- package/dist-versioned/chunks/chunk.OBQTYYBW.js +2 -2
- package/dist-versioned/chunks/chunk.OK3VBJRJ.js +3 -3
- package/dist-versioned/chunks/chunk.PF4UKMOY.js +2 -2
- package/dist-versioned/chunks/chunk.PJOYWTXL.js +1 -1
- package/dist-versioned/chunks/chunk.QHUH3UZT.js +2 -2
- package/dist-versioned/chunks/chunk.QJ2PELD5.js +2 -2
- package/dist-versioned/chunks/chunk.RIWKWSAL.js +2 -2
- package/dist-versioned/chunks/chunk.RY4KWEME.js +1 -1
- package/dist-versioned/chunks/chunk.RZGUWSF6.js +5 -5
- package/dist-versioned/chunks/chunk.SIUXYHUU.js +8 -8
- package/dist-versioned/chunks/chunk.SZDLCBRQ.js +24 -24
- package/dist-versioned/chunks/chunk.TIOVWVCD.js +2 -2
- package/dist-versioned/chunks/chunk.TXNCIVE5.js +14 -14
- package/dist-versioned/chunks/chunk.U7ASTWXS.js +5 -5
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.UIXXR3N5.js +3 -3
- package/dist-versioned/chunks/chunk.VN6V46I7.js +2 -2
- package/dist-versioned/chunks/chunk.WSRHW32L.js +3 -3
- package/dist-versioned/chunks/chunk.WSXDUNN7.js +1 -1
- package/dist-versioned/chunks/chunk.WSXRRFIW.js +1 -1
- package/dist-versioned/chunks/chunk.WTFF4KWO.js +3 -3
- package/dist-versioned/chunks/chunk.XCQC3F3H.js +3 -3
- package/dist-versioned/chunks/chunk.YBIM4TC7.js +1 -1
- package/dist-versioned/chunks/chunk.YLQNXR3G.js +2 -2
- package/dist-versioned/chunks/chunk.ZBAABZKL.js +1 -1
- package/dist-versioned/chunks/chunk.ZRJRFFVA.js +3 -3
- package/dist-versioned/chunks/chunk.ZXOKRAZP.js +2 -2
- 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/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 +2 -2
- package/dist-versioned/components/range/range.js +1 -1
- package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +1 -1
- package/dist-versioned/components/spinner/spinner.d.ts +1 -1
- package/dist-versioned/components/step/step.d.ts +1 -1
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/tab/tab.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/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 +258 -258
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +1 -1
- package/dist-versioned/vscode.html-custom-data.json +102 -97
- package/dist-versioned/web-types.json +172 -169
- package/package.json +3 -3
- package/cdn/chunks/chunk.LVDWFX3X.js +0 -2
- package/cdn-versioned/chunks/chunk.LVDWFX3X.js +0 -2
|
@@ -43,7 +43,7 @@ var SdRange = class extends SolidElement {
|
|
|
43
43
|
this.disabled = false;
|
|
44
44
|
this.visuallyDisabled = false;
|
|
45
45
|
this.noTrackBar = false;
|
|
46
|
-
this.
|
|
46
|
+
this.tooltip = "on-interaction";
|
|
47
47
|
this.defaultValue = "";
|
|
48
48
|
this._value = [0];
|
|
49
49
|
this._rangeValues = /* @__PURE__ */ new Map();
|
|
@@ -74,6 +74,12 @@ var SdRange = class extends SolidElement {
|
|
|
74
74
|
firstUpdated() {
|
|
75
75
|
this.formControlController.updateValidity();
|
|
76
76
|
this._lastChangeValue = Array.from(this._value);
|
|
77
|
+
this.thumbs.forEach(async (thumb) => {
|
|
78
|
+
var _a, _b;
|
|
79
|
+
const tooltip = thumb.parentElement;
|
|
80
|
+
await tooltip.updateComplete;
|
|
81
|
+
(_b = (_a = tooltip.shadowRoot) == null ? void 0 : _a.querySelector("sd-6-0-0-next-3-popup")) == null ? void 0 : _b.setAttribute("distance", "14");
|
|
82
|
+
});
|
|
77
83
|
}
|
|
78
84
|
willUpdate(changedProperties) {
|
|
79
85
|
super.willUpdate(changedProperties);
|
|
@@ -103,6 +109,9 @@ var SdRange = class extends SolidElement {
|
|
|
103
109
|
const rangeId = +thumb.dataset.rangeId;
|
|
104
110
|
if (!this._rangeValues.has(rangeId)) continue;
|
|
105
111
|
this.moveThumb(thumb, this._rangeValues.get(rangeId));
|
|
112
|
+
if (this.tooltip === "always-visible") {
|
|
113
|
+
thumb.parentElement.show();
|
|
114
|
+
}
|
|
106
115
|
}
|
|
107
116
|
this.updateActiveTrack();
|
|
108
117
|
}
|
|
@@ -246,7 +255,9 @@ var SdRange = class extends SolidElement {
|
|
|
246
255
|
thumb.dataset.pointerId = event.pointerId.toString();
|
|
247
256
|
thumb.setPointerCapture(event.pointerId);
|
|
248
257
|
thumb.classList.add("grabbed");
|
|
249
|
-
|
|
258
|
+
if (this.tooltip === "on-interaction") {
|
|
259
|
+
await thumb.parentElement.show();
|
|
260
|
+
}
|
|
250
261
|
}
|
|
251
262
|
onDragThumb(event) {
|
|
252
263
|
if (this.disabled || this.visuallyDisabled) return;
|
|
@@ -294,7 +305,9 @@ var SdRange = class extends SolidElement {
|
|
|
294
305
|
this._lastChangeValue = Array.from(this._value);
|
|
295
306
|
this.emit("sd-change");
|
|
296
307
|
}
|
|
297
|
-
|
|
308
|
+
if (this.tooltip === "on-interaction") {
|
|
309
|
+
await thumb.parentElement.hide();
|
|
310
|
+
}
|
|
298
311
|
}
|
|
299
312
|
onKeyPress(event) {
|
|
300
313
|
const thumb = event.target;
|
|
@@ -398,10 +411,10 @@ var SdRange = class extends SolidElement {
|
|
|
398
411
|
ariaLabel = this.tooltipFormatter(value);
|
|
399
412
|
}
|
|
400
413
|
}
|
|
401
|
-
return html`<sd-6-0-0-next-
|
|
414
|
+
return html`<sd-6-0-0-next-3-tooltip hoist trigger="${this.tooltip === "on-interaction" ? "focus" : "manual"}" disabled="${ifDefined(this.disabled || this.visuallyDisabled || this.tooltip === "hidden" ? 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}" data-disabled="${ifDefined(this.disabled || this.visuallyDisabled || void 0)}" @pointerdown="${this.onClickThumb}" @pointermove="${this.onDragThumb}" @pointerup="${this.onReleaseThumb}" @pointercancel="${this.onReleaseThumb}" @pointerleave="${this.onReleaseThumb}" @keydown="${this.onKeyPress}" @focus="${this.onFocusThumb}" class="${cx(
|
|
402
415
|
"rounded-full absolute top-0 size-4 hover:cursor-grab after:-inset-2",
|
|
403
416
|
this.disabled || this.visuallyDisabled ? "outline-none" : "cursor-pointer focus-visible:focus-outline"
|
|
404
|
-
)}"></div></sd-6-0-0-next-
|
|
417
|
+
)}"></div></sd-6-0-0-next-3-tooltip>`;
|
|
405
418
|
});
|
|
406
419
|
}
|
|
407
420
|
render() {
|
|
@@ -411,7 +424,7 @@ var SdRange = class extends SolidElement {
|
|
|
411
424
|
};
|
|
412
425
|
const hasLabel = !!(this.label || slots["label"]);
|
|
413
426
|
const hasHelpText = !!(this.helpText || slots["helpText"]);
|
|
414
|
-
return html`<div part="form-control" @focusout="${this.onBlur}" class="flex flex-col">${hasLabel ? html`<div class="flex items-center gap-1"><label id="label" part="form-control-label" aria-hidden="${hasLabel ? "false" : "true"}" class="${cx("w-full", hasLabel ? "inline-block" : "hidden")}" @click="${this.focus}"><slot name="label">${this.label}</slot></label></div>` : null} <label id="aria-label-hidden" class="sr-only">(${this._value.map(this.tooltipFormatter).join(" - ")})</label><div part="base" class="${cx("inline-flex w-full", this.visuallyDisabled && "focus-visible:focus-outline")}" tabindex="${ifDefined(this.visuallyDisabled ? "0" : void 0)}"><div part="input-wrapper" class="relative flex-1 mx-2 mb-[10px]"><input id="input" tabindex="-1" hidden @invalid="${this.handleInvalid}"><div part="track-wrapper" role="presentation" @pointerdown="${this.onClickTrack}" class="relative cursor-pointer -mx-2"><div part="track-click-helper" class="absolute -inset-y-2 inset-x-0"></div><div part="track" data-disabled="${ifDefined(this.disabled || this.visuallyDisabled || void 0)}" class="${cx("h-1 my-[6px]")}"></div><div part="active-track" hidden="${ifDefined(this.noTrackBar ? true : void 0)}" data-disabled="${ifDefined(this.disabled || this.visuallyDisabled || void 0)}" class="${cx("absolute top-0 h-1")}"></div></div>${this.renderThumbs(hasLabel)}<div class="-mt-[10px]" part="scale-ticks" @pointerdown="${this.onClickTrackItem}" role="presentation"><slot name="scale-ticks"></slot></div></div></div><slot></slot><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-1", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>`;
|
|
427
|
+
return html`<div part="form-control" @focusout="${this.onBlur}" class="flex flex-col">${hasLabel ? html`<div class="flex items-center gap-1"><label id="label" part="form-control-label" aria-hidden="${hasLabel ? "false" : "true"}" class="${cx("w-full text-start", hasLabel ? "inline-block" : "hidden")}" @click="${this.focus}"><slot name="label">${this.label}</slot></label></div>` : null} <label id="aria-label-hidden" class="sr-only">(${this._value.map(this.tooltipFormatter).join(" - ")})</label><div part="base" class="${cx("inline-flex w-full", this.visuallyDisabled && "focus-visible:focus-outline")}" tabindex="${ifDefined(this.visuallyDisabled ? "0" : void 0)}"><div part="input-wrapper" class="relative flex-1 mx-2 mb-[10px]"><input id="input" tabindex="-1" hidden @invalid="${this.handleInvalid}"><div part="track-wrapper" role="presentation" @pointerdown="${this.onClickTrack}" class="relative cursor-pointer -mx-2"><div part="track-click-helper" class="absolute -inset-y-2 inset-x-0"></div><div part="track" data-disabled="${ifDefined(this.disabled || this.visuallyDisabled || void 0)}" class="${cx("h-1 my-[6px]")}"></div><div part="active-track" hidden="${ifDefined(this.noTrackBar ? true : void 0)}" data-disabled="${ifDefined(this.disabled || this.visuallyDisabled || void 0)}" class="${cx("absolute top-0 h-1")}"></div></div>${this.renderThumbs(hasLabel)}<div class="-mt-[10px]" part="scale-ticks" @pointerdown="${this.onClickTrackItem}" role="presentation"><slot name="scale-ticks"></slot></div></div></div><slot></slot><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-1", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>`;
|
|
415
428
|
}
|
|
416
429
|
};
|
|
417
430
|
SdRange.styles = [
|
|
@@ -462,8 +475,8 @@ __decorateClass([
|
|
|
462
475
|
property({ attribute: "no-track-bar", type: Boolean, reflect: true })
|
|
463
476
|
], SdRange.prototype, "noTrackBar", 2);
|
|
464
477
|
__decorateClass([
|
|
465
|
-
property({ attribute: "
|
|
466
|
-
], SdRange.prototype, "
|
|
478
|
+
property({ attribute: "tooltip", type: String, reflect: true })
|
|
479
|
+
], SdRange.prototype, "tooltip", 2);
|
|
467
480
|
__decorateClass([
|
|
468
481
|
defaultValue()
|
|
469
482
|
], SdRange.prototype, "defaultValue", 2);
|
|
@@ -471,7 +484,7 @@ __decorateClass([
|
|
|
471
484
|
property({ type: String })
|
|
472
485
|
], SdRange.prototype, "value", 1);
|
|
473
486
|
SdRange = __decorateClass([
|
|
474
|
-
customElement("sd-6-0-0-next-
|
|
487
|
+
customElement("sd-6-0-0-next-3-range")
|
|
475
488
|
], SdRange);
|
|
476
489
|
|
|
477
490
|
export {
|
|
@@ -78,9 +78,9 @@ var SdTag = class extends SolidElement {
|
|
|
78
78
|
!this.selected ? cx(
|
|
79
79
|
"border-primary text-primary disabled:border-neutral-500 disabled:text-neutral-500",
|
|
80
80
|
!this.removable ? "hover:border-primary-500 hover:text-primary-500" : "has-[button:hover]:border-primary-500 has-[button:hover]:text-primary-500"
|
|
81
|
-
) : "sd-6-0-0-next-
|
|
81
|
+
) : "sd-6-0-0-next-3-tag--selected--default-color-background border-primary sd-6-0-0-next-3-tag--selected--default-color-text 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-6-0-0-next-
|
|
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-6-0-0-next-3-icon library="_internal" name="close" label="${this.localize.term("remove")}"></sd-6-0-0-next-3-icon></slot></button>` : ""}</${tag}>`;
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
SdTag.styles = [
|
|
@@ -116,7 +116,7 @@ __decorateClass([
|
|
|
116
116
|
property({ reflect: true })
|
|
117
117
|
], SdTag.prototype, "download", 2);
|
|
118
118
|
SdTag = __decorateClass([
|
|
119
|
-
customElement("sd-6-0-0-next-
|
|
119
|
+
customElement("sd-6-0-0-next-3-tag")
|
|
120
120
|
], SdTag);
|
|
121
121
|
|
|
122
122
|
export {
|
|
@@ -25,11 +25,11 @@ var SdOptgroup = class extends SolidElement {
|
|
|
25
25
|
this.label = "";
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* Syncs the disabled prop for all slotted sd-6-0-0-next-
|
|
28
|
+
* Syncs the disabled prop for all slotted sd-6-0-0-next-3-options when it is triggered
|
|
29
29
|
*/
|
|
30
30
|
handleDisableOptions() {
|
|
31
31
|
const { disabled } = this;
|
|
32
|
-
this.defaultSlot.assignedElements().filter((opt) => opt.tagName.toLowerCase() === "sd-6-0-0-next-
|
|
32
|
+
this.defaultSlot.assignedElements().filter((opt) => opt.tagName.toLowerCase() === "sd-6-0-0-next-3-option").forEach((opt) => {
|
|
33
33
|
opt.disabled = disabled;
|
|
34
34
|
});
|
|
35
35
|
}
|
|
@@ -38,7 +38,7 @@ var SdOptgroup = class extends SolidElement {
|
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
40
|
const { disabled } = this;
|
|
41
|
-
return html`<div role="${disabled ? "presentation" : "group"}" class="${cx(this.disabled ? "text-neutral-500" : "")}" part="base" aria-labelledby="group-label"><sd-6-0-0-next-
|
|
41
|
+
return html`<div role="${disabled ? "presentation" : "group"}" class="${cx(this.disabled ? "text-neutral-500" : "")}" part="base" aria-labelledby="group-label"><sd-6-0-0-next-3-divider id="divider" class="pt-2 pb-4" part="divider"></sd-6-0-0-next-3-divider><div part="label-container" class="${cx(this.disabled ? "text-neutral-500" : "text-black")} px-4 font-bold text-left" role="presentation" id="group-label"><slot name="label"><span>${this.label}</span></slot></div><div role="listbox" part="options" aria-label="${this.localize.term("optionGroup")}"><slot @slotchange="${this.handleDisableOptions}"></slot></div></div>`;
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
SdOptgroup.styles = [
|
|
@@ -59,7 +59,7 @@ __decorateClass([
|
|
|
59
59
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
60
60
|
], SdOptgroup.prototype, "handleDisabledChange", 1);
|
|
61
61
|
SdOptgroup = __decorateClass([
|
|
62
|
-
customElement("sd-6-0-0-next-
|
|
62
|
+
customElement("sd-6-0-0-next-3-optgroup")
|
|
63
63
|
], SdOptgroup);
|
|
64
64
|
|
|
65
65
|
export {
|
|
@@ -33,7 +33,7 @@ var SdDivider = class extends SolidElement {
|
|
|
33
33
|
SdDivider.styles = [
|
|
34
34
|
...SolidElement.styles,
|
|
35
35
|
css`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
36
|
-
:host{margin:calc(var(--sd-spacing-1) * 0)}:host(sd-6-0-0-next-
|
|
36
|
+
:host{margin:calc(var(--sd-spacing-1) * 0)}:host(sd-6-0-0-next-3-divider[orientation=horizontal]){display:block}:host(sd-6-0-0-next-3-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-0-0-next-
|
|
45
|
+
customElement("sd-6-0-0-next-3-divider")
|
|
46
46
|
], SdDivider);
|
|
47
47
|
|
|
48
48
|
export {
|
|
@@ -48,7 +48,7 @@ var SubmenuController = class {
|
|
|
48
48
|
if (event.target === this.host) {
|
|
49
49
|
event.preventDefault();
|
|
50
50
|
event.stopPropagation();
|
|
51
|
-
} else if (event.target instanceof Element && (event.target.tagName === "sd-6-0-0-next-
|
|
51
|
+
} else if (event.target instanceof Element && (event.target.tagName === "sd-6-0-0-next-3-menu-item" || ((_a = event.target.role) == null ? void 0 : _a.startsWith("menuitem")))) {
|
|
52
52
|
const type = event.target.getAttribute("type");
|
|
53
53
|
if (type !== "checkbox") {
|
|
54
54
|
this.disableSubmenu();
|
|
@@ -69,7 +69,7 @@ var SubmenuController = class {
|
|
|
69
69
|
// Set the safe triangle values for the submenu when the position changes
|
|
70
70
|
this.handlePopupReposition = () => {
|
|
71
71
|
const submenuSlot = this.host.renderRoot.querySelector("slot[name='submenu']");
|
|
72
|
-
const menu = submenuSlot == null ? void 0 : submenuSlot.assignedElements({ flatten: true }).filter((el) => el.localName === "sd-6-0-0-next-
|
|
72
|
+
const menu = submenuSlot == null ? void 0 : submenuSlot.assignedElements({ flatten: true }).filter((el) => el.localName === "sd-6-0-0-next-3-menu")[0];
|
|
73
73
|
const isRtl = getComputedStyle(this.host).direction === "rtl";
|
|
74
74
|
if (!menu) {
|
|
75
75
|
return;
|
|
@@ -141,7 +141,7 @@ var SubmenuController = class {
|
|
|
141
141
|
}
|
|
142
142
|
let menuItems = null;
|
|
143
143
|
for (const elt of submenuSlot.assignedElements()) {
|
|
144
|
-
menuItems = elt.querySelectorAll("sd-6-0-0-next-
|
|
144
|
+
menuItems = elt.querySelectorAll("sd-6-0-0-next-3-menu-item, [role^='menuitem']");
|
|
145
145
|
if (menuItems.length !== 0) {
|
|
146
146
|
break;
|
|
147
147
|
}
|
|
@@ -220,7 +220,7 @@ var SubmenuController = class {
|
|
|
220
220
|
if (!this.isConnected) {
|
|
221
221
|
return html`<slot name="submenu" hidden></slot>`;
|
|
222
222
|
}
|
|
223
|
-
return html`<sd-6-0-0-next-
|
|
223
|
+
return html`<sd-6-0-0-next-3-popup ${ref(this.popupRef)} placement="${isRtl ? "left-start" : "right-start"}" anchor="anchor" flip flip-fallback-strategy="best-fit" skidding="${this.skidding}" strategy="fixed" auto-size="vertical" auto-size-padding="10"><slot name="submenu"></slot></sd-6-0-0-next-3-popup>`;
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
226
|
|
|
@@ -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-6-0-0-next-
|
|
63
|
+
this.slides = this.getElementsByTagName("sd-6-0-0-next-3-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-6-0-0-next-
|
|
452
|
+
} : null}"><slot name="previous-icon"><sd-6-0-0-next-3-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${isLtr ? "chevron-down" : "chevron-up"}"></sd-6-0-0-next-3-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-6-0-0-next-
|
|
475
|
+
} : null}"><slot name="next-icon"><sd-6-0-0-next-3-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${isLtr ? "chevron-up" : "chevron-down"}"></sd-6-0-0-next-3-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,13 +482,13 @@ 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-6-0-0-next-
|
|
485
|
+
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-6-0-0-next-3-icon class="h-6 w-6 grid place-items-center" library="_internal" name="start"></sd-6-0-0-next-3-icon></slot><slot name="autoplay-pause" class="${cx(this.pausedAutoplay ? "hidden" : "")}"><sd-6-0-0-next-3-icon class="h-6 w-6 grid place-items-center" library="_internal" name="pause"></sd-6-0-0-next-3-icon></slot></button></div></div>`;
|
|
486
486
|
}
|
|
487
487
|
};
|
|
488
488
|
SdCarousel.styles = [
|
|
489
489
|
...SolidElement.styles,
|
|
490
490
|
css`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
491
|
-
: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));grid-auto-columns:var(--slide-size);-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);scroll-padding-inline:var(--scroll-hint);padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}:host([fade]){--carousel-height:auto}:host([fade]) .carousel__slides{position:relative;display:block;overflow:hidden;height:var(--carousel-height)}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-6-0-0-next-
|
|
491
|
+
: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));grid-auto-columns:var(--slide-size);-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);scroll-padding-inline:var(--scroll-hint);padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}:host([fade]){--carousel-height:auto}:host([fade]) .carousel__slides{position:relative;display:block;overflow:hidden;height:var(--carousel-height)}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-6-0-0-next-3-button::part(label){pointer-events:none;display:flex;flex:auto;align-items:center}`
|
|
492
492
|
];
|
|
493
493
|
__decorateClass([
|
|
494
494
|
query('[part~="autoplay-controls"]')
|
|
@@ -561,7 +561,7 @@ __decorateClass([
|
|
|
561
561
|
watch("autoplay")
|
|
562
562
|
], SdCarousel.prototype, "handleAutoplayChange", 1);
|
|
563
563
|
SdCarousel = __decorateClass([
|
|
564
|
-
customElement("sd-6-0-0-next-
|
|
564
|
+
customElement("sd-6-0-0-next-3-carousel")
|
|
565
565
|
], SdCarousel);
|
|
566
566
|
|
|
567
567
|
export {
|
|
@@ -108,7 +108,7 @@ __decorateClass([
|
|
|
108
108
|
property({ reflect: true })
|
|
109
109
|
], SdMapMarker.prototype, "label", 2);
|
|
110
110
|
SdMapMarker = __decorateClass([
|
|
111
|
-
customElement("sd-6-0-0-next-
|
|
111
|
+
customElement("sd-6-0-0-next-3-map-marker")
|
|
112
112
|
], SdMapMarker);
|
|
113
113
|
|
|
114
114
|
export {
|
|
@@ -107,13 +107,13 @@ 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-6-0-0-next-
|
|
110
|
+
)}"><sd-6-0-0-next-3-icon name="status-check" library="sd-status-assets" aria-hidden="true"></sd-6-0-0-next-3-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-6-0-0-next-3-icon name="chevron-right" library="_internal" aria-hidden="true" class="h-6 w-6"></sd-6-0-0-next-3-icon></span>` : ""} ${this.submenuController.renderSubmenu()}</div>`;
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
SdMenuItem.styles = [
|
|
114
114
|
...SolidElement.styles,
|
|
115
115
|
css`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
116
|
-
:host{--submenu-offset:-6px;display:block}:host(:focus-visible){--tw-outline-style:none;outline-style:none}::slotted(sd-6-0-0-next-
|
|
116
|
+
:host{--submenu-offset:-6px;display:block}:host(:focus-visible){--tw-outline-style:none;outline-style:none}::slotted(sd-6-0-0-next-3-icon){height:var(--sd-spacing-6);width:var(--sd-spacing-6)}[part=checked-icon]{margin-right:var(--sd-spacing-3)}.submenu-expanded::after{position:fixed;top:calc(var(--sd-spacing-1) * 0);right:calc(var(--sd-spacing-1) * 0);bottom:calc(var(--sd-spacing-1) * 0);left:calc(var(--sd-spacing-1) * 0);z-index:calc(var(z-dropdown) - 1);--tw-content:'';content:var(--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))}:host(:hover:not([aria-disabled=true],:focus-visible)) [part=base]{background-color:var(--sd-color-background-neutral-200);--tw-outline-style:none;outline-style:none}:host(:focus-visible:not([aria-disabled=true])) [part=base]{outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:var(--outline-color-primary);outline-offset:-2px}:host(:hover) [part=base]{--tw-outline-style:none;outline-style:none}sd-6-0-0-next-3-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);background-color:var(--sd-color-background-white);margin-left:var(--submenu-offset)}::slotted(sd-6-0-0-next-3-menu){max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`
|
|
117
117
|
];
|
|
118
118
|
__decorateClass([
|
|
119
119
|
query("slot:not([name])")
|
|
@@ -146,7 +146,7 @@ __decorateClass([
|
|
|
146
146
|
watch("type")
|
|
147
147
|
], SdMenuItem.prototype, "handleTypeChange", 1);
|
|
148
148
|
SdMenuItem = __decorateClass([
|
|
149
|
-
customElement("sd-6-0-0-next-
|
|
149
|
+
customElement("sd-6-0-0-next-3-menu-item")
|
|
150
150
|
], SdMenuItem);
|
|
151
151
|
|
|
152
152
|
export {
|
|
@@ -164,19 +164,19 @@ var SdButton = class extends SolidElement {
|
|
|
164
164
|
{
|
|
165
165
|
/* sizes, fonts */
|
|
166
166
|
sm: `text-sm varspacing-8 rounded-default ${hasBorder ? "py-[0.281rem] px-[0.938rem]" : "py-[0.344rem] px-4"}`,
|
|
167
|
-
md: `sd-6-0-0-next-
|
|
168
|
-
lg: `sd-6-0-0-next-
|
|
167
|
+
md: `sd-6-0-0-next-3-button--size-md-font-size sd-6-0-0-next-3-button--size-md-border-radius varspacing-10 ${hasBorder ? "py-[0.438rem] px-[0.938rem]" : "sd-6-0-0-next-3-button--size-md-padding-block px-4"}`,
|
|
168
|
+
lg: `sd-6-0-0-next-3-button--size-lg-font-size sd-6-0-0-next-3-button--size-lg-border-radius varspacing-12 ${hasBorder ? "py-[0.688rem] px-[0.938rem]" : "sd-6-0-0-next-3-button--size-lg-padding-block px-4"}`
|
|
169
169
|
}[this.size],
|
|
170
170
|
{
|
|
171
171
|
/* variants */
|
|
172
|
-
primary: !this.inverted ? `sd-6-0-0-next-
|
|
173
|
-
disabled:bg-neutral-500` : `${this.visuallyDisabled ? "bg-neutral-500 text-white border-neutral-500 hover:bg-neutral-500 active:bg-neutral-500" : "sd-6-0-0-next-
|
|
172
|
+
primary: !this.inverted ? `sd-6-0-0-next-3-button--primary--default-color-text ${this.visuallyDisabled ? "bg-neutral-500 border-neutral-500 hover:bg-neutral-500" : "sd-6-0-0-next-3-button--primary--default-color-background border-transparent hover:text-primary-100 active:sd-6-0-0-next-3-button--primary--active-color-text"}
|
|
173
|
+
disabled:bg-neutral-500` : `${this.visuallyDisabled ? "bg-neutral-500 text-white border-neutral-500 hover:bg-neutral-500 active:bg-neutral-500" : "sd-6-0-0-next-3-button--primary--inverted--default-color-text sd-6-0-0-next-3-button--primary--inverted--default-color-background border-white hover:sd-6-0-0-next-3-button--primary--inverted--hover-color-text active:sd-6-0-0-next-3-button--primary--inverted--active-color-text"}
|
|
174
174
|
disabled:bg-neutral-600 disabled:text-white disabled:border-neutral-600`,
|
|
175
175
|
secondary: !this.inverted ? `border ${this.visuallyDisabled ? "text-neutral-500 border-neutral-500 hover:text-neutral-500 hover:border-neutral-500 active:text-neutral-500 active:border-neutral-500" : "text-primary border-primary hover:text-primary-500 hover:border-primary-500 active:text-primary-800 active:border-primary-800"}
|
|
176
|
-
disabled:text-neutral-500 disabled:border-neutral-500` : `border ${this.visuallyDisabled ? "text-neutral-600 border-neutral-600 hover:text-neutral-600 hover:border-neutral-600 active:text-neutral-600 active:border-neutral-600" : "text-white border-white hover:sd-6-0-0-next-
|
|
176
|
+
disabled:text-neutral-500 disabled:border-neutral-500` : `border ${this.visuallyDisabled ? "text-neutral-600 border-neutral-600 hover:text-neutral-600 hover:border-neutral-600 active:text-neutral-600 active:border-neutral-600" : "text-white border-white hover:sd-6-0-0-next-3-button--secondary--inverted--hover-color-text hover:border-primary-100 active:text-primary-200"}
|
|
177
177
|
disabled:text-neutral-600 disabled:border-neutral-600`,
|
|
178
178
|
tertiary: !this.inverted ? `border-transparent ${this.visuallyDisabled ? "text-neutral-500 hover:text-neutral-500 active:text-neutral-500" : "text-primary hover:text-primary-500 active:text-primary-800"}
|
|
179
|
-
disabled:text-neutral-500` : `border-transparent ${this.visuallyDisabled ? "text-neutral-600 hover:text-neutral-600 active:text-neutral-600" : "text-white hover:sd-6-0-0-next-
|
|
179
|
+
disabled:text-neutral-500` : `border-transparent ${this.visuallyDisabled ? "text-neutral-600 hover:text-neutral-600 active:text-neutral-600" : "text-white hover:sd-6-0-0-next-3-button--tertiary--inverted--hover-color-text active:text-primary-200"}
|
|
180
180
|
disabled:text-neutral-600`,
|
|
181
181
|
cta: `text-white ${this.visuallyDisabled ? "bg-neutral-500 border-neutral-500 hover:bg-neutral-500 active:bg-neutral-500" : "bg-accent-500 border-transparent"}
|
|
182
182
|
${!this.inverted ? "disabled:bg-neutral-500 disabled:border-neutral-500" : "disabled:bg-neutral-600 disabled:border-neutral-600"} disabled:text-white`
|
|
@@ -187,23 +187,23 @@ var SdButton = class extends SolidElement {
|
|
|
187
187
|
{
|
|
188
188
|
/* sizes, fonts */
|
|
189
189
|
sm: `rounded-default`,
|
|
190
|
-
md: `sd-6-0-0-next-
|
|
191
|
-
lg: `sd-6-0-0-next-
|
|
190
|
+
md: `sd-6-0-0-next-3-button--size-md-border-radius`,
|
|
191
|
+
lg: `sd-6-0-0-next-3-button--size-lg-border-radius`
|
|
192
192
|
}[this.size]
|
|
193
193
|
)}"><div class="absolute inset-0 w-full h-full transition-all duration-fast translate-y-full group-hover:translate-y-0 group-hover:mt-[-22%] mt-[11%]"><div class="${cx(
|
|
194
194
|
"absolute right-0 min-w-full min-h-full aspect-square skew-y-[-11deg] mt-[11%]",
|
|
195
195
|
{
|
|
196
|
-
primary: !this.inverted ? "sd-6-0-0-next-
|
|
197
|
-
secondary: !this.inverted ? "sd-6-0-0-next-
|
|
198
|
-
tertiary: !this.inverted ? "sd-6-0-0-next-
|
|
196
|
+
primary: !this.inverted ? "sd-6-0-0-next-3-button--primary--hover-color-background group-active:bg-primary-800" : "sd-6-0-0-next-3-button--primary--inverted--hover-color-background group-active:bg-primary-200",
|
|
197
|
+
secondary: !this.inverted ? "sd-6-0-0-next-3-button--secondary--hover-color-background group-active:sd-6-0-0-next-3-button--secondary--active-color-background" : "bg-primary-500 group-active:sd-6-0-0-next-3-button--secondary--inverted--active-color-background",
|
|
198
|
+
tertiary: !this.inverted ? "sd-6-0-0-next-3-button--tertiary--hover-color-background group-active:sd-6-0-0-next-3-button--tertiary--active-color-background" : "bg-primary-500 group-active:sd-6-0-0-next-3-button--tertiary--inverted--active-color-background",
|
|
199
199
|
cta: "bg-accent-550 group-active:bg-accent-700"
|
|
200
200
|
}[this.variant]
|
|
201
201
|
)}"></div><div class="${cx(
|
|
202
202
|
"absolute w-full h-full mt-[22%]",
|
|
203
203
|
{
|
|
204
|
-
primary: !this.inverted ? "sd-6-0-0-next-
|
|
205
|
-
secondary: !this.inverted ? "sd-6-0-0-next-
|
|
206
|
-
tertiary: !this.inverted ? "sd-6-0-0-next-
|
|
204
|
+
primary: !this.inverted ? "sd-6-0-0-next-3-button--primary--hover-color-background group-active:bg-primary-800" : "sd-6-0-0-next-3-button--primary--inverted--hover-color-background group-active:bg-primary-200",
|
|
205
|
+
secondary: !this.inverted ? "sd-6-0-0-next-3-button--secondary--hover-color-background group-active:sd-6-0-0-next-3-button--secondary--active-color-background" : "bg-primary-500 group-active:sd-6-0-0-next-3-button--secondary--inverted--active-color-background",
|
|
206
|
+
tertiary: !this.inverted ? "sd-6-0-0-next-3-button--tertiary--hover-color-background group-active:sd-6-0-0-next-3-button--tertiary--active-color-background" : "bg-primary-500 group-active:sd-6-0-0-next-3-button--tertiary--inverted--active-color-background",
|
|
207
207
|
cta: "bg-accent-550 group-active:bg-accent-700"
|
|
208
208
|
}[this.variant]
|
|
209
209
|
)}"></div></div></div><slot name="icon-left" part="icon-left" class="${cx(
|
|
@@ -228,7 +228,7 @@ var SdButton = class extends SolidElement {
|
|
|
228
228
|
md: "ml-2",
|
|
229
229
|
lg: "ml-2"
|
|
230
230
|
}[this.size]
|
|
231
|
-
)}"></slot>${this.loading ? html`<sd-6-0-0-next-
|
|
231
|
+
)}"></slot>${this.loading ? html`<sd-6-0-0-next-3-loader class="${cx("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-6-0-0-next-3-loader>` : ""}</${tag}>`;
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
234
|
/**
|
|
@@ -237,13 +237,13 @@ var SdButton = class extends SolidElement {
|
|
|
237
237
|
SdButton.styles = [
|
|
238
238
|
...SolidElement.styles,
|
|
239
239
|
css`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
240
|
-
:host{position:relative;z-index:0;display:inline-block;width:auto;cursor:pointer}::slotted(sd-6-0-0-next-
|
|
240
|
+
:host{position:relative;z-index:0;display:inline-block;width:auto;cursor:pointer}::slotted(sd-6-0-0-next-3-badge){pointer-events:none;position:absolute;top:calc(var(--sd-spacing-1) * 0);right:calc(var(--sd-spacing-1) * 0);--tw-translate-x:calc(1/2 * 100%)!important;--tw-translate-y:calc(calc(1/2 * 100%) * -1)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important}::slotted(sd-6-0-0-next-3-icon),sd-6-0-0-next-3-loader{font-size:calc(var(--tw-varspacing)/ 2)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}`
|
|
241
241
|
];
|
|
242
242
|
__decorateClass([
|
|
243
243
|
query("a, button")
|
|
244
244
|
], SdButton.prototype, "button", 2);
|
|
245
245
|
__decorateClass([
|
|
246
|
-
queryAssignedElements({ selector: "sd-6-0-0-next-
|
|
246
|
+
queryAssignedElements({ selector: "sd-6-0-0-next-3-icon" })
|
|
247
247
|
], SdButton.prototype, "_iconsInDefaultSlot", 2);
|
|
248
248
|
__decorateClass([
|
|
249
249
|
state()
|
|
@@ -309,7 +309,7 @@ __decorateClass([
|
|
|
309
309
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
310
310
|
], SdButton.prototype, "handleDisabledChange", 1);
|
|
311
311
|
SdButton = __decorateClass([
|
|
312
|
-
customElement("sd-6-0-0-next-
|
|
312
|
+
customElement("sd-6-0-0-next-3-button")
|
|
313
313
|
], SdButton);
|
|
314
314
|
|
|
315
315
|
export {
|
|
@@ -324,7 +324,7 @@ __decorateClass([
|
|
|
324
324
|
property({ attribute: "auto-size-padding", type: Number })
|
|
325
325
|
], SdPopup.prototype, "autoSizePadding", 2);
|
|
326
326
|
SdPopup = __decorateClass([
|
|
327
|
-
customElement("sd-6-0-0-next-
|
|
327
|
+
customElement("sd-6-0-0-next-3-popup")
|
|
328
328
|
], SdPopup);
|
|
329
329
|
|
|
330
330
|
export {
|
|
@@ -32,7 +32,7 @@ var SdDatepicker = class extends SolidElement {
|
|
|
32
32
|
this.localize = new LocalizeController(this);
|
|
33
33
|
this.hasSlotController = new HasSlotController(this, "label", "help-text", "tooltip");
|
|
34
34
|
this.formControlController = new FormControlController(this, {
|
|
35
|
-
assumeInteractionOn: ["sd-blur", "sd-6-0-0-next-
|
|
35
|
+
assumeInteractionOn: ["sd-blur", "sd-6-0-0-next-3-input"]
|
|
36
36
|
});
|
|
37
37
|
this.locale = "en-US";
|
|
38
38
|
this.value = null;
|
|
@@ -1132,7 +1132,7 @@ var SdDatepicker = class extends SolidElement {
|
|
|
1132
1132
|
return DateUtils.isBetweenInclusive(day, rs, pe);
|
|
1133
1133
|
};
|
|
1134
1134
|
const tabTarget = this.getTabTargetDayForCurrentView(weeks);
|
|
1135
|
-
return html`<div part="datepicker" class="w-[284px] z-50 absolute top-full bg-white border-2 border-t-0 border-primary py-3 px-4 ${this.open ? "block rounded-bl-default rounded-br-default" : "hidden"} ${this.alignment === "left" ? "left-0" : "right-0"}"><div class="flex flex-row items-center w-full justify-between mb-3" part="header"><div class="flex items-center"><button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-year-button" @click="${() => this.setYear(-1)}" @keydown="${(ev) => this.handleHeaderKeyDown(ev, "year", -1, false)}" aria-label="${this.localize.term("previousYear")}"><sd-6-0-0-next-
|
|
1135
|
+
return html`<div part="datepicker" class="w-[284px] z-50 absolute top-full bg-white border-2 border-t-0 border-primary py-3 px-4 ${this.open ? "block rounded-bl-default rounded-br-default" : "hidden"} ${this.alignment === "left" ? "left-0" : "right-0"}"><div class="flex flex-row items-center w-full justify-between mb-3" part="header"><div class="flex items-center"><button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-year-button" @click="${() => this.setYear(-1)}" @keydown="${(ev) => this.handleHeaderKeyDown(ev, "year", -1, false)}" aria-label="${this.localize.term("previousYear")}"><sd-6-0-0-next-3-icon library="_internal" name="chevrons-sm-left" class="h-6 w-6"></sd-6-0-0-next-3-icon></button> <button type="button" tabindex="0" class="nav prev w-6 h-6 hover:cursor-pointer sd-interactive" part="prev-month-button" @click="${() => this.setMonth(-1)}" @keydown="${(ev) => this.handleHeaderKeyDown(ev, "month", -1, false)}" aria-label="${this.localize.term("previousMonth")}"><sd-6-0-0-next-3-icon library="_internal" name="chevron-sm-left" class="h-6 w-6"></sd-6-0-0-next-3-icon></button></div><div tabindex="-1" class="month-label flex justify-center sd-headline sd-headline--size-base !text-primary" part="month-label" aria-live="polite">${monthLabel}</div><div class="flex items-center"><button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-month-button" @click="${() => this.setMonth(1)}" @keydown="${(ev) => this.handleHeaderKeyDown(ev, "month", 1, false)}" aria-label="${this.localize.term("nextMonth")}"><sd-6-0-0-next-3-icon library="_internal" name="chevron-sm-right" class="h-6 w-6"></sd-6-0-0-next-3-icon></button> <button type="button" tabindex="0" class="nav next w-6 h-6 hover:cursor-pointer sd-interactive" part="next-year-button" @click="${() => this.setYear(1)}" @keydown="${(ev) => this.handleHeaderKeyDown(ev, "year", 1, true)}" aria-label="${this.localize.term("nextYear")}"><sd-6-0-0-next-3-icon library="_internal" name="chevrons-sm-right" class="h-6 w-6"></sd-6-0-0-next-3-icon></button></div></div><sd-6-0-0-next-3-divider></sd-6-0-0-next-3-divider><div class="sr-only" aria-live="polite" aria-atomic="true">${this.statusNavText}</div><div class="sr-only" aria-live="assertive" aria-atomic="true">${this.statusSelectText}</div><div class="sr-only" id="keyboard-hint">${this.localize.term("datePickerInfo")}</div><div class="grid mt-2" role="grid" aria-describedby="keyboard-hint" aria-label="${monthLabel}" part="grid" @mouseleave="${this.onGridMouseLeave}" @focusin="${() => {
|
|
1136
1136
|
this.tabbingIntoGrid = false;
|
|
1137
1137
|
}}"><div class="grid-row grid-head grid grid-cols-7 gap-y-[1px]" role="row">${weekdays.map(
|
|
1138
1138
|
(w, colIndex) => html`<div role="columnheader" aria-colindex="${colIndex + 1}" part="weekday" class="cell head flex items-center justify-center font-bold text-black text-sm leading-none h-8" aria-label="${w}" title="${w}" id="${"col-" + (colIndex + 1)}">${w}</div>`
|
|
@@ -1216,7 +1216,7 @@ var SdDatepicker = class extends SolidElement {
|
|
|
1216
1216
|
borderColor,
|
|
1217
1217
|
this.open && this.alignment === "left" ? "rounded-bl-none" : "",
|
|
1218
1218
|
this.open && this.alignment === "right" ? "rounded-br-none" : ""
|
|
1219
|
-
)}"></div><sd-6-0-0-next-
|
|
1219
|
+
)}"></div><sd-6-0-0-next-3-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx("inline-flex relative w-full")}" sync="width" auto-size="vertical" auto-size-padding="10" exportparts="popup:popup__content,"><div part="base" class="${cx(
|
|
1220
1220
|
"px-4 flex flex-row items-center rounded-default transition-colors ease-in-out duration-medium hover:duration-fast w-full",
|
|
1221
1221
|
!this.disabled && !this.readonly && !this.visuallyDisabled ? "hover:bg-neutral-200" : "",
|
|
1222
1222
|
this.readonly ? "bg-neutral-100" : "bg-white",
|
|
@@ -1226,7 +1226,7 @@ var SdDatepicker = class extends SolidElement {
|
|
|
1226
1226
|
this.visuallyDisabled || this.disabled ? "placeholder-neutral-500 cursor-not-allowed" : "placeholder-neutral-700",
|
|
1227
1227
|
{ sm: "h-8", md: "h-10", lg: "h-12" }[this.size],
|
|
1228
1228
|
textSize
|
|
1229
|
-
)}" placeholder="${this.placeholder || this.localize.term(this.range ? "dateRangePlaceholder" : "datePlaceholder")}" ?disabled="${this.disabled || this.disabled}" ?readonly="${this.readonly}" @input="${this.handleInput}" @click="${this.handleMouseDown}" @keydown="${this.handleInputKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleInputBlur}" @invalid="${this.handleInvalid}"> ${this.showInvalidStyle ? html`<sd-6-0-0-next-
|
|
1229
|
+
)}" placeholder="${this.placeholder || this.localize.term(this.range ? "dateRangePlaceholder" : "datePlaceholder")}" ?disabled="${this.disabled || this.disabled}" ?readonly="${this.readonly}" @input="${this.handleInput}" @click="${this.handleMouseDown}" @keydown="${this.handleInputKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleInputBlur}" @invalid="${this.handleInvalid}"> ${this.showInvalidStyle ? html`<sd-6-0-0-next-3-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="_internal" name="risk"></sd-6-0-0-next-3-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-6-0-0-next-3-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-0-0-next-3-icon>` : ""}<sd-6-0-0-next-3-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="_internal" name="calendar"></sd-6-0-0-next-3-icon>${this.renderCalendar()}</div></sd-6-0-0-next-3-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-1", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
|
1230
1230
|
}
|
|
1231
1231
|
};
|
|
1232
1232
|
SdDatepicker.styles = [
|
|
@@ -1368,7 +1368,7 @@ __decorateClass([
|
|
|
1368
1368
|
watch(["disabled", "visually-disabled"], { waitUntilFirstUpdate: true })
|
|
1369
1369
|
], SdDatepicker.prototype, "handleDisabledChange", 1);
|
|
1370
1370
|
SdDatepicker = __decorateClass([
|
|
1371
|
-
customElement("sd-6-0-0-next-
|
|
1371
|
+
customElement("sd-6-0-0-next-3-datepicker")
|
|
1372
1372
|
], SdDatepicker);
|
|
1373
1373
|
|
|
1374
1374
|
export {
|
|
@@ -385,7 +385,7 @@ var SdInput = class extends SolidElement {
|
|
|
385
385
|
this.size === "sm" ? "h-6" : "h-8",
|
|
386
386
|
textSize
|
|
387
387
|
)}" type="${this.type === "password" && this.passwordVisible ? "text" : this.type}" title="${this.title}" name="${ifDefined(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" min="${ifDefined(this.min)}" max="${ifDefined(this.max)}" step="${ifDefined(this.step)}" .value="${live(this.value)}" autocapitalize="${ifDefined(this.type === "password" ? "off" : this.autocapitalize)}" autocomplete="${// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
388
|
-
ifDefined(this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled || this.disabled ? "true" : "false"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${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-0-0-next-
|
|
388
|
+
ifDefined(this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled || this.disabled ? "true" : "false"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${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-0-0-next-3-icon class="${cx("text-neutral-700", iconSize)}" library="_internal" name="closing-round"></sd-6-0-0-next-3-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("flex items-center sd-interactive", iconMarginLeft)}" type="button" @click="${this.handlePasswordToggle}">${this.passwordVisible ? html`<slot name="show-password-icon"><sd-6-0-0-next-3-icon class="${cx(iconColor, iconSize)}" library="_internal" name="eye"></sd-6-0-0-next-3-icon></slot>` : html`<slot name="hide-password-icon"><sd-6-0-0-next-3-icon class="${cx(iconColor, iconSize)}" library="_internal" name="eye-crossed-out"></sd-6-0-0-next-3-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-6-0-0-next-3-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="_internal" name="calendar"></sd-6-0-0-next-3-icon>` : ""} ${this.type === "time" ? html`<sd-6-0-0-next-3-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="_internal" name="clock"></sd-6-0-0-next-3-icon>` : ""} ${this.type === "search" ? html`<button class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button" @click="${this.handleSearchClick}"><sd-6-0-0-next-3-icon class="${cx(iconColor, iconSize)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-6-0-0-next-3-icon></button>` : ""} ${this.showInvalidStyle ? html`<sd-6-0-0-next-3-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="_internal" name="risk"></sd-6-0-0-next-3-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-6-0-0-next-3-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-0-0-next-3-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"><slot name="decrement-number-stepper"><sd-6-0-0-next-3-icon library="_internal" name="minus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-6-0-0-next-3-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-0-0-next-3-icon library="_internal" name="plus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-6-0-0-next-3-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 ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
|
389
389
|
}
|
|
390
390
|
};
|
|
391
391
|
/**
|
|
@@ -394,7 +394,7 @@ var SdInput = class extends SolidElement {
|
|
|
394
394
|
SdInput.styles = [
|
|
395
395
|
...SolidElement.styles,
|
|
396
396
|
css`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
397
|
-
:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) #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}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-0-0-next-
|
|
397
|
+
:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) #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}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-0-0-next-3-icon{color:var(--sd-color-text-neutral-500)}`
|
|
398
398
|
];
|
|
399
399
|
__decorateClass([
|
|
400
400
|
query("#input")
|
|
@@ -524,7 +524,7 @@ __decorateClass([
|
|
|
524
524
|
watch("value", { waitUntilFirstUpdate: true })
|
|
525
525
|
], SdInput.prototype, "handleValueChange", 1);
|
|
526
526
|
SdInput = __decorateClass([
|
|
527
|
-
customElement("sd-6-0-0-next-
|
|
527
|
+
customElement("sd-6-0-0-next-3-input")
|
|
528
528
|
], SdInput);
|
|
529
529
|
|
|
530
530
|
export {
|
|
@@ -183,7 +183,7 @@ var SdDialog = class extends SolidElement {
|
|
|
183
183
|
)}"><div part="overlay" class="fixed inset-0 overlay-color-background opacity-90" @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-0-0-next-
|
|
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-0-0-next-3-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-0-0-next-3-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-6-0-0-next-3-icon></sd-6-0-0-next-3-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-0-0-next-
|
|
216
|
+
customElement("sd-6-0-0-next-3-dialog")
|
|
217
217
|
], SdDialog);
|
|
218
218
|
setDefaultAnimation("dialog.show", {
|
|
219
219
|
keyframes: [
|