@sellmate/design-system 1.25.1 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sd-calendar_2.cjs.entry.js +2 -2
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +9 -9
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-divider.cjs.entry.js +1 -1
- package/dist/cjs/sd-field_3.cjs.entry.js +7 -7
- package/dist/cjs/sd-ghost-button_3.cjs.entry.js +11 -3
- package/dist/cjs/sd-linear-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-loading-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-pagination_4.cjs.entry.js +8 -8
- package/dist/cjs/sd-popup.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +6 -6
- package/dist/cjs/sd-select_3.cjs.entry.js +8 -8
- package/dist/cjs/sd-switch.cjs.entry.js +1 -1
- package/dist/cjs/sd-table.cjs.entry.js +6 -6
- package/dist/cjs/sd-tabs.cjs.entry.js +1 -1
- package/dist/cjs/sd-td.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast.cjs.entry.js +2 -2
- package/dist/cjs/sd-toggle.cjs.entry.js +1 -1
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +2 -2
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
- package/dist/collection/components/sd-divider/sd-divider.js +1 -1
- package/dist/collection/components/sd-field/sd-field.js +4 -4
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +1 -1
- package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
- package/dist/collection/components/sd-select/sd-select.js +4 -4
- package/dist/collection/components/sd-switch/sd-switch.js +1 -1
- package/dist/collection/components/sd-table/sd-table.js +6 -6
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +2 -2
- package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.css +2 -1
- package/dist/collection/components/sd-tag/sd-tag.js +31 -3
- 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-I-9rJnxk.js → p-0UeArSzN.js} +1 -1
- package/dist/components/{p-BW-I-6Id.js → p-1kjTqHez.js} +1 -1
- package/dist/components/{p-BlN03Cqm.js → p-B4ua22vZ.js} +1 -1
- package/dist/components/{p-CqivNcjh.js → p-BAIi5T00.js} +1 -1
- package/dist/components/{p-Dny4KukK.js → p-BCLDTSO0.js} +1 -1
- package/dist/components/{p-PMD-Col0.js → p-BGIwu6m1.js} +1 -1
- package/dist/components/{p-DMvWCQfX.js → p-BOrdn-Js.js} +1 -1
- package/dist/components/{p-B8uvCE1e.js → p-BTWV2vRX.js} +1 -1
- package/dist/components/{p-BuuIkYiY.js → p-Bv_CVYp1.js} +1 -1
- package/dist/components/{p-1fgPu1BU.js → p-BwwpMQLA.js} +1 -1
- package/dist/components/{p-0U99W-3Z.js → p-C1vqL1Kl.js} +1 -1
- package/dist/components/{p-CtNDxhxx.js → p-C7sPq8UM.js} +1 -1
- package/dist/components/p-C7sUn4qb.js +1 -0
- package/dist/components/{p-CQLezwlh.js → p-CA2sZAsI.js} +1 -1
- package/dist/components/{p-BAsjJuJJ.js → p-CFqCJx9B.js} +1 -1
- package/dist/components/{p-lGr865w2.js → p-D0Xz7CoK.js} +1 -1
- package/dist/components/{p-BzrpKueg.js → p-D15bTkjr.js} +1 -1
- package/dist/components/{p-BZUlNC0d.js → p-DPotN1QM.js} +1 -1
- package/dist/components/{p-DBw58vNP.js → p-DU2_jzh4.js} +1 -1
- package/dist/components/{p-BGpxtouI.js → p-DsGK3Aye.js} +1 -1
- package/dist/components/{p-DpYG9T3S.js → p-DznzJSU-.js} +1 -1
- package/dist/components/{p-BoH7ykYx.js → p-IBgCA-vo.js} +1 -1
- package/dist/components/{p-CNwoxvpg.js → p-JamWHNrr.js} +1 -1
- package/dist/components/{p-Dxye4-ZY.js → p-UkSGSWSA.js} +1 -1
- package/dist/components/{p-h9_f4fUW.js → p-aYmWxyum.js} +1 -1
- package/dist/components/{p-d3KpOGRC.js → p-tSYcqBKN.js} +1 -1
- package/dist/components/{p-DbbdfMAF.js → p-zGr4He38.js} +1 -1
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-chip-input.js +1 -1
- package/dist/components/sd-chip.js +1 -1
- package/dist/components/sd-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-field.js +1 -1
- package/dist/components/sd-file-picker.js +1 -1
- package/dist/components/sd-floating-portal.js +1 -1
- package/dist/components/sd-ghost-button.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-key-value-table.js +1 -1
- package/dist/components/sd-linear-progress.js +1 -1
- package/dist/components/sd-loading-container.js +1 -1
- package/dist/components/sd-loading-modal.js +1 -1
- package/dist/components/sd-modal-container.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-popup.js +1 -1
- package/dist/components/sd-select-list-item-search.js +1 -1
- package/dist/components/sd-select-list-item.js +1 -1
- package/dist/components/sd-select-listbox.js +1 -1
- package/dist/components/sd-select-trigger.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-switch.js +1 -1
- package/dist/components/sd-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-thead.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-toggle.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-9ea2fbec.entry.js → p-065cd2f4.entry.js} +1 -1
- package/dist/design-system/p-28e1cf94.entry.js +1 -0
- package/dist/design-system/{p-cb63d4cf.entry.js → p-2c704047.entry.js} +1 -1
- package/dist/design-system/{p-43d521c4.entry.js → p-4d747082.entry.js} +1 -1
- package/dist/design-system/{p-74e605c0.entry.js → p-4deb11d8.entry.js} +1 -1
- package/dist/design-system/{p-84b415d7.entry.js → p-681f8612.entry.js} +1 -1
- package/dist/design-system/{p-9afc1f7c.entry.js → p-79d85b32.entry.js} +1 -1
- package/dist/design-system/{p-8862e3e3.entry.js → p-7c22de74.entry.js} +1 -1
- package/dist/design-system/{p-3b71d1d4.entry.js → p-8b4d246f.entry.js} +1 -1
- package/dist/design-system/{p-b4df75b9.entry.js → p-8da06c09.entry.js} +1 -1
- package/dist/design-system/{p-5a67c40d.entry.js → p-940de4ba.entry.js} +1 -1
- package/dist/design-system/{p-a1438f7d.entry.js → p-9c3f7c57.entry.js} +1 -1
- package/dist/design-system/{p-a8d69ab2.entry.js → p-a992c64b.entry.js} +1 -1
- package/dist/design-system/{p-21d8f192.entry.js → p-b127ac21.entry.js} +1 -1
- package/dist/design-system/{p-6f77fc76.entry.js → p-ba10c791.entry.js} +1 -1
- package/dist/design-system/{p-f1e0ba30.entry.js → p-bd700588.entry.js} +1 -1
- package/dist/design-system/p-c3b032a1.entry.js +1 -0
- package/dist/design-system/{p-6b20c76b.entry.js → p-d8bebc8e.entry.js} +1 -1
- package/dist/design-system/{p-a505459f.entry.js → p-dca19618.entry.js} +1 -1
- package/dist/design-system/{p-c0198e3a.entry.js → p-e45e6e56.entry.js} +1 -1
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-calendar_2.entry.js +2 -2
- package/dist/esm/sd-confirm-modal_2.entry.js +1 -1
- package/dist/esm/sd-date-picker_7.entry.js +9 -9
- package/dist/esm/sd-date-range-picker-calendar.entry.js +1 -1
- package/dist/esm/sd-divider.entry.js +1 -1
- package/dist/esm/sd-field_3.entry.js +7 -7
- package/dist/esm/sd-ghost-button_3.entry.js +12 -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-pagination_4.entry.js +8 -8
- package/dist/esm/sd-popup.entry.js +1 -1
- package/dist/esm/sd-select-list-item_2.entry.js +6 -6
- package/dist/esm/sd-select_3.entry.js +8 -8
- package/dist/esm/sd-switch.entry.js +1 -1
- package/dist/esm/sd-table.entry.js +6 -6
- package/dist/esm/sd-tabs.entry.js +1 -1
- package/dist/esm/sd-td.entry.js +1 -1
- package/dist/esm/sd-toast-container.entry.js +1 -1
- package/dist/esm/sd-toast.entry.js +2 -2
- package/dist/esm/sd-toggle.entry.js +1 -1
- package/dist/types/components/sd-tag/sd-tag.d.ts +3 -0
- package/dist/types/components.d.ts +11 -0
- package/hydrate/index.js +73 -64
- package/hydrate/index.mjs +73 -64
- package/package.json +1 -1
- package/dist/components/p-D8T1XeGP.js +0 -1
- package/dist/design-system/p-0d5d2723.entry.js +0 -1
- package/dist/design-system/p-ad822c82.entry.js +0 -1
|
@@ -156,13 +156,13 @@ const SdPagination = class {
|
|
|
156
156
|
'--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
|
|
157
157
|
'--sd-pagination-item-width': `${this.buttonWidth}px`,
|
|
158
158
|
};
|
|
159
|
-
return (h("div", { key: '
|
|
159
|
+
return (h("div", { key: '8cdda030c6ffa1a4f3358a5877da3b76293bae39', class: {
|
|
160
160
|
'sd-pagination': true,
|
|
161
161
|
'sd-pagination--simple': this.simple,
|
|
162
|
-
}, style: cssVars }, h("div", { key: '
|
|
162
|
+
}, style: cssVars }, h("div", { key: '34569687e67dec4b218ef6d3da01e21b19176284', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "sd-pagination__info" }, h("span", { class: "sd-pagination__current" }, this.currentPage), h("span", { class: "sd-pagination__divider" }, "/"), h("span", { class: "sd-pagination__last" }, this.lastPage))) : (h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
163
163
|
'sd-pagination__item': true,
|
|
164
164
|
'sd-pagination__item--selected': this.currentPage === n,
|
|
165
|
-
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: '
|
|
165
|
+
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: 'a222ff48f10bce574ad9ef928d66d99696f6923b', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
168
|
SdPagination.style = sdPaginationCss();
|
|
@@ -218,9 +218,9 @@ const SdTbody = class {
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
render() {
|
|
221
|
-
return (h(Host, { key: '
|
|
221
|
+
return (h(Host, { key: '3c3b748b436dc9db4054a5528fc205da7d21c8e8', slot: `${this.tableId}-body` }, h("tbody", { key: '7cd092ce9b54bed7e4aaaf4b9b3df788d13e382c', class: { tbody: true } }, [
|
|
222
222
|
this.topSpacerHeight > 0 && (h("tr", { key: "spacer-top", class: "tbody__spacer", style: { height: `${this.topSpacerHeight}px`, display: 'block' } })),
|
|
223
|
-
h("slot", { key: '
|
|
223
|
+
h("slot", { key: '0a8c271acdd45802cb036c58303bd08037067c7d' }),
|
|
224
224
|
this.bottomSpacerHeight > 0 && (h("tr", { key: "spacer-bottom", class: "tbody__spacer", style: { height: `${this.bottomSpacerHeight}px`, display: 'block' } })),
|
|
225
225
|
])));
|
|
226
226
|
}
|
|
@@ -478,16 +478,16 @@ const SdThead = class {
|
|
|
478
478
|
'--table-border-color': TABLE_BORDER.color,
|
|
479
479
|
'--table-border-width': `${TABLE_BORDER.width}px`,
|
|
480
480
|
};
|
|
481
|
-
return (h(Host, { key: '
|
|
481
|
+
return (h(Host, { key: '0f9c6f9eb3c1afbd2af6c729152e3767b9637886', slot: `${this.tableId}-head`, style: headStyle }, h("thead", { key: '35a3d8864c5801058e810b6c0b7b281bf7943b85', class: {
|
|
482
482
|
'thead': true,
|
|
483
483
|
'thead--sticky': this._stickyHeader,
|
|
484
|
-
} }, h("tr", { key: '
|
|
484
|
+
} }, h("tr", { key: '04827a6c5148f1be3de475e4e0a9ead839aab89e', class: "tr" }, this._selectable && (h("th", { key: '169e3b47c9710851ee6dbe58765a1b9da5ac6f75', class: {
|
|
485
485
|
'th': true,
|
|
486
486
|
'th--selected': true,
|
|
487
487
|
'sticky-left': true,
|
|
488
488
|
'sticky-left-edge': stickyLeftCount === 0,
|
|
489
489
|
'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
|
|
490
|
-
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '
|
|
490
|
+
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '85f1dc11ae78307cd814813736e9e3097fdd4a47', value: this.getIsAllChecked(), disabled: safeRows.length === 0, onSdUpdate: (e) => this.handleSelectAll(e.detail) }), h("div", { key: 'adc4e163b5161fe7e6adf41c4b48284654a223b9', class: "th__bar" }))), stickyLeftCols.map((col, idx) => (h("th", { key: col.name, class: {
|
|
491
491
|
'th': true,
|
|
492
492
|
[`${col.thClass}`]: Boolean(col.thClass),
|
|
493
493
|
'sticky-left': true,
|
|
@@ -107,7 +107,7 @@ const SdPopup = class {
|
|
|
107
107
|
...DEFAULT_SUBMIT_BUTTON_PROPS,
|
|
108
108
|
...this.submitButtonProps,
|
|
109
109
|
};
|
|
110
|
-
return (h("div", { key: '
|
|
110
|
+
return (h("div", { key: 'bc5ca3d1f4bc9c340245262f891612cb3cebcbca', class: `sd-popup sd-popup--${this.type}`, style: cssVars }, h("header", { key: 'd061ed390b7ee14c70f7f1515a1ca240090f51b1', class: "sd-popup__header" }, h("h2", { key: '9fcc3683714d5160d77df1d099de3f7152ce0a8d', class: "sd-popup__title" }, this.popupTitle)), h("div", { key: 'e2943e318cc283d27d385fab001e673740c0c5bd', class: "sd-popup__body" }, h("slot", { key: '9b846412c09cae14f1f93364606cf6db91a11112' })), this.useFooter && (h("footer", { key: '9ad29d21e6d63d628474551a3000615690436937', class: "sd-popup__footer" }, h("div", { key: '039359244691aa35d0589f6d842398b88715fdd8', class: "sd-popup__footer-slot sd-popup__footer-slot--left" }, h("slot", { key: '0c29f4aba59e40b7435eb9693d2d47fa7d4ea7da', name: "footer-left" })), h("sd-button", { key: '5c79526dfdde154fb50deab79730376e17445831', ...submitButtonProps, class: "sd-popup__submit", onSdClick: () => this.submit.emit() })))));
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
SdPopup.style = sdPopupCss();
|
|
@@ -86,7 +86,7 @@ const SdSelectListItem = class {
|
|
|
86
86
|
return (
|
|
87
87
|
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
88
88
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
89
|
-
h("div", { key: '
|
|
89
|
+
h("div", { key: '42f9e69d39035fedce11095a2d5be95795831241', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
90
90
|
'sd-select-list-item': true,
|
|
91
91
|
'sd-select-list-item--group': isGroup,
|
|
92
92
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -96,7 +96,7 @@ const SdSelectListItem = class {
|
|
|
96
96
|
'sd-select-list-item--focused': this.isFocused,
|
|
97
97
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
98
98
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
99
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '
|
|
99
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '655cf931840a15545c1afdd4aeb2044c7ae24c0a', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, inverse: this.isFocused && this.isSelected !== false, class: "sd-select-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), isHtmlLabel(this.option.label) ? (h("span", { class: "sd-select-list-item__label", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.option.label)) })) : (h("span", { class: "sd-select-list-item__label" }, this.option.label)), this.countInfo && (h("span", { key: '5461f3861a093d25e866cd94e603a4b6017fd701', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
SdSelectListItem.style = sdSelectListItemCss();
|
|
@@ -153,15 +153,15 @@ const SdSelectListItemSearch = class {
|
|
|
153
153
|
clearTimeout(this.debounceTimer);
|
|
154
154
|
}
|
|
155
155
|
render() {
|
|
156
|
-
return (h("div", { key: '
|
|
156
|
+
return (h("div", { key: 'eeeabfcd97514124434c4c6c61d219d2230e7a1e', class: {
|
|
157
157
|
'sd-select-list-item-search': true,
|
|
158
158
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
159
|
-
} }, h("div", { key: '
|
|
159
|
+
} }, h("div", { key: 'a378a2745db91faf00a5fa00105fb152f8b6f59e', class: "sd-select-list-item-search__inner" }, h("sd-icon", { key: '08681aab44c7a30a5f4a36cdf7a8ec58fdbb6cf4', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), h("input", { key: '0e75fdbfdab69b3f0bd9146d97915926200ba2c0', ref: el => {
|
|
160
160
|
this.inputEl = el;
|
|
161
|
-
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: '
|
|
161
|
+
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: 'a45bba91cce1700bab677e4528ab6df79e08547f', type: "button", class: {
|
|
162
162
|
'sd-select-list-item-search__clear': true,
|
|
163
163
|
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
164
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: '
|
|
164
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: 'e5c01644bf8b6651d6ec312b18f77d79cc61f455', name: "close", size: 12, color: "#888888" })))));
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
167
|
SdSelectListItemSearch.style = sdSelectListItemSearchCss();
|
|
@@ -294,15 +294,15 @@ const SdSelect = class {
|
|
|
294
294
|
this.closeDropdown();
|
|
295
295
|
},
|
|
296
296
|
};
|
|
297
|
-
return (h("sd-field", { key: '
|
|
297
|
+
return (h("sd-field", { key: 'dd5f5142ec0a6ba80a67b544543c592c4492246b', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
|
|
298
298
|
this.hovered = true;
|
|
299
299
|
}, onMouseLeave: () => {
|
|
300
300
|
this.hovered = false;
|
|
301
|
-
} }, h("div", { key: '
|
|
301
|
+
} }, h("div", { key: '2069d25c1739610ee4bf8652da9a10bc149b0bc3', class: "sd-select", ref: el => {
|
|
302
302
|
this.triggerRef = el;
|
|
303
|
-
} }, h("sd-select-trigger", { key: '
|
|
303
|
+
} }, h("sd-select-trigger", { key: 'b9b332bee38e449802be1b6a2c4b02a8243aa220', ref: el => {
|
|
304
304
|
this.triggerComponentRef = el;
|
|
305
|
-
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '
|
|
305
|
+
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: 'fba3b55ec6c0d7fa9afe2d0ac8d41ba85ad62e6b', ...portalProps }, h("sd-select-listbox", { key: 'ad505ebdcb6a2f27083520877e42eccf4aeacbc3', type: this.type, options: this.options, value: this.value, emitValue: this.emitValue, useSearch: this.useSearch, useSelectAll: this.useSelectAll, triggerWidth: this.dropdownWidth || this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
306
306
|
}
|
|
307
307
|
static get watchers() { return {
|
|
308
308
|
"isOpen": [{
|
|
@@ -679,9 +679,9 @@ const SdSelectListbox = class {
|
|
|
679
679
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
680
680
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
681
681
|
};
|
|
682
|
-
return (h("div", { key: '
|
|
682
|
+
return (h("div", { key: '86caa4b3d4fbc3bcc6214ffe8596f62b6595b2e0', class: "sd-select-listbox", style: cssVars }, this.showSearch && (h("sd-select-list-item-search", { key: '7a4f2cf77da2af673c7c11836cf1152f8cf55c2d', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), h("div", { key: '243c0be0b5898754a35adbce89d9f72671e39a3a', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
683
683
|
this.listEl = el;
|
|
684
|
-
} }, this.showSelectAll && (h("sd-select-list-item", { key: '
|
|
684
|
+
} }, this.showSelectAll && (h("sd-select-list-item", { key: 'eef122310c6a45ed876af8cd578b86d1f27a68d3', option: SdSelectListbox.SELECT_ALL_OPTION, depth: 1, isSelected: this.selectAllState, isFocused: this.isOptionFocused(SdSelectListbox.SELECT_ALL_OPTION), useCheckbox: true, onSdListItemClick: this.handleSelectAllClick, onMouseEnter: () => this.handleOptionHover(SdSelectListbox.SELECT_ALL_OPTION) })), this.isEmpty ? (h("div", { class: "sd-select-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (h("sd-select-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
|
|
685
685
|
}
|
|
686
686
|
static get watchers() { return {
|
|
687
687
|
"searchKeyword": [{
|
|
@@ -749,7 +749,7 @@ const SdSelectTrigger = class {
|
|
|
749
749
|
? SELECT_COLORS.icon.disabled
|
|
750
750
|
: SELECT_COLORS.icon.default,
|
|
751
751
|
};
|
|
752
|
-
return (h("div", { key: '
|
|
752
|
+
return (h("div", { key: '0c3e197cd8a238a979ee6d794a607e07585b2025', ref: el => {
|
|
753
753
|
this.triggerEl = el;
|
|
754
754
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
755
755
|
'sd-select-trigger': true,
|
|
@@ -760,7 +760,7 @@ const SdSelectTrigger = class {
|
|
|
760
760
|
e.preventDefault();
|
|
761
761
|
this.handleClick();
|
|
762
762
|
}
|
|
763
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '
|
|
763
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '4c068fb6a6784bde01669b7a5ad30d91dc358dd3', class: "sd-select-trigger__content" }, hasValue && isHtmlLabel(this.displayText) ? (h("span", { class: "sd-select-trigger__text", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.displayText)) })) : (h("span", { class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택'))), h("sd-icon", { key: '7172c372c2864574ca6ab0f726a0af091a3d0110', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
764
764
|
'sd-select-trigger__icon': true,
|
|
765
765
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
766
766
|
} }))));
|
|
@@ -107,7 +107,7 @@ const SdSwitch = class {
|
|
|
107
107
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
108
108
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
109
109
|
};
|
|
110
|
-
return (h("label", { key: '
|
|
110
|
+
return (h("label", { key: '1c1ad8fff6d40b4e58f36f1238efe0e1d92ac391', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, h("input", { key: 'c93a0da431b173fa705d5ffef018e605c625cb2a', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), h("div", { key: '03483ff7893a072b4778230d9d1be3b737537d53', class: "sd-switch__track" }, h("div", { key: '0db9dc3442e77b327fe1c6544e4c320d71389ca6', class: "sd-switch__knob" })), this.label && h("span", { key: '35f6aad85d20458d364ea84aaabcf518b9c8983c', class: "sd-switch__label" }, this.label)));
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
SdSwitch.style = sdSwitchCss();
|
|
@@ -878,25 +878,25 @@ const SdTable = class {
|
|
|
878
878
|
'--table-selectable-width': `${TABLE_SELECTABLE_COLUMN_WIDTH}px`,
|
|
879
879
|
'--table-host-height': hostHeight,
|
|
880
880
|
};
|
|
881
|
-
return (h(Host, { key: '
|
|
881
|
+
return (h(Host, { key: '91d045af5763bca824e393c597f4623da9e02705', style: hostStyle }, h("div", { key: 'b441e620f75dd0d71d5457fdb2a61f82d44096c0', class: "sd-table__container", style: {
|
|
882
882
|
'--table-width': this.width,
|
|
883
883
|
'--pagination-height': `${paginationHeight}px`,
|
|
884
|
-
} }, h("div", { key: '
|
|
884
|
+
} }, h("div", { key: '4d78e38b038113894b175afbd0f26123f17cd0b4', class: {
|
|
885
885
|
'sd-table__wrapper': true,
|
|
886
886
|
'sd-table__wrapper--radius-useTop': this.radius === 'useTop',
|
|
887
887
|
'sd-table__wrapper--radius-full': this.radius === 'full',
|
|
888
|
-
} }, h("div", { key: '
|
|
888
|
+
} }, h("div", { key: '263058e881fcd6f5b120d39df069823641a54e62', class: {
|
|
889
889
|
'sd-table__scroll-container': true,
|
|
890
890
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
891
891
|
'sd-table__scroll-container--no-data': isNoData,
|
|
892
|
-
} }, this.isLoading && (h("div", { key: '
|
|
892
|
+
} }, this.isLoading && (h("div", { key: '5d3b2a9b93bb160e45c9dc68161c548e9b307a81', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, h("sd-circle-progress", { key: 'b951f5b435bc7bbd0bf97543b7ec68e7ca37a282', indeterminate: true }))), isNoData && (h(h.Fragment, null, h("div", { key: '646b4d962be56d3dcd410855a80ada7680a3471f', class: "sd-table__no-data-header-overlay" }), h("div", { key: 'e86161b138d07a50c579f65f3fef44a70a596774', class: "sd-table__no-data" }, h("div", { key: '5fd55dd68fbb7b55d8b00be6934076fbef919760', class: "sd-table__no-data-content", ref: el => {
|
|
893
893
|
this.noDataContentEl = el;
|
|
894
894
|
if (el)
|
|
895
895
|
this.syncNoDataContentObserver();
|
|
896
|
-
} }, h("slot", { key: '
|
|
896
|
+
} }, h("slot", { key: 'ba83b3f3ae09e8768a2301e75653f3c4562436a4', name: "no-data" }, h("span", { key: 'd95683ca3bcd1f0dba2e8594e5751c76c2919d9c' }, this.resolvedNoDataLabel)))))), h("table", { key: 'a82706073a9e8c5d9c3b011db2c21697b30e8203', class: this.tableClasses }, this.autoThead ? (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, h("sd-thead", { rows: this.rows ?? [] }))) : (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
897
897
|
this.pagination.rowsPerPage > 0 &&
|
|
898
898
|
this.rowCount > 0 &&
|
|
899
|
-
!this.useVirtualScroll && (h("div", { key: '
|
|
899
|
+
!this.useVirtualScroll && (h("div", { key: 'bde43c82f954ba6bc5a70b07683e1159cdf0b7c6', class: "sd-table__pagination" }, h("sd-pagination", { key: '7d8bc79ae3452a8cc22d7e51871eeb4fa495b276', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (h("sd-select", { key: 'a087902b29b75129d52f5513b6c317cddbb6de15', value: this.useInternalPagination
|
|
900
900
|
? this.innerRowsPerPage
|
|
901
901
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
902
902
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -205,7 +205,7 @@ const SdTabs = class {
|
|
|
205
205
|
};
|
|
206
206
|
}
|
|
207
207
|
render() {
|
|
208
|
-
return (h("div", { key: '
|
|
208
|
+
return (h("div", { key: 'c88c2d10181fd02076ac9c0ecdb6d3e95bd727c3', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index) => {
|
|
209
209
|
const badgeName = this.getBadgeName(tab);
|
|
210
210
|
return (h("div", { key: `tab-${index}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
|
|
211
211
|
if (e.key === 'Enter' || e.key === ' ') {
|
package/dist/esm/sd-td.entry.js
CHANGED
|
@@ -165,7 +165,7 @@ const SdTd = class {
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
render() {
|
|
168
|
-
return (h(Host, { key: '
|
|
168
|
+
return (h(Host, { key: '3a57e2c9669facd934506fcac11d3fe6474cf4e6', class: { [`align-${this.align}`]: Boolean(this.align) } }, h("slot", { key: '1936262e4fa08e364cc57a5587703c546199007a' })));
|
|
169
169
|
}
|
|
170
170
|
static get watchers() { return {
|
|
171
171
|
"field": [{
|
|
@@ -241,7 +241,7 @@ const SdToastContainer = class {
|
|
|
241
241
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
242
242
|
const indexMap = new Map();
|
|
243
243
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
244
|
-
return (h("div", { key: '
|
|
244
|
+
return (h("div", { key: 'ce0bd7179ac744e558f900228fcf80d16b676d1d', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
245
245
|
this.expanded = true;
|
|
246
246
|
this.pauseTimers();
|
|
247
247
|
}, onMouseLeave: () => {
|
|
@@ -91,12 +91,12 @@ const SdToast = class {
|
|
|
91
91
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
92
92
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
93
93
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
94
|
-
return (h("div", { key: '
|
|
94
|
+
return (h("div", { key: '98f2adc86e98e6e1a33eec9f1166a36fd0132091', style: {
|
|
95
95
|
'--sd-toast-bg': typeConfig.bg,
|
|
96
96
|
'--sd-toast-text': typeConfig.content,
|
|
97
97
|
'--sd-toast-icon': iconColor,
|
|
98
98
|
'--sd-toast-link': linkColor,
|
|
99
|
-
} }, h("div", { key: '
|
|
99
|
+
} }, h("div", { key: 'bf62e48b849b5d233b917e9bff8b516cdee3273d', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (h("div", { key: '4a17910884a1778ff647cc4037d23a25834a5c8d', class: "sd-toast__icon" }, h("sd-icon", { key: '7b6d9567d94f8351d5c07bdf4351bc028f9b0b06', name: this.icon, size: iconSize, color: iconColor }))), h("div", { key: '1a0fa06eeb4b5aaf9a3b7804c3aa90be85797839', class: "sd-toast__content" }, h("span", { key: '32eed9d06fae03ffea1de307eb006bc2889731c2', class: "sd-toast__message" }, this.message)), this.link && (h("a", { key: 'f1bafc6c06d5faad3fc556419ca556df9e76ee4f', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (h("sd-button", { key: '94fcfb175c9e302cbb27d2dc3ed7256a65960013', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (h("sd-ghost-button", { key: 'ae2bcd09d6c0ee5afbdfeed6e268b899a308ec64', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
SdToast.style = sdToastCss();
|
|
@@ -122,7 +122,7 @@ const SdToggle = class {
|
|
|
122
122
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
123
123
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
124
124
|
};
|
|
125
|
-
return (h("label", { key: '
|
|
125
|
+
return (h("label", { key: '79ca3923f8eda2791a41bc3ce6c61798102a078c', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, h("input", { key: '7ff2b7a49b65fa0b5f6bed383928880f1771239d', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
128
|
SdToggle.style = sdToggleCss();
|
|
@@ -8,9 +8,12 @@ export declare class SdTag {
|
|
|
8
8
|
icon?: IconName;
|
|
9
9
|
/** true이면 아이콘을 레이블 왼쪽에 배치 */
|
|
10
10
|
isLeft: boolean;
|
|
11
|
+
/** 태그 너비 (숫자면 px, 문자열이면 그대로 적용). 미지정 시 콘텐츠 크기(fit-content) */
|
|
12
|
+
width: string | number;
|
|
11
13
|
componentWillLoad(): void;
|
|
12
14
|
private get resolvedName();
|
|
13
15
|
private get resolvedConfig();
|
|
14
16
|
private renderIcon;
|
|
17
|
+
private get resolvedWidth();
|
|
15
18
|
render(): any;
|
|
16
19
|
}
|
|
@@ -2504,6 +2504,11 @@ export namespace Components {
|
|
|
2504
2504
|
* @default 'square_sm_grey'
|
|
2505
2505
|
*/
|
|
2506
2506
|
"name": TagName1;
|
|
2507
|
+
/**
|
|
2508
|
+
* 태그 너비 (숫자면 px, 문자열이면 그대로 적용). 미지정 시 콘텐츠 크기(fit-content)
|
|
2509
|
+
* @default ''
|
|
2510
|
+
*/
|
|
2511
|
+
"width": string | number;
|
|
2507
2512
|
}
|
|
2508
2513
|
interface SdTbody {
|
|
2509
2514
|
/**
|
|
@@ -6595,6 +6600,11 @@ declare namespace LocalJSX {
|
|
|
6595
6600
|
* @default 'square_sm_grey'
|
|
6596
6601
|
*/
|
|
6597
6602
|
"name"?: TagName1;
|
|
6603
|
+
/**
|
|
6604
|
+
* 태그 너비 (숫자면 px, 문자열이면 그대로 적용). 미지정 시 콘텐츠 크기(fit-content)
|
|
6605
|
+
* @default ''
|
|
6606
|
+
*/
|
|
6607
|
+
"width"?: string | number;
|
|
6598
6608
|
}
|
|
6599
6609
|
interface SdTbody {
|
|
6600
6610
|
/**
|
|
@@ -7536,6 +7546,7 @@ declare namespace LocalJSX {
|
|
|
7536
7546
|
"label": string;
|
|
7537
7547
|
"icon": IconName;
|
|
7538
7548
|
"isLeft": boolean;
|
|
7549
|
+
"width": string;
|
|
7539
7550
|
}
|
|
7540
7551
|
interface SdTdAttributes {
|
|
7541
7552
|
"field": string;
|