@solid-design-system/components 6.16.3 → 6.16.4
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/custom-elements.json +187 -187
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +27 -27
- package/cdn/web-types.json +50 -50
- package/cdn-versioned/chunks/chunk.2B2B5P3U.js +2 -2
- package/cdn-versioned/chunks/chunk.3JB5EY7E.js +2 -2
- package/cdn-versioned/chunks/chunk.3MGPNQP3.js +2 -2
- package/cdn-versioned/chunks/chunk.3S7LCENC.js +2 -2
- package/cdn-versioned/chunks/chunk.4BTXQAGS.js +2 -2
- package/cdn-versioned/chunks/chunk.4EDRKPMV.js +1 -1
- package/cdn-versioned/chunks/chunk.52TRFRJK.js +2 -2
- package/cdn-versioned/chunks/chunk.5BES77F3.js +2 -2
- package/cdn-versioned/chunks/chunk.6FABT2P2.js +1 -1
- package/cdn-versioned/chunks/chunk.6G62L252.js +2 -2
- package/cdn-versioned/chunks/chunk.6KFFDNWZ.js +2 -2
- package/cdn-versioned/chunks/chunk.7X7C3TVK.js +5 -5
- package/cdn-versioned/chunks/chunk.7YCGT7U6.js +2 -2
- package/cdn-versioned/chunks/chunk.A2RFNZUI.js +2 -2
- package/cdn-versioned/chunks/chunk.AMY757PV.js +2 -2
- package/cdn-versioned/chunks/chunk.AWT6CEDB.js +2 -2
- package/cdn-versioned/chunks/chunk.BMADIO4C.js +1 -1
- package/cdn-versioned/chunks/chunk.BURXWAXN.js +2 -2
- package/cdn-versioned/chunks/chunk.BZ4RCXT2.js +2 -2
- package/cdn-versioned/chunks/chunk.BZLEZINT.js +2 -2
- package/cdn-versioned/chunks/chunk.CCNRQLG6.js +2 -2
- package/cdn-versioned/chunks/chunk.CSVJ5WK2.js +2 -2
- package/cdn-versioned/chunks/chunk.CX5IPEVT.js +2 -2
- package/cdn-versioned/chunks/chunk.DJZKZO3Y.js +2 -2
- package/cdn-versioned/chunks/chunk.E4XIKDUB.js +2 -2
- package/cdn-versioned/chunks/chunk.ELZMOANU.js +2 -2
- package/cdn-versioned/chunks/chunk.EP63MBIC.js +1 -1
- package/cdn-versioned/chunks/chunk.EXWRCLBQ.js +2 -2
- package/cdn-versioned/chunks/chunk.FBXBQWU2.js +1 -1
- package/cdn-versioned/chunks/chunk.FEAXOG7O.js +2 -2
- package/cdn-versioned/chunks/chunk.FT2B3D2H.js +3 -3
- package/cdn-versioned/chunks/chunk.GLO2H56S.js +2 -2
- package/cdn-versioned/chunks/chunk.GQTD57NE.js +2 -2
- package/cdn-versioned/chunks/chunk.GS5LOZLS.js +3 -3
- package/cdn-versioned/chunks/chunk.HHEQMSA3.js +2 -2
- package/cdn-versioned/chunks/chunk.HLHMPYHS.js +2 -2
- package/cdn-versioned/chunks/chunk.IFICRO7C.js +1 -1
- package/cdn-versioned/chunks/chunk.JHFM7KUH.js +2 -2
- package/cdn-versioned/chunks/chunk.JYLCWE5C.js +2 -2
- package/cdn-versioned/chunks/chunk.K6GLS6QL.js +1 -1
- package/cdn-versioned/chunks/chunk.LMXWTQJ5.js +2 -2
- package/cdn-versioned/chunks/chunk.LQ6VYVB5.js +2 -2
- package/cdn-versioned/chunks/chunk.ODC5ODPF.js +2 -2
- package/cdn-versioned/chunks/chunk.OFLN42UZ.js +2 -2
- package/cdn-versioned/chunks/chunk.OXXPH6YP.js +1 -1
- package/cdn-versioned/chunks/chunk.QAY6EJHY.js +2 -2
- package/cdn-versioned/chunks/chunk.R2Q62L3N.js +1 -1
- package/cdn-versioned/chunks/chunk.RAP66B6O.js +1 -1
- package/cdn-versioned/chunks/chunk.RZLPEVBG.js +2 -2
- package/cdn-versioned/chunks/chunk.VC6JNTW2.js +2 -2
- package/cdn-versioned/chunks/chunk.VT4WT4Y5.js +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WPSLP7SF.js +1 -1
- package/cdn-versioned/chunks/chunk.WR5GB2RK.js +2 -2
- package/cdn-versioned/chunks/chunk.X4UWQNTP.js +5 -5
- package/cdn-versioned/chunks/chunk.X6WPUO3U.js +2 -2
- package/cdn-versioned/chunks/chunk.XDDAXBEN.js +2 -2
- package/cdn-versioned/chunks/chunk.YA5ZEOKP.js +2 -2
- package/cdn-versioned/chunks/chunk.YPTZDABK.js +1 -1
- package/cdn-versioned/chunks/chunk.YY4JMXTS.js +2 -2
- package/cdn-versioned/chunks/chunk.ZBE6FUBE.js +2 -2
- package/cdn-versioned/chunks/chunk.ZFJ3T7TZ.js +9 -9
- package/cdn-versioned/chunks/chunk.ZLJ4GRUR.js +2 -2
- package/cdn-versioned/chunks/chunk.ZRHL55WX.js +2 -2
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/cdn-versioned/components/button/button.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
- package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
- package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/cdn-versioned/components/header/header.d.ts +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/input/input.d.ts +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/loader/loader.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/menu/menu.d.ts +1 -1
- package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/cdn-versioned/components/range/range.d.ts +1 -1
- package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +1 -1
- package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
- package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/theme-listener/theme-listener.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +427 -427
- package/cdn-versioned/internal/form.js +2 -2
- package/cdn-versioned/solid-components.bundle.js +80 -80
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +80 -80
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +131 -131
- package/cdn-versioned/web-types.json +203 -203
- package/dist/custom-elements.json +187 -187
- package/dist/solid-components.js +3 -3
- package/dist/vscode.html-custom-data.json +27 -27
- package/dist/web-types.json +50 -50
- package/dist-versioned/chunks/chunk.27CORLGD.js +2 -2
- package/dist-versioned/chunks/chunk.2EDPY2A5.js +2 -2
- package/dist-versioned/chunks/chunk.36OESV3O.js +1 -1
- package/dist-versioned/chunks/chunk.3PROMK3G.js +10 -10
- package/dist-versioned/chunks/chunk.4FQGHIRS.js +3 -3
- package/dist-versioned/chunks/chunk.4OJXQ3S3.js +4 -4
- package/dist-versioned/chunks/chunk.4WJBOMWG.js +11 -11
- package/dist-versioned/chunks/chunk.4YGFM4I2.js +6 -6
- package/dist-versioned/chunks/chunk.5DLSMYYF.js +5 -5
- package/dist-versioned/chunks/chunk.6GDF7RP6.js +5 -5
- package/dist-versioned/chunks/chunk.6JXHY72O.js +3 -3
- package/dist-versioned/chunks/chunk.6SZCCE7T.js +2 -2
- package/dist-versioned/chunks/chunk.6WM4R2DA.js +3 -3
- package/dist-versioned/chunks/chunk.7LLWTMC3.js +14 -14
- package/dist-versioned/chunks/chunk.7OODH6S5.js +5 -5
- package/dist-versioned/chunks/chunk.7YOG7JGW.js +4 -4
- package/dist-versioned/chunks/chunk.AJJI7TJL.js +2 -2
- package/dist-versioned/chunks/chunk.ANNKBF6X.js +32 -32
- package/dist-versioned/chunks/chunk.AQU3K3QW.js +2 -2
- package/dist-versioned/chunks/chunk.BDGTWJIT.js +12 -12
- package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
- package/dist-versioned/chunks/chunk.CDI4YMFV.js +4 -4
- package/dist-versioned/chunks/chunk.E2USZ7GU.js +6 -6
- package/dist-versioned/chunks/chunk.EGVMKWID.js +1 -1
- package/dist-versioned/chunks/chunk.ELS2J6VM.js +10 -10
- package/dist-versioned/chunks/chunk.FJM4XRBD.js +2 -2
- package/dist-versioned/chunks/chunk.FQAUOX63.js +1 -1
- package/dist-versioned/chunks/chunk.FRVVZRCH.js +1 -1
- package/dist-versioned/chunks/chunk.FV63VR7F.js +13 -13
- package/dist-versioned/chunks/chunk.FXZL5TSR.js +2 -2
- package/dist-versioned/chunks/chunk.HMOYAY72.js +5 -5
- package/dist-versioned/chunks/chunk.IRPULK4T.js +9 -9
- package/dist-versioned/chunks/chunk.IXAGOL3L.js +6 -6
- package/dist-versioned/chunks/chunk.IXY6JRMU.js +3 -3
- package/dist-versioned/chunks/chunk.J2WMB4UM.js +11 -11
- package/dist-versioned/chunks/chunk.JCFYB72C.js +3 -3
- package/dist-versioned/chunks/chunk.JT57FH4I.js +25 -25
- package/dist-versioned/chunks/chunk.JYR67QON.js +2 -2
- package/dist-versioned/chunks/chunk.K7OGNZLO.js +1 -1
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KJN55623.js +11 -11
- package/dist-versioned/chunks/chunk.KLN5272I.js +5 -5
- package/dist-versioned/chunks/chunk.MBVWPMPN.js +4 -4
- package/dist-versioned/chunks/chunk.MMI44BVI.js +2 -2
- package/dist-versioned/chunks/chunk.MQG727Y4.js +4 -4
- package/dist-versioned/chunks/chunk.NAD637BO.js +5 -5
- package/dist-versioned/chunks/chunk.OQ5QEVJF.js +6 -6
- package/dist-versioned/chunks/chunk.P6YK6F7T.js +3 -3
- package/dist-versioned/chunks/chunk.PJ4LG3IZ.js +10 -10
- package/dist-versioned/chunks/chunk.PO2OMSAQ.js +8 -8
- package/dist-versioned/chunks/chunk.QF4M6XJ6.js +10 -10
- package/dist-versioned/chunks/chunk.RL7BJYL6.js +1 -1
- package/dist-versioned/chunks/chunk.RXD64SUC.js +4 -4
- package/dist-versioned/chunks/chunk.S3AIPHMB.js +25 -25
- package/dist-versioned/chunks/chunk.UE4MIFO2.js +2 -2
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.V3RBONZ7.js +2 -2
- package/dist-versioned/chunks/chunk.WV4VZLSM.js +7 -7
- package/dist-versioned/chunks/chunk.X7XDUKGF.js +1 -1
- package/dist-versioned/chunks/chunk.XNTGIC2L.js +1 -1
- package/dist-versioned/chunks/chunk.Y226ELYU.js +5 -5
- package/dist-versioned/chunks/chunk.YC3R5M35.js +5 -5
- package/dist-versioned/chunks/chunk.YGCCHEFS.js +6 -6
- package/dist-versioned/chunks/chunk.ZN4E3BW3.js +5 -5
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/animation/animation.d.ts +1 -1
- package/dist-versioned/components/audio/audio.d.ts +1 -1
- package/dist-versioned/components/badge/badge.d.ts +1 -1
- package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/dist-versioned/components/button/button.d.ts +1 -1
- package/dist-versioned/components/button-group/button-group.d.ts +1 -1
- package/dist-versioned/components/carousel/carousel.d.ts +1 -1
- package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +1 -1
- package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/loader/loader.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/menu/menu.d.ts +1 -1
- package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/dist-versioned/components/range/range.d.ts +1 -1
- package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +1 -1
- package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
- package/dist-versioned/components/spinner/spinner.d.ts +1 -1
- package/dist-versioned/components/step/step.d.ts +1 -1
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/tab/tab.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/theme-listener/theme-listener.d.ts +1 -1
- package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +427 -427
- package/dist-versioned/internal/form.js +2 -2
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +3 -3
- package/dist-versioned/vscode.html-custom-data.json +131 -131
- package/dist-versioned/web-types.json +203 -203
- package/package.json +1 -1
|
@@ -98,11 +98,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
98
98
|
return normalizedOption.includes(normalizedQuery) || normalizedOptionLabel.includes(normalizedQuery);
|
|
99
99
|
};
|
|
100
100
|
this.getTag = (option) => {
|
|
101
|
-
return html`<sd-6-16-
|
|
101
|
+
return html`<sd-6-16-4-tag class="min-w-0 max-w-full" ?disabled="${this.disabled}" part="tag" exportparts="
|
|
102
102
|
base:tag__base,
|
|
103
103
|
content:tag__content,
|
|
104
104
|
removable-indicator:tag__removable-indicator,
|
|
105
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-6-16-
|
|
105
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-6-16-4-tag>`;
|
|
106
106
|
};
|
|
107
107
|
this.handleDocumentFocusIn = (event) => {
|
|
108
108
|
const path = event.composedPath();
|
|
@@ -241,9 +241,9 @@ var SdCombobox = class extends SolidElement {
|
|
|
241
241
|
return html`${typeof optionHtml === "string" ? unsafeHTML(optionHtml) : optionHtml}`;
|
|
242
242
|
};
|
|
243
243
|
return this.filteredOptions.map((item) => {
|
|
244
|
-
if (item.tagName.toLowerCase() === "sd-6-16-
|
|
244
|
+
if (item.tagName.toLowerCase() === "sd-6-16-4-optgroup") {
|
|
245
245
|
Array.from(item.children).forEach((option) => {
|
|
246
|
-
if (option.tagName.toLowerCase() === "sd-6-16-
|
|
246
|
+
if (option.tagName.toLowerCase() === "sd-6-16-4-option") {
|
|
247
247
|
renderOption(option);
|
|
248
248
|
}
|
|
249
249
|
});
|
|
@@ -263,11 +263,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
263
263
|
});
|
|
264
264
|
} else {
|
|
265
265
|
return [
|
|
266
|
-
html`<sd-6-16-
|
|
266
|
+
html`<sd-6-16-4-tag class="min-w-0 max-w-full" ?disabled="${this.disabled}" part="tag" exportparts="
|
|
267
267
|
base:tag__base,
|
|
268
268
|
content:tag__content,
|
|
269
269
|
removable-indicator:tag__removable-indicator,
|
|
270
|
-
" 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-6-16-
|
|
270
|
+
" 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-6-16-4-tag>`
|
|
271
271
|
];
|
|
272
272
|
}
|
|
273
273
|
}
|
|
@@ -396,7 +396,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
396
396
|
}
|
|
397
397
|
handleOptionClick(event) {
|
|
398
398
|
const target = event.target;
|
|
399
|
-
const option = target.closest("sd-6-16-
|
|
399
|
+
const option = target.closest("sd-6-16-4-option");
|
|
400
400
|
const oldValue = this.value;
|
|
401
401
|
if (option && !option.disabled) {
|
|
402
402
|
if (this.multiple) {
|
|
@@ -448,7 +448,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
448
448
|
scrollIntoView(this.getCurrentOption(), this.listbox, "vertical", "auto");
|
|
449
449
|
}
|
|
450
450
|
getAllFilteredOptions() {
|
|
451
|
-
return [...this.filteredWrapper.querySelectorAll("sd-6-16-
|
|
451
|
+
return [...this.filteredWrapper.querySelectorAll("sd-6-16-4-option")];
|
|
452
452
|
}
|
|
453
453
|
getCurrentOption() {
|
|
454
454
|
return this.getAllFilteredOptions().find((option) => option.current);
|
|
@@ -578,7 +578,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
578
578
|
clonedOption.selected = option.selected;
|
|
579
579
|
clonedOption.checkbox = option.checkbox;
|
|
580
580
|
clonedOption.size = option.size;
|
|
581
|
-
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-6-16-
|
|
581
|
+
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-6-16-4-optgroup";
|
|
582
582
|
if (!hasOptgroup) {
|
|
583
583
|
return clonedOption;
|
|
584
584
|
}
|
|
@@ -602,7 +602,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
602
602
|
this.formControlController.emitInvalidEvent(event);
|
|
603
603
|
this.invalidMessage.textContent = event.target.validationMessage;
|
|
604
604
|
}
|
|
605
|
-
/** Receives incoming event detail from sd-6-16-
|
|
605
|
+
/** Receives incoming event detail from sd-6-16-4-popup and updates local state for conditional styling. */
|
|
606
606
|
handleCurrentPlacement(e) {
|
|
607
607
|
const incomingPlacement = e.detail;
|
|
608
608
|
if (incomingPlacement) {
|
|
@@ -614,7 +614,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
614
614
|
}
|
|
615
615
|
handleUseTagsChange() {
|
|
616
616
|
const allOptions = this.getAllFilteredOptions();
|
|
617
|
-
if (customElements.get("sd-6-16-
|
|
617
|
+
if (customElements.get("sd-6-16-4-option")) {
|
|
618
618
|
allOptions.forEach((option) => {
|
|
619
619
|
option.checkbox = this.multiple;
|
|
620
620
|
});
|
|
@@ -743,8 +743,8 @@ var SdCombobox = class extends SolidElement {
|
|
|
743
743
|
return filterOnlyOptgroups(getAssignedElementsForSlot(this.defaultSlot));
|
|
744
744
|
}
|
|
745
745
|
async handleDefaultSlotChange() {
|
|
746
|
-
if (!customElements.get("sd-6-16-
|
|
747
|
-
customElements.whenDefined("sd-6-16-
|
|
746
|
+
if (!customElements.get("sd-6-16-4-option")) {
|
|
747
|
+
customElements.whenDefined("sd-6-16-4-option").then(() => this.handleDefaultSlotChange());
|
|
748
748
|
return;
|
|
749
749
|
}
|
|
750
750
|
const slottedOptions = this.getSlottedOptions();
|
|
@@ -756,10 +756,10 @@ var SdCombobox = class extends SolidElement {
|
|
|
756
756
|
if (this.multiple) {
|
|
757
757
|
option.checkbox = true;
|
|
758
758
|
}
|
|
759
|
-
option.id = option.id || `sd-6-16-
|
|
759
|
+
option.id = option.id || `sd-6-16-4-combobox-option-${index}`;
|
|
760
760
|
});
|
|
761
761
|
slottedOptgroups.forEach((optgroup, index) => {
|
|
762
|
-
optgroup.id = optgroup.id || `sd-6-16-
|
|
762
|
+
optgroup.id = optgroup.id || `sd-6-16-4-combobox-optgroup-${index}`;
|
|
763
763
|
});
|
|
764
764
|
await this.syncSelectedOptionsAndValue();
|
|
765
765
|
if (this.multiple) {
|
|
@@ -783,7 +783,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
783
783
|
const isFloatingLabelActive = this.floatingLabel && hasLabel && (this.hasFocus || hasValue);
|
|
784
784
|
const selectState = this.disabled ? "disabled" : this.visuallyDisabled && !this.hasFocus ? "visuallyDisabled" : 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";
|
|
785
785
|
const cursorStyles = this.disabled || this.visuallyDisabled ? "cursor-not-allowed" : "cursor-pointer";
|
|
786
|
-
const iconColor = this.disabled || this.visuallyDisabled ? "text-neutral-500" : "sd-6-16-
|
|
786
|
+
const iconColor = this.disabled || this.visuallyDisabled ? "text-neutral-500" : "sd-6-16-4-icon-fill-primary";
|
|
787
787
|
const iconMarginLeft = { sm: "ml-1", md: "ml-2", lg: "ml-2" }[this.size];
|
|
788
788
|
const iconMarginRight = { sm: "mr-1", md: "mr-2", lg: "mr-2" }[this.size];
|
|
789
789
|
const iconSize = {
|
|
@@ -821,7 +821,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
821
821
|
default: "form-control-color-border"
|
|
822
822
|
}[selectState],
|
|
823
823
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
|
824
|
-
)}"></div><sd-6-16-
|
|
824
|
+
)}"></div><sd-6-16-4-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
825
825
|
"inline-flex relative w-full",
|
|
826
826
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
|
827
827
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
@@ -846,27 +846,27 @@ var SdCombobox = class extends SolidElement {
|
|
|
846
846
|
"flex justify-center",
|
|
847
847
|
iconMarginLeft,
|
|
848
848
|
this.value.length > 0 ? "visible" : "invisible"
|
|
849
|
-
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-6-16-
|
|
849
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-6-16-4-icon class="${cx("text-neutral-700", iconSize)}" name="closing-round" library="_internal"></sd-6-16-4-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-6-16-4-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="_internal" name="risk"></sd-6-16-4-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-6-16-4-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="_internal" name="confirm-circle"></sd-6-16-4-icon>` : ""}<slot name="right" part="right" class="${cx(
|
|
850
850
|
"inline-flex ml-2 leading-[0]",
|
|
851
|
-
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "sd-6-16-
|
|
851
|
+
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "sd-6-16-4-icon-fill-primary",
|
|
852
852
|
iconSize
|
|
853
|
-
)}">${this.type !== "search" ? html`<sd-6-16-
|
|
853
|
+
)}">${this.type !== "search" ? html`<sd-6-16-4-icon class="${cx(
|
|
854
854
|
"transition-transform duration-medium ease-in-out",
|
|
855
855
|
this.open ? "rotate-180" : "rotate-0"
|
|
856
|
-
)}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-6-16-
|
|
856
|
+
)}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-6-16-4-icon>` : ""}</slot>${this.type === "search" ? html`<button class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button"><sd-6-16-4-icon class="${cx(iconColor, iconSize)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-6-16-4-icon></button>` : html`<button class="sd-interactive combobox-button absolute top-2 sd-color-icon-fill-primary" tabindex="-1" aria-hidden="true" @keydown="${this.handleComboboxMouseDown}" type="button"><span class="sr-only">${this.localize.term("open")}</span></button>`}</div><div id="listbox" role="${ifDefined(!this.multiple ? "listbox" : void 0)}" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${cx(
|
|
857
857
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
|
858
858
|
this.open && "shadow-listbox transition-shadow duration-medium ease-in-out",
|
|
859
859
|
this.currentPlacement === "bottom" ? "border-r-2 border-b-2 border-l-2 form-control__listbox-border-bottom-right-radius form-control__listbox-border-bottom-left-radius" : "border-r-2 border-t-2 border-l-2 form-control__listbox-border-top-right-radius form-control__listbox-border-top-left-radius"
|
|
860
|
-
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox">${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-6-16-
|
|
860
|
+
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox">${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-6-16-4-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-1", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`;
|
|
861
861
|
}
|
|
862
862
|
};
|
|
863
863
|
SdCombobox.styles = [
|
|
864
864
|
...SolidElement.styles,
|
|
865
865
|
css`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
866
|
-
:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{right:var(--sd-spacing-4);height:var(--sd-spacing-4);width:var(--sd-spacing-4)}:host([size=md]) .combobox-button{right:.85rem;height:var(--sd-spacing-6);width:var(--sd-spacing-6)}:host([size=lg]) .combobox-button{right:var(--sd-spacing-3);height:var(--sd-spacing-8);width:var(--sd-spacing-8)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-6-16-
|
|
866
|
+
:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{right:var(--sd-spacing-4);height:var(--sd-spacing-4);width:var(--sd-spacing-4)}:host([size=md]) .combobox-button{right:.85rem;height:var(--sd-spacing-6);width:var(--sd-spacing-6)}:host([size=lg]) .combobox-button{right:var(--sd-spacing-3);height:var(--sd-spacing-8);width:var(--sd-spacing-8)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-6-16-4-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-6-16-4-tag::part(base){border-radius:var(--sd-radius);border-width:var(--sd-combobox__tag-border-width,var(--sd-spacing-0\\.25));padding-inline:var(--sd-spacing-1)}sd-6-16-4-tag::part(content){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--tag-max-width,15ch)}sd-6-16-4-tag[size=lg]::part(base){padding-inline:var(--sd-spacing-2)}sd-6-16-4-tag[disabled=false]::part(base):hover{background-color:rgba(var(--sd-color-background-primary-100))}[part=filtered-listbox] sd-6-16-4-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;--tw-font-weight:var(--sd-font-weight-bold);font-weight:var(--sd-font-weight-bold);color:inherit}[part=chevron]{color:rgb(var(--sd-color-icon-fill-primary))}:host([disabled])::part(chevron),:host([visually-disabled])::part(chevron){color:rgba(var(--sd-color-icon-fill-neutral-500,--sd-color-neutral-500))}@property --tw-font-weight{syntax:"*";inherits:false}`
|
|
867
867
|
];
|
|
868
868
|
__decorateClass([
|
|
869
|
-
query("sd-6-16-
|
|
869
|
+
query("sd-6-16-4-popup")
|
|
870
870
|
], SdCombobox.prototype, "popup", 2);
|
|
871
871
|
__decorateClass([
|
|
872
872
|
query('[part="combobox"]')
|
|
@@ -1030,7 +1030,7 @@ __decorateClass([
|
|
|
1030
1030
|
watch(["size", "floatingLabel"])
|
|
1031
1031
|
], SdCombobox.prototype, "handleSizeChange", 1);
|
|
1032
1032
|
SdCombobox = __decorateClass([
|
|
1033
|
-
customElement("sd-6-16-
|
|
1033
|
+
customElement("sd-6-16-4-combobox")
|
|
1034
1034
|
], SdCombobox);
|
|
1035
1035
|
setDefaultAnimation("combobox.show", {
|
|
1036
1036
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -17,7 +17,7 @@ var SdSkeleton = class extends SolidElement {
|
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
19
|
return html`<div part="base" aria-hidden="true" class="${cx(
|
|
20
|
-
"sd-6-16-
|
|
20
|
+
"sd-6-16-4-skeleton-color w-full h-full animate-pulse",
|
|
21
21
|
{
|
|
22
22
|
rectangular: "rounded-sm",
|
|
23
23
|
circular: "rounded-full inline-block"
|
|
@@ -34,7 +34,7 @@ __decorateClass([
|
|
|
34
34
|
property({ type: String, reflect: true })
|
|
35
35
|
], SdSkeleton.prototype, "variant", 2);
|
|
36
36
|
SdSkeleton = __decorateClass([
|
|
37
|
-
customElement("sd-6-16-
|
|
37
|
+
customElement("sd-6-16-4-skeleton")
|
|
38
38
|
], SdSkeleton);
|
|
39
39
|
|
|
40
40
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/components/combobox/utils.ts
|
|
2
2
|
var getAssignedElementsForSlot = (slot) => Array.from(slot.assignedElements({ flatten: true }));
|
|
3
|
-
var getOptionOrNestedOptions = (item) => item.tagName.toLocaleLowerCase() === "sd-6-16-
|
|
4
|
-
var isOptgroup = (item) => item.tagName.toLocaleLowerCase() === "sd-6-16-
|
|
3
|
+
var getOptionOrNestedOptions = (item) => item.tagName.toLocaleLowerCase() === "sd-6-16-4-option" ? item : Array.from(item.querySelectorAll(":scope > sd-6-16-4-option"));
|
|
4
|
+
var isOptgroup = (item) => item.tagName.toLocaleLowerCase() === "sd-6-16-4-optgroup";
|
|
5
5
|
var getAllOptions = (items) => items.map(getOptionOrNestedOptions);
|
|
6
6
|
var filterOnlyOptgroups = (items) => items.filter(isOptgroup);
|
|
7
7
|
var normalizeString = (str) => str.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase();
|
|
@@ -62,7 +62,7 @@ var SdStepGroup = class extends SolidElement {
|
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
getAllSteps() {
|
|
65
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-6-16-
|
|
65
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-6-16-4-step");
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
68
|
* Sets the active step.
|
|
@@ -133,7 +133,7 @@ __decorateClass([
|
|
|
133
133
|
watch("notInteractive")
|
|
134
134
|
], SdStepGroup.prototype, "handleInteractivityChange", 1);
|
|
135
135
|
SdStepGroup = __decorateClass([
|
|
136
|
-
customElement("sd-6-16-
|
|
136
|
+
customElement("sd-6-16-4-step-group")
|
|
137
137
|
], SdStepGroup);
|
|
138
138
|
|
|
139
139
|
export {
|
|
@@ -24,7 +24,7 @@ var SdTab = class extends SolidElement {
|
|
|
24
24
|
constructor() {
|
|
25
25
|
super(...arguments);
|
|
26
26
|
this.attrId = ++id;
|
|
27
|
-
this.componentId = `sd-6-16-
|
|
27
|
+
this.componentId = `sd-6-16-4-tab-${this.attrId}`;
|
|
28
28
|
this.hasSlotController = new HasSlotController(this, "left");
|
|
29
29
|
this.localize = new LocalizeController(this);
|
|
30
30
|
this.variant = "default";
|
|
@@ -62,20 +62,20 @@ var SdTab = class extends SolidElement {
|
|
|
62
62
|
"outline-hidden focus-visible:focus-outline outline-2 !-outline-offset-2 transition-all duration-fast ease-in-out",
|
|
63
63
|
this.variant === "container" ? "tab-container-border bg-white rounded-[4px_4px_0_0]" : "navigable-border-radius",
|
|
64
64
|
this.variant === "container" && this.active && "tab--active-container-border bg-white",
|
|
65
|
-
this.disabled || this.visuallyDisabled ? "!cursor-not-allowed" : "hover:sd-6-16-
|
|
66
|
-
this.active && "z-20 sd-6-16-
|
|
65
|
+
this.disabled || this.visuallyDisabled ? "!cursor-not-allowed" : "hover:sd-6-16-4-tab--hover-color-background",
|
|
66
|
+
this.active && "z-20 sd-6-16-4-tab--active-color-text"
|
|
67
67
|
)}" tabindex="${!this.active || this.disabled ? "-1" : "0"}"><div class="${cx(
|
|
68
68
|
"flex h-full items-center justify-center whitespace-nowrap",
|
|
69
69
|
this.disabled || this.visuallyDisabled && "opacity-50 "
|
|
70
70
|
)}"><slot name="left" class="${cx(
|
|
71
71
|
slots.left && "block pr-2",
|
|
72
|
-
this.disabled || this.visuallyDisabled ? "text-neutral-500" : this.active ? "sd-6-16-
|
|
72
|
+
this.disabled || this.visuallyDisabled ? "text-neutral-500" : this.active ? "sd-6-16-4-tab--active-color-text" : "sd-6-16-4-tab-color-text"
|
|
73
73
|
)}"></slot><slot class="${cx(
|
|
74
|
-
this.disabled || this.visuallyDisabled ? "text-neutral-500" : this.active ? "sd-6-16-
|
|
74
|
+
this.disabled || this.visuallyDisabled ? "text-neutral-500" : this.active ? "sd-6-16-4-tab--active-color-text" : "sd-6-16-4-tab-color-text"
|
|
75
75
|
)}"></slot>${this.variant === "container" ? html`<div part="active-tab-indicator" class="${cx(
|
|
76
76
|
"absolute bottom-0 h-1 bg-accent w-3/4 bottom-0 group-hover:w-[calc(100%-2px)] navigable__current-indicator-height navigable__current-indicator-border-radius"
|
|
77
77
|
)}"></div>` : ""}<div part="hover-bottom-border" class="${cx(
|
|
78
|
-
!this.active && !this.disabled && "absolute bottom-0 left-0 w-full h-0.25 border-b sd-6-16-
|
|
78
|
+
!this.active && !this.disabled && "absolute bottom-0 left-0 w-full h-0.25 border-b sd-6-16-4-tab-color-border"
|
|
79
79
|
)}"></div></div></div>`;
|
|
80
80
|
}
|
|
81
81
|
};
|
|
@@ -112,7 +112,7 @@ __decorateClass([
|
|
|
112
112
|
watch(["disabled", "visually-disabled"])
|
|
113
113
|
], SdTab.prototype, "handleDisabledChange", 1);
|
|
114
114
|
SdTab = __decorateClass([
|
|
115
|
-
customElement("sd-6-16-
|
|
115
|
+
customElement("sd-6-16-4-tab")
|
|
116
116
|
], SdTab);
|
|
117
117
|
|
|
118
118
|
export {
|
|
@@ -324,7 +324,7 @@ __decorateClass([
|
|
|
324
324
|
property({ attribute: "auto-size-padding", type: Number })
|
|
325
325
|
], SdPopup.prototype, "autoSizePadding", 2);
|
|
326
326
|
SdPopup = __decorateClass([
|
|
327
|
-
customElement("sd-6-16-
|
|
327
|
+
customElement("sd-6-16-4-popup")
|
|
328
328
|
], SdPopup);
|
|
329
329
|
|
|
330
330
|
export {
|