@sellmate/design-system 1.19.0 → 1.20.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-badge.cjs.entry.js +1 -1
- package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
- package/dist/cjs/sd-button_2.cjs.entry.js +1 -1
- package/dist/cjs/sd-calendar_2.cjs.entry.js +5 -5
- package/dist/cjs/sd-callout.cjs.entry.js +1 -1
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-chip-input.cjs.entry.js +2 -2
- package/dist/cjs/sd-chip.cjs.entry.js +1 -1
- 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 +8 -8
- package/dist/cjs/{sd-ghost-button_2.cjs.entry.js → sd-ghost-button_3.cjs.entry.js} +264 -10
- package/dist/cjs/sd-key-value-table.cjs.entry.js +4 -4
- 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-modal-container.cjs.entry.js +49 -1
- 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 +8 -8
- 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/assets/Close.js +1 -1
- package/dist/collection/components/sd-badge/sd-badge.js +1 -1
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +1 -1
- package/dist/collection/components/sd-calendar/sd-calendar.js +3 -3
- package/dist/collection/components/sd-callout/sd-callout.js +1 -1
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-chip/sd-chip.js +1 -1
- package/dist/collection/components/sd-chip-input/sd-chip-input.js +2 -2
- 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 +5 -5
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.css +2 -17
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +21 -12
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.css +2 -2
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +6 -6
- 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-modal-container/sd-modal-container.js +49 -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 +34 -3
- 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.css +1 -1
- package/dist/collection/components/sd-table/sd-table.js +9 -9
- 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-5imde6N9.js +1 -0
- package/dist/components/p-B5bya7Gp.js +1 -0
- package/dist/components/p-B7PHGGFH.js +1 -0
- package/dist/components/p-BZfVV3gu.js +1 -0
- package/dist/components/p-BiBLp9_a.js +1 -0
- package/dist/components/{p-DMS9mQsg.js → p-BjcGzaFR.js} +1 -1
- package/dist/components/{p-BD8OoYud.js → p-Bz93hWXV.js} +1 -1
- package/dist/components/p-CB2A3pJ5.js +1 -0
- package/dist/components/{p-B_5uwji5.js → p-CJ69QmR3.js} +1 -1
- package/dist/components/p-CLlAhEDc.js +1 -0
- package/dist/components/{p-4HPAPKne.js → p-CQozoo2-.js} +1 -1
- package/dist/components/p-CRwvv7YM.js +1 -0
- package/dist/components/p-CTPImLDQ.js +1 -0
- package/dist/components/{p-CQWZv8vY.js → p-CUR9smP5.js} +1 -1
- package/dist/components/{p-DbLQoVx6.js → p-CXeOxSQ-.js} +1 -1
- package/dist/components/p-CZfsknba.js +1 -0
- package/dist/components/{p-CtWfOIxb.js → p-CoqA9KgU.js} +1 -1
- package/dist/components/{p-hzCGj0On.js → p-CrT06Uwc.js} +1 -1
- package/dist/components/p-CvSqieCH.js +1 -0
- package/dist/components/p-D99vy8Ip.js +1 -0
- package/dist/components/{p-B3SKaQId.js → p-DDAA-zcg.js} +1 -1
- package/dist/components/p-DIlNesBH.js +1 -0
- package/dist/components/p-DNnI3Nru.js +1 -0
- package/dist/components/p-DZTxHJlP.js +1 -0
- package/dist/components/{p-CH6cVc2a.js → p-DertIGhs.js} +1 -1
- package/dist/components/{p-CzCu_NDl.js → p-Dl89_4C3.js} +1 -1
- package/dist/components/{p-C_r3z9VA.js → p-FTvXz0-a.js} +1 -1
- package/dist/components/{p-BLNc_TL-.js → p-P2jWtk8J.js} +1 -1
- package/dist/components/{p-DrSHJYop.js → p-Rwc_ltPn.js} +1 -1
- package/dist/components/p-ZvI5A-_t.js +1 -0
- package/dist/components/{p-79DExV92.js → p-gOIeNT-Z.js} +1 -1
- package/dist/components/{p-BMIgVp9-.js → p-uSEbiD29.js} +1 -1
- package/dist/components/{p-DDR0VcRU.js → p-xkRWGISE.js} +1 -1
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-callout.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.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-icon.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/components/sd-tr.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-80bde621.entry.js → p-08343698.entry.js} +1 -1
- package/dist/design-system/p-17dcf0e4.entry.js +1 -0
- package/dist/design-system/{p-bbbc4b27.entry.js → p-2151e081.entry.js} +1 -1
- package/dist/design-system/p-316b8a08.entry.js +1 -0
- package/dist/design-system/{p-f5190934.entry.js → p-4acfc5f9.entry.js} +1 -1
- package/dist/design-system/{p-22484d65.entry.js → p-5039241c.entry.js} +1 -1
- package/dist/design-system/p-52f551a1.entry.js +1 -0
- package/dist/design-system/{p-d726d8e7.entry.js → p-54853a2b.entry.js} +1 -1
- package/dist/design-system/p-5eaa12af.entry.js +1 -0
- package/dist/design-system/{p-827f067b.entry.js → p-646a7830.entry.js} +1 -1
- package/dist/design-system/{p-9d35b674.entry.js → p-717eba5f.entry.js} +1 -1
- package/dist/design-system/p-7ed8c8f1.entry.js +1 -0
- package/dist/design-system/{p-8f90620b.entry.js → p-9289eb14.entry.js} +1 -1
- package/dist/design-system/{p-b4b20a86.entry.js → p-98e0b332.entry.js} +1 -1
- package/dist/design-system/{p-9124a1af.entry.js → p-9c38ee79.entry.js} +1 -1
- package/dist/design-system/{p-c318b762.entry.js → p-a4331364.entry.js} +1 -1
- package/dist/design-system/{p-683c3b91.entry.js → p-a5a586da.entry.js} +1 -1
- package/dist/design-system/{p-1602a5fa.entry.js → p-aa1c6202.entry.js} +1 -1
- package/dist/design-system/{p-8a84a4fe.entry.js → p-ae344950.entry.js} +1 -1
- package/dist/design-system/{p-4b15247b.entry.js → p-b291baab.entry.js} +1 -1
- package/dist/design-system/{p-e93dda25.entry.js → p-b63b8df9.entry.js} +1 -1
- package/dist/design-system/{p-3caf2c5b.entry.js → p-bdb7492c.entry.js} +1 -1
- package/dist/design-system/{p-cc5f5bff.entry.js → p-c47198fc.entry.js} +1 -1
- package/dist/design-system/{p-4b626171.entry.js → p-c995e6c3.entry.js} +1 -1
- package/dist/design-system/{p-9095aab6.entry.js → p-cb80327c.entry.js} +1 -1
- package/dist/design-system/{p-7ed5aed5.entry.js → p-ccf1a3fc.entry.js} +1 -1
- package/dist/design-system/{p-4e1d76b8.entry.js → p-df7c721d.entry.js} +1 -1
- package/dist/design-system/p-e3990243.entry.js +1 -0
- package/dist/design-system/{p-81aa23d1.entry.js → p-e9d1dbb5.entry.js} +1 -1
- package/dist/design-system/p-faf7b64c.entry.js +1 -0
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-barcode-input.entry.js +1 -1
- package/dist/esm/sd-button_2.entry.js +1 -1
- package/dist/esm/sd-calendar_2.entry.js +5 -5
- package/dist/esm/sd-callout.entry.js +1 -1
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-chip-input.entry.js +2 -2
- package/dist/esm/sd-chip.entry.js +1 -1
- 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 +8 -8
- package/dist/esm/{sd-ghost-button_2.entry.js → sd-ghost-button_3.entry.js} +265 -12
- package/dist/esm/sd-key-value-table.entry.js +4 -4
- package/dist/esm/sd-linear-progress.entry.js +1 -1
- package/dist/esm/sd-loading-container.entry.js +2 -2
- package/dist/esm/sd-modal-container.entry.js +49 -1
- 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 +8 -8
- 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-ghost-button/sd-ghost-button.d.ts +7 -1
- package/dist/types/components/sd-key-value-table/sd-key-value-table.d.ts +2 -2
- package/dist/types/components/sd-modal-container/sd-modal-container.d.ts +9 -0
- package/dist/types/components/sd-portal/sd-portal.d.ts +1 -0
- package/dist/types/components/sd-table/sd-table.d.ts +1 -1
- package/dist/types/components.d.ts +20 -17
- package/hydrate/index.js +163 -98
- package/hydrate/index.mjs +163 -98
- package/package.json +1 -1
- package/dist/cjs/sd-portal.cjs.entry.js +0 -243
- package/dist/components/p-AI4YlQmL.js +0 -1
- package/dist/components/p-B-4ulKJj.js +0 -1
- package/dist/components/p-BX5uKVOt.js +0 -1
- package/dist/components/p-BYTrIk62.js +0 -1
- package/dist/components/p-Bzo51vnP.js +0 -1
- package/dist/components/p-C0tkFuhj.js +0 -1
- package/dist/components/p-C3wv8gVC.js +0 -1
- package/dist/components/p-CXRFEcE_.js +0 -1
- package/dist/components/p-Cl5io5TH.js +0 -1
- package/dist/components/p-ClKABgST.js +0 -1
- package/dist/components/p-DAOeioSV.js +0 -1
- package/dist/components/p-DTFXzlvq.js +0 -1
- package/dist/components/p-Dr5Q2ZKB.js +0 -1
- package/dist/components/p-DyVh4pNL.js +0 -1
- package/dist/components/p-Ng3JMPxb.js +0 -1
- package/dist/components/p-qJeUUOyB.js +0 -1
- package/dist/design-system/p-12306783.entry.js +0 -1
- package/dist/design-system/p-3f7349ae.entry.js +0 -1
- package/dist/design-system/p-43529bba.entry.js +0 -1
- package/dist/design-system/p-46da89f2.entry.js +0 -1
- package/dist/design-system/p-8a025f91.entry.js +0 -1
- package/dist/design-system/p-a263af1b.entry.js +0 -1
- package/dist/design-system/p-a532d998.entry.js +0 -1
- package/dist/design-system/p-aa312937.entry.js +0 -1
- package/dist/esm/sd-portal.entry.js +0 -241
package/hydrate/index.js
CHANGED
|
@@ -5390,7 +5390,7 @@ class SdBadge {
|
|
|
5390
5390
|
color = 'blue';
|
|
5391
5391
|
render() {
|
|
5392
5392
|
const resolvedColor = BADGE_COLOR_MAP[this.color] ?? BADGE_COLOR_MAP.blue;
|
|
5393
|
-
return (hAsync("div", { key: '
|
|
5393
|
+
return (hAsync("div", { key: '161a6ab81185300e392e2a8cd54146185a8a6216', class: "sd-badge", style: { '--sd-badge-color': resolvedColor } }, hAsync("div", { key: '30f9ed293d34e78caf0d832da0ea5f6ce2caf1c3', class: "sd-badge__dot" })));
|
|
5394
5394
|
}
|
|
5395
5395
|
static get style() { return sdBadgeCss(); }
|
|
5396
5396
|
static get cmpMeta() { return {
|
|
@@ -5600,7 +5600,7 @@ class SdBarcodeInput {
|
|
|
5600
5600
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
5601
5601
|
'--sd-system-color-field-bg-default': BARCODE_INPUT_COLORS.bg.barcode,
|
|
5602
5602
|
};
|
|
5603
|
-
return (hAsync("sd-field", { key: '
|
|
5603
|
+
return (hAsync("sd-field", { key: '453566ff018ea2131361fcc18d6094491d3b04dd', 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, 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 }, hAsync("label", { key: '153174624e5ec10908df6f40711a7a37039ab67b', class: "sd-barcode-input__content" }, hAsync("slot", { key: 'ce9326a5b3157ad511171f48ee95dd2ce6a6b5dd', name: "prefix" }), hAsync("input", { key: '069c037e8c27575f70ebfed9c2b2e61817f202f5', name: this.name, ref: el => (this.nativeEl = el), class: `sd-barcode-input__native ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), hAsync("slot", { key: '7ba3162a850e8d3d787ee44aaa807bb5be54cddc', name: "suffix" }), this.clearable && this.internalValue && (hAsync("sd-ghost-button", { key: 'f12e8083d050d96b34cad2d332d5aeb08f4f3913', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-barcode-input__clear-icon", onClick: async () => {
|
|
5604
5604
|
if (this.disabled)
|
|
5605
5605
|
return;
|
|
5606
5606
|
this.internalValue = '';
|
|
@@ -5830,7 +5830,7 @@ const ClockOutline = (props) => {
|
|
|
5830
5830
|
|
|
5831
5831
|
const Close = (props) => {
|
|
5832
5832
|
const { size = 24, ...rest } = props;
|
|
5833
|
-
return (hAsync("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest }, hAsync("path", { d: "
|
|
5833
|
+
return (hAsync("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...rest }, hAsync("path", { d: "M18.8281 4.11135C19.121 3.81849 19.5958 3.81854 19.8887 4.11135C20.1816 4.40424 20.1816 4.879 19.8887 5.1719L13.0596 12L19.8887 18.8291C20.1815 19.122 20.1815 19.5968 19.8887 19.8897C19.5958 20.1822 19.1209 20.1824 18.8281 19.8897L12 13.0606L5.17188 19.8897C4.87911 20.1823 4.40422 20.1821 4.11133 19.8897C3.81844 19.5968 3.81844 19.121 4.11133 18.8281L10.9385 12L4.11133 5.1719C3.81844 4.879 3.81844 4.40424 4.11133 4.11135C4.40424 3.8186 4.87903 3.81851 5.17188 4.11135L11.999 10.9395L18.8281 4.11135Z", fill: "currentColor" })));
|
|
5834
5834
|
};
|
|
5835
5835
|
|
|
5836
5836
|
const Copy = (props) => {
|
|
@@ -6968,7 +6968,7 @@ class SdCalendar {
|
|
|
6968
6968
|
const eventMap = this.eventMap;
|
|
6969
6969
|
const legend = this.legendItems;
|
|
6970
6970
|
const hasEvents = (this.events?.length ?? 0) > 0;
|
|
6971
|
-
return (hAsync("div", { key: '
|
|
6971
|
+
return (hAsync("div", { key: 'c8456b5c2b6617cef1aacd140d600458e9b05f32', class: { 'sd-calendar': true, 'sd-calendar--elevated': this.elevated }, style: cssVars }, hAsync("div", { key: '9b73abcc81e28e3f791dcd3a5d1b1284b76c71b3', class: "sd-calendar__header" }, hAsync("div", { key: '89e582eb5c4ad7ee7ea3e4e7d8139a25c32cd09e', class: "sd-calendar__nav-group" }, hAsync("sd-ghost-button", { key: '75b3bb651ed6c840f85b50869d3d074fbdda10d7', ariaLabel: "prevYear", size: "xxs", icon: "chevronLeft", onClick: this.goPrevYear }), hAsync("span", { key: '2be9c1dc4e9ab339890a8f066fc416bace8a3d6a', class: "sd-calendar__label" }, this.currentYear), hAsync("sd-ghost-button", { key: 'fe38866bac1c10dc66e0392eb2d9efe7f12ba225', ariaLabel: "nextYear", size: "xxs", icon: "chevronRight", onClick: this.goNextYear })), hAsync("span", { key: '7552892c7247f6a10aa7cd53dede0e2464e45647', class: "sd-calendar__divider", "aria-hidden": "true" }), hAsync("div", { key: '09a142cb6e71f95c3f9c60be100441b6a5543b00', class: "sd-calendar__nav-group sd-calendar__nav-group-month" }, hAsync("sd-ghost-button", { key: '12f116ed4b1f5dc57a682d1af5ef244f797cb347', ariaLabel: "prevMonth", size: "xxs", icon: "chevronLeft", onClick: this.goPrevMonth }), hAsync("span", { key: '5adfc5a6469fde17d1bea030c84be29fea151601', class: "sd-calendar__label sd-calendar__label-month" }, this.currentMonth, "\uC6D4"), hAsync("sd-ghost-button", { key: '1f1b44b1cd201e0ec45b696dbb70d36f3e81f21c', ariaLabel: "nextMonth", size: "xxs", icon: "chevronRight", onClick: this.goNextMonth }))), hAsync("div", { key: 'b866d161ea35935cc5ead385c0b30015e9d5838d', class: "sd-calendar__week" }, WEEK_LABELS.map(label => (hAsync("span", { key: label, class: "sd-calendar__week-cell" }, label)))), hAsync("div", { key: 'a63bf0d78122c6c2f668497a3c902d30a8e74c3f', class: "sd-calendar__grid" }, this.cells.map(cell => {
|
|
6972
6972
|
const isSelected = cell.inCurrentMonth && this.value !== '' && this.value === cell.date;
|
|
6973
6973
|
const isToday = cell.inCurrentMonth && today === cell.date;
|
|
6974
6974
|
const isDisabled = cell.inCurrentMonth && this.isDisabled(cell.date);
|
|
@@ -6981,8 +6981,8 @@ class SdCalendar {
|
|
|
6981
6981
|
'sd-calendar__day--disabled': isDisabled,
|
|
6982
6982
|
}, disabled: !cell.inCurrentMonth || isDisabled, tabindex: !cell.inCurrentMonth ? -1 : undefined, "aria-hidden": !cell.inCurrentMonth ? 'true' : undefined, onClick: () => cell.inCurrentMonth && this.handleDayClick(cell) }, hAsync("span", { class: "sd-calendar__day-circle" }, cell.inCurrentMonth ? cell.day : ''), hasEvents && (hAsync("span", { class: "sd-calendar__dot-row", "aria-hidden": "true" }, dayEvents?.map((ev, i) => (hAsync("span", { key: `${ev.color}|${ev.label}|${i}`, class: "sd-calendar__dot", style: { backgroundColor: ev.color } })))))));
|
|
6983
6983
|
})), legend.length > 0 && [
|
|
6984
|
-
hAsync("span", { key: '
|
|
6985
|
-
hAsync("div", { key: '
|
|
6984
|
+
hAsync("span", { key: '79a0c77b04cc46c5278502e7062c13e3113a8ee2', class: "sd-calendar__divider-bottom", "aria-hidden": "true" }),
|
|
6985
|
+
hAsync("div", { key: '7b87c016d96a48efabcbc3b684a6fea78004f790', class: "sd-calendar__legend" }, legend.map(item => (hAsync("span", { key: `${item.color}|${item.label}`, class: "sd-calendar__legend-item" }, hAsync("span", { class: "sd-calendar__legend-dot", style: { backgroundColor: item.color }, "aria-hidden": "true" }), hAsync("span", { class: "sd-calendar__legend-label" }, item.label))))),
|
|
6986
6986
|
]));
|
|
6987
6987
|
}
|
|
6988
6988
|
static get watchers() { return {
|
|
@@ -7237,7 +7237,7 @@ class SdCallout {
|
|
|
7237
7237
|
}
|
|
7238
7238
|
render() {
|
|
7239
7239
|
const showTitle = this.type === 'danger';
|
|
7240
|
-
return (hAsync("div", { key: '
|
|
7240
|
+
return (hAsync("div", { key: '545b90999ad57577156a214468102ae5090e6f3e', class: "sd-callout", style: this.calloutStyle, role: "note" }, showTitle && this.renderTitle(), hAsync("div", { key: '14e021beb9b1c9deb63490e17baf9bb72caefe0d', class: "sd-callout__body" }, this.renderBody())));
|
|
7241
7241
|
}
|
|
7242
7242
|
static get style() { return sdCalloutCss(); }
|
|
7243
7243
|
static get cmpMeta() { return {
|
|
@@ -7262,7 +7262,7 @@ class SdCard {
|
|
|
7262
7262
|
bordered = false;
|
|
7263
7263
|
sdClass = '';
|
|
7264
7264
|
render() {
|
|
7265
|
-
return (hAsync(Fragment, { key: '
|
|
7265
|
+
return (hAsync(Fragment, { key: 'cda3366416a347552ffe66446f9fd1267654fa75' }, hAsync("div", { key: '5b29d955402031dcc82df70df25fe1146787adec', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.sdClass}` }, hAsync("slot", { key: 'f2a5c548de34d6bf32de75db76686da91d605e28' }))));
|
|
7266
7266
|
}
|
|
7267
7267
|
static get style() { return sdCardCss(); }
|
|
7268
7268
|
static get cmpMeta() { return {
|
|
@@ -7792,7 +7792,7 @@ class SdChip {
|
|
|
7792
7792
|
'--sd-chip-font-weight': typography.fontWeight,
|
|
7793
7793
|
'--sd-chip-line-height': typography.lineHeight,
|
|
7794
7794
|
};
|
|
7795
|
-
return (hAsync("span", { key: '
|
|
7795
|
+
return (hAsync("span", { key: 'a51c874d8f2ce5abea1dbcf878b4f1ceda0952a3', class: {
|
|
7796
7796
|
'sd-chip': true,
|
|
7797
7797
|
[`sd-chip--${state}`]: true,
|
|
7798
7798
|
'sd-chip--disabled': this.disabled,
|
|
@@ -8424,7 +8424,7 @@ class SdChipInput {
|
|
|
8424
8424
|
fontFamily: CHIP_INPUT_SUGGESTIONS.itemFontFamily,
|
|
8425
8425
|
color: CHIP_INPUT_SUGGESTIONS.emptyColor,
|
|
8426
8426
|
};
|
|
8427
|
-
return (hAsync("sd-field", { key: '
|
|
8427
|
+
return (hAsync("sd-field", { key: 'ee88b5c82466b6470fcf6bd7c55b6269b81b04be', name: this.name, label: this.label, labelWidth: this.labelWidth, hint: this.hint, errorMessage: this.errorMessage, rules: [this.duplicateRule, ...(this.rules ?? [])], error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, width: this.width, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: cssVars, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, hAsync("div", { key: 'e040d339e12ce0b038d195a829d4fc1795f12155', class: "sd-chip-input", ref: el => (this.chipInputRef = el), onClick: this.handleContainerClick }, (this.internalValues ?? []).map((value, i) => (hAsync("sd-chip", { key: i, value: value, error: this.getChipError(i), disabled: this.getChipDisabled(i), editable: false, onSdRemove: () => this.handleChipRemove(i) }))), !isMaxReached && (hAsync("div", { key: '37b6e51a5e1b5b5b37651cba797739ac74770d8a', class: {
|
|
8428
8428
|
'sd-chip-input__field': true,
|
|
8429
8429
|
'sd-chip-input__field--filled': this.inputValue !== '',
|
|
8430
8430
|
'sd-chip-input__field--empty': this.inputValue === '' && this.internalValues.length > 0 && !this.focused,
|
|
@@ -8432,7 +8432,7 @@ class SdChipInput {
|
|
|
8432
8432
|
? this.inputValue
|
|
8433
8433
|
: this.internalValues.length === 0
|
|
8434
8434
|
? this.placeholder
|
|
8435
|
-
: '' }, hAsync("input", { key: '
|
|
8435
|
+
: '' }, hAsync("input", { key: 'f628f9dee70e60435afb8d01ed41830850bebb44', ref: el => (this.inputEl = el), class: "sd-chip-input__input", placeholder: this.internalValues.length === 0 ? this.placeholder : '', disabled: this.disabled, size: 1, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur }))), showResetArea && (hAsync("div", { key: 'd154fb5ccd1875ec6beee462a3d93b7e4480f384', class: "sd-chip-input__reset" }, this.inputValue === '' && hAsync("span", { key: 'ae84a0b4c83ca26e3b58b48d32469bd46be29f78', class: "sd-chip-input__divider" }), this.maxCount != null && (hAsync("span", { key: 'e5790a98cbe3e07a395ddf8b5d286ec48efcabb2', class: "sd-chip-input__max-count" }, "\uCD5C\uB300 ", this.maxCount, "\uAC1C")), this.useReset && this.internalValues.length > 0 && (hAsync("sd-text-link", { key: '7ed1d61c9518f0cf2bdf2a6be62effb7bc90b8ab', icon: "reset", iconColor: CHIP_INPUT_RESET.iconColor, label: "\uC785\uB825 \uCD08\uAE30\uD654", underline: true, disabled: this.disabled, style: { '--sd-text-link-color': CHIP_INPUT_RESET.labelColor }, onSdClick: this.handleResetInput })))), showDropdown && (hAsync("sd-portal", { key: '45d65cf1c364e4c3f46770f98a6c7597f6aaeb01', open: showDropdown, parentRef: this.chipInputRef ?? null, viewportPadding: SdChipInput.SUGGESTIONS_VIEWPORT_PADDING, onSdClose: this.closeSuggestions }, hAsync("div", { key: '055ea7aeb71f7a4640b3ac7406f435c3f3b1d50c', class: "sd-chip-input__suggestions", role: "listbox", style: suggestionBoxStyle }, isDropdownLoading && (hAsync("div", { key: 'fc56e57fb5c62fa39cb7b13d51fe74baca539647', class: "sd-chip-input__suggestions-empty", style: suggestionEmptyStyle }, "\uBD88\uB7EC\uC624\uB294 \uC911...")), dropdownItems.map((item, i) => (hAsync("div", { key: item, class: {
|
|
8436
8436
|
'sd-chip-input__suggestion-item': true,
|
|
8437
8437
|
'sd-chip-input__suggestion-item--active': i === this.activeSuggestionIndex,
|
|
8438
8438
|
}, role: "option", tabIndex: -1, "aria-selected": i === this.activeSuggestionIndex, style: i === this.activeSuggestionIndex
|
|
@@ -8603,7 +8603,7 @@ class SdCircleProgress {
|
|
|
8603
8603
|
}
|
|
8604
8604
|
const c = CIRCLE_PROGRESS_VIEWBOX_SIZE / 2;
|
|
8605
8605
|
const showPercent = !this.indeterminate;
|
|
8606
|
-
return (hAsync(Host, { key: '
|
|
8606
|
+
return (hAsync(Host, { key: 'b8dc57144fcab41a7dce8f9aff9bec4609290a8e', style: hostStyle }, hAsync("svg", { key: '2f38f745684057e2b568da3cdbb8a940125fa920', class: "sd-circle-progress", viewBox: `0 0 ${CIRCLE_PROGRESS_VIEWBOX_SIZE} ${CIRCLE_PROGRESS_VIEWBOX_SIZE}`, xmlns: "http://www.w3.org/2000/svg" }, hAsync("circle", { key: 'e829f78dddbf5fb08e23b5774fe653c0019eedfd', class: "sd-circle-progress__track", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH }), hAsync("circle", { key: '4643ac0edf25a12660791d87acebbecd8a5c2ead', 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 && (hAsync("span", { key: '1ccaad0864e44d09902201bde466b7867c51646f', class: "sd-circle-progress__percent" }, Math.round(this.clampedValue), "%")), this.label && hAsync("span", { key: '0e26d97267552ef75dcc30f94392cbc733fee636', class: "sd-circle-progress__label" }, this.label)));
|
|
8607
8607
|
}
|
|
8608
8608
|
static get style() { return sdCircleProgressCss(); }
|
|
8609
8609
|
static get cmpMeta() { return {
|
|
@@ -8719,9 +8719,9 @@ class SdConfirmModal {
|
|
|
8719
8719
|
const type = this.resolvedType;
|
|
8720
8720
|
const iconName = CONFIRM_MODAL_ICON_MAP[type];
|
|
8721
8721
|
const iconColor = CONFIRM_MODAL_ICON_COLOR[type];
|
|
8722
|
-
return (hAsync("div", { key: '
|
|
8722
|
+
return (hAsync("div", { key: '689c6d50f52e1a4c5b8f501fcc1e14f0da42fcfc', class: "sd-confirm-modal" }, hAsync("sd-ghost-button", { key: 'fc3aedaa2b6aa3b95b9c0ce1e766df69af86c82f', class: "sd-confirm-modal__close-button", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() }), iconName && (hAsync("sd-icon", { key: '4560ad7ee0d8929221a47b6c1b00cac04c7b387a', class: "sd-confirm-modal__icon", name: iconName, size: TITLE_ICON_SIZE, color: iconColor })), hAsync("h2", { key: '8689d86f85c72a9f36e94f083842fc3354d3d82c', class: `sd-confirm-modal__title ${this.titleClass ?? ''}` }, this.modalTitle), hAsync("div", { key: '5828e937b3b1d3f34c389e73a3d953388dd30cd0', class: "sd-confirm-modal__body" }, (this.topMessage ?? []).length > 0 && (hAsync("div", { key: '0f64cda9195807dbf637a463ba2bc8acc8c1ff3a', class: "sd-confirm-modal__message" }, (this.topMessage ?? []).map(msg => (hAsync("p", { class: "sd-confirm-modal__message-text", innerHTML: sanitizeInlineHtml(msg) }))))), this.showContentBox && (hAsync("div", { key: 'a090330cab2dbbc99127e616f3e50420bd44b9e4', class: "sd-confirm-modal__content-box" }, this.tagContents ? (hAsync("div", { class: "sd-confirm-modal__custom-content", ref: el => {
|
|
8723
8723
|
this.customContentRef = el;
|
|
8724
|
-
} })) : (hAsync("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && (hAsync("sd-tag", { name: this.tagPreset ?? 'square_sm_grey', label: this.tagLabel })), this.slotLabel && (hAsync("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (hAsync("div", { key: '
|
|
8724
|
+
} })) : (hAsync("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && (hAsync("sd-tag", { name: this.tagPreset ?? 'square_sm_grey', label: this.tagLabel })), this.slotLabel && (hAsync("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (hAsync("div", { key: 'a665a0ea56685496adf7c306b4a940762a8a2b3a', class: "sd-confirm-modal__message" }, (this.bottomMessage ?? []).map(msg => (hAsync("p", { class: "sd-confirm-modal__message-text", innerHTML: sanitizeInlineHtml(msg) })))))), hAsync("div", { key: '0ad69928a260ed78edd7606f89790e6afa6b2d76', class: "sd-confirm-modal__button" }, this.subButtonLabel && (hAsync("sd-button", { key: '1f835e091b4d96cb6c95dbda88d93ce86828da2c', name: SUB_BUTTON_PRESET, label: this.subButtonLabel, onSdClick: () => this.cancel.emit() })), hAsync("sd-button", { key: '8e3cb23cb7207e402543b009b49d23a50521db24', name: this.resolvedMainButton, label: this.mainButtonLabel ?? '확인', onSdClick: () => this.ok.emit() }))));
|
|
8725
8725
|
}
|
|
8726
8726
|
static get style() { return sdConfirmModalCss(); }
|
|
8727
8727
|
static get cmpMeta() { return {
|
|
@@ -9008,9 +9008,9 @@ class SdDatePicker {
|
|
|
9008
9008
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
9009
9009
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
9010
9010
|
};
|
|
9011
|
-
return (hAsync("sd-field", { key: '
|
|
9011
|
+
return (hAsync("sd-field", { key: 'cbd8e081f56fb2fb53854cd0937fe24e5d6d9b97', 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 }, hAsync("div", { key: 'e7798ec50f7d22628a17a953ac87882160248de4', class: "sd-date-picker", ref: el => {
|
|
9012
9012
|
this.triggerRef = el;
|
|
9013
|
-
} }, hAsync("sd-date-picker-trigger", { key: '
|
|
9013
|
+
} }, hAsync("sd-date-picker-trigger", { key: 'ce203f70a001f9caa9071fb667d9bf58f57748ec', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (hAsync("sd-portal", { key: 'c5f875bc826fa1f899205cfefe2db57da3dd34b4', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, hAsync("sd-calendar", { key: '8626faebafac8201979e02c444279124c3261b67', elevated: true, value: this.value, selectable: this.selectable, onSdUpdate: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
9014
9014
|
}
|
|
9015
9015
|
static get watchers() { return {
|
|
9016
9016
|
"isOpen": [{
|
|
@@ -9093,7 +9093,7 @@ class SdDatePickerTrigger {
|
|
|
9093
9093
|
? DATEPICKER_COLORS.icon.disabled
|
|
9094
9094
|
: DATEPICKER_COLORS.icon.default,
|
|
9095
9095
|
};
|
|
9096
|
-
return (hAsync("div", { key: '
|
|
9096
|
+
return (hAsync("div", { key: 'ed74f03f3860fe86e7bc3b5430501b064a0288a7', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
9097
9097
|
'sd-date-picker-trigger': true,
|
|
9098
9098
|
'sd-date-picker-trigger--disabled': this.disabled,
|
|
9099
9099
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -9101,7 +9101,7 @@ class SdDatePickerTrigger {
|
|
|
9101
9101
|
e.preventDefault();
|
|
9102
9102
|
this.handleClick();
|
|
9103
9103
|
}
|
|
9104
|
-
} }, hAsync("sd-icon", { key: '
|
|
9104
|
+
} }, hAsync("sd-icon", { key: '67994572f65a0f13622deef67f89b22c083791a0', name: "date", size: Number(sizeTokens.iconSize), color: "var(--trigger-icon-color)", class: "sd-date-picker-trigger__icon" }), hAsync("span", { key: '142f26e05ae2287d03a9e733b64ddf34f2ed1256', class: "sd-date-picker-trigger__text" }, hasValue ? this.displayText : this.placeholder)));
|
|
9105
9105
|
}
|
|
9106
9106
|
static get style() { return sdDatePickerTriggerCss(); }
|
|
9107
9107
|
static get cmpMeta() { return {
|
|
@@ -9521,7 +9521,7 @@ class SdDateRangePickerCalendar {
|
|
|
9521
9521
|
'--range-panel-gap': `${RANGE_LAYOUT.panelGap}px`,
|
|
9522
9522
|
'--range-divider': RANGE_LAYOUT.divider,
|
|
9523
9523
|
};
|
|
9524
|
-
return (hAsync(Fragment, { key: '
|
|
9524
|
+
return (hAsync(Fragment, { key: 'd46df258093b5c57d1b958efb7e52cabd4cb1eb4' }, hAsync("div", { key: '04fc01524115d9b57462ad1eaf9281fe1c63dd84', class: "sd-date-range-picker-calendar", style: cssVars }, this.renderYearNav(), hAsync("div", { key: '91428a1dd98b7a9c534b28a9cd683f35935dfee2', class: "sd-date-range-picker-calendar__panels" }, this.renderPanel(this.currentYear, this.currentMonth, true), hAsync("span", { key: '26d4f7e3391c50340e0f45f018b02d11ad7bd23b', class: "sd-date-range-picker-calendar__divider", "aria-hidden": "true" }), this.renderPanel(this.rightYear, this.rightMonth, false)))));
|
|
9525
9525
|
}
|
|
9526
9526
|
static get watchers() { return {
|
|
9527
9527
|
"value": [{
|
|
@@ -9564,7 +9564,7 @@ class SdDivider {
|
|
|
9564
9564
|
const hostStyle = {
|
|
9565
9565
|
'--sd-divider-color': DIVIDER_COLORS.default,
|
|
9566
9566
|
};
|
|
9567
|
-
return (hAsync(Host, { key: '
|
|
9567
|
+
return (hAsync(Host, { key: 'd7adb8181071f7e6b1c2238c5512c332a0c9bafb', style: hostStyle }, hAsync("hr", { key: '8d376fce5cced248a573ffb189931ce613ef79b7', "aria-orientation": this.vertical ? 'vertical' : 'horizontal' })));
|
|
9568
9568
|
}
|
|
9569
9569
|
static get style() { return sdDividerCss(); }
|
|
9570
9570
|
static get cmpMeta() { return {
|
|
@@ -10206,21 +10206,21 @@ class SdField {
|
|
|
10206
10206
|
: {}),
|
|
10207
10207
|
}
|
|
10208
10208
|
: {};
|
|
10209
|
-
return (hAsync("div", { key: '
|
|
10209
|
+
return (hAsync("div", { key: '76a1a2f41cafb2a665415f4e6e7bd9561aacb57f', class: {
|
|
10210
10210
|
'sd-field': true,
|
|
10211
10211
|
'sd-field--has-label': this.label !== '',
|
|
10212
10212
|
'sd-field--has-addon': addon !== '',
|
|
10213
10213
|
[this.fieldStatus]: this.fieldStatus !== '',
|
|
10214
|
-
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars, ...messageCssVars } }, hAsync("div", { key: '
|
|
10214
|
+
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars, ...messageCssVars } }, hAsync("div", { key: 'b4219a5e3e80ead00b0cb67d6c5c8a1b25e59f57', class: "sd-field__wrapper" }, this.renderLabel(this.label), hAsync("div", { key: '91dd10be9bf9fe70615d6f4f0ee00601cab5ee4a', class: "sd-field__main", style: this.width !== '' && this.width !== 0
|
|
10215
10215
|
? {
|
|
10216
10216
|
width: typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
10217
10217
|
flex: 'none',
|
|
10218
10218
|
}
|
|
10219
|
-
: {} }, hAsync("div", { key: '
|
|
10219
|
+
: {} }, hAsync("div", { key: 'd15df53ff3d76ab9f9bd5e6ffe55f98b53c1211a', class: {
|
|
10220
10220
|
'sd-field__control': true,
|
|
10221
10221
|
'sd-field__control--has-addon': addon !== '',
|
|
10222
|
-
} }, addon && (hAsync("div", { key: '
|
|
10223
|
-
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)), hAsync("slot", { key: '
|
|
10222
|
+
} }, addon && (hAsync("div", { key: 'fa65e5f352e20ae9f533bdf93d95b2d2f3ec4d7b', class: "sd-field__addon" }, this.icon && (hAsync("sd-icon", { key: '5c6d67ca4a72191622d14727567b8bca0975dcee', name: this.icon.name, size: this.icon.size ??
|
|
10223
|
+
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)), hAsync("slot", { key: 'c4f4e9392b3e6df8bba7a0f9e39bb3847ccf5931' })), this.errorMsg !== '' || this.errorMessage !== '' ? (hAsync("div", { class: "sd-field__error-message" }, this.errorMsg !== '' ? this.errorMsg : this.errorMessage)) : (this.hint !== '' && hAsync("div", { class: "sd-field__hint" }, this.hint))))));
|
|
10224
10224
|
}
|
|
10225
10225
|
renderLabel(label) {
|
|
10226
10226
|
if (label == null || label === '')
|
|
@@ -10733,7 +10733,7 @@ class SdFloatingPopover {
|
|
|
10733
10733
|
}
|
|
10734
10734
|
}
|
|
10735
10735
|
render() {
|
|
10736
|
-
return hAsync("slot", { key: '
|
|
10736
|
+
return hAsync("slot", { key: '77829bed54180a72d233738d1f82d9996ae29cae' });
|
|
10737
10737
|
}
|
|
10738
10738
|
static get style() { return sdFloatingPortalCss(); }
|
|
10739
10739
|
static get cmpMeta() { return {
|
|
@@ -10960,7 +10960,7 @@ const GHOST_BUTTON_DISABLED_COLORS = {
|
|
|
10960
10960
|
inverse: ghostButtonTokens.ghostButton.inverse.disabled,
|
|
10961
10961
|
};
|
|
10962
10962
|
|
|
10963
|
-
const sdGhostButtonCss = () => `sd-ghost-button{display:inline-flex;width:fit-content;height:fit-content}.sd-ghost-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--sd-ghost-button-size);height:var(--sd-ghost-button-size);padding:0;border:none;border-radius:var(--sd-ghost-button-radius);background:transparent;cursor:pointer;box-sizing:border-box;transition:box-shadow 0.2s ease;-webkit-user-select:none;user-select:none}.sd-ghost-button::before{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--sd-ghost-button-hover-bg);opacity:0;transition:opacity 0.2s ease;pointer-events:none}.sd-ghost-button:hover:not(.sd-ghost-button--disabled)::before{opacity:var(--sd-ghost-button-hover-opacity)}.sd-ghost-button:focus-visible{outline:0;box-shadow:0 0 0 2px var(--sd-ghost-button-accent)}.sd-ghost-button--disabled{cursor:not-allowed}.sd-ghost-button__tooltip{
|
|
10963
|
+
const sdGhostButtonCss = () => `sd-ghost-button{display:inline-flex;width:fit-content;height:fit-content}.sd-ghost-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--sd-ghost-button-size);height:var(--sd-ghost-button-size);padding:0;border:none;border-radius:var(--sd-ghost-button-radius);background:transparent;cursor:pointer;box-sizing:border-box;transition:box-shadow 0.2s ease;-webkit-user-select:none;user-select:none}.sd-ghost-button::before{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--sd-ghost-button-hover-bg);opacity:0;transition:opacity 0.2s ease;pointer-events:none}.sd-ghost-button:hover:not(.sd-ghost-button--disabled)::before{opacity:var(--sd-ghost-button-hover-opacity)}.sd-ghost-button:focus-visible{outline:0;box-shadow:0 0 0 2px var(--sd-ghost-button-accent)}.sd-ghost-button--disabled{cursor:not-allowed}.sd-ghost-button__tooltip-inner{display:inline-flex;white-space:nowrap;transform:translateX(-50%)}`;
|
|
10964
10964
|
|
|
10965
10965
|
class SdGhostButton {
|
|
10966
10966
|
constructor(hostRef) {
|
|
@@ -10971,15 +10971,16 @@ class SdGhostButton {
|
|
|
10971
10971
|
size = 'sm';
|
|
10972
10972
|
intent = 'default';
|
|
10973
10973
|
ariaLabel = '';
|
|
10974
|
-
|
|
10974
|
+
tooltipText;
|
|
10975
10975
|
disabled = false;
|
|
10976
|
+
get hostEl() { return getElement(this); }
|
|
10977
|
+
isTooltipOpen = false;
|
|
10976
10978
|
click;
|
|
10977
10979
|
hasWarnedMissingAriaLabel = false;
|
|
10978
10980
|
componentWillLoad() {
|
|
10979
10981
|
this.size ??= 'sm';
|
|
10980
10982
|
this.intent ??= 'default';
|
|
10981
10983
|
this.ariaLabel ??= '';
|
|
10982
|
-
this.tooltipLabel ??= '';
|
|
10983
10984
|
}
|
|
10984
10985
|
handleClick = (event) => {
|
|
10985
10986
|
if (this.disabled) {
|
|
@@ -10988,6 +10989,10 @@ class SdGhostButton {
|
|
|
10988
10989
|
}
|
|
10989
10990
|
this.click.emit(event);
|
|
10990
10991
|
};
|
|
10992
|
+
handleMouseEnter = () => { this.isTooltipOpen = true; };
|
|
10993
|
+
handleMouseLeave = () => { this.isTooltipOpen = false; };
|
|
10994
|
+
handleFocus = () => { this.isTooltipOpen = true; };
|
|
10995
|
+
handleBlur = () => { this.isTooltipOpen = false; };
|
|
10991
10996
|
componentWillRender() {
|
|
10992
10997
|
this.warnIfMissingAriaLabel();
|
|
10993
10998
|
}
|
|
@@ -11010,19 +11015,18 @@ class SdGhostButton {
|
|
|
11010
11015
|
? GHOST_BUTTON_DISABLED_COLORS[intent]
|
|
11011
11016
|
: GHOST_BUTTON_CONTENT_COLORS[intent];
|
|
11012
11017
|
const accessibleName = (this.ariaLabel ?? '').trim() || undefined;
|
|
11013
|
-
const
|
|
11014
|
-
const hasTooltip =
|
|
11015
|
-
return (hAsync("button", { key: '
|
|
11018
|
+
const tooltipText = (this.tooltipText ?? '').trim();
|
|
11019
|
+
const hasTooltip = tooltipText.length > 0;
|
|
11020
|
+
return (hAsync("button", { key: '59b95275f6acd737d4b0d5c2187e1d40b3a6543f', class: {
|
|
11016
11021
|
'sd-ghost-button': true,
|
|
11017
11022
|
'sd-ghost-button--disabled': this.disabled,
|
|
11018
|
-
'sd-ghost-button--with-tooltip': hasTooltip,
|
|
11019
11023
|
}, type: "button", disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
11020
11024
|
'--sd-ghost-button-size': `${sizeConfig.size}px`,
|
|
11021
11025
|
'--sd-ghost-button-radius': `${GHOST_BUTTON_RADIUS[size]}px`,
|
|
11022
11026
|
'--sd-ghost-button-hover-bg': GHOST_BUTTON_HOVER_BG_COLORS[intent],
|
|
11023
11027
|
'--sd-ghost-button-hover-opacity': GHOST_BUTTON_HOVER_OPACITY,
|
|
11024
11028
|
'--sd-ghost-button-accent': GHOST_BUTTON_FOCUS_RING_COLOR,
|
|
11025
|
-
}, onClick: this.handleClick }, hasTooltip && (hAsync("
|
|
11029
|
+
}, onClick: this.handleClick, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onFocus: this.handleFocus, onBlur: this.handleBlur }, hasTooltip && this.isTooltipOpen && !this.disabled && (hAsync("sd-portal", { key: 'd8ca94b6a931208c2c56eb2dbfee843935c6b666', parentRef: this.hostEl, open: true, offset: [sizeConfig.size / 2, 4], placement: "top" }, hAsync("div", { key: '450d5dc528ad4eeb4a2a0d2920fe4553ab3f91f8', class: "sd-ghost-button__tooltip-inner", "aria-hidden": "true" }, hAsync("sd-tag", { key: 'cc25d0e2794d3d4dc418b0c0aa1a57e4b76b56e1', name: "square_xs_grey", label: tooltipText })))), hAsync("sd-icon", { key: 'bf9bf8bcc779011635fd34566ec7320d76f8d16b', name: this.icon, size: sizeConfig.icon, color: contentColor })));
|
|
11026
11030
|
}
|
|
11027
11031
|
static get style() { return sdGhostButtonCss(); }
|
|
11028
11032
|
static get cmpMeta() { return {
|
|
@@ -11033,8 +11037,9 @@ class SdGhostButton {
|
|
|
11033
11037
|
"size": [1],
|
|
11034
11038
|
"intent": [1],
|
|
11035
11039
|
"ariaLabel": [1, "aria-label"],
|
|
11036
|
-
"
|
|
11037
|
-
"disabled": [4]
|
|
11040
|
+
"tooltipText": [1, "tooltip-text"],
|
|
11041
|
+
"disabled": [4],
|
|
11042
|
+
"isTooltipOpen": [32]
|
|
11038
11043
|
},
|
|
11039
11044
|
"$listeners$": undefined,
|
|
11040
11045
|
"$lazyBundleId$": "-",
|
|
@@ -11730,12 +11735,12 @@ class SdInput {
|
|
|
11730
11735
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
11731
11736
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
11732
11737
|
};
|
|
11733
|
-
return (hAsync("sd-field", { key: '
|
|
11738
|
+
return (hAsync("sd-field", { key: 'bc95e469a741a7130b07b5e2ecbc3ce9a7d1799d', 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 }, hAsync("label", { key: '63661c1e1202e729bbcaedcf83d8b034a7bf2e0b', class: "sd-input__content" }, hAsync("slot", { key: '6c17e53e77c0e6751deb664b67b7daa471bd08cc', name: "prefix" }), hAsync("input", { key: '1572e700b110b8d98b62ef30e72a17974288473c', 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 }), hAsync("slot", { key: '728316a43a96d7859849ef522c06a405f7d668b5', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && !this.readonly && (hAsync("sd-ghost-button", { key: 'ec89154a98d603db8eccc5db786d3330b33713ab', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
11734
11739
|
if (this.disabled || this.readonly)
|
|
11735
11740
|
return;
|
|
11736
11741
|
this.internalValue = '';
|
|
11737
11742
|
await this.formField?.sdValidate();
|
|
11738
|
-
} })), this.type === 'password' && (hAsync("sd-ghost-button", { key: '
|
|
11743
|
+
} })), this.type === 'password' && (hAsync("sd-ghost-button", { key: '8dd3e79ffa2bf731850e94b9a0752aeebf13aff6', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled || this.readonly, class: "sd-input__password-icon", onClick: () => {
|
|
11739
11744
|
if (this.disabled || this.readonly)
|
|
11740
11745
|
return;
|
|
11741
11746
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -11904,7 +11909,7 @@ const KEY_VALUE_TABLE_TYPOGRAPHY = {
|
|
|
11904
11909
|
tdLineHeight: Number(t.body.typography.lineHeight),
|
|
11905
11910
|
};
|
|
11906
11911
|
|
|
11907
|
-
const sdKeyValueTableCss = () => `sd-key-value-table{display:block}sd-key-value-table .sd-key-value-table__wrapper{display:flex;align-items:stretch;width:100%;border:var(--sd-kvt-border-width) solid var(--sd-kvt-border-color);border-radius:var(--sd-kvt-radius);overflow:hidden}sd-key-value-table .sd-key-value-table__wrapper .sd-key-value-table{flex:1 1 auto;border:0;border-radius:0}sd-key-value-table .sd-key-value-table__wrapper.sd-key-value-table__wrapper--radius-
|
|
11912
|
+
const sdKeyValueTableCss = () => `sd-key-value-table{display:block}sd-key-value-table .sd-key-value-table__wrapper{display:flex;align-items:stretch;width:100%;border:var(--sd-kvt-border-width) solid var(--sd-kvt-border-color);border-radius:var(--sd-kvt-radius);overflow:hidden}sd-key-value-table .sd-key-value-table__wrapper .sd-key-value-table{flex:1 1 auto;border:0;border-radius:0}sd-key-value-table .sd-key-value-table__wrapper.sd-key-value-table__wrapper--radius-useTop{border-top-left-radius:0;border-top-right-radius:0}sd-key-value-table .sd-key-value-table__wrapper.sd-key-value-table__wrapper--radius-full{border-radius:0}sd-key-value-table .sd-key-value-table__search-panel{display:flex;align-items:center;justify-content:center;flex:0 0 auto;padding:var(--sd-kvt-padding) var(--sd-kvt-search-padding-x);background:var(--sd-kvt-search-bg);border-left:var(--sd-kvt-border-width) solid var(--sd-kvt-border-color)}sd-key-value-table .sd-key-value-table{width:100%;table-layout:fixed;border:var(--sd-kvt-border-width) solid var(--sd-kvt-border-color);border-radius:var(--sd-kvt-radius);border-collapse:separate;border-spacing:0;overflow:hidden}sd-key-value-table .sd-key-value-table.sd-key-value-table--radius-useTop{border-top-left-radius:0;border-top-right-radius:0}sd-key-value-table .sd-key-value-table.sd-key-value-table--radius-full{border-radius:0}sd-key-value-table .sd-key-value-table__th,sd-key-value-table .sd-key-value-table__td{height:var(--sd-kvt-row-height);box-sizing:border-box;vertical-align:middle;text-align:left;font-weight:normal;border-top:var(--sd-kvt-border-width) solid var(--sd-kvt-border-color)}sd-key-value-table .sd-key-value-table tbody>tr:first-child>.sd-key-value-table__th,sd-key-value-table .sd-key-value-table tbody>tr:first-child>.sd-key-value-table__td{border-top:0}sd-key-value-table .sd-key-value-table__th{padding:var(--sd-kvt-padding) var(--sd-kvt-th-padding-x);width:var(--sd-kvt-th-width);background:var(--sd-kvt-th-bg);color:var(--sd-kvt-th-color)}sd-key-value-table .sd-key-value-table__th-inner{display:flex;align-items:center;justify-content:space-between;gap:var(--sd-kvt-gap);width:100%;height:100%}sd-key-value-table .sd-key-value-table__label{display:inline-flex;align-items:center;gap:var(--sd-kvt-label-gap);font-family:var(--sd-kvt-label-font-family);font-size:var(--sd-kvt-label-font-size);font-weight:var(--sd-kvt-label-font-weight);line-height:var(--sd-kvt-label-line-height);color:var(--sd-kvt-th-color)}sd-key-value-table .sd-key-value-table__required{display:inline-flex;align-items:center;flex-shrink:0}sd-key-value-table .sd-key-value-table__help{display:inline-flex;align-items:center;flex-shrink:0}sd-key-value-table .sd-key-value-table__td{padding:var(--sd-kvt-padding);background:var(--sd-kvt-td-bg);color:var(--sd-kvt-td-color)}sd-key-value-table .sd-key-value-table__td-inner{display:flex;align-items:center;width:100%;height:100%}sd-key-value-table .sd-key-value-table__td-inner>slot{display:block;flex:1 1 auto;min-width:0}sd-key-value-table .sd-key-value-table__td-inner sd-input,sd-key-value-table .sd-key-value-table__td-inner sd-textarea,sd-key-value-table .sd-key-value-table__td-inner sd-number-input,sd-key-value-table .sd-key-value-table__td-inner sd-select,sd-key-value-table .sd-key-value-table__td-inner sd-date-picker,sd-key-value-table .sd-key-value-table__td-inner sd-date-range-picker,sd-key-value-table .sd-key-value-table__td-inner sd-file-picker{width:100%}sd-key-value-table .sd-key-value-table__text{font-family:var(--sd-kvt-td-font-family);font-size:var(--sd-kvt-td-font-size);font-weight:var(--sd-kvt-td-font-weight);line-height:var(--sd-kvt-td-line-height);color:var(--sd-kvt-td-color)}`;
|
|
11908
11913
|
|
|
11909
11914
|
class SdKeyValueTable {
|
|
11910
11915
|
constructor(hostRef) {
|
|
@@ -11924,7 +11929,7 @@ class SdKeyValueTable {
|
|
|
11924
11929
|
/**
|
|
11925
11930
|
* 테이블 border-radius 제어.
|
|
11926
11931
|
* - 'default': 전체 radius 적용
|
|
11927
|
-
* - '
|
|
11932
|
+
* - 'useTop': 상단 radius 0 (헤더·탭 등 하단에 붙여 쓸 때)
|
|
11928
11933
|
* - 'full': 상하단 모두 radius 0 (요소 사이에 끼워 쓸 때)
|
|
11929
11934
|
*/
|
|
11930
11935
|
radius = 'default';
|
|
@@ -12102,7 +12107,7 @@ class SdKeyValueTable {
|
|
|
12102
12107
|
const maxCols = this.computeMaxCols(autoSkip);
|
|
12103
12108
|
const tableEl = (hAsync("table", { class: {
|
|
12104
12109
|
'sd-key-value-table': true,
|
|
12105
|
-
'sd-key-value-table--radius-
|
|
12110
|
+
'sd-key-value-table--radius-useTop': this.radius === 'useTop',
|
|
12106
12111
|
'sd-key-value-table--radius-full': this.radius === 'full',
|
|
12107
12112
|
}, style: cssVars }, hAsync("colgroup", null, Array.from({ length: maxCols }, (_, i) => {
|
|
12108
12113
|
if (i % 2 !== 0)
|
|
@@ -12127,7 +12132,7 @@ class SdKeyValueTable {
|
|
|
12127
12132
|
return tableEl;
|
|
12128
12133
|
return (hAsync("div", { class: {
|
|
12129
12134
|
'sd-key-value-table__wrapper': true,
|
|
12130
|
-
'sd-key-value-table__wrapper--radius-
|
|
12135
|
+
'sd-key-value-table__wrapper--radius-useTop': this.radius === 'useTop',
|
|
12131
12136
|
'sd-key-value-table__wrapper--radius-full': this.radius === 'full',
|
|
12132
12137
|
}, style: cssVars }, tableEl, hAsync("div", { class: "sd-key-value-table__search-panel" }, hAsync("sd-button", { label: "\uAC80\uC0C9", name: "neutral_outline_md", onSdClick: this.handleSearchClick }))));
|
|
12133
12138
|
}
|
|
@@ -12191,7 +12196,7 @@ class SdLinearProgress {
|
|
|
12191
12196
|
clipPath: `inset(0 ${100 - this.clampedValue}% 0 0)`,
|
|
12192
12197
|
};
|
|
12193
12198
|
const valueText = `${Math.round(this.clampedValue)}%`;
|
|
12194
|
-
return (hAsync(Host, { key: '
|
|
12199
|
+
return (hAsync(Host, { key: '1e6aa9c81d3e9516a2f986d3f209df005de38f48', style: hostStyle }, hAsync("div", { key: '06115d6245603c7ae54d892a23074f34db203592', class: 'sd-linear-progress__track' }, hAsync("div", { key: '353549cb3c885cef86f114830599f375bfad8e50', class: 'sd-linear-progress__fill', style: fillStyle }), !this.indeterminate && (hAsync("span", { key: '61afec063cd8f6ccaca27217fe7b599926245192', class: 'sd-linear-progress__value sd-linear-progress__value--on-track' }, valueText)), !this.indeterminate && (hAsync("span", { key: 'fec238b0a6c73e06db3e53c019319a21b62e2836', class: 'sd-linear-progress__value sd-linear-progress__value--on-fill', style: valueOnFillStyle }, valueText))), this.label && hAsync("span", { key: '668f63765b78c1047e3b850f3a17d6b2a1b9bfd4', class: 'sd-linear-progress__label' }, this.label)));
|
|
12195
12200
|
}
|
|
12196
12201
|
static get style() { return sdLinearProgressCss(); }
|
|
12197
12202
|
static get cmpMeta() { return {
|
|
@@ -12225,10 +12230,10 @@ class SdLoadingContainer {
|
|
|
12225
12230
|
this.visible = false;
|
|
12226
12231
|
}
|
|
12227
12232
|
render() {
|
|
12228
|
-
return (hAsync("div", { key: '
|
|
12233
|
+
return (hAsync("div", { key: '6525405e4edafd9257be9887cca824a436b2807c', class: {
|
|
12229
12234
|
'sd-loading-container': true,
|
|
12230
12235
|
'sd-loading-container--visible': this.visible,
|
|
12231
|
-
}, "aria-hidden": this.visible ? 'false' : 'true' }, hAsync("div", { key: '
|
|
12236
|
+
}, "aria-hidden": this.visible ? 'false' : 'true' }, hAsync("div", { key: 'd5f1e1e3df8b704d4a5dabe8cf7b50cc07a2699a', class: "sd-loading-container__backdrop" }), hAsync("div", { key: '40dce62049e04a997b982ab65b47a755b6e917c7', class: "sd-loading-container__content" }, hAsync("sd-circle-progress", { key: '9cb7a1ed52433f2d0982ceef1a298b1367a99dd4', indeterminate: true, type: "inverse" }), this.message && (hAsync("p", { key: 'bc581b692122ef5553e4e8eb99056b89257eb6d9', class: "sd-loading-container__message" }, this.message)))));
|
|
12232
12237
|
}
|
|
12233
12238
|
static get style() { return sdLoadingContainerCss(); }
|
|
12234
12239
|
static get cmpMeta() { return {
|
|
@@ -12325,7 +12330,7 @@ class SdLoadingModal {
|
|
|
12325
12330
|
'--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
|
|
12326
12331
|
'--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
|
|
12327
12332
|
};
|
|
12328
|
-
return (hAsync(Host, { key: '
|
|
12333
|
+
return (hAsync(Host, { key: '12e8bb40871556dddad6bf3e9daa1703f3a29fc3', style: hostStyle }, hAsync("div", { key: 'b1f0282746a8a4ceabd120a1c366b836edb805c1', class: "sd-loading-modal" }, hAsync("div", { key: '496c034608b3d31557f154f77aa7cb7c2cb9558a', class: "sd-loading-modal__content" }, this.resolvedState === 'loading' ? (this.progress !== undefined ? (hAsync("sd-circle-progress", { value: this.progress })) : (hAsync("sd-circle-progress", { indeterminate: true }))) : (hAsync("sd-icon", { class: "sd-loading-modal__icon", name: "warningOutline", size: LOADING_MODAL_LAYOUT.contentSize, color: LOADING_MODAL_COLORS.errorIcon }))), hAsync("div", { key: 'e0a57ee49f6fe46680a8e2393a00014edd76d36f', class: "sd-loading-modal__message-wrapper" }, Array.isArray(this.resolvedMessage) ? (this.resolvedMessage.map(message => (hAsync("p", { class: "sd-loading-modal__message" }, message)))) : (hAsync("p", { class: "sd-loading-modal__message" }, this.resolvedMessage))), this.useButton && (hAsync("div", { key: 'bd0c91c279a7cd4d58a18f7bfd6e8c345ae00fcf', class: "sd-loading-modal__button" }, hAsync("sd-button", { key: '0d03006a668333de256b2142efc9d0c374bfef45', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
|
|
12329
12334
|
}
|
|
12330
12335
|
static get style() { return sdLoadingModalCss(); }
|
|
12331
12336
|
static get cmpMeta() { return {
|
|
@@ -12448,6 +12453,7 @@ const sdModalContainerCss = () => `sd-modal-container{display:block}sd-modal-con
|
|
|
12448
12453
|
|
|
12449
12454
|
let modalIdCounter = 0;
|
|
12450
12455
|
const ANIMATION_DURATION = 350;
|
|
12456
|
+
const FOCUSABLE_SELECTOR = 'a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])';
|
|
12451
12457
|
class SdModalContainer {
|
|
12452
12458
|
constructor(hostRef) {
|
|
12453
12459
|
registerInstance(this, hostRef);
|
|
@@ -12517,6 +12523,7 @@ class SdModalContainer {
|
|
|
12517
12523
|
return;
|
|
12518
12524
|
this.entries = this.entries.map(e => (e.id === id ? { ...e, backdropVisible: true } : e));
|
|
12519
12525
|
modalEl.classList.add('sd-modal-container__modal--visible');
|
|
12526
|
+
this.focusInitialElement(modalEl);
|
|
12520
12527
|
});
|
|
12521
12528
|
});
|
|
12522
12529
|
}
|
|
@@ -12546,7 +12553,14 @@ class SdModalContainer {
|
|
|
12546
12553
|
this.applyProps(entry.modalEl, props);
|
|
12547
12554
|
}
|
|
12548
12555
|
mountEntry(entry) {
|
|
12549
|
-
|
|
12556
|
+
const activeElement = typeof document !== 'undefined' ? document.activeElement : null;
|
|
12557
|
+
this.entries = [
|
|
12558
|
+
...(this.entries ?? []),
|
|
12559
|
+
{
|
|
12560
|
+
...entry,
|
|
12561
|
+
previousActiveElement: activeElement,
|
|
12562
|
+
},
|
|
12563
|
+
];
|
|
12550
12564
|
registerModal({
|
|
12551
12565
|
id: entry.id,
|
|
12552
12566
|
persistent: entry.persistent,
|
|
@@ -12604,6 +12618,7 @@ class SdModalContainer {
|
|
|
12604
12618
|
clearTimeout(currentEntry.dismissTimerId);
|
|
12605
12619
|
currentEntry.modalEl.remove();
|
|
12606
12620
|
unregisterModal(id);
|
|
12621
|
+
this.restoreFocus(currentEntry.previousActiveElement);
|
|
12607
12622
|
currentEntry.modalRef._triggerDismissed();
|
|
12608
12623
|
this.layerRefs.delete(id);
|
|
12609
12624
|
this.entries = (this.entries ?? []).filter(e => e.id !== id);
|
|
@@ -12689,6 +12704,44 @@ class SdModalContainer {
|
|
|
12689
12704
|
return;
|
|
12690
12705
|
requestCloseForModal(id);
|
|
12691
12706
|
}
|
|
12707
|
+
/**
|
|
12708
|
+
* 모달이 열릴 때 트리거 요소(버튼 등)에 남아 있던 포커스를 모달 내부로
|
|
12709
|
+
* 이동시킨다. 이를 하지 않으면 모달을 연 버튼이 계속 포커스를 가져,
|
|
12710
|
+
* Enter 키를 누를 때마다 트리거가 재실행되어 모달이 중첩으로 쌓인다.
|
|
12711
|
+
*/
|
|
12712
|
+
focusInitialElement(modalEl) {
|
|
12713
|
+
const target = this.getInitialFocusTarget(modalEl);
|
|
12714
|
+
target?.focus();
|
|
12715
|
+
}
|
|
12716
|
+
getInitialFocusTarget(modalEl) {
|
|
12717
|
+
const explicit = modalEl.querySelector('[autofocus]');
|
|
12718
|
+
if (explicit)
|
|
12719
|
+
return explicit;
|
|
12720
|
+
// 각 모달 타입의 메인(주요 액션) 버튼에 우선 포커스해 Enter 로 확정 가능하게 한다.
|
|
12721
|
+
// confirm/action/loading 모두 대응한다.
|
|
12722
|
+
const mainButton = modalEl.querySelector([
|
|
12723
|
+
'.sd-confirm-modal__button sd-button:last-of-type button',
|
|
12724
|
+
'.sd-action-modal__footer > sd-button button',
|
|
12725
|
+
'.sd-loading-modal__button sd-button button',
|
|
12726
|
+
].join(','));
|
|
12727
|
+
if (mainButton)
|
|
12728
|
+
return mainButton;
|
|
12729
|
+
// 그 외(커스텀 모달 등): 헤더의 닫기(X) 버튼을 제외한 첫 포커스 가능 요소.
|
|
12730
|
+
const focusables = Array.from(modalEl.querySelectorAll(FOCUSABLE_SELECTOR));
|
|
12731
|
+
const preferred = focusables.find(el => !el.closest('.sd-action-modal__close, .sd-confirm-modal__close-button'));
|
|
12732
|
+
if (focusables.length > 0)
|
|
12733
|
+
return preferred ?? focusables[0];
|
|
12734
|
+
if (!modalEl.hasAttribute('tabindex'))
|
|
12735
|
+
modalEl.setAttribute('tabindex', '-1');
|
|
12736
|
+
return modalEl;
|
|
12737
|
+
}
|
|
12738
|
+
restoreFocus(previousActiveElement) {
|
|
12739
|
+
if (previousActiveElement &&
|
|
12740
|
+
typeof previousActiveElement.focus === 'function' &&
|
|
12741
|
+
previousActiveElement.isConnected) {
|
|
12742
|
+
previousActiveElement.focus();
|
|
12743
|
+
}
|
|
12744
|
+
}
|
|
12692
12745
|
shakeModal(modalEl) {
|
|
12693
12746
|
const cls = 'sd-modal-container__modal--shake';
|
|
12694
12747
|
modalEl.classList.remove(cls);
|
|
@@ -13115,15 +13168,15 @@ class SdNumberInput {
|
|
|
13115
13168
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
13116
13169
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
13117
13170
|
};
|
|
13118
|
-
return (hAsync("sd-field", { key: '
|
|
13171
|
+
return (hAsync("sd-field", { key: 'f322e07238237b4b609fbc3cd819cf2856eb3e63', 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 }, hAsync("div", { key: '8e4e7561a8b42b4a8b2e1f9559f7409d17f32c14', class: {
|
|
13119
13172
|
'sd-number-input__content': true,
|
|
13120
13173
|
'sd-number-input__content--no-stepper': !this.useButton,
|
|
13121
|
-
} }, this.useButton && (hAsync("button", { key: '
|
|
13174
|
+
} }, this.useButton && (hAsync("button", { key: '642a5ce069d0af6347ecdbbb32c67ce2d8967cf4', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, hAsync("sd-icon", { key: 'd321af0b38dc8771ca58b52d079fe440551b4efc', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
13122
13175
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
13123
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && hAsync("span", { key: '
|
|
13176
|
+
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && hAsync("span", { key: '5b84c95d1e4e8e151c9c71b8ff6513185e97dbf4', class: "sd-number-input__prefix" }, this.inputPrefix), hAsync("input", { key: '0580882231474e80471085e7d91748943caf2f73', 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: {
|
|
13124
13177
|
textAlign: this.useButton ? 'center' : 'right',
|
|
13125
13178
|
...this.inputStyle,
|
|
13126
|
-
} }), this.inputSuffix && hAsync("span", { key: '
|
|
13179
|
+
} }), this.inputSuffix && hAsync("span", { key: 'd24110a5913272b0379f36823507c3c6ea4102be', class: "sd-number-input__suffix" }, this.inputSuffix), this.useButton && (hAsync("button", { key: '2bcf9b96f875322b269630f14bbec6c64d55f042', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, hAsync("sd-icon", { key: '809fb4ae2f33c4812bf329abc7dc1a9f78e9dd81', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
13127
13180
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
13128
13181
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
13129
13182
|
}
|
|
@@ -13333,13 +13386,13 @@ class SdPagination {
|
|
|
13333
13386
|
'--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
|
|
13334
13387
|
'--sd-pagination-item-width': `${this.buttonWidth}px`,
|
|
13335
13388
|
};
|
|
13336
|
-
return (hAsync("div", { key: '
|
|
13389
|
+
return (hAsync("div", { key: '8a2219bbc3a17951ed66501e7246f230f0495e74', class: {
|
|
13337
13390
|
'sd-pagination': true,
|
|
13338
13391
|
'sd-pagination--simple': this.simple,
|
|
13339
|
-
}, style: cssVars }, hAsync("div", { key: '
|
|
13392
|
+
}, style: cssVars }, hAsync("div", { key: '7e9ddb98aff7506fc3b6053d84c1be211e3d1ff7', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (hAsync("div", { class: "sd-pagination__info" }, hAsync("span", { class: "sd-pagination__current" }, this.currentPage), hAsync("span", { class: "sd-pagination__divider" }, "/"), hAsync("span", { class: "sd-pagination__last" }, this.lastPage))) : (hAsync("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (hAsync("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
13340
13393
|
'sd-pagination__item': true,
|
|
13341
13394
|
'sd-pagination__item--selected': this.currentPage === n,
|
|
13342
|
-
}, onClick: () => this.handlePageChange(n) }, n))))), hAsync("div", { key: '
|
|
13395
|
+
}, onClick: () => this.handlePageChange(n) }, n))))), hAsync("div", { key: '937554ea8d3ae71da85e2c1f49d82c99658141f0', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
|
|
13343
13396
|
}
|
|
13344
13397
|
static get style() { return sdPaginationCss(); }
|
|
13345
13398
|
static get cmpMeta() { return {
|
|
@@ -13565,7 +13618,7 @@ class SdPopup {
|
|
|
13565
13618
|
...DEFAULT_SUBMIT_BUTTON_PROPS,
|
|
13566
13619
|
...this.submitButtonProps,
|
|
13567
13620
|
};
|
|
13568
|
-
return (hAsync("div", { key: '
|
|
13621
|
+
return (hAsync("div", { key: 'fd14b75d27d3006978ceae9287486d9716bbbf5a', class: `sd-popup sd-popup--${this.type}`, style: cssVars }, hAsync("header", { key: 'ac0222dc9512b99cd1d1b4684b9775cd462f39fa', class: "sd-popup__header" }, hAsync("h2", { key: 'a11bea9fac5828161090d09d06d6e1c54c390392', class: "sd-popup__title" }, this.popupTitle)), hAsync("div", { key: 'ced8961a853cdf014d602c235cfc839a648fb19e', class: "sd-popup__body" }, hAsync("slot", { key: '142807fd74e8b32a31ffb7ed8f3dfdcb07a6a1ba' })), this.useFooter && (hAsync("footer", { key: '35a6b42e82ec13890b4fa56bda5b9781adeff229', class: "sd-popup__footer" }, hAsync("div", { key: '44b2471e0f302bd001fdf1e1d72485dff4af094f', class: "sd-popup__footer-slot sd-popup__footer-slot--left" }, hAsync("slot", { key: 'd1c8e29b60eb7ce86639e336c99a48a67437103a', name: "footer-left" })), hAsync("sd-button", { key: '67b0a8530cae73e344cdae2ac0cb48fa3bdf4827', ...submitButtonProps, class: "sd-popup__submit", onSdClick: () => this.submit.emit() })))));
|
|
13569
13622
|
}
|
|
13570
13623
|
static get style() { return sdPopupCss(); }
|
|
13571
13624
|
static get cmpMeta() { return {
|
|
@@ -13595,6 +13648,7 @@ class SdPortal {
|
|
|
13595
13648
|
viewportPadding = 0;
|
|
13596
13649
|
zIndex = 998;
|
|
13597
13650
|
open = false;
|
|
13651
|
+
placement = 'bottom';
|
|
13598
13652
|
close;
|
|
13599
13653
|
container;
|
|
13600
13654
|
wrapper;
|
|
@@ -13710,10 +13764,20 @@ class SdPortal {
|
|
|
13710
13764
|
const wrapperRect = this.wrapper.getBoundingClientRect();
|
|
13711
13765
|
const availableBelow = viewport.height - parentRect.bottom - offset[1] - viewportPadding;
|
|
13712
13766
|
const availableAbove = parentRect.top - offset[1] - viewportPadding;
|
|
13713
|
-
|
|
13767
|
+
const preferTop = (this.placement ?? 'bottom') === 'top';
|
|
13768
|
+
let top;
|
|
13714
13769
|
let left = parentRect.left + offset[0];
|
|
13715
|
-
if (
|
|
13770
|
+
if (preferTop) {
|
|
13716
13771
|
top = parentRect.top - wrapperRect.height - offset[1];
|
|
13772
|
+
if (availableAbove < wrapperRect.height && availableBelow > availableAbove) {
|
|
13773
|
+
top = parentRect.bottom + offset[1];
|
|
13774
|
+
}
|
|
13775
|
+
}
|
|
13776
|
+
else {
|
|
13777
|
+
top = parentRect.bottom + offset[1];
|
|
13778
|
+
if (availableBelow < wrapperRect.height && availableAbove > availableBelow) {
|
|
13779
|
+
top = parentRect.top - wrapperRect.height - offset[1];
|
|
13780
|
+
}
|
|
13717
13781
|
}
|
|
13718
13782
|
const minTop = viewportPadding;
|
|
13719
13783
|
const maxTop = viewport.height - viewportPadding - wrapperRect.height;
|
|
@@ -13812,7 +13876,7 @@ class SdPortal {
|
|
|
13812
13876
|
this.close.emit();
|
|
13813
13877
|
}
|
|
13814
13878
|
render() {
|
|
13815
|
-
return hAsync("slot", { key: '
|
|
13879
|
+
return hAsync("slot", { key: '911d01b26a26a4bb4d7c4a15b51755acb9615c3a' });
|
|
13816
13880
|
}
|
|
13817
13881
|
static get watchers() { return {
|
|
13818
13882
|
"open": [{
|
|
@@ -13828,7 +13892,8 @@ class SdPortal {
|
|
|
13828
13892
|
"offset": [16],
|
|
13829
13893
|
"viewportPadding": [2, "viewport-padding"],
|
|
13830
13894
|
"zIndex": [2, "z-index"],
|
|
13831
|
-
"open": [4]
|
|
13895
|
+
"open": [4],
|
|
13896
|
+
"placement": [1]
|
|
13832
13897
|
},
|
|
13833
13898
|
"$listeners$": [[9, "scroll", "updatePosition"], [9, "resize", "updatePosition"], [9, "mousedown", "handleMouseDown"], [8, "click", "handleWindowClick"]],
|
|
13834
13899
|
"$lazyBundleId$": "-",
|
|
@@ -14502,15 +14567,15 @@ class SdSelect {
|
|
|
14502
14567
|
this.closeDropdown();
|
|
14503
14568
|
},
|
|
14504
14569
|
};
|
|
14505
|
-
return (hAsync("sd-field", { key: '
|
|
14570
|
+
return (hAsync("sd-field", { key: 'f95dc4008dd1f252f8cb41637aa817bdd4d72ba0', 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: () => {
|
|
14506
14571
|
this.hovered = true;
|
|
14507
14572
|
}, onMouseLeave: () => {
|
|
14508
14573
|
this.hovered = false;
|
|
14509
|
-
} }, hAsync("div", { key: '
|
|
14574
|
+
} }, hAsync("div", { key: 'f12b88dc846a01fc2076242623ac1376ebc0105c', class: "sd-select", ref: el => {
|
|
14510
14575
|
this.triggerRef = el;
|
|
14511
|
-
} }, hAsync("sd-select-trigger", { key: '
|
|
14576
|
+
} }, hAsync("sd-select-trigger", { key: '8cef3403ca0a0430c3ce9f8255c98f0e28142d80', ref: el => {
|
|
14512
14577
|
this.triggerComponentRef = el;
|
|
14513
|
-
}, 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) && (hAsync("sd-portal", { key: '
|
|
14578
|
+
}, 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) && (hAsync("sd-portal", { key: '417194938ff7aac0b22abbba621342dbe767b146', ...portalProps }, hAsync("sd-select-listbox", { key: '0c311407fdc72f37fa7dddf48fdfbaab668a18f4', 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) })))));
|
|
14514
14579
|
}
|
|
14515
14580
|
static get watchers() { return {
|
|
14516
14581
|
"isOpen": [{
|
|
@@ -14764,7 +14829,7 @@ class SdSelectListItem {
|
|
|
14764
14829
|
return (
|
|
14765
14830
|
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
14766
14831
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
14767
|
-
hAsync("div", { key: '
|
|
14832
|
+
hAsync("div", { key: '4322a04d65e4b2e1d82d0a6b09fdf6a57cce79ca', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
14768
14833
|
'sd-select-list-item': true,
|
|
14769
14834
|
'sd-select-list-item--group': isGroup,
|
|
14770
14835
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -14774,7 +14839,7 @@ class SdSelectListItem {
|
|
|
14774
14839
|
'sd-select-list-item--focused': this.isFocused,
|
|
14775
14840
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
14776
14841
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
14777
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (hAsync("sd-checkbox", { key: '
|
|
14842
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (hAsync("sd-checkbox", { key: '47ae4bbe3c2fd960dcee0f1157ae8003dc45f205', 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) ? (hAsync("span", { class: "sd-select-list-item__label", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.option.label)) })) : (hAsync("span", { class: "sd-select-list-item__label" }, this.option.label)), this.countInfo && (hAsync("span", { key: 'c89ba1e3ef52a1809d1252aaee5a18c40ff7cd61', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
14778
14843
|
}
|
|
14779
14844
|
static get style() { return sdSelectListItemCss(); }
|
|
14780
14845
|
static get cmpMeta() { return {
|
|
@@ -14842,15 +14907,15 @@ class SdSelectListItemSearch {
|
|
|
14842
14907
|
clearTimeout(this.debounceTimer);
|
|
14843
14908
|
}
|
|
14844
14909
|
render() {
|
|
14845
|
-
return (hAsync("div", { key: '
|
|
14910
|
+
return (hAsync("div", { key: '94215143f5e47887943c726147739cdb1a9fcbf7', class: {
|
|
14846
14911
|
'sd-select-list-item-search': true,
|
|
14847
14912
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
14848
|
-
} }, hAsync("div", { key: '
|
|
14913
|
+
} }, hAsync("div", { key: '0ff422b93d0e15f2425ef760706ae0e6e2cb79f6', class: "sd-select-list-item-search__inner" }, hAsync("sd-icon", { key: 'cc3468339c8b76103b67182309fa3aa2baf24380', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), hAsync("input", { key: 'acc468ede845d0f5890c7908311443ea2aa156cf', ref: el => {
|
|
14849
14914
|
this.inputEl = el;
|
|
14850
|
-
}, 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() }), hAsync("button", { key: '
|
|
14915
|
+
}, 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() }), hAsync("button", { key: 'b1f1539aea4eb76458794dcb041e53c7af7b91e2', type: "button", class: {
|
|
14851
14916
|
'sd-select-list-item-search__clear': true,
|
|
14852
14917
|
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
14853
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, hAsync("sd-icon", { key: '
|
|
14918
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, hAsync("sd-icon", { key: 'a137986e0c801a6cf95e279edeb6a9b21cf00170', name: "close", size: 12, color: "#888888" })))));
|
|
14854
14919
|
}
|
|
14855
14920
|
static get style() { return sdSelectListItemSearchCss(); }
|
|
14856
14921
|
static get cmpMeta() { return {
|
|
@@ -15224,9 +15289,9 @@ class SdSelectListbox {
|
|
|
15224
15289
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
15225
15290
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
15226
15291
|
};
|
|
15227
|
-
return (hAsync("div", { key: '
|
|
15292
|
+
return (hAsync("div", { key: '77f3df8e7105f08340cf46ee0ce146d48b927228', class: "sd-select-listbox", style: cssVars }, this.showSearch && (hAsync("sd-select-list-item-search", { key: 'bd79903b4799e6a074895e0ea2b0987a4775a8e0', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), hAsync("div", { key: '08c5e0a70837025d62b08d85b0f5044b826dc133', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
15228
15293
|
this.listEl = el;
|
|
15229
|
-
} }, this.showSelectAll && (hAsync("sd-select-list-item", { key: '
|
|
15294
|
+
} }, this.showSelectAll && (hAsync("sd-select-list-item", { key: '918c481cc05f4839d6a133e68a90c68ddfac5fba', 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 ? (hAsync("div", { class: "sd-select-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (hAsync("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) })))))));
|
|
15230
15295
|
}
|
|
15231
15296
|
static get watchers() { return {
|
|
15232
15297
|
"searchKeyword": [{
|
|
@@ -15307,7 +15372,7 @@ class SdSelectTrigger {
|
|
|
15307
15372
|
? SELECT_COLORS.icon.disabled
|
|
15308
15373
|
: SELECT_COLORS.icon.default,
|
|
15309
15374
|
};
|
|
15310
|
-
return (hAsync("div", { key: '
|
|
15375
|
+
return (hAsync("div", { key: '361344e040569fa6f7c2b5d16762d9b2120ca50e', ref: el => {
|
|
15311
15376
|
this.triggerEl = el;
|
|
15312
15377
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
15313
15378
|
'sd-select-trigger': true,
|
|
@@ -15318,7 +15383,7 @@ class SdSelectTrigger {
|
|
|
15318
15383
|
e.preventDefault();
|
|
15319
15384
|
this.handleClick();
|
|
15320
15385
|
}
|
|
15321
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, hAsync("div", { key: '
|
|
15386
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, hAsync("div", { key: '3ccbf7c188ca90dc8ba94f10ef2fa3f7cea70076', class: "sd-select-trigger__content" }, hasValue && isHtmlLabel(this.displayText) ? (hAsync("span", { class: "sd-select-trigger__text", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.displayText)) })) : (hAsync("span", { class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택'))), hAsync("sd-icon", { key: '623f1f83d7b8c89e64f9ec8d8e3261bd771c45b4', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
15322
15387
|
'sd-select-trigger__icon': true,
|
|
15323
15388
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
15324
15389
|
} }))));
|
|
@@ -15443,7 +15508,7 @@ class SdSwitch {
|
|
|
15443
15508
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
15444
15509
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
15445
15510
|
};
|
|
15446
|
-
return (hAsync("label", { key: '
|
|
15511
|
+
return (hAsync("label", { key: '4746eeb0cd3b977be3bc537c30cbf58c51d3a8fc', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, hAsync("input", { key: 'f022803741f2ac787a8993a2d987eedc5d6c8f24', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), hAsync("div", { key: 'd8684dcb2b446885f849e6f00d773ef340e37c73', class: "sd-switch__track" }, hAsync("div", { key: '572bd3dd7f65c9a9fd36c27b4444b0e653ae2b23', class: "sd-switch__knob" })), this.label && hAsync("span", { key: '5228763c541a4bc0a71bfb457a4432dca01d452f', class: "sd-switch__label" }, this.label)));
|
|
15447
15512
|
}
|
|
15448
15513
|
static get style() { return sdSwitchCss(); }
|
|
15449
15514
|
static get cmpMeta() { return {
|
|
@@ -15553,7 +15618,7 @@ const ICON_DEFAULT_COLOR = {
|
|
|
15553
15618
|
const resolveTableIconColor = (name, override) => override ?? ICON_DEFAULT_COLOR[name];
|
|
15554
15619
|
const resolveSortIconName = (sort) => sort === 'asc' ? 'arrowDown' : sort === 'desc' ? 'arrowUp' : 'updown';
|
|
15555
15620
|
|
|
15556
|
-
const sdTableCss = () => `sd-table,:host{display:block;width:100%;height:var(--table-host-height);max-width:100%;min-width:0}sd-table *,:host *{box-sizing:border-box}.sd-table__container{height:100%;width:var(--table-width, 100%);max-width:100%;min-width:0;color:#222222;display:flex;flex-direction:column}.sd-table__wrapper{width:100%;min-width:0;height:calc(100% - var(--pagination-height, 0px));border:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);border-radius:var(--table-radius, 8px);overflow:hidden}.sd-table__wrapper--radius-
|
|
15621
|
+
const sdTableCss = () => `sd-table,:host{display:block;width:100%;height:var(--table-host-height);max-width:100%;min-width:0}sd-table *,:host *{box-sizing:border-box}.sd-table__container{height:100%;width:var(--table-width, 100%);max-width:100%;min-width:0;color:#222222;display:flex;flex-direction:column}.sd-table__wrapper{width:100%;min-width:0;height:calc(100% - var(--pagination-height, 0px));border:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);border-radius:var(--table-radius, 8px);overflow:hidden}.sd-table__wrapper--radius-useTop{border-radius:0 0 var(--table-radius, 8px) var(--table-radius, 8px)}.sd-table__wrapper--radius-full{border-radius:0}.sd-table__scroll-container{width:100%;height:100%;display:flex;flex-direction:column;position:relative;font-family:var(--table-body-font-family, inherit);font-weight:var(--table-body-font-weight, 400);font-size:var(--table-body-font-size, 12px);line-height:var(--table-body-line-height, 20px);text-decoration:var(--table-body-text-decoration, none);overflow:auto;background:#FFFFFF}.sd-table__scroll-container--loading{overflow:hidden !important;pointer-events:none}.sd-table__scroll-container--no-data{overflow:hidden;pointer-events:none}.sd-table__no-data{position:absolute;top:36px;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;font-size:var(--table-body-font-size, 12px);color:#888888;pointer-events:none;z-index:200;background:rgba(255, 255, 255, 0.6)}.sd-table__no-data-header-overlay{position:absolute;top:0;left:0;right:0;height:36px;background:rgba(255, 255, 255, 0.6);z-index:210;pointer-events:none}.sd-table__no-data-content{pointer-events:auto;min-height:60px;width:100%;display:flex;align-items:center;justify-content:center}.sd-table__loading{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(255, 255, 255, 0.6);z-index:200;display:flex;align-items:center;justify-content:center;pointer-events:none}.sd-table{background-color:white;display:table;width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.sd-table--selectable sd-thead,.sd-table--selectable sd-tbody{--selectable:true}.sd-table--sticky-header sd-thead thead{position:sticky;top:0;z-index:120}.sd-table--sticky-column sd-thead,.sd-table--sticky-column sd-tbody{--sticky-column:true}.sd-table--scrolled-left sd-thead,.sd-table--scrolled-left sd-tbody{--scrolled-left:true}.sd-table--scrolled-right sd-thead,.sd-table--scrolled-right sd-tbody{--scrolled-right:true}.sd-table--resizable sd-thead{--resizable:true}.sd-table--no-data sd-thead{opacity:0.4}.sd-table__pagination{position:relative;background:#F9F9F9;height:48px;display:flex;align-items:center;justify-content:center;border:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);margin-top:-1px;border-radius:var(--table-radius, 8px)}.sd-table__pagination sd-select{position:absolute;right:10px;top:50%;transform:translateY(-50%)}`;
|
|
15557
15622
|
|
|
15558
15623
|
class SdTable {
|
|
15559
15624
|
constructor(hostRef) {
|
|
@@ -16376,25 +16441,25 @@ class SdTable {
|
|
|
16376
16441
|
'--table-selectable-width': `${TABLE_SELECTABLE_COLUMN_WIDTH}px`,
|
|
16377
16442
|
'--table-host-height': hostHeight,
|
|
16378
16443
|
};
|
|
16379
|
-
return (hAsync(Host, { key: '
|
|
16444
|
+
return (hAsync(Host, { key: 'f5a5a2d4012f069619d110dcd9c2d5e6bd446407', style: hostStyle }, hAsync("div", { key: '96ca8b8e4291ac077a6e1b6d3eed897777817b25', class: "sd-table__container", style: {
|
|
16380
16445
|
'--table-width': this.width,
|
|
16381
16446
|
'--pagination-height': `${paginationHeight}px`,
|
|
16382
|
-
} }, hAsync("div", { key: '
|
|
16447
|
+
} }, hAsync("div", { key: 'd8225691e78e5fe5341f03def8ad1d6dfb057056', class: {
|
|
16383
16448
|
'sd-table__wrapper': true,
|
|
16384
|
-
'sd-table__wrapper--radius-
|
|
16449
|
+
'sd-table__wrapper--radius-useTop': this.radius === 'useTop',
|
|
16385
16450
|
'sd-table__wrapper--radius-full': this.radius === 'full',
|
|
16386
|
-
} }, hAsync("div", { key: '
|
|
16451
|
+
} }, hAsync("div", { key: 'fb8403bd7587a4d1fcbb77b1fe226ae0aa27be7a', class: {
|
|
16387
16452
|
'sd-table__scroll-container': true,
|
|
16388
16453
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
16389
16454
|
'sd-table__scroll-container--no-data': isNoData,
|
|
16390
|
-
} }, this.isLoading && (hAsync("div", { key: '
|
|
16455
|
+
} }, this.isLoading && (hAsync("div", { key: '4202fa1f03feff066f9779c5eb21c3b0c96f5cf3', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, hAsync("sd-circle-progress", { key: '394c52823f5c24f288d51b34daec6f228de119d7', indeterminate: true }))), isNoData && (hAsync(hAsync.Fragment, null, hAsync("div", { key: 'bb1d3d8b592194006bea7cd5ab2efc587f9abc44', class: "sd-table__no-data-header-overlay" }), hAsync("div", { key: 'c34df2b4f35c7ea8b5bbe6cf49dc354e11dac344', class: "sd-table__no-data" }, hAsync("div", { key: '05006aacc2c242606ba8585ee0bdea50eea1b688', class: "sd-table__no-data-content", ref: el => {
|
|
16391
16456
|
this.noDataContentEl = el;
|
|
16392
16457
|
if (el)
|
|
16393
16458
|
this.syncNoDataContentObserver();
|
|
16394
|
-
} }, hAsync("slot", { key: '
|
|
16459
|
+
} }, hAsync("slot", { key: 'ad707be9bc8062da5a6236c9833176adb7b95851', name: "no-data" }, hAsync("span", { key: '3aa57b547e05bd455829cff770c435af2ac78383' }, this.resolvedNoDataLabel)))))), hAsync("table", { key: '6b2958f14d9708a49e3cbaff7cdb3653f7267e1c', class: this.tableClasses }, this.autoThead ? (hAsync("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, hAsync("sd-thead", { rows: this.rows ?? [] }))) : (hAsync("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (hAsync("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, hAsync("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (hAsync("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
16395
16460
|
this.pagination.rowsPerPage > 0 &&
|
|
16396
16461
|
this.rowCount > 0 &&
|
|
16397
|
-
!this.useVirtualScroll && (hAsync("div", { key: '
|
|
16462
|
+
!this.useVirtualScroll && (hAsync("div", { key: '950e80fdb6c06af2b4423e3b0c75ded7cfe4a298', class: "sd-table__pagination" }, hAsync("sd-pagination", { key: '3257c7b631c262c9ddadbd23c83f2eb43f9bf7f5', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (hAsync("sd-select", { key: '7bb00889139aa7dbee4723efac511753afcb15e9', value: this.useInternalPagination
|
|
16398
16463
|
? this.innerRowsPerPage
|
|
16399
16464
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
16400
16465
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -16699,7 +16764,7 @@ class SdTabs {
|
|
|
16699
16764
|
};
|
|
16700
16765
|
}
|
|
16701
16766
|
render() {
|
|
16702
|
-
return (hAsync("div", { key: '
|
|
16767
|
+
return (hAsync("div", { key: 'c2a2bd86833267ca4b47e7c6420e04a504af05f5', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index) => {
|
|
16703
16768
|
const badgeName = this.getBadgeName(tab);
|
|
16704
16769
|
return (hAsync("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 => {
|
|
16705
16770
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
@@ -16938,7 +17003,7 @@ class SdTag {
|
|
|
16938
17003
|
render() {
|
|
16939
17004
|
const config = this.resolvedConfig;
|
|
16940
17005
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
16941
|
-
return (hAsync("span", { key: '
|
|
17006
|
+
return (hAsync("span", { key: '3117d8d5f3d9751dc193e426dbab7e0ead9fb369', class: "sd-tag", style: {
|
|
16942
17007
|
'--sd-tag-background': config.background,
|
|
16943
17008
|
'--sd-tag-content': config.content,
|
|
16944
17009
|
'--sd-tag-height': config.height,
|
|
@@ -16948,7 +17013,7 @@ class SdTag {
|
|
|
16948
17013
|
'--sd-tag-font-weight': config.fontWeight,
|
|
16949
17014
|
'--sd-tag-line-height': config.lineHeight,
|
|
16950
17015
|
'--sd-tag-radius': config.radius,
|
|
16951
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, hAsync("span", { key: '
|
|
17016
|
+
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, hAsync("span", { key: '8c299f140dc5bd026ed52d3f0921939bbf69fdd5', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
|
|
16952
17017
|
}
|
|
16953
17018
|
static get style() { return sdTagCss(); }
|
|
16954
17019
|
static get cmpMeta() { return {
|
|
@@ -17016,9 +17081,9 @@ class SdTbody {
|
|
|
17016
17081
|
}
|
|
17017
17082
|
}
|
|
17018
17083
|
render() {
|
|
17019
|
-
return (hAsync(Host, { key: '
|
|
17084
|
+
return (hAsync(Host, { key: 'ae49b4a7e18afd3d44d07e7da6c3663a6a043796', slot: `${this.tableId}-body` }, hAsync("tbody", { key: '7275cf9214f6917c5437b8a72a06cde3ca48dc8c', class: { tbody: true } }, [
|
|
17020
17085
|
this.topSpacerHeight > 0 && (hAsync("tr", { key: "spacer-top", class: "tbody__spacer", style: { height: `${this.topSpacerHeight}px`, display: 'block' } })),
|
|
17021
|
-
hAsync("slot", { key: '
|
|
17086
|
+
hAsync("slot", { key: '6455be878c24df5371e094fbfe9687ddb992e0e6' }),
|
|
17022
17087
|
this.bottomSpacerHeight > 0 && (hAsync("tr", { key: "spacer-bottom", class: "tbody__spacer", style: { height: `${this.bottomSpacerHeight}px`, display: 'block' } })),
|
|
17023
17088
|
])));
|
|
17024
17089
|
}
|
|
@@ -17193,7 +17258,7 @@ class SdTd {
|
|
|
17193
17258
|
}
|
|
17194
17259
|
}
|
|
17195
17260
|
render() {
|
|
17196
|
-
return (hAsync(Host, { key: '
|
|
17261
|
+
return (hAsync(Host, { key: 'ed5419d9190514381bb8fe43a8588c7d88983527', class: { [`align-${this.align}`]: Boolean(this.align) } }, hAsync("slot", { key: '308d16388614375c94bd4c5efc8e173b56b4af2a' })));
|
|
17197
17262
|
}
|
|
17198
17263
|
static get watchers() { return {
|
|
17199
17264
|
"field": [{
|
|
@@ -17549,7 +17614,7 @@ class SdTextarea {
|
|
|
17549
17614
|
'--sd-system-size-field-sm-height': 'auto',
|
|
17550
17615
|
'--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
|
|
17551
17616
|
};
|
|
17552
|
-
return (hAsync("sd-field", { key: '
|
|
17617
|
+
return (hAsync("sd-field", { key: '696b0aa26405687dad43ce934adbe7ec19e9b893', 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 }, hAsync("div", { key: '69a996d757345e25ef94238f8fffa521e7b7252e', class: "sd-textarea__content" }, hAsync("textarea", { key: 'dbfcc43cbbf3bdde147f6a784df1c122bcb70b0e', 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 }))));
|
|
17553
17618
|
}
|
|
17554
17619
|
static get watchers() { return {
|
|
17555
17620
|
"value": [{
|
|
@@ -17766,16 +17831,16 @@ class SdThead {
|
|
|
17766
17831
|
'--table-border-color': TABLE_BORDER.color,
|
|
17767
17832
|
'--table-border-width': `${TABLE_BORDER.width}px`,
|
|
17768
17833
|
};
|
|
17769
|
-
return (hAsync(Host, { key: '
|
|
17834
|
+
return (hAsync(Host, { key: 'c25f6f9704c079d4cb93da7e65c8c15b6dedcb67', slot: `${this.tableId}-head`, style: headStyle }, hAsync("thead", { key: 'd91019378caafa2ec32dfa838eaa4d1fe815fb0d', class: {
|
|
17770
17835
|
'thead': true,
|
|
17771
17836
|
'thead--sticky': this._stickyHeader,
|
|
17772
|
-
} }, hAsync("tr", { key: '
|
|
17837
|
+
} }, hAsync("tr", { key: '84e581f5c564693d356f56525f57d6b1da211442', class: "tr" }, this._selectable && (hAsync("th", { key: 'fb92e978229c32d560f46af4e90e0980c9c0a213', class: {
|
|
17773
17838
|
'th': true,
|
|
17774
17839
|
'th--selected': true,
|
|
17775
17840
|
'sticky-left': true,
|
|
17776
17841
|
'sticky-left-edge': stickyLeftCount === 0,
|
|
17777
17842
|
'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
|
|
17778
|
-
}, style: { '--sticky-left-offset': '0px' } }, hAsync("sd-checkbox", { key: '
|
|
17843
|
+
}, style: { '--sticky-left-offset': '0px' } }, hAsync("sd-checkbox", { key: '157f59b56a4ef2a8529318c8beaf6f59b91e12f0', value: this.getIsAllChecked(), disabled: safeRows.length === 0, onSdUpdate: (e) => this.handleSelectAll(e.detail) }), hAsync("div", { key: 'b65e099ebe4940b26cc251961e66a375400f2379', class: "th__bar" }))), stickyLeftCols.map((col, idx) => (hAsync("th", { key: col.name, class: {
|
|
17779
17844
|
'th': true,
|
|
17780
17845
|
[`${col.thClass}`]: Boolean(col.thClass),
|
|
17781
17846
|
'sticky-left': true,
|
|
@@ -17926,12 +17991,12 @@ class SdToast {
|
|
|
17926
17991
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
17927
17992
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
17928
17993
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
17929
|
-
return (hAsync("div", { key: '
|
|
17994
|
+
return (hAsync("div", { key: '45a278a76dde70b17794763fa35365ac8d634194', style: {
|
|
17930
17995
|
'--sd-toast-bg': typeConfig.bg,
|
|
17931
17996
|
'--sd-toast-text': typeConfig.content,
|
|
17932
17997
|
'--sd-toast-icon': iconColor,
|
|
17933
17998
|
'--sd-toast-link': linkColor,
|
|
17934
|
-
} }, hAsync("div", { key: '
|
|
17999
|
+
} }, hAsync("div", { key: 'eb00957c65514153867322942ed111d24622c75b', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (hAsync("div", { key: 'd30f442041ea963e86f8558f3ed07ceb28049ae9', class: "sd-toast__icon" }, hAsync("sd-icon", { key: '04e57935a4fe4344f3eb1338cfc436bef449805e', name: this.icon, size: iconSize, color: iconColor }))), hAsync("div", { key: '02270cd25d409d44bbd1d7932b074494d2cbeca1', class: "sd-toast__content" }, hAsync("span", { key: '5f180c70d130fc04b16901c69a399f6effa328b9', class: "sd-toast__message" }, this.message)), this.link && (hAsync("a", { key: '4fd2adab87dbdaae94c21483f66256ce773ae965', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (hAsync("sd-button", { key: '2c60553150114d6d5b99a2e86b35b4a85c4a34a4', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (hAsync("sd-ghost-button", { key: 'c3e01391b713286b65a05352dd39ab98790564f8', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
17935
18000
|
}
|
|
17936
18001
|
static get style() { return sdToastCss(); }
|
|
17937
18002
|
static get cmpMeta() { return {
|
|
@@ -18184,7 +18249,7 @@ class SdToastContainer {
|
|
|
18184
18249
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
18185
18250
|
const indexMap = new Map();
|
|
18186
18251
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
18187
|
-
return (hAsync("div", { key: '
|
|
18252
|
+
return (hAsync("div", { key: 'f5b2cb8f4d1286bbd8f7cd648916294397ed4742', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
18188
18253
|
this.expanded = true;
|
|
18189
18254
|
this.pauseTimers();
|
|
18190
18255
|
}, onMouseLeave: () => {
|
|
@@ -18342,7 +18407,7 @@ class SdToggle {
|
|
|
18342
18407
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
18343
18408
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
18344
18409
|
};
|
|
18345
|
-
return (hAsync("label", { key: '
|
|
18410
|
+
return (hAsync("label", { key: '9ef981165b998f43ec23f3bb1cf0ef385962d7fb', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, hAsync("input", { key: '6b6d2a89f43036f624c7bc291b2c5aa7a93c8f0a', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
18346
18411
|
}
|
|
18347
18412
|
static get style() { return sdToggleCss(); }
|
|
18348
18413
|
static get cmpMeta() { return {
|
|
@@ -18516,7 +18581,7 @@ class SdTooltip {
|
|
|
18516
18581
|
const bodyHTML = this.message && this.message.length > 0
|
|
18517
18582
|
? this.message.map(line => `<div>${line}</div>`).join('')
|
|
18518
18583
|
: this.slotContentHTML;
|
|
18519
|
-
return (hAsync(Fragment, { key: '
|
|
18584
|
+
return (hAsync(Fragment, { key: 'da2904e5cc41627283ff383366548453ef892dbc' }, hAsync("div", { key: 'e94184fa6a51524f0dc5d3ba0610a3fa63663b4f', ref: el => (this.triggerEl = el), class: triggerClasses, ...divTrigger }, anchorMode ? (hAsync("slot", { name: "anchor" })) : hasLabel ? (hAsync("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 })) : (hAsync("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: this.iconSize ?? 12, color: color, class: "sd-tooltip" }))), this.showTooltip && (hAsync("sd-floating-portal", { key: '52b86274d938e67a89018839812b4d26108f0921', parentRef: anchorMode ? this.triggerEl : this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.tooltipOffset }, hAsync("div", { key: '177149d153ca4659a1dc4b71cd9d98cf36e19cd9', ref: el => (this.menuEl = el), class: {
|
|
18520
18585
|
'sd-floating-menu': true,
|
|
18521
18586
|
[`sd-floating-menu--${tooltipType}`]: true,
|
|
18522
18587
|
[`sd-floating-menu--${placement}`]: true,
|
|
@@ -18524,7 +18589,7 @@ class SdTooltip {
|
|
|
18524
18589
|
}, style: {
|
|
18525
18590
|
'--sd-floating-bg': typeConfig.bg,
|
|
18526
18591
|
'--sd-floating-content': typeConfig.content,
|
|
18527
|
-
}, onMouseEnter: () => this.openTooltip(), onMouseLeave: () => !this.useClose && this.startHideTimer() }, hAsync("i", { key: '
|
|
18592
|
+
}, onMouseEnter: () => this.openTooltip(), onMouseLeave: () => !this.useClose && this.startHideTimer() }, hAsync("i", { key: '6412bc25156af7a4bc276bc29f46458df7ac123b', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, hAsync(TooltipArrow, { key: 'af6b98e12d0ce7816b9888614d7f70e93c9accd6' })), hAsync("div", { key: '4b3bdb5eda8a67374a68e2ef3dbc51d630720c08', class: "sd-floating-menu__content", innerHTML: bodyHTML }), this.useClose && (hAsync("sd-ghost-button", { key: '2bbe32da05ec4e84dba7b00d12826d9fb2492dfe', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xxs", onClick: () => this.closeTooltip() })))))));
|
|
18528
18593
|
}
|
|
18529
18594
|
static get style() { return sdTooltipCss(); }
|
|
18530
18595
|
static get cmpMeta() { return {
|