@solid-design-system/components 4.6.1 → 4.6.2
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.ETFHHZEV.js +10 -0
- package/cdn/components/input/input.js +1 -1
- package/cdn/custom-elements.json +216 -216
- package/cdn/solid-components.bundle.js +1 -1
- package/cdn/solid-components.iife.js +1 -1
- package/cdn/solid-components.js +1 -1
- package/cdn/web-types.json +1 -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.2RGRA53Z.js +1 -1
- package/cdn-versioned/chunks/chunk.2WXAPGGE.js +1 -1
- package/cdn-versioned/chunks/chunk.3AJYYY5A.js +1 -1
- package/cdn-versioned/chunks/chunk.4QV2C3W6.js +2 -2
- package/cdn-versioned/chunks/chunk.4WOKTDYF.js +4 -4
- package/cdn-versioned/chunks/chunk.5A6THIFW.js +1 -1
- package/cdn-versioned/chunks/chunk.5HMLFQRB.js +1 -1
- package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
- package/cdn-versioned/chunks/chunk.6GPQREPR.js +1 -1
- package/cdn-versioned/chunks/chunk.6XPWTJEO.js +1 -1
- package/cdn-versioned/chunks/chunk.BBNAM6UU.js +1 -1
- package/cdn-versioned/chunks/chunk.BI37YYXB.js +1 -1
- package/cdn-versioned/chunks/chunk.BMD66TVO.js +1 -1
- package/cdn-versioned/chunks/chunk.CASLT6GP.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.CMSO45VL.js +1 -1
- package/cdn-versioned/chunks/chunk.D46YDQPU.js +1 -1
- package/cdn-versioned/chunks/chunk.DVRUURFU.js +1 -1
- package/cdn-versioned/chunks/chunk.DYDQ2243.js +1 -1
- package/cdn-versioned/chunks/chunk.E7EFDHHO.js +2 -2
- package/cdn-versioned/chunks/chunk.EGFNRAGT.js +1 -1
- package/cdn-versioned/chunks/chunk.ETFHHZEV.js +10 -0
- package/cdn-versioned/chunks/chunk.G2OPAMOQ.js +1 -1
- package/cdn-versioned/chunks/chunk.G2ZCGQFT.js +1 -1
- package/cdn-versioned/chunks/chunk.GBEVACYL.js +1 -1
- package/cdn-versioned/chunks/chunk.GBFIM5QL.js +1 -1
- package/cdn-versioned/chunks/chunk.H3OTEEBL.js +1 -1
- package/cdn-versioned/chunks/chunk.HYGIHDOD.js +1 -1
- package/cdn-versioned/chunks/chunk.JOBOKYRD.js +1 -1
- package/cdn-versioned/chunks/chunk.KMM5EXG2.js +3 -3
- package/cdn-versioned/chunks/chunk.LXJMGZ7N.js +1 -1
- package/cdn-versioned/chunks/chunk.M5IIGUOD.js +1 -1
- package/cdn-versioned/chunks/chunk.MC3E2AR6.js +1 -1
- package/cdn-versioned/chunks/chunk.NFYYHVW5.js +1 -1
- package/cdn-versioned/chunks/chunk.NT7FQJJ7.js +4 -4
- package/cdn-versioned/chunks/chunk.OIWVJGUE.js +1 -1
- package/cdn-versioned/chunks/chunk.PQJAYX54.js +1 -1
- package/cdn-versioned/chunks/chunk.QBBA2SHL.js +1 -1
- package/cdn-versioned/chunks/chunk.SGZKGX4O.js +1 -1
- package/cdn-versioned/chunks/chunk.T2LWRJVU.js +1 -1
- package/cdn-versioned/chunks/chunk.TDREPTB5.js +1 -1
- package/cdn-versioned/chunks/chunk.THMHNOEU.js +1 -1
- package/cdn-versioned/chunks/chunk.UCYFSGWV.js +1 -1
- package/cdn-versioned/chunks/chunk.V5JHZS5I.js +1 -1
- package/cdn-versioned/chunks/chunk.W6X2C6P4.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WEGW2FI2.js +1 -1
- package/cdn-versioned/chunks/chunk.XB4NJ3KZ.js +1 -1
- package/cdn-versioned/chunks/chunk.XPPEV3KM.js +1 -1
- package/cdn-versioned/chunks/chunk.YY5DISTT.js +1 -1
- package/cdn-versioned/chunks/chunk.YZFEQRD5.js +1 -1
- package/cdn-versioned/chunks/chunk.ZE4SZUMU.js +1 -1
- package/cdn-versioned/chunks/chunk.ZFFOAXET.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/input/input.js +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 +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +413 -413
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +16 -16
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +16 -16
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +80 -80
- package/cdn-versioned/web-types.json +137 -137
- package/dist/chunks/{chunk.LCW6HH3R.js → chunk.WM45G2PF.js} +1 -1
- package/dist/components/input/input.js +1 -1
- package/dist/custom-elements.json +216 -216
- package/dist/solid-components.js +9 -9
- package/dist/web-types.json +1 -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.2BTNPIIA.js +1 -1
- package/dist-versioned/chunks/chunk.2PUHCALR.js +5 -5
- package/dist-versioned/chunks/chunk.33Z66RGK.js +1 -1
- package/dist-versioned/chunks/chunk.4FGGIABU.js +1 -1
- package/dist-versioned/chunks/chunk.55MYJKOZ.js +1 -1
- package/dist-versioned/chunks/chunk.5FQR2C3Z.js +29 -29
- package/dist-versioned/chunks/chunk.5WMLZS55.js +2 -2
- package/dist-versioned/chunks/chunk.6BZVWWJH.js +5 -5
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6GEEKZAO.js +2 -2
- package/dist-versioned/chunks/chunk.7LEAXICZ.js +1 -1
- package/dist-versioned/chunks/chunk.BPSZYJ7Z.js +3 -3
- package/dist-versioned/chunks/chunk.CWDRTJP6.js +4 -4
- package/dist-versioned/chunks/chunk.DTROPLWA.js +5 -5
- package/dist-versioned/chunks/chunk.DWJJNVK4.js +2 -2
- package/dist-versioned/chunks/chunk.DXNE63DE.js +5 -5
- package/dist-versioned/chunks/chunk.EEZURJVH.js +1 -1
- package/dist-versioned/chunks/chunk.FHD45LNI.js +1 -1
- package/dist-versioned/chunks/chunk.G22VBGDU.js +1 -1
- package/dist-versioned/chunks/chunk.GE2RNW2L.js +1 -1
- package/dist-versioned/chunks/chunk.HGCAGKAN.js +5 -5
- package/dist-versioned/chunks/chunk.HGTEA7ZU.js +26 -26
- package/dist-versioned/chunks/chunk.HVQFYN4Q.js +3 -3
- package/dist-versioned/chunks/chunk.IBGXHO4B.js +3 -3
- package/dist-versioned/chunks/chunk.IT5IEST5.js +1 -1
- package/dist-versioned/chunks/chunk.J46EMIEI.js +2 -2
- package/dist-versioned/chunks/chunk.JFUXDVSP.js +2 -2
- package/dist-versioned/chunks/chunk.JOE2FCYM.js +2 -2
- package/dist-versioned/chunks/chunk.KNC4IRP2.js +2 -2
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.KZTW7NPR.js +13 -13
- package/dist-versioned/chunks/chunk.LC3HWWVO.js +1 -1
- package/dist-versioned/chunks/chunk.MONGBDKC.js +2 -2
- package/dist-versioned/chunks/chunk.NCWRKGWV.js +2 -2
- package/dist-versioned/chunks/chunk.ODT6T47Z.js +2 -2
- package/dist-versioned/chunks/chunk.OSFHS5G5.js +2 -2
- package/dist-versioned/chunks/chunk.OV6G7CEM.js +6 -6
- package/dist-versioned/chunks/chunk.PLE7R7FE.js +3 -3
- package/dist-versioned/chunks/chunk.PYP5VT7Q.js +13 -13
- package/dist-versioned/chunks/chunk.QI3HLIGL.js +6 -6
- package/dist-versioned/chunks/chunk.QTKOFCJ2.js +11 -11
- package/dist-versioned/chunks/chunk.RHXSPE3W.js +2 -2
- package/dist-versioned/chunks/chunk.RM6FOML7.js +5 -5
- package/dist-versioned/chunks/chunk.RQ7H3KYN.js +2 -2
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.UQGHMQG5.js +2 -2
- package/dist-versioned/chunks/chunk.VFE45I2T.js +2 -2
- package/dist-versioned/chunks/chunk.W4ODHTDG.js +2 -2
- package/dist-versioned/chunks/chunk.W4P6W76T.js +1 -1
- package/dist-versioned/chunks/chunk.WECFZLMT.js +9 -9
- package/dist-versioned/chunks/{chunk.LCW6HH3R.js → chunk.WM45G2PF.js} +3 -3
- package/dist-versioned/chunks/chunk.Z7LGSMQC.js +1 -1
- package/dist-versioned/chunks/chunk.ZKPN2W3G.js +1 -1
- 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/input/input.js +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 +1 -1
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/tab/tab.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +413 -413
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +9 -9
- package/dist-versioned/vscode.html-custom-data.json +80 -80
- package/dist-versioned/web-types.json +137 -137
- package/package.json +2 -2
- package/cdn/chunks/chunk.YYZTCJPO.js +0 -10
- package/cdn-versioned/chunks/chunk.YYZTCJPO.js +0 -10
|
@@ -182,7 +182,7 @@ var SdNotification = class extends SolidElement {
|
|
|
182
182
|
() => {
|
|
183
183
|
toastStack.removeChild(this);
|
|
184
184
|
resolve();
|
|
185
|
-
if (toastStack.querySelector("sd-4-6-
|
|
185
|
+
if (toastStack.querySelector("sd-4-6-2-notification") === null) {
|
|
186
186
|
toastStack.remove();
|
|
187
187
|
}
|
|
188
188
|
},
|
|
@@ -199,15 +199,15 @@ var SdNotification = class extends SolidElement {
|
|
|
199
199
|
warning: "bg-warning",
|
|
200
200
|
error: "bg-error"
|
|
201
201
|
}[this.variant]
|
|
202
|
-
)}"><sd-4-6-
|
|
202
|
+
)}"><sd-4-6-2-icon name="${{
|
|
203
203
|
info: "info-circle",
|
|
204
204
|
success: "confirm-circle",
|
|
205
205
|
warning: "exclamation-circle",
|
|
206
206
|
error: "warning"
|
|
207
|
-
}[this.variant] || ""}" library="system" class="h-6 w-6 text-white"></sd-4-6-
|
|
207
|
+
}[this.variant] || ""}" library="system" class="h-6 w-6 text-white"></sd-4-6-2-icon></slot><div part="content" class="${cx(
|
|
208
208
|
"h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white",
|
|
209
209
|
"border-solid border-[1px] border-l-0 border-neutral-400"
|
|
210
|
-
)}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable ? html`<sd-4-6-
|
|
210
|
+
)}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable ? html`<sd-4-6-2-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-4-6-2-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-4-6-2-icon></sd-4-6-2-button>` : ""}</div>${this.durationIndicator ? html`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${cx(`absolute w-0 h-[2px] bottom-0 bg-primary z-10 animate-grow`)}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>` : ""}</div>`;
|
|
211
211
|
}
|
|
212
212
|
};
|
|
213
213
|
/**
|
|
@@ -248,7 +248,7 @@ __decorateClass([
|
|
|
248
248
|
watch("duration")
|
|
249
249
|
], SdNotification.prototype, "handleDurationChange", 1);
|
|
250
250
|
SdNotification = __decorateClass([
|
|
251
|
-
customElement("sd-4-6-
|
|
251
|
+
customElement("sd-4-6-2-notification")
|
|
252
252
|
], SdNotification);
|
|
253
253
|
setDefaultAnimation("notification.show", {
|
|
254
254
|
keyframes: [
|
|
@@ -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-6-
|
|
65
|
+
assumeInteractionOn: ["sd-blur", "sd-4-6-2-input"]
|
|
66
66
|
});
|
|
67
67
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
68
68
|
this.localize = new LocalizeController(this);
|
|
@@ -103,11 +103,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
103
103
|
return normalizedOption.includes(normalizedQuery) || normalizedOptionLabel.includes(normalizedQuery);
|
|
104
104
|
};
|
|
105
105
|
this.getTag = (option) => {
|
|
106
|
-
return html`<sd-4-6-
|
|
106
|
+
return html`<sd-4-6-2-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
107
107
|
base:tag__base,
|
|
108
108
|
content:tag__content,
|
|
109
109
|
removable-indicator:tag__removable-indicator,
|
|
110
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-6-
|
|
110
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-6-2-tag>`;
|
|
111
111
|
};
|
|
112
112
|
this.handleDocumentFocusIn = (event) => {
|
|
113
113
|
const path = event.composedPath();
|
|
@@ -234,9 +234,9 @@ var SdCombobox = class extends SolidElement {
|
|
|
234
234
|
return html`${typeof optionHtml === "string" ? unsafeHTML(optionHtml) : optionHtml}`;
|
|
235
235
|
};
|
|
236
236
|
return this.filteredOptions.map((item) => {
|
|
237
|
-
if (item.tagName.toLowerCase() === "sd-4-6-
|
|
237
|
+
if (item.tagName.toLowerCase() === "sd-4-6-2-optgroup") {
|
|
238
238
|
Array.from(item.children).forEach((option) => {
|
|
239
|
-
if (option.tagName.toLowerCase() === "sd-4-6-
|
|
239
|
+
if (option.tagName.toLowerCase() === "sd-4-6-2-option") {
|
|
240
240
|
renderOption(option);
|
|
241
241
|
}
|
|
242
242
|
});
|
|
@@ -256,11 +256,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
256
256
|
});
|
|
257
257
|
} else {
|
|
258
258
|
return [
|
|
259
|
-
html`<sd-4-6-
|
|
259
|
+
html`<sd-4-6-2-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
260
260
|
base:tag__base,
|
|
261
261
|
content:tag__content,
|
|
262
262
|
removable-indicator:tag__removable-indicator,
|
|
263
|
-
" 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-6-
|
|
263
|
+
" 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-6-2-tag>`
|
|
264
264
|
];
|
|
265
265
|
}
|
|
266
266
|
}
|
|
@@ -377,7 +377,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
377
377
|
}
|
|
378
378
|
handleOptionClick(event) {
|
|
379
379
|
const target = event.target;
|
|
380
|
-
const option = target.closest("sd-4-6-
|
|
380
|
+
const option = target.closest("sd-4-6-2-option");
|
|
381
381
|
const oldValue = this.value;
|
|
382
382
|
if (option && !option.disabled) {
|
|
383
383
|
if (this.multiple) {
|
|
@@ -429,7 +429,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
429
429
|
scrollIntoView(this.getCurrentOption(), this.listbox, "vertical", "auto");
|
|
430
430
|
}
|
|
431
431
|
getAllFilteredOptions() {
|
|
432
|
-
return [...this.filteredWrapper.querySelectorAll("sd-4-6-
|
|
432
|
+
return [...this.filteredWrapper.querySelectorAll("sd-4-6-2-option")];
|
|
433
433
|
}
|
|
434
434
|
getCurrentOption() {
|
|
435
435
|
return this.getAllFilteredOptions().find((option) => option.current);
|
|
@@ -555,7 +555,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
555
555
|
clonedOption.selected = option.selected;
|
|
556
556
|
clonedOption.checkbox = option.checkbox;
|
|
557
557
|
clonedOption.size = option.size;
|
|
558
|
-
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-4-6-
|
|
558
|
+
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-4-6-2-optgroup";
|
|
559
559
|
if (!hasOptgroup) {
|
|
560
560
|
return clonedOption;
|
|
561
561
|
}
|
|
@@ -579,7 +579,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
579
579
|
this.formControlController.emitInvalidEvent(event);
|
|
580
580
|
this.invalidMessage.textContent = event.target.validationMessage;
|
|
581
581
|
}
|
|
582
|
-
/** Receives incoming event detail from sd-4-6-
|
|
582
|
+
/** Receives incoming event detail from sd-4-6-2-popup and updates local state for conditional styling. */
|
|
583
583
|
handleCurrentPlacement(e) {
|
|
584
584
|
const incomingPlacement = e.detail;
|
|
585
585
|
if (incomingPlacement) {
|
|
@@ -591,7 +591,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
591
591
|
}
|
|
592
592
|
handleUseTagsChange() {
|
|
593
593
|
const allOptions = this.getAllFilteredOptions();
|
|
594
|
-
if (customElements.get("sd-4-6-
|
|
594
|
+
if (customElements.get("sd-4-6-2-option")) {
|
|
595
595
|
allOptions.forEach((option) => {
|
|
596
596
|
option.checkbox = this.multiple;
|
|
597
597
|
});
|
|
@@ -717,8 +717,8 @@ var SdCombobox = class extends SolidElement {
|
|
|
717
717
|
return filterOnlyOptgroups(getAssignedElementsForSlot(this.defaultSlot));
|
|
718
718
|
}
|
|
719
719
|
async handleDefaultSlotChange() {
|
|
720
|
-
if (!customElements.get("sd-4-6-
|
|
721
|
-
customElements.whenDefined("sd-4-6-
|
|
720
|
+
if (!customElements.get("sd-4-6-2-option")) {
|
|
721
|
+
customElements.whenDefined("sd-4-6-2-option").then(() => this.handleDefaultSlotChange());
|
|
722
722
|
return;
|
|
723
723
|
}
|
|
724
724
|
const slottedOptions = this.getSlottedOptions();
|
|
@@ -730,10 +730,10 @@ var SdCombobox = class extends SolidElement {
|
|
|
730
730
|
if (this.multiple) {
|
|
731
731
|
option.checkbox = true;
|
|
732
732
|
}
|
|
733
|
-
option.id = option.id || `sd-4-6-
|
|
733
|
+
option.id = option.id || `sd-4-6-2-combobox-option-${index}`;
|
|
734
734
|
});
|
|
735
735
|
slottedOptgroups.forEach((optgroup, index) => {
|
|
736
|
-
optgroup.id = optgroup.id || `sd-4-6-
|
|
736
|
+
optgroup.id = optgroup.id || `sd-4-6-2-combobox-optgroup-${index}`;
|
|
737
737
|
});
|
|
738
738
|
await this.syncSelectedOptionsAndValue();
|
|
739
739
|
if (this.multiple) {
|
|
@@ -781,7 +781,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
781
781
|
default: "border-neutral-800"
|
|
782
782
|
}[selectState],
|
|
783
783
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
|
784
|
-
)}"></div><sd-4-6-
|
|
784
|
+
)}"></div><sd-4-6-2-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
785
785
|
"inline-flex relative w-full",
|
|
786
786
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
|
787
787
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
@@ -803,28 +803,28 @@ var SdCombobox = class extends SolidElement {
|
|
|
803
803
|
"flex justify-center",
|
|
804
804
|
iconMarginLeft,
|
|
805
805
|
this.value.length > 0 ? "visible" : "invisible"
|
|
806
|
-
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-6-
|
|
806
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-6-2-icon class="${cx("text-icon-fill-neutral-800", iconSize)}" name="closing-round" library="system"></sd-4-6-2-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-6-2-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="system" name="risk"></sd-4-6-2-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-4-6-2-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="system" name="status-check"></sd-4-6-2-icon>` : ""}<slot name="right" part="right" class="${cx(
|
|
807
807
|
"inline-flex ml-2 leading-[0]",
|
|
808
808
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-primary",
|
|
809
809
|
iconSize
|
|
810
|
-
)}"><sd-4-6-
|
|
810
|
+
)}"><sd-4-6-2-icon class="${cx("transition-all", this.open ? "rotate-180" : "rotate-0")}" name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-6-2-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${cx(
|
|
811
811
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
|
812
812
|
this.open && "shadow",
|
|
813
813
|
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"
|
|
814
|
-
)}" 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-6-
|
|
814
|
+
)}" 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-6-2-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()}`;
|
|
815
815
|
}
|
|
816
816
|
};
|
|
817
817
|
SdCombobox.dependencies = {
|
|
818
|
-
"sd-4-6-
|
|
819
|
-
"sd-4-6-
|
|
820
|
-
"sd-4-6-
|
|
818
|
+
"sd-4-6-2-icon": SdIcon,
|
|
819
|
+
"sd-4-6-2-popup": SdPopup,
|
|
820
|
+
"sd-4-6-2-tag": SdTag
|
|
821
821
|
};
|
|
822
822
|
SdCombobox.styles = [
|
|
823
823
|
...SolidElement.styles,
|
|
824
|
-
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-6-
|
|
824
|
+
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-6-2-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-6-2-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-6-2-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-6-2-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-6-2-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-6-2-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`
|
|
825
825
|
];
|
|
826
826
|
__decorateClass([
|
|
827
|
-
query("sd-4-6-
|
|
827
|
+
query("sd-4-6-2-popup")
|
|
828
828
|
], SdCombobox.prototype, "popup", 2);
|
|
829
829
|
__decorateClass([
|
|
830
830
|
query('[part="combobox"]')
|
|
@@ -976,7 +976,7 @@ __decorateClass([
|
|
|
976
976
|
watch("open", { waitUntilFirstUpdate: true })
|
|
977
977
|
], SdCombobox.prototype, "handleOpenChange", 1);
|
|
978
978
|
SdCombobox = __decorateClass([
|
|
979
|
-
customElement("sd-4-6-
|
|
979
|
+
customElement("sd-4-6-2-combobox")
|
|
980
980
|
], SdCombobox);
|
|
981
981
|
setDefaultAnimation("combobox.show", {
|
|
982
982
|
keyframes: [
|
|
@@ -41,16 +41,16 @@ var SdAccordionGroup = class extends SolidElement {
|
|
|
41
41
|
};
|
|
42
42
|
SdAccordionGroup.styles = [
|
|
43
43
|
...SolidElement.styles,
|
|
44
|
-
css`:host{display:block}::slotted(sd-4-6-
|
|
44
|
+
css`:host{display:block}::slotted(sd-4-6-2-accordion:not(:first-of-type)){margin-top:-1px}`
|
|
45
45
|
];
|
|
46
46
|
__decorateClass([
|
|
47
|
-
queryAssignedElements({ selector: "sd-4-6-
|
|
47
|
+
queryAssignedElements({ selector: "sd-4-6-2-accordion" })
|
|
48
48
|
], SdAccordionGroup.prototype, "_accordionsInDefaultSlot", 2);
|
|
49
49
|
__decorateClass([
|
|
50
50
|
property({ attribute: "close-others", type: Boolean, reflect: true })
|
|
51
51
|
], SdAccordionGroup.prototype, "closeOthers", 2);
|
|
52
52
|
SdAccordionGroup = __decorateClass([
|
|
53
|
-
customElement("sd-4-6-
|
|
53
|
+
customElement("sd-4-6-2-accordion-group")
|
|
54
54
|
], SdAccordionGroup);
|
|
55
55
|
|
|
56
56
|
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-6-
|
|
67
|
+
<sd-4-6-2-icon library="system" name="chevron-down"></sd-4-6-2-icon>
|
|
68
68
|
</slot>
|
|
69
69
|
<slot name="collapse-icon" class=${cx(!this.open && "hidden")}>
|
|
70
|
-
<sd-4-6-
|
|
70
|
+
<sd-4-6-2-icon library="system" name="chevron-down"></sd-4-6-2-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-6-
|
|
88
|
+
customElement("sd-4-6-2-quickfact")
|
|
89
89
|
], SdQuickfact);
|
|
90
90
|
setDefaultAnimation("quickfact.show", {
|
|
91
91
|
keyframes: [
|
|
@@ -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-6-
|
|
35
|
+
css`:host{margin:var(--sd-spacing-0,0)}:host(sd-4-6-2-divider[orientation=horizontal]){display:block}:host(sd-4-6-2-divider[orientation=vertical]){display:inline-block}`
|
|
36
36
|
];
|
|
37
37
|
__decorateClass([
|
|
38
38
|
property({ type: String, 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-6-
|
|
44
|
+
customElement("sd-4-6-2-divider")
|
|
45
45
|
], SdDivider);
|
|
46
46
|
|
|
47
47
|
export {
|
|
@@ -71,7 +71,7 @@ var SdTag = class extends SolidElement {
|
|
|
71
71
|
lg: "text-base",
|
|
72
72
|
sm: "text-[12px]"
|
|
73
73
|
}[this.size]
|
|
74
|
-
)}"><sd-4-6-
|
|
74
|
+
)}"><sd-4-6-2-icon library="system" name="close" label="remove"></sd-4-6-2-icon></slot>` : ""}</${tag}>`;
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
SdTag.styles = [
|
|
@@ -106,7 +106,7 @@ __decorateClass([
|
|
|
106
106
|
property({ reflect: true })
|
|
107
107
|
], SdTag.prototype, "download", 2);
|
|
108
108
|
SdTag = __decorateClass([
|
|
109
|
-
customElement("sd-4-6-
|
|
109
|
+
customElement("sd-4-6-2-tag")
|
|
110
110
|
], SdTag);
|
|
111
111
|
|
|
112
112
|
export {
|
|
@@ -55,7 +55,7 @@ var SdStepGroup = class extends SolidElement {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
getAllSteps() {
|
|
58
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-4-6-
|
|
58
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-4-6-2-step");
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* Sets the active step.
|
|
@@ -120,7 +120,7 @@ __decorateClass([
|
|
|
120
120
|
watch("notInteractive")
|
|
121
121
|
], SdStepGroup.prototype, "handleInteractivityChange", 1);
|
|
122
122
|
SdStepGroup = __decorateClass([
|
|
123
|
-
customElement("sd-4-6-
|
|
123
|
+
customElement("sd-4-6-2-step-group")
|
|
124
124
|
], SdStepGroup);
|
|
125
125
|
|
|
126
126
|
export {
|
|
@@ -84,7 +84,7 @@ var SdLink = class extends SolidElement {
|
|
|
84
84
|
};
|
|
85
85
|
SdLink.styles = [
|
|
86
86
|
...SolidElement.styles,
|
|
87
|
-
css`::slotted(sd-4-6-
|
|
87
|
+
css`::slotted(sd-4-6-2-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-4-6-2-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-4-6-2-icon){font-size:var(--sd-font-size-xl,1.5rem)}`
|
|
88
88
|
];
|
|
89
89
|
__decorateClass([
|
|
90
90
|
query("a")
|
|
@@ -111,7 +111,7 @@ __decorateClass([
|
|
|
111
111
|
property({ reflect: true })
|
|
112
112
|
], SdLink.prototype, "download", 2);
|
|
113
113
|
SdLink = __decorateClass([
|
|
114
|
-
customElement("sd-4-6-
|
|
114
|
+
customElement("sd-4-6-2-link")
|
|
115
115
|
], SdLink);
|
|
116
116
|
|
|
117
117
|
export {
|
|
@@ -15,7 +15,7 @@ var FormControlController = class {
|
|
|
15
15
|
const disabled = this.options.disabled(this.host);
|
|
16
16
|
const name = this.options.name(this.host);
|
|
17
17
|
const value = this.options.value(this.host);
|
|
18
|
-
const isButton = this.host.tagName.toLowerCase() === "sd-4-6-
|
|
18
|
+
const isButton = this.host.tagName.toLowerCase() === "sd-4-6-2-button";
|
|
19
19
|
if (!disabled && !isButton && typeof name === "string" && name.length > 0 && typeof value !== "undefined") {
|
|
20
20
|
if (Array.isArray(value)) {
|
|
21
21
|
value.forEach((val) => {
|
|
@@ -40,7 +40,7 @@ var FormControlController = class {
|
|
|
40
40
|
event.stopImmediatePropagation();
|
|
41
41
|
const invalidElements = (_b = this.form) == null ? void 0 : _b.querySelectorAll("[data-invalid]");
|
|
42
42
|
const sdRadioGroups = Array.from(invalidElements).filter(
|
|
43
|
-
(element) => element.tagName.toLowerCase() === "sd-4-6-
|
|
43
|
+
(element) => element.tagName.toLowerCase() === "sd-4-6-2-radio-group"
|
|
44
44
|
);
|
|
45
45
|
sdRadioGroups.forEach((radioGroup) => {
|
|
46
46
|
var _a2, _b2;
|
|
@@ -88,7 +88,7 @@ var FormControlController = class {
|
|
|
88
88
|
},
|
|
89
89
|
reportValidity: (input) => typeof input.reportValidity === "function" ? input.reportValidity() : true,
|
|
90
90
|
setValue: (input, value) => input.value = value,
|
|
91
|
-
assumeInteractionOn: ["sd-4-6-
|
|
91
|
+
assumeInteractionOn: ["sd-4-6-2-input"]
|
|
92
92
|
}, options);
|
|
93
93
|
}
|
|
94
94
|
hostConnected() {
|
|
@@ -77,10 +77,10 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
77
77
|
this.formControlController.updateValidity();
|
|
78
78
|
}
|
|
79
79
|
getAllRadios() {
|
|
80
|
-
return [...this.querySelectorAll("sd-4-6-
|
|
80
|
+
return [...this.querySelectorAll("sd-4-6-2-radio, sd-4-6-2-radio-button")];
|
|
81
81
|
}
|
|
82
82
|
handleRadioClick(event) {
|
|
83
|
-
const target = event.target.closest("sd-4-6-
|
|
83
|
+
const target = event.target.closest("sd-4-6-2-radio, sd-4-6-2-radio-button");
|
|
84
84
|
const radios = this.getAllRadios();
|
|
85
85
|
const oldValue = this.value;
|
|
86
86
|
if (target.disabled) {
|
|
@@ -157,7 +157,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
157
157
|
}
|
|
158
158
|
})
|
|
159
159
|
);
|
|
160
|
-
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-4-6-
|
|
160
|
+
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-4-6-2-radio-button");
|
|
161
161
|
if (!radios.some((radio) => radio.checked)) {
|
|
162
162
|
if (this.hasButtonGroup) {
|
|
163
163
|
const buttonRadio = (_a = radios[0].shadowRoot) == null ? void 0 : _a.querySelector("button");
|
|
@@ -169,26 +169,26 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
if (this.hasButtonGroup) {
|
|
172
|
-
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-4-6-
|
|
172
|
+
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-4-6-2-button-group");
|
|
173
173
|
if (buttonGroup) {
|
|
174
174
|
buttonGroup.disableRole = true;
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
syncRadios() {
|
|
179
|
-
if (customElements.get("sd-4-6-
|
|
179
|
+
if (customElements.get("sd-4-6-2-radio") && customElements.get("sd-4-6-2-radio-button")) {
|
|
180
180
|
this.syncRadioElements();
|
|
181
181
|
return;
|
|
182
182
|
}
|
|
183
|
-
if (customElements.get("sd-4-6-
|
|
183
|
+
if (customElements.get("sd-4-6-2-radio")) {
|
|
184
184
|
this.syncRadioElements();
|
|
185
185
|
} else {
|
|
186
|
-
customElements.whenDefined("sd-4-6-
|
|
186
|
+
customElements.whenDefined("sd-4-6-2-radio").then(() => this.syncRadios());
|
|
187
187
|
}
|
|
188
|
-
if (customElements.get("sd-4-6-
|
|
188
|
+
if (customElements.get("sd-4-6-2-radio-button")) {
|
|
189
189
|
this.syncRadioElements();
|
|
190
190
|
} else {
|
|
191
|
-
customElements.whenDefined("sd-4-6-
|
|
191
|
+
customElements.whenDefined("sd-4-6-2-radio-button").then(() => this.syncRadios());
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
updateCheckedRadio() {
|
|
@@ -267,16 +267,16 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
267
267
|
vertical: "flex-col",
|
|
268
268
|
horizontal: "flex-row"
|
|
269
269
|
}[this.orientation]
|
|
270
|
-
)}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" aria-labelledby="label" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup ? html`<sd-4-6-
|
|
270
|
+
)}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" aria-labelledby="label" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup ? html`<sd-4-6-2-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${defaultSlot}</sd-4-6-2-button-group>` : defaultSlot}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-2", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot>${this.formControlController.renderInvalidMessage()}`;
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
|
-
SdRadioGroup.dependencies = { "sd-4-6-
|
|
273
|
+
SdRadioGroup.dependencies = { "sd-4-6-2-button-group": SdButtonGroup };
|
|
274
274
|
/**
|
|
275
275
|
* Inherits Tailwind classes and includes additional styling.
|
|
276
276
|
*/
|
|
277
277
|
SdRadioGroup.styles = [
|
|
278
278
|
...SolidElement.styles,
|
|
279
|
-
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-6-
|
|
279
|
+
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-6-2-radio){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-6-2-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-6-2-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-6-2-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-6-2-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-6-2-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label:after{content:" *"}`
|
|
280
280
|
];
|
|
281
281
|
__decorateClass([
|
|
282
282
|
query("slot:not([name])")
|
|
@@ -333,7 +333,7 @@ __decorateClass([
|
|
|
333
333
|
watch("value")
|
|
334
334
|
], SdRadioGroup.prototype, "handleValueChange", 1);
|
|
335
335
|
SdRadioGroup = __decorateClass([
|
|
336
|
-
customElement("sd-4-6-
|
|
336
|
+
customElement("sd-4-6-2-radio-group")
|
|
337
337
|
], SdRadioGroup);
|
|
338
338
|
|
|
339
339
|
export {
|
|
@@ -89,7 +89,7 @@ var SdStep = class extends SolidElement {
|
|
|
89
89
|
!this.disabled && !this.current && !this.notInteractive && "text-primary group-hover:text-primary-500 group-hover:fill-primary-500",
|
|
90
90
|
this.notInteractive && "text-primary",
|
|
91
91
|
this.size === "lg" ? "text-lg" : "text-sm"
|
|
92
|
-
)}">${!this.disabled && !this.current && !this.notInteractive ? html`<sd-4-6-
|
|
92
|
+
)}">${!this.disabled && !this.current && !this.notInteractive ? html`<sd-4-6-2-icon name="status-check" library="system"></sd-4-6-2-icon>` : html`${this.index}`}</slot></${tag}>${this.noTail ? "" : html`<div part="tail" class="${cx(
|
|
93
93
|
this.orientation === "horizontal" ? "border-t w-full my-auto mr-2" : "border-l flex-grow flex-shrink-0 basis-auto h-full w-[1px] mx-auto",
|
|
94
94
|
!this.disabled && !this.current && !this.notInteractive ? " border-primary group-hover:border-primary-500" : "border-neutral-400"
|
|
95
95
|
)}"></div>`}</div><div part="text-container" class="${cx("mt-4 break-words flex flex-col gap-2", this.orientation === "horizontal" ? "text-center w-40" : "w-max text-left", this.disabled && "!text-neutral-700", this.notInteractive ? "ml-3" : "mr-4")}"><div part="label" id="label" class="${cx("!font-bold sd-paragraph", this.disabled && "!text-neutral-700", !this.disabled && !this.current && !this.notInteractive ? "!text-primary group-hover:!text-primary-500 group-hover:cursor-pointer" : "text-black")}"><slot name="label">${this.label}</slot></div><div part="description" id="description" class="${cx("sd-paragraph sd-paragraph--size-sm", this.disabled && "!text-neutral-700")}">${this.description || html`<slot></slot>`}</div></div></div>`;
|
|
@@ -139,7 +139,7 @@ __decorateClass([
|
|
|
139
139
|
watch("notInteractive")
|
|
140
140
|
], SdStep.prototype, "handleInteractivityChange", 1);
|
|
141
141
|
SdStep = __decorateClass([
|
|
142
|
-
customElement("sd-4-6-
|
|
142
|
+
customElement("sd-4-6-2-step")
|
|
143
143
|
], SdStep);
|
|
144
144
|
|
|
145
145
|
export {
|
|
@@ -18,7 +18,7 @@ var SdTabPanel = class extends SolidElement {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
20
|
this.attrId = ++id;
|
|
21
|
-
this.componentId = `sd-4-6-
|
|
21
|
+
this.componentId = `sd-4-6-2-tab-panel-${this.attrId}`;
|
|
22
22
|
this.name = "";
|
|
23
23
|
this.active = false;
|
|
24
24
|
}
|
|
@@ -48,7 +48,7 @@ __decorateClass([
|
|
|
48
48
|
watch("active")
|
|
49
49
|
], SdTabPanel.prototype, "handleActiveChange", 1);
|
|
50
50
|
SdTabPanel = __decorateClass([
|
|
51
|
-
customElement("sd-4-6-
|
|
51
|
+
customElement("sd-4-6-2-tab-panel")
|
|
52
52
|
], SdTabPanel);
|
|
53
53
|
|
|
54
54
|
export {
|
|
@@ -142,7 +142,7 @@ var SdAccordion = class extends SolidElement {
|
|
|
142
142
|
)}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left">${this.summary}</slot><span part="summary-icon" class="${cx(
|
|
143
143
|
"flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-300 text-xl",
|
|
144
144
|
this.open && "rotate-180"
|
|
145
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-4-6-
|
|
145
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-4-6-2-icon library="system" name="chevron-down"></sd-4-6-2-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-4-6-2-icon library="system" name="chevron-down"></sd-4-6-2-icon></slot></span></summary><div part="content" id="content" class="overflow-hidden"><slot part="content__slot" class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></details>`;
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
148
|
SdAccordion.styles = [
|
|
@@ -168,7 +168,7 @@ __decorateClass([
|
|
|
168
168
|
watch("open", { waitUntilFirstUpdate: true })
|
|
169
169
|
], SdAccordion.prototype, "handleOpenChange", 1);
|
|
170
170
|
SdAccordion = __decorateClass([
|
|
171
|
-
customElement("sd-4-6-
|
|
171
|
+
customElement("sd-4-6-2-accordion")
|
|
172
172
|
], SdAccordion);
|
|
173
173
|
setDefaultAnimation("accordion.show", {
|
|
174
174
|
keyframes: [
|
|
@@ -169,7 +169,7 @@ var SdDialog = class extends SolidElement {
|
|
|
169
169
|
)}"><div part="overlay" class="fixed inset-0 bg-primary-800 opacity-90" @click="${() => this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${cx(
|
|
170
170
|
"flex flex-col z-20 bg-white py-4 sm:py-8 relative gap-6 focus-visible:focus-outline-inverted overflow-y-auto",
|
|
171
171
|
this.open && "flex opacity-100"
|
|
172
|
-
)}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${this.headline}" aria-labelledby="title" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length > 0 ? html`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>` : html`<slot name="headline"></slot>`}</h2>${!this.noCloseButton ? html`<sd-4-6-
|
|
172
|
+
)}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${this.headline}" aria-labelledby="title" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length > 0 ? html`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>` : html`<slot name="headline"></slot>`}</h2>${!this.noCloseButton ? html`<sd-4-6-2-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${cx("absolute top-2 right-2")}" name="x-lg" @click="${() => this.requestClose("close-button")}" type="button"><sd-4-6-2-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-4-6-2-icon></sd-4-6-2-button>` : ""}</header><main part="body" class="flex flex-auto overflow-auto w-full px-6 sm:px-10"><slot></slot></main><footer part="footer" class="flex flex-grow-0 flex-shrink-0 basis-auto ml-auto gap-4 px-6 sm:px-10"><slot name="footer"></slot></footer></div></div>`;
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
175
|
SdDialog.styles = [
|
|
@@ -198,7 +198,7 @@ __decorateClass([
|
|
|
198
198
|
watch("open", { waitUntilFirstUpdate: true })
|
|
199
199
|
], SdDialog.prototype, "handleOpenChange", 1);
|
|
200
200
|
SdDialog = __decorateClass([
|
|
201
|
-
customElement("sd-4-6-
|
|
201
|
+
customElement("sd-4-6-2-dialog")
|
|
202
202
|
], SdDialog);
|
|
203
203
|
setDefaultAnimation("dialog.show", {
|
|
204
204
|
keyframes: [
|