@sellmate/design-system 1.26.0 → 1.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sd-calendar_2.cjs.entry.js +2 -2
- package/dist/cjs/sd-chip-input.cjs.entry.js +48 -31
- package/dist/cjs/sd-circle-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +9 -9
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-divider.cjs.entry.js +1 -1
- package/dist/cjs/sd-field_3.cjs.entry.js +7 -7
- package/dist/cjs/sd-ghost-button_3.cjs.entry.js +3 -3
- package/dist/cjs/sd-linear-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-loading-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-pagination_4.cjs.entry.js +8 -8
- package/dist/cjs/sd-popup.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +6 -6
- package/dist/cjs/sd-select_3.cjs.entry.js +8 -8
- package/dist/cjs/sd-switch.cjs.entry.js +1 -1
- package/dist/cjs/sd-table.cjs.entry.js +6 -6
- package/dist/cjs/sd-tabs.cjs.entry.js +1 -1
- package/dist/cjs/sd-td.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast.cjs.entry.js +2 -2
- package/dist/cjs/sd-toggle.cjs.entry.js +1 -1
- package/dist/collection/components/sd-chip-input/sd-chip-input.css +3 -0
- package/dist/collection/components/sd-chip-input/sd-chip-input.js +66 -30
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +2 -2
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
- package/dist/collection/components/sd-divider/sd-divider.js +1 -1
- package/dist/collection/components/sd-field/sd-field.js +4 -4
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +1 -1
- package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
- package/dist/collection/components/sd-select/sd-select.js +4 -4
- package/dist/collection/components/sd-switch/sd-switch.js +1 -1
- package/dist/collection/components/sd-table/sd-table.js +6 -6
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +2 -2
- package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +2 -2
- package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
- package/dist/collection/components/sd-toast/sd-toast.js +2 -2
- package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
- package/dist/components/{p-BCLDTSO0.js → p-346Z6-KH.js} +1 -1
- package/dist/components/{p-DsGK3Aye.js → p-B90EQBEX.js} +1 -1
- package/dist/components/{p-Bv_CVYp1.js → p-BBRQlkBM.js} +1 -1
- package/dist/components/{p-BGIwu6m1.js → p-BNxNJ3CK.js} +1 -1
- package/dist/components/{p-DPotN1QM.js → p-BOTW76OV.js} +1 -1
- package/dist/components/{p-C7sPq8UM.js → p-BSnINeoq.js} +1 -1
- package/dist/components/{p-IBgCA-vo.js → p-BTWJkT9Y.js} +1 -1
- package/dist/components/{p-CA2sZAsI.js → p-BVVYrEje.js} +1 -1
- package/dist/components/{p-B4ua22vZ.js → p-B_12VhSA.js} +1 -1
- package/dist/components/{p-CFqCJx9B.js → p-BxiJsH7Z.js} +1 -1
- package/dist/components/{p-C1vqL1Kl.js → p-C3rAloxT.js} +1 -1
- package/dist/components/{p-DU2_jzh4.js → p-C4Vfr3RI.js} +1 -1
- package/dist/components/{p-BTWV2vRX.js → p-D6AroYk-.js} +1 -1
- package/dist/components/{p-BAIi5T00.js → p-D9tjoBhH.js} +1 -1
- package/dist/components/{p-JamWHNrr.js → p-DGBRubiD.js} +1 -1
- package/dist/components/p-DLZRxIKh.js +1 -0
- package/dist/components/{p-tSYcqBKN.js → p-DUHiXyfJ.js} +1 -1
- package/dist/components/{p-BckY1cBy.js → p-DhgwAPO4.js} +1 -1
- package/dist/components/{p-C7sUn4qb.js → p-DiJvHjSG.js} +1 -1
- package/dist/components/{p-BwwpMQLA.js → p-DlBZuGIN.js} +1 -1
- package/dist/components/{p-UkSGSWSA.js → p-DlROb9xa.js} +1 -1
- package/dist/components/{p-D15bTkjr.js → p-DoJxhlz2.js} +1 -1
- package/dist/components/{p-aYmWxyum.js → p-DsZ3vasC.js} +1 -1
- package/dist/components/{p-DznzJSU-.js → p-Dz70SQco.js} +1 -1
- package/dist/components/{p-D0Xz7CoK.js → p-UIytIOVz.js} +1 -1
- package/dist/components/{p-0UeArSzN.js → p-c9mdxFTZ.js} +1 -1
- package/dist/components/{p-BOrdn-Js.js → p-h-EFBJM4.js} +1 -1
- package/dist/components/{p-1kjTqHez.js → p-j1n74q9u.js} +1 -1
- package/dist/components/{p-zGr4He38.js → p-k89ztBz6.js} +1 -1
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-chip-input.js +1 -1
- package/dist/components/sd-chip.js +1 -1
- package/dist/components/sd-circle-progress.js +1 -1
- package/dist/components/sd-confirm-modal.js +1 -1
- package/dist/components/sd-date-picker-trigger.js +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker-calendar.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-divider.js +1 -1
- package/dist/components/sd-dropdown-button.js +1 -1
- package/dist/components/sd-field.js +1 -1
- package/dist/components/sd-file-picker.js +1 -1
- package/dist/components/sd-floating-portal.js +1 -1
- package/dist/components/sd-ghost-button.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-key-value-table.js +1 -1
- package/dist/components/sd-linear-progress.js +1 -1
- package/dist/components/sd-loading-container.js +1 -1
- package/dist/components/sd-loading-modal.js +1 -1
- package/dist/components/sd-modal-container.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-popup.js +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-select-list-item-search.js +1 -1
- package/dist/components/sd-select-list-item.js +1 -1
- package/dist/components/sd-select-listbox.js +1 -1
- package/dist/components/sd-select-trigger.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-switch.js +1 -1
- package/dist/components/sd-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-thead.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-toggle.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-065cd2f4.entry.js → p-0fcb6fb3.entry.js} +1 -1
- package/dist/design-system/{p-940de4ba.entry.js → p-1680b427.entry.js} +1 -1
- package/dist/design-system/{p-bd700588.entry.js → p-20bb91ed.entry.js} +1 -1
- package/dist/design-system/{p-681f8612.entry.js → p-250b8e5d.entry.js} +1 -1
- package/dist/design-system/{p-7c22de74.entry.js → p-25a11d7d.entry.js} +1 -1
- package/dist/design-system/p-3064d7c6.entry.js +1 -0
- package/dist/design-system/{p-d8bebc8e.entry.js → p-352a72ef.entry.js} +1 -1
- package/dist/design-system/{p-4d747082.entry.js → p-3f16f44b.entry.js} +1 -1
- package/dist/design-system/{p-a992c64b.entry.js → p-43c47cd5.entry.js} +1 -1
- package/dist/design-system/{p-2c704047.entry.js → p-6e702726.entry.js} +1 -1
- package/dist/design-system/{p-e45e6e56.entry.js → p-7cf2305b.entry.js} +1 -1
- package/dist/design-system/{p-79d85b32.entry.js → p-89c8585f.entry.js} +1 -1
- package/dist/design-system/p-8be26652.entry.js +1 -0
- package/dist/design-system/{p-dca19618.entry.js → p-8c5451f2.entry.js} +1 -1
- package/dist/design-system/{p-8b4d246f.entry.js → p-992f9509.entry.js} +1 -1
- package/dist/design-system/{p-4deb11d8.entry.js → p-a0349edd.entry.js} +1 -1
- package/dist/design-system/p-a32704bc.entry.js +1 -0
- package/dist/design-system/{p-8da06c09.entry.js → p-a76a8463.entry.js} +1 -1
- package/dist/design-system/{p-c7ff7bc8.entry.js → p-c4e0c490.entry.js} +1 -1
- package/dist/design-system/{p-9c3f7c57.entry.js → p-eb1233ff.entry.js} +1 -1
- package/dist/design-system/{p-c3b032a1.entry.js → p-f089fc54.entry.js} +1 -1
- package/dist/design-system/{p-ba10c791.entry.js → p-f910d33f.entry.js} +1 -1
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-calendar_2.entry.js +2 -2
- package/dist/esm/sd-chip-input.entry.js +48 -31
- package/dist/esm/sd-circle-progress.entry.js +1 -1
- package/dist/esm/sd-confirm-modal_2.entry.js +3 -3
- package/dist/esm/sd-date-picker_7.entry.js +9 -9
- package/dist/esm/sd-date-range-picker-calendar.entry.js +1 -1
- package/dist/esm/sd-divider.entry.js +1 -1
- package/dist/esm/sd-field_3.entry.js +7 -7
- package/dist/esm/sd-ghost-button_3.entry.js +3 -3
- package/dist/esm/sd-linear-progress.entry.js +1 -1
- package/dist/esm/sd-loading-container.entry.js +2 -2
- package/dist/esm/sd-pagination_4.entry.js +8 -8
- package/dist/esm/sd-popup.entry.js +1 -1
- package/dist/esm/sd-select-list-item_2.entry.js +6 -6
- package/dist/esm/sd-select_3.entry.js +8 -8
- package/dist/esm/sd-switch.entry.js +1 -1
- package/dist/esm/sd-table.entry.js +6 -6
- package/dist/esm/sd-tabs.entry.js +1 -1
- package/dist/esm/sd-td.entry.js +1 -1
- package/dist/esm/sd-toast-container.entry.js +1 -1
- package/dist/esm/sd-toast.entry.js +2 -2
- package/dist/esm/sd-toggle.entry.js +1 -1
- package/dist/types/components/sd-chip-input/sd-chip-input.d.ts +3 -0
- package/dist/types/components.d.ts +9 -0
- package/hydrate/index.js +115 -97
- package/hydrate/index.mjs +115 -97
- package/package.json +1 -1
- package/dist/components/p-D6noGX38.js +0 -1
- package/dist/design-system/p-28e1cf94.entry.js +0 -1
- package/dist/design-system/p-662ce409.entry.js +0 -1
- package/dist/design-system/p-b127ac21.entry.js +0 -1
|
@@ -74,7 +74,7 @@ const SdCircleProgress = class {
|
|
|
74
74
|
}
|
|
75
75
|
const c = CIRCLE_PROGRESS_VIEWBOX_SIZE / 2;
|
|
76
76
|
const showPercent = !this.indeterminate;
|
|
77
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: '49f42179ae3f58775dda407b2a0fe3ad01baf2b8', style: hostStyle }, h("svg", { key: 'f2bcc5ae953409481b823fc7dd754f1e68bc47d8', class: "sd-circle-progress", viewBox: `0 0 ${CIRCLE_PROGRESS_VIEWBOX_SIZE} ${CIRCLE_PROGRESS_VIEWBOX_SIZE}`, xmlns: "http://www.w3.org/2000/svg" }, h("circle", { key: '1dbbe8d19a29cd271c8fa483497ca085ee10831f', class: "sd-circle-progress__track", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH }), h("circle", { key: '86e6514b2986e5574a78e15e0e3299d8cde858cc', class: "sd-circle-progress__arc", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH, "stroke-linecap": "round", style: arcStyle })), showPercent && (h("span", { key: '38d0dfc1f810acbe086852b24d83af2d4f707f2a', class: "sd-circle-progress__percent" }, Math.round(this.clampedValue), "%")), this.label && h("span", { key: 'b10ae78d8b3894b89f0096bea66773006bf526e9', class: "sd-circle-progress__label" }, this.label)));
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
SdCircleProgress.style = sdCircleProgressCss();
|
|
@@ -115,9 +115,9 @@ const SdConfirmModal = class {
|
|
|
115
115
|
const type = this.resolvedType;
|
|
116
116
|
const iconName = CONFIRM_MODAL_ICON_MAP[type];
|
|
117
117
|
const iconColor = CONFIRM_MODAL_ICON_COLOR[type];
|
|
118
|
-
return (h("div", { key: '
|
|
118
|
+
return (h("div", { key: '396bef971efaab6638586fa1a067eae54c1897f4', class: "sd-confirm-modal" }, h("sd-ghost-button", { key: '4716168808371f4515bf763e77198386fc9fe7cf', class: "sd-confirm-modal__close-button", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() }), iconName && (h("sd-icon", { key: '1ab7ca2c5262374a0823a8e5c501758433c25051', class: "sd-confirm-modal__icon", name: iconName, size: TITLE_ICON_SIZE, color: iconColor })), h("h2", { key: 'a190f975d27153e4d928c95395f13ecd8ba0667a', class: `sd-confirm-modal__title ${this.titleClass ?? ''}` }, this.modalTitle), h("div", { key: 'da7821097377b7a9781df87ae40b2439a103ff9b', class: "sd-confirm-modal__body" }, (this.topMessage ?? []).length > 0 && (h("div", { key: 'ced23315888ad43b3d91b8bb5388b77e517dd52a', class: "sd-confirm-modal__message" }, (this.topMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: sanitizeInlineHtml(msg) }))))), this.showContentBox && (h("div", { key: '5bdbe145bdb6639ebe582e7295f413a4b1990c15', class: "sd-confirm-modal__content-box" }, this.tagContents ? (h("div", { class: "sd-confirm-modal__custom-content", ref: el => {
|
|
119
119
|
this.customContentRef = el;
|
|
120
|
-
} })) : (h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && (h("sd-tag", { name: this.tagPreset ?? 'square_sm_grey', label: this.tagLabel })), this.slotLabel && (h("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (h("div", { key: '
|
|
120
|
+
} })) : (h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && (h("sd-tag", { name: this.tagPreset ?? 'square_sm_grey', label: this.tagLabel })), this.slotLabel && (h("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (h("div", { key: 'e99adc95c95be16945407d54833164908aad0b50', class: "sd-confirm-modal__message" }, (this.bottomMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: sanitizeInlineHtml(msg) })))))), h("div", { key: '20a6660323e1d9f4ee096f0c07bf0596f5a2445a', class: "sd-confirm-modal__button" }, this.subButtonLabel && (h("sd-button", { key: '73141dd6fc6f703bff11e71ca9820cf3e1045466', name: SUB_BUTTON_PRESET, label: this.subButtonLabel, onSdClick: () => this.cancel.emit() })), h("sd-button", { key: 'bed2d910b4b35d59897e14222f86f20a7e8c3bde', name: this.resolvedMainButton, label: this.mainButtonLabel ?? '확인', onSdClick: () => this.ok.emit() }))));
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
123
|
SdConfirmModal.style = sdConfirmModalCss();
|
|
@@ -209,7 +209,7 @@ const SdLoadingModal = class {
|
|
|
209
209
|
'--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
|
|
210
210
|
'--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
|
|
211
211
|
};
|
|
212
|
-
return (h(Host, { key: '
|
|
212
|
+
return (h(Host, { key: '9656d6f5adb9fdad989f9f5ecae7917c3bac76db', style: hostStyle }, h("div", { key: '15ed3e3d53785d66d1bdbbfe7391ba63572aff3b', class: "sd-loading-modal" }, h("div", { key: '27a949450dd9bd2e68320a3bf6d3ce1c671a3f37', class: "sd-loading-modal__content" }, this.resolvedState === 'loading' ? (this.progress !== undefined ? (h("sd-circle-progress", { value: this.progress })) : (h("sd-circle-progress", { indeterminate: true }))) : (h("sd-icon", { class: "sd-loading-modal__icon", name: "warningOutline", size: LOADING_MODAL_LAYOUT.contentSize, color: LOADING_MODAL_COLORS.errorIcon }))), h("div", { key: '258def7abc8017fea2d22ca19fc2c4f82943c5b2', class: "sd-loading-modal__message-wrapper" }, Array.isArray(this.resolvedMessage) ? (this.resolvedMessage.map(message => (h("p", { class: "sd-loading-modal__message" }, message)))) : (h("p", { class: "sd-loading-modal__message" }, this.resolvedMessage))), this.useButton && (h("div", { key: '6bce1bdc0661f468f4e58935bb38d1a0bb76b9ad', class: "sd-loading-modal__button" }, h("sd-button", { key: 'b7e37e71fff646701fe9afc0df925709bac14835', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
|
|
213
213
|
}
|
|
214
214
|
};
|
|
215
215
|
SdLoadingModal.style = sdLoadingModalCss();
|
|
@@ -127,9 +127,9 @@ const SdDatePicker = class {
|
|
|
127
127
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
128
128
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
129
129
|
};
|
|
130
|
-
return (h("sd-field", { key: '
|
|
130
|
+
return (h("sd-field", { key: '4359c9ce80bfc919088774a4458c730c427aa3f5', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '638f4e59c9a7c5c841428c424181b3d2320857eb', class: "sd-date-picker", ref: el => {
|
|
131
131
|
this.triggerRef = el;
|
|
132
|
-
} }, h("sd-date-picker-trigger", { key: '
|
|
132
|
+
} }, h("sd-date-picker-trigger", { key: 'cbfe2bee0fdea1f089860cf3a7da9b7e35327c87', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: 'a348437c5f9f53180cc7f74d5b275e4f3fbedea6', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-calendar", { key: '7dd08053b3a24d25e6149d4bc751c75eff94f752', elevated: true, value: this.value, selectable: this.selectable, onSdUpdate: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
133
133
|
}
|
|
134
134
|
static get watchers() { return {
|
|
135
135
|
"isOpen": [{
|
|
@@ -766,12 +766,12 @@ const SdInput = class {
|
|
|
766
766
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
767
767
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
768
768
|
};
|
|
769
|
-
return (h("sd-field", { key: '
|
|
769
|
+
return (h("sd-field", { key: 'b29a9d582bd8993bd5c31c70bab02ff553f2e167', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: '1a6ad118628ab8cb9282953c618ca61898cf241a', class: "sd-input__content" }, h("slot", { key: '4de06d36b71ce2cad70a735e7620c2d320973962', name: "prefix" }), h("input", { key: '11c448201927a769c56fd1500ba8dd164d1b695a', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : (this.type ?? 'text'), value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '4ac88a21df8e2feaa67a68cab9fca4e24985d17d', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && !this.readonly && (h("sd-ghost-button", { key: '0985e2ed631ee746793563a22d766545a34d1562', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
770
770
|
if (this.disabled || this.readonly)
|
|
771
771
|
return;
|
|
772
772
|
this.internalValue = '';
|
|
773
773
|
await this.formField?.sdValidate();
|
|
774
|
-
} })), this.type === 'password' && (h("sd-ghost-button", { key: '
|
|
774
|
+
} })), this.type === 'password' && (h("sd-ghost-button", { key: '16300e673a9c93209c403ec788217ba301c1d2e6', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled || this.readonly, class: "sd-input__password-icon", onClick: () => {
|
|
775
775
|
if (this.disabled || this.readonly)
|
|
776
776
|
return;
|
|
777
777
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -1196,15 +1196,15 @@ const SdNumberInput = class {
|
|
|
1196
1196
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
1197
1197
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
1198
1198
|
};
|
|
1199
|
-
return (h("sd-field", { key: '
|
|
1199
|
+
return (h("sd-field", { key: '581504f245674e1644f672aa77dd22f710a3c766', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: 'f17872e37d0b0369061deb508d44ce7ae4943c5b', class: {
|
|
1200
1200
|
'sd-number-input__content': true,
|
|
1201
1201
|
'sd-number-input__content--no-stepper': !this.useButton,
|
|
1202
|
-
} }, this.useButton && (h("button", { key: '
|
|
1202
|
+
} }, this.useButton && (h("button", { key: 'b513ee5c44e2475ab751dae3a333e95405c9a319', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '172dcff1a3559008183bed32c30ec02d98c12664', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
1203
1203
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
1204
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && h("span", { key: '
|
|
1204
|
+
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && h("span", { key: '24d631ea8330ed6e90f2aa77e46707867ff57539', class: "sd-number-input__prefix" }, this.inputPrefix), h("input", { key: 'ed0c70a534f1f6e246a407073aee9efa3a222b01', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
|
|
1205
1205
|
textAlign: this.useButton ? 'center' : 'right',
|
|
1206
1206
|
...this.inputStyle,
|
|
1207
|
-
} }), this.inputSuffix && h("span", { key: '
|
|
1207
|
+
} }), this.inputSuffix && h("span", { key: '7129df3b5cf544301cadaf5111e98ddcf3e7a340', class: "sd-number-input__suffix" }, this.inputSuffix), this.useButton && (h("button", { key: 'd5cb9acd77be94e494fb4af3b78001cd22dbfe3c', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: 'dba88711bda7f5522425d96187bce402c8516fff', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
1208
1208
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
1209
1209
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
1210
1210
|
}
|
|
@@ -1426,7 +1426,7 @@ const SdTextarea = class {
|
|
|
1426
1426
|
'--sd-system-size-field-sm-height': 'auto',
|
|
1427
1427
|
'--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
|
|
1428
1428
|
};
|
|
1429
|
-
return (h("sd-field", { key: '
|
|
1429
|
+
return (h("sd-field", { key: 'dfa331524cbbac728c961c7a27d6c8dbd83853f4', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: 'bd2d6d4b537364e28992971279d3278021b1ab5a', class: "sd-textarea__content" }, h("textarea", { key: '270d55c84255a43153ed5f5cfdeed586c38d0cf1', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readOnly: this.readonly, autofocus: this.autoFocus, maxLength: this.maxLength, rows: this.rows, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.textareaStyle }))));
|
|
1430
1430
|
}
|
|
1431
1431
|
static get watchers() { return {
|
|
1432
1432
|
"value": [{
|
|
@@ -270,7 +270,7 @@ const SdDateRangePickerCalendar = class {
|
|
|
270
270
|
'--range-panel-gap': `${RANGE_LAYOUT.panelGap}px`,
|
|
271
271
|
'--range-divider': RANGE_LAYOUT.divider,
|
|
272
272
|
};
|
|
273
|
-
return (h(Fragment, { key: '
|
|
273
|
+
return (h(Fragment, { key: '4502cc08eb9df7c24cdc9f22564fb2a4a0b2736e' }, h("div", { key: '9da4356920cbce83c548a4c5f40cb2af9e36a257', class: "sd-date-range-picker-calendar", style: cssVars }, this.renderYearNav(), h("div", { key: 'a8117206cd3d9368a86f4cc307037461c1314aad', class: "sd-date-range-picker-calendar__panels" }, this.renderPanel(this.currentYear, this.currentMonth, true), h("span", { key: '0f6cbaf53781429b3de08aa992a45f2c26444625', class: "sd-date-range-picker-calendar__divider", "aria-hidden": "true" }), this.renderPanel(this.rightYear, this.rightMonth, false)))));
|
|
274
274
|
}
|
|
275
275
|
static get watchers() { return {
|
|
276
276
|
"value": [{
|
|
@@ -17,7 +17,7 @@ const SdDivider = class {
|
|
|
17
17
|
const hostStyle = {
|
|
18
18
|
'--sd-divider-color': DIVIDER_COLORS.default,
|
|
19
19
|
};
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '73be9d4cc38b230e4cff7f8ebcdc81bd2d56e0e7', style: hostStyle }, h("hr", { key: 'a4da09faca453df8cb6ea3ed00609d4e0c238a7a', "aria-orientation": this.vertical ? 'vertical' : 'horizontal' })));
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
SdDivider.style = sdDividerCss();
|
|
@@ -237,18 +237,18 @@ const SdField = class {
|
|
|
237
237
|
: {}),
|
|
238
238
|
}
|
|
239
239
|
: {};
|
|
240
|
-
return (h("div", { key: '
|
|
240
|
+
return (h("div", { key: '7673ab0d94a03bcfa42381c961e749cd083d7af0', class: {
|
|
241
241
|
'sd-field': true,
|
|
242
242
|
'sd-field--has-label': this.label !== '',
|
|
243
243
|
'sd-field--has-addon': addon !== '',
|
|
244
244
|
[this.fieldStatus]: this.fieldStatus !== '',
|
|
245
|
-
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars, ...messageCssVars } }, h("div", { key: '
|
|
245
|
+
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars, ...messageCssVars } }, h("div", { key: '00c5056105b72f143a8c4249b8cd3b6a60fb6d1d', class: "sd-field__wrapper" }, this.renderLabel(this.label), h("div", { key: 'e99461246fa8ceadaf7a43f1c62c474caa160972', class: "sd-field__main" }, h("div", { key: '6bf754d3a167b1ca4f23d2e1d260643e278e85f6', class: {
|
|
246
246
|
'sd-field__control': true,
|
|
247
247
|
'sd-field__control--has-addon': addon !== '',
|
|
248
248
|
}, style: this.width !== '' && this.width !== 0
|
|
249
249
|
? { width: typeof this.width === 'number' ? `${this.width}px` : this.width }
|
|
250
|
-
: {} }, addon && (h("div", { key: '
|
|
251
|
-
Number(FIELD_LABEL_SIZE_MAP[(this.size in FIELD_LABEL_SIZE_MAP ? this.size : 'sm')].icon), color: this.icon.color, rotate: this.icon.rotate })), addon)), h("slot", { key: '
|
|
250
|
+
: {} }, addon && (h("div", { key: '2d9acde5ecaeb32a94e1ba33c408160a2f2da46f', class: "sd-field__addon" }, this.icon && (h("sd-icon", { key: 'a0916124710c29478feffef96efdaffe599d4bc7', name: this.icon.name, size: this.icon.size ??
|
|
251
|
+
Number(FIELD_LABEL_SIZE_MAP[(this.size in FIELD_LABEL_SIZE_MAP ? this.size : 'sm')].icon), color: this.icon.color, rotate: this.icon.rotate })), addon)), h("slot", { key: '2e4690a4678ca40deb9e023baae24a44fd4da959' })), this.errorMsg !== '' || this.errorMessage !== '' ? (h("div", { class: "sd-field__error-message" }, this.errorMsg !== '' ? this.errorMsg : this.errorMessage)) : (this.hint !== '' && h("div", { class: "sd-field__hint" }, this.hint))))));
|
|
252
252
|
}
|
|
253
253
|
renderLabel(label) {
|
|
254
254
|
if (label == null || label === '')
|
|
@@ -439,7 +439,7 @@ const SdFloatingPopover = class {
|
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
render() {
|
|
442
|
-
return h("slot", { key: '
|
|
442
|
+
return h("slot", { key: '56deedcae378d170d9debca4cf1a07599f31dfc5' });
|
|
443
443
|
}
|
|
444
444
|
};
|
|
445
445
|
SdFloatingPopover.style = sdFloatingPortalCss();
|
|
@@ -615,7 +615,7 @@ const SdTooltip = class {
|
|
|
615
615
|
const bodyHTML = this.message && this.message.length > 0
|
|
616
616
|
? this.message.map(line => `<div>${line}</div>`).join('')
|
|
617
617
|
: this.slotContentHTML;
|
|
618
|
-
return (h(Fragment, { key: '
|
|
618
|
+
return (h(Fragment, { key: 'cd0c166191a9f83a11891786cd246a268d50b349' }, h("div", { key: '9e2872936629b886b779852c51f57874466edfb5', ref: el => (this.triggerEl = el), class: triggerClasses, ...divTrigger }, anchorMode ? (h("slot", { name: "anchor" })) : hasLabel ? (h("sd-button", { ref: el => (this.buttonEl = el), name: this.name ?? 'primary_sm', label: this.label, icon: icon, rightIcon: this.rightIcon, ariaLabel: this.ariaLabel, disabled: this.disabled, type: this.type ?? 'button', class: "sd-tooltip", ...buttonClickTrigger })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: this.iconSize ?? 12, color: color, class: "sd-tooltip" }))), this.showTooltip && (h("sd-floating-portal", { key: '2db92e0d56a1a6cee04ab5f23f6bbe00fc279351', parentRef: anchorMode ? this.triggerEl : this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.tooltipOffset }, h("div", { key: 'a4635141d3e9aa630be80b2b6071a5ba16de257d', ref: el => (this.menuEl = el), class: {
|
|
619
619
|
'sd-floating-menu': true,
|
|
620
620
|
[`sd-floating-menu--${tooltipType}`]: true,
|
|
621
621
|
[`sd-floating-menu--${placement}`]: true,
|
|
@@ -623,7 +623,7 @@ const SdTooltip = class {
|
|
|
623
623
|
}, style: {
|
|
624
624
|
'--sd-floating-bg': typeConfig.bg,
|
|
625
625
|
'--sd-floating-content': typeConfig.content,
|
|
626
|
-
}, onMouseEnter: () => this.openTooltip(), onMouseLeave: () => !this.useClose && this.startHideTimer() }, h("i", { key: '
|
|
626
|
+
}, onMouseEnter: () => this.openTooltip(), onMouseLeave: () => !this.useClose && this.startHideTimer() }, h("i", { key: 'cf7f3186dd7c9cbf001700bd29de05480e807533', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, h(TooltipArrow, { key: '4aca7fbbc159bf61c9488a38431e0bcc40172446' })), h("div", { key: 'ffa09626b16742e6d774944bf8536def2b250519', class: "sd-floating-menu__content", innerHTML: bodyHTML }), this.useClose && (h("sd-ghost-button", { key: '934529cc6c8c4a46a09b7dd03baec6666029f169', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xxs", onClick: () => this.closeTooltip() })))))));
|
|
627
627
|
}
|
|
628
628
|
};
|
|
629
629
|
SdTooltip.style = sdTooltipCss();
|
|
@@ -471,7 +471,7 @@ const SdPortal = class {
|
|
|
471
471
|
this.close.emit();
|
|
472
472
|
}
|
|
473
473
|
render() {
|
|
474
|
-
return h("slot", { key: '
|
|
474
|
+
return h("slot", { key: '623ee5423b145701ba9dd801d44874214f7a76e3' });
|
|
475
475
|
}
|
|
476
476
|
static get watchers() { return {
|
|
477
477
|
"open": [{
|
|
@@ -699,7 +699,7 @@ const SdTag = class {
|
|
|
699
699
|
const config = this.resolvedConfig;
|
|
700
700
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
701
701
|
const width = this.resolvedWidth;
|
|
702
|
-
return (h(Host, { key: '
|
|
702
|
+
return (h(Host, { key: '37bb1fefd51f583b0a9dde9fe46cf843a48e8e13', style: width != null ? { '--sd-tag-width': width } : undefined }, h("span", { key: 'e996471849834802eaeff02abaadee1a2addac4f', class: "sd-tag", style: {
|
|
703
703
|
'--sd-tag-background': config.background,
|
|
704
704
|
'--sd-tag-content': config.content,
|
|
705
705
|
'--sd-tag-height': config.height,
|
|
@@ -709,7 +709,7 @@ const SdTag = class {
|
|
|
709
709
|
'--sd-tag-font-weight': config.fontWeight,
|
|
710
710
|
'--sd-tag-line-height': config.lineHeight,
|
|
711
711
|
'--sd-tag-radius': config.radius,
|
|
712
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: '
|
|
712
|
+
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: '2e63073d1950046747521071ba5db5f9a404acef', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode)));
|
|
713
713
|
}
|
|
714
714
|
};
|
|
715
715
|
SdTag.style = sdTagCss();
|
|
@@ -50,7 +50,7 @@ const SdLinearProgress = class {
|
|
|
50
50
|
clipPath: `inset(0 ${100 - this.clampedValue}% 0 0)`,
|
|
51
51
|
};
|
|
52
52
|
const valueText = `${Math.round(this.clampedValue)}%`;
|
|
53
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: '2c2024fc61418c73913dc0333ddef93e667fa6f0', style: hostStyle }, h("div", { key: '44fac7a5a5795451ab8fc7c5538161cb974c3b4f', class: "sd-linear-progress__track" }, h("div", { key: '050f19c7c2ae6f14f744a1a33f933b97d9d5d448', class: "sd-linear-progress__fill", style: fillStyle }), !this.indeterminate && (h("span", { key: '70233788c6f8b5d89ec1123e40cc97c89a9d20c4', class: "sd-linear-progress__value sd-linear-progress__value--on-track" }, valueText)), !this.indeterminate && (h("span", { key: 'f2df0a4d96ca1224b902a360f4f1ef4856405ed6', class: "sd-linear-progress__value sd-linear-progress__value--on-fill", style: valueOnFillStyle }, valueText))), this.label && h("span", { key: '00d72060f073ad6e046d7c68f248df6622f87088', class: "sd-linear-progress__label" }, this.label)));
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
SdLinearProgress.style = sdLinearProgressCss();
|
|
@@ -18,10 +18,10 @@ const SdLoadingContainer = class {
|
|
|
18
18
|
this.visible = false;
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h("div", { key: '
|
|
21
|
+
return (h("div", { key: 'be8150fa2321621b2761f886fe96dc4a9177de64', class: {
|
|
22
22
|
'sd-loading-container': true,
|
|
23
23
|
'sd-loading-container--visible': this.visible,
|
|
24
|
-
}, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: '
|
|
24
|
+
}, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: '268f97c036ab8a15c465469ee467aa6a962e9bf0', class: "sd-loading-container__backdrop" }), h("div", { key: 'e7f8fcbffdfe462890706e896a476de7f734166e', class: "sd-loading-container__content" }, h("sd-circle-progress", { key: '60e52996e7ba895a0375f344431e721c8bd34753', indeterminate: true, type: "inverse" }), this.message && h("p", { key: 'c7cbf5b183a22a3b9f693bb427057d3fa9611724', class: "sd-loading-container__message" }, this.message))));
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
SdLoadingContainer.style = sdLoadingContainerCss();
|
|
@@ -156,13 +156,13 @@ const SdPagination = class {
|
|
|
156
156
|
'--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
|
|
157
157
|
'--sd-pagination-item-width': `${this.buttonWidth}px`,
|
|
158
158
|
};
|
|
159
|
-
return (h("div", { key: '
|
|
159
|
+
return (h("div", { key: '1ab90aa479a2ec1985a79efbcb48f0453ce670a9', class: {
|
|
160
160
|
'sd-pagination': true,
|
|
161
161
|
'sd-pagination--simple': this.simple,
|
|
162
|
-
}, style: cssVars }, h("div", { key: '
|
|
162
|
+
}, style: cssVars }, h("div", { key: 'd5e9fdd9f221536f5eb404095b2b6d052aaa6a9e', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "sd-pagination__info" }, h("span", { class: "sd-pagination__current" }, this.currentPage), h("span", { class: "sd-pagination__divider" }, "/"), h("span", { class: "sd-pagination__last" }, this.lastPage))) : (h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
163
163
|
'sd-pagination__item': true,
|
|
164
164
|
'sd-pagination__item--selected': this.currentPage === n,
|
|
165
|
-
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: '
|
|
165
|
+
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: 'a48d39b7db769a39f58e4b399aa7bb1d15748934', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
168
|
SdPagination.style = sdPaginationCss();
|
|
@@ -218,9 +218,9 @@ const SdTbody = class {
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
render() {
|
|
221
|
-
return (h(Host, { key: '
|
|
221
|
+
return (h(Host, { key: 'e8d3873248658b9899e4daf1d6ffb1c60ad658e4', slot: `${this.tableId}-body` }, h("tbody", { key: 'ae9617a588e45bce5ffaa50bc300fdd038b1db1e', class: { tbody: true } }, [
|
|
222
222
|
this.topSpacerHeight > 0 && (h("tr", { key: "spacer-top", class: "tbody__spacer", style: { height: `${this.topSpacerHeight}px`, display: 'block' } })),
|
|
223
|
-
h("slot", { key: '
|
|
223
|
+
h("slot", { key: '1bd8ca3179ad36584813c14e1df1c1c175fcf77b' }),
|
|
224
224
|
this.bottomSpacerHeight > 0 && (h("tr", { key: "spacer-bottom", class: "tbody__spacer", style: { height: `${this.bottomSpacerHeight}px`, display: 'block' } })),
|
|
225
225
|
])));
|
|
226
226
|
}
|
|
@@ -478,16 +478,16 @@ const SdThead = class {
|
|
|
478
478
|
'--table-border-color': TABLE_BORDER.color,
|
|
479
479
|
'--table-border-width': `${TABLE_BORDER.width}px`,
|
|
480
480
|
};
|
|
481
|
-
return (h(Host, { key: '
|
|
481
|
+
return (h(Host, { key: '89bb8a5873c480544cc6a298ca9738577469ae43', slot: `${this.tableId}-head`, style: headStyle }, h("thead", { key: '390aad02b5e42bc39c9eb72091b1bcb54eae8098', class: {
|
|
482
482
|
'thead': true,
|
|
483
483
|
'thead--sticky': this._stickyHeader,
|
|
484
|
-
} }, h("tr", { key: '
|
|
484
|
+
} }, h("tr", { key: 'a5889ed5b9fe810590f1c1d869aa6b72dabe195b', class: "tr" }, this._selectable && (h("th", { key: '8cf6b81cd5b02cf08597b1b4f8d1b858f10d9403', class: {
|
|
485
485
|
'th': true,
|
|
486
486
|
'th--selected': true,
|
|
487
487
|
'sticky-left': true,
|
|
488
488
|
'sticky-left-edge': stickyLeftCount === 0,
|
|
489
489
|
'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
|
|
490
|
-
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '
|
|
490
|
+
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '94b92d786fde6d5382e7955f97e54915597c04ad', value: this.getIsAllChecked(), disabled: safeRows.length === 0, onSdUpdate: (e) => this.handleSelectAll(e.detail) }), h("div", { key: 'fefd1a1de41b524e0525e60684bec2fb85ac9db6', class: "th__bar" }))), stickyLeftCols.map((col, idx) => (h("th", { key: col.name, class: {
|
|
491
491
|
'th': true,
|
|
492
492
|
[`${col.thClass}`]: Boolean(col.thClass),
|
|
493
493
|
'sticky-left': true,
|
|
@@ -107,7 +107,7 @@ const SdPopup = class {
|
|
|
107
107
|
...DEFAULT_SUBMIT_BUTTON_PROPS,
|
|
108
108
|
...this.submitButtonProps,
|
|
109
109
|
};
|
|
110
|
-
return (h("div", { key: '
|
|
110
|
+
return (h("div", { key: '5593e53ba5d8c098c3a3fea4a4ca20769457e322', class: `sd-popup sd-popup--${this.type}`, style: cssVars }, h("header", { key: 'e940d310e28c6b5ec34cc46b1a0aa3c8d7c37aed', class: "sd-popup__header" }, h("h2", { key: '367b21377987bb85ff453d05f314ac2cd76ac6be', class: "sd-popup__title" }, this.popupTitle)), h("div", { key: '58c31c4d783cf957a6e84bc17f63a2ccb188c1e0', class: "sd-popup__body" }, h("slot", { key: '712ccc5b1e2e3ba24757e8a0d258b8af40a1dcc8' })), this.useFooter && (h("footer", { key: 'ff34ebe19afaceb1594726296245ec2a12ce2eec', class: "sd-popup__footer" }, h("div", { key: 'cfefab877abd29701e17ed7381ace27db0198ab6', class: "sd-popup__footer-slot sd-popup__footer-slot--left" }, h("slot", { key: '2947626fed14fba3778ddede7e1c8a868b7aba4a', name: "footer-left" })), h("sd-button", { key: 'ed0b0d43812d5d2ca28993b0f8ff2363684a9016', ...submitButtonProps, class: "sd-popup__submit", onSdClick: () => this.submit.emit() })))));
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
SdPopup.style = sdPopupCss();
|
|
@@ -86,7 +86,7 @@ const SdSelectListItem = class {
|
|
|
86
86
|
return (
|
|
87
87
|
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
88
88
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
89
|
-
h("div", { key: '
|
|
89
|
+
h("div", { key: 'ffd420e1d1a6ff395ed3fff94cbaba66f71644ac', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
90
90
|
'sd-select-list-item': true,
|
|
91
91
|
'sd-select-list-item--group': isGroup,
|
|
92
92
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -96,7 +96,7 @@ const SdSelectListItem = class {
|
|
|
96
96
|
'sd-select-list-item--focused': this.isFocused,
|
|
97
97
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
98
98
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
99
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '
|
|
99
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '4bc492e2021f255cb87344bd0498023b50d89c8a', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, inverse: this.isFocused && this.isSelected !== false, class: "sd-select-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), isHtmlLabel(this.option.label) ? (h("span", { class: "sd-select-list-item__label", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.option.label)) })) : (h("span", { class: "sd-select-list-item__label" }, this.option.label)), this.countInfo && (h("span", { key: '34a7671fa3f6ec1bff7c302f02bb4bfd7a113ce5', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
SdSelectListItem.style = sdSelectListItemCss();
|
|
@@ -153,15 +153,15 @@ const SdSelectListItemSearch = class {
|
|
|
153
153
|
clearTimeout(this.debounceTimer);
|
|
154
154
|
}
|
|
155
155
|
render() {
|
|
156
|
-
return (h("div", { key: '
|
|
156
|
+
return (h("div", { key: 'e18205c606d8a47de3cd98be6ddad0c9a1ed4f5a', class: {
|
|
157
157
|
'sd-select-list-item-search': true,
|
|
158
158
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
159
|
-
} }, h("div", { key: '
|
|
159
|
+
} }, h("div", { key: '220a830db70628b4a240d19791db5090c6112cbf', class: "sd-select-list-item-search__inner" }, h("sd-icon", { key: 'f7680be3c49045f318887a2cd955e84ee4ea6646', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), h("input", { key: '94face3b593e33db6230ede587de77e5cb158774', ref: el => {
|
|
160
160
|
this.inputEl = el;
|
|
161
|
-
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: '
|
|
161
|
+
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: '38f9de8c7ebf98aea2ef03ce9ddbb03cb9f29f81', type: "button", class: {
|
|
162
162
|
'sd-select-list-item-search__clear': true,
|
|
163
163
|
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
164
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: '
|
|
164
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: 'fe32e9e44afbaa0f7ad07db665022839facbaf83', name: "close", size: 12, color: "#888888" })))));
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
167
|
SdSelectListItemSearch.style = sdSelectListItemSearchCss();
|
|
@@ -294,15 +294,15 @@ const SdSelect = class {
|
|
|
294
294
|
this.closeDropdown();
|
|
295
295
|
},
|
|
296
296
|
};
|
|
297
|
-
return (h("sd-field", { key: '
|
|
297
|
+
return (h("sd-field", { key: '0864fe68a337d4bab526fa61570e856c8eff6d1c', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
|
|
298
298
|
this.hovered = true;
|
|
299
299
|
}, onMouseLeave: () => {
|
|
300
300
|
this.hovered = false;
|
|
301
|
-
} }, h("div", { key: '
|
|
301
|
+
} }, h("div", { key: '781819ed75f47395e96fd6808766e6bb8c246fa5', class: "sd-select", ref: el => {
|
|
302
302
|
this.triggerRef = el;
|
|
303
|
-
} }, h("sd-select-trigger", { key: '
|
|
303
|
+
} }, h("sd-select-trigger", { key: '8cebad98f0cd4b333954a55857aec3fbb6f3d283', ref: el => {
|
|
304
304
|
this.triggerComponentRef = el;
|
|
305
|
-
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '
|
|
305
|
+
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: 'fe68f0b01256e1c1d3200f9f5fd17c2adf97f0e0', ...portalProps }, h("sd-select-listbox", { key: '98368524ef06a6d752f2313756a89ae6e8c05955', type: this.type, options: this.options, value: this.value, emitValue: this.emitValue, useSearch: this.useSearch, useSelectAll: this.useSelectAll, triggerWidth: this.dropdownWidth || this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
306
306
|
}
|
|
307
307
|
static get watchers() { return {
|
|
308
308
|
"isOpen": [{
|
|
@@ -679,9 +679,9 @@ const SdSelectListbox = class {
|
|
|
679
679
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
680
680
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
681
681
|
};
|
|
682
|
-
return (h("div", { key: '
|
|
682
|
+
return (h("div", { key: 'bb8c7f22a164d29e30d2f9da7740883daef4fc27', class: "sd-select-listbox", style: cssVars }, this.showSearch && (h("sd-select-list-item-search", { key: 'ac1b06b12ec20d2b9d57ca3b4074b3752b5da5e1', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), h("div", { key: '2c7735e7098090762f573d63c2673d6face702c1', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
683
683
|
this.listEl = el;
|
|
684
|
-
} }, this.showSelectAll && (h("sd-select-list-item", { key: '
|
|
684
|
+
} }, this.showSelectAll && (h("sd-select-list-item", { key: '5377511fd55f0d34056ad64707265dd2cc86afc4', option: SdSelectListbox.SELECT_ALL_OPTION, depth: 1, isSelected: this.selectAllState, isFocused: this.isOptionFocused(SdSelectListbox.SELECT_ALL_OPTION), useCheckbox: true, onSdListItemClick: this.handleSelectAllClick, onMouseEnter: () => this.handleOptionHover(SdSelectListbox.SELECT_ALL_OPTION) })), this.isEmpty ? (h("div", { class: "sd-select-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (h("sd-select-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
|
|
685
685
|
}
|
|
686
686
|
static get watchers() { return {
|
|
687
687
|
"searchKeyword": [{
|
|
@@ -749,7 +749,7 @@ const SdSelectTrigger = class {
|
|
|
749
749
|
? SELECT_COLORS.icon.disabled
|
|
750
750
|
: SELECT_COLORS.icon.default,
|
|
751
751
|
};
|
|
752
|
-
return (h("div", { key: '
|
|
752
|
+
return (h("div", { key: 'b2f140907d6e4454a3adfb9d3dd9babd9058c178', ref: el => {
|
|
753
753
|
this.triggerEl = el;
|
|
754
754
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
755
755
|
'sd-select-trigger': true,
|
|
@@ -760,7 +760,7 @@ const SdSelectTrigger = class {
|
|
|
760
760
|
e.preventDefault();
|
|
761
761
|
this.handleClick();
|
|
762
762
|
}
|
|
763
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '
|
|
763
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '6803bc50c5f62dce1b1e9d874559f8ca5fca7b75', class: "sd-select-trigger__content" }, hasValue && isHtmlLabel(this.displayText) ? (h("span", { class: "sd-select-trigger__text", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.displayText)) })) : (h("span", { class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택'))), h("sd-icon", { key: '397264b3179fb6699c1ee5454f76ac9d0779488c', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
764
764
|
'sd-select-trigger__icon': true,
|
|
765
765
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
766
766
|
} }))));
|
|
@@ -107,7 +107,7 @@ const SdSwitch = class {
|
|
|
107
107
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
108
108
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
109
109
|
};
|
|
110
|
-
return (h("label", { key: '
|
|
110
|
+
return (h("label", { key: 'ae476f0bb6600cdb10bafd1a06ced3e60d50a2f6', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, h("input", { key: '765320376e0cd0ec82b980a264b979c381907f75', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), h("div", { key: 'f00db86513aa3da5c17a5a7e13d5928806a6fc0a', class: "sd-switch__track" }, h("div", { key: '12f2f817acace26a8cbfc9075e0319f3e5c2ada4', class: "sd-switch__knob" })), this.label && h("span", { key: '24598221b90e8ea9504ff80a464a10e3e5310e98', class: "sd-switch__label" }, this.label)));
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
SdSwitch.style = sdSwitchCss();
|
|
@@ -878,25 +878,25 @@ const SdTable = class {
|
|
|
878
878
|
'--table-selectable-width': `${TABLE_SELECTABLE_COLUMN_WIDTH}px`,
|
|
879
879
|
'--table-host-height': hostHeight,
|
|
880
880
|
};
|
|
881
|
-
return (h(Host, { key: '
|
|
881
|
+
return (h(Host, { key: 'd080b561e43c55d34a5f1f6571991183ebdd39b7', style: hostStyle }, h("div", { key: '0ef7831905dca8fde2bb8eb6cde81e1fd9706074', class: "sd-table__container", style: {
|
|
882
882
|
'--table-width': this.width,
|
|
883
883
|
'--pagination-height': `${paginationHeight}px`,
|
|
884
|
-
} }, h("div", { key: '
|
|
884
|
+
} }, h("div", { key: 'c6a836574f4b4c3cd72a3718061dcf727d1ec823', class: {
|
|
885
885
|
'sd-table__wrapper': true,
|
|
886
886
|
'sd-table__wrapper--radius-useTop': this.radius === 'useTop',
|
|
887
887
|
'sd-table__wrapper--radius-full': this.radius === 'full',
|
|
888
|
-
} }, h("div", { key: '
|
|
888
|
+
} }, h("div", { key: '8343d8c82c4575733254ad92c968fbbb1588af1f', class: {
|
|
889
889
|
'sd-table__scroll-container': true,
|
|
890
890
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
891
891
|
'sd-table__scroll-container--no-data': isNoData,
|
|
892
|
-
} }, this.isLoading && (h("div", { key: '
|
|
892
|
+
} }, this.isLoading && (h("div", { key: 'a6e049c2c1f5f825d874f25e184efb1915713074', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, h("sd-circle-progress", { key: 'ea110a9e185c3af02c9d0da3c2c36bd675952696', indeterminate: true }))), isNoData && (h(h.Fragment, null, h("div", { key: '56861d20b5bd57ed3f43f5774e67cc4ae7e6c947', class: "sd-table__no-data-header-overlay" }), h("div", { key: '19e463e0524b09ca72ba457b66f97dfd97fddf95', class: "sd-table__no-data" }, h("div", { key: 'ed0c669a55a562772d37d89f7f332759a73fbab6', class: "sd-table__no-data-content", ref: el => {
|
|
893
893
|
this.noDataContentEl = el;
|
|
894
894
|
if (el)
|
|
895
895
|
this.syncNoDataContentObserver();
|
|
896
|
-
} }, h("slot", { key: '
|
|
896
|
+
} }, h("slot", { key: '06998e931804fb94b95df49a5c4b6c5976cefe41', name: "no-data" }, h("span", { key: '4f639ae85d63f516f593f2d88d788f96ba7c538f' }, this.resolvedNoDataLabel)))))), h("table", { key: 'a32058798111bfa84bf81279bcf424d2423cebfa', class: this.tableClasses }, this.autoThead ? (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, h("sd-thead", { rows: this.rows ?? [] }))) : (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
897
897
|
this.pagination.rowsPerPage > 0 &&
|
|
898
898
|
this.rowCount > 0 &&
|
|
899
|
-
!this.useVirtualScroll && (h("div", { key: '
|
|
899
|
+
!this.useVirtualScroll && (h("div", { key: '9d1c500b147c2b11ea2df7cb095d9b28527b6902', class: "sd-table__pagination" }, h("sd-pagination", { key: 'c476d8326991890de9fd82311b0c90f0d4b92bb0', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (h("sd-select", { key: '275dfb2c4c3bb4c76ce71c123795d967aa155bf8', value: this.useInternalPagination
|
|
900
900
|
? this.innerRowsPerPage
|
|
901
901
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
902
902
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -205,7 +205,7 @@ const SdTabs = class {
|
|
|
205
205
|
};
|
|
206
206
|
}
|
|
207
207
|
render() {
|
|
208
|
-
return (h("div", { key: '
|
|
208
|
+
return (h("div", { key: 'f43d5e2e441e11b57d488f8fe612a4e555006c2e', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index) => {
|
|
209
209
|
const badgeName = this.getBadgeName(tab);
|
|
210
210
|
return (h("div", { key: `tab-${index}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
|
|
211
211
|
if (e.key === 'Enter' || e.key === ' ') {
|
package/dist/esm/sd-td.entry.js
CHANGED
|
@@ -165,7 +165,7 @@ const SdTd = class {
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
render() {
|
|
168
|
-
return (h(Host, { key: '
|
|
168
|
+
return (h(Host, { key: '28d45d8cd629c6cdd826834cbae719fd7c851511', class: { [`align-${this.align}`]: Boolean(this.align) } }, h("slot", { key: '0bab0005e4513464ad18698c111a55eb684434e9' })));
|
|
169
169
|
}
|
|
170
170
|
static get watchers() { return {
|
|
171
171
|
"field": [{
|
|
@@ -241,7 +241,7 @@ const SdToastContainer = class {
|
|
|
241
241
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
242
242
|
const indexMap = new Map();
|
|
243
243
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
244
|
-
return (h("div", { key: '
|
|
244
|
+
return (h("div", { key: '1e9af4dd46dd901ba903518c1425ce0bc723e4b4', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
245
245
|
this.expanded = true;
|
|
246
246
|
this.pauseTimers();
|
|
247
247
|
}, onMouseLeave: () => {
|
|
@@ -91,12 +91,12 @@ const SdToast = class {
|
|
|
91
91
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
92
92
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
93
93
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
94
|
-
return (h("div", { key: '
|
|
94
|
+
return (h("div", { key: '3d7a3fe3647010a8a96246ef3cdbfdf1550c0a91', style: {
|
|
95
95
|
'--sd-toast-bg': typeConfig.bg,
|
|
96
96
|
'--sd-toast-text': typeConfig.content,
|
|
97
97
|
'--sd-toast-icon': iconColor,
|
|
98
98
|
'--sd-toast-link': linkColor,
|
|
99
|
-
} }, h("div", { key: '
|
|
99
|
+
} }, h("div", { key: 'a863ff763bced7656cedc69f3598b3371fc13059', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (h("div", { key: '7606930ad68ab81543a719db8abb61055fdaf97d', class: "sd-toast__icon" }, h("sd-icon", { key: '9b75fb05ab26ddab43b677482a026b5860613e07', name: this.icon, size: iconSize, color: iconColor }))), h("div", { key: '5fb10f690ad560f0be74b5bf6afd288318e22082', class: "sd-toast__content" }, h("span", { key: 'c474a5e1f215a19e47a89ba154f6149e0a875f61', class: "sd-toast__message" }, this.message)), this.link && (h("a", { key: 'a0dcbba791c123776ccb6de62e169359777b3bd2', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (h("sd-button", { key: 'b85f734cbe429207c028602b29bd5f7fa78f7910', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (h("sd-ghost-button", { key: '09cb6b946c18c1c079b036799272d7bc7bdb6480', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
SdToast.style = sdToastCss();
|
|
@@ -122,7 +122,7 @@ const SdToggle = class {
|
|
|
122
122
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
123
123
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
124
124
|
};
|
|
125
|
-
return (h("label", { key: '
|
|
125
|
+
return (h("label", { key: 'b25e66cadfeee2714f137504ad49c8bf66622f60', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, h("input", { key: '276f7411899bcb14db93a6f2b93cc51b5363e1c9', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
128
|
SdToggle.style = sdToggleCss();
|