@solid-design-system/components 3.3.1 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/es/scrollable.js +1 -0
- package/dist/components/es/solid-components2.js +1 -1
- package/dist/components/es/solid-element.js +3 -3
- package/dist/components/umd/solid-components.js +20 -20
- package/dist/custom-elements.json +1 -1
- package/dist/package/components/scrollable/scrollable.d.ts +28 -0
- package/dist/package/components/scrollable/scrollable.js +156 -0
- package/dist/package/solid-components.d.ts +1 -0
- package/dist/package/solid-components.js +26 -24
- package/dist/package/styles/tailwind.css.js +1 -1
- package/dist/versioned-components/es/accordion-group.js +1 -1
- package/dist/versioned-components/es/accordion.js +1 -1
- package/dist/versioned-components/es/badge.js +1 -1
- package/dist/versioned-components/es/brandshape.js +1 -1
- package/dist/versioned-components/es/button.js +1 -1
- package/dist/versioned-components/es/carousel-item.js +1 -1
- package/dist/versioned-components/es/carousel.js +3 -3
- package/dist/versioned-components/es/checkbox-group.js +1 -1
- package/dist/versioned-components/es/checkbox.js +1 -1
- package/dist/versioned-components/es/dialog.js +1 -1
- package/dist/versioned-components/es/divider.js +1 -1
- package/dist/versioned-components/es/drawer.js +1 -1
- package/dist/versioned-components/es/dropdown.js +1 -1
- package/dist/versioned-components/es/form.js +1 -1
- package/dist/versioned-components/es/header.js +1 -1
- package/dist/versioned-components/es/icon.js +1 -1
- package/dist/versioned-components/es/include.js +1 -1
- package/dist/versioned-components/es/input.js +1 -1
- package/dist/versioned-components/es/link.js +1 -1
- package/dist/versioned-components/es/map-marker.js +1 -1
- package/dist/versioned-components/es/navigation-item.js +1 -1
- package/dist/versioned-components/es/notification.js +1 -1
- package/dist/versioned-components/es/option.js +1 -1
- package/dist/versioned-components/es/popup.js +1 -1
- package/dist/versioned-components/es/radio-button.js +1 -1
- package/dist/versioned-components/es/radio-group.js +1 -1
- package/dist/versioned-components/es/radio.js +1 -1
- package/dist/versioned-components/es/scrollable.js +1 -0
- package/dist/versioned-components/es/select.js +3 -3
- package/dist/versioned-components/es/solid-components2.js +1 -1
- package/dist/versioned-components/es/solid-element.js +3 -3
- package/dist/versioned-components/es/spinner.js +1 -1
- package/dist/versioned-components/es/switch.js +1 -1
- package/dist/versioned-components/es/tab-group.js +1 -1
- package/dist/versioned-components/es/tab-panel.js +1 -1
- package/dist/versioned-components/es/tab.js +1 -1
- package/dist/versioned-components/es/tag.js +1 -1
- package/dist/versioned-components/es/teaser-media.js +1 -1
- package/dist/versioned-components/es/teaser.js +1 -1
- package/dist/versioned-components/es/textarea.js +1 -1
- package/dist/versioned-components/es/tooltip.js +2 -2
- package/dist/versioned-components/es/video.js +1 -1
- package/dist/versioned-package/_components/button-group/button-group.d.ts +1 -1
- package/dist/versioned-package/_components/button-group/button-group.js +11 -11
- package/dist/versioned-package/components/accordion/accordion.d.ts +1 -1
- package/dist/versioned-package/components/accordion/accordion.js +2 -2
- package/dist/versioned-package/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist/versioned-package/components/accordion-group/accordion-group.js +3 -3
- package/dist/versioned-package/components/badge/badge.d.ts +1 -1
- package/dist/versioned-package/components/badge/badge.js +1 -1
- package/dist/versioned-package/components/brandshape/brandshape.d.ts +1 -1
- package/dist/versioned-package/components/brandshape/brandshape.js +1 -1
- package/dist/versioned-package/components/button/button.d.ts +1 -1
- package/dist/versioned-package/components/button/button.js +4 -4
- package/dist/versioned-package/components/carousel/carousel.d.ts +1 -1
- package/dist/versioned-package/components/carousel/carousel.js +6 -6
- package/dist/versioned-package/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist/versioned-package/components/carousel-item/carousel-item.js +1 -1
- package/dist/versioned-package/components/checkbox/checkbox.d.ts +1 -1
- package/dist/versioned-package/components/checkbox/checkbox.js +3 -3
- package/dist/versioned-package/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist/versioned-package/components/checkbox-group/checkbox-group.js +5 -5
- package/dist/versioned-package/components/dialog/dialog.d.ts +1 -1
- package/dist/versioned-package/components/dialog/dialog.js +2 -2
- package/dist/versioned-package/components/divider/divider.d.ts +1 -1
- package/dist/versioned-package/components/divider/divider.js +2 -2
- package/dist/versioned-package/components/drawer/drawer.d.ts +1 -1
- package/dist/versioned-package/components/drawer/drawer.js +2 -2
- package/dist/versioned-package/components/dropdown/dropdown.d.ts +1 -1
- package/dist/versioned-package/components/dropdown/dropdown.js +8 -8
- package/dist/versioned-package/components/header/header.d.ts +1 -1
- package/dist/versioned-package/components/header/header.js +4 -4
- package/dist/versioned-package/components/icon/icon.d.ts +1 -1
- package/dist/versioned-package/components/icon/icon.js +1 -1
- package/dist/versioned-package/components/include/include.d.ts +1 -1
- package/dist/versioned-package/components/include/include.js +1 -1
- package/dist/versioned-package/components/input/input.d.ts +1 -1
- package/dist/versioned-package/components/input/input.js +2 -2
- package/dist/versioned-package/components/link/link.d.ts +1 -1
- package/dist/versioned-package/components/link/link.js +2 -2
- package/dist/versioned-package/components/map-marker/map-marker.d.ts +1 -1
- package/dist/versioned-package/components/map-marker/map-marker.js +1 -1
- package/dist/versioned-package/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist/versioned-package/components/navigation-item/navigation-item.js +3 -3
- package/dist/versioned-package/components/notification/notification.d.ts +1 -1
- package/dist/versioned-package/components/notification/notification.js +5 -5
- package/dist/versioned-package/components/option/option.d.ts +1 -1
- package/dist/versioned-package/components/option/option.js +2 -2
- package/dist/versioned-package/components/popup/popup.d.ts +1 -1
- package/dist/versioned-package/components/popup/popup.js +1 -1
- package/dist/versioned-package/components/radio/radio.d.ts +1 -1
- package/dist/versioned-package/components/radio/radio.js +2 -2
- package/dist/versioned-package/components/radio-button/radio-button.d.ts +1 -1
- package/dist/versioned-package/components/radio-button/radio-button.js +2 -2
- package/dist/versioned-package/components/radio-group/radio-group.d.ts +2 -2
- package/dist/versioned-package/components/radio-group/radio-group.js +13 -13
- package/dist/versioned-package/components/scrollable/scrollable.d.ts +28 -0
- package/dist/versioned-package/components/scrollable/scrollable.js +156 -0
- package/dist/versioned-package/components/select/select.d.ts +4 -4
- package/dist/versioned-package/components/select/select.js +25 -25
- package/dist/versioned-package/components/spinner/spinner.d.ts +1 -1
- package/dist/versioned-package/components/spinner/spinner.js +1 -1
- package/dist/versioned-package/components/switch/switch.d.ts +1 -1
- package/dist/versioned-package/components/switch/switch.js +1 -1
- package/dist/versioned-package/components/tab/tab.d.ts +1 -1
- package/dist/versioned-package/components/tab/tab.js +2 -2
- package/dist/versioned-package/components/tab-group/tab-group.d.ts +1 -1
- package/dist/versioned-package/components/tab-group/tab-group.js +13 -13
- package/dist/versioned-package/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist/versioned-package/components/tab-panel/tab-panel.js +2 -2
- package/dist/versioned-package/components/tag/tag.d.ts +1 -1
- package/dist/versioned-package/components/tag/tag.js +2 -2
- package/dist/versioned-package/components/teaser/teaser.js +1 -1
- package/dist/versioned-package/components/teaser-media/teaser-media.js +1 -1
- package/dist/versioned-package/components/textarea/textarea.d.ts +1 -1
- package/dist/versioned-package/components/textarea/textarea.js +2 -2
- package/dist/versioned-package/components/tooltip/tooltip.d.ts +1 -1
- package/dist/versioned-package/components/tooltip/tooltip.js +5 -5
- package/dist/versioned-package/components/video/video.d.ts +1 -1
- package/dist/versioned-package/components/video/video.js +2 -2
- package/dist/versioned-package/internal/form.js +3 -3
- package/dist/versioned-package/solid-components.d.ts +1 -0
- package/dist/versioned-package/solid-components.js +26 -24
- package/dist/versioned-package/styles/headline/headline.css.js +1 -1
- package/dist/versioned-package/styles/tailwind.css.js +1 -1
- package/dist/versioned-package/utilities/autocomplete-config.js +4 -4
- package/dist/versioned-styles/solid-styles.css +1 -1
- package/dist/vscode.html-custom-data.json +132 -38
- package/dist/web-types.json +359 -39
- package/package.json +3 -3
|
@@ -256,7 +256,7 @@ let SdInput = class extends SolidElement {
|
|
|
256
256
|
"min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700",
|
|
257
257
|
this.size === "sm" ? "h-6" : "h-8",
|
|
258
258
|
textSize
|
|
259
|
-
)}" type="${this.type === "password" && this.passwordVisible ? "text" : this.type}" title="${this.title}" name="${ifDefined(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" min="${ifDefined(this.min)}" max="${ifDefined(this.max)}" step="${ifDefined(this.step)}" .value="${live(this.value)}" autocapitalize="${ifDefined(this.type === "password" ? "off" : this.autocapitalize)}" autocomplete="${ifDefined(this.type === "password" ? "off" : this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${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-3-
|
|
259
|
+
)}" type="${this.type === "password" && this.passwordVisible ? "text" : this.type}" title="${this.title}" name="${ifDefined(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" min="${ifDefined(this.min)}" max="${ifDefined(this.max)}" step="${ifDefined(this.step)}" .value="${live(this.value)}" autocapitalize="${ifDefined(this.type === "password" ? "off" : this.autocapitalize)}" autocomplete="${ifDefined(this.type === "password" ? "off" : this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${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-3-4-0-icon class="${cx("text-neutral-500", iconSize)}" library="system" name="closing-round"></sd-3-4-0-icon></slot></button>` : ""} ${this.passwordToggle && this.type === "password" ? html`<button aria-label="${this.localize.term(this.passwordVisible ? "hidePassword" : "showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}" tabindex="-1">${this.passwordVisible ? html`<slot name="show-password-icon"><sd-3-4-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="eye"></sd-3-4-0-icon></slot>` : html`<slot name="hide-password-icon"><sd-3-4-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="eye-crossed-out"></sd-3-4-0-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-3-4-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="calendar"></sd-3-4-0-icon>` : ""} ${this.type === "time" ? html`<sd-3-4-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="clock"></sd-3-4-0-icon>` : ""} ${this.type === "search" ? html`<button class="flex items-center" type="button" tabindex="-1"><sd-3-4-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="magnifying-glass"></sd-3-4-0-icon></button>` : ""} ${this.showInvalidStyle ? html`<sd-3-4-0-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="system" name="risk"></sd-3-4-0-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-3-4-0-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="system" name="confirm" part="valid-icon"></sd-3-4-0-icon>` : ""} ${slots["right"] ? html`<slot name="right" part="right" class="${cx("inline-flex", iconColor, iconMarginLeft, iconSize)}"></slot>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
|
260
260
|
}
|
|
261
261
|
};
|
|
262
262
|
SdInput.styles = [
|
|
@@ -389,7 +389,7 @@ __decorateClass([
|
|
|
389
389
|
watch("value", { waitUntilFirstUpdate: true })
|
|
390
390
|
], SdInput.prototype, "handleValueChange", 1);
|
|
391
391
|
SdInput = __decorateClass([
|
|
392
|
-
customElement("sd-3-
|
|
392
|
+
customElement("sd-3-4-0-input")
|
|
393
393
|
], SdInput);
|
|
394
394
|
export {
|
|
395
395
|
SdInput as default
|
|
@@ -77,7 +77,7 @@ let SdLink = class extends SolidElement {
|
|
|
77
77
|
};
|
|
78
78
|
SdLink.styles = [
|
|
79
79
|
SolidElement.styles,
|
|
80
|
-
css`::slotted(sd-3-
|
|
80
|
+
css`::slotted(sd-3-4-0-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-3-4-0-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-3-4-0-icon){font-size:var(--sd-font-size-xl,1.5rem)}`
|
|
81
81
|
];
|
|
82
82
|
__decorateClass([
|
|
83
83
|
query("a")
|
|
@@ -101,7 +101,7 @@ __decorateClass([
|
|
|
101
101
|
property()
|
|
102
102
|
], SdLink.prototype, "download", 2);
|
|
103
103
|
SdLink = __decorateClass([
|
|
104
|
-
customElement("sd-3-
|
|
104
|
+
customElement("sd-3-4-0-link")
|
|
105
105
|
], SdLink);
|
|
106
106
|
export {
|
|
107
107
|
SdLink as default
|
|
@@ -64,7 +64,7 @@ __decorateClass([
|
|
|
64
64
|
property({ type: Boolean, reflect: true })
|
|
65
65
|
], SdMapMarker.prototype, "animated", 2);
|
|
66
66
|
SdMapMarker = __decorateClass([
|
|
67
|
-
customElement("sd-3-
|
|
67
|
+
customElement("sd-3-4-0-map-marker")
|
|
68
68
|
], SdMapMarker);
|
|
69
69
|
export {
|
|
70
70
|
SdMapMarker as default
|
|
@@ -103,10 +103,10 @@ let SdNavigationItem = class extends SolidElement {
|
|
|
103
103
|
isAccordion ? "grow" : "w-full",
|
|
104
104
|
slots["description"] ? "pb-1" : horizontalPaddingBottom,
|
|
105
105
|
this.calculatePaddingX()
|
|
106
|
-
)}">${this.divider && this.vertical ? html`<sd-3-
|
|
106
|
+
)}">${this.divider && this.vertical ? html`<sd-3-4-0-divider part="divider" class="${cx("w-full transition-all absolute -top-[1px] left-0", this.calculatePaddingX())}"></sd-3-4-0-divider>` : ""} <span part="content-container" class="inline-flex items-center flex-auto"><slot part="content" class="inline"></slot></span>${(this.chevron || slots["children"]) && this.vertical ? html`<sd-3-4-0-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${cx(
|
|
107
107
|
"h-6 w-6 ml-2 transition-all",
|
|
108
108
|
isAccordion ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
|
109
|
-
)}"></sd-3-
|
|
109
|
+
)}"></sd-3-4-0-icon>` : ""} </span>${slots["description"] && this.vertical ? html`<slot name="description" part="description" class="${cx(
|
|
110
110
|
"inline-block text-sm text-left text-black",
|
|
111
111
|
isAccordion ? "grow" : "w-full",
|
|
112
112
|
horizontalPaddingBottom,
|
|
@@ -157,7 +157,7 @@ __decorateClass([
|
|
|
157
157
|
property({ type: Boolean, reflect: true })
|
|
158
158
|
], SdNavigationItem.prototype, "open", 2);
|
|
159
159
|
SdNavigationItem = __decorateClass([
|
|
160
|
-
customElement("sd-3-
|
|
160
|
+
customElement("sd-3-4-0-navigation-item")
|
|
161
161
|
], SdNavigationItem);
|
|
162
162
|
export {
|
|
163
163
|
SdNavigationItem as default
|
|
@@ -129,7 +129,7 @@ let SdNotification = class extends SolidElement {
|
|
|
129
129
|
() => {
|
|
130
130
|
toastStack.removeChild(this);
|
|
131
131
|
resolve();
|
|
132
|
-
if (toastStack.querySelector("sd-3-
|
|
132
|
+
if (toastStack.querySelector("sd-3-4-0-notification") === null) {
|
|
133
133
|
toastStack.remove();
|
|
134
134
|
}
|
|
135
135
|
},
|
|
@@ -146,15 +146,15 @@ let SdNotification = class extends SolidElement {
|
|
|
146
146
|
warning: "bg-warning",
|
|
147
147
|
error: "bg-error"
|
|
148
148
|
}[this.variant]
|
|
149
|
-
)}"><sd-3-
|
|
149
|
+
)}"><sd-3-4-0-icon name="${{
|
|
150
150
|
info: "info-circle",
|
|
151
151
|
success: "confirm-circle",
|
|
152
152
|
warning: "exclamation-circle",
|
|
153
153
|
error: "warning"
|
|
154
|
-
}[this.variant] || ""}" library="system" class="h-6 w-6 text-white"></sd-3-
|
|
154
|
+
}[this.variant] || ""}" library="system" class="h-6 w-6 text-white"></sd-3-4-0-icon></slot><div part="content" class="${cx(
|
|
155
155
|
"h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white",
|
|
156
156
|
"border-solid border-[1px] border-l-0 border-neutral-400"
|
|
157
|
-
)}"><slot part="message" class="block w-full pl-3 py-2" aria-live="polite"></slot>${this.closable ? html`<sd-3-
|
|
157
|
+
)}"><slot part="message" class="block w-full pl-3 py-2" aria-live="polite"></slot>${this.closable ? html`<sd-3-4-0-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" label="${this.localize.term("close")}" @click="${this.handleCloseClick}"><sd-3-4-0-icon name="close" library="system" color="currentColor"></sd-3-4-0-icon></sd-3-4-0-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 bg-neutral-400"></div>` : ""}</div>`;
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
160
|
SdNotification.styles = [
|
|
@@ -190,7 +190,7 @@ __decorateClass([
|
|
|
190
190
|
watch("duration")
|
|
191
191
|
], SdNotification.prototype, "handleDurationChange", 1);
|
|
192
192
|
SdNotification = __decorateClass([
|
|
193
|
-
customElement("sd-3-
|
|
193
|
+
customElement("sd-3-4-0-notification")
|
|
194
194
|
], SdNotification);
|
|
195
195
|
setDefaultAnimation("notification.show", {
|
|
196
196
|
keyframes: [
|
|
@@ -94,7 +94,7 @@ let SdOption = class extends SolidElement {
|
|
|
94
94
|
)}"></span> ${this.checkbox ? html`<span id="control" part="control ${this.selected ? " control--checked" : "control--unchecked"}" class="${cx(
|
|
95
95
|
"relative flex flex-initial items-center justify-center border rounded-sm h-4 w-4 mr-2",
|
|
96
96
|
this.disabled ? "border-neutral-500" : this.selected ? "bg-accent border-accent" : "border-neutral-800"
|
|
97
|
-
)}">${this.selected ? html`<sd-3-
|
|
97
|
+
)}">${this.selected ? html`<sd-3-4-0-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-hook"></sd-3-4-0-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>`;
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
100
|
SdOption.styles = [
|
|
@@ -136,7 +136,7 @@ __decorateClass([
|
|
|
136
136
|
watch("value")
|
|
137
137
|
], SdOption.prototype, "handleValueChange", 1);
|
|
138
138
|
SdOption = __decorateClass([
|
|
139
|
-
customElement("sd-3-
|
|
139
|
+
customElement("sd-3-4-0-option")
|
|
140
140
|
], SdOption);
|
|
141
141
|
export {
|
|
142
142
|
SdOption as default
|
|
@@ -329,7 +329,7 @@ __decorateClass([
|
|
|
329
329
|
property({ attribute: "auto-size-padding", type: Number })
|
|
330
330
|
], SdPopup.prototype, "autoSizePadding", 2);
|
|
331
331
|
SdPopup = __decorateClass([
|
|
332
|
-
customElement("sd-3-
|
|
332
|
+
customElement("sd-3-4-0-popup")
|
|
333
333
|
], SdPopup);
|
|
334
334
|
export {
|
|
335
335
|
SdPopup as default
|
|
@@ -73,7 +73,7 @@ let SdRadio = class extends SolidElement {
|
|
|
73
73
|
}
|
|
74
74
|
render() {
|
|
75
75
|
return html`<span part="base" class="${cx(
|
|
76
|
-
"sd-3-
|
|
76
|
+
"sd-3-4-0-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",
|
|
77
77
|
this.disabled && "hover:cursor-not-allowed",
|
|
78
78
|
{
|
|
79
79
|
/* sizes, fonts */
|
|
@@ -121,7 +121,7 @@ __decorateClass([
|
|
|
121
121
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
122
122
|
], SdRadio.prototype, "handleDisabledChange", 1);
|
|
123
123
|
SdRadio = __decorateClass([
|
|
124
|
-
customElement("sd-3-
|
|
124
|
+
customElement("sd-3-4-0-radio")
|
|
125
125
|
], SdRadio);
|
|
126
126
|
export {
|
|
127
127
|
SdRadio as default
|
|
@@ -84,7 +84,7 @@ let SdRadioButton = class extends SolidElement {
|
|
|
84
84
|
SdRadioButton.styles = [
|
|
85
85
|
SolidElement.styles,
|
|
86
86
|
componentStyles,
|
|
87
|
-
css`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;position:absolute;inset:var(--sd-spacing-0,0);z-index:-10;opacity:var(--sd-opacity-0,0);outline-style:dotted;outline-width:1px;outline-color:rgb(var(--sd-color-error,204 25 55) / 1)}.lg-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{height:var(--sd-spacing-12,3rem);width:var(--sd-spacing-12,3rem)}.md-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{height:var(--sd-spacing-10,2.5rem);width:var(--sd-spacing-10,2.5rem)}.sm-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{height:var(--sd-spacing-8,2rem);width:var(--sd-spacing-8,2rem)}:host(.sd-3-
|
|
87
|
+
css`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;position:absolute;inset:var(--sd-spacing-0,0);z-index:-10;opacity:var(--sd-opacity-0,0);outline-style:dotted;outline-width:1px;outline-color:rgb(var(--sd-color-error,204 25 55) / 1)}.lg-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{height:var(--sd-spacing-12,3rem);width:var(--sd-spacing-12,3rem)}.md-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{height:var(--sd-spacing-10,2.5rem);width:var(--sd-spacing-10,2.5rem)}.sm-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{height:var(--sd-spacing-8,2rem);width:var(--sd-spacing-8,2rem)}:host(.sd-3-4-0-button-group__button--first:not(.sd-3-4-0-button-group__button--last)) button{border-top-right-radius:var(--sd-border-radius-none,0);border-bottom-right-radius:var(--sd-border-radius-none,0)}:host(.sd-3-4-0-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-3-4-0-button-group__button--last:not(.sd-3-4-0-button-group__button--first)) button{border-top-left-radius:var(--sd-border-radius-none,0);border-bottom-left-radius:var(--sd-border-radius-none,0)}:host(.sd-3-4-0-button-group__button:not(.sd-3-4-0-button-group__button--first)){margin-inline-start:-1px}:host(.sd-3-4-0-button-group__button--hover){z-index:10}:host(.sd-3-4-0-button-group__button--focus),:host(.sd-3-4-0-button-group__button[checked]){z-index:20}`
|
|
88
88
|
];
|
|
89
89
|
__decorateClass([
|
|
90
90
|
query(".button")
|
|
@@ -111,7 +111,7 @@ __decorateClass([
|
|
|
111
111
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
112
112
|
], SdRadioButton.prototype, "handleDisabledChange", 1);
|
|
113
113
|
SdRadioButton = __decorateClass([
|
|
114
|
-
customElement("sd-3-
|
|
114
|
+
customElement("sd-3-4-0-radio-button")
|
|
115
115
|
], SdRadioButton);
|
|
116
116
|
export {
|
|
117
117
|
SdRadioButton as default
|
|
@@ -4,7 +4,7 @@ import SolidElement from '../../internal/solid-element';
|
|
|
4
4
|
import type { SolidFormControl } from '../../internal/solid-element';
|
|
5
5
|
export default class SdRadioGroup extends SolidElement implements SolidFormControl {
|
|
6
6
|
static dependencies: {
|
|
7
|
-
'sd-3-
|
|
7
|
+
'sd-3-4-0-button-group': typeof SdButtonGroup;
|
|
8
8
|
};
|
|
9
9
|
protected readonly formControlController: FormControlController;
|
|
10
10
|
private readonly hasSlotController;
|
|
@@ -48,6 +48,6 @@ export default class SdRadioGroup extends SolidElement implements SolidFormContr
|
|
|
48
48
|
}
|
|
49
49
|
declare global {
|
|
50
50
|
interface HTMLElementTagNameMap {
|
|
51
|
-
'sd-3-
|
|
51
|
+
'sd-3-4-0-radio-group': SdRadioGroup;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -68,10 +68,10 @@ let SdRadioGroup = class extends SolidElement {
|
|
|
68
68
|
this.formControlController.updateValidity();
|
|
69
69
|
}
|
|
70
70
|
getAllRadios() {
|
|
71
|
-
return [...this.querySelectorAll("sd-3-
|
|
71
|
+
return [...this.querySelectorAll("sd-3-4-0-radio, sd-3-4-0-radio-button")];
|
|
72
72
|
}
|
|
73
73
|
handleRadioClick(event) {
|
|
74
|
-
const target = event.target.closest("sd-3-
|
|
74
|
+
const target = event.target.closest("sd-3-4-0-radio, sd-3-4-0-radio-button");
|
|
75
75
|
const radios = this.getAllRadios();
|
|
76
76
|
const oldValue = this.value;
|
|
77
77
|
if (target.disabled) {
|
|
@@ -147,7 +147,7 @@ let SdRadioGroup = class extends SolidElement {
|
|
|
147
147
|
}
|
|
148
148
|
})
|
|
149
149
|
);
|
|
150
|
-
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-3-
|
|
150
|
+
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-3-4-0-radio-button");
|
|
151
151
|
if (!radios.some((radio) => radio.checked)) {
|
|
152
152
|
if (this.hasButtonGroup) {
|
|
153
153
|
const buttonRadio = (_a = radios[0].shadowRoot) == null ? void 0 : _a.querySelector("button");
|
|
@@ -159,26 +159,26 @@ let SdRadioGroup = class extends SolidElement {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
if (this.hasButtonGroup) {
|
|
162
|
-
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-3-
|
|
162
|
+
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-3-4-0-button-group");
|
|
163
163
|
if (buttonGroup) {
|
|
164
164
|
buttonGroup.disableRole = true;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
syncRadios() {
|
|
169
|
-
if (customElements.get("sd-3-
|
|
169
|
+
if (customElements.get("sd-3-4-0-radio") && customElements.get("sd-3-4-0-radio-button")) {
|
|
170
170
|
this.syncRadioElements();
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
|
-
if (customElements.get("sd-3-
|
|
173
|
+
if (customElements.get("sd-3-4-0-radio")) {
|
|
174
174
|
this.syncRadioElements();
|
|
175
175
|
} else {
|
|
176
|
-
customElements.whenDefined("sd-3-
|
|
176
|
+
customElements.whenDefined("sd-3-4-0-radio").then(() => this.syncRadios());
|
|
177
177
|
}
|
|
178
|
-
if (customElements.get("sd-3-
|
|
178
|
+
if (customElements.get("sd-3-4-0-radio-button")) {
|
|
179
179
|
this.syncRadioElements();
|
|
180
180
|
} else {
|
|
181
|
-
customElements.whenDefined("sd-3-
|
|
181
|
+
customElements.whenDefined("sd-3-4-0-radio-button").then(() => this.syncRadios());
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
updateCheckedRadio() {
|
|
@@ -253,14 +253,14 @@ let SdRadioGroup = class extends SolidElement {
|
|
|
253
253
|
vertical: "flex-col",
|
|
254
254
|
horizontal: "flex-row"
|
|
255
255
|
}[this.orientation]
|
|
256
|
-
)}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup ? html`<sd-3-
|
|
256
|
+
)}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup ? html`<sd-3-4-0-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${defaultSlot}</sd-3-4-0-button-group>` : defaultSlot}</div></fieldset>${this.formControlController.renderInvalidMessage()}`;
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
|
-
SdRadioGroup.dependencies = { "sd-3-
|
|
259
|
+
SdRadioGroup.dependencies = { "sd-3-4-0-button-group": SdButtonGroup };
|
|
260
260
|
SdRadioGroup.styles = [
|
|
261
261
|
componentStyles,
|
|
262
262
|
SolidElement.styles,
|
|
263
|
-
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-3-
|
|
263
|
+
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-3-4-0-radio){margin-bottom:var(--sd-spacing-2,.5rem);display:flex}:host([orientation=vertical]) ::slotted(sd-3-4-0-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-3-4-0-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-3-4-0-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-3-4-0-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-3-4-0-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label::after{content:' *'}`
|
|
264
264
|
];
|
|
265
265
|
__decorateClass([
|
|
266
266
|
query("slot:not([name])")
|
|
@@ -314,7 +314,7 @@ __decorateClass([
|
|
|
314
314
|
watch("value")
|
|
315
315
|
], SdRadioGroup.prototype, "handleValueChange", 1);
|
|
316
316
|
SdRadioGroup = __decorateClass([
|
|
317
|
-
customElement("sd-3-
|
|
317
|
+
customElement("sd-3-4-0-radio-group")
|
|
318
318
|
], SdRadioGroup);
|
|
319
319
|
export {
|
|
320
320
|
SdRadioGroup as default
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import SolidElement from '../../internal/solid-element';
|
|
2
|
+
export default class SdScrollable extends SolidElement {
|
|
3
|
+
orientation: 'horizontal' | 'vertical' | 'auto';
|
|
4
|
+
buttons: boolean;
|
|
5
|
+
step: number;
|
|
6
|
+
scrollbars: boolean;
|
|
7
|
+
shadows: boolean;
|
|
8
|
+
inset: boolean;
|
|
9
|
+
private canScroll;
|
|
10
|
+
private isScrollHorizontalEnabled;
|
|
11
|
+
private isScrollVerticalEnabled;
|
|
12
|
+
private resizeObserver;
|
|
13
|
+
private scrollContainer;
|
|
14
|
+
connectedCallback(): void;
|
|
15
|
+
disconnectedCallback(): void;
|
|
16
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
17
|
+
private updateScrollEnabledFlags;
|
|
18
|
+
private get container();
|
|
19
|
+
updateScrollIndicatorVisibility(): void;
|
|
20
|
+
handleScroll(direction: 'left' | 'right' | 'up' | 'down'): void;
|
|
21
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
22
|
+
static styles: import("lit").CSSResultGroup[];
|
|
23
|
+
}
|
|
24
|
+
declare global {
|
|
25
|
+
interface HTMLElementTagNameMap {
|
|
26
|
+
'sd-3-4-0-scrollable': SdScrollable;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { unsafeCSS, css, html } from "lit";
|
|
2
|
+
import { customElement } from "../../internal/register-custom-element.js";
|
|
3
|
+
import { property, state } from "lit/decorators.js";
|
|
4
|
+
import componentStyles from "../../styles/component.styles.js";
|
|
5
|
+
import cx from "classix";
|
|
6
|
+
import InteractiveStyles from "../../styles/interactive/interactive.css.js";
|
|
7
|
+
import SolidElement from "../../internal/solid-element.js";
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
11
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
12
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13
|
+
if (decorator = decorators[i])
|
|
14
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
15
|
+
if (kind && result)
|
|
16
|
+
__defProp(target, key, result);
|
|
17
|
+
return result;
|
|
18
|
+
};
|
|
19
|
+
let SdScrollable = class extends SolidElement {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.orientation = "horizontal";
|
|
23
|
+
this.buttons = false;
|
|
24
|
+
this.step = 150;
|
|
25
|
+
this.scrollbars = false;
|
|
26
|
+
this.shadows = false;
|
|
27
|
+
this.inset = false;
|
|
28
|
+
this.canScroll = {
|
|
29
|
+
left: false,
|
|
30
|
+
right: false,
|
|
31
|
+
up: false,
|
|
32
|
+
down: false
|
|
33
|
+
};
|
|
34
|
+
this.isScrollHorizontalEnabled = false;
|
|
35
|
+
this.isScrollVerticalEnabled = false;
|
|
36
|
+
this.scrollContainer = null;
|
|
37
|
+
}
|
|
38
|
+
connectedCallback() {
|
|
39
|
+
super.connectedCallback();
|
|
40
|
+
this.updateScrollEnabledFlags();
|
|
41
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
42
|
+
this.updateScrollIndicatorVisibility();
|
|
43
|
+
});
|
|
44
|
+
this.updateComplete.then(() => {
|
|
45
|
+
this.scrollContainer = this.renderRoot.querySelector(".scroll-container");
|
|
46
|
+
if (this.scrollContainer) {
|
|
47
|
+
this.resizeObserver.observe(this.scrollContainer);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
disconnectedCallback() {
|
|
52
|
+
super.disconnectedCallback();
|
|
53
|
+
if (this.scrollContainer) {
|
|
54
|
+
this.resizeObserver.unobserve(this.scrollContainer);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
updated(changedProperties) {
|
|
58
|
+
super.updated(changedProperties);
|
|
59
|
+
if (changedProperties.has("orientation") || changedProperties.has("buttons") || changedProperties.has("shadows")) {
|
|
60
|
+
this.updateScrollEnabledFlags();
|
|
61
|
+
this.updateScrollIndicatorVisibility();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
updateScrollEnabledFlags() {
|
|
65
|
+
const dir = this.orientation;
|
|
66
|
+
this.isScrollHorizontalEnabled = dir === "horizontal" || dir === "auto";
|
|
67
|
+
this.isScrollVerticalEnabled = dir === "vertical" || dir === "auto";
|
|
68
|
+
}
|
|
69
|
+
get container() {
|
|
70
|
+
return this.renderRoot.querySelector(".scroll-container");
|
|
71
|
+
}
|
|
72
|
+
updateScrollIndicatorVisibility() {
|
|
73
|
+
const container = this.container;
|
|
74
|
+
if (container) {
|
|
75
|
+
const canScrollLeft = this.isScrollHorizontalEnabled && container.scrollLeft > 0;
|
|
76
|
+
const canScrollRight = this.isScrollHorizontalEnabled && container.scrollLeft + container.clientWidth < container.scrollWidth - 1;
|
|
77
|
+
const canScrollUp = this.isScrollVerticalEnabled && container.scrollTop > 0;
|
|
78
|
+
const canScrollDown = this.isScrollVerticalEnabled && container.scrollTop + container.clientHeight < container.scrollHeight - 1;
|
|
79
|
+
this.canScroll = {
|
|
80
|
+
left: canScrollLeft,
|
|
81
|
+
right: canScrollRight,
|
|
82
|
+
up: canScrollUp,
|
|
83
|
+
down: canScrollDown
|
|
84
|
+
};
|
|
85
|
+
if (canScrollLeft || canScrollUp) {
|
|
86
|
+
this.dispatchEvent(new CustomEvent("start"));
|
|
87
|
+
}
|
|
88
|
+
if (canScrollRight || canScrollDown) {
|
|
89
|
+
this.dispatchEvent(new CustomEvent("end"));
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
handleScroll(direction) {
|
|
94
|
+
var _a;
|
|
95
|
+
const scrollAmount = direction === "left" || direction === "up" ? -this.step : this.step;
|
|
96
|
+
const scrollDirection = direction === "left" || direction === "right" ? "left" : "top";
|
|
97
|
+
const scrollOptions = {
|
|
98
|
+
behavior: "smooth"
|
|
99
|
+
};
|
|
100
|
+
scrollOptions[scrollDirection] = scrollAmount;
|
|
101
|
+
(_a = this.scrollContainer) == null ? void 0 : _a.scrollBy(scrollOptions);
|
|
102
|
+
const eventName = `button-${direction}`;
|
|
103
|
+
this.dispatchEvent(new CustomEvent(eventName, { bubbles: true, composed: true }));
|
|
104
|
+
}
|
|
105
|
+
render() {
|
|
106
|
+
const scrollButtonClasses = "relative p-0 border-0 bg-transparent cursor-pointer w-5 h-5 flex items-center justify-center sd-interactive rounded-md flex text-lg";
|
|
107
|
+
const scrollShadowClasses = "scroll-shadow absolute z-10 pointer-events-none";
|
|
108
|
+
return html`<div part="base" class="${cx(
|
|
109
|
+
"scroll-container flex overflow-hidden flex-1",
|
|
110
|
+
this.orientation === "horizontal" && "scroll-horizontal flex-row whitespace-nowrap items-center overflow-x-scroll overflow-y-hidden",
|
|
111
|
+
this.orientation === "vertical" && "scroll-vertical justify-items-center overflow-y-scroll overflow-x-hidden",
|
|
112
|
+
this.orientation === "auto" && "scroll-auto overflow-auto",
|
|
113
|
+
this.scrollbars ? "show-scrollbars" : "hide-scrollbars",
|
|
114
|
+
this.inset ? "p-4" : ""
|
|
115
|
+
)}" @scroll="${this.updateScrollIndicatorVisibility}"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons ? html`${this.isScrollHorizontalEnabled ? html`${this.canScroll.left ? html`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${cx(scrollButtonClasses)}" @click="${() => this.handleScroll("left")}"><slot name="icon-start"><sd-3-4-0-icon library="system" name="chevron-up" class="rotate-[-90deg]"></sd-3-4-0-icon></slot></button></div>` : null} ${this.canScroll.right ? html`<div part="button-right" class="absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8"><button part="button-end" class="${cx(scrollButtonClasses)}" @click="${() => this.handleScroll("right")}"><slot name="icon-end"><sd-3-4-0-icon library="system" name="chevron-down" class="rotate-[-90deg]"></sd-3-4-0-icon></slot></button></div>` : null}` : null} ${this.isScrollVerticalEnabled ? html`${this.canScroll.up ? html`<div part="button-top" class="absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8"><button part="button-start" class="${cx(scrollButtonClasses)}" @click="${() => this.handleScroll("up")}"><slot name="icon-start"><sd-3-4-0-icon library="system" name="chevron-up"></sd-3-4-0-icon></slot></button></div>` : null} ${this.canScroll.down ? html`<div part="button-bottom" class="absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8"><button part="button-end" class="${cx(scrollButtonClasses)}" @click="${() => this.handleScroll("down")}"><slot name="icon-end"><sd-3-4-0-icon library="system" name="chevron-down"></sd-3-4-0-icon></slot></button></div>` : null}` : null}` : null} ${this.shadows ? html`${this.isScrollHorizontalEnabled ? html`${this.canScroll.left ? html`<div part="shadow-left" class="${scrollShadowClasses} left top-0 left-0 w-[6px] h-full"></div>` : null} ${this.canScroll.right ? html`<div part="shadow-right" class="${scrollShadowClasses} right top-0 right-0 w-[6px] h-full"></div>` : null}` : null} ${this.isScrollVerticalEnabled ? html`${this.canScroll.up ? html`<div part="shadow-top" class="${scrollShadowClasses} top top-0 left-0 w-full h-[6px]"></div>` : null} ${this.canScroll.down ? html`<div part="shadow-bottom" class="${scrollShadowClasses} bottom bottom-0 left-0 w-full h-[6px]"></div>` : null}` : null}` : null}`;
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
SdScrollable.styles = [
|
|
119
|
+
SolidElement.styles,
|
|
120
|
+
unsafeCSS(InteractiveStyles),
|
|
121
|
+
componentStyles,
|
|
122
|
+
css`:host{--gradient-color:rgba(255, 255, 255, 0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;position:relative;display:flex;overflow:hidden}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}[part=shadow-right]{background:linear-gradient(90deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}[part=shadow-top]{background:linear-gradient(0deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}[part=shadow-bottom]{background:linear-gradient(180deg,rgba(24,24,24,0) 50%,rgba(24,24,24,.4) 100%)}.sd-3-4-0-icon--top{align-self:flex-start}.sd-3-4-0-icon--down{align-self:flex-end}`
|
|
123
|
+
];
|
|
124
|
+
__decorateClass([
|
|
125
|
+
property({ type: String, reflect: true })
|
|
126
|
+
], SdScrollable.prototype, "orientation", 2);
|
|
127
|
+
__decorateClass([
|
|
128
|
+
property({ type: Boolean, reflect: true })
|
|
129
|
+
], SdScrollable.prototype, "buttons", 2);
|
|
130
|
+
__decorateClass([
|
|
131
|
+
property({ type: Number, reflect: true })
|
|
132
|
+
], SdScrollable.prototype, "step", 2);
|
|
133
|
+
__decorateClass([
|
|
134
|
+
property({ type: Boolean, reflect: true })
|
|
135
|
+
], SdScrollable.prototype, "scrollbars", 2);
|
|
136
|
+
__decorateClass([
|
|
137
|
+
property({ type: Boolean, reflect: true })
|
|
138
|
+
], SdScrollable.prototype, "shadows", 2);
|
|
139
|
+
__decorateClass([
|
|
140
|
+
property({ type: Boolean, reflect: true })
|
|
141
|
+
], SdScrollable.prototype, "inset", 2);
|
|
142
|
+
__decorateClass([
|
|
143
|
+
state()
|
|
144
|
+
], SdScrollable.prototype, "canScroll", 2);
|
|
145
|
+
__decorateClass([
|
|
146
|
+
state()
|
|
147
|
+
], SdScrollable.prototype, "isScrollHorizontalEnabled", 2);
|
|
148
|
+
__decorateClass([
|
|
149
|
+
state()
|
|
150
|
+
], SdScrollable.prototype, "isScrollVerticalEnabled", 2);
|
|
151
|
+
SdScrollable = __decorateClass([
|
|
152
|
+
customElement("sd-3-4-0-scrollable")
|
|
153
|
+
], SdScrollable);
|
|
154
|
+
export {
|
|
155
|
+
SdScrollable as default
|
|
156
|
+
};
|
|
@@ -7,9 +7,9 @@ import type { TemplateResult } from 'lit';
|
|
|
7
7
|
import type SdOption from '../option/option';
|
|
8
8
|
export default class SdSelect extends SolidElement implements SolidFormControl {
|
|
9
9
|
static dependencies: {
|
|
10
|
-
'sd-3-
|
|
11
|
-
'sd-3-
|
|
12
|
-
'sd-3-
|
|
10
|
+
'sd-3-4-0-icon': typeof SdIcon;
|
|
11
|
+
'sd-3-4-0-popup': typeof SdPopup;
|
|
12
|
+
'sd-3-4-0-tag': typeof SdTag;
|
|
13
13
|
};
|
|
14
14
|
private readonly formControlController;
|
|
15
15
|
private readonly hasSlotController;
|
|
@@ -97,6 +97,6 @@ export default class SdSelect extends SolidElement implements SolidFormControl {
|
|
|
97
97
|
}
|
|
98
98
|
declare global {
|
|
99
99
|
interface HTMLElementTagNameMap {
|
|
100
|
-
'sd-3-
|
|
100
|
+
'sd-3-4-0-select': SdSelect;
|
|
101
101
|
}
|
|
102
102
|
}
|