@solid-design-system/components 3.17.4 → 3.17.5
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/badge.js +1 -1
- package/dist/components/es/checkbox-group.js +1 -1
- package/dist/components/es/input.js +1 -1
- package/dist/components/es/link.js +1 -1
- package/dist/components/es/navigation-item.js +1 -1
- package/dist/components/es/notification.js +1 -1
- package/dist/components/es/radio-button.js +1 -1
- package/dist/components/es/radio-group.js +1 -1
- package/dist/components/es/radio.js +1 -1
- package/dist/components/es/scrollable.js +1 -1
- package/dist/components/es/select.js +3 -3
- package/dist/components/es/tab.js +1 -1
- package/dist/components/es/textarea.js +1 -1
- package/dist/components/es/tooltip.js +2 -2
- package/dist/components/umd/solid-components.js +6 -6
- package/dist/custom-elements.json +1 -1
- package/dist/package/components/badge/badge.d.ts +1 -1
- package/dist/package/components/badge/badge.js +3 -3
- package/dist/package/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist/package/components/checkbox-group/checkbox-group.js +4 -4
- package/dist/package/components/input/input.js +1 -11
- package/dist/package/components/link/link.d.ts +1 -1
- package/dist/package/components/link/link.js +4 -4
- package/dist/package/components/navigation-item/navigation-item.d.ts +3 -3
- package/dist/package/components/navigation-item/navigation-item.js +12 -12
- package/dist/package/components/notification/notification.d.ts +2 -2
- package/dist/package/components/notification/notification.js +8 -8
- package/dist/package/components/radio/radio.d.ts +1 -1
- package/dist/package/components/radio/radio.js +4 -4
- package/dist/package/components/radio-button/radio-button.d.ts +2 -2
- package/dist/package/components/radio-button/radio-button.js +8 -8
- package/dist/package/components/radio-group/radio-group.d.ts +3 -3
- package/dist/package/components/radio-group/radio-group.js +12 -12
- package/dist/package/components/scrollable/scrollable.d.ts +2 -2
- package/dist/package/components/scrollable/scrollable.js +7 -7
- package/dist/package/components/select/select.d.ts +2 -2
- package/dist/package/components/select/select.js +10 -22
- package/dist/package/components/tab/tab.d.ts +1 -1
- package/dist/package/components/tab/tab.js +4 -4
- package/dist/package/components/textarea/textarea.js +2 -11
- package/dist/package/components/tooltip/tooltip.d.ts +1 -1
- package/dist/package/components/tooltip/tooltip.js +4 -4
- 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/expandable.js +1 -1
- package/dist/versioned-components/es/flipcard.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/quickfact.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 -1
- package/dist/versioned-components/es/select.js +3 -3
- package/dist/versioned-components/es/solid-components2.js +1 -1
- package/dist/versioned-components/es/spinner.js +1 -1
- package/dist/versioned-components/es/step-group.js +1 -1
- package/dist/versioned-components/es/step.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 +2 -2
- package/dist/versioned-package/components/badge/badge.js +4 -4
- 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 +2 -2
- package/dist/versioned-package/components/checkbox-group/checkbox-group.js +9 -9
- 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/expandable/expandable.d.ts +1 -1
- package/dist/versioned-package/components/expandable/expandable.js +2 -2
- package/dist/versioned-package/components/flipcard/flipcard.d.ts +1 -1
- package/dist/versioned-package/components/flipcard/flipcard.js +1 -1
- 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 +3 -13
- package/dist/versioned-package/components/link/link.d.ts +2 -2
- package/dist/versioned-package/components/link/link.js +6 -6
- 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 +4 -4
- package/dist/versioned-package/components/navigation-item/navigation-item.js +17 -17
- package/dist/versioned-package/components/notification/notification.d.ts +3 -3
- package/dist/versioned-package/components/notification/notification.js +13 -13
- 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/quickfact/quickfact.d.ts +1 -1
- package/dist/versioned-package/components/quickfact/quickfact.js +2 -2
- package/dist/versioned-package/components/radio/radio.d.ts +2 -2
- package/dist/versioned-package/components/radio/radio.js +6 -6
- package/dist/versioned-package/components/radio-button/radio-button.d.ts +3 -3
- package/dist/versioned-package/components/radio-button/radio-button.js +10 -10
- package/dist/versioned-package/components/radio-group/radio-group.d.ts +5 -5
- package/dist/versioned-package/components/radio-group/radio-group.js +25 -25
- package/dist/versioned-package/components/scrollable/scrollable.d.ts +3 -3
- package/dist/versioned-package/components/scrollable/scrollable.js +10 -10
- package/dist/versioned-package/components/select/select.d.ts +6 -6
- package/dist/versioned-package/components/select/select.js +34 -46
- 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/step/step.d.ts +1 -1
- package/dist/versioned-package/components/step/step.js +5 -5
- package/dist/versioned-package/components/step-group/step-group.d.ts +1 -1
- package/dist/versioned-package/components/step-group/step-group.js +2 -2
- 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 +2 -2
- package/dist/versioned-package/components/tab/tab.js +6 -6
- 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 +4 -13
- package/dist/versioned-package/components/tooltip/tooltip.d.ts +2 -2
- package/dist/versioned-package/components/tooltip/tooltip.js +9 -9
- 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/styles/headline/headline.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 +344 -344
- package/dist/web-types.json +546 -546
- package/package.json +4 -3
|
@@ -31,7 +31,7 @@ let SdSelect = class extends SolidElement {
|
|
|
31
31
|
constructor() {
|
|
32
32
|
super(...arguments);
|
|
33
33
|
this.formControlController = new FormControlController(this, {
|
|
34
|
-
assumeInteractionOn: ["sd-blur", "sd-3-17-
|
|
34
|
+
assumeInteractionOn: ["sd-blur", "sd-3-17-5-input"]
|
|
35
35
|
});
|
|
36
36
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
37
37
|
this.localize = new LocalizeController(this);
|
|
@@ -45,13 +45,13 @@ let SdSelect = class extends SolidElement {
|
|
|
45
45
|
this.defaultValue = "";
|
|
46
46
|
this.open = false;
|
|
47
47
|
this.size = "lg";
|
|
48
|
+
this.placement = "bottom";
|
|
48
49
|
this.label = "";
|
|
49
50
|
this.placeholder = this.localize.term("selectDefaultPlaceholder");
|
|
51
|
+
this.disabled = false;
|
|
50
52
|
this.helpText = "";
|
|
51
|
-
this.placement = "bottom";
|
|
52
53
|
this.currentPlacement = this.placement;
|
|
53
54
|
this.clearable = false;
|
|
54
|
-
this.disabled = false;
|
|
55
55
|
this.multiple = false;
|
|
56
56
|
this.useTags = false;
|
|
57
57
|
this.maxOptionsVisible = 3;
|
|
@@ -62,11 +62,11 @@ let SdSelect = class extends SolidElement {
|
|
|
62
62
|
this.styleOnValid = false;
|
|
63
63
|
this.hoist = false;
|
|
64
64
|
this.getTag = (option) => {
|
|
65
|
-
return html`<sd-3-17-
|
|
65
|
+
return html`<sd-3-17-5-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
66
66
|
base:tag__base,
|
|
67
67
|
content:tag__content,
|
|
68
68
|
removable-indicator:tag__removable-indicator,
|
|
69
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-3-17-
|
|
69
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-3-17-5-tag>`;
|
|
70
70
|
};
|
|
71
71
|
this.handleDocumentFocusIn = (event) => {
|
|
72
72
|
const path = event.composedPath();
|
|
@@ -77,7 +77,7 @@ let SdSelect = class extends SolidElement {
|
|
|
77
77
|
this.handleDocumentKeyDown = (event) => {
|
|
78
78
|
const target = event.target;
|
|
79
79
|
const isClearButton = target.closest(".select__clear") !== null;
|
|
80
|
-
const isIconButton = target.closest("sd-3-17-
|
|
80
|
+
const isIconButton = target.closest("sd-3-17-5-icon-button") !== null;
|
|
81
81
|
if (isClearButton || isIconButton) {
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
@@ -238,7 +238,7 @@ let SdSelect = class extends SolidElement {
|
|
|
238
238
|
}
|
|
239
239
|
handleOptionClick(event) {
|
|
240
240
|
const target = event.target;
|
|
241
|
-
const option = target.closest("sd-3-17-
|
|
241
|
+
const option = target.closest("sd-3-17-5-option");
|
|
242
242
|
const oldValue = this.value;
|
|
243
243
|
if (option && !option.disabled) {
|
|
244
244
|
if (this.multiple) {
|
|
@@ -263,7 +263,7 @@ let SdSelect = class extends SolidElement {
|
|
|
263
263
|
const allOptions = this.getAllOptions();
|
|
264
264
|
const value = Array.isArray(this.value) ? this.value : [this.value];
|
|
265
265
|
const values = [];
|
|
266
|
-
if (customElements.get("sd-3-17-
|
|
266
|
+
if (customElements.get("sd-3-17-5-option")) {
|
|
267
267
|
allOptions.forEach((option) => {
|
|
268
268
|
if (this.multiple) {
|
|
269
269
|
option.checkbox = true;
|
|
@@ -272,7 +272,7 @@ let SdSelect = class extends SolidElement {
|
|
|
272
272
|
});
|
|
273
273
|
this.setSelectedOptions(allOptions.filter((el) => value.includes(el.value)));
|
|
274
274
|
} else {
|
|
275
|
-
customElements.whenDefined("sd-3-17-
|
|
275
|
+
customElements.whenDefined("sd-3-17-5-option").then(() => this.handleDefaultSlotChange());
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
handleTagRemove(event, option) {
|
|
@@ -285,13 +285,13 @@ let SdSelect = class extends SolidElement {
|
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
// Gets an array of all <sd-3-17-
|
|
288
|
+
// Gets an array of all <sd-3-17-5-option> elements
|
|
289
289
|
getAllOptions() {
|
|
290
|
-
return [...this.querySelectorAll("sd-3-17-
|
|
290
|
+
return [...this.querySelectorAll("sd-3-17-5-option")];
|
|
291
291
|
}
|
|
292
|
-
// Gets the first <sd-3-17-
|
|
292
|
+
// Gets the first <sd-3-17-5-option> element
|
|
293
293
|
getFirstOption() {
|
|
294
|
-
return this.querySelector("sd-3-17-
|
|
294
|
+
return this.querySelector("sd-3-17-5-option");
|
|
295
295
|
}
|
|
296
296
|
// Sets the current option, which is the option the user is currently interacting with (e.g. via keyboard). Only one
|
|
297
297
|
// option may be "current" at a time.
|
|
@@ -353,7 +353,7 @@ let SdSelect = class extends SolidElement {
|
|
|
353
353
|
const tag = this.getTag(option, index);
|
|
354
354
|
return html`<div @sd-remove="${(e) => this.handleTagRemove(e, option)}">${typeof tag === "string" ? unsafeHTML(tag) : tag}</div>`;
|
|
355
355
|
} else if (index === this.maxOptionsVisible) {
|
|
356
|
-
return html`<sd-3-17-
|
|
356
|
+
return html`<sd-3-17-5-tag size="${this.size === "sm" ? "sm" : "lg"}" ?disabled="${this.disabled}">+${this.selectedOptions.length - index}</sd-3-17-5-tag>`;
|
|
357
357
|
}
|
|
358
358
|
return html``;
|
|
359
359
|
});
|
|
@@ -369,7 +369,7 @@ let SdSelect = class extends SolidElement {
|
|
|
369
369
|
handleMouseLeave() {
|
|
370
370
|
this.hasHover = false;
|
|
371
371
|
}
|
|
372
|
-
/** Receives incoming event detail from sd-3-17-
|
|
372
|
+
/** Receives incoming event detail from sd-3-17-5-popup and updates local state for conditional styling. */
|
|
373
373
|
handleCurrentPlacement(e) {
|
|
374
374
|
const incomingPlacement = e.detail;
|
|
375
375
|
if (incomingPlacement) {
|
|
@@ -378,7 +378,7 @@ let SdSelect = class extends SolidElement {
|
|
|
378
378
|
}
|
|
379
379
|
handleUseTagsChange() {
|
|
380
380
|
const allOptions = this.getAllOptions();
|
|
381
|
-
if (customElements.get("sd-3-17-
|
|
381
|
+
if (customElements.get("sd-3-17-5-option")) {
|
|
382
382
|
allOptions.forEach((option) => {
|
|
383
383
|
option.checkbox = this.multiple;
|
|
384
384
|
});
|
|
@@ -497,19 +497,7 @@ let SdSelect = class extends SolidElement {
|
|
|
497
497
|
cursorStyles,
|
|
498
498
|
this.size === "sm" ? "text-sm" : "text-base",
|
|
499
499
|
this.open && "z-50"
|
|
500
|
-
)}"><label id="label" part="form-control-label" class="${hasLabel && "inline-block mb-2"}" aria-hidden="${hasLabel ? "false" : "true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="${cx(
|
|
501
|
-
"relative w-full bg-white",
|
|
502
|
-
{
|
|
503
|
-
disabled: "text-neutral-500",
|
|
504
|
-
readonly: "text-black",
|
|
505
|
-
activeInvalid: "text-error",
|
|
506
|
-
activeValid: "text-success",
|
|
507
|
-
active: "text-black",
|
|
508
|
-
invalid: "text-error",
|
|
509
|
-
valid: "text-success",
|
|
510
|
-
default: "text-black"
|
|
511
|
-
}[selectState]
|
|
512
|
-
)}"><div part="border" class="${cx(
|
|
500
|
+
)}"><label id="label" part="form-control-label" class="${hasLabel && "inline-block mb-2"}" aria-hidden="${hasLabel ? "false" : "true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="${cx("relative w-full bg-white", selectState === "disabled" ? "text-neutral-500" : "text-black")}"><div part="border" class="${cx(
|
|
513
501
|
"absolute top-0 w-full h-full pointer-events-none border rounded-default",
|
|
514
502
|
this.hasHover && "bg-neutral-200",
|
|
515
503
|
{
|
|
@@ -523,7 +511,7 @@ let SdSelect = class extends SolidElement {
|
|
|
523
511
|
default: "border-neutral-800"
|
|
524
512
|
}[selectState],
|
|
525
513
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
|
526
|
-
)}"></div><sd-3-17-
|
|
514
|
+
)}"></div><sd-3-17-5-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
527
515
|
"inline-flex relative w-full",
|
|
528
516
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
|
529
517
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
@@ -540,33 +528,33 @@ let SdSelect = class extends SolidElement {
|
|
|
540
528
|
"appearance-none outline-none flex-grow bg-transparent w-full",
|
|
541
529
|
cursorStyles,
|
|
542
530
|
this.multiple && this.useTags && this.value.length > 0 ? "hidden" : ""
|
|
543
|
-
)}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open ? "true" : "false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled ? "true" : "false"}" aria-describedby="help-text" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple && this.useTags ? html`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>` : ""} <input class="${cx("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10", cursorStyles)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value) ? this.value.join(", ") : this.value}" tabindex="-1" aria-hidden="true" @focus="${() => this.focus()}" @invalid="${this.handleInvalid}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("select__clear flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-3-17-
|
|
531
|
+
)}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open ? "true" : "false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled ? "true" : "false"}" aria-describedby="help-text" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple && this.useTags ? html`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>` : ""} <input class="${cx("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10", cursorStyles)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value) ? this.value.join(", ") : this.value}" tabindex="-1" aria-hidden="true" @focus="${() => this.focus()}" @invalid="${this.handleInvalid}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("select__clear flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-3-17-5-icon class="${cx("text-icon-fill-neutral-800", iconSize)}" library="system" name="closing-round"></sd-3-17-5-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-3-17-5-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="system" name="risk"></sd-3-17-5-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-3-17-5-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="system" name="status-check"></sd-3-17-5-icon>` : ""}<slot name="expand-icon" part="expand-icon" class="${cx(
|
|
544
532
|
"inline-flex ml-2 transition-all",
|
|
545
533
|
this.open ? "rotate-180" : "rotate-0",
|
|
546
534
|
this.disabled ? "text-neutral-500" : "text-primary",
|
|
547
535
|
iconSize
|
|
548
|
-
)}"><sd-3-17-
|
|
536
|
+
)}"><sd-3-17-5-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-3-17-5-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open ? "true" : "false"}" aria-multiselectable="${this.multiple ? "true" : "false"}" aria-labelledby="label" part="listbox" class="${cx(
|
|
549
537
|
"bg-white px-2 py-3 relative border-primary",
|
|
550
538
|
this.open && "shadow",
|
|
551
539
|
this.currentPlacement === "bottom" ? "border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default" : "border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default"
|
|
552
|
-
)}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-3-17-
|
|
540
|
+
)}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-3-17-5-popup></div><div class="text-sm 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()}`;
|
|
553
541
|
}
|
|
554
542
|
};
|
|
555
543
|
SdSelect.dependencies = {
|
|
556
|
-
"sd-3-17-
|
|
557
|
-
"sd-3-17-
|
|
558
|
-
"sd-3-17-
|
|
544
|
+
"sd-3-17-5-icon": SdIcon,
|
|
545
|
+
"sd-3-17-5-popup": SdPopup,
|
|
546
|
+
"sd-3-17-5-tag": SdTag
|
|
559
547
|
};
|
|
560
548
|
SdSelect.styles = [
|
|
561
549
|
componentStyles,
|
|
562
550
|
SolidElement.styles,
|
|
563
|
-
css`:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}sd-3-17-
|
|
551
|
+
css`:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}sd-3-17-5-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);overflow-y:scroll}sd-3-17-5-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-3-17-5-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-3-17-5-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249) / var(--tw-bg-opacity))}`
|
|
564
552
|
];
|
|
565
553
|
__decorateClass([
|
|
566
|
-
queryAssignedElements({ selector: "sd-3-17-
|
|
554
|
+
queryAssignedElements({ selector: "sd-3-17-5-option" })
|
|
567
555
|
], SdSelect.prototype, "_optionsInDefaultSlot", 2);
|
|
568
556
|
__decorateClass([
|
|
569
|
-
query("sd-3-17-
|
|
557
|
+
query("sd-3-17-5-popup")
|
|
570
558
|
], SdSelect.prototype, "popup", 2);
|
|
571
559
|
__decorateClass([
|
|
572
560
|
query('[part="combobox"]')
|
|
@@ -613,27 +601,27 @@ __decorateClass([
|
|
|
613
601
|
__decorateClass([
|
|
614
602
|
property({ reflect: true })
|
|
615
603
|
], SdSelect.prototype, "size", 2);
|
|
604
|
+
__decorateClass([
|
|
605
|
+
property({ reflect: true })
|
|
606
|
+
], SdSelect.prototype, "placement", 2);
|
|
616
607
|
__decorateClass([
|
|
617
608
|
property()
|
|
618
609
|
], SdSelect.prototype, "label", 2);
|
|
619
610
|
__decorateClass([
|
|
620
611
|
property()
|
|
621
612
|
], SdSelect.prototype, "placeholder", 2);
|
|
613
|
+
__decorateClass([
|
|
614
|
+
property({ type: Boolean, reflect: true })
|
|
615
|
+
], SdSelect.prototype, "disabled", 2);
|
|
622
616
|
__decorateClass([
|
|
623
617
|
property({ attribute: "help-text" })
|
|
624
618
|
], SdSelect.prototype, "helpText", 2);
|
|
625
|
-
__decorateClass([
|
|
626
|
-
property({ reflect: true })
|
|
627
|
-
], SdSelect.prototype, "placement", 2);
|
|
628
619
|
__decorateClass([
|
|
629
620
|
state()
|
|
630
621
|
], SdSelect.prototype, "currentPlacement", 2);
|
|
631
622
|
__decorateClass([
|
|
632
623
|
property({ type: Boolean })
|
|
633
624
|
], SdSelect.prototype, "clearable", 2);
|
|
634
|
-
__decorateClass([
|
|
635
|
-
property({ type: Boolean, reflect: true })
|
|
636
|
-
], SdSelect.prototype, "disabled", 2);
|
|
637
625
|
__decorateClass([
|
|
638
626
|
property({ type: Boolean, reflect: true })
|
|
639
627
|
], SdSelect.prototype, "multiple", 2);
|
|
@@ -685,7 +673,7 @@ __decorateClass([
|
|
|
685
673
|
watch("value", { waitUntilFirstUpdate: true })
|
|
686
674
|
], SdSelect.prototype, "handleValueChange", 1);
|
|
687
675
|
SdSelect = __decorateClass([
|
|
688
|
-
customElement("sd-3-17-
|
|
676
|
+
customElement("sd-3-17-5-select")
|
|
689
677
|
], SdSelect);
|
|
690
678
|
setDefaultAnimation("select.show", {
|
|
691
679
|
keyframes: [
|
|
@@ -84,20 +84,20 @@ let SdStep = class extends SolidElement {
|
|
|
84
84
|
!this.disabled && !this.current && !this.notInteractive && "text-primary group-hover:text-primary-500 group-hover:fill-primary-500",
|
|
85
85
|
this.notInteractive && "text-primary",
|
|
86
86
|
this.size === "lg" ? "text-lg" : "text-sm"
|
|
87
|
-
)}">${!this.disabled && !this.current && !this.notInteractive ? html`<sd-3-17-
|
|
87
|
+
)}">${!this.disabled && !this.current && !this.notInteractive ? html`<sd-3-17-5-icon name="status-check" library="system"></sd-3-17-5-icon>` : html`${this.index}`}</slot></${tag}>${this.noTail ? "" : this.orientation === "horizontal" ? html`<sd-3-17-5-divider part="tail" orientation="horizontal" class="${cx(
|
|
88
88
|
"w-full my-auto mr-2",
|
|
89
89
|
!this.disabled && !this.current && !this.notInteractive && "tail-to-primary"
|
|
90
|
-
)}"></sd-3-17-
|
|
90
|
+
)}"></sd-3-17-5-divider>` : html`<sd-3-17-5-divider part="tail" orientation="vertical" class="${cx(
|
|
91
91
|
"flex-grow flex-shrink-0 basis-auto h-full w-[1px] mx-auto",
|
|
92
92
|
!this.disabled && !this.current && !this.notInteractive && "tail-to-primary"
|
|
93
|
-
)}"></sd-3-17-
|
|
93
|
+
)}"></sd-3-17-5-divider>`}</div><div part="text-container" class="${cx("mt-4 mr-4 break-words flex flex-col gap-2", this.orientation === "horizontal" ? "text-center w-40" : "w-max text-left", this.disabled && "!text-neutral-500")}"><div part="label" class="${cx("!font-bold sd-paragraph", this.disabled && "!text-neutral-500", !this.disabled && !this.current && !this.notInteractive ? "!text-primary group-hover:!text-primary-500 group-hover:cursor-pointer" : "text-black")}"><slot name="label">${this.label}</slot></div><div part="description" class="${cx("sd-paragraph sd-paragraph--size-sm", this.disabled && "!text-neutral-500")}">${this.description || html`<slot></slot>`}</div></div></div>`;
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
SdStep.styles = [
|
|
97
97
|
SolidElement.styles,
|
|
98
98
|
componentStyles,
|
|
99
99
|
unsafeCSS(ParagraphStyles),
|
|
100
|
-
css`:host{flex:1 1 0%}[part=base]:not(:has(sd-3-17-
|
|
100
|
+
css`:host{flex:1 1 0%}[part=base]:not(:has(sd-3-17-5-divider)){height:-moz-max-content;height:max-content}:host([no-tail]){flex-grow:0}.translateLg{transform:translateX(55px)}.translateSm{transform:translateX(64px)}.tail-to-primary::part(main){--tw-border-opacity:1!important;border-color:rgb(var(--sd-color-primary,0 53 142) / var(--tw-border-opacity))!important}.group:hover .tail-to-primary::part(main){--tw-border-opacity:1!important;border-color:rgb(var(--sd-color-primary-500,70 109 175) / var(--tw-border-opacity))!important}sd-3-17-5-divider::part(main){--tw-border-opacity:1!important;border-color:rgb(var(--sd-color-neutral-400,195 195 195) / var(--tw-border-opacity))!important}`
|
|
101
101
|
];
|
|
102
102
|
__decorateClass([
|
|
103
103
|
property({ reflect: true })
|
|
@@ -139,7 +139,7 @@ __decorateClass([
|
|
|
139
139
|
watch("notInteractive")
|
|
140
140
|
], SdStep.prototype, "handleInteractivityChange", 1);
|
|
141
141
|
SdStep = __decorateClass([
|
|
142
|
-
customElement("sd-3-17-
|
|
142
|
+
customElement("sd-3-17-5-step")
|
|
143
143
|
], SdStep);
|
|
144
144
|
export {
|
|
145
145
|
SdStep as default
|
|
@@ -56,7 +56,7 @@ let SdStepGroup = class extends SolidElement {
|
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
getAllSteps() {
|
|
59
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-3-17-
|
|
59
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-3-17-5-step");
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* Sets the active step.
|
|
@@ -119,7 +119,7 @@ __decorateClass([
|
|
|
119
119
|
watch("notInteractive")
|
|
120
120
|
], SdStepGroup.prototype, "handleInteractivityChange", 1);
|
|
121
121
|
SdStepGroup = __decorateClass([
|
|
122
|
-
customElement("sd-3-17-
|
|
122
|
+
customElement("sd-3-17-5-step-group")
|
|
123
123
|
], SdStepGroup);
|
|
124
124
|
export {
|
|
125
125
|
SdStepGroup as default
|
|
@@ -162,7 +162,7 @@ __decorateClass([
|
|
|
162
162
|
watch(["checked"], { waitUntilFirstUpdate: true })
|
|
163
163
|
], SdSwitch.prototype, "handleStateChange", 1);
|
|
164
164
|
SdSwitch = __decorateClass([
|
|
165
|
-
customElement("sd-3-17-
|
|
165
|
+
customElement("sd-3-17-5-switch")
|
|
166
166
|
], SdSwitch);
|
|
167
167
|
export {
|
|
168
168
|
SdSwitch as default
|
|
@@ -3,10 +3,10 @@ export default class SdTab extends SolidElement {
|
|
|
3
3
|
private readonly attrId;
|
|
4
4
|
private readonly componentId;
|
|
5
5
|
tab: HTMLElement;
|
|
6
|
-
panel: string;
|
|
7
6
|
variant: 'default' | 'container';
|
|
8
7
|
active: boolean;
|
|
9
8
|
disabled: boolean;
|
|
9
|
+
panel: string;
|
|
10
10
|
connectedCallback(): void;
|
|
11
11
|
handleActiveChange(): void;
|
|
12
12
|
handleDisabledChange(): void;
|
|
@@ -17,6 +17,6 @@ export default class SdTab extends SolidElement {
|
|
|
17
17
|
}
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
|
-
'sd-3-17-
|
|
20
|
+
'sd-3-17-5-tab': SdTab;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -20,11 +20,11 @@ let SdTab = class extends SolidElement {
|
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments);
|
|
22
22
|
this.attrId = ++id;
|
|
23
|
-
this.componentId = `sd-3-17-
|
|
24
|
-
this.panel = "";
|
|
23
|
+
this.componentId = `sd-3-17-5-tab-${this.attrId}`;
|
|
25
24
|
this.variant = "default";
|
|
26
25
|
this.active = false;
|
|
27
26
|
this.disabled = false;
|
|
27
|
+
this.panel = "";
|
|
28
28
|
}
|
|
29
29
|
connectedCallback() {
|
|
30
30
|
super.connectedCallback();
|
|
@@ -68,9 +68,6 @@ SdTab.styles = [
|
|
|
68
68
|
__decorateClass([
|
|
69
69
|
query("[part=base]")
|
|
70
70
|
], SdTab.prototype, "tab", 2);
|
|
71
|
-
__decorateClass([
|
|
72
|
-
property({ reflect: true })
|
|
73
|
-
], SdTab.prototype, "panel", 2);
|
|
74
71
|
__decorateClass([
|
|
75
72
|
property({ type: String, reflect: true })
|
|
76
73
|
], SdTab.prototype, "variant", 2);
|
|
@@ -80,6 +77,9 @@ __decorateClass([
|
|
|
80
77
|
__decorateClass([
|
|
81
78
|
property({ type: Boolean, reflect: true })
|
|
82
79
|
], SdTab.prototype, "disabled", 2);
|
|
80
|
+
__decorateClass([
|
|
81
|
+
property({ reflect: true })
|
|
82
|
+
], SdTab.prototype, "panel", 2);
|
|
83
83
|
__decorateClass([
|
|
84
84
|
watch("active")
|
|
85
85
|
], SdTab.prototype, "handleActiveChange", 1);
|
|
@@ -87,7 +87,7 @@ __decorateClass([
|
|
|
87
87
|
watch("disabled")
|
|
88
88
|
], SdTab.prototype, "handleDisabledChange", 1);
|
|
89
89
|
SdTab = __decorateClass([
|
|
90
|
-
customElement("sd-3-17-
|
|
90
|
+
customElement("sd-3-17-5-tab")
|
|
91
91
|
], SdTab);
|
|
92
92
|
export {
|
|
93
93
|
SdTab as default
|
|
@@ -29,8 +29,8 @@ let SdTabGroup = class extends SolidElement {
|
|
|
29
29
|
}
|
|
30
30
|
connectedCallback() {
|
|
31
31
|
const whenAllDefined = Promise.all([
|
|
32
|
-
customElements.whenDefined("sd-3-17-
|
|
33
|
-
customElements.whenDefined("sd-3-17-
|
|
32
|
+
customElements.whenDefined("sd-3-17-5-tab"),
|
|
33
|
+
customElements.whenDefined("sd-3-17-5-tab-panel")
|
|
34
34
|
]);
|
|
35
35
|
super.connectedCallback();
|
|
36
36
|
this.resizeObserver = new ResizeObserver(() => {
|
|
@@ -67,19 +67,19 @@ let SdTabGroup = class extends SolidElement {
|
|
|
67
67
|
getAllTabs(options = { includeDisabled: true }) {
|
|
68
68
|
const slot = this.shadowRoot.querySelector('slot[name="nav"]');
|
|
69
69
|
return [...slot.assignedElements()].filter((el) => {
|
|
70
|
-
return options.includeDisabled ? el.tagName.toLowerCase() === "sd-3-17-
|
|
70
|
+
return options.includeDisabled ? el.tagName.toLowerCase() === "sd-3-17-5-tab" : el.tagName.toLowerCase() === "sd-3-17-5-tab" && !el.disabled;
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
getAllPanels() {
|
|
74
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-3-17-
|
|
74
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-3-17-5-tab-panel");
|
|
75
75
|
}
|
|
76
76
|
getActiveTab() {
|
|
77
77
|
return this.tabs.find((t) => t.matches(":focus"));
|
|
78
78
|
}
|
|
79
79
|
handleClick(event) {
|
|
80
80
|
const target = event.target;
|
|
81
|
-
const tab = target.closest("sd-3-17-
|
|
82
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-3-17-
|
|
81
|
+
const tab = target.closest("sd-3-17-5-tab");
|
|
82
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-3-17-5-tab-group");
|
|
83
83
|
if (tabGroup !== this) {
|
|
84
84
|
return;
|
|
85
85
|
}
|
|
@@ -89,8 +89,8 @@ let SdTabGroup = class extends SolidElement {
|
|
|
89
89
|
}
|
|
90
90
|
handleKeyDown(event) {
|
|
91
91
|
const target = event.target;
|
|
92
|
-
const tab = target.closest("sd-3-17-
|
|
93
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-3-17-
|
|
92
|
+
const tab = target.closest("sd-3-17-5-tab");
|
|
93
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-3-17-5-tab-group");
|
|
94
94
|
if (tabGroup !== this) {
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
@@ -115,7 +115,7 @@ let SdTabGroup = class extends SolidElement {
|
|
|
115
115
|
if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)) {
|
|
116
116
|
const activeEl = this.tabs.find((t) => t.matches(":focus"));
|
|
117
117
|
const isRtl = this.localize.dir() === "rtl";
|
|
118
|
-
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-3-17-
|
|
118
|
+
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-3-17-5-tab") {
|
|
119
119
|
let index = this.tabs.indexOf(activeEl);
|
|
120
120
|
if (event.key === "Home") {
|
|
121
121
|
index = 0;
|
|
@@ -210,17 +210,17 @@ let SdTabGroup = class extends SolidElement {
|
|
|
210
210
|
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" class="${cx(
|
|
211
211
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
212
212
|
this.localize.dir() === "rtl" && "left-auto right-0"
|
|
213
|
-
)}" @click="${this.handleScrollToStart}"><sd-3-17-
|
|
213
|
+
)}" @click="${this.handleScrollToStart}"><sd-3-17-5-icon library="system" name="${isRtl ? "chevron-up" : "chevron-down"}" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-3-17-5-icon></button>` : ""}<div part="scroll-container" class="flex overflow-x-auto focus-visible:focus-outline !outline-offset-0"><div part="tabs" class="${cx("flex flex-auto relative flex-row")}" role="tablist"><div part="separation" class="w-full h-0.25 bg-neutral-400 absolute bottom-0"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls ? html`<button part="scroll-button--end" exportparts="base:scroll-button__base" class="${cx(
|
|
214
214
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
215
215
|
this.localize.dir() === "rtl" && "right-auto left-0"
|
|
216
|
-
)}" @click="${this.handleScrollToEnd}"><sd-3-17-
|
|
216
|
+
)}" @click="${this.handleScrollToEnd}"><sd-3-17-5-icon library="system" name="${isRtl ? "chevron-down" : "chevron-up"}" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-3-17-5-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>`;
|
|
217
217
|
}
|
|
218
218
|
};
|
|
219
219
|
SdTabGroup.styles = [
|
|
220
220
|
SolidElement.styles,
|
|
221
221
|
unsafeCSS(InteractiveStyles),
|
|
222
222
|
componentStyles,
|
|
223
|
-
css`:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}::slotted(sd-3-17-
|
|
223
|
+
css`:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}::slotted(sd-3-17-5-tab-panel){--padding:1rem 0}`
|
|
224
224
|
];
|
|
225
225
|
__decorateClass([
|
|
226
226
|
query("[part=base]")
|
|
@@ -241,7 +241,7 @@ __decorateClass([
|
|
|
241
241
|
property()
|
|
242
242
|
], SdTabGroup.prototype, "activation", 2);
|
|
243
243
|
SdTabGroup = __decorateClass([
|
|
244
|
-
customElement("sd-3-17-
|
|
244
|
+
customElement("sd-3-17-5-tab-group")
|
|
245
245
|
], SdTabGroup);
|
|
246
246
|
export {
|
|
247
247
|
SdTabGroup as default
|
|
@@ -20,7 +20,7 @@ let SdTabPanel = class extends SolidElement {
|
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments);
|
|
22
22
|
this.attrId = ++id;
|
|
23
|
-
this.componentId = `sd-3-17-
|
|
23
|
+
this.componentId = `sd-3-17-5-tab-panel-${this.attrId}`;
|
|
24
24
|
this.name = "";
|
|
25
25
|
this.active = false;
|
|
26
26
|
}
|
|
@@ -51,7 +51,7 @@ __decorateClass([
|
|
|
51
51
|
watch("active")
|
|
52
52
|
], SdTabPanel.prototype, "handleActiveChange", 1);
|
|
53
53
|
SdTabPanel = __decorateClass([
|
|
54
|
-
customElement("sd-3-17-
|
|
54
|
+
customElement("sd-3-17-5-tab-panel")
|
|
55
55
|
], SdTabPanel);
|
|
56
56
|
export {
|
|
57
57
|
SdTabPanel as default
|
|
@@ -73,7 +73,7 @@ let SdTag = class extends SolidElement {
|
|
|
73
73
|
lg: "text-base",
|
|
74
74
|
sm: "text-[12px]"
|
|
75
75
|
}[this.size]
|
|
76
|
-
)}"><sd-3-17-
|
|
76
|
+
)}"><sd-3-17-5-icon library="system" name="close" label="remove"></sd-3-17-5-icon></slot>` : ""}</${tag}>`;
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
SdTag.styles = [
|
|
@@ -105,7 +105,7 @@ __decorateClass([
|
|
|
105
105
|
property()
|
|
106
106
|
], SdTag.prototype, "download", 2);
|
|
107
107
|
SdTag = __decorateClass([
|
|
108
|
-
customElement("sd-3-17-
|
|
108
|
+
customElement("sd-3-17-5-tag")
|
|
109
109
|
], SdTag);
|
|
110
110
|
export {
|
|
111
111
|
SdTag as default
|
|
@@ -65,7 +65,7 @@ __decorateClass([
|
|
|
65
65
|
query('[part="base"]')
|
|
66
66
|
], SdTeaserMedia.prototype, "teaserMedia", 2);
|
|
67
67
|
SdTeaserMedia = __decorateClass([
|
|
68
|
-
customElement("sd-3-17-
|
|
68
|
+
customElement("sd-3-17-5-teaser-media")
|
|
69
69
|
], SdTeaserMedia);
|
|
70
70
|
export {
|
|
71
71
|
SdTeaserMedia as default
|