@solid-design-system/components 7.0.0-next.8 → 7.0.0-next.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/custom-elements.json +184 -184
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +27 -27
- package/cdn/web-types.json +53 -53
- package/cdn-versioned/chunks/chunk.2XFIFYRX.js +2 -2
- package/cdn-versioned/chunks/chunk.3RDG7HQT.js +2 -2
- package/cdn-versioned/chunks/chunk.3VTWQPQB.js +2 -2
- package/cdn-versioned/chunks/chunk.55B57RXL.js +2 -2
- package/cdn-versioned/chunks/chunk.5B33ZALC.js +1 -1
- package/cdn-versioned/chunks/chunk.6A2XPA27.js +2 -2
- package/cdn-versioned/chunks/chunk.6JKZ63QX.js +2 -2
- package/cdn-versioned/chunks/chunk.7O3WO7T4.js +1 -1
- package/cdn-versioned/chunks/chunk.7USKB2GO.js +2 -2
- package/cdn-versioned/chunks/chunk.ARA5JW32.js +2 -2
- package/cdn-versioned/chunks/chunk.B4BAFEZE.js +2 -2
- package/cdn-versioned/chunks/chunk.C45254AN.js +2 -2
- package/cdn-versioned/chunks/chunk.CQI2RS2L.js +2 -2
- package/cdn-versioned/chunks/chunk.CVB6PQL3.js +5 -5
- package/cdn-versioned/chunks/chunk.CWRWVUT3.js +2 -2
- package/cdn-versioned/chunks/chunk.DEC3VKXA.js +2 -2
- package/cdn-versioned/chunks/chunk.DFCHDZDG.js +2 -2
- package/cdn-versioned/chunks/chunk.DSKB3SEU.js +1 -1
- package/cdn-versioned/chunks/chunk.FCBNIOWP.js +2 -2
- package/cdn-versioned/chunks/chunk.FPC4KJUF.js +1 -1
- package/cdn-versioned/chunks/chunk.GX5EMWG2.js +2 -2
- package/cdn-versioned/chunks/chunk.H5ODW4DI.js +2 -2
- package/cdn-versioned/chunks/chunk.HS3Q3NPY.js +2 -2
- package/cdn-versioned/chunks/chunk.J663MKB4.js +2 -2
- package/cdn-versioned/chunks/chunk.J7SSJXR3.js +1 -1
- package/cdn-versioned/chunks/chunk.JTBZGOCE.js +2 -2
- package/cdn-versioned/chunks/chunk.KDTVJE37.js +2 -2
- package/cdn-versioned/chunks/chunk.KITZT7MU.js +1 -1
- package/cdn-versioned/chunks/chunk.KZLMAANO.js +1 -1
- package/cdn-versioned/chunks/chunk.LM5SJXYL.js +2 -2
- package/cdn-versioned/chunks/chunk.LPOPOGGB.js +2 -2
- package/cdn-versioned/chunks/chunk.LYJX2BW7.js +2 -2
- package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
- package/cdn-versioned/chunks/chunk.MIROXJW4.js +2 -2
- package/cdn-versioned/chunks/chunk.N2PGOHWH.js +2 -2
- package/cdn-versioned/chunks/chunk.NISL6W7W.js +2 -2
- package/cdn-versioned/chunks/chunk.NOW64QHB.js +2 -2
- package/cdn-versioned/chunks/chunk.NSAUFZ4I.js +3 -3
- package/cdn-versioned/chunks/chunk.OFLEA353.js +10 -10
- package/cdn-versioned/chunks/chunk.OKAUTL3G.js +2 -2
- package/cdn-versioned/chunks/chunk.OR64TDYE.js +2 -2
- package/cdn-versioned/chunks/chunk.OYCIMCNH.js +2 -2
- package/cdn-versioned/chunks/chunk.PUC7BGPD.js +2 -2
- package/cdn-versioned/chunks/chunk.QXTQ4QBZ.js +5 -5
- package/cdn-versioned/chunks/chunk.RFVQLD5K.js +2 -2
- package/cdn-versioned/chunks/chunk.RGSF2XLM.js +2 -2
- package/cdn-versioned/chunks/chunk.RJIOLFBG.js +2 -2
- package/cdn-versioned/chunks/chunk.RSP57JUX.js +2 -2
- package/cdn-versioned/chunks/chunk.S63R2AXT.js +3 -3
- package/cdn-versioned/chunks/chunk.SVZV3YHZ.js +1 -1
- package/cdn-versioned/chunks/chunk.TS6S25HT.js +2 -2
- package/cdn-versioned/chunks/chunk.U2TVO27N.js +2 -2
- package/cdn-versioned/chunks/chunk.U3X6ZYRC.js +2 -2
- package/cdn-versioned/chunks/chunk.UFWE6XC3.js +2 -2
- package/cdn-versioned/chunks/chunk.UPV2DLDG.js +2 -2
- package/cdn-versioned/chunks/chunk.V3TQLJF2.js +1 -1
- package/cdn-versioned/chunks/chunk.VAQE66S7.js +2 -2
- package/cdn-versioned/chunks/chunk.VSIBCI2V.js +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WHDOGCAD.js +1 -1
- package/cdn-versioned/chunks/chunk.WIAQ2X73.js +2 -2
- package/cdn-versioned/chunks/chunk.WWHH2NDP.js +2 -2
- package/cdn-versioned/chunks/chunk.WZS3PEEQ.js +2 -2
- package/cdn-versioned/chunks/chunk.XHWQ4DCO.js +2 -2
- package/cdn-versioned/chunks/chunk.YAT66EQJ.js +3 -3
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/cdn-versioned/components/button/button.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
- package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
- package/cdn-versioned/components/file-selector/file-selector.d.ts +1 -1
- package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/cdn-versioned/components/header/header.d.ts +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/input/input.d.ts +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/loader/loader.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/menu/menu.d.ts +1 -1
- package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/progress-bar/progress-bar.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/cdn-versioned/components/range/range.d.ts +1 -1
- package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +1 -1
- package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/theme-listener/theme-listener.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +447 -447
- package/cdn-versioned/internal/form.js +2 -2
- package/cdn-versioned/solid-components.bundle.js +81 -81
- package/cdn-versioned/solid-components.css +3 -3
- package/cdn-versioned/solid-components.iife.js +81 -81
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +141 -141
- package/cdn-versioned/web-types.json +224 -224
- package/dist/custom-elements.json +1 -1
- package/dist/solid-components.js +7 -7
- package/dist/web-types.json +1 -1
- package/dist-versioned/chunks/chunk.266V4W27.js +11 -11
- package/dist-versioned/chunks/chunk.2ZO5TQLM.js +4 -4
- package/dist-versioned/chunks/chunk.33KST4RJ.js +1 -1
- package/dist-versioned/chunks/chunk.3JGMLVGL.js +3 -3
- package/dist-versioned/chunks/chunk.3MGF33VU.js +2 -2
- package/dist-versioned/chunks/chunk.3Y3V2LY4.js +5 -5
- package/dist-versioned/chunks/chunk.4BB4LNMY.js +8 -8
- package/dist-versioned/chunks/chunk.4USTQEWG.js +12 -12
- package/dist-versioned/chunks/chunk.52XEAMVX.js +6 -6
- package/dist-versioned/chunks/chunk.5R5MY3VD.js +11 -11
- package/dist-versioned/chunks/chunk.5VCVDFRJ.js +1 -1
- package/dist-versioned/chunks/chunk.6A4DHVDL.js +2 -2
- package/dist-versioned/chunks/chunk.6MSQDSJK.js +4 -4
- package/dist-versioned/chunks/chunk.6OYBQ6CO.js +4 -4
- package/dist-versioned/chunks/chunk.77CINHAJ.js +1 -1
- package/dist-versioned/chunks/chunk.7ZKBKOS5.js +10 -10
- package/dist-versioned/chunks/chunk.AFD4FHYM.js +10 -10
- package/dist-versioned/chunks/chunk.AJVSDITF.js +3 -3
- package/dist-versioned/chunks/chunk.BZO3OLK2.js +5 -5
- package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
- package/dist-versioned/chunks/chunk.C4RJM5BO.js +1 -1
- package/dist-versioned/chunks/chunk.CQTEYWVJ.js +10 -10
- package/dist-versioned/chunks/chunk.D5JLEZPO.js +1 -1
- package/dist-versioned/chunks/chunk.DJJN4MJ4.js +1 -1
- package/dist-versioned/chunks/chunk.DKN5SHQ2.js +5 -5
- package/dist-versioned/chunks/chunk.EVGV2PWW.js +2 -2
- package/dist-versioned/chunks/chunk.F3C76UKB.js +2 -2
- package/dist-versioned/chunks/chunk.FQJPWM4Z.js +25 -25
- package/dist-versioned/chunks/chunk.G7M7XYS3.js +6 -6
- package/dist-versioned/chunks/chunk.GBB73ZFE.js +3 -3
- package/dist-versioned/chunks/chunk.GHWO5PUG.js +14 -14
- package/dist-versioned/chunks/chunk.GOZXDQTL.js +5 -5
- package/dist-versioned/chunks/chunk.GRRHK6BP.js +2 -2
- package/dist-versioned/chunks/chunk.HIR2MKW6.js +2 -2
- package/dist-versioned/chunks/chunk.I57THEU4.js +7 -7
- package/dist-versioned/chunks/chunk.INSUQDO7.js +5 -5
- package/dist-versioned/chunks/chunk.IXJGPE6X.js +11 -11
- package/dist-versioned/chunks/chunk.JAPL7DQX.js +5 -5
- package/dist-versioned/chunks/chunk.JHSA2DI2.js +2 -2
- package/dist-versioned/chunks/chunk.KAWDESCC.js +6 -6
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.LIPCVYL3.js +3 -3
- package/dist-versioned/chunks/chunk.LJ5ONJGL.js +42 -42
- package/dist-versioned/chunks/chunk.OUFMMO37.js +6 -6
- package/dist-versioned/chunks/chunk.P5V6KORX.js +23 -23
- package/dist-versioned/chunks/chunk.PCB2BA7U.js +13 -13
- package/dist-versioned/chunks/chunk.PMM3MDLE.js +3 -3
- package/dist-versioned/chunks/chunk.QD2ZQPDB.js +2 -2
- package/dist-versioned/chunks/chunk.QGERTGJH.js +4 -4
- package/dist-versioned/chunks/chunk.QOIO3YAP.js +7 -7
- package/dist-versioned/chunks/chunk.RGVIOXPM.js +3 -3
- package/dist-versioned/chunks/chunk.SVAL7V6Q.js +2 -2
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.UOMFY7RY.js +1 -1
- package/dist-versioned/chunks/chunk.UTW3WRV2.js +5 -5
- package/dist-versioned/chunks/chunk.UYQP3VDT.js +2 -2
- package/dist-versioned/chunks/chunk.VHQQB75I.js +3 -3
- package/dist-versioned/chunks/chunk.WVSKCZ63.js +4 -4
- package/dist-versioned/chunks/chunk.WXT5HYGA.js +12 -12
- package/dist-versioned/chunks/chunk.WYS3OZYO.js +5 -5
- package/dist-versioned/chunks/chunk.WZOVHSGU.js +6 -6
- package/dist-versioned/chunks/chunk.Y4XJY6Y4.js +5 -5
- package/dist-versioned/chunks/chunk.Y6QQUPB5.js +4 -4
- package/dist-versioned/chunks/chunk.Z462LBEB.js +7 -7
- package/dist-versioned/chunks/chunk.ZCG43UX7.js +10 -10
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/animation/animation.d.ts +1 -1
- package/dist-versioned/components/audio/audio.d.ts +1 -1
- package/dist-versioned/components/badge/badge.d.ts +1 -1
- package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/dist-versioned/components/button/button.d.ts +1 -1
- package/dist-versioned/components/button-group/button-group.d.ts +1 -1
- package/dist-versioned/components/carousel/carousel.d.ts +1 -1
- package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +1 -1
- package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/file-selector/file-selector.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/loader/loader.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/menu/menu.d.ts +1 -1
- package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/progress-bar/progress-bar.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/dist-versioned/components/range/range.d.ts +1 -1
- package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +1 -1
- package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
- package/dist-versioned/components/step/step.d.ts +1 -1
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/tab/tab.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/theme-listener/theme-listener.d.ts +1 -1
- package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +447 -447
- package/dist-versioned/internal/form.js +2 -2
- package/dist-versioned/solid-components.css +3 -3
- package/dist-versioned/solid-components.js +7 -7
- package/dist-versioned/vscode.html-custom-data.json +141 -141
- package/dist-versioned/web-types.json +224 -224
- package/package.json +1 -1
|
@@ -77,11 +77,11 @@ var SdSelect = class extends SolidElement {
|
|
|
77
77
|
this.styleOnValid = false;
|
|
78
78
|
this.hoist = false;
|
|
79
79
|
this.getTag = (option) => {
|
|
80
|
-
return html`<sd-7-0-0-next-
|
|
80
|
+
return html`<sd-7-0-0-next-9-tag class="relative z-10 min-w-0 max-w-full" ?disabled="${this.disabled}" part="tag" exportparts="
|
|
81
81
|
base:tag__base,
|
|
82
82
|
content:tag__content,
|
|
83
83
|
removable-indicator:tag__removable-indicator,
|
|
84
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-7-0-0-next-
|
|
84
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-7-0-0-next-9-tag>`;
|
|
85
85
|
};
|
|
86
86
|
this.handleDocumentFocusIn = (event) => {
|
|
87
87
|
const path = event.composedPath();
|
|
@@ -92,7 +92,7 @@ var SdSelect = class extends SolidElement {
|
|
|
92
92
|
this.handleDocumentKeyDown = (event) => {
|
|
93
93
|
const target = event.target;
|
|
94
94
|
const isClearButton = target.closest(".select__clear") !== null;
|
|
95
|
-
const isIconButton = target.closest("sd-7-0-0-next-
|
|
95
|
+
const isIconButton = target.closest("sd-7-0-0-next-9-icon-button") !== null;
|
|
96
96
|
if (isClearButton || isIconButton) {
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
@@ -227,8 +227,8 @@ var SdSelect = class extends SolidElement {
|
|
|
227
227
|
event.preventDefault();
|
|
228
228
|
event.stopPropagation();
|
|
229
229
|
const tagParent = (_a = event.currentTarget) == null ? void 0 : _a.parentElement;
|
|
230
|
-
const previousTag = (_b = tagParent == null ? void 0 : tagParent.previousElementSibling) == null ? void 0 : _b.querySelector("sd-7-0-0-next-
|
|
231
|
-
const nextTag = (_c = tagParent == null ? void 0 : tagParent.nextElementSibling) == null ? void 0 : _c.querySelector("sd-7-0-0-next-
|
|
230
|
+
const previousTag = (_b = tagParent == null ? void 0 : tagParent.previousElementSibling) == null ? void 0 : _b.querySelector("sd-7-0-0-next-9-tag");
|
|
231
|
+
const nextTag = (_c = tagParent == null ? void 0 : tagParent.nextElementSibling) == null ? void 0 : _c.querySelector("sd-7-0-0-next-9-tag");
|
|
232
232
|
this.handleTagRemove(new CustomEvent("sd-remove"), option);
|
|
233
233
|
this.updateComplete.then(() => {
|
|
234
234
|
if (nextTag) {
|
|
@@ -248,7 +248,7 @@ var SdSelect = class extends SolidElement {
|
|
|
248
248
|
this.handleTagRemove(new CustomEvent("sd-remove"), this.selectedOptions[this.selectedOptions.length - 1]);
|
|
249
249
|
this.updateComplete.then(() => {
|
|
250
250
|
var _a;
|
|
251
|
-
const tags = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll("sd-7-0-0-next-
|
|
251
|
+
const tags = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll("sd-7-0-0-next-9-tag");
|
|
252
252
|
if (tags && tags.length > 0) {
|
|
253
253
|
tags == null ? void 0 : tags[(tags == null ? void 0 : tags.length) - 1].focus();
|
|
254
254
|
} else {
|
|
@@ -294,7 +294,7 @@ var SdSelect = class extends SolidElement {
|
|
|
294
294
|
}
|
|
295
295
|
handleOptionClick(event) {
|
|
296
296
|
const target = event.target;
|
|
297
|
-
const option = target.closest("sd-7-0-0-next-
|
|
297
|
+
const option = target.closest("sd-7-0-0-next-9-option");
|
|
298
298
|
const oldValue = this.value;
|
|
299
299
|
if (option && !option.disabled) {
|
|
300
300
|
if (this.multiple) {
|
|
@@ -319,7 +319,7 @@ var SdSelect = class extends SolidElement {
|
|
|
319
319
|
const allOptions = this.getAllOptions();
|
|
320
320
|
const value = Array.isArray(this.value) ? this.value : [this.value];
|
|
321
321
|
const values = [];
|
|
322
|
-
if (customElements.get("sd-7-0-0-next-
|
|
322
|
+
if (customElements.get("sd-7-0-0-next-9-option")) {
|
|
323
323
|
allOptions.forEach((option) => {
|
|
324
324
|
if (this.multiple) {
|
|
325
325
|
option.checkbox = true;
|
|
@@ -328,7 +328,7 @@ var SdSelect = class extends SolidElement {
|
|
|
328
328
|
});
|
|
329
329
|
this.setSelectedOptions(allOptions.filter((el) => value.includes(el.value)));
|
|
330
330
|
} else {
|
|
331
|
-
customElements.whenDefined("sd-7-0-0-next-
|
|
331
|
+
customElements.whenDefined("sd-7-0-0-next-9-option").then(() => this.handleDefaultSlotChange());
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
handleTagRemove(event, option) {
|
|
@@ -345,13 +345,13 @@ var SdSelect = class extends SolidElement {
|
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
// Gets an array of all <sd-7-0-0-next-
|
|
348
|
+
// Gets an array of all <sd-7-0-0-next-9-option> elements
|
|
349
349
|
getAllOptions() {
|
|
350
|
-
return [...this.querySelectorAll("sd-7-0-0-next-
|
|
350
|
+
return [...this.querySelectorAll("sd-7-0-0-next-9-option")];
|
|
351
351
|
}
|
|
352
|
-
// Gets the first <sd-7-0-0-next-
|
|
352
|
+
// Gets the first <sd-7-0-0-next-9-option> element
|
|
353
353
|
getFirstOption() {
|
|
354
|
-
return this.querySelector("sd-7-0-0-next-
|
|
354
|
+
return this.querySelector("sd-7-0-0-next-9-option");
|
|
355
355
|
}
|
|
356
356
|
// Sets the current option, which is the option the user is currently interacting with (e.g. via keyboard). Only one
|
|
357
357
|
// option may be "current" at a time.
|
|
@@ -450,11 +450,11 @@ var SdSelect = class extends SolidElement {
|
|
|
450
450
|
});
|
|
451
451
|
} else {
|
|
452
452
|
return [
|
|
453
|
-
html`<sd-7-0-0-next-
|
|
453
|
+
html`<sd-7-0-0-next-9-tag class="z-10 min-w-0 max-w-full" ?disabled="${this.disabled}" part="tag" exportparts="
|
|
454
454
|
base:tag__base,
|
|
455
455
|
content:tag__content,
|
|
456
456
|
removable-indicator:tag__removable-indicator,
|
|
457
|
-
" 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-7-0-0-next-
|
|
457
|
+
" 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-7-0-0-next-9-tag>`
|
|
458
458
|
];
|
|
459
459
|
}
|
|
460
460
|
}
|
|
@@ -463,7 +463,7 @@ var SdSelect = class extends SolidElement {
|
|
|
463
463
|
this.formControlController.emitInvalidEvent(event);
|
|
464
464
|
this.invalidMessage.textContent = event.target.validationMessage;
|
|
465
465
|
}
|
|
466
|
-
/** Receives incoming event detail from sd-7-0-0-next-
|
|
466
|
+
/** Receives incoming event detail from sd-7-0-0-next-9-popup and updates local state for conditional styling. */
|
|
467
467
|
handleCurrentPlacement(e) {
|
|
468
468
|
const incomingPlacement = e.detail;
|
|
469
469
|
if (incomingPlacement) {
|
|
@@ -472,7 +472,7 @@ var SdSelect = class extends SolidElement {
|
|
|
472
472
|
}
|
|
473
473
|
handleUseTagsChange() {
|
|
474
474
|
const allOptions = this.getAllOptions();
|
|
475
|
-
if (customElements.get("sd-7-0-0-next-
|
|
475
|
+
if (customElements.get("sd-7-0-0-next-9-option")) {
|
|
476
476
|
allOptions.forEach((option) => {
|
|
477
477
|
option.checkbox = this.multiple;
|
|
478
478
|
});
|
|
@@ -629,7 +629,7 @@ var SdSelect = class extends SolidElement {
|
|
|
629
629
|
default: "form-control-color-border"
|
|
630
630
|
}[selectState],
|
|
631
631
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
|
632
|
-
)}"></div><sd-7-0-0-next-
|
|
632
|
+
)}"></div><sd-7-0-0-next-9-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
633
633
|
"inline-flex relative w-full",
|
|
634
634
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
|
635
635
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
@@ -656,12 +656,12 @@ var SdSelect = class extends SolidElement {
|
|
|
656
656
|
"select__clear flex justify-center",
|
|
657
657
|
iconMarginLeft,
|
|
658
658
|
this.value.length > 0 ? "visible" : "hidden"
|
|
659
|
-
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-7-0-0-next-
|
|
659
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-7-0-0-next-9-icon class="${cx("text-neutral-700 z-10", iconSize)}" library="_internal" name="closing-round"></sd-7-0-0-next-9-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-7-0-0-next-9-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize)}" library="_internal" name="risk"></sd-7-0-0-next-9-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-7-0-0-next-9-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="_internal" name="confirm-circle"></sd-7-0-0-next-9-icon>` : ""}<slot name="expand-icon" part="expand-icon" class="${cx(
|
|
660
660
|
"inline-flex ml-2 items-center transition-transform duration-medium ease-in-out",
|
|
661
661
|
this.open ? "rotate-180" : "rotate-0",
|
|
662
662
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "icon-color",
|
|
663
663
|
iconSize
|
|
664
|
-
)}"><sd-7-0-0-next-
|
|
664
|
+
)}"><sd-7-0-0-next-9-icon name="chevron-down" part="chevron" library="_internal" color="currentColor"></sd-7-0-0-next-9-icon></slot></div><button part="combobox" class="${cx(
|
|
665
665
|
"relative w-full px-4 flex flex-row items-center rounded-default focus-visible:outline-none",
|
|
666
666
|
cursorStyles,
|
|
667
667
|
this.open && "shadow transition-shadow duration-medium ease-in-out",
|
|
@@ -674,7 +674,7 @@ var SdSelect = class extends SolidElement {
|
|
|
674
674
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
|
675
675
|
this.open && "shadow-listbox transition-shadow duration-medium ease-in-out",
|
|
676
676
|
this.currentPlacement === "bottom" ? "border-r-2 border-b-2 border-l-2 form-control__listbox-border-bottom-right-radius form-control__listbox-border-bottom-left-radius" : "border-r-2 border-t-2 border-l-2 form-control__listbox-border-top-right-radius form-control__listbox-border-top-left-radius"
|
|
677
|
-
)}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-7-0-0-next-
|
|
677
|
+
)}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-7-0-0-next-9-popup></div><div class="${cx("text-sm mt-1", this.visuallyDisabled || this.disabled ? "text-neutral-500" : "text-neutral-700")}" part="form-control-help-text" id="help-text" aria-hidden="${hasHelpText ? "false" : "true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage(this.size)}`;
|
|
678
678
|
}
|
|
679
679
|
};
|
|
680
680
|
/**
|
|
@@ -683,13 +683,13 @@ var SdSelect = class extends SolidElement {
|
|
|
683
683
|
SdSelect.styles = [
|
|
684
684
|
...SolidElement.styles,
|
|
685
685
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
686
|
-
:host{position:relative;display:block;width:auto}[part=invalid-icon]{color:rgb(var(--sd-color-icon-fill-error,--sd-color-error))}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}.input-container,[part=combobox]{grid-column:1/1;grid-row:1/1}sd-7-0-0-next-
|
|
686
|
+
:host{position:relative;display:block;width:auto}[part=invalid-icon]{color:rgb(var(--sd-color-icon-fill-error,--sd-color-error))}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}.input-container,[part=combobox]{grid-column:1/1;grid-row:1/1}sd-7-0-0-next-9-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-7-0-0-next-9-tag::part(base){border-radius:var(--sd-radius);padding-inline:var(--sd-spacing-1)}sd-7-0-0-next-9-tag::part(content){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--tag-max-width,15ch)}sd-7-0-0-next-9-tag[size=lg]::part(base){padding-inline:var(--sd-spacing-2)}sd-7-0-0-next-9-tag[disabled=false]::part(base):hover{background-color:rgba(var(--sd-color-background-primary-100))}.icon-color{color:rgb(var(--sd-form-control-color-icon-fill))}`
|
|
687
687
|
];
|
|
688
688
|
__decorateClass([
|
|
689
|
-
queryAssignedElements({ selector: "sd-7-0-0-next-
|
|
689
|
+
queryAssignedElements({ selector: "sd-7-0-0-next-9-option" })
|
|
690
690
|
], SdSelect.prototype, "_optionsInDefaultSlot", 2);
|
|
691
691
|
__decorateClass([
|
|
692
|
-
query("sd-7-0-0-next-
|
|
692
|
+
query("sd-7-0-0-next-9-popup")
|
|
693
693
|
], SdSelect.prototype, "popup", 2);
|
|
694
694
|
__decorateClass([
|
|
695
695
|
query('[part="combobox"]')
|
|
@@ -817,7 +817,7 @@ __decorateClass([
|
|
|
817
817
|
watch(["size", "floatingLabel"])
|
|
818
818
|
], SdSelect.prototype, "handleSizeChange", 1);
|
|
819
819
|
SdSelect = __decorateClass([
|
|
820
|
-
customElement("sd-7-0-0-next-
|
|
820
|
+
customElement("sd-7-0-0-next-9-select")
|
|
821
821
|
], SdSelect);
|
|
822
822
|
setDefaultAnimation("select.show", {
|
|
823
823
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -55,19 +55,19 @@ var SdProgressBar = class extends SolidElement {
|
|
|
55
55
|
this.isLoading ? this.localize.term("loading") : this.valueFormatter(this.clampedValue)
|
|
56
56
|
)}" aria-label="${ifDefined(!hasLabel ? this.label || this.localize.term("progress") : void 0)}" aria-labelledby="${ifDefined(hasLabel ? "label" : this.label)}" style="${`--percentage: ${this.percentage}%;`}">${this.isLoading ? html`<div part="track" class="${cx(
|
|
57
57
|
"absolute top-0 left-0 h-full progress-bar__track--loading-left",
|
|
58
|
-
this.inverted ? "sd-7-0-0-next-
|
|
58
|
+
this.inverted ? "sd-7-0-0-next-9-progress-bar__slide-bar--inverted-color-background" : "sd-7-0-0-next-9-progress-bar__slide-bar-color-background"
|
|
59
59
|
)}"></div><div part="track" class="${cx(
|
|
60
60
|
"absolute top-0 right-0 h-full progress-bar__track--loading-right",
|
|
61
|
-
this.inverted ? "sd-7-0-0-next-
|
|
61
|
+
this.inverted ? "sd-7-0-0-next-9-progress-bar__slide-bar--inverted-color-background" : "sd-7-0-0-next-9-progress-bar__slide-bar-color-background"
|
|
62
62
|
)}"></div><div part="indicator" class="${cx(
|
|
63
63
|
"absolute top-0 h-full progress-bar__indicator--loading",
|
|
64
|
-
this.inverted ? "sd-7-0-0-next-
|
|
64
|
+
this.inverted ? "sd-7-0-0-next-9-progress-bar--active--inverted-color-background" : "bg-accent"
|
|
65
65
|
)}"></div>` : html`<div part="indicator" class="${cx(
|
|
66
66
|
"w-[var(--percentage)]",
|
|
67
|
-
this.inverted ? "sd-7-0-0-next-
|
|
67
|
+
this.inverted ? "sd-7-0-0-next-9-progress-bar--active--inverted-color-background" : "bg-accent"
|
|
68
68
|
)}"></div>${this.value && this.value > 0 && this.value < this.safeMax ? html`<div class="w-0.5 shrink-0"></div>` : nothing}<div part="track" class="${cx(
|
|
69
69
|
"flex-1",
|
|
70
|
-
this.inverted ? "sd-7-0-0-next-
|
|
70
|
+
this.inverted ? "sd-7-0-0-next-9-progress-bar__slide-bar--inverted-color-background" : "sd-7-0-0-next-9-progress-bar__slide-bar-color-background"
|
|
71
71
|
)}"></div>`}</div>${this.showValue ? html`<span class="${cx(
|
|
72
72
|
"text-neutral-700 text-xs w-shrink-0",
|
|
73
73
|
this.inverted ? "text-white" : "text-neutral-700",
|
|
@@ -103,7 +103,7 @@ __decorateClass([
|
|
|
103
103
|
property({ attribute: false })
|
|
104
104
|
], SdProgressBar.prototype, "valueFormatter", 2);
|
|
105
105
|
SdProgressBar = __decorateClass([
|
|
106
|
-
customElement("sd-7-0-0-next-
|
|
106
|
+
customElement("sd-7-0-0-next-9-progress-bar")
|
|
107
107
|
], SdProgressBar);
|
|
108
108
|
|
|
109
109
|
export {
|
|
@@ -228,7 +228,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
228
228
|
textareaState === "disabled" || textareaState === "visuallyDisabled" ? "text-neutral-500" : "text-black",
|
|
229
229
|
["invalid", "activeInvalid"].includes(textareaState) && "form-control--invalid-color-background"
|
|
230
230
|
)}"><textarea part="textarea" id="input" class="${cx(
|
|
231
|
-
"ps-4 flex-grow focus:outline-none bg-transparent placeholder:text-neutral-700 resize-none group-has-[sd-7-0-0-next-
|
|
231
|
+
"ps-4 flex-grow focus:outline-none bg-transparent placeholder:text-neutral-700 resize-none group-has-[sd-7-0-0-next-9-icon]:pe-8",
|
|
232
232
|
{
|
|
233
233
|
sm: isFloatingLabelActive ? "pb-1" : "py-2",
|
|
234
234
|
md: isFloatingLabelActive ? "pb-1" : "py-2",
|
|
@@ -236,7 +236,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
236
236
|
}[this.size],
|
|
237
237
|
this.disabled && "cursor-not-allowed",
|
|
238
238
|
textSize
|
|
239
|
-
)}" title="${this.title}" name="${ifDefined(this.name)}" .value="${live(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${!this.floatingLabel || isFloatingLabelActive ? ifDefined(this.placeholder) : ""}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect === void 0 ? void 0 : this.autocorrect ? "on" : "off")}" ?autofocus="${this.autofocus}" spellcheck="${ifDefined(this.spellcheck)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled || this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle ? html`<sd-7-0-0-next-
|
|
239
|
+
)}" title="${this.title}" name="${ifDefined(this.name)}" .value="${live(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${!this.floatingLabel || isFloatingLabelActive ? ifDefined(this.placeholder) : ""}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect === void 0 ? void 0 : this.autocorrect ? "on" : "off")}" ?autofocus="${this.autofocus}" spellcheck="${ifDefined(this.spellcheck)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled || this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle ? html`<sd-7-0-0-next-9-icon class="${cx("text-error absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="risk" part="invalid-icon"></sd-7-0-0-next-9-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-7-0-0-next-9-icon class="${cx("text-success absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-7-0-0-next-9-icon>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx(
|
|
240
240
|
"text-sm mt-1",
|
|
241
241
|
hasHelpText && !this.showInvalidStyle ? "block" : "hidden",
|
|
242
242
|
this.visuallyDisabled || this.disabled ? "text-neutral-500" : "text-neutral-700"
|
|
@@ -369,7 +369,7 @@ __decorateClass([
|
|
|
369
369
|
watch(["size", "floatingLabel"])
|
|
370
370
|
], SdTextarea.prototype, "handleSizeChange", 1);
|
|
371
371
|
SdTextarea = __decorateClass([
|
|
372
|
-
customElement("sd-7-0-0-next-
|
|
372
|
+
customElement("sd-7-0-0-next-9-textarea")
|
|
373
373
|
], SdTextarea);
|
|
374
374
|
|
|
375
375
|
export {
|
|
@@ -37,8 +37,8 @@ var SdTabGroup = class extends SolidElement {
|
|
|
37
37
|
}
|
|
38
38
|
connectedCallback() {
|
|
39
39
|
const whenAllDefined = Promise.all([
|
|
40
|
-
customElements.whenDefined("sd-7-0-0-next-
|
|
41
|
-
customElements.whenDefined("sd-7-0-0-next-
|
|
40
|
+
customElements.whenDefined("sd-7-0-0-next-9-tab"),
|
|
41
|
+
customElements.whenDefined("sd-7-0-0-next-9-tab-panel")
|
|
42
42
|
]);
|
|
43
43
|
super.connectedCallback();
|
|
44
44
|
this.resizeObserver = new ResizeObserver(() => {
|
|
@@ -86,20 +86,20 @@ var SdTabGroup = class extends SolidElement {
|
|
|
86
86
|
}
|
|
87
87
|
getAllTabs(options = { includeDisabled: true }) {
|
|
88
88
|
const slot = this.shadowRoot.querySelector('slot[name="nav"]');
|
|
89
|
-
return Array.from(slot.assignedElements()).map((el) => el.tagName.toLocaleLowerCase() === "sd-7-0-0-next-
|
|
90
|
-
return el && options.includeDisabled ? el.tagName.toLowerCase() === "sd-7-0-0-next-
|
|
89
|
+
return Array.from(slot.assignedElements()).map((el) => el.tagName.toLocaleLowerCase() === "sd-7-0-0-next-9-tab" ? el : el.querySelector("sd-7-0-0-next-9-tab")).filter((el) => {
|
|
90
|
+
return el && options.includeDisabled ? el.tagName.toLowerCase() === "sd-7-0-0-next-9-tab" : el.tagName.toLowerCase() === "sd-7-0-0-next-9-tab" && !el.disabled;
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
getAllPanels() {
|
|
94
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-7-0-0-next-
|
|
94
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-7-0-0-next-9-tab-panel");
|
|
95
95
|
}
|
|
96
96
|
getActiveTab() {
|
|
97
97
|
return this.tabs.find((t) => t.matches(":focus"));
|
|
98
98
|
}
|
|
99
99
|
handleClick(event) {
|
|
100
100
|
const target = event.target;
|
|
101
|
-
const tab = target.closest("sd-7-0-0-next-
|
|
102
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-7-0-0-next-
|
|
101
|
+
const tab = target.closest("sd-7-0-0-next-9-tab");
|
|
102
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-7-0-0-next-9-tab-group");
|
|
103
103
|
if (tabGroup !== this) {
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
@@ -109,8 +109,8 @@ var SdTabGroup = class extends SolidElement {
|
|
|
109
109
|
}
|
|
110
110
|
handleKeyDown(event) {
|
|
111
111
|
const target = event.target;
|
|
112
|
-
const tab = target.closest("sd-7-0-0-next-
|
|
113
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-7-0-0-next-
|
|
112
|
+
const tab = target.closest("sd-7-0-0-next-9-tab");
|
|
113
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-7-0-0-next-9-tab-group");
|
|
114
114
|
if (tabGroup !== this) {
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
@@ -137,7 +137,7 @@ var SdTabGroup = class extends SolidElement {
|
|
|
137
137
|
if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)) {
|
|
138
138
|
const activeEl = this.tabs.find((t) => t.matches(":focus"));
|
|
139
139
|
const isRtl = this.localize.dir() === "rtl";
|
|
140
|
-
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-7-0-0-next-
|
|
140
|
+
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-7-0-0-next-9-tab") {
|
|
141
141
|
let index = this.tabs.indexOf(activeEl);
|
|
142
142
|
if (event.key === "Home") {
|
|
143
143
|
index = 0;
|
|
@@ -258,16 +258,16 @@ var SdTabGroup = class extends SolidElement {
|
|
|
258
258
|
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" disabled="${ifDefined(!this.canScroll.left || void 0)}" class="${cx(
|
|
259
259
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
260
260
|
this.localize.dir() === "rtl" && "left-auto right-0"
|
|
261
|
-
)}" @click="${this.handleScrollToStart}"><sd-7-0-0-next-
|
|
261
|
+
)}" @click="${this.handleScrollToStart}"><sd-7-0-0-next-9-icon library="_internal" name="${isRtl ? "chevron-up" : "chevron-down"}" label="previous" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-7-0-0-next-9-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">${((_a = this.activeTab) == null ? void 0 : _a.variant) !== "container" ? html`<div part="active-tab-indicator" id="indicator" class="absolute h-1 bg-accent bottom-0 transition-[transform,width] duration-medium ease-in-out z-30 navigable__current-indicator-height navigable__current-indicator-border-radius"></div>` : ""}<div part="separation" class="border-neutral-400 absolute w-full h-0.25 bottom-0 border-b z-10"></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" disabled="${ifDefined(!this.canScroll.right || void 0)}" class="${cx(
|
|
262
262
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
263
263
|
this.localize.dir() === "rtl" && "right-auto left-0"
|
|
264
|
-
)}" @click="${this.handleScrollToEnd}"><sd-7-0-0-next-
|
|
264
|
+
)}" @click="${this.handleScrollToEnd}"><sd-7-0-0-next-9-icon library="_internal" name="${isRtl ? "chevron-down" : "chevron-up"}" label="next" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-7-0-0-next-9-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>`;
|
|
265
265
|
}
|
|
266
266
|
};
|
|
267
267
|
SdTabGroup.styles = [
|
|
268
268
|
...SolidElement.styles,
|
|
269
269
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
270
|
-
:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:0;width:0}::slotted(sd-7-0-0-next-
|
|
270
|
+
:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:0;width:0}::slotted(sd-7-0-0-next-9-tab-panel){--padding:1rem 0}::slotted(sd-7-0-0-next-9-tab-panel:focus-visible){outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:var(--outline-color-primary)}`
|
|
271
271
|
];
|
|
272
272
|
__decorateClass([
|
|
273
273
|
query("[part=base]")
|
|
@@ -300,7 +300,7 @@ __decorateClass([
|
|
|
300
300
|
debounce(20)
|
|
301
301
|
], SdTabGroup.prototype, "handleScroll", 1);
|
|
302
302
|
SdTabGroup = __decorateClass([
|
|
303
|
-
customElement("sd-7-0-0-next-
|
|
303
|
+
customElement("sd-7-0-0-next-9-tab-group")
|
|
304
304
|
], SdTabGroup);
|
|
305
305
|
|
|
306
306
|
export {
|
|
@@ -420,14 +420,14 @@ var SdInput = class extends SolidElement {
|
|
|
420
420
|
!isFloatingLabelActive || !hasValue && (this.readonly || this.visuallyDisabled) ? textSize : "text-xs",
|
|
421
421
|
(this.visuallyDisabled || this.disabled) && "text-neutral-500",
|
|
422
422
|
isFloatingLabelActive && !this.visuallyDisabled && !this.disabled && "form-control--filled__floating-label-color-text"
|
|
423
|
-
)}">${this.label}</span></label>` : null} ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-7-0-0-next-
|
|
423
|
+
)}">${this.label}</span></label>` : null} ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-7-0-0-next-9-icon class="${cx(
|
|
424
424
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-neutral-700",
|
|
425
425
|
iconSize
|
|
426
|
-
)}" library="_internal" name="closing-round"></sd-7-0-0-next-
|
|
426
|
+
)}" library="_internal" name="closing-round"></sd-7-0-0-next-9-icon></slot></button>` : ""} ${this.passwordToggle && this.type === "password" ? html`<button aria-label="${this.localize.term(this.passwordVisible ? "hidePassword" : "showPassword")}" part="password-toggle-button" class="${cx(
|
|
427
427
|
"flex items-center sd-interactive",
|
|
428
428
|
iconMarginLeft,
|
|
429
429
|
this.floatingLabel && !isFloatingLabelActive && "hide-password-toggle"
|
|
430
|
-
)}" type="button" @click="${this.handlePasswordToggle}" @mousedown="${this.handleClickableIconFocusIn}" @focus="${() => this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}">${this.passwordVisible ? html`<slot name="show-password-icon"><sd-7-0-0-next-
|
|
430
|
+
)}" type="button" @click="${this.handlePasswordToggle}" @mousedown="${this.handleClickableIconFocusIn}" @focus="${() => this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}">${this.passwordVisible ? html`<slot name="show-password-icon"><sd-7-0-0-next-9-icon class="${cx(iconColor, iconSize)}" library="_internal" name="eye"></sd-7-0-0-next-9-icon></slot>` : html`<slot name="hide-password-icon"><sd-7-0-0-next-9-icon class="${cx(iconColor, iconSize)}" library="_internal" name="eye-crossed-out"></sd-7-0-0-next-9-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-7-0-0-next-9-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="_internal" name="calendar"></sd-7-0-0-next-9-icon>` : ""} ${this.type === "time" ? html`<sd-7-0-0-next-9-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="_internal" name="clock"></sd-7-0-0-next-9-icon>` : ""} ${this.type === "search" ? html`<button class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button" @click="${this.handleSearchClick}"><sd-7-0-0-next-9-icon class="${cx(iconColor, iconSize)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-7-0-0-next-9-icon></button>` : ""} ${this.showInvalidStyle ? html`<sd-7-0-0-next-9-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="_internal" name="risk"></sd-7-0-0-next-9-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-7-0-0-next-9-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-7-0-0-next-9-icon>` : ""} ${slots["right"] ? html`<slot name="right" part="right" class="${cx("inline-flex", iconColor, iconMarginLeft, iconSize)}"></slot>` : ""} ${this.type === "number" && this.spinButtons ? html`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepDown(), end: () => this.handleChange() })} tabindex="-1" @mousedown="${this.handleClickableIconFocusIn}" @focus="${() => this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}"><slot name="decrement-number-stepper"><sd-7-0-0-next-9-icon library="_internal" name="minus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-7-0-0-next-9-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange() })} tabindex="-1"><slot name="increment-number-stepper"><sd-7-0-0-next-9-icon library="_internal" name="plus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-7-0-0-next-9-icon></slot></button></div>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx(
|
|
431
431
|
"text-sm mt-1",
|
|
432
432
|
hasHelpText && !this.showInvalidStyle ? "block" : "hidden",
|
|
433
433
|
this.visuallyDisabled || this.disabled ? "text-neutral-500" : "text-neutral-700"
|
|
@@ -440,7 +440,7 @@ var SdInput = class extends SolidElement {
|
|
|
440
440
|
SdInput.styles = [
|
|
441
441
|
...SolidElement.styles,
|
|
442
442
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
443
|
-
:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) :is(#label,#floating-label)::after{content:' *'}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0;display:none;-webkit-appearance:none}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-7-0-0-next-
|
|
443
|
+
:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) :is(#label,#floating-label)::after{content:' *'}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0;display:none;-webkit-appearance:none}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-7-0-0-next-9-icon{color:rgba(var(--sd-color-text-neutral-500))}.hide-password-toggle{display:none}.has-floating-label input[type=date]:not(.has-value),.has-floating-label input[type=datetime-local]:not(.has-value),.has-floating-label input[type=time]:not(.has-value){color:transparent}.has-floating-label input[type=date]:focus,.has-floating-label input[type=datetime-local]:focus,.has-floating-label input[type=time]:focus{color:inherit}.icon-color{color:rgba(var(--sd-form-control-color-icon-fill))}`
|
|
444
444
|
];
|
|
445
445
|
__decorateClass([
|
|
446
446
|
query("#input")
|
|
@@ -587,7 +587,7 @@ __decorateClass([
|
|
|
587
587
|
watch(["size", "floatingLabel"])
|
|
588
588
|
], SdInput.prototype, "handleSizeChange", 1);
|
|
589
589
|
SdInput = __decorateClass([
|
|
590
|
-
customElement("sd-7-0-0-next-
|
|
590
|
+
customElement("sd-7-0-0-next-9-input")
|
|
591
591
|
], SdInput);
|
|
592
592
|
|
|
593
593
|
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-7-0-0-next-
|
|
21
|
+
this.componentId = `sd-7-0-0-next-9-tab-panel-${this.attrId}`;
|
|
22
22
|
this.name = "";
|
|
23
23
|
this.active = false;
|
|
24
24
|
}
|
|
@@ -49,7 +49,7 @@ __decorateClass([
|
|
|
49
49
|
watch("active")
|
|
50
50
|
], SdTabPanel.prototype, "handleActiveChange", 1);
|
|
51
51
|
SdTabPanel = __decorateClass([
|
|
52
|
-
customElement("sd-7-0-0-next-
|
|
52
|
+
customElement("sd-7-0-0-next-9-tab-panel")
|
|
53
53
|
], SdTabPanel);
|
|
54
54
|
|
|
55
55
|
export {
|
|
@@ -20,7 +20,7 @@ var SdRangeTick = class extends SolidElement {
|
|
|
20
20
|
this.subtick = false;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return html`<div part="base" class="${cx(this.subtick ? "w-0.25" : "w-0.5")}"><div part="line" class="${cx(this.subtick ? "h-2" : "h-[10px]")}"></div><div part="label" class="flex items-center justify-center text-center text-nowrap text-sm sd-7-0-0-next-
|
|
23
|
+
return html`<div part="base" class="${cx(this.subtick ? "w-0.25" : "w-0.5")}"><div part="line" class="${cx(this.subtick ? "h-2" : "h-[10px]")}"></div><div part="label" class="flex items-center justify-center text-center text-nowrap text-sm sd-7-0-0-next-9-range-scale-ticks-color-text"><slot></slot></div></div>`;
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
SdRangeTick.styles = [
|
|
@@ -32,7 +32,7 @@ __decorateClass([
|
|
|
32
32
|
property({ type: Boolean, reflect: true })
|
|
33
33
|
], SdRangeTick.prototype, "subtick", 2);
|
|
34
34
|
SdRangeTick = __decorateClass([
|
|
35
|
-
customElement("sd-7-0-0-next-
|
|
35
|
+
customElement("sd-7-0-0-next-9-range-tick")
|
|
36
36
|
], SdRangeTick);
|
|
37
37
|
|
|
38
38
|
export {
|
|
@@ -24,7 +24,7 @@ var SdTab = class extends SolidElement {
|
|
|
24
24
|
constructor() {
|
|
25
25
|
super(...arguments);
|
|
26
26
|
this.attrId = ++id;
|
|
27
|
-
this.componentId = `sd-7-0-0-next-
|
|
27
|
+
this.componentId = `sd-7-0-0-next-9-tab-${this.attrId}`;
|
|
28
28
|
this.hasSlotController = new HasSlotController(this, "left");
|
|
29
29
|
this.localize = new LocalizeController(this);
|
|
30
30
|
this.variant = "default";
|
|
@@ -62,17 +62,17 @@ var SdTab = class extends SolidElement {
|
|
|
62
62
|
"outline-hidden focus-visible:focus-outline outline-2 !-outline-offset-2 transition-all duration-fast ease-in-out",
|
|
63
63
|
this.variant === "container" ? "tab-container-border bg-white rounded-[4px_4px_0_0]" : "navigable-border-radius",
|
|
64
64
|
this.variant === "container" && this.active && "tab--active-container-border bg-white",
|
|
65
|
-
this.disabled || this.visuallyDisabled ? "!cursor-not-allowed" : "hover:sd-7-0-0-next-
|
|
66
|
-
this.active && "z-20 sd-7-0-0-next-
|
|
65
|
+
this.disabled || this.visuallyDisabled ? "!cursor-not-allowed" : "hover:sd-7-0-0-next-9-tab--hover-color-background",
|
|
66
|
+
this.active && "z-20 sd-7-0-0-next-9-tab--active-color-text"
|
|
67
67
|
)}" tabindex="${!this.active || this.disabled ? "-1" : "0"}"><div class="${cx("flex h-full items-center justify-center whitespace-nowrap")}"><slot name="left" class="${cx(
|
|
68
68
|
slots.left && "block pr-2",
|
|
69
|
-
this.disabled || this.visuallyDisabled ? "sd-7-0-0-next-
|
|
69
|
+
this.disabled || this.visuallyDisabled ? "sd-7-0-0-next-9-tab--disabled-color-text" : this.active ? "sd-7-0-0-next-9-tab--active-color-text" : "sd-7-0-0-next-9-tab-color-text"
|
|
70
70
|
)}"></slot><slot class="${cx(
|
|
71
|
-
this.disabled || this.visuallyDisabled ? "sd-7-0-0-next-
|
|
71
|
+
this.disabled || this.visuallyDisabled ? "sd-7-0-0-next-9-tab--disabled-color-text" : this.active ? "sd-7-0-0-next-9-tab--active-color-text" : "sd-7-0-0-next-9-tab-color-text"
|
|
72
72
|
)}"></slot>${this.variant === "container" ? html`<div part="active-tab-indicator" class="${cx(
|
|
73
73
|
"absolute bottom-0 h-1 bg-accent w-3/4 bottom-0 group-hover:w-[calc(100%-2px)] navigable__current-indicator-height navigable__current-indicator-border-radius"
|
|
74
74
|
)}"></div>` : ""}<div part="hover-bottom-border" class="${cx(
|
|
75
|
-
!this.active && !this.disabled && "absolute bottom-0 left-0 w-full h-0.25 border-b sd-7-0-0-next-
|
|
75
|
+
!this.active && !this.disabled && "absolute bottom-0 left-0 w-full h-0.25 border-b sd-7-0-0-next-9-tab-color-border"
|
|
76
76
|
)}"></div></div></div>`;
|
|
77
77
|
}
|
|
78
78
|
};
|
|
@@ -109,7 +109,7 @@ __decorateClass([
|
|
|
109
109
|
watch(["disabled", "visually-disabled"])
|
|
110
110
|
], SdTab.prototype, "handleDisabledChange", 1);
|
|
111
111
|
SdTab = __decorateClass([
|
|
112
|
-
customElement("sd-7-0-0-next-
|
|
112
|
+
customElement("sd-7-0-0-next-9-tab")
|
|
113
113
|
], SdTab);
|
|
114
114
|
|
|
115
115
|
export {
|
|
@@ -91,14 +91,14 @@ var SdOption = class extends SolidElement {
|
|
|
91
91
|
this.disabled && "border-neutral-500 top-1",
|
|
92
92
|
!this.disabled && this.hasHover ? "h-full top-0" : "top-1"
|
|
93
93
|
)}"></span> ${this.checkbox ? html`<span id="control" part="control ${this.selected ? " control--checked" : "control--unchecked"}" class="${cx(
|
|
94
|
-
"relative flex flex-shrink-0 items-center justify-center border sd-7-0-0-next-
|
|
94
|
+
"relative flex flex-shrink-0 items-center justify-center border sd-7-0-0-next-9-checkbox-border-width rounded-sm h-4 w-4 mr-2",
|
|
95
95
|
{
|
|
96
96
|
sm: "mt-0.5",
|
|
97
97
|
md: "mt-1",
|
|
98
98
|
lg: "mt-1"
|
|
99
99
|
}[this.size],
|
|
100
|
-
this.disabled ? "sd-7-0-0-next-
|
|
101
|
-
)}">${this.selected ? html`<sd-7-0-0-next-
|
|
100
|
+
this.disabled ? "sd-7-0-0-next-9-option--disabled-color-border" : this.selected ? "bg-accent border-accent" : "bg-white form-control-color-border"
|
|
101
|
+
)}">${this.selected ? html`<sd-7-0-0-next-9-icon part="checked-icon" class="text-white w-3 h-3" library="_internal" name="status-check"></sd-7-0-0-next-9-icon>` : ""}</span>` : ""} ${slots["left"] ? html`<slot name="left" part="left" class="inline-flex mr-2"></slot>` : ""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${slots["right"] ? html`<slot name="right" part="right" class="inline-flex ml-2"></slot>` : ""}</div>`;
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
/**
|
|
@@ -107,7 +107,7 @@ var SdOption = class extends SolidElement {
|
|
|
107
107
|
SdOption.styles = [
|
|
108
108
|
...SolidElement.styles,
|
|
109
109
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
110
|
-
:host{position:relative;display:block;width:100%;--tw-outline-style:none!important;outline-style:none!important}.focus-outline-offset{outline-offset:-2px}.sd-7-0-0-next-
|
|
110
|
+
:host{position:relative;display:block;width:100%;--tw-outline-style:none!important;outline-style:none!important}.focus-outline-offset{outline-offset:-2px}.sd-7-0-0-next-9-option--disabled-color-border{border-color:rgb(var(--sd-option--disabled-color-border))}`
|
|
111
111
|
];
|
|
112
112
|
__decorateClass([
|
|
113
113
|
query('[part="base"]')
|
|
@@ -146,7 +146,7 @@ __decorateClass([
|
|
|
146
146
|
watch("value")
|
|
147
147
|
], SdOption.prototype, "handleValueChange", 1);
|
|
148
148
|
SdOption = __decorateClass([
|
|
149
|
-
customElement("sd-7-0-0-next-
|
|
149
|
+
customElement("sd-7-0-0-next-9-option")
|
|
150
150
|
], SdOption);
|
|
151
151
|
|
|
152
152
|
export {
|
|
@@ -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-7-0-0-next-
|
|
20
|
+
button == null ? void 0 : button.classList.add("sd-7-0-0-next-9-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-7-0-0-next-
|
|
24
|
+
button == null ? void 0 : button.classList.remove("sd-7-0-0-next-9-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-7-0-0-next-
|
|
28
|
+
button == null ? void 0 : button.classList.add("sd-7-0-0-next-9-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-7-0-0-next-
|
|
32
|
+
button == null ? void 0 : button.classList.remove("sd-7-0-0-next-9-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-7-0-0-next-
|
|
41
|
-
button.classList.toggle("sd-7-0-0-next-
|
|
42
|
-
button.classList.toggle("sd-7-0-0-next-
|
|
43
|
-
button.classList.toggle("sd-7-0-0-next-
|
|
44
|
-
button.classList.toggle("sd-7-0-0-next-
|
|
40
|
+
button.classList.add("sd-7-0-0-next-9-button-group__button");
|
|
41
|
+
button.classList.toggle("sd-7-0-0-next-9-button-group__button--first", index === 0);
|
|
42
|
+
button.classList.toggle("sd-7-0-0-next-9-button-group__button--inner", index > 0 && index < slottedElements.length - 1);
|
|
43
|
+
button.classList.toggle("sd-7-0-0-next-9-button-group__button--last", index === slottedElements.length - 1);
|
|
44
|
+
button.classList.toggle("sd-7-0-0-next-9-button-group__button--radio", button.tagName.toLowerCase() === "sd-7-0-0-next-9-radio-button");
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
}
|
|
@@ -64,11 +64,11 @@ __decorateClass([
|
|
|
64
64
|
property({ type: String, reflect: true })
|
|
65
65
|
], SdButtonGroup.prototype, "label", 2);
|
|
66
66
|
SdButtonGroup = __decorateClass([
|
|
67
|
-
customElement("sd-7-0-0-next-
|
|
67
|
+
customElement("sd-7-0-0-next-9-button-group")
|
|
68
68
|
], SdButtonGroup);
|
|
69
69
|
function findButton(el) {
|
|
70
70
|
var _a;
|
|
71
|
-
const selector = "sd-7-0-0-next-
|
|
71
|
+
const selector = "sd-7-0-0-next-9-button, sd-7-0-0-next-9-radio-button";
|
|
72
72
|
return (_a = el.closest(selector)) != null ? _a : el.querySelector(selector);
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -57,13 +57,13 @@ var SdTeaser = class extends SolidElement {
|
|
|
57
57
|
"teaser-has-headline": this.hasSlotController.test("headline")
|
|
58
58
|
};
|
|
59
59
|
return html`<div class="${cx(
|
|
60
|
-
"flex sd-7-0-0-next-
|
|
60
|
+
"flex sd-7-0-0-next-9-teaser-border-radius",
|
|
61
61
|
{
|
|
62
62
|
white: "bg-white",
|
|
63
|
-
"white border-neutral-400": "bg-white border sd-7-0-0-next-
|
|
64
|
-
"neutral-100": "sd-7-0-0-next-
|
|
63
|
+
"white border-neutral-400": "bg-white border sd-7-0-0-next-9-teaser--neutral-400-color-border",
|
|
64
|
+
"neutral-100": "sd-7-0-0-next-9-teaser--neutral-100-color-background",
|
|
65
65
|
primary: "bg-primary text-white",
|
|
66
|
-
"primary-100": "sd-7-0-0-next-
|
|
66
|
+
"primary-100": "sd-7-0-0-next-9-teaser--primary-100-color-background"
|
|
67
67
|
}[this.variant],
|
|
68
68
|
this._orientation === "vertical" && "flex-col",
|
|
69
69
|
this._orientation === "horizontal" && "flex-row gap-8",
|
|
@@ -105,7 +105,7 @@ __decorateClass([
|
|
|
105
105
|
state()
|
|
106
106
|
], SdTeaser.prototype, "_orientation", 2);
|
|
107
107
|
SdTeaser = __decorateClass([
|
|
108
|
-
customElement("sd-7-0-0-next-
|
|
108
|
+
customElement("sd-7-0-0-next-9-teaser")
|
|
109
109
|
], SdTeaser);
|
|
110
110
|
|
|
111
111
|
export {
|