@solid-design-system/components 5.8.0 → 5.8.1
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.HRTBCNEN.js +1 -0
- package/{cdn-versioned/chunks/chunk.PU5TFXA4.js → cdn/chunks/chunk.PMP4GFXI.js} +1 -1
- package/cdn/components/combobox/combobox.js +1 -1
- package/cdn/components/dropdown/dropdown.js +1 -1
- package/cdn/components/header/header.js +1 -1
- package/cdn/components/popup/popup.js +1 -1
- package/cdn/components/select/select.js +1 -1
- package/cdn/components/tooltip/tooltip.js +1 -1
- package/cdn/custom-elements.json +1 -1
- package/cdn/solid-components.bundle.js +18 -18
- package/cdn/solid-components.iife.js +18 -18
- package/cdn/solid-components.js +1 -1
- package/cdn/utilities/autocomplete-config.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.26O6IKAG.js +1 -1
- package/cdn-versioned/chunks/chunk.2JBLGDAG.js +1 -1
- package/cdn-versioned/chunks/chunk.3IA4LYAE.js +1 -1
- package/cdn-versioned/chunks/chunk.4ND6BT4C.js +1 -1
- package/cdn-versioned/chunks/chunk.5P5EXSCE.js +1 -1
- package/cdn-versioned/chunks/chunk.6HLS5XU2.js +1 -1
- package/cdn-versioned/chunks/chunk.7PAPSYUK.js +1 -1
- package/cdn-versioned/chunks/chunk.7UITUXR7.js +1 -1
- package/cdn-versioned/chunks/chunk.BUAUXM45.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.DR3XJQRD.js +1 -1
- package/cdn-versioned/chunks/chunk.DSA6LS4D.js +1 -1
- package/cdn-versioned/chunks/chunk.DU2SXY3R.js +1 -1
- package/cdn-versioned/chunks/chunk.DUHPZXXT.js +1 -1
- package/cdn-versioned/chunks/chunk.EXZ5YJHN.js +1 -1
- package/cdn-versioned/chunks/chunk.FMW27SW2.js +1 -1
- package/cdn-versioned/chunks/chunk.FSFMVNRK.js +1 -1
- package/cdn-versioned/chunks/chunk.G24RRCWJ.js +1 -1
- package/cdn-versioned/chunks/chunk.G7HBP2EA.js +4 -4
- package/cdn-versioned/chunks/chunk.HEVVK37Z.js +1 -1
- package/cdn-versioned/chunks/chunk.HJWBWAOH.js +1 -1
- package/cdn-versioned/chunks/chunk.HK5LV22V.js +1 -1
- package/cdn-versioned/chunks/chunk.HRTBCNEN.js +1 -0
- package/cdn-versioned/chunks/chunk.IIPOW4BF.js +1 -1
- package/cdn-versioned/chunks/chunk.ILZHTUPU.js +1 -1
- package/cdn-versioned/chunks/chunk.J2LVZAHB.js +1 -1
- package/cdn-versioned/chunks/chunk.J6OZWGFI.js +1 -1
- package/cdn-versioned/chunks/chunk.J7EPPTFP.js +1 -1
- package/cdn-versioned/chunks/chunk.KGZFLNCL.js +1 -1
- package/cdn-versioned/chunks/chunk.KRR6NFHE.js +1 -1
- package/cdn-versioned/chunks/chunk.KVHJAQJC.js +1 -1
- package/cdn-versioned/chunks/chunk.M7V7LXP2.js +1 -1
- package/cdn-versioned/chunks/chunk.NEHO757V.js +1 -1
- package/cdn-versioned/chunks/chunk.NVXMW7JA.js +2 -2
- package/cdn-versioned/chunks/chunk.OLKTD3H6.js +1 -1
- package/{cdn/chunks/chunk.PU5TFXA4.js → cdn-versioned/chunks/chunk.PMP4GFXI.js} +1 -1
- package/cdn-versioned/chunks/chunk.QDGET4J7.js +1 -1
- package/cdn-versioned/chunks/chunk.QDYCPBH5.js +1 -1
- package/cdn-versioned/chunks/chunk.REJ4HJHM.js +1 -1
- package/cdn-versioned/chunks/chunk.SABXUHBG.js +1 -1
- package/cdn-versioned/chunks/chunk.SV6S6VUZ.js +1 -1
- package/cdn-versioned/chunks/chunk.TEMANSX2.js +4 -4
- package/cdn-versioned/chunks/chunk.TW4QSRRZ.js +1 -1
- package/cdn-versioned/chunks/chunk.UPOUK4YE.js +1 -1
- package/cdn-versioned/chunks/chunk.VGYK5BAY.js +1 -1
- package/cdn-versioned/chunks/chunk.VY4OJYTU.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WLNGSSPM.js +1 -1
- package/cdn-versioned/chunks/chunk.X2PYZCU7.js +1 -1
- package/cdn-versioned/chunks/chunk.XRCG4RJJ.js +1 -1
- package/cdn-versioned/chunks/chunk.XRHEUCUN.js +1 -1
- package/cdn-versioned/chunks/chunk.XYSFDUN5.js +3 -3
- package/cdn-versioned/chunks/chunk.YCMKDACM.js +1 -1
- package/cdn-versioned/chunks/chunk.YCO53VY5.js +1 -1
- package/cdn-versioned/chunks/chunk.YR2HDSHK.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/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/combobox/combobox.js +1 -1
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.js +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/header/header.js +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 +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/popup/popup.js +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/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +1 -1
- package/cdn-versioned/components/select/select.js +1 -1
- package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.js +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +218 -218
- 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 +20 -20
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/utilities/autocomplete-config.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +84 -84
- package/cdn-versioned/web-types.json +142 -142
- package/dist/chunks/{chunk.7UEOJL4C.js → chunk.357URABG.js} +1 -1
- package/dist/components/header/header.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/solid-components.js +1 -1
- 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.2BDWN26F.js +5 -5
- package/dist-versioned/chunks/chunk.2CQI5LE4.js +3 -3
- package/dist-versioned/chunks/chunk.2W7NHUH7.js +26 -26
- package/dist-versioned/chunks/{chunk.7UEOJL4C.js → chunk.357URABG.js} +2 -2
- package/dist-versioned/chunks/chunk.374V27WG.js +1 -1
- package/dist-versioned/chunks/chunk.3IFUYWCQ.js +4 -4
- package/dist-versioned/chunks/chunk.56KFGJVD.js +1 -1
- package/dist-versioned/chunks/chunk.5IM5U5QH.js +6 -6
- package/dist-versioned/chunks/chunk.5KVES6PS.js +3 -3
- package/dist-versioned/chunks/chunk.5ZNZ5OFS.js +24 -24
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.7MAASMDW.js +1 -1
- package/dist-versioned/chunks/chunk.7ZNUQOKK.js +2 -2
- package/dist-versioned/chunks/chunk.AGJBHOHC.js +9 -9
- package/dist-versioned/chunks/chunk.BFV6FVEH.js +2 -2
- package/dist-versioned/chunks/chunk.BGJVVJYW.js +8 -8
- package/dist-versioned/chunks/chunk.BHEBFVOB.js +1 -1
- package/dist-versioned/chunks/chunk.C3QUN3CW.js +1 -1
- package/dist-versioned/chunks/chunk.CRGWQRUO.js +2 -2
- package/dist-versioned/chunks/chunk.CU3SNWRP.js +3 -3
- package/dist-versioned/chunks/chunk.DHECGUIH.js +2 -2
- package/dist-versioned/chunks/chunk.ECTYRNKF.js +3 -3
- package/dist-versioned/chunks/chunk.FAY52O5K.js +5 -5
- package/dist-versioned/chunks/chunk.FQ65C655.js +1 -1
- package/dist-versioned/chunks/chunk.G7LKDW7D.js +2 -2
- package/dist-versioned/chunks/chunk.GRJDOPAS.js +12 -12
- package/dist-versioned/chunks/chunk.GWQANU5I.js +3 -3
- package/dist-versioned/chunks/chunk.H7FP247H.js +2 -2
- package/dist-versioned/chunks/chunk.IUAN7YQ4.js +2 -2
- package/dist-versioned/chunks/chunk.J2R4HF6O.js +2 -2
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.L7XW5PYI.js +14 -14
- package/dist-versioned/chunks/chunk.NC2M2T2Q.js +4 -4
- package/dist-versioned/chunks/chunk.ONBBO64D.js +1 -1
- package/dist-versioned/chunks/chunk.PBSF5V4E.js +11 -11
- package/dist-versioned/chunks/chunk.PCHDKK7W.js +6 -6
- package/dist-versioned/chunks/chunk.PK4OGH3M.js +2 -2
- package/dist-versioned/chunks/chunk.PYH33SDH.js +1 -1
- package/dist-versioned/chunks/chunk.SO2HIZUP.js +5 -5
- package/dist-versioned/chunks/chunk.TQRMINMT.js +2 -2
- package/dist-versioned/chunks/chunk.U62FIAJ5.js +1 -1
- package/dist-versioned/chunks/chunk.U7SCAMCN.js +2 -2
- package/dist-versioned/chunks/chunk.UA3G5555.js +1 -1
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.UTHJPWMF.js +2 -2
- package/dist-versioned/chunks/chunk.VOSWJX2Z.js +6 -6
- package/dist-versioned/chunks/chunk.VTMF55NN.js +2 -2
- package/dist-versioned/chunks/chunk.WK2T7YB4.js +1 -1
- package/dist-versioned/chunks/chunk.X6WRFCHO.js +1 -1
- package/dist-versioned/chunks/chunk.XNHIGD4G.js +1 -1
- package/dist-versioned/chunks/chunk.XX3FTPX7.js +5 -5
- package/dist-versioned/chunks/chunk.ZC5TZTGP.js +3 -3
- package/dist-versioned/chunks/chunk.ZD3I7DCU.js +2 -2
- package/dist-versioned/chunks/chunk.ZTR5JB55.js +4 -4
- package/dist-versioned/chunks/chunk.ZZZHB23N.js +2 -2
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/animation/animation.d.ts +1 -1
- package/dist-versioned/components/audio/audio.d.ts +1 -1
- package/dist-versioned/components/badge/badge.d.ts +1 -1
- package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/dist-versioned/components/button/button.d.ts +1 -1
- package/dist-versioned/components/button-group/button-group.d.ts +1 -1
- package/dist-versioned/components/carousel/carousel.d.ts +1 -1
- package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +1 -1
- package/dist-versioned/components/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/header/header.js +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 +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/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +1 -1
- package/dist-versioned/components/spinner/spinner.d.ts +1 -1
- package/dist-versioned/components/step/step.d.ts +1 -1
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/tab/tab.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +218 -218
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +1 -1
- package/dist-versioned/vscode.html-custom-data.json +84 -84
- package/dist-versioned/web-types.json +142 -142
- package/package.json +7 -7
- package/cdn/chunks/chunk.BMMJQ4XS.js +0 -1
- package/cdn-versioned/chunks/chunk.BMMJQ4XS.js +0 -1
|
@@ -74,10 +74,10 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
74
74
|
this.formControlController.updateValidity();
|
|
75
75
|
}
|
|
76
76
|
getAllRadios() {
|
|
77
|
-
return [...this.querySelectorAll("sd-5-8-
|
|
77
|
+
return [...this.querySelectorAll("sd-5-8-1-radio, sd-5-8-1-radio-button")];
|
|
78
78
|
}
|
|
79
79
|
handleRadioClick(event) {
|
|
80
|
-
const target = event.target.closest("sd-5-8-
|
|
80
|
+
const target = event.target.closest("sd-5-8-1-radio, sd-5-8-1-radio-button");
|
|
81
81
|
const radios = this.getAllRadios();
|
|
82
82
|
const oldValue = this.value;
|
|
83
83
|
if (target.disabled) {
|
|
@@ -154,7 +154,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
154
154
|
}
|
|
155
155
|
})
|
|
156
156
|
);
|
|
157
|
-
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-5-8-
|
|
157
|
+
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-5-8-1-radio-button");
|
|
158
158
|
if (!radios.some((radio) => radio.checked)) {
|
|
159
159
|
if (this.hasButtonGroup) {
|
|
160
160
|
const buttonRadio = (_a = radios[0].shadowRoot) == null ? void 0 : _a.querySelector("button");
|
|
@@ -166,26 +166,26 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
if (this.hasButtonGroup) {
|
|
169
|
-
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-5-8-
|
|
169
|
+
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-5-8-1-button-group");
|
|
170
170
|
if (buttonGroup) {
|
|
171
171
|
buttonGroup.disableRole = true;
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
syncRadios() {
|
|
176
|
-
if (customElements.get("sd-5-8-
|
|
176
|
+
if (customElements.get("sd-5-8-1-radio") && customElements.get("sd-5-8-1-radio-button")) {
|
|
177
177
|
this.syncRadioElements();
|
|
178
178
|
return;
|
|
179
179
|
}
|
|
180
|
-
if (customElements.get("sd-5-8-
|
|
180
|
+
if (customElements.get("sd-5-8-1-radio")) {
|
|
181
181
|
this.syncRadioElements();
|
|
182
182
|
} else {
|
|
183
|
-
customElements.whenDefined("sd-5-8-
|
|
183
|
+
customElements.whenDefined("sd-5-8-1-radio").then(() => this.syncRadios());
|
|
184
184
|
}
|
|
185
|
-
if (customElements.get("sd-5-8-
|
|
185
|
+
if (customElements.get("sd-5-8-1-radio-button")) {
|
|
186
186
|
this.syncRadioElements();
|
|
187
187
|
} else {
|
|
188
|
-
customElements.whenDefined("sd-5-8-
|
|
188
|
+
customElements.whenDefined("sd-5-8-1-radio-button").then(() => this.syncRadios());
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
updateCheckedRadio() {
|
|
@@ -264,7 +264,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
264
264
|
vertical: "flex-col",
|
|
265
265
|
horizontal: "flex-row"
|
|
266
266
|
}[this.orientation]
|
|
267
|
-
)}"><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-5-8-
|
|
267
|
+
)}"><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-5-8-1-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${defaultSlot}</sd-5-8-1-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()}`;
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
270
|
/**
|
|
@@ -272,7 +272,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
272
272
|
*/
|
|
273
273
|
SdRadioGroup.styles = [
|
|
274
274
|
...SolidElement.styles,
|
|
275
|
-
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-5-8-
|
|
275
|
+
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-5-8-1-radio){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-5-8-1-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-5-8-1-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-5-8-1-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-8-1-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-8-1-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label:after{content:" *"}`
|
|
276
276
|
];
|
|
277
277
|
__decorateClass([
|
|
278
278
|
query("slot:not([name])")
|
|
@@ -329,7 +329,7 @@ __decorateClass([
|
|
|
329
329
|
watch("value")
|
|
330
330
|
], SdRadioGroup.prototype, "handleValueChange", 1);
|
|
331
331
|
SdRadioGroup = __decorateClass([
|
|
332
|
-
customElement("sd-5-8-
|
|
332
|
+
customElement("sd-5-8-1-radio-group")
|
|
333
333
|
], SdRadioGroup);
|
|
334
334
|
|
|
335
335
|
export {
|
|
@@ -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-5-8-
|
|
44
|
+
css`:host{display:block}::slotted(sd-5-8-1-accordion:not(:first-of-type)){margin-top:-1px}`
|
|
45
45
|
];
|
|
46
46
|
__decorateClass([
|
|
47
|
-
queryAssignedElements({ selector: "sd-5-8-
|
|
47
|
+
queryAssignedElements({ selector: "sd-5-8-1-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-5-8-
|
|
53
|
+
customElement("sd-5-8-1-accordion-group")
|
|
54
54
|
], SdAccordionGroup);
|
|
55
55
|
|
|
56
56
|
export {
|
|
@@ -94,7 +94,7 @@ var SdExpandable = class extends SolidElement {
|
|
|
94
94
|
)}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${cx("h-full justify-center w-full text-base flex items-center toggle")}"><span part="toggle-icon" class="${cx(
|
|
95
95
|
"flex items-center mr-2 transition-transform duration-medium ease-in-out",
|
|
96
96
|
this.open && "rotate-180"
|
|
97
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-8-
|
|
97
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-8-1-icon library="_internal" name="chevron-down" class="text-xl"></sd-5-8-1-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-5-8-1-icon library="_internal" name="chevron-down" class="text-xl"></sd-5-8-1-icon></slot></span><slot name="toggle-closed" class="${cx(this.open && "hidden")}">${this.localize.term("showMore")}</slot><slot name="toggle-open" class="${cx(!this.open && "hidden")}">${this.localize.term("showLess")}</slot></div></button><details part="details" ?inert="${ifDefined(!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>`;
|
|
98
98
|
}
|
|
99
99
|
firstUpdated() {
|
|
100
100
|
this.cloneContentToLightDOM();
|
|
@@ -134,7 +134,7 @@ __decorateClass([
|
|
|
134
134
|
watch("open", { waitUntilFirstUpdate: true })
|
|
135
135
|
], SdExpandable.prototype, "onOpenChange", 1);
|
|
136
136
|
SdExpandable = __decorateClass([
|
|
137
|
-
customElement("sd-5-8-
|
|
137
|
+
customElement("sd-5-8-1-expandable")
|
|
138
138
|
], SdExpandable);
|
|
139
139
|
setDefaultAnimation("expandable.show", {
|
|
140
140
|
keyframes: [{ height: "var(--component-expandable-max-block-size, 90px)" }, { height: "auto" }],
|
|
@@ -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-5-8-
|
|
21
|
+
this.componentId = `sd-5-8-1-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-5-8-
|
|
51
|
+
customElement("sd-5-8-1-tab-panel")
|
|
52
52
|
], SdTabPanel);
|
|
53
53
|
|
|
54
54
|
export {
|
|
@@ -21,7 +21,7 @@ var SdTab = class extends SolidElement {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
super(...arguments);
|
|
23
23
|
this.attrId = ++id;
|
|
24
|
-
this.componentId = `sd-5-8-
|
|
24
|
+
this.componentId = `sd-5-8-1-tab-${this.attrId}`;
|
|
25
25
|
this.hasSlotController = new HasSlotController(this, "left");
|
|
26
26
|
this.variant = "default";
|
|
27
27
|
this.active = false;
|
|
@@ -102,7 +102,7 @@ __decorateClass([
|
|
|
102
102
|
watch(["disabled", "visually-disabled"])
|
|
103
103
|
], SdTab.prototype, "handleDisabledChange", 1);
|
|
104
104
|
SdTab = __decorateClass([
|
|
105
|
-
customElement("sd-5-8-
|
|
105
|
+
customElement("sd-5-8-1-tab")
|
|
106
106
|
], SdTab);
|
|
107
107
|
|
|
108
108
|
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-5-8-
|
|
18
|
+
const isButton = this.host.tagName.toLowerCase() === "sd-5-8-1-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-5-8-
|
|
43
|
+
(element) => element.tagName.toLowerCase() === "sd-5-8-1-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-5-8-
|
|
91
|
+
assumeInteractionOn: ["sd-5-8-1-input"]
|
|
92
92
|
}, options);
|
|
93
93
|
}
|
|
94
94
|
hostConnected() {
|
|
@@ -29,8 +29,8 @@ var SdTabGroup = class extends SolidElement {
|
|
|
29
29
|
}
|
|
30
30
|
connectedCallback() {
|
|
31
31
|
const whenAllDefined = Promise.all([
|
|
32
|
-
customElements.whenDefined("sd-5-8-
|
|
33
|
-
customElements.whenDefined("sd-5-8-
|
|
32
|
+
customElements.whenDefined("sd-5-8-1-tab"),
|
|
33
|
+
customElements.whenDefined("sd-5-8-1-tab-panel")
|
|
34
34
|
]);
|
|
35
35
|
super.connectedCallback();
|
|
36
36
|
this.resizeObserver = new ResizeObserver(() => {
|
|
@@ -70,20 +70,20 @@ var SdTabGroup = class extends SolidElement {
|
|
|
70
70
|
}
|
|
71
71
|
getAllTabs(options = { includeDisabled: true }) {
|
|
72
72
|
const slot = this.shadowRoot.querySelector('slot[name="nav"]');
|
|
73
|
-
return Array.from(slot.assignedElements()).map((el) => el.tagName.toLocaleLowerCase() === "sd-5-8-
|
|
74
|
-
return el && options.includeDisabled ? el.tagName.toLowerCase() === "sd-5-8-
|
|
73
|
+
return Array.from(slot.assignedElements()).map((el) => el.tagName.toLocaleLowerCase() === "sd-5-8-1-tab" ? el : el.querySelector("sd-5-8-1-tab")).filter((el) => {
|
|
74
|
+
return el && options.includeDisabled ? el.tagName.toLowerCase() === "sd-5-8-1-tab" : el.tagName.toLowerCase() === "sd-5-8-1-tab" && !el.disabled;
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
getAllPanels() {
|
|
78
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-5-8-
|
|
78
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-5-8-1-tab-panel");
|
|
79
79
|
}
|
|
80
80
|
getActiveTab() {
|
|
81
81
|
return this.tabs.find((t) => t.matches(":focus"));
|
|
82
82
|
}
|
|
83
83
|
handleClick(event) {
|
|
84
84
|
const target = event.target;
|
|
85
|
-
const tab = target.closest("sd-5-8-
|
|
86
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-5-8-
|
|
85
|
+
const tab = target.closest("sd-5-8-1-tab");
|
|
86
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-5-8-1-tab-group");
|
|
87
87
|
if (tabGroup !== this) {
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
@@ -93,8 +93,8 @@ var SdTabGroup = class extends SolidElement {
|
|
|
93
93
|
}
|
|
94
94
|
handleKeyDown(event) {
|
|
95
95
|
const target = event.target;
|
|
96
|
-
const tab = target.closest("sd-5-8-
|
|
97
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-5-8-
|
|
96
|
+
const tab = target.closest("sd-5-8-1-tab");
|
|
97
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-5-8-1-tab-group");
|
|
98
98
|
if (tabGroup !== this) {
|
|
99
99
|
return;
|
|
100
100
|
}
|
|
@@ -119,7 +119,7 @@ var SdTabGroup = class extends SolidElement {
|
|
|
119
119
|
if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)) {
|
|
120
120
|
const activeEl = this.tabs.find((t) => t.matches(":focus"));
|
|
121
121
|
const isRtl = this.localize.dir() === "rtl";
|
|
122
|
-
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-5-8-
|
|
122
|
+
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-5-8-1-tab") {
|
|
123
123
|
let index = this.tabs.indexOf(activeEl);
|
|
124
124
|
if (event.key === "Home") {
|
|
125
125
|
index = 0;
|
|
@@ -215,15 +215,15 @@ var SdTabGroup = class extends SolidElement {
|
|
|
215
215
|
return html`<div part="base" class="${cx("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${cx(this.hasScrollControls && "relative py-0 px-12")}">${this.hasScrollControls ? html`<button part="scroll-button--start" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${cx(
|
|
216
216
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
217
217
|
this.localize.dir() === "rtl" && "left-auto right-0"
|
|
218
|
-
)}" @click="${this.handleScrollToStart}"><sd-5-8-
|
|
218
|
+
)}" @click="${this.handleScrollToStart}"><sd-5-8-1-icon library="_internal" name="${isRtl ? "chevron-up" : "chevron-down"}" label="previous" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-5-8-1-icon></button>` : ""}<div part="scroll-container" class="flex overflow-x-auto focus-visible:focus-outline !outline-offset-0"><div part="tabs" class="${cx("flex flex-auto relative flex-row")}" role="tablist"><div part="separation" class="w-full border-[0.25px] border-neutral-400 absolute bottom-0"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls ? html`<button part="scroll-button--end" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${cx(
|
|
219
219
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
220
220
|
this.localize.dir() === "rtl" && "right-auto left-0"
|
|
221
|
-
)}" @click="${this.handleScrollToEnd}"><sd-5-8-
|
|
221
|
+
)}" @click="${this.handleScrollToEnd}"><sd-5-8-1-icon library="_internal" name="${isRtl ? "chevron-down" : "chevron-up"}" label="next" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-5-8-1-icon></button>` : ""}</div><slot part="body" class="${cx("block auto py-8 px-6", this.variant === "container" && "border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`;
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
224
|
SdTabGroup.styles = [
|
|
225
225
|
...SolidElement.styles,
|
|
226
|
-
css`:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}:focus-within::slotted(sd-5-8-
|
|
226
|
+
css`:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}:focus-within::slotted(sd-5-8-1-tab-panel){outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}::slotted(sd-5-8-1-tab-panel){--padding:1rem 0}`
|
|
227
227
|
];
|
|
228
228
|
__decorateClass([
|
|
229
229
|
query("[part=base]")
|
|
@@ -244,7 +244,7 @@ __decorateClass([
|
|
|
244
244
|
property({ type: String, reflect: true })
|
|
245
245
|
], SdTabGroup.prototype, "activation", 2);
|
|
246
246
|
SdTabGroup = __decorateClass([
|
|
247
|
-
customElement("sd-5-8-
|
|
247
|
+
customElement("sd-5-8-1-tab-group")
|
|
248
248
|
], SdTabGroup);
|
|
249
249
|
|
|
250
250
|
export {
|
|
@@ -210,15 +210,15 @@ var SdNotification = class extends SolidElement {
|
|
|
210
210
|
warning: "bg-warning",
|
|
211
211
|
error: "bg-error"
|
|
212
212
|
}[this.variant]
|
|
213
|
-
)}"><sd-5-8-
|
|
213
|
+
)}"><sd-5-8-1-icon name="${{
|
|
214
214
|
info: "info-circle",
|
|
215
215
|
success: "confirm-circle",
|
|
216
216
|
warning: "exclamation-circle",
|
|
217
217
|
error: "warning"
|
|
218
|
-
}[this.variant] || ""}" library="_internal" class="h-6 w-6 text-white"></sd-5-8-
|
|
218
|
+
}[this.variant] || ""}" library="_internal" class="h-6 w-6 text-white"></sd-5-8-1-icon></slot><div part="content" class="${cx(
|
|
219
219
|
"h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white",
|
|
220
220
|
"border-solid border-[1px] border-l-0 border-neutral-400"
|
|
221
|
-
)}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable ? html`<sd-5-8-
|
|
221
|
+
)}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable ? html`<sd-5-8-1-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-5-8-1-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-5-8-1-icon></sd-5-8-1-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></div>`;
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
224
|
/**
|
|
@@ -262,7 +262,7 @@ __decorateClass([
|
|
|
262
262
|
watch("duration")
|
|
263
263
|
], SdNotification.prototype, "handleDurationChange", 1);
|
|
264
264
|
SdNotification = __decorateClass([
|
|
265
|
-
customElement("sd-5-8-
|
|
265
|
+
customElement("sd-5-8-1-notification")
|
|
266
266
|
], SdNotification);
|
|
267
267
|
setDefaultAnimation("notification.show", {
|
|
268
268
|
keyframes: [
|
|
@@ -17,19 +17,19 @@ var SdButtonGroup = class extends SolidElement {
|
|
|
17
17
|
}
|
|
18
18
|
handleFocus(event) {
|
|
19
19
|
const button = findButton(event.target);
|
|
20
|
-
button == null ? void 0 : button.classList.add("sd-5-8-
|
|
20
|
+
button == null ? void 0 : button.classList.add("sd-5-8-1-button-group__button--focus");
|
|
21
21
|
}
|
|
22
22
|
handleBlur(event) {
|
|
23
23
|
const button = findButton(event.target);
|
|
24
|
-
button == null ? void 0 : button.classList.remove("sd-5-8-
|
|
24
|
+
button == null ? void 0 : button.classList.remove("sd-5-8-1-button-group__button--focus");
|
|
25
25
|
}
|
|
26
26
|
handleMouseOver(event) {
|
|
27
27
|
const button = findButton(event.target);
|
|
28
|
-
button == null ? void 0 : button.classList.add("sd-5-8-
|
|
28
|
+
button == null ? void 0 : button.classList.add("sd-5-8-1-button-group__button--hover");
|
|
29
29
|
}
|
|
30
30
|
handleMouseOut(event) {
|
|
31
31
|
const button = findButton(event.target);
|
|
32
|
-
button == null ? void 0 : button.classList.remove("sd-5-8-
|
|
32
|
+
button == null ? void 0 : button.classList.remove("sd-5-8-1-button-group__button--hover");
|
|
33
33
|
}
|
|
34
34
|
handleSlotChange() {
|
|
35
35
|
const slottedElements = [...this.defaultSlot.assignedElements({ flatten: true })];
|
|
@@ -37,11 +37,11 @@ var SdButtonGroup = class extends SolidElement {
|
|
|
37
37
|
const index = slottedElements.indexOf(el);
|
|
38
38
|
const button = findButton(el);
|
|
39
39
|
if (button !== null) {
|
|
40
|
-
button.classList.add("sd-5-8-
|
|
41
|
-
button.classList.toggle("sd-5-8-
|
|
42
|
-
button.classList.toggle("sd-5-8-
|
|
43
|
-
button.classList.toggle("sd-5-8-
|
|
44
|
-
button.classList.toggle("sd-5-8-
|
|
40
|
+
button.classList.add("sd-5-8-1-button-group__button");
|
|
41
|
+
button.classList.toggle("sd-5-8-1-button-group__button--first", index === 0);
|
|
42
|
+
button.classList.toggle("sd-5-8-1-button-group__button--inner", index > 0 && index < slottedElements.length - 1);
|
|
43
|
+
button.classList.toggle("sd-5-8-1-button-group__button--last", index === slottedElements.length - 1);
|
|
44
|
+
button.classList.toggle("sd-5-8-1-button-group__button--radio", button.tagName.toLowerCase() === "sd-5-8-1-radio-button");
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
}
|
|
@@ -63,11 +63,11 @@ __decorateClass([
|
|
|
63
63
|
property({ type: String, reflect: true })
|
|
64
64
|
], SdButtonGroup.prototype, "label", 2);
|
|
65
65
|
SdButtonGroup = __decorateClass([
|
|
66
|
-
customElement("sd-5-8-
|
|
66
|
+
customElement("sd-5-8-1-button-group")
|
|
67
67
|
], SdButtonGroup);
|
|
68
68
|
function findButton(el) {
|
|
69
69
|
var _a;
|
|
70
|
-
const selector = "sd-5-8-
|
|
70
|
+
const selector = "sd-5-8-1-button, sd-5-8-1-radio-button";
|
|
71
71
|
return (_a = el.closest(selector)) != null ? _a : el.querySelector(selector);
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -22,7 +22,7 @@ var SdBreadcrumb = class extends SolidElement {
|
|
|
22
22
|
this.isTruncated = false;
|
|
23
23
|
}
|
|
24
24
|
get items() {
|
|
25
|
-
return this.querySelectorAll("sd-5-8-
|
|
25
|
+
return this.querySelectorAll("sd-5-8-1-breadcrumb-item");
|
|
26
26
|
}
|
|
27
27
|
cacheItemPositions() {
|
|
28
28
|
this.items.forEach((item) => {
|
|
@@ -67,12 +67,12 @@ var SdBreadcrumb = class extends SolidElement {
|
|
|
67
67
|
}
|
|
68
68
|
handleMobileChevron() {
|
|
69
69
|
var _a, _b, _c;
|
|
70
|
-
const icon = document.createElement("sd-5-8-
|
|
70
|
+
const icon = document.createElement("sd-5-8-1-icon");
|
|
71
71
|
icon.setAttribute("slot", "icon-left");
|
|
72
72
|
icon.setAttribute("library", "_internal");
|
|
73
73
|
icon.setAttribute("name", "chevron-left");
|
|
74
74
|
icon.setAttribute("class", "text-base me-1 lg:hidden");
|
|
75
|
-
(_c = (_b = (_a = Array.from(this.items).at(-2)) == null ? void 0 : _a.shadowRoot) == null ? void 0 : _b.querySelector("sd-5-8-
|
|
75
|
+
(_c = (_b = (_a = Array.from(this.items).at(-2)) == null ? void 0 : _a.shadowRoot) == null ? void 0 : _b.querySelector("sd-5-8-1-link")) == null ? void 0 : _c.appendChild(icon);
|
|
76
76
|
}
|
|
77
77
|
handleSlotChange() {
|
|
78
78
|
this.handleMobileChevron();
|
|
@@ -87,12 +87,12 @@ var SdBreadcrumb = class extends SolidElement {
|
|
|
87
87
|
this.resizeObserver.unobserve(this);
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
|
-
return html`<nav part="base" class="flex items-center pb-1" aria-label="${this.label}"><sd-5-8-
|
|
90
|
+
return html`<nav part="base" class="flex items-center pb-1" aria-label="${this.label}"><sd-5-8-1-dropdown part="truncated" class="${cx(!this.isTruncated && "absolute opacity-0 pointer-events-none")}"><button slot="trigger" tabindex="${this.isTruncated ? "0" : "-1"}" aria-label="${this.localize.term("truncatedBreadcrumbs")}" aria-expanded="false" aria-haspopup="true" class="flex sd-interactive">[...]</button><ol part="truncated-dropdown" class="flex flex-col gap-4 px-2 py-3 min-w-40"></ol></sd-5-8-1-dropdown><ol part="list" class="flex items-center"><slot @slotchange="${this.handleSlotChange}"></slot></ol></nav>`;
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
SdBreadcrumb.styles = [
|
|
94
94
|
...SolidElement.styles,
|
|
95
|
-
css`:host{display:block;position:relative}::slotted(sd-5-8-
|
|
95
|
+
css`:host{display:block;position:relative}::slotted(sd-5-8-1-breadcrumb-item:not(:last-of-type)):after,sd-5-8-1-dropdown:after{border-radius:var(--sd-border-radius-full,9999px);content:var(--tw-content);display:none;height:var(--sd-spacing-1,.25rem);margin-left:var(--sd-spacing-2,.5rem);margin-right:var(--sd-spacing-2,.5rem);width:var(--sd-spacing-1,.25rem);--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-bg-opacity,1))}@media (min-width:1024px){::slotted(sd-5-8-1-breadcrumb-item:not(:last-of-type)):after,sd-5-8-1-dropdown:after{content:var(--tw-content);display:inline-block}}::slotted(sd-5-8-1-breadcrumb-item:nth-last-child(2)){display:flex}@media (min-width:1024px){::slotted(sd-5-8-1-breadcrumb-item:nth-last-child(2)):after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent,45 157 0)/var(--tw-bg-opacity,1))}}::slotted(sd-5-8-1-breadcrumb-item),sd-5-8-1-dropdown{align-items:center;display:none}@media (min-width:1024px){::slotted(sd-5-8-1-breadcrumb-item),sd-5-8-1-dropdown{display:flex}}`
|
|
96
96
|
];
|
|
97
97
|
__decorateClass([
|
|
98
98
|
query('[part="base"]')
|
|
@@ -116,7 +116,7 @@ __decorateClass([
|
|
|
116
116
|
state()
|
|
117
117
|
], SdBreadcrumb.prototype, "isTruncated", 2);
|
|
118
118
|
SdBreadcrumb = __decorateClass([
|
|
119
|
-
customElement("sd-5-8-
|
|
119
|
+
customElement("sd-5-8-1-breadcrumb")
|
|
120
120
|
], SdBreadcrumb);
|
|
121
121
|
|
|
122
122
|
export {
|
|
@@ -98,7 +98,7 @@ var SdVideo = class extends SolidElement {
|
|
|
98
98
|
this.playing ? "opacity-0" : "opacity-100",
|
|
99
99
|
this.isBelowBreakpoint ? "w-[48px] h-[48px]" : "w-[96px] h-[96px]",
|
|
100
100
|
"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white bg-opacity-75 rounded-full play-pause-transition outline-2 outline-offset-2 group-focus-visible:outline"
|
|
101
|
-
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-5-8-
|
|
101
|
+
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-5-8-1-icon id="default-play-icon" library="_internal" name="start"></sd-5-8-1-icon></slot></div></button> ${this.hasSlotController.test("poster") ? html`<div part="poster-wrapper" class="absolute left-0 top-0 w-full z-10 overflow-hidden"><slot name="poster" role="presentation"></slot></div>` : null}<slot></slot></div>`;
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
SdVideo.styles = [
|
|
@@ -115,7 +115,7 @@ __decorateClass([
|
|
|
115
115
|
property({ type: Boolean })
|
|
116
116
|
], SdVideo.prototype, "isBelowBreakpoint", 2);
|
|
117
117
|
SdVideo = __decorateClass([
|
|
118
|
-
customElement("sd-5-8-
|
|
118
|
+
customElement("sd-5-8-1-video")
|
|
119
119
|
], SdVideo);
|
|
120
120
|
|
|
121
121
|
export {
|
|
@@ -85,7 +85,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
85
85
|
"gradient-light": this.placement === "top" ? "bg-gradient-to-b from-white/60 to-white/0 mb-auto" : "bg-gradient-to-t from-white/60 to-white/0 mt-auto",
|
|
86
86
|
"gradient-dark": this.placement === "bottom" ? "bg-gradient-to-t from-primary-800/60 to-primary-800/0 mt-auto" : "bg-gradient-to-b from-primary-800/60 to-primary-800/0 mb-auto"
|
|
87
87
|
}[this.frontVariant]
|
|
88
|
-
)}"></div><sd-5-8-
|
|
88
|
+
)}"></div><sd-5-8-1-button part="front-button" size="md" variant="${{
|
|
89
89
|
primary: "tertiary",
|
|
90
90
|
"primary-100": "tertiary",
|
|
91
91
|
"gradient-light": "primary",
|
|
@@ -95,7 +95,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
95
95
|
"primary-100": false,
|
|
96
96
|
"gradient-light": true,
|
|
97
97
|
"gradient-dark": true
|
|
98
|
-
}[this.frontVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipFront}" @keydown="${this.handleFrontKeydown}"><sd-5-8-
|
|
98
|
+
}[this.frontVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipFront}" @keydown="${this.handleFrontKeydown}"><sd-5-8-1-icon library="_internal" name="reload" label="Flip to Back"></sd-5-8-1-icon></sd-5-8-1-button></div><div part="back" tabindex="0" aria-hidden="${this.activeSide === "front"}" inert="${ifDefined(this.activeSide === "front" || void 0)}" class="${cx(
|
|
99
99
|
"flip-card__side flip-card__side--back overflow-hidden transition-transform duration-1000 ease-in-out",
|
|
100
100
|
"flex focus-visible:focus-outline",
|
|
101
101
|
"absolute top-0 left-0 w-full h-full justify-end text-left",
|
|
@@ -128,7 +128,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
128
128
|
"gradient-light": this.placement === "top" ? "bg-gradient-to-b from-white/60 to-white/0 mb-auto" : "bg-gradient-to-t from-white/60 to-white/0 mt-auto",
|
|
129
129
|
"gradient-dark": this.placement === "bottom" ? "bg-gradient-to-t from-primary-800/60 to-primary-800/0 mt-auto" : "bg-gradient-to-b from-primary-800/60 to-primary-800/0 mb-auto"
|
|
130
130
|
}[this.backVariant]
|
|
131
|
-
)}"></div><sd-5-8-
|
|
131
|
+
)}"></div><sd-5-8-1-button size="md" part="back-button" variant="${{
|
|
132
132
|
primary: "tertiary",
|
|
133
133
|
"primary-100": "tertiary",
|
|
134
134
|
"gradient-light": "primary",
|
|
@@ -138,7 +138,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
138
138
|
"primary-100": false,
|
|
139
139
|
"gradient-light": true,
|
|
140
140
|
"gradient-dark": true
|
|
141
|
-
}[this.backVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipBack}" @keydown="${this.handleBackKeydown}"><sd-5-8-
|
|
141
|
+
}[this.backVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipBack}" @keydown="${this.handleBackKeydown}"><sd-5-8-1-icon library="_internal" name="reload" label="Flip to Front"></sd-5-8-1-icon></sd-5-8-1-button></div></div>`;
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
144
|
/**
|
|
@@ -170,7 +170,7 @@ __decorateClass([
|
|
|
170
170
|
state()
|
|
171
171
|
], SdFlipcard.prototype, "activeSide", 2);
|
|
172
172
|
SdFlipcard = __decorateClass([
|
|
173
|
-
customElement("sd-5-8-
|
|
173
|
+
customElement("sd-5-8-1-flipcard")
|
|
174
174
|
], SdFlipcard);
|
|
175
175
|
|
|
176
176
|
export {
|
|
@@ -176,7 +176,7 @@ var SdDialog = class extends SolidElement {
|
|
|
176
176
|
)}"><div part="overlay" class="fixed inset-0 bg-primary-800 opacity-90" @click="${() => this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${cx(
|
|
177
177
|
"flex flex-col z-20 bg-white py-4 sm:py-8 relative gap-6 focus-visible:focus-outline-inverted overflow-y-auto",
|
|
178
178
|
this.open && "flex opacity-100"
|
|
179
|
-
)}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${ifDefined(this.headline ? this.headline : void 0)}" aria-labelledby="${ifDefined(!this.headline ? "title" : void 0)}" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length > 0 ? html`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>` : html`<slot name="headline"></slot>`}</h2>${!this.noCloseButton ? html`<sd-5-8-
|
|
179
|
+
)}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${ifDefined(this.headline ? this.headline : void 0)}" aria-labelledby="${ifDefined(!this.headline ? "title" : void 0)}" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length > 0 ? html`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>` : html`<slot name="headline"></slot>`}</h2>${!this.noCloseButton ? html`<sd-5-8-1-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-5-8-1-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-5-8-1-icon></sd-5-8-1-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>`;
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
182
|
SdDialog.styles = [
|
|
@@ -205,7 +205,7 @@ __decorateClass([
|
|
|
205
205
|
watch("open", { waitUntilFirstUpdate: true })
|
|
206
206
|
], SdDialog.prototype, "handleOpenChange", 1);
|
|
207
207
|
SdDialog = __decorateClass([
|
|
208
|
-
customElement("sd-5-8-
|
|
208
|
+
customElement("sd-5-8-1-dialog")
|
|
209
209
|
], SdDialog);
|
|
210
210
|
setDefaultAnimation("dialog.show", {
|
|
211
211
|
keyframes: [
|
|
@@ -84,7 +84,7 @@ var SdRadioButton = class extends SolidElement {
|
|
|
84
84
|
};
|
|
85
85
|
SdRadioButton.styles = [
|
|
86
86
|
...SolidElement.styles,
|
|
87
|
-
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-5-8-
|
|
87
|
+
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-5-8-1-button-group__button--first:not(.sd-5-8-1-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-5-8-1-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-5-8-1-button-group__button--last:not(.sd-5-8-1-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-5-8-1-button-group__button:not(.sd-5-8-1-button-group__button--first)){margin-inline-start:-1px}:host(.sd-5-8-1-button-group__button--hover){z-index:10}:host(.sd-5-8-1-button-group__button--focus),:host(.sd-5-8-1-button-group__button[checked]){z-index:20}`
|
|
88
88
|
];
|
|
89
89
|
__decorateClass([
|
|
90
90
|
query(".button")
|
|
@@ -114,7 +114,7 @@ __decorateClass([
|
|
|
114
114
|
watch(["disabled", "visually-disabled"], { waitUntilFirstUpdate: true })
|
|
115
115
|
], SdRadioButton.prototype, "handleDisabledChange", 1);
|
|
116
116
|
SdRadioButton = __decorateClass([
|
|
117
|
-
customElement("sd-5-8-
|
|
117
|
+
customElement("sd-5-8-1-radio-button")
|
|
118
118
|
], SdRadioButton);
|
|
119
119
|
|
|
120
120
|
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-5-8-
|
|
4
|
-
var isOptgroup = (item) => item.tagName.toLocaleLowerCase() === "sd-5-8-
|
|
3
|
+
var getOptionOrNestedOptions = (item) => item.tagName.toLocaleLowerCase() === "sd-5-8-1-option" ? item : Array.from(item.querySelectorAll(":scope > sd-5-8-1-option"));
|
|
4
|
+
var isOptgroup = (item) => item.tagName.toLocaleLowerCase() === "sd-5-8-1-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();
|
|
@@ -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-5-8-
|
|
92
|
+
)}">${!this.disabled && !this.current && !this.notInteractive ? html`<sd-5-8-1-icon name="status-check" library="_internal"></sd-5-8-1-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-5-8-
|
|
142
|
+
customElement("sd-5-8-1-step")
|
|
143
143
|
], SdStep);
|
|
144
144
|
|
|
145
145
|
export {
|