@solid-design-system/components 4.3.1 → 4.4.0
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.HT2MRC4Z.js +1 -0
- package/cdn/chunks/chunk.NQXQB7LN.js +1 -0
- package/cdn/components/step/step.d.ts +1 -0
- package/cdn/components/step/step.js +1 -1
- package/cdn/components/step-group/step-group.d.ts +1 -0
- package/cdn/components/step-group/step-group.js +1 -1
- package/cdn/custom-elements.json +20 -1
- package/cdn/solid-components.bundle.js +15 -15
- package/cdn/solid-components.iife.js +15 -15
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +5 -0
- package/cdn/web-types.json +11 -1
- 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.247MZWMU.js +1 -1
- package/cdn-versioned/chunks/chunk.2BLQ3VDT.js +4 -4
- package/cdn-versioned/chunks/chunk.2HJF2D4H.js +2 -2
- package/cdn-versioned/chunks/chunk.43NFQGWL.js +1 -1
- package/cdn-versioned/chunks/chunk.4QAJB6AU.js +1 -1
- package/cdn-versioned/chunks/chunk.5AILWWY2.js +1 -1
- package/cdn-versioned/chunks/chunk.5TTHL3M2.js +3 -3
- package/cdn-versioned/chunks/chunk.5YWPH3S7.js +2 -2
- package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
- package/cdn-versioned/chunks/chunk.777DWZOA.js +1 -1
- package/cdn-versioned/chunks/chunk.7TRFUW6U.js +1 -1
- package/cdn-versioned/chunks/chunk.BHWV44KN.js +1 -1
- package/cdn-versioned/chunks/chunk.BWMHPT4Y.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.CNGIUOE5.js +1 -1
- package/cdn-versioned/chunks/chunk.DDLTKNEO.js +1 -1
- package/cdn-versioned/chunks/chunk.DLY5AX2P.js +1 -1
- package/cdn-versioned/chunks/chunk.E5FCRWHS.js +1 -1
- package/cdn-versioned/chunks/chunk.F45IDVYA.js +1 -1
- package/cdn-versioned/chunks/chunk.FHU3KJ7Y.js +1 -1
- package/cdn-versioned/chunks/chunk.FVXID42E.js +1 -1
- package/cdn-versioned/chunks/chunk.HT2MRC4Z.js +1 -0
- package/cdn-versioned/chunks/chunk.I2WEQVU3.js +1 -1
- package/cdn-versioned/chunks/chunk.IUC5UQ2V.js +1 -1
- package/cdn-versioned/chunks/chunk.JCNKLGIS.js +1 -1
- package/cdn-versioned/chunks/chunk.JDSUZDP4.js +1 -1
- package/cdn-versioned/chunks/chunk.KLNBBP4R.js +4 -4
- package/cdn-versioned/chunks/chunk.KV424MMD.js +1 -1
- package/cdn-versioned/chunks/chunk.KWNRVZ54.js +1 -1
- package/cdn-versioned/chunks/chunk.LET4FMBB.js +1 -1
- package/cdn-versioned/chunks/chunk.LKO4ZRE7.js +1 -1
- package/cdn-versioned/chunks/chunk.NFQN6UG4.js +1 -1
- package/cdn-versioned/chunks/chunk.NOJV6ZZF.js +1 -1
- package/cdn-versioned/chunks/chunk.NQXQB7LN.js +1 -0
- package/cdn-versioned/chunks/chunk.NZT4ORYP.js +1 -1
- package/cdn-versioned/chunks/chunk.O3IRROA2.js +1 -1
- package/cdn-versioned/chunks/chunk.ONLECFTO.js +1 -1
- package/cdn-versioned/chunks/chunk.PDIUABFP.js +1 -1
- package/cdn-versioned/chunks/chunk.PGBIGG5I.js +1 -1
- package/cdn-versioned/chunks/chunk.QWMQJ6TF.js +1 -1
- package/cdn-versioned/chunks/chunk.RCLIOOS5.js +1 -1
- package/cdn-versioned/chunks/chunk.RGJXEMYT.js +1 -1
- package/cdn-versioned/chunks/chunk.SDZ6E4CH.js +1 -1
- package/cdn-versioned/chunks/chunk.V3YHI2G2.js +1 -1
- package/cdn-versioned/chunks/chunk.VZSFEHBE.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WJ55QSS3.js +1 -1
- package/cdn-versioned/chunks/chunk.WMV7GLXF.js +1 -1
- package/cdn-versioned/chunks/chunk.WUTY672B.js +1 -1
- package/cdn-versioned/chunks/chunk.XYZ5DKTA.js +1 -1
- package/cdn-versioned/chunks/chunk.Y4PTSCEB.js +1 -1
- package/cdn-versioned/chunks/chunk.ZN24IDXT.js +1 -1
- package/cdn-versioned/chunks/chunk.ZVVSLR3B.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 +4 -4
- 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 +4 -4
- package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +2 -1
- package/cdn-versioned/components/step/step.js +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +2 -1
- package/cdn-versioned/components/step-group/step-group.js +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 +221 -202
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +20 -20
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +21 -21
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +85 -80
- package/cdn-versioned/web-types.json +147 -137
- package/dist/chunks/{chunk.RI66LCUS.js → chunk.5AX4S2QZ.js} +9 -1
- package/dist/chunks/{chunk.2LL4ZNH4.js → chunk.JMAPLJHF.js} +5 -1
- package/dist/components/step/step.d.ts +1 -0
- package/dist/components/step/step.js +2 -1
- package/dist/components/step-group/step-group.d.ts +1 -0
- package/dist/components/step-group/step-group.js +1 -1
- package/dist/custom-elements.json +20 -1
- package/dist/solid-components.js +2 -2
- package/dist/vscode.html-custom-data.json +5 -0
- package/dist/web-types.json +11 -1
- 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.35GLHXMN.js +2 -2
- package/dist-versioned/chunks/chunk.3UO2LKG5.js +13 -13
- package/dist-versioned/chunks/chunk.3YTMF6YZ.js +2 -2
- package/dist-versioned/chunks/{chunk.RI66LCUS.js → chunk.5AX4S2QZ.js} +11 -3
- package/dist-versioned/chunks/chunk.5V7TZU4Q.js +5 -5
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6MMBMCHF.js +9 -9
- package/dist-versioned/chunks/chunk.6S3CCHLZ.js +1 -1
- package/dist-versioned/chunks/chunk.73HAOWEX.js +2 -2
- package/dist-versioned/chunks/chunk.7SZFMAVT.js +1 -1
- package/dist-versioned/chunks/chunk.AWASHA2T.js +1 -1
- package/dist-versioned/chunks/chunk.BFHRLREK.js +1 -1
- package/dist-versioned/chunks/chunk.CVHGDRIM.js +2 -2
- package/dist-versioned/chunks/chunk.DI4CIT2A.js +1 -1
- package/dist-versioned/chunks/chunk.DNHLNGIL.js +13 -13
- package/dist-versioned/chunks/chunk.F4BRIYYD.js +1 -1
- package/dist-versioned/chunks/chunk.G6KPFA3G.js +4 -4
- package/dist-versioned/chunks/chunk.GQXJC6ZE.js +2 -2
- package/dist-versioned/chunks/chunk.GWCHNKGW.js +1 -1
- package/dist-versioned/chunks/chunk.H54CZFCF.js +5 -5
- package/dist-versioned/chunks/chunk.HJ3ZUH4A.js +1 -1
- package/dist-versioned/chunks/chunk.I2JBWY5C.js +2 -2
- package/dist-versioned/chunks/chunk.IKWY7WM6.js +3 -3
- package/dist-versioned/chunks/chunk.JD5XFZKL.js +2 -2
- package/dist-versioned/chunks/{chunk.2LL4ZNH4.js → chunk.JMAPLJHF.js} +7 -3
- package/dist-versioned/chunks/chunk.JPGDK3CW.js +2 -2
- package/dist-versioned/chunks/chunk.K5MKZJEB.js +5 -5
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.L5QYLWGO.js +6 -6
- package/dist-versioned/chunks/chunk.LRQ55FZL.js +1 -1
- package/dist-versioned/chunks/chunk.LUV3NLSJ.js +3 -3
- package/dist-versioned/chunks/chunk.MCUC6LS6.js +2 -2
- package/dist-versioned/chunks/chunk.MKZ5TRQH.js +1 -1
- package/dist-versioned/chunks/chunk.OENW3EQT.js +5 -5
- package/dist-versioned/chunks/chunk.ONBGPY5D.js +5 -5
- package/dist-versioned/chunks/chunk.QN2ROZHZ.js +3 -3
- package/dist-versioned/chunks/chunk.RFVRT5UG.js +2 -2
- package/dist-versioned/chunks/chunk.SH45GYZL.js +1 -1
- package/dist-versioned/chunks/chunk.T5VRGBLR.js +1 -1
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.UXEDWUMA.js +26 -26
- package/dist-versioned/chunks/chunk.WHFYHMF4.js +2 -2
- package/dist-versioned/chunks/chunk.WJHCLJNK.js +1 -1
- package/dist-versioned/chunks/chunk.WPHOQL7V.js +2 -2
- package/dist-versioned/chunks/chunk.WZGJQPPD.js +2 -2
- package/dist-versioned/chunks/chunk.X7HEAUGJ.js +2 -2
- package/dist-versioned/chunks/chunk.XCNH2K2U.js +5 -5
- package/dist-versioned/chunks/chunk.XNH47HGG.js +29 -29
- package/dist-versioned/chunks/chunk.Y6WJUTMM.js +6 -6
- package/dist-versioned/chunks/chunk.Z3T4BG2M.js +1 -1
- package/dist-versioned/chunks/chunk.ZH6BP5XL.js +3 -3
- package/dist-versioned/chunks/chunk.ZJGD23K6.js +3 -3
- package/dist-versioned/chunks/chunk.ZWJNBDIV.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 +4 -4
- 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 +4 -4
- package/dist-versioned/components/spinner/spinner.d.ts +1 -1
- package/dist-versioned/components/step/step.d.ts +2 -1
- package/dist-versioned/components/step/step.js +2 -1
- package/dist-versioned/components/step-group/step-group.d.ts +2 -1
- package/dist-versioned/components/step-group/step-group.js +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 +221 -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 +85 -80
- package/dist-versioned/web-types.json +147 -137
- package/package.json +2 -2
- package/cdn/chunks/chunk.HKGBSLKX.js +0 -1
- package/cdn/chunks/chunk.NLOKZURD.js +0 -1
- package/cdn-versioned/chunks/chunk.HKGBSLKX.js +0 -1
- package/cdn-versioned/chunks/chunk.NLOKZURD.js +0 -1
|
@@ -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-
|
|
65
|
+
assumeInteractionOn: ["sd-blur", "sd-4-4-0-input"]
|
|
66
66
|
});
|
|
67
67
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
68
68
|
this.localize = new LocalizeController(this);
|
|
@@ -104,11 +104,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
104
104
|
return normalizedOption.includes(normalizedQuery) || normalizedOptionLabel.includes(normalizedQuery);
|
|
105
105
|
};
|
|
106
106
|
this.getTag = (option) => {
|
|
107
|
-
return html`<sd-4-
|
|
107
|
+
return html`<sd-4-4-0-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
108
108
|
base:tag__base,
|
|
109
109
|
content:tag__content,
|
|
110
110
|
removable-indicator:tag__removable-indicator,
|
|
111
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-
|
|
111
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-4-0-tag>`;
|
|
112
112
|
};
|
|
113
113
|
this.handleDocumentFocusIn = (event) => {
|
|
114
114
|
const path = event.composedPath();
|
|
@@ -235,9 +235,9 @@ var SdCombobox = class extends SolidElement {
|
|
|
235
235
|
return html`${typeof optionHtml === "string" ? unsafeHTML(optionHtml) : optionHtml}`;
|
|
236
236
|
};
|
|
237
237
|
return this.filteredOptions.map((item) => {
|
|
238
|
-
if (item.tagName.toLowerCase() === "sd-4-
|
|
238
|
+
if (item.tagName.toLowerCase() === "sd-4-4-0-optgroup") {
|
|
239
239
|
Array.from(item.children).forEach((option) => {
|
|
240
|
-
if (option.tagName.toLowerCase() === "sd-4-
|
|
240
|
+
if (option.tagName.toLowerCase() === "sd-4-4-0-option") {
|
|
241
241
|
renderOption(option);
|
|
242
242
|
}
|
|
243
243
|
});
|
|
@@ -257,11 +257,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
257
257
|
});
|
|
258
258
|
} else {
|
|
259
259
|
return [
|
|
260
|
-
html`<sd-4-
|
|
260
|
+
html`<sd-4-4-0-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
261
261
|
base:tag__base,
|
|
262
262
|
content:tag__content,
|
|
263
263
|
removable-indicator:tag__removable-indicator,
|
|
264
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-
|
|
264
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-4-0-tag>`
|
|
265
265
|
];
|
|
266
266
|
}
|
|
267
267
|
}
|
|
@@ -378,7 +378,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
378
378
|
}
|
|
379
379
|
handleOptionClick(event) {
|
|
380
380
|
const target = event.target;
|
|
381
|
-
const option = target.closest("sd-4-
|
|
381
|
+
const option = target.closest("sd-4-4-0-option");
|
|
382
382
|
const oldValue = this.value;
|
|
383
383
|
if (option && !option.disabled) {
|
|
384
384
|
if (this.multiple) {
|
|
@@ -430,7 +430,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
430
430
|
scrollIntoView(this.getCurrentOption(), this.listbox, "vertical", "auto");
|
|
431
431
|
}
|
|
432
432
|
getAllFilteredOptions() {
|
|
433
|
-
return [...this.filteredWrapper.querySelectorAll("sd-4-
|
|
433
|
+
return [...this.filteredWrapper.querySelectorAll("sd-4-4-0-option")];
|
|
434
434
|
}
|
|
435
435
|
getCurrentOption() {
|
|
436
436
|
return this.getAllFilteredOptions().find((option) => option.current);
|
|
@@ -556,7 +556,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
556
556
|
clonedOption.selected = option.selected;
|
|
557
557
|
clonedOption.checkbox = option.checkbox;
|
|
558
558
|
clonedOption.size = option.size;
|
|
559
|
-
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-4-
|
|
559
|
+
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-4-4-0-optgroup";
|
|
560
560
|
if (!hasOptgroup) {
|
|
561
561
|
return clonedOption;
|
|
562
562
|
}
|
|
@@ -586,7 +586,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
586
586
|
handleMouseLeave() {
|
|
587
587
|
this.hasHover = false;
|
|
588
588
|
}
|
|
589
|
-
/** Receives incoming event detail from sd-4-
|
|
589
|
+
/** Receives incoming event detail from sd-4-4-0-popup and updates local state for conditional styling. */
|
|
590
590
|
handleCurrentPlacement(e) {
|
|
591
591
|
const incomingPlacement = e.detail;
|
|
592
592
|
if (incomingPlacement) {
|
|
@@ -598,7 +598,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
598
598
|
}
|
|
599
599
|
handleUseTagsChange() {
|
|
600
600
|
const allOptions = this.getAllFilteredOptions();
|
|
601
|
-
if (customElements.get("sd-4-
|
|
601
|
+
if (customElements.get("sd-4-4-0-option")) {
|
|
602
602
|
allOptions.forEach((option) => {
|
|
603
603
|
option.checkbox = this.multiple;
|
|
604
604
|
});
|
|
@@ -724,8 +724,8 @@ var SdCombobox = class extends SolidElement {
|
|
|
724
724
|
return filterOnlyOptgroups(getAssignedElementsForSlot(this.defaultSlot));
|
|
725
725
|
}
|
|
726
726
|
async handleDefaultSlotChange() {
|
|
727
|
-
if (!customElements.get("sd-4-
|
|
728
|
-
customElements.whenDefined("sd-4-
|
|
727
|
+
if (!customElements.get("sd-4-4-0-option")) {
|
|
728
|
+
customElements.whenDefined("sd-4-4-0-option").then(() => this.handleDefaultSlotChange());
|
|
729
729
|
return;
|
|
730
730
|
}
|
|
731
731
|
const slottedOptions = this.getSlottedOptions();
|
|
@@ -737,10 +737,10 @@ var SdCombobox = class extends SolidElement {
|
|
|
737
737
|
if (this.multiple) {
|
|
738
738
|
option.checkbox = true;
|
|
739
739
|
}
|
|
740
|
-
option.id = option.id || `sd-4-
|
|
740
|
+
option.id = option.id || `sd-4-4-0-combobox-option-${index}`;
|
|
741
741
|
});
|
|
742
742
|
slottedOptgroups.forEach((optgroup, index) => {
|
|
743
|
-
optgroup.id = optgroup.id || `sd-4-
|
|
743
|
+
optgroup.id = optgroup.id || `sd-4-4-0-combobox-optgroup-${index}`;
|
|
744
744
|
});
|
|
745
745
|
await this.syncSelectedOptionsAndValue();
|
|
746
746
|
if (this.multiple) {
|
|
@@ -789,7 +789,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
789
789
|
default: "border-neutral-800"
|
|
790
790
|
}[selectState],
|
|
791
791
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
|
792
|
-
)}"></div><sd-4-
|
|
792
|
+
)}"></div><sd-4-4-0-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
793
793
|
"inline-flex relative w-full",
|
|
794
794
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
|
795
795
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
@@ -810,28 +810,28 @@ var SdCombobox = class extends SolidElement {
|
|
|
810
810
|
"flex justify-center",
|
|
811
811
|
iconMarginLeft,
|
|
812
812
|
this.value.length > 0 ? "visible" : "invisible"
|
|
813
|
-
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-
|
|
813
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-4-0-icon class="${cx("text-icon-fill-neutral-800", iconSize)}" name="closing-round" library="system"></sd-4-4-0-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-4-0-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="system" name="risk"></sd-4-4-0-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-4-4-0-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="system" name="status-check"></sd-4-4-0-icon>` : ""}<slot name="right" part="right" class="${cx(
|
|
814
814
|
"inline-flex ml-2 leading-[0]",
|
|
815
815
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-primary",
|
|
816
816
|
iconSize
|
|
817
|
-
)}"><sd-4-
|
|
817
|
+
)}"><sd-4-4-0-icon class="${cx("transition-all", this.open ? "rotate-180" : "rotate-0")}" name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-4-0-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${cx(
|
|
818
818
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
|
819
819
|
this.open && "shadow",
|
|
820
820
|
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"
|
|
821
|
-
)}" 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-
|
|
821
|
+
)}" 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-4-0-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700 mt-2" aria-hidden="${!hasHelpText}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`;
|
|
822
822
|
}
|
|
823
823
|
};
|
|
824
824
|
SdCombobox.dependencies = {
|
|
825
|
-
"sd-4-
|
|
826
|
-
"sd-4-
|
|
827
|
-
"sd-4-
|
|
825
|
+
"sd-4-4-0-icon": SdIcon,
|
|
826
|
+
"sd-4-4-0-popup": SdPopup,
|
|
827
|
+
"sd-4-4-0-tag": SdTag
|
|
828
828
|
};
|
|
829
829
|
SdCombobox.styles = [
|
|
830
830
|
...SolidElement.styles,
|
|
831
|
-
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-
|
|
831
|
+
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-4-0-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-4-0-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-4-0-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-4-0-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-4-0-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-4-0-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`
|
|
832
832
|
];
|
|
833
833
|
__decorateClass([
|
|
834
|
-
query("sd-4-
|
|
834
|
+
query("sd-4-4-0-popup")
|
|
835
835
|
], SdCombobox.prototype, "popup", 2);
|
|
836
836
|
__decorateClass([
|
|
837
837
|
query('[part="combobox"]')
|
|
@@ -986,7 +986,7 @@ __decorateClass([
|
|
|
986
986
|
watch("open", { waitUntilFirstUpdate: true })
|
|
987
987
|
], SdCombobox.prototype, "handleOpenChange", 1);
|
|
988
988
|
SdCombobox = __decorateClass([
|
|
989
|
-
customElement("sd-4-
|
|
989
|
+
customElement("sd-4-4-0-combobox")
|
|
990
990
|
], SdCombobox);
|
|
991
991
|
setDefaultAnimation("combobox.show", {
|
|
992
992
|
keyframes: [
|
|
@@ -85,7 +85,7 @@ var SdRadioButton = class extends SolidElement {
|
|
|
85
85
|
};
|
|
86
86
|
SdRadioButton.styles = [
|
|
87
87
|
...SolidElement.styles,
|
|
88
|
-
css`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{width:var(--sd-spacing-12,3rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{width:var(--sd-spacing-10,2.5rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{width:var(--sd-spacing-8,2rem)}:host(.sd-4-
|
|
88
|
+
css`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{width:var(--sd-spacing-12,3rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{width:var(--sd-spacing-10,2.5rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{width:var(--sd-spacing-8,2rem)}:host(.sd-4-4-0-button-group__button--first:not(.sd-4-4-0-button-group__button--last)) button{border-bottom-right-radius:var(--sd-border-radius-none,0);border-top-right-radius:var(--sd-border-radius-none,0)}:host(.sd-4-4-0-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-4-4-0-button-group__button--last:not(.sd-4-4-0-button-group__button--first)) button{border-bottom-left-radius:var(--sd-border-radius-none,0);border-top-left-radius:var(--sd-border-radius-none,0)}:host(.sd-4-4-0-button-group__button:not(.sd-4-4-0-button-group__button--first)){margin-inline-start:-1px}:host(.sd-4-4-0-button-group__button--hover){z-index:10}:host(.sd-4-4-0-button-group__button--focus),:host(.sd-4-4-0-button-group__button[checked]){z-index:20}`
|
|
89
89
|
];
|
|
90
90
|
__decorateClass([
|
|
91
91
|
query(".button")
|
|
@@ -115,7 +115,7 @@ __decorateClass([
|
|
|
115
115
|
watch(["disabled", "visually-disabled"], { waitUntilFirstUpdate: true })
|
|
116
116
|
], SdRadioButton.prototype, "handleDisabledChange", 1);
|
|
117
117
|
SdRadioButton = __decorateClass([
|
|
118
|
-
customElement("sd-4-
|
|
118
|
+
customElement("sd-4-4-0-radio-button")
|
|
119
119
|
], SdRadioButton);
|
|
120
120
|
|
|
121
121
|
export {
|
|
@@ -71,7 +71,7 @@ var SdExpandable = class extends SolidElement {
|
|
|
71
71
|
"sd-interactive sd-interactive--reset",
|
|
72
72
|
this.inverted && "sd-interactive--inverted",
|
|
73
73
|
!this.inverted ? "!focus-visible:focus-outline" : "!focus-visible:focus-outline-inverted"
|
|
74
|
-
)}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${cx("h-full justify-center w-full text-base flex items-center toggle")}">${this.open ? html`<slot name="toggle-open"><sd-4-
|
|
74
|
+
)}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${cx("h-full justify-center w-full text-base flex items-center toggle")}">${this.open ? html`<slot name="toggle-open"><sd-4-4-0-icon class="mr-2 text-xl" library="system" name="chevron-up"></sd-4-4-0-icon>${this.localize.term("showLess")}</slot>` : html`<slot name="toggle-closed"><sd-4-4-0-icon class="mr-2 text-xl" library="system" name="chevron-down"></sd-4-4-0-icon>${this.localize.term("showMore")}</slot>`}</div></button><details part="details" aria-hidden="${!this.open}"><summary part="summary" aria-hidden="true" class="cursor-pointer overflow-hidden list-none"><slot name="clone"></slot></summary><div part="content" class="content content-preview overflow-hidden relative"><slot></slot></div></details></div>`;
|
|
75
75
|
}
|
|
76
76
|
firstUpdated() {
|
|
77
77
|
this.cloneContentToLightDOM();
|
|
@@ -108,7 +108,7 @@ __decorateClass([
|
|
|
108
108
|
watch("open", { waitUntilFirstUpdate: true })
|
|
109
109
|
], SdExpandable.prototype, "onOpenChange", 1);
|
|
110
110
|
SdExpandable = __decorateClass([
|
|
111
|
-
customElement("sd-4-
|
|
111
|
+
customElement("sd-4-4-0-expandable")
|
|
112
112
|
], SdExpandable);
|
|
113
113
|
|
|
114
114
|
export {
|
|
@@ -71,7 +71,7 @@ var SdRadio = class extends SolidElement {
|
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
73
|
return html`<span part="base" class="${cx(
|
|
74
|
-
"sd-4-
|
|
74
|
+
"sd-4-4-0-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",
|
|
75
75
|
(this.disabled || this.visuallyDisabled) && "hover:cursor-not-allowed",
|
|
76
76
|
{
|
|
77
77
|
/* sizes, fonts */
|
|
@@ -126,7 +126,7 @@ __decorateClass([
|
|
|
126
126
|
watch(["disabled", "visually-disabled"], { waitUntilFirstUpdate: true })
|
|
127
127
|
], SdRadio.prototype, "handleDisabledChange", 1);
|
|
128
128
|
SdRadio = __decorateClass([
|
|
129
|
-
customElement("sd-4-
|
|
129
|
+
customElement("sd-4-4-0-radio")
|
|
130
130
|
], SdRadio);
|
|
131
131
|
|
|
132
132
|
export {
|
|
@@ -32,7 +32,7 @@ var SdDivider = class extends SolidElement {
|
|
|
32
32
|
*/
|
|
33
33
|
SdDivider.styles = [
|
|
34
34
|
...SolidElement.styles,
|
|
35
|
-
css`:host{margin:var(--sd-spacing-0,0)}:host(sd-4-
|
|
35
|
+
css`:host{margin:var(--sd-spacing-0,0)}:host(sd-4-4-0-divider[orientation=horizontal]){display:block}:host(sd-4-4-0-divider[orientation=vertical]){display:inline-block}`
|
|
36
36
|
];
|
|
37
37
|
__decorateClass([
|
|
38
38
|
property({ reflect: true })
|
|
@@ -41,7 +41,7 @@ __decorateClass([
|
|
|
41
41
|
property({ type: Boolean, reflect: true })
|
|
42
42
|
], SdDivider.prototype, "inverted", 2);
|
|
43
43
|
SdDivider = __decorateClass([
|
|
44
|
-
customElement("sd-4-
|
|
44
|
+
customElement("sd-4-4-0-divider")
|
|
45
45
|
], SdDivider);
|
|
46
46
|
|
|
47
47
|
export {
|
|
@@ -26,7 +26,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
26
26
|
this.helpText = "";
|
|
27
27
|
}
|
|
28
28
|
getAllCheckboxes() {
|
|
29
|
-
return [...this.querySelectorAll("sd-4-
|
|
29
|
+
return [...this.querySelectorAll("sd-4-4-0-checkbox")];
|
|
30
30
|
}
|
|
31
31
|
async syncCheckboxElements() {
|
|
32
32
|
const checkboxes = this.getAllCheckboxes();
|
|
@@ -39,10 +39,10 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
syncCheckboxes() {
|
|
42
|
-
if (customElements.get("sd-4-
|
|
42
|
+
if (customElements.get("sd-4-4-0-checkbox")) {
|
|
43
43
|
this.syncCheckboxElements();
|
|
44
44
|
} else {
|
|
45
|
-
customElements.whenDefined("sd-4-
|
|
45
|
+
customElements.whenDefined("sd-4-4-0-checkbox").then(() => this.syncCheckboxes());
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
handleSizeChange() {
|
|
@@ -79,7 +79,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
79
79
|
*/
|
|
80
80
|
SdCheckboxGroup.styles = [
|
|
81
81
|
...SolidElement.styles,
|
|
82
|
-
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-
|
|
82
|
+
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-4-0-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-4-0-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-4-0-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-4-0-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-4-0-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-4-0-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`
|
|
83
83
|
];
|
|
84
84
|
__decorateClass([
|
|
85
85
|
property({ reflect: true })
|
|
@@ -100,7 +100,7 @@ __decorateClass([
|
|
|
100
100
|
watch("invalid", { waitUntilFirstUpdate: true })
|
|
101
101
|
], SdCheckboxGroup.prototype, "handleInvalid", 1);
|
|
102
102
|
SdCheckboxGroup = __decorateClass([
|
|
103
|
-
customElement("sd-4-
|
|
103
|
+
customElement("sd-4-4-0-checkbox-group")
|
|
104
104
|
], SdCheckboxGroup);
|
|
105
105
|
|
|
106
106
|
export {
|
|
@@ -53,7 +53,7 @@ var SdSelect = class extends SolidElement {
|
|
|
53
53
|
constructor() {
|
|
54
54
|
super(...arguments);
|
|
55
55
|
this.formControlController = new FormControlController(this, {
|
|
56
|
-
assumeInteractionOn: ["sd-blur", "sd-4-
|
|
56
|
+
assumeInteractionOn: ["sd-blur", "sd-4-4-0-input"]
|
|
57
57
|
});
|
|
58
58
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
59
59
|
this.localize = new LocalizeController(this);
|
|
@@ -87,11 +87,11 @@ var SdSelect = class extends SolidElement {
|
|
|
87
87
|
this.styleOnValid = false;
|
|
88
88
|
this.hoist = false;
|
|
89
89
|
this.getTag = (option) => {
|
|
90
|
-
return html`<sd-4-
|
|
90
|
+
return html`<sd-4-4-0-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
91
91
|
base:tag__base,
|
|
92
92
|
content:tag__content,
|
|
93
93
|
removable-indicator:tag__removable-indicator,
|
|
94
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-
|
|
94
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-4-0-tag>`;
|
|
95
95
|
};
|
|
96
96
|
this.handleDocumentFocusIn = (event) => {
|
|
97
97
|
const path = event.composedPath();
|
|
@@ -102,7 +102,7 @@ var SdSelect = class extends SolidElement {
|
|
|
102
102
|
this.handleDocumentKeyDown = (event) => {
|
|
103
103
|
const target = event.target;
|
|
104
104
|
const isClearButton = target.closest(".select__clear") !== null;
|
|
105
|
-
const isIconButton = target.closest("sd-4-
|
|
105
|
+
const isIconButton = target.closest("sd-4-4-0-icon-button") !== null;
|
|
106
106
|
if (isClearButton || isIconButton) {
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
@@ -236,8 +236,8 @@ var SdSelect = class extends SolidElement {
|
|
|
236
236
|
event.preventDefault();
|
|
237
237
|
event.stopPropagation();
|
|
238
238
|
const tagParent = (_a = event.currentTarget) == null ? void 0 : _a.parentElement;
|
|
239
|
-
const previousTag = (_b = tagParent == null ? void 0 : tagParent.previousElementSibling) == null ? void 0 : _b.querySelector("sd-4-
|
|
240
|
-
const nextTag = (_c = tagParent == null ? void 0 : tagParent.nextElementSibling) == null ? void 0 : _c.querySelector("sd-4-
|
|
239
|
+
const previousTag = (_b = tagParent == null ? void 0 : tagParent.previousElementSibling) == null ? void 0 : _b.querySelector("sd-4-4-0-tag");
|
|
240
|
+
const nextTag = (_c = tagParent == null ? void 0 : tagParent.nextElementSibling) == null ? void 0 : _c.querySelector("sd-4-4-0-tag");
|
|
241
241
|
this.handleTagRemove(new CustomEvent("sd-remove"), option);
|
|
242
242
|
this.updateComplete.then(() => {
|
|
243
243
|
if (nextTag) {
|
|
@@ -257,7 +257,7 @@ var SdSelect = class extends SolidElement {
|
|
|
257
257
|
this.handleTagRemove(new CustomEvent("sd-remove"), this.selectedOptions[this.selectedOptions.length - 1]);
|
|
258
258
|
this.updateComplete.then(() => {
|
|
259
259
|
var _a;
|
|
260
|
-
const tags = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll("sd-4-
|
|
260
|
+
const tags = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll("sd-4-4-0-tag");
|
|
261
261
|
if (tags && tags.length > 0) {
|
|
262
262
|
tags == null ? void 0 : tags[(tags == null ? void 0 : tags.length) - 1].focus();
|
|
263
263
|
} else {
|
|
@@ -302,7 +302,7 @@ var SdSelect = class extends SolidElement {
|
|
|
302
302
|
}
|
|
303
303
|
handleOptionClick(event) {
|
|
304
304
|
const target = event.target;
|
|
305
|
-
const option = target.closest("sd-4-
|
|
305
|
+
const option = target.closest("sd-4-4-0-option");
|
|
306
306
|
const oldValue = this.value;
|
|
307
307
|
if (option && !option.disabled) {
|
|
308
308
|
if (this.multiple) {
|
|
@@ -327,7 +327,7 @@ var SdSelect = class extends SolidElement {
|
|
|
327
327
|
const allOptions = this.getAllOptions();
|
|
328
328
|
const value = Array.isArray(this.value) ? this.value : [this.value];
|
|
329
329
|
const values = [];
|
|
330
|
-
if (customElements.get("sd-4-
|
|
330
|
+
if (customElements.get("sd-4-4-0-option")) {
|
|
331
331
|
allOptions.forEach((option) => {
|
|
332
332
|
if (this.multiple) {
|
|
333
333
|
option.checkbox = true;
|
|
@@ -336,7 +336,7 @@ var SdSelect = class extends SolidElement {
|
|
|
336
336
|
});
|
|
337
337
|
this.setSelectedOptions(allOptions.filter((el) => value.includes(el.value)));
|
|
338
338
|
} else {
|
|
339
|
-
customElements.whenDefined("sd-4-
|
|
339
|
+
customElements.whenDefined("sd-4-4-0-option").then(() => this.handleDefaultSlotChange());
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
handleTagRemove(event, option) {
|
|
@@ -353,13 +353,13 @@ var SdSelect = class extends SolidElement {
|
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
-
// Gets an array of all <sd-4-
|
|
356
|
+
// Gets an array of all <sd-4-4-0-option> elements
|
|
357
357
|
getAllOptions() {
|
|
358
|
-
return [...this.querySelectorAll("sd-4-
|
|
358
|
+
return [...this.querySelectorAll("sd-4-4-0-option")];
|
|
359
359
|
}
|
|
360
|
-
// Gets the first <sd-4-
|
|
360
|
+
// Gets the first <sd-4-4-0-option> element
|
|
361
361
|
getFirstOption() {
|
|
362
|
-
return this.querySelector("sd-4-
|
|
362
|
+
return this.querySelector("sd-4-4-0-option");
|
|
363
363
|
}
|
|
364
364
|
// Sets the current option, which is the option the user is currently interacting with (e.g. via keyboard). Only one
|
|
365
365
|
// option may be "current" at a time.
|
|
@@ -442,11 +442,11 @@ var SdSelect = class extends SolidElement {
|
|
|
442
442
|
});
|
|
443
443
|
} else {
|
|
444
444
|
return [
|
|
445
|
-
html`<sd-4-
|
|
445
|
+
html`<sd-4-4-0-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
446
446
|
base:tag__base,
|
|
447
447
|
content:tag__content,
|
|
448
448
|
removable-indicator:tag__removable-indicator,
|
|
449
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-
|
|
449
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-4-0-tag>`
|
|
450
450
|
];
|
|
451
451
|
}
|
|
452
452
|
}
|
|
@@ -461,7 +461,7 @@ var SdSelect = class extends SolidElement {
|
|
|
461
461
|
handleMouseLeave() {
|
|
462
462
|
this.hasHover = false;
|
|
463
463
|
}
|
|
464
|
-
/** Receives incoming event detail from sd-4-
|
|
464
|
+
/** Receives incoming event detail from sd-4-4-0-popup and updates local state for conditional styling. */
|
|
465
465
|
handleCurrentPlacement(e) {
|
|
466
466
|
const incomingPlacement = e.detail;
|
|
467
467
|
if (incomingPlacement) {
|
|
@@ -470,7 +470,7 @@ var SdSelect = class extends SolidElement {
|
|
|
470
470
|
}
|
|
471
471
|
handleUseTagsChange() {
|
|
472
472
|
const allOptions = this.getAllOptions();
|
|
473
|
-
if (customElements.get("sd-4-
|
|
473
|
+
if (customElements.get("sd-4-4-0-option")) {
|
|
474
474
|
allOptions.forEach((option) => {
|
|
475
475
|
option.checkbox = this.multiple;
|
|
476
476
|
});
|
|
@@ -607,7 +607,7 @@ var SdSelect = class extends SolidElement {
|
|
|
607
607
|
default: "border-neutral-800"
|
|
608
608
|
}[selectState],
|
|
609
609
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
|
610
|
-
)}"></div><sd-4-
|
|
610
|
+
)}"></div><sd-4-4-0-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
611
611
|
"inline-flex relative w-full",
|
|
612
612
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
|
613
613
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
@@ -628,35 +628,35 @@ var SdSelect = class extends SolidElement {
|
|
|
628
628
|
"select__clear flex justify-center",
|
|
629
629
|
iconMarginLeft,
|
|
630
630
|
this.value.length > 0 ? "visible" : "invisible"
|
|
631
|
-
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-
|
|
631
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-4-0-icon class="${cx("text-icon-fill-neutral-800", iconSize)}" library="system" name="closing-round"></sd-4-4-0-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-4-0-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="system" name="risk"></sd-4-4-0-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-4-4-0-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="system" name="status-check"></sd-4-4-0-icon>` : ""}<slot name="expand-icon" part="expand-icon" class="${cx(
|
|
632
632
|
"inline-flex ml-2 transition-all",
|
|
633
633
|
this.open ? "rotate-180" : "rotate-0",
|
|
634
634
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-primary",
|
|
635
635
|
iconSize
|
|
636
|
-
)}"><sd-4-
|
|
636
|
+
)}"><sd-4-4-0-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-4-0-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open ? "true" : "false"}" aria-multiselectable="${this.multiple ? "true" : "false"}" aria-labelledby="label" part="listbox" class="${cx(
|
|
637
637
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
|
638
638
|
this.open && "shadow",
|
|
639
639
|
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"
|
|
640
|
-
)}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-4-
|
|
640
|
+
)}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-4-4-0-popup></div><div class="text-sm text-neutral-700 mt-2" part="form-control-help-text" id="help-text" aria-hidden="${hasHelpText ? "false" : "true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`;
|
|
641
641
|
}
|
|
642
642
|
};
|
|
643
643
|
SdSelect.dependencies = {
|
|
644
|
-
"sd-4-
|
|
645
|
-
"sd-4-
|
|
646
|
-
"sd-4-
|
|
644
|
+
"sd-4-4-0-icon": SdIcon,
|
|
645
|
+
"sd-4-4-0-popup": SdPopup,
|
|
646
|
+
"sd-4-4-0-tag": SdTag
|
|
647
647
|
};
|
|
648
648
|
/**
|
|
649
649
|
* Inherits global stylesheet including TailwindCSS
|
|
650
650
|
*/
|
|
651
651
|
SdSelect.styles = [
|
|
652
652
|
...SolidElement.styles,
|
|
653
|
-
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-
|
|
653
|
+
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-4-0-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-4-0-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-4-0-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-4-0-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-4-0-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))}`
|
|
654
654
|
];
|
|
655
655
|
__decorateClass([
|
|
656
|
-
queryAssignedElements({ selector: "sd-4-
|
|
656
|
+
queryAssignedElements({ selector: "sd-4-4-0-option" })
|
|
657
657
|
], SdSelect.prototype, "_optionsInDefaultSlot", 2);
|
|
658
658
|
__decorateClass([
|
|
659
|
-
query("sd-4-
|
|
659
|
+
query("sd-4-4-0-popup")
|
|
660
660
|
], SdSelect.prototype, "popup", 2);
|
|
661
661
|
__decorateClass([
|
|
662
662
|
query('[part="combobox"]')
|
|
@@ -784,7 +784,7 @@ __decorateClass([
|
|
|
784
784
|
watch("value", { waitUntilFirstUpdate: true })
|
|
785
785
|
], SdSelect.prototype, "handleValueChange", 1);
|
|
786
786
|
SdSelect = __decorateClass([
|
|
787
|
-
customElement("sd-4-
|
|
787
|
+
customElement("sd-4-4-0-select")
|
|
788
788
|
], SdSelect);
|
|
789
789
|
setDefaultAnimation("select.show", {
|
|
790
790
|
keyframes: [
|
|
@@ -288,10 +288,10 @@ var SdAudio = class extends SolidElement {
|
|
|
288
288
|
)}" part="audio-controls"><button class="${cx(
|
|
289
289
|
"playback-speed justify-self-start text-base font-bold hover:cursor-pointer sd-interactive",
|
|
290
290
|
this.inverted && "sd-interactive--inverted"
|
|
291
|
-
)}" aria-label="${this.localize.term("playbackSpeed")}" tabindex="0" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-4-
|
|
291
|
+
)}" aria-label="${this.localize.term("playbackSpeed")}" tabindex="0" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-4-4-0-button ?inverted="${this.inverted ? true : false}" part="play-button" size="lg" @click="${!this.isPlaying ? this.playAudio : this.pauseAudio}" aria-label="${this.isPlaying ? this.localize.term("pauseAudio") : this.localize.term("playAudio")}" title="${this.isPlaying ? this.localize.term("pauseAudio") : this.localize.term("playAudio")}" class="text-3xl">${this.isPlaying ? html`<slot name="pause-icon"><sd-4-4-0-icon class="text-3xl" name="pause" library="system"></sd-4-4-0-icon></slot>` : html`<slot name="play-icon"><sd-4-4-0-icon class="text-3xl" name="start" library="system"></sd-4-4-0-icon></slot>`}</sd-4-4-0-button><div class="flex items-center justify-self-end">${this.hasSlotController.test("transcript") ? html`<button class="${cx(
|
|
292
292
|
"mr-6 w-6 h-6 hover:cursor-pointer sd-interactive",
|
|
293
293
|
this.inverted && "sd-interactive--inverted"
|
|
294
|
-
)}" aria-label="${this.isTranscriptOpen ? this.localize.term("transcriptIsOpen") : this.localize.term("openTranscript")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" tab-index="0" part="transcript"><sd-4-
|
|
294
|
+
)}" aria-label="${this.isTranscriptOpen ? this.localize.term("transcriptIsOpen") : this.localize.term("openTranscript")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" tab-index="0" part="transcript"><sd-4-4-0-icon class="w-6 h-6" name="transcript" library="system"></sd-4-4-0-icon></button>` : null} <button class="${cx("w-6 h-6 hover:cursor-pointer sd-interactive", this.inverted && "sd-interactive--inverted")}" part="volume" aria-label="${!this.isMuted ? this.localize.term("mute") : this.localize.term("unmute")}" tabindex="0" @click="${this.toggleMute}" @keydown="${this.toggleMuteKeydown}"><sd-4-4-0-icon class="w-6 h-6" name="${this.isMuted ? "mute" : "volume"}" library="system"></sd-4-4-0-icon></button></div></div>`;
|
|
295
295
|
const renderTimestamps = html`<div class="${cx(
|
|
296
296
|
"w-full flex justify-between",
|
|
297
297
|
this.reversedLayout ? "mb-2" : "mt-2",
|
|
@@ -301,12 +301,12 @@ var SdAudio = class extends SolidElement {
|
|
|
301
301
|
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(
|
|
302
302
|
"progress-slider bg-primary appearance-none w-full cursor-pointer outline-none h-1 flex items-center sd-interactive",
|
|
303
303
|
this.inverted && "sd-interactive--inverted"
|
|
304
|
-
)}" type="range" max="100" step="0.001" value="${this.progress}" tabindex="0" @input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}" aria-label="${this.localize.term("seekBar")}" 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-
|
|
304
|
+
)}" type="range" max="100" step="0.001" value="${this.progress}" tabindex="0" @input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}" aria-label="${this.localize.term("seekBar")}" 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-4-0-drawer><slot name="transcript"></slot></sd-4-4-0-drawer>` : null} ${!this.hideTimestamps && (!this.animated || !this.reversedLayout) ? renderTimestamps : null}</div>`;
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
307
|
SdAudio.styles = [
|
|
308
308
|
...SolidElement.styles,
|
|
309
|
-
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-
|
|
309
|
+
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-4-0-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-4-0-button::part(label){align-items:center;display:flex;flex-grow:0}`
|
|
310
310
|
];
|
|
311
311
|
__decorateClass([
|
|
312
312
|
property({ type: Boolean, reflect: true, attribute: "reversed-layout" })
|
|
@@ -348,13 +348,13 @@ __decorateClass([
|
|
|
348
348
|
query('[part="audio-player"]')
|
|
349
349
|
], SdAudio.prototype, "audioPlayerContainer", 2);
|
|
350
350
|
__decorateClass([
|
|
351
|
-
query("sd-4-
|
|
351
|
+
query("sd-4-4-0-drawer")
|
|
352
352
|
], SdAudio.prototype, "drawer", 2);
|
|
353
353
|
__decorateClass([
|
|
354
354
|
query("canvas")
|
|
355
355
|
], SdAudio.prototype, "canvas", 2);
|
|
356
356
|
SdAudio = __decorateClass([
|
|
357
|
-
customElement("sd-4-
|
|
357
|
+
customElement("sd-4-4-0-audio")
|
|
358
358
|
], SdAudio);
|
|
359
359
|
|
|
360
360
|
export {
|
|
@@ -64,10 +64,10 @@ var SdQuickfact = class extends SdAccordion {
|
|
|
64
64
|
!this.expandable && "hidden"
|
|
65
65
|
)}
|
|
66
66
|
><slot name="expand-icon" class=${cx(this.open && "hidden")}>
|
|
67
|
-
<sd-4-
|
|
67
|
+
<sd-4-4-0-icon library="system" name="chevron-down"></sd-4-4-0-icon>
|
|
68
68
|
</slot>
|
|
69
69
|
<slot name="collapse-icon" class=${cx(!this.open && "hidden")}>
|
|
70
|
-
<sd-4-
|
|
70
|
+
<sd-4-4-0-icon library="system" name="chevron-down"></sd-4-4-0-icon> </slot
|
|
71
71
|
></span>
|
|
72
72
|
</${header}>
|
|
73
73
|
<div part="content" id="content" class=${cx("overflow-hidden", !this.expandable && "hidden")}>
|
|
@@ -85,7 +85,7 @@ __decorateClass([
|
|
|
85
85
|
property({ type: Boolean, reflect: true })
|
|
86
86
|
], SdQuickfact.prototype, "expandable", 2);
|
|
87
87
|
SdQuickfact = __decorateClass([
|
|
88
|
-
customElement("sd-4-
|
|
88
|
+
customElement("sd-4-4-0-quickfact")
|
|
89
89
|
], SdQuickfact);
|
|
90
90
|
setDefaultAnimation("quickfact.show", {
|
|
91
91
|
keyframes: [
|