@solid-design-system/components 4.0.0-next.6 → 4.0.0-next.7
Sign up to get free protection for your applications and to get access to all the features.
- package/cdn/chunks/chunk.BUUMCPDC.js +11 -0
- package/cdn/chunks/chunk.WHEYQDOD.js +11 -0
- package/cdn/components/combobox/combobox.d.ts +1 -0
- package/cdn/components/combobox/combobox.js +1 -1
- package/cdn/components/select/select.d.ts +1 -0
- package/cdn/components/select/select.js +1 -1
- package/cdn/custom-elements.json +29 -1
- package/cdn/solid-components.bundle.js +8 -8
- package/cdn/solid-components.iife.js +9 -9
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +58 -48
- package/cdn/web-types.json +162 -144
- package/cdn-versioned/_components/menu/menu.js +1 -1
- package/cdn-versioned/_components/menu/menu.styles.js +1 -1
- package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
- package/cdn-versioned/chunks/chunk.24SF73MY.js +1 -1
- package/cdn-versioned/chunks/chunk.2IZXJHH7.js +1 -1
- package/cdn-versioned/chunks/chunk.36Z2VDHI.js +1 -1
- package/cdn-versioned/chunks/chunk.3ATYVOO4.js +1 -1
- package/cdn-versioned/chunks/chunk.4HIKTDIM.js +3 -3
- package/cdn-versioned/chunks/chunk.4W3WLVGR.js +1 -1
- package/cdn-versioned/chunks/chunk.5FM4F3Y4.js +1 -1
- package/cdn-versioned/chunks/chunk.5ZDWEJDB.js +1 -1
- package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
- package/cdn-versioned/chunks/chunk.6JBTCFHE.js +2 -2
- package/cdn-versioned/chunks/chunk.7M7VCE7R.js +1 -1
- package/cdn-versioned/chunks/chunk.7RJ3O2FV.js +1 -1
- package/cdn-versioned/chunks/chunk.APMDRZQD.js +1 -1
- package/cdn-versioned/chunks/chunk.BUUMCPDC.js +11 -0
- package/cdn-versioned/chunks/chunk.C2PA7CKF.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.DMLGBWCL.js +1 -1
- package/cdn-versioned/chunks/chunk.DVHKKAVM.js +1 -1
- package/cdn-versioned/chunks/chunk.EWWGLHC5.js +1 -1
- package/cdn-versioned/chunks/chunk.F7J6HN76.js +1 -1
- package/cdn-versioned/chunks/chunk.FD54463O.js +1 -1
- package/cdn-versioned/chunks/chunk.FFNTXFC3.js +1 -1
- package/cdn-versioned/chunks/chunk.FX3ED655.js +1 -1
- package/cdn-versioned/chunks/chunk.GOVNZSCO.js +1 -1
- package/cdn-versioned/chunks/chunk.GQSLHWQC.js +1 -1
- package/cdn-versioned/chunks/chunk.ISEQUO4U.js +1 -1
- package/cdn-versioned/chunks/chunk.ITRQVXFY.js +1 -1
- package/cdn-versioned/chunks/chunk.IZKUI5WK.js +1 -1
- package/cdn-versioned/chunks/chunk.KMLMMBY4.js +1 -1
- package/cdn-versioned/chunks/chunk.LLXTYJXF.js +1 -1
- package/cdn-versioned/chunks/chunk.LZEFLOSA.js +1 -1
- package/cdn-versioned/chunks/chunk.MPP7HYX7.js +1 -1
- package/cdn-versioned/chunks/chunk.MX22EZXK.js +1 -1
- package/cdn-versioned/chunks/chunk.ND7BT52X.js +1 -1
- package/cdn-versioned/chunks/chunk.NUB5WHGD.js +1 -1
- package/cdn-versioned/chunks/chunk.O4UXOQEI.js +1 -1
- package/cdn-versioned/chunks/chunk.OVV7TNT2.js +1 -1
- package/cdn-versioned/chunks/chunk.PBPFKJKV.js +1 -1
- package/cdn-versioned/chunks/chunk.QFNCQQ6S.js +1 -1
- package/cdn-versioned/chunks/chunk.QNZWJACC.js +2 -2
- package/cdn-versioned/chunks/chunk.R354E6ZD.js +1 -1
- package/cdn-versioned/chunks/chunk.TA7CZCP3.js +1 -1
- package/cdn-versioned/chunks/chunk.U443X4TI.js +1 -1
- package/cdn-versioned/chunks/chunk.UBFU6D5B.js +1 -1
- package/cdn-versioned/chunks/chunk.URB2K7JQ.js +1 -1
- package/cdn-versioned/chunks/chunk.VNKUGTKM.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WENTMXB2.js +1 -1
- package/cdn-versioned/chunks/chunk.WHEYQDOD.js +11 -0
- package/cdn-versioned/chunks/chunk.WQAPHFVM.js +1 -1
- package/cdn-versioned/chunks/chunk.YF5WEC4R.js +2 -2
- package/cdn-versioned/chunks/chunk.ZFA2VPUT.js +1 -1
- package/cdn-versioned/chunks/chunk.ZRIABVVM.js +1 -1
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/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 +5 -4
- package/cdn-versioned/components/combobox/combobox.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/map-marker/map-marker.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 +2 -2
- 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 +2 -2
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +5 -4
- package/cdn-versioned/components/select/select.js +1 -1
- package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +230 -202
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +17 -17
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +18 -18
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +135 -125
- package/cdn-versioned/web-types.json +292 -274
- package/dist/chunks/{chunk.I3PY3VYP.js → chunk.B44AE4VW.js} +14 -4
- package/dist/chunks/{chunk.EFEBQQHC.js → chunk.PPBZXQVJ.js} +28 -17
- package/dist/components/combobox/combobox.d.ts +1 -0
- package/dist/components/combobox/combobox.js +1 -1
- package/dist/components/select/select.d.ts +1 -0
- package/dist/components/select/select.js +1 -1
- package/dist/custom-elements.json +29 -1
- package/dist/solid-components.js +2 -2
- package/dist/vscode.html-custom-data.json +58 -48
- package/dist/web-types.json +162 -144
- package/dist-versioned/_components/menu/menu.js +1 -1
- package/dist-versioned/_components/menu/menu.styles.js +1 -1
- package/dist-versioned/_components/menu-item/menu-item.js +2 -2
- package/dist-versioned/chunks/chunk.2IBVAXOX.js +1 -1
- package/dist-versioned/chunks/chunk.3IT4HBTI.js +1 -1
- package/dist-versioned/chunks/chunk.3LGDUVS4.js +2 -2
- package/dist-versioned/chunks/chunk.4JZQQD4L.js +3 -3
- package/dist-versioned/chunks/chunk.4QKRGAOL.js +4 -4
- package/dist-versioned/chunks/chunk.4RGGPCD5.js +2 -2
- package/dist-versioned/chunks/chunk.65BWRJEA.js +5 -5
- package/dist-versioned/chunks/chunk.6CUAQSFA.js +2 -2
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.727ERQ4F.js +2 -2
- package/dist-versioned/chunks/chunk.743FPQRN.js +2 -2
- package/dist-versioned/chunks/chunk.76ZNNLGN.js +1 -1
- package/dist-versioned/chunks/chunk.7OHSCBBX.js +1 -1
- package/dist-versioned/chunks/{chunk.I3PY3VYP.js → chunk.B44AE4VW.js} +40 -30
- package/dist-versioned/chunks/chunk.BG3M5FUP.js +13 -13
- package/dist-versioned/chunks/chunk.BVC5FY4L.js +13 -13
- package/dist-versioned/chunks/chunk.BXB5WF23.js +5 -5
- package/dist-versioned/chunks/chunk.D6JZ4IKM.js +1 -1
- package/dist-versioned/chunks/chunk.DQPVSTUQ.js +3 -3
- package/dist-versioned/chunks/chunk.EKFRFDTB.js +5 -5
- package/dist-versioned/chunks/chunk.H655M7FD.js +1 -1
- package/dist-versioned/chunks/chunk.HPR3PWAE.js +3 -3
- package/dist-versioned/chunks/chunk.IN3GJ5QL.js +3 -3
- package/dist-versioned/chunks/chunk.J2XBUIBC.js +2 -2
- package/dist-versioned/chunks/chunk.J7MMF6WJ.js +2 -2
- package/dist-versioned/chunks/chunk.KTJRTRDJ.js +5 -5
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.MTSAWJLV.js +2 -2
- package/dist-versioned/chunks/chunk.NM6QP6RJ.js +2 -2
- package/dist-versioned/chunks/chunk.PDRECIYA.js +1 -1
- package/dist-versioned/chunks/chunk.PGZ5AWZ2.js +9 -9
- package/dist-versioned/chunks/chunk.PIR4YJUS.js +2 -2
- package/dist-versioned/chunks/{chunk.EFEBQQHC.js → chunk.PPBZXQVJ.js} +52 -41
- package/dist-versioned/chunks/chunk.QAZYUCBK.js +6 -6
- package/dist-versioned/chunks/chunk.QCICV36Z.js +6 -6
- package/dist-versioned/chunks/chunk.QP3SM2LZ.js +3 -3
- package/dist-versioned/chunks/chunk.R4BETATX.js +1 -1
- package/dist-versioned/chunks/chunk.RNSJAVQE.js +1 -1
- package/dist-versioned/chunks/chunk.RZRTIYXA.js +1 -1
- package/dist-versioned/chunks/chunk.SPBPHTSS.js +2 -2
- package/dist-versioned/chunks/chunk.SSH6ATRK.js +2 -2
- package/dist-versioned/chunks/chunk.TWXYFPBS.js +2 -2
- package/dist-versioned/chunks/chunk.U5NFPAOX.js +2 -2
- package/dist-versioned/chunks/chunk.U6RY25TF.js +2 -2
- package/dist-versioned/chunks/chunk.UC5E3AEF.js +1 -1
- package/dist-versioned/chunks/chunk.UDZYWRPT.js +1 -1
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.V7TQ6VJU.js +1 -1
- package/dist-versioned/chunks/chunk.VHGHICFG.js +2 -2
- package/dist-versioned/chunks/chunk.XVFJS7VS.js +5 -5
- package/dist-versioned/chunks/chunk.Z2UY62T2.js +1 -1
- package/dist-versioned/chunks/chunk.ZGPGFEVP.js +5 -5
- package/dist-versioned/chunks/chunk.ZWJI7SLE.js +11 -11
- 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/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 +5 -4
- package/dist-versioned/components/combobox/combobox.js +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/map-marker/map-marker.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 +2 -2
- 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 +2 -2
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +5 -4
- package/dist-versioned/components/select/select.js +1 -1
- package/dist-versioned/components/spinner/spinner.d.ts +1 -1
- package/dist-versioned/components/step/step.d.ts +1 -1
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/tab/tab.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +230 -202
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +2 -2
- package/dist-versioned/vscode.html-custom-data.json +135 -125
- package/dist-versioned/web-types.json +292 -274
- package/package.json +2 -2
- package/cdn/chunks/chunk.DEX5VJGX.js +0 -11
- package/cdn/chunks/chunk.ROBLMI7Q.js +0 -11
- package/cdn-versioned/chunks/chunk.DEX5VJGX.js +0 -11
- package/cdn-versioned/chunks/chunk.ROBLMI7Q.js +0 -11
@@ -62,7 +62,7 @@ var SdCombobox = class extends SolidElement {
|
|
62
62
|
constructor() {
|
63
63
|
super(...arguments);
|
64
64
|
this.formControlController = new FormControlController(this, {
|
65
|
-
assumeInteractionOn: ["sd-blur", "sd-4-0-0-next-
|
65
|
+
assumeInteractionOn: ["sd-blur", "sd-4-0-0-next-7-input"]
|
66
66
|
});
|
67
67
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
68
68
|
this.localize = new LocalizeController(this);
|
@@ -80,6 +80,7 @@ var SdCombobox = class extends SolidElement {
|
|
80
80
|
this.defaultValue = "";
|
81
81
|
this.size = "lg";
|
82
82
|
this.placeholder = this.localize.term("comboboxDefaultPlaceholder");
|
83
|
+
this.maxOptionsTagLabel = this.localize.term("tagsSelected");
|
83
84
|
this.disabled = false;
|
84
85
|
this.clearable = false;
|
85
86
|
this.open = false;
|
@@ -102,11 +103,11 @@ var SdCombobox = class extends SolidElement {
|
|
102
103
|
return normalizedOption.includes(normalizedQuery) || normalizedOptionLabel.includes(normalizedQuery);
|
103
104
|
};
|
104
105
|
this.getTag = (option) => {
|
105
|
-
return html`<sd-4-0-0-next-
|
106
|
+
return html`<sd-4-0-0-next-7-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
106
107
|
base:tag__base,
|
107
108
|
content:tag__content,
|
108
109
|
removable-indicator:tag__removable-indicator,
|
109
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-0-0-next-
|
110
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-0-0-next-7-tag>`;
|
110
111
|
};
|
111
112
|
this.handleDocumentFocusIn = (event) => {
|
112
113
|
const path = event.composedPath();
|
@@ -162,13 +163,13 @@ var SdCombobox = class extends SolidElement {
|
|
162
163
|
this.setOrderedSelectedOptions(currentOption);
|
163
164
|
this.setSelectedOptions(currentOption);
|
164
165
|
}
|
165
|
-
this.updateComplete.then(() =>
|
166
|
-
|
167
|
-
this.
|
166
|
+
this.updateComplete.then(() => {
|
167
|
+
this.displayInput.focus({ preventScroll: true });
|
168
|
+
if (this.value !== oldValue) {
|
168
169
|
this.emit("sd-input");
|
169
170
|
this.emit("sd-change");
|
170
|
-
}
|
171
|
-
}
|
171
|
+
}
|
172
|
+
});
|
172
173
|
}
|
173
174
|
this.displayInput.focus({ preventScroll: true });
|
174
175
|
if (!this.multiple) {
|
@@ -212,7 +213,6 @@ var SdCombobox = class extends SolidElement {
|
|
212
213
|
this.selectedTextLabel = (option == null ? void 0 : option.getTextLabel()) || "";
|
213
214
|
}
|
214
215
|
this.formControlController.updateValidity();
|
215
|
-
this.applySizeToOptions();
|
216
216
|
}
|
217
217
|
/** Gets the validity state object */
|
218
218
|
get validity() {
|
@@ -229,9 +229,9 @@ var SdCombobox = class extends SolidElement {
|
|
229
229
|
return html`${typeof optionHtml === "string" ? unsafeHTML(optionHtml) : optionHtml}`;
|
230
230
|
};
|
231
231
|
return this.filteredOptions.map((item) => {
|
232
|
-
if (item.tagName.toLowerCase() === "sd-4-0-0-next-
|
232
|
+
if (item.tagName.toLowerCase() === "sd-4-0-0-next-7-optgroup") {
|
233
233
|
Array.from(item.children).forEach((option) => {
|
234
|
-
if (option.tagName.toLowerCase() === "sd-4-0-0-next-
|
234
|
+
if (option.tagName.toLowerCase() === "sd-4-0-0-next-7-option") {
|
235
235
|
renderOption(option);
|
236
236
|
}
|
237
237
|
});
|
@@ -251,11 +251,11 @@ var SdCombobox = class extends SolidElement {
|
|
251
251
|
});
|
252
252
|
} else {
|
253
253
|
return [
|
254
|
-
html`<sd-4-0-0-next-
|
254
|
+
html`<sd-4-0-0-next-7-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
255
255
|
base:tag__base,
|
256
256
|
content:tag__content,
|
257
257
|
removable-indicator:tag__removable-indicator,
|
258
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.
|
258
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.maxOptionsTagLabel}</sd-4-0-0-next-7-tag>`
|
259
259
|
];
|
260
260
|
}
|
261
261
|
}
|
@@ -283,6 +283,7 @@ var SdCombobox = class extends SolidElement {
|
|
283
283
|
}
|
284
284
|
handleTagKeyDown(event, option) {
|
285
285
|
if (event.key === "Backspace" && this.multiple) {
|
286
|
+
event.preventDefault();
|
286
287
|
event.stopPropagation();
|
287
288
|
this.handleTagRemove(new CustomEvent("sd-remove"), option);
|
288
289
|
this.updateComplete.then(() => this.displayInput.focus({ preventScroll: true }));
|
@@ -290,6 +291,7 @@ var SdCombobox = class extends SolidElement {
|
|
290
291
|
}
|
291
292
|
handleTagMaxOptionsKeyDown(event) {
|
292
293
|
if (event.key === "Backspace" && this.multiple) {
|
294
|
+
event.preventDefault();
|
293
295
|
event.stopPropagation();
|
294
296
|
this.handleTagRemove(new CustomEvent("sd-remove"), this.selectedOptions[this.selectedOptions.length - 1]);
|
295
297
|
this.updateComplete.then(() => this.displayInput.focus({ preventScroll: true }));
|
@@ -362,7 +364,7 @@ var SdCombobox = class extends SolidElement {
|
|
362
364
|
}
|
363
365
|
handleOptionClick(event) {
|
364
366
|
const target = event.target;
|
365
|
-
const option = target.closest("sd-4-0-0-next-
|
367
|
+
const option = target.closest("sd-4-0-0-next-7-option");
|
366
368
|
const oldValue = this.value;
|
367
369
|
if (option && !option.disabled) {
|
368
370
|
if (this.multiple) {
|
@@ -376,13 +378,13 @@ var SdCombobox = class extends SolidElement {
|
|
376
378
|
this.setOrderedSelectedOptions(option);
|
377
379
|
this.setSelectedOptions(option);
|
378
380
|
}
|
379
|
-
this.updateComplete.then(() =>
|
380
|
-
|
381
|
-
this.
|
381
|
+
this.updateComplete.then(() => {
|
382
|
+
this.displayInput.focus({ preventScroll: true });
|
383
|
+
if (this.value !== oldValue) {
|
382
384
|
this.emit("sd-input");
|
383
385
|
this.emit("sd-change");
|
384
|
-
}
|
385
|
-
}
|
386
|
+
}
|
387
|
+
});
|
386
388
|
if (!this.multiple) {
|
387
389
|
this.hide();
|
388
390
|
this.displayInput.focus({ preventScroll: true });
|
@@ -414,7 +416,7 @@ var SdCombobox = class extends SolidElement {
|
|
414
416
|
scrollIntoView(this.getCurrentOption(), this.listbox, "vertical", "auto");
|
415
417
|
}
|
416
418
|
getAllFilteredOptions() {
|
417
|
-
return [...this.filteredWrapper.querySelectorAll("sd-4-0-0-next-
|
419
|
+
return [...this.filteredWrapper.querySelectorAll("sd-4-0-0-next-7-option")];
|
418
420
|
}
|
419
421
|
getCurrentOption() {
|
420
422
|
return this.getAllFilteredOptions().find((option) => option.current);
|
@@ -538,7 +540,9 @@ var SdCombobox = class extends SolidElement {
|
|
538
540
|
const clonedOption = option.cloneNode(true);
|
539
541
|
clonedOption.current = clonedOption.value === ((_a = this.lastOption) == null ? void 0 : _a.value);
|
540
542
|
clonedOption.selected = option.selected;
|
541
|
-
|
543
|
+
clonedOption.checkbox = option.checkbox;
|
544
|
+
clonedOption.size = option.size;
|
545
|
+
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-4-0-0-next-7-optgroup";
|
542
546
|
if (!hasOptgroup) {
|
543
547
|
return clonedOption;
|
544
548
|
}
|
@@ -568,7 +572,7 @@ var SdCombobox = class extends SolidElement {
|
|
568
572
|
handleMouseLeave() {
|
569
573
|
this.hasHover = false;
|
570
574
|
}
|
571
|
-
/** Receives incoming event detail from sd-4-0-0-next-
|
575
|
+
/** Receives incoming event detail from sd-4-0-0-next-7-popup and updates local state for conditional styling. */
|
572
576
|
handleCurrentPlacement(e) {
|
573
577
|
const incomingPlacement = e.detail;
|
574
578
|
if (incomingPlacement) {
|
@@ -580,7 +584,7 @@ var SdCombobox = class extends SolidElement {
|
|
580
584
|
}
|
581
585
|
handleUseTagsChange() {
|
582
586
|
const allOptions = this.getAllFilteredOptions();
|
583
|
-
if (customElements.get("sd-4-0-0-next-
|
587
|
+
if (customElements.get("sd-4-0-0-next-7-option")) {
|
584
588
|
allOptions.forEach((option) => {
|
585
589
|
option.checkbox = this.multiple;
|
586
590
|
});
|
@@ -706,20 +710,23 @@ var SdCombobox = class extends SolidElement {
|
|
706
710
|
return filterOnlyOptgroups(getAssignedElementsForSlot(this.defaultSlot));
|
707
711
|
}
|
708
712
|
async handleDefaultSlotChange() {
|
709
|
-
if (!customElements.get("sd-4-0-0-next-
|
710
|
-
customElements.whenDefined("sd-4-0-0-next-
|
713
|
+
if (!customElements.get("sd-4-0-0-next-7-option")) {
|
714
|
+
customElements.whenDefined("sd-4-0-0-next-7-option").then(() => this.handleDefaultSlotChange());
|
711
715
|
return;
|
712
716
|
}
|
713
717
|
const slottedOptions = this.getSlottedOptions();
|
714
718
|
const slottedOptgroups = this.getSlottedOptGroups();
|
719
|
+
this.applySizeToOptions();
|
720
|
+
const selectedOption = this.findOptionByValue(slottedOptions, this.value);
|
721
|
+
this.selectedTextLabel = (selectedOption == null ? void 0 : selectedOption.getTextLabel()) || "";
|
715
722
|
slottedOptions.forEach((option, index) => {
|
716
723
|
if (this.multiple) {
|
717
724
|
option.checkbox = true;
|
718
725
|
}
|
719
|
-
option.id = option.id || `sd-4-0-0-next-
|
726
|
+
option.id = option.id || `sd-4-0-0-next-7-combobox-option-${index}`;
|
720
727
|
});
|
721
728
|
slottedOptgroups.forEach((optgroup, index) => {
|
722
|
-
optgroup.id = optgroup.id || `sd-4-0-0-next-
|
729
|
+
optgroup.id = optgroup.id || `sd-4-0-0-next-7-combobox-optgroup-${index}`;
|
723
730
|
});
|
724
731
|
await this.syncSelectedOptionsAndValue();
|
725
732
|
if (this.multiple) {
|
@@ -727,9 +734,6 @@ var SdCombobox = class extends SolidElement {
|
|
727
734
|
} else {
|
728
735
|
this.createComboboxOptionsFromQuery("");
|
729
736
|
}
|
730
|
-
if (this.hasFocus && this.value.length > 0 && !this.open) {
|
731
|
-
await this.show();
|
732
|
-
}
|
733
737
|
}
|
734
738
|
render() {
|
735
739
|
const slots = {
|
@@ -740,7 +744,7 @@ var SdCombobox = class extends SolidElement {
|
|
740
744
|
const hasHelpTextSlot = this.hasSlotController.test("help-text");
|
741
745
|
const hasLabel = this.label ? true : !!hasLabelSlot;
|
742
746
|
const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
|
743
|
-
const hasClearIcon = this.clearable && !this.disabled
|
747
|
+
const hasClearIcon = this.clearable && !this.disabled;
|
744
748
|
const selectState = this.disabled ? "disabled" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus || this.open ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
745
749
|
const cursorStyles = this.disabled ? "cursor-not-allowed" : "cursor-pointer";
|
746
750
|
const iconColor = this.disabled ? "text-neutral-500" : "text-primary";
|
@@ -770,7 +774,7 @@ var SdCombobox = class extends SolidElement {
|
|
770
774
|
default: "border-neutral-800"
|
771
775
|
}[selectState],
|
772
776
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
773
|
-
)}"></div><sd-4-0-0-next-
|
777
|
+
)}"></div><sd-4-0-0-next-7-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
774
778
|
"inline-flex relative w-full",
|
775
779
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
776
780
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
@@ -787,28 +791,32 @@ var SdCombobox = class extends SolidElement {
|
|
787
791
|
"appearance-none outline-none bg-transparent flex-auto min-w-0",
|
788
792
|
cursorStyles,
|
789
793
|
this.selectedTextLabel && !this.multiple ? "placeholder-black" : "placeholder-neutral-700"
|
790
|
-
)}" type="text" placeholder="${this.selectedTextLabel && !this.multiple ? this.selectedTextLabel : this.placeholder}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map((option) => option == null ? void 0 : option.getTextLabel()).join(", ")}</div><input class="${cx("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10", cursorStyles)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value) ? this.value.join(", ") : this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${() => this.focus()}" @invalid="${this.handleInvalid}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx(
|
794
|
+
)}" type="text" placeholder="${this.selectedTextLabel && !this.multiple ? this.selectedTextLabel : this.placeholder}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map((option) => option == null ? void 0 : option.getTextLabel()).join(", ")}</div><input class="${cx("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10", cursorStyles)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value) ? this.value.join(", ") : this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${() => this.focus()}" @invalid="${this.handleInvalid}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx(
|
795
|
+
"flex justify-center",
|
796
|
+
iconMarginLeft,
|
797
|
+
this.value.length > 0 ? "visible" : "invisible"
|
798
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-0-next-7-icon class="${cx("text-icon-fill-neutral-800", iconSize)}" name="closing-round" library="system"></sd-4-0-0-next-7-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-0-0-next-7-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="system" name="risk"></sd-4-0-0-next-7-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-4-0-0-next-7-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="system" name="status-check"></sd-4-0-0-next-7-icon>` : ""}<slot name="right" part="right" class="${cx(
|
791
799
|
"inline-flex ml-2 leading-[0]",
|
792
800
|
this.disabled ? "text-neutral-500" : "text-primary",
|
793
801
|
iconSize
|
794
|
-
)}"><sd-4-0-0-next-
|
802
|
+
)}"><sd-4-0-0-next-7-icon class="${cx("transition-all", this.open ? "rotate-180" : "rotate-0")}" name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-0-0-next-7-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${cx(
|
795
803
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
796
804
|
this.open && "shadow",
|
797
805
|
this.currentPlacement === "bottom" ? "border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default" : "border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default"
|
798
|
-
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${this.filteredOptions.length === 0 ? html`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>` : this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-4-0-0-next-
|
806
|
+
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${this.filteredOptions.length === 0 ? html`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>` : this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-4-0-0-next-7-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700" aria-hidden="${!hasHelpText}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`;
|
799
807
|
}
|
800
808
|
};
|
801
809
|
SdCombobox.dependencies = {
|
802
|
-
"sd-4-0-0-next-
|
803
|
-
"sd-4-0-0-next-
|
804
|
-
"sd-4-0-0-next-
|
810
|
+
"sd-4-0-0-next-7-icon": SdIcon,
|
811
|
+
"sd-4-0-0-next-7-popup": SdPopup,
|
812
|
+
"sd-4-0-0-next-7-tag": SdTag
|
805
813
|
};
|
806
814
|
SdCombobox.styles = [
|
807
815
|
...SolidElement.styles,
|
808
|
-
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-0-0-next-
|
816
|
+
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-0-0-next-7-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-0-0-next-7-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-4-0-0-next-7-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-0-0-next-7-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-0-0-next-7-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}[part=filtered-listbox] sd-4-0-0-next-7-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`
|
809
817
|
];
|
810
818
|
__decorateClass([
|
811
|
-
query("sd-4-0-0-next-
|
819
|
+
query("sd-4-0-0-next-7-popup")
|
812
820
|
], SdCombobox.prototype, "popup", 2);
|
813
821
|
__decorateClass([
|
814
822
|
query('[part="combobox"]')
|
@@ -884,6 +892,9 @@ __decorateClass([
|
|
884
892
|
__decorateClass([
|
885
893
|
property()
|
886
894
|
], SdCombobox.prototype, "placeholder", 2);
|
895
|
+
__decorateClass([
|
896
|
+
property({ attribute: "max-options-tag-label" })
|
897
|
+
], SdCombobox.prototype, "maxOptionsTagLabel", 2);
|
887
898
|
__decorateClass([
|
888
899
|
property({ reflect: true, type: Boolean })
|
889
900
|
], SdCombobox.prototype, "disabled", 2);
|
@@ -957,7 +968,7 @@ __decorateClass([
|
|
957
968
|
watch("open", { waitUntilFirstUpdate: true })
|
958
969
|
], SdCombobox.prototype, "handleOpenChange", 1);
|
959
970
|
SdCombobox = __decorateClass([
|
960
|
-
customElement("sd-4-0-0-next-
|
971
|
+
customElement("sd-4-0-0-next-7-combobox")
|
961
972
|
], SdCombobox);
|
962
973
|
setDefaultAnimation("combobox.show", {
|
963
974
|
keyframes: [
|
@@ -284,10 +284,10 @@ var SdAudio = class extends SolidElement {
|
|
284
284
|
)}" part="audio-controls"><button class="${cx(
|
285
285
|
"playback-speed justify-self-start text-base font-bold hover:cursor-pointer sd-interactive",
|
286
286
|
this.inverted && "sd-interactive--inverted"
|
287
|
-
)}" aria-label="${this.localize.term("playbackSpeed")}" tabindex="0" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-4-0-0-next-
|
287
|
+
)}" aria-label="${this.localize.term("playbackSpeed")}" tabindex="0" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-4-0-0-next-7-button ?inverted="${this.inverted ? true : false}" part="play-button" size="lg" @click="${!this.isPlaying ? this.playAudio : this.pauseAudio}" aria-label="${this.isPlaying ? this.localize.term("pauseAudio") : this.localize.term("playAudio")}" class="text-3xl">${this.isPlaying ? html`<slot name="pause-icon"><sd-4-0-0-next-7-icon class="text-3xl" name="pause" library="system"></sd-4-0-0-next-7-icon></slot>` : html`<slot name="play-icon"><sd-4-0-0-next-7-icon class="text-3xl" name="start" library="system"></sd-4-0-0-next-7-icon></slot>`}</sd-4-0-0-next-7-button><div class="flex items-center justify-self-end">${this.hasSlotController.test("transcript") ? html`<button class="${cx(
|
288
288
|
"mr-6 w-6 h-6 hover:cursor-pointer sd-interactive",
|
289
289
|
this.inverted && "sd-interactive--inverted"
|
290
|
-
)}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" tab-index="0"><sd-4-0-0-next-
|
290
|
+
)}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" tab-index="0"><sd-4-0-0-next-7-icon class="w-6 h-6" name="transcript" library="system" label="${this.isMuted ? this.localize.term("unmute") : this.localize.term("mute")}"></sd-4-0-0-next-7-icon></button>` : null} <button class="${cx("w-6 h-6 hover:cursor-pointer sd-interactive", this.inverted && "sd-interactive--inverted")}" part="volume" aria-label="${this.localize.term("mute")}" tabindex="0" @click="${this.toggleMute}" @keydown="${this.toggleMuteKeydown}"><sd-4-0-0-next-7-icon class="w-6 h-6" name="${this.isMuted ? "mute" : "volume"}" library="system"></sd-4-0-0-next-7-icon></button></div></div>`;
|
291
291
|
const renderTimestamps = html`<div class="${cx(
|
292
292
|
"w-full flex justify-between",
|
293
293
|
this.reversedLayout ? "mb-2" : "mt-2",
|
@@ -297,12 +297,12 @@ var SdAudio = class extends SolidElement {
|
|
297
297
|
return html`<div class="${cx("w-full flex relative", this.reversedLayout ? "flex-col-reverse" : "flex-col")}" aria-label="${this.localize.term("audioPlayer")}" part="audio-player"><slot @slotchange="${this.updateAudioDuration}"></slot>${!this.animated || this.animated && this.reversedLayout ? renderAudioControls : null}<div class="relative">${this.animated && !this.reversedLayout ? html`${renderAudioControls}` : null} ${this.animated ? html`<canvas class="w-full h-16"></canvas>` : null} ${!this.hideTimestamps && this.animated && this.reversedLayout ? renderTimestamps : null} <input class="${cx(
|
298
298
|
"progress-slider bg-primary appearance-none w-full cursor-pointer outline-none h-1 flex items-center sd-interactive",
|
299
299
|
this.inverted && "sd-interactive--inverted"
|
300
|
-
)}" type="range" max="100" step="0.001" value="${this.progress}" tabindex="0" @input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}" part="progress-slider" style="background:linear-gradient(to right,${this.inverted ? "rgb(var(--sd-color-white, 255 255 255) / 1)" : "rgb(var(--sd-color-primary, 0 53 142) / 1)"} ${progressPercentage}%,${this.animated ? "transparent" : this.inverted ? "rgb(var(--sd-color-primary-400, 153 171 208) / 1)" : "rgb(var(--sd-color-grey-400, 195 195 195) / 1)"} ${progressPercentage}%)"></div>${this.hasSlotController.test("transcript") ? html`<sd-4-0-0-next-
|
300
|
+
)}" type="range" max="100" step="0.001" value="${this.progress}" tabindex="0" @input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}" part="progress-slider" style="background:linear-gradient(to right,${this.inverted ? "rgb(var(--sd-color-white, 255 255 255) / 1)" : "rgb(var(--sd-color-primary, 0 53 142) / 1)"} ${progressPercentage}%,${this.animated ? "transparent" : this.inverted ? "rgb(var(--sd-color-primary-400, 153 171 208) / 1)" : "rgb(var(--sd-color-grey-400, 195 195 195) / 1)"} ${progressPercentage}%)"></div>${this.hasSlotController.test("transcript") ? html`<sd-4-0-0-next-7-drawer><slot name="transcript"></slot></sd-4-0-0-next-7-drawer>` : null} ${!this.hideTimestamps && (!this.animated || !this.reversedLayout) ? renderTimestamps : null}</div>`;
|
301
301
|
}
|
302
302
|
};
|
303
303
|
SdAudio.styles = [
|
304
304
|
...SolidElement.styles,
|
305
|
-
css`.progress-slider:focus-visible{outline:2px solid transparent;outline-offset:2px}.progress-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-webkit-slider-thumb{outline-offset:2px;outline-style:solid}.progress-slider::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-moz-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-moz-range-thumb{outline-offset:2px;outline-style:solid}sd-4-0-0-next-
|
305
|
+
css`.progress-slider:focus-visible{outline:2px solid transparent;outline-offset:2px}.progress-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-webkit-slider-thumb{outline-offset:2px;outline-style:solid}.progress-slider::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-moz-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-moz-range-thumb{outline-offset:2px;outline-style:solid}sd-4-0-0-next-7-button::part(base){align-items:center;border-radius:var(--sd-border-radius-full,9999px);display:flex;height:var(--sd-spacing-16,4rem);justify-content:center;width:var(--sd-spacing-16,4rem)}sd-4-0-0-next-7-button::part(label){align-items:center;display:flex;flex-grow:0}`
|
306
306
|
];
|
307
307
|
__decorateClass([
|
308
308
|
property({ type: Boolean, reflect: true, attribute: "reversed-layout" })
|
@@ -341,13 +341,13 @@ __decorateClass([
|
|
341
341
|
query('[part="audio-player"]')
|
342
342
|
], SdAudio.prototype, "audioPlayerContainer", 2);
|
343
343
|
__decorateClass([
|
344
|
-
query("sd-4-0-0-next-
|
344
|
+
query("sd-4-0-0-next-7-drawer")
|
345
345
|
], SdAudio.prototype, "drawer", 2);
|
346
346
|
__decorateClass([
|
347
347
|
query("canvas")
|
348
348
|
], SdAudio.prototype, "canvas", 2);
|
349
349
|
SdAudio = __decorateClass([
|
350
|
-
customElement("sd-4-0-0-next-
|
350
|
+
customElement("sd-4-0-0-next-7-audio")
|
351
351
|
], SdAudio);
|
352
352
|
|
353
353
|
export {
|
@@ -56,7 +56,7 @@ var SdCarousel = class extends SolidElement {
|
|
56
56
|
this.pausedAutoplay = false;
|
57
57
|
this.autoplayController = new AutoplayController(this, () => this.next());
|
58
58
|
this.scrollController = new ScrollController(this);
|
59
|
-
this.slides = this.getElementsByTagName("sd-4-0-0-next-
|
59
|
+
this.slides = this.getElementsByTagName("sd-4-0-0-next-7-carousel-item");
|
60
60
|
// determines which slide is displayed
|
61
61
|
// A map containing the state of all the slides
|
62
62
|
this.intersectionObserverEntries = /* @__PURE__ */ new Map();
|
@@ -362,7 +362,7 @@ var SdCarousel = class extends SolidElement {
|
|
362
362
|
)}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${prevEnabled ? "false" : "true"}" @click="${prevEnabled ? (e) => {
|
363
363
|
this.previous();
|
364
364
|
this.unblockAutoplay(e, this.previousButton);
|
365
|
-
} : null}"><slot name="previous-icon"><sd-4-0-0-next-
|
365
|
+
} : null}"><slot name="previous-icon"><sd-4-0-0-next-7-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${isLtr ? "chevron-down" : "chevron-up"}"></sd-4-0-0-next-7-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) => {
|
366
366
|
const isActive = index + 1 === currentPage;
|
367
367
|
return html`<button part="pagination-item ${isActive ? "pagination-item--active" : ""}" class="${cx(
|
368
368
|
"carousel__pagination-item",
|
@@ -385,7 +385,7 @@ var SdCarousel = class extends SolidElement {
|
|
385
385
|
)}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${nextEnabled ? "false" : "true"}" @click="${nextEnabled ? (e) => {
|
386
386
|
this.next();
|
387
387
|
this.unblockAutoplay(e, this.nextButton);
|
388
|
-
} : null}"><slot name="next-icon"><sd-4-0-0-next-
|
388
|
+
} : null}"><slot name="next-icon"><sd-4-0-0-next-7-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${isLtr ? "chevron-up" : "chevron-down"}"></sd-4-0-0-next-7-icon></slot></button></div><button class="${cx(
|
389
389
|
"ml-6 !rounded-sm",
|
390
390
|
"!absolute !right-0 sd-interactive",
|
391
391
|
this.inverted ? "sd-interactive--inverted" : "sd-interactive--reset",
|
@@ -395,12 +395,12 @@ var SdCarousel = class extends SolidElement {
|
|
395
395
|
if (e.detail) {
|
396
396
|
this.autoplayControls.blur();
|
397
397
|
}
|
398
|
-
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-4-0-0-next-
|
398
|
+
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-4-0-0-next-7-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-4-0-0-next-7-icon></slot><slot name="autoplay-pause" class="${cx(this.pausedAutoplay ? "hidden" : "")}"><sd-4-0-0-next-7-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-4-0-0-next-7-icon></slot></button></div></div>`;
|
399
399
|
}
|
400
400
|
};
|
401
401
|
SdCarousel.styles = [
|
402
402
|
...SolidElement.styles,
|
403
|
-
css`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-4-0-0-next-
|
403
|
+
css`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-4-0-0-next-7-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`
|
404
404
|
];
|
405
405
|
__decorateClass([
|
406
406
|
query('[part~="autoplay-controls"]')
|
@@ -467,7 +467,7 @@ __decorateClass([
|
|
467
467
|
watch("autoplay")
|
468
468
|
], SdCarousel.prototype, "handleAutoplayChange", 1);
|
469
469
|
SdCarousel = __decorateClass([
|
470
|
-
customElement("sd-4-0-0-next-
|
470
|
+
customElement("sd-4-0-0-next-7-carousel")
|
471
471
|
], SdCarousel);
|
472
472
|
|
473
473
|
export {
|
@@ -364,7 +364,7 @@ var SdInput = class extends SolidElement {
|
|
364
364
|
"min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700",
|
365
365
|
this.size === "sm" ? "h-6" : "h-8",
|
366
366
|
textSize
|
367
|
-
)}" 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="${ifDefined(this.type === "password" ? "off" : 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" @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-4-0-0-next-
|
367
|
+
)}" 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="${ifDefined(this.type === "password" ? "off" : 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" @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-4-0-0-next-7-icon class="${cx("icon-fill-neutral-800", iconSize)}" library="system" name="closing-round"></sd-4-0-0-next-7-icon></slot></button>` : ""} ${this.passwordToggle && this.type === "password" ? html`<button aria-label="${this.localize.term(this.passwordVisible ? "hidePassword" : "showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}" tabindex="-1">${this.passwordVisible ? html`<slot name="show-password-icon"><sd-4-0-0-next-7-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="eye"></sd-4-0-0-next-7-icon></slot>` : html`<slot name="hide-password-icon"><sd-4-0-0-next-7-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="eye-crossed-out"></sd-4-0-0-next-7-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-4-0-0-next-7-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="calendar"></sd-4-0-0-next-7-icon>` : ""} ${this.type === "time" ? html`<sd-4-0-0-next-7-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="clock"></sd-4-0-0-next-7-icon>` : ""} ${this.type === "search" ? html`<button class="flex items-center" type="button" tabindex="-1"><sd-4-0-0-next-7-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="magnifying-glass"></sd-4-0-0-next-7-icon></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-0-0-next-7-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="system" name="risk"></sd-4-0-0-next-7-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-4-0-0-next-7-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="system" name="status-check" part="valid-icon"></sd-4-0-0-next-7-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-4-0-0-next-7-icon name="system/minus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-4-0-0-next-7-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-4-0-0-next-7-icon name="system/plus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-4-0-0-next-7-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", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
368
368
|
}
|
369
369
|
};
|
370
370
|
/**
|
@@ -372,7 +372,7 @@ var SdInput = class extends SolidElement {
|
|
372
372
|
*/
|
373
373
|
SdInput.styles = [
|
374
374
|
...SolidElement.styles,
|
375
|
-
css`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}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-4-0-0-next-
|
375
|
+
css`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}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-4-0-0-next-7-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}`
|
376
376
|
];
|
377
377
|
__decorateClass([
|
378
378
|
query("#input")
|
@@ -499,7 +499,7 @@ __decorateClass([
|
|
499
499
|
watch("value", { waitUntilFirstUpdate: true })
|
500
500
|
], SdInput.prototype, "handleValueChange", 1);
|
501
501
|
SdInput = __decorateClass([
|
502
|
-
customElement("sd-4-0-0-next-
|
502
|
+
customElement("sd-4-0-0-next-7-input")
|
503
503
|
], SdInput);
|
504
504
|
|
505
505
|
export {
|
@@ -25,7 +25,7 @@ SdCarouselItem.styles = [
|
|
25
25
|
css`:host{align-items:center;aspect-ratio:var(--aspect-ratio);display:flex;flex-direction:column;height:100%;justify-content:center;scroll-snap-align:start;scroll-snap-stop:always;width:100%}::slotted(img){height:100%;-o-object-fit:cover;object-fit:cover;width:100%}`
|
26
26
|
];
|
27
27
|
SdCarouselItem = __decorateClass([
|
28
|
-
customElement("sd-4-0-0-next-
|
28
|
+
customElement("sd-4-0-0-next-7-carousel-item")
|
29
29
|
], SdCarouselItem);
|
30
30
|
|
31
31
|
export {
|
@@ -100,7 +100,7 @@ var SdVideo = class extends SolidElement {
|
|
100
100
|
this.playing ? "opacity-0" : "opacity-100",
|
101
101
|
this.isBelowBreakpoint ? "w-[48px] h-[48px]" : "w-[96px] h-[96px]",
|
102
102
|
"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white bg-opacity-75 rounded-full play-pause-transition outline-2 outline-offset-2 group-focus-visible:outline"
|
103
|
-
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-4-0-0-next-
|
103
|
+
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-4-0-0-next-7-icon id="default-play-icon" library="system" name="start"></sd-4-0-0-next-7-icon></slot></div></button> ${this.hasSlotController.test("poster") ? html`<slot name="poster" role="presentation" @transitionend="${this.hidePoster}"></slot>` : null}<div part="overlay" id="overlay" role="presentation" class="${cx(
|
104
104
|
this.overlay && !this.playing ? "opacity-100" : "opacity-0",
|
105
105
|
"bg-[black] bg-opacity-60 w-full h-full absolute top-0 left-0 pointer-events-none z-20 play-pause-transition"
|
106
106
|
)}"></div><slot></slot></div>`;
|
@@ -123,7 +123,7 @@ __decorateClass([
|
|
123
123
|
property({ type: Boolean })
|
124
124
|
], SdVideo.prototype, "isBelowBreakpoint", 2);
|
125
125
|
SdVideo = __decorateClass([
|
126
|
-
customElement("sd-4-0-0-next-
|
126
|
+
customElement("sd-4-0-0-next-7-video")
|
127
127
|
], SdVideo);
|
128
128
|
|
129
129
|
export {
|
@@ -91,7 +91,7 @@ var SdOption = class extends SolidElement {
|
|
91
91
|
)}"></span> ${this.checkbox ? html`<span id="control" part="control ${this.selected ? " control--checked" : "control--unchecked"}" class="${cx(
|
92
92
|
"relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4 mr-2",
|
93
93
|
this.disabled ? "border-neutral-500" : this.selected ? "bg-accent border-accent" : "border-neutral-800"
|
94
|
-
)}">${this.selected ? html`<sd-4-0-0-next-
|
94
|
+
)}">${this.selected ? html`<sd-4-0-0-next-7-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-4-0-0-next-7-icon>` : ""}</span>` : ""} ${slots["left"] ? html`<slot name="left" part="left" class="inline-flex mr-2"></slot>` : ""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${slots["right"] ? html`<slot name="right" part="right" class="inline-flex ml-2"></slot>` : ""}</div>`;
|
95
95
|
}
|
96
96
|
};
|
97
97
|
/**
|
@@ -135,7 +135,7 @@ __decorateClass([
|
|
135
135
|
watch("value")
|
136
136
|
], SdOption.prototype, "handleValueChange", 1);
|
137
137
|
SdOption = __decorateClass([
|
138
|
-
customElement("sd-4-0-0-next-
|
138
|
+
customElement("sd-4-0-0-next-7-option")
|
139
139
|
], SdOption);
|
140
140
|
|
141
141
|
export {
|
@@ -142,7 +142,7 @@ var SdAccordion = class extends SolidElement {
|
|
142
142
|
)}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left">${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-300 text-xl",
|
144
144
|
this.open && "rotate-180"
|
145
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-4-0-0-next-
|
145
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-4-0-0-next-7-icon library="system" name="chevron-down"></sd-4-0-0-next-7-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-4-0-0-next-7-icon library="system" name="chevron-down"></sd-4-0-0-next-7-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 = [
|
@@ -168,7 +168,7 @@ __decorateClass([
|
|
168
168
|
watch("open", { waitUntilFirstUpdate: true })
|
169
169
|
], SdAccordion.prototype, "handleOpenChange", 1);
|
170
170
|
SdAccordion = __decorateClass([
|
171
|
-
customElement("sd-4-0-0-next-
|
171
|
+
customElement("sd-4-0-0-next-7-accordion")
|
172
172
|
], SdAccordion);
|
173
173
|
setDefaultAnimation("accordion.show", {
|
174
174
|
keyframes: [
|
@@ -75,7 +75,7 @@ var SdLink = class extends SolidElement {
|
|
75
75
|
};
|
76
76
|
SdLink.styles = [
|
77
77
|
...SolidElement.styles,
|
78
|
-
css`::slotted(sd-4-0-0-next-
|
78
|
+
css`::slotted(sd-4-0-0-next-7-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-4-0-0-next-7-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-4-0-0-next-7-icon){font-size:var(--sd-font-size-xl,1.5rem)}`
|
79
79
|
];
|
80
80
|
__decorateClass([
|
81
81
|
query("a")
|
@@ -99,7 +99,7 @@ __decorateClass([
|
|
99
99
|
property()
|
100
100
|
], SdLink.prototype, "download", 2);
|
101
101
|
SdLink = __decorateClass([
|
102
|
-
customElement("sd-4-0-0-next-
|
102
|
+
customElement("sd-4-0-0-next-7-link")
|
103
103
|
], SdLink);
|
104
104
|
|
105
105
|
export {
|
@@ -206,7 +206,7 @@ var SdDrawer = class extends SolidElement {
|
|
206
206
|
end: "top-0 end-0 bottom-auto start-auto w-[--width] h-full",
|
207
207
|
start: "top-0 end-auto bottom-auto start-0 w-[--width] h-full"
|
208
208
|
}[this.placement]
|
209
|
-
)}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${this.label}" aria-labelledby="${ifDefined(!this.noHeader ? "title" : void 0)}" tabindex="0">${!this.noHeader ? html`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-4-0-0-next-
|
209
|
+
)}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${this.label}" aria-labelledby="${ifDefined(!this.noHeader ? "title" : void 0)}" tabindex="0">${!this.noHeader ? html`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-4-0-0-next-7-button variant="tertiary" size="lg" part="close-button" @click="${() => this.requestClose("close-button")}"><sd-4-0-0-next-7-icon label="${this.localize.term("close")}" name="close" library="system"></sd-4-0-0-next-7-icon></sd-4-0-0-next-7-button></div></header>` : ""}<div part="body" class="flex-auto block px-4"><slot></slot></div><footer part="footer" class="${cx(this.hasSlotController.test("footer") ? "text-left p-4" : "hidden")}"><slot name="footer"></slot></footer></div></div>`;
|
210
210
|
}
|
211
211
|
};
|
212
212
|
SdDrawer.styles = [
|
@@ -247,7 +247,7 @@ __decorateClass([
|
|
247
247
|
watch("contained", { waitUntilFirstUpdate: true })
|
248
248
|
], SdDrawer.prototype, "handleNoModalChange", 1);
|
249
249
|
SdDrawer = __decorateClass([
|
250
|
-
customElement("sd-4-0-0-next-
|
250
|
+
customElement("sd-4-0-0-next-7-drawer")
|
251
251
|
], SdDrawer);
|
252
252
|
setDefaultAnimation("drawer.showStart", {
|
253
253
|
keyframes: [
|