@sellmate/design-system 0.0.35 → 0.0.36
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/sd-badge.cjs.entry.js +1 -1
- package/dist/cjs/sd-button_15.cjs.entry.js +13 -13
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/sd-date-range-picker.cjs.entry.js +2 -2
- package/dist/cjs/sd-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/sd-popover.cjs.entry.js +2 -2
- package/dist/cjs/sd-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-multiple.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-option-group.cjs.entry.js +3 -3
- package/dist/cjs/sd-table-backup.cjs.entry.js +12 -6
- package/dist/cjs/sd-table-backup.entry.cjs.js.map +1 -1
- package/dist/cjs/sd-tag.cjs.entry.js +1 -1
- package/dist/cjs/sd-td.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sd-badge/sd-badge.js +1 -1
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- 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.js +2 -2
- package/dist/collection/components/sd-guide/sd-guide.js +3 -3
- package/dist/collection/components/sd-icon/sd-icon.js +1 -1
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +1 -1
- package/dist/collection/components/sd-pagination/sd-pagination.js +2 -2
- package/dist/collection/components/sd-popover/sd-popover.js +2 -2
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-progress/sd-progress.js +2 -2
- package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +2 -2
- package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +1 -1
- package/dist/collection/components/sd-table/sd-td/sd-td.js +2 -2
- package/dist/collection/components/sd-table/sd-th/sd-th.js +1 -1
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +1 -1
- package/dist/collection/components/sd-table-backup/sd-table-backup.css +249 -0
- package/dist/collection/components/sd-table-backup/sd-table-backup.js +709 -0
- package/dist/collection/components/sd-table-backup/sd-table-backup.js.map +1 -0
- package/dist/collection/components/sd-tag/sd-tag.js +1 -1
- package/dist/components/{p-CSnKPDQz.js → p-0B7EuAJt.js} +5 -5
- package/dist/components/{p-CSnKPDQz.js.map → p-0B7EuAJt.js.map} +1 -1
- package/dist/components/{p-BeBw4eSm.js → p-18thvuHk.js} +3 -3
- package/dist/components/{p-BeBw4eSm.js.map → p-18thvuHk.js.map} +1 -1
- package/dist/components/{p-BEq3cGoC.js → p-C075_t2h.js} +3 -3
- package/dist/components/{p-BEq3cGoC.js.map → p-C075_t2h.js.map} +1 -1
- package/dist/components/{p-CrmdI2cD.js → p-C79lmNgp.js} +3 -3
- package/dist/components/{p-CrmdI2cD.js.map → p-C79lmNgp.js.map} +1 -1
- package/dist/components/{p-ybbnPl4X.js → p-Ce6LhsfH.js} +7 -7
- package/dist/components/{p-ybbnPl4X.js.map → p-Ce6LhsfH.js.map} +1 -1
- package/dist/components/{p-B8lMIjWB.js → p-CzYhjjIE.js} +7 -7
- package/dist/components/{p-B8lMIjWB.js.map → p-CzYhjjIE.js.map} +1 -1
- package/dist/components/{p-5yzkkdZ2.js → p-D2x4IHr5.js} +3 -3
- package/dist/components/{p-5yzkkdZ2.js.map → p-D2x4IHr5.js.map} +1 -1
- package/dist/components/{p-ntW8MKYi.js → p-D7IsBL9J.js} +5 -5
- package/dist/components/{p-ntW8MKYi.js.map → p-D7IsBL9J.js.map} +1 -1
- package/dist/components/{p-D-s8kK6P.js → p-DHI6oZcr.js} +3 -3
- package/dist/components/{p-D-s8kK6P.js.map → p-DHI6oZcr.js.map} +1 -1
- package/dist/components/{p-CqpahWAy.js → p-DNEKh1qk.js} +3 -3
- package/dist/components/{p-CqpahWAy.js.map → p-DNEKh1qk.js.map} +1 -1
- package/dist/components/{p-BEDQ2CIp.js → p-DTUSoHK4.js} +5 -5
- package/dist/components/{p-BEDQ2CIp.js.map → p-DTUSoHK4.js.map} +1 -1
- package/dist/components/{p-Du8-vyL0.js → p-DpcL5xdv.js} +3 -3
- package/dist/components/{p-Du8-vyL0.js.map → p-DpcL5xdv.js.map} +1 -1
- package/dist/components/{p-GNK9vrin.js → p-InrZhOLL.js} +3 -3
- package/dist/components/{p-GNK9vrin.js.map → p-InrZhOLL.js.map} +1 -1
- package/dist/components/{p-BzdIpn5T.js → p-kLlPK7H2.js} +4 -4
- package/dist/components/{p-BzdIpn5T.js.map → p-kLlPK7H2.js.map} +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/sd-date-picker.js +5 -5
- package/dist/components/sd-date-range-picker.js +5 -5
- package/dist/components/sd-guide.js +6 -6
- package/dist/components/sd-icon.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-loading-spinner.js +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +4 -4
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-progress.js +2 -2
- package/dist/components/sd-select-multiple-group.js +5 -5
- package/dist/components/sd-select-multiple.js +7 -7
- package/dist/components/sd-select-option-group.js +1 -1
- package/dist/components/sd-select-option.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-table-backup.js +22 -16
- package/dist/components/sd-table-backup.js.map +1 -1
- package/dist/components/sd-table.js +12 -12
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.js +2 -2
- package/dist/components/sd-th.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-8b60af66.entry.js → p-0e24195b.entry.js} +2 -2
- package/dist/design-system/{p-01f44c51.entry.js → p-360dd6ab.entry.js} +2 -2
- package/dist/design-system/{p-88745dfe.entry.js → p-3e46bf2b.entry.js} +2 -2
- package/dist/design-system/p-51c4ae08.entry.js +2 -0
- package/dist/design-system/{p-d74bfbe4.entry.js → p-531260cb.entry.js} +2 -2
- package/dist/design-system/{p-7e18d4cf.entry.js → p-675d1b1c.entry.js} +2 -2
- package/dist/design-system/{p-78f90517.entry.js → p-9099eb05.entry.js} +2 -2
- package/dist/design-system/{p-a72c4b0c.entry.js → p-a83759ba.entry.js} +2 -2
- package/dist/design-system/p-c0461df6.entry.js +2 -0
- package/dist/design-system/p-c0461df6.entry.js.map +1 -0
- package/dist/design-system/p-c9109ae0.entry.js +2 -0
- package/dist/design-system/p-d8c1ce0a.entry.js +2 -0
- package/dist/design-system/{p-985be35d.entry.js.map → p-d8c1ce0a.entry.js.map} +1 -1
- package/dist/design-system/p-f4a737de.entry.js +2 -0
- package/dist/design-system/{p-d003ee3d.entry.js → p-ff7b8ecf.entry.js} +2 -2
- package/dist/design-system/sd-table-backup.entry.esm.js.map +1 -1
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-button_15.entry.js +13 -13
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-date-picker.entry.js +2 -2
- package/dist/esm/sd-date-range-picker.entry.js +2 -2
- package/dist/esm/sd-loading-spinner.entry.js +1 -1
- package/dist/esm/sd-popover.entry.js +2 -2
- package/dist/esm/sd-progress.entry.js +2 -2
- package/dist/esm/sd-select-multiple.entry.js +2 -2
- package/dist/esm/sd-select-option-group.entry.js +3 -3
- package/dist/esm/sd-table-backup.entry.js +12 -6
- package/dist/esm/sd-table-backup.entry.js.map +1 -1
- package/dist/esm/sd-tag.entry.js +1 -1
- package/dist/esm/sd-td.entry.js +2 -2
- package/dist/types/components.d.ts +2 -2
- package/hydrate/index.js +46 -40
- package/hydrate/index.mjs +46 -40
- package/package.json +5 -3
- package/dist/collection/components/sd-table/sd-table-backup.js +0 -2743
- package/dist/collection/components/sd-table/sd-table-backup.js.map +0 -1
- package/dist/design-system/p-49f98f09.entry.js +0 -2
- package/dist/design-system/p-671a08a6.entry.js +0 -2
- package/dist/design-system/p-671a08a6.entry.js.map +0 -1
- package/dist/design-system/p-6a624672.entry.js +0 -2
- package/dist/design-system/p-985be35d.entry.js +0 -2
- package/dist/design-system/p-ef5ffaa2.entry.js +0 -2
- /package/dist/design-system/{p-8b60af66.entry.js.map → p-0e24195b.entry.js.map} +0 -0
- /package/dist/design-system/{p-01f44c51.entry.js.map → p-360dd6ab.entry.js.map} +0 -0
- /package/dist/design-system/{p-88745dfe.entry.js.map → p-3e46bf2b.entry.js.map} +0 -0
- /package/dist/design-system/{p-ef5ffaa2.entry.js.map → p-51c4ae08.entry.js.map} +0 -0
- /package/dist/design-system/{p-d74bfbe4.entry.js.map → p-531260cb.entry.js.map} +0 -0
- /package/dist/design-system/{p-7e18d4cf.entry.js.map → p-675d1b1c.entry.js.map} +0 -0
- /package/dist/design-system/{p-78f90517.entry.js.map → p-9099eb05.entry.js.map} +0 -0
- /package/dist/design-system/{p-a72c4b0c.entry.js.map → p-a83759ba.entry.js.map} +0 -0
- /package/dist/design-system/{p-49f98f09.entry.js.map → p-c9109ae0.entry.js.map} +0 -0
- /package/dist/design-system/{p-6a624672.entry.js.map → p-f4a737de.entry.js.map} +0 -0
- /package/dist/design-system/{p-d003ee3d.entry.js.map → p-ff7b8ecf.entry.js.map} +0 -0
- /package/dist/types/components/{sd-table → sd-table-backup}/sd-table-backup.d.ts +0 -0
package/hydrate/index.mjs
CHANGED
|
@@ -3680,7 +3680,7 @@ class SdBadge {
|
|
|
3680
3680
|
label = '';
|
|
3681
3681
|
render() {
|
|
3682
3682
|
const resolvedColor = resolveColor(this.color);
|
|
3683
|
-
return (hAsync(Host, { key: '
|
|
3683
|
+
return (hAsync(Host, { key: '6fc1c113b707f4419fa48c8b4b78be6a7bbf6b83' }, hAsync("div", { key: 'ab3297321ee0e6e742acd408901dce1b5894d200', class: `sd-badge sd-badge--${this.size}`, style: { '--sd-badge-color': resolvedColor } }, hAsync("div", { key: '02f42d0ba064db273d83671e9c271c543787daf8', class: "sd-badge__dot" }), hAsync("div", { key: 'f6a175282ab77e9a8ac2098029ac1aab5cb66190', class: "sd-badge__label" }, this.label))));
|
|
3684
3684
|
}
|
|
3685
3685
|
static get style() { return sdBadgeCss; }
|
|
3686
3686
|
static get cmpMeta() { return {
|
|
@@ -3787,7 +3787,7 @@ class SdCard {
|
|
|
3787
3787
|
bordered = true;
|
|
3788
3788
|
class = '';
|
|
3789
3789
|
render() {
|
|
3790
|
-
return (hAsync(Host, { key: '
|
|
3790
|
+
return (hAsync(Host, { key: 'f00cdc166da4589d81d732fb4bc84d0258efaccb' }, hAsync("div", { key: 'c640a9db7ef09eee390ca0c0e8484a5802d17cbd', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.class}` }, hAsync("slot", { key: '07421b4249bf7a94aa1a574011b33f7082fa984a' }))));
|
|
3791
3791
|
}
|
|
3792
3792
|
static get style() { return sdCardCss; }
|
|
3793
3793
|
static get cmpMeta() { return {
|
|
@@ -4098,9 +4098,9 @@ class SdDatePicker {
|
|
|
4098
4098
|
this.isOpen = false;
|
|
4099
4099
|
};
|
|
4100
4100
|
render() {
|
|
4101
|
-
return (hAsync(Host, { key: '
|
|
4101
|
+
return (hAsync(Host, { key: '056414534f658c5e77fedf40d94e578299b437cc', class: "sd-date-picker" }, hAsync("sd-input", { key: 'eb65e6bb246b604287088a3857681f2a18c06464', ref: el => (this.inputEl = el), value: this.date, label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, inputClass: "text-center", inputStyle: {
|
|
4102
4102
|
margin: '0 0 0 8px',
|
|
4103
|
-
}, onClick: () => this.openMenu() }, hAsync("sd-icon", { key: '
|
|
4103
|
+
}, onClick: () => this.openMenu() }, hAsync("sd-icon", { key: 'd71e7a84bef6b956e77fb7f718568e8d1df59562', slot: "prefix", name: "date", size: "16", color: "#737373", class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (hAsync("sd-portal", { key: '0cb4ff03893ddf4a095760f326104d91bdb6265b', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.handleClose }, hAsync("div", { key: '7a3bbe3f4cd379d94832005653aacc166e6b66cf', class: "sd-date-picker__menu" }, hAsync("div", { key: '6b33cab1222e71e3004425b07afbdffef0ec0a6b', class: "sd-date-picker__header" }, hAsync("div", { key: 'acc16c94cfea8399ce5d210de7286760238c0963', class: "year-nav" }, hAsync("button", { key: '6f577329b27057306e163c0c92ae16eff29a15b4', type: "button", name: "prev-year", title: "Previous Year", onClick: () => this.setCurrentYear(this.currentYear - 1) }, hAsync("sd-icon", { key: 'c8174f406a3ba95d98ae31c6f4004f4178f6ac5f', name: "arrowLeft", size: "12", color: "#CCCCCC" })), hAsync("span", { key: 'cdcb96cd0fbf6abedcaaa7b5cca8a56c90b62284', class: "year-nav__current" }, this.currentYear), hAsync("button", { key: '9aba8e6ebde34b7a29e52525cff8fbe8a243ae6a', type: "button", name: "next-year", title: "Next Year", onClick: () => this.setCurrentYear(this.currentYear + 1) }, hAsync("sd-icon", { key: '423d3b35b56f32006edfd0bdf6f457dd46a591b5', name: "arrowRight", size: "12", color: "#CCCCCC" }))), hAsync("div", { key: 'c5dd3a1b495e48c2c980207591f161486042c361', class: "month-nav" }, hAsync("button", { key: '48265eec87bdb40c3189d07ef1711bf95bb55381', type: "button", name: "prev-month", title: "Previous ", onClick: () => this.handleUpdateMonth('prev') }, hAsync("sd-icon", { key: '7274e698f9c7a06369c8fe6064ec0acd9fce62c8', name: "arrowLeft", size: "12", color: "#CCCCCC" })), hAsync("span", { key: '54e15aaad9ac9563f66a6bb4dc7b19f7dc01d7c0', class: "month-nav__current" }, this.currentMonth, "\uC6D4"), hAsync("button", { key: '32da2302da74ef7bc8805138ce414b903d247878', type: "button", name: "next-month", title: "Next Month", onClick: () => this.handleUpdateMonth('next') }, hAsync("sd-icon", { key: '041809657b4288519ca476953be773403912c858', name: "arrowRight", size: "12", color: "#CCCCCC" })))), hAsync("div", { key: 'd32cd40e6df89c95f4b2639c6bc98f7156a09bc2', class: "sd-date-picker__days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (hAsync("div", { key: day, class: "day" }, day)))), hAsync("div", { key: 'e6fafbf9ec82a8f3abe9d67c61279598498a7396', class: "sd-date-picker__body" }, [
|
|
4104
4104
|
...this.calendar.prevMonthDays,
|
|
4105
4105
|
...this.calendar.days,
|
|
4106
4106
|
...this.calendar.afterMonthDays,
|
|
@@ -4273,9 +4273,9 @@ class SdDateRangePicker {
|
|
|
4273
4273
|
this.isOpen = false;
|
|
4274
4274
|
};
|
|
4275
4275
|
render() {
|
|
4276
|
-
return (hAsync(Host, { key: '
|
|
4276
|
+
return (hAsync(Host, { key: '9c7457b54e433a167193eeaafa8a0e7755ca24db', class: "sd-date-range-picker" }, hAsync("sd-input", { key: '85b4c4fca2e6157ae7f6291593a20329086fe372', ref: el => (this.inputEl = el), value: `${this.dateRange[0]} ~ ${this.dateRange[1]}`, label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, inputClass: "text-center", inputStyle: {
|
|
4277
4277
|
margin: '0 0 0 8px',
|
|
4278
|
-
}, onClick: () => this.openMenu() }, hAsync("sd-icon", { key: '
|
|
4278
|
+
}, onClick: () => this.openMenu() }, hAsync("sd-icon", { key: 'e38b9dde8571369ff85bf10baff71437b0cf48f4', slot: "prefix", name: "date", size: "16", color: "#737373", class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (hAsync("sd-portal", { key: '2f85011e2a47bb0717239da419fcd27c8410db81', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.handleClose }, hAsync("div", { key: '21f147563f6ab7c9a1a2b08cf1951bb11a8a0302', class: "sd-date-range-picker__menu" }, hAsync("div", { key: '2dad8cef33d07db263a73cd3760dbf44e33dd7ab', class: "sd-date-range-picker__header mb-16pxr flex flex-nowrap items-center justify-center" }, hAsync("button", { key: '53ccd475c6ebec5999158b2669878b0426e505d1', type: "button", name: "prev", title: "Previous", onClick: () => this.setPrevYear(this.prevYear - 1) }, hAsync("sd-icon", { key: 'aba2465aae092388568006a7a968c27446476470', name: "arrowLeft", size: "12", color: "#CCCCCC" })), hAsync("div", { key: 'd4384c1901a5e5221d55a18e014c0955af561660', class: "header-label" }, this.prevYear), hAsync("button", { key: '26f2e7f9da0f4571d4ca2cf0a668ceb4784af9c6', type: "button", name: "next", title: "Next", onClick: () => this.setPrevYear(this.prevYear + 1) }, hAsync("sd-icon", { key: 'fc670a78e443dc7de8fbb05fe3233ae5bd6544d4', name: "arrowRight", size: "12", color: "#CCCCCC" }))), hAsync("div", { key: 'fb2157002f772dee6c4ff4b76cd3c942d4bb9965', class: "sd-date-range-picker__body" }, [this.prevCalendar, this.nextCalendar].map((calendar, index) => (hAsync(Fragment, null, index === 1 && hAsync("div", { class: "separator" }), hAsync("div", { key: index, class: "calendar-container" }, hAsync("div", { class: "calendar-header" }, hAsync("button", { type: "button", name: "month", title: "Month", class: index === 0 ? 'header-button-prev' : 'header-button-next', onClick: () => this.updateYearMonth(index === 0 ? 'prev' : 'next') }, hAsync("sd-icon", { name: index === 0 ? 'arrowLeft' : 'arrowRight', size: "12", color: "#CCCCCC" })), index === 0
|
|
4279
4279
|
? `${this.prevYear}.${String(this.prevMonth).padStart(2, '0')}`
|
|
4280
4280
|
: `${this.nextYear}.${String(this.nextMonth).padStart(2, '0')}`), hAsync("div", { class: "calendar-days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (hAsync("sd-date-box", { key: day, date: day, disabled: true, class: "day" })))), hAsync("div", { class: "calendar-body mt-12pxr grid grid-cols-7 gap-y-8pxr" }, [...calendar.prevMonthDays, ...calendar.days, ...calendar.afterMonthDays].map((day, idx) => (hAsync("sd-date-box", { key: `prev${day}_${idx}`, date: !day ? '' : Number(day), selected: this.dateRange.some(date => date ===
|
|
4281
4281
|
this.dateUtil.formatDate(index === 0 ? this.prevYear : this.nextYear, index === 0 ? this.prevMonth : this.nextMonth, Number(day))), type: this.getDateBoxType(this.dateUtil.formatDate(index === 0 ? this.prevYear : this.nextYear, index === 0 ? this.prevMonth : this.nextMonth, Number(day))), isToday: today ===
|
|
@@ -4357,11 +4357,11 @@ class SdGuide {
|
|
|
4357
4357
|
};
|
|
4358
4358
|
render() {
|
|
4359
4359
|
const { name: iconName, size: iconSize, color: iconColor } = GUIDE_ICON[this.type];
|
|
4360
|
-
return (hAsync(Host, { key: '
|
|
4360
|
+
return (hAsync(Host, { key: 'cc560b500dc857dd2fb9817d5f870e702cfe6420', style: {
|
|
4361
4361
|
'--sd-guide-color': GUIDE_ICON[this.type].color,
|
|
4362
|
-
} }, hAsync("sd-button", { key: '
|
|
4362
|
+
} }, hAsync("sd-button", { key: '4abbeb9eb5a021b790516ad6356ca61a8c81e30d', ref: el => (this.guideRef = el), class: this.guideClass, variant: this.popupShow ? 'primary' : 'outline', label: GUIDE_LABEL[this.type], size: "sm", color: this.popupShow ? GUIDE_ICON[this.type].color : 'grey_45', icon: iconName, iconColor: this.popupShow ? 'white' : iconColor, iconSize: iconSize, noHover: this.popupShow, onSdClick: this.handleClickGuide }), this.type === 'help' && this.popupShow && (hAsync("sd-portal", { key: 'acdee17ca7be22d52bbb7309430d3ce27bab8784', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, hAsync("div", { key: '8e7402bcf9308e9c3890a4ad55a54efe5f440c95', class: "sd-guide__popup", style: { width: this.popupWidth ? this.popupWidth + 'px' : '426px' } }, hAsync("sd-button", { key: '05eb16594e9a2b16974e957988149114ac2bc0f9', class: "sd-guide__popup__close", icon: "close", color: colors$1.grey_65, size: "md", variant: "ghost", noHover: true,
|
|
4363
4363
|
// buttonStyle={{ padding: '0px', minHeight: '0px' }}
|
|
4364
|
-
onSdClick: this.closeDropdown }), hAsync("div", { key: '
|
|
4364
|
+
onSdClick: this.closeDropdown }), hAsync("div", { key: 'fc36f51b032fd41e63d53024f0714fbf974b37a3', class: "sd-guide__popup__header" }, hAsync("sd-icon", { key: 'bb6a8005b45704029d7c8fdde7908d52c7fb2bd1', name: "helpOutline", size: 24, color: colors$1.green_65 }), hAsync("h3", { key: 'bafff977e7a4c36515c035fc05074d5445a111bb', class: "sd-guide__popup__title" }, this.label || GUIDE_LABEL[this.type])), hAsync("ul", { key: '1adafdaf539257ba4b61b958ef3a21362d5e44bf', class: "sd-guide__popup__list" }, this.renderListItem(this.message)))))));
|
|
4365
4365
|
}
|
|
4366
4366
|
// 현재 2depth까지만 스타일 적용
|
|
4367
4367
|
renderListItem(message, depth = 0) {
|
|
@@ -6406,7 +6406,7 @@ class SdIcon {
|
|
|
6406
6406
|
}
|
|
6407
6407
|
render() {
|
|
6408
6408
|
const IconComponent = Icons[this.name]?.[this.size];
|
|
6409
|
-
return (hAsync("i", { key: '
|
|
6409
|
+
return (hAsync("i", { key: '1b3f72da8307068cb0723bbc66723bfcf15a4644', class: this.getIconClasses(), style: this.iconStyle }, hAsync(IconComponent, { key: 'a2526ffca360d28daf0f265822072e294ed27155', color: this.resolvedColor })));
|
|
6410
6410
|
}
|
|
6411
6411
|
static get style() { return sdIconCss; }
|
|
6412
6412
|
static get cmpMeta() { return {
|
|
@@ -6526,11 +6526,11 @@ class SdInput {
|
|
|
6526
6526
|
'--input-width': typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
6527
6527
|
}
|
|
6528
6528
|
: {};
|
|
6529
|
-
return (hAsync(Host, { key: '
|
|
6529
|
+
return (hAsync(Host, { key: 'bb677f1411303375222c7eadf7738d97de04c4ad', style: inputWidth }, this.label && hAsync("div", { key: '0d05e92148e90645bf8c61d94693eb74d0e37154', class: "sd-input__label" }, this.label), hAsync("label", { key: 'a6a9a4912b4e0e9fb44d9d273f73b88db804bd97', class: {
|
|
6530
6530
|
'sd-input': true,
|
|
6531
6531
|
[this.getInputStatus()]: true,
|
|
6532
6532
|
'sd-input--barcode': !!this.barcode,
|
|
6533
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, hAsync("slot", { key: '
|
|
6533
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, hAsync("slot", { key: 'df634eb250fc1dff27e1db4372b3c90c14f9cd79', name: "prefix" }), hAsync("input", { key: '0d2e5619efef215cd7c9552a015422bf9c036d35', ref: el => (this.nativeEl = el), class: `sd-input__native_element ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onChange: this.handleChange, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event) }), hAsync("slot", { key: 'c139e8cb7691263e1f4ab2e1e0eadc8284303a39', name: "suffix" }), this.clearable && this.internalValue && (hAsync("sd-icon", { key: 'b4e2a13aabf0257ff72d982197b8eab99ad6d441', name: "close", color: "#888", class: "sd-input__clear-icon", onClick: () => {
|
|
6534
6534
|
this.internalValue = '';
|
|
6535
6535
|
this.sdChange?.emit(this.internalValue);
|
|
6536
6536
|
this.sdInput?.emit(this.internalValue);
|
|
@@ -6577,7 +6577,7 @@ class SdLoadingSpinner {
|
|
|
6577
6577
|
registerInstance(this, hostRef);
|
|
6578
6578
|
}
|
|
6579
6579
|
render() {
|
|
6580
|
-
return (hAsync(Host, { key: '
|
|
6580
|
+
return (hAsync(Host, { key: '8ab87f8cf1e002856b6721de5ca5313ccafb3265' }, hAsync("svg", { key: 'da44064be6ab5c19d8517eb4da37c4849997715b', class: "sd-loading-spinner text-positive", width: "72px", height: "72px", viewBox: "25 25 50 50" }, hAsync("circle", { key: 'f446e24aabaf694e4158ec7e91ad4c39e33b4f91', class: "path", cx: "50", cy: "50", r: "20", fill: "none", stroke: "currentColor", "stroke-width": "5", "stroke-miterlimit": "10" }))));
|
|
6581
6581
|
}
|
|
6582
6582
|
static get style() { return sdLoadingSpinnerCss; }
|
|
6583
6583
|
static get cmpMeta() { return {
|
|
@@ -6670,12 +6670,12 @@ class SdPagination {
|
|
|
6670
6670
|
}
|
|
6671
6671
|
}
|
|
6672
6672
|
render() {
|
|
6673
|
-
return (hAsync("div", { key: '
|
|
6673
|
+
return (hAsync("div", { key: 'ee07e420809eca9641ab325d38c48a054b9e04de', class: this.paginationClasses }, hAsync("div", { key: 'a7b7f129832a465fd4426cf142385f37461a65b7', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (hAsync("div", { class: "pagination-info" }, hAsync("span", { class: "current-page" }, this.currentPage), hAsync("span", null, "/"), hAsync("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (hAsync("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
6674
6674
|
'pagination-btn': true,
|
|
6675
6675
|
'pagination-btn--selected': this.currentPage === n,
|
|
6676
6676
|
}, disabled: this.currentPage === n, style: {
|
|
6677
6677
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
6678
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: '
|
|
6678
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: 'c1a8fd3d61d24652a17ec30ed436c90c77a19144', class: "append-btns" }, this.renderNextButtons())));
|
|
6679
6679
|
}
|
|
6680
6680
|
static get watchers() { return {
|
|
6681
6681
|
"currentPage": ["onPropChange"],
|
|
@@ -6734,11 +6734,11 @@ class SdPopover {
|
|
|
6734
6734
|
this.showPopover = false;
|
|
6735
6735
|
};
|
|
6736
6736
|
render() {
|
|
6737
|
-
return (hAsync(Fragment, { key: '
|
|
6737
|
+
return (hAsync(Fragment, { key: 'a58d208a0a9ba1e954568512f1dbe0df88922623' }, this.label ? (hAsync("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-popover", onClick: () => (console.log('click popover'), (this.showPopover = !this.showPopover)) })) : (hAsync("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-popover", onClick: () => (console.log('click popover'), (this.showPopover = !this.showPopover)) })), this.showPopover && (hAsync("sd-tooltip-portal", { key: '7ffbc49de8f33edbc05beec6cb554820bdbde2b6', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement }, hAsync("div", { key: 'fcf1b9069831494c3c2ee5e274037c211f342993', class: {
|
|
6738
6738
|
'sd-popover-menu': true,
|
|
6739
6739
|
[`sd-popover-menu--${this.placement}`]: true,
|
|
6740
6740
|
[this.menuClass]: !!this.menuClass,
|
|
6741
|
-
} }, hAsync("i", { key: '
|
|
6741
|
+
} }, hAsync("i", { key: 'e1bd244e2c8c2e1c8a4759f96ce44e5cdda41bcc', class: `sd-popover-menu__arrow sd-popover-menu__arrow--${this.placement}` }, hAsync(TooltipArrow, { key: '36cf86a871f7454f2916ce8157e7d9234d808666' })), hAsync("div", { key: '8fcd872f31d3dfcad2b8b7d26c7956368289d8cf', class: "sd-popover-menu__content" }, this.menuTitle && hAsync("div", { key: '435f956e668910900948999a2ae23a7ffbdf67cd', class: "sd-popover-menu__title" }, this.menuTitle), this.messages.length > 0 && (hAsync("div", { key: '80eaa27446106e6380712fb00ad9df4752ebb70b', class: "sd-popover-menu__messages" }, this.messages.map(message => (hAsync("div", null, message))))), this.buttons.length > 0 && (hAsync("div", { key: 'b4845d8ac339559c2b612a219517a6addb47aaca', class: `sd-popover-menu__buttons sd-popover-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (hAsync("sd-button", { ...button })))))), this.useClose && (hAsync("button", { key: '56ab62d73d4e71d871165d28adf7ecd4efd92870', class: "sd-popover-menu__close-button", onClick: () => this.handleClose() }, hAsync("sd-icon", { key: 'ea93c1a46baef7cb4b7a849b8744043afc11de79', name: "close", size: "12", color: "#AAAAAA" }))))))));
|
|
6742
6742
|
}
|
|
6743
6743
|
static get watchers() { return {
|
|
6744
6744
|
"show": ["watchShowHandler"]
|
|
@@ -6889,7 +6889,7 @@ class SdPortal {
|
|
|
6889
6889
|
this.sdClose.emit();
|
|
6890
6890
|
}
|
|
6891
6891
|
render() {
|
|
6892
|
-
return hAsync("slot", { key: '
|
|
6892
|
+
return hAsync("slot", { key: 'f1445e7060928e48032fbed8f3b7604e626850c2' });
|
|
6893
6893
|
}
|
|
6894
6894
|
static get cmpMeta() { return {
|
|
6895
6895
|
"$flags$": 772,
|
|
@@ -6926,10 +6926,10 @@ class SdProgress {
|
|
|
6926
6926
|
error: '#FB4444',
|
|
6927
6927
|
};
|
|
6928
6928
|
render() {
|
|
6929
|
-
return (hAsync(Host, { key: '
|
|
6929
|
+
return (hAsync(Host, { key: '5ac52da4809e45fc5bc69991aea3bd423b72ffdc', style: {
|
|
6930
6930
|
'--progress-color': this.statusColor[this.status],
|
|
6931
6931
|
'--progress-percentage': `${this.percentage}%`,
|
|
6932
|
-
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && hAsync("div", { key: '
|
|
6932
|
+
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && hAsync("div", { key: '7758a60580ab05cd2dd396b16cc4483d890e0498', class: "sd-progress__label" }, this.label)));
|
|
6933
6933
|
}
|
|
6934
6934
|
renderBarProgress() {
|
|
6935
6935
|
return (hAsync("div", { class: `sd-progress__bar sd-progress__bar--${this.status}` }, hAsync("div", { class: ['sd-progress__bar__percent', this.percentage < 100 ? 'proceed' : ''].join(' ') }), hAsync("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--left" }, this.percentage, "%"), hAsync("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--right" }, this.percentage, "%")));
|
|
@@ -7557,11 +7557,11 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
7557
7557
|
'--select-width': this.width || '200px',
|
|
7558
7558
|
'--select-dropdown-height': this.dropdownHeight || '260px',
|
|
7559
7559
|
};
|
|
7560
|
-
return (hAsync(Host, { key: '
|
|
7560
|
+
return (hAsync(Host, { key: '5dd79017c9796e6412984675fcd3ec2d03e32012', style: style }, hAsync("div", { key: '777e5c8c777fb421c06ccc99ad114077918d3091', class: {
|
|
7561
7561
|
'sd-select-multiple': true,
|
|
7562
7562
|
'sd-select-multiple--open': this.isOpen,
|
|
7563
7563
|
'sd-select-multiple--disabled': this.disabled,
|
|
7564
|
-
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), hAsync("div", { key: '
|
|
7564
|
+
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), hAsync("div", { key: '897dbc13dddd89e3bf3be9b77efe5aa04600ea1f', class: "sd-select-multiple__container" }, this.renderTrigger(), this.renderDropdown()))));
|
|
7565
7565
|
}
|
|
7566
7566
|
renderLabel(label) {
|
|
7567
7567
|
if (!label)
|
|
@@ -8090,7 +8090,7 @@ class SdSelectOption {
|
|
|
8090
8090
|
}
|
|
8091
8091
|
};
|
|
8092
8092
|
render() {
|
|
8093
|
-
return (hAsync(Host, { key: '
|
|
8093
|
+
return (hAsync(Host, { key: '56d2ed3525521a59eb3f0d8231a53259ebd22424' }, hAsync("div", { key: '200849af32a94d4c9aeb35760ce3d8396da45836', class: {
|
|
8094
8094
|
'sd-select__option': true,
|
|
8095
8095
|
'sd-select__option--selected': this.isSelected,
|
|
8096
8096
|
'sd-select__option--disabled': !!this.option.disabled,
|
|
@@ -8176,7 +8176,7 @@ class SdSelectOptionGroup {
|
|
|
8176
8176
|
}
|
|
8177
8177
|
};
|
|
8178
8178
|
render() {
|
|
8179
|
-
return (hAsync("div", { key: '
|
|
8179
|
+
return (hAsync("div", { key: 'e873486c47436a1cb2e3797dfe06b89874429e18', class: {
|
|
8180
8180
|
'sd-select__option-group': true,
|
|
8181
8181
|
'sd-select__option-group--selected': !!this.isSelected,
|
|
8182
8182
|
'sd-select__option-group--disabled': !!this.option.disabled,
|
|
@@ -8185,10 +8185,10 @@ class SdSelectOptionGroup {
|
|
|
8185
8185
|
'sd-select__option-group--group': this.option.type === 'group',
|
|
8186
8186
|
'sd-select__option-group--subgroup': this.option.type === 'subgroup',
|
|
8187
8187
|
'sd-select__option-group--item': this.option.type === 'item',
|
|
8188
|
-
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, hAsync("div", { key: '
|
|
8188
|
+
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, hAsync("div", { key: '7a54f43c2f654f26ff44cb039136488b17492336', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (hAsync("sd-checkbox", { key: 'ffe73a278e2e4869b3389b15268ab3c6d1117d47', checked: this.isSelected, disabled: this.option.disabled, onClick: e => {
|
|
8189
8189
|
e.preventDefault();
|
|
8190
8190
|
this.handleClick(this.option, this.isSelected, e);
|
|
8191
|
-
} })), hAsync("span", { key: '
|
|
8191
|
+
} })), hAsync("span", { key: '7c05471592fd30b12b94d158b11c76e98f4634ef', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (hAsync("span", { key: 'd395b359af93878867f61990741d174bb81cd959', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
|
|
8192
8192
|
}
|
|
8193
8193
|
static get style() { return sdSelectOptionGroupCss; }
|
|
8194
8194
|
static get cmpMeta() { return {
|
|
@@ -8213,7 +8213,7 @@ class SdSelectOptionGroup {
|
|
|
8213
8213
|
}; }
|
|
8214
8214
|
}
|
|
8215
8215
|
|
|
8216
|
-
const sdTableCss
|
|
8216
|
+
const sdTableCss = ".sd-table__wrapper .sd-table__container .sd-table__middle{overflow-y:auto;overflow-x:hidden;scroll-behavior:smooth}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar{opacity:0;background:#e5e5e5}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar:horizontal{height:8px}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar:vertical{width:8px}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar-thumb{height:80px;background-color:#cccccc;border-radius:4px}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar-track{background-color:transparent}.sd-table__wrapper{height:var(--table-height, auto);width:var(--table-width, 100%);color:#222222}.sd-table__wrapper .sd-table__container{width:100%;height:auto;border:1px solid #e1e1e1;border-radius:8px;font-size:12px;overflow:hidden}.sd-table__wrapper .sd-table__container .sd-table__middle{overflow:auto;will-change:scroll-position;height:var(--table-height, auto)}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table{background-color:white;display:table;width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;position:relative}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--selectable td.sd-td--selected,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--selectable th.sd-th--selected{width:52px !important;max-width:52px !important;min-width:52px !important;padding:0 10px 0 24px;text-align:left}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-header thead{position:sticky;top:0;z-index:120}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column th.sticky-left,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column th.sticky-right{position:sticky;background-color:#f5faff;z-index:110 !important}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column td.sticky-left,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column td.sticky-right{position:sticky;background-color:white;z-index:100 !important}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column .sticky-left{left:var(--sticky-left-offset, 0)}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column .sticky-right{right:var(--sticky-right-offset, 0)}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column th.sticky-cell{position:sticky;z-index:102;background-color:#f5faff}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column td.sticky-cell{position:sticky;z-index:101;background-color:white}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-left th.sticky-left-edge,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-left td.sticky-left-edge{overflow:visible}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-left th.sticky-left-edge:after,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-left td.sticky-left-edge:after{content:\"\";position:absolute;top:0;left:100%;right:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset 12px 0 20px -25px;opacity:1;pointer-events:none}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-right th.sticky-right-edge,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-right td.sticky-right-edge{overflow:visible}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-right th.sticky-right-edge:after,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-right td.sticky-right-edge:after{content:\"\";position:absolute;top:0;left:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset -12px 0 20px -25px;opacity:1;pointer-events:none}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--no-data thead{opacity:0.4}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--no-data thead tr th.sd-th{border-bottom:1px solid rgba(225, 225, 225, 0.4) !important}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-td,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-th,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table .sd-th__content--label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead{height:36px}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead sd-tr{width:100%}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead sd-tr sd-th{background:#f5faff;height:36px;padding:0 16px;font-weight:500;vertical-align:middle;border-bottom:1px solid #e1e1e1;-webkit-user-select:none;user-select:none;position:relative}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead sd-tr sd-th.sd-th .sd-th__content{display:flex;flex-flow:row nowrap;align-items:center;gap:4px}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead sd-tr sd-th.sd-th .sd-th__content--left{justify-content:flex-start}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead sd-tr sd-th.sd-th .sd-th__content--center{justify-content:center}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead sd-tr sd-th.sd-th .sd-th__content--right{justify-content:flex-end}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead sd-tr sd-th.sd-th .sd-th__resizer{position:absolute;top:50%;right:0;transform:translateY(-50%);width:4px;height:16px;cursor:col-resize;z-index:3;border-left:1px solid #cccccc;border-right:1px solid #cccccc}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-tbody .sd-table__loading{position:absolute;top:0;left:0;width:100%;height:calc(var(--table-height, auto) - 36px);min-height:calc(100% - 36px);background:rgba(255, 255, 255, 0.6);z-index:200;display:flex;align-items:center;justify-content:center}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-tbody sd-tr:last-of-type sd-td{border-bottom:none}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-tbody sd-tr sd-td{height:44px;padding:0 16px;border-bottom:1px solid #e1e1e1;background:white;vertical-align:middle}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-tbody sd-tr sd-td.sd-td--left{text-align:left}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-tbody sd-tr sd-td.sd-td--center{text-align:center}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-tbody sd-tr sd-td.sd-td--right{text-align:right}.sd-table__wrapper .sd-table__container .sd-table__bottom{background:white;text-align:center}.sd-table__wrapper .sd-table__pagination{position:relative;background:#f9f9f9;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid #e1e1e1;border-top:none;border-radius:8px}.sd-table__wrapper .sd-table__pagination sd-select{position:absolute;right:10px;top:50%;transform:translateY(-50%)}";
|
|
8217
8217
|
|
|
8218
8218
|
let SdTable$1 = class SdTable {
|
|
8219
8219
|
constructor(hostRef) {
|
|
@@ -8446,7 +8446,7 @@ let SdTable$1 = class SdTable {
|
|
|
8446
8446
|
"selected": ["handleSelectedChange"],
|
|
8447
8447
|
"pagination": ["handlePaginationChange"]
|
|
8448
8448
|
}; }
|
|
8449
|
-
static get style() { return sdTableCss
|
|
8449
|
+
static get style() { return sdTableCss; }
|
|
8450
8450
|
static get cmpMeta() { return {
|
|
8451
8451
|
"$flags$": 772,
|
|
8452
8452
|
"$tagName$": "sd-table",
|
|
@@ -8481,7 +8481,7 @@ let SdTable$1 = class SdTable {
|
|
|
8481
8481
|
}; }
|
|
8482
8482
|
};
|
|
8483
8483
|
|
|
8484
|
-
const
|
|
8484
|
+
const sdTableBackupCss = ".sd-table__wrapper .sd-table__container .sd-table__middle{overflow-y:auto;overflow-x:hidden;scroll-behavior:smooth}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar{opacity:0;background:#e5e5e5}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar:horizontal{height:8px}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar:vertical{width:8px}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar-thumb{height:80px;background-color:#cccccc;border-radius:4px}.sd-table__wrapper .sd-table__container .sd-table__middle::-webkit-scrollbar-track{background-color:transparent}.sd-table__wrapper{height:var(--table-height, auto);width:var(--table-width, 100%);color:#222222}.sd-table__wrapper .sd-table__container{width:100%;height:auto;border:1px solid #e1e1e1;border-radius:8px;font-size:12px;overflow:hidden}.sd-table__wrapper .sd-table__container .sd-table__middle{overflow:auto;position:relative;will-change:scroll-position;height:var(--table-height, auto)}.sd-table__wrapper .sd-table__container .sd-table__middle--loading{overflow:hidden !important}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table{background-color:white;display:table;width:100%;height:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--selectable td.sd-td--selected,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--selectable th.sd-th--selected{width:52px !important;max-width:52px !important;min-width:52px !important;padding:0 10px 0 24px;text-align:left}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-header thead{position:sticky;top:0;z-index:120}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column th.sticky-left,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column th.sticky-right{position:sticky;background-color:#f5faff;z-index:110 !important}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column td.sticky-left,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column td.sticky-right{position:sticky;background-color:white;z-index:100 !important}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column .sticky-left{left:var(--sticky-left-offset, 0)}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column .sticky-right{right:var(--sticky-right-offset, 0)}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column th.sticky-cell{position:sticky;z-index:102;background-color:#f5faff}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--sticky-column td.sticky-cell{position:sticky;z-index:101;background-color:white}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-left th.sticky-left-edge,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-left td.sticky-left-edge{overflow:visible}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-left th.sticky-left-edge:after,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-left td.sticky-left-edge:after{content:\"\";position:absolute;top:0;left:100%;right:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset 12px 0 20px -25px;opacity:1;pointer-events:none}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-right th.sticky-right-edge,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-right td.sticky-right-edge{overflow:visible}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-right th.sticky-right-edge:after,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--scrolled-right td.sticky-right-edge:after{content:\"\";position:absolute;top:0;left:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset -12px 0 20px -25px;opacity:1;pointer-events:none}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--no-data thead{opacity:0.4}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table--no-data thead tr th.sd-th{border-bottom:1px solid rgba(225, 225, 225, 0.4) !important}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-td,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table sd-th,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table .sd-th__content--label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead{height:36px}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead tr{width:100%}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead tr th{background:#f5faff;height:36px;padding:0 16px;font-weight:500;vertical-align:middle;border-bottom:1px solid #e1e1e1;-webkit-user-select:none;user-select:none;position:relative}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead tr th.sd-th .sd-th__content{display:flex;flex-flow:row nowrap;align-items:center;gap:4px}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead tr th.sd-th .sd-th__content--left{justify-content:flex-start}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead tr th.sd-th .sd-th__content--center{justify-content:center}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead tr th.sd-th .sd-th__content--right{justify-content:flex-end}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table thead tr th.sd-th .sd-th__resizer{position:absolute;top:50%;right:0;transform:translateY(-50%);width:4px;height:16px;cursor:col-resize;z-index:3;border-left:1px solid #cccccc;border-right:1px solid #cccccc}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody{flex-grow:1}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody .sd-table__loading{position:absolute;top:0;left:0;width:100%;height:100%;min-height:100%;background:rgba(255, 255, 255, 0.6);z-index:200;display:flex;align-items:center;justify-content:center}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody .sd-table__no-data-row td{text-align:center;color:#888888}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody tr:last-of-type td{border-bottom:none}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody tr td{height:44px;padding:0 16px;border-bottom:1px solid #e1e1e1;background:white;vertical-align:middle}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody tr td.sd-td--left{text-align:left}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody tr td.sd-td--center{text-align:center}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody tr td.sd-td--right{text-align:right}.sd-table__wrapper .sd-table__container .sd-table__bottom{background:white;text-align:center}.sd-table__wrapper .sd-table__pagination{position:relative;background:#f9f9f9;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid #e1e1e1;border-top:none;border-radius:8px}.sd-table__wrapper .sd-table__pagination sd-select{position:absolute;right:10px;top:50%;transform:translateY(-50%)}";
|
|
8485
8485
|
|
|
8486
8486
|
class SdTable {
|
|
8487
8487
|
constructor(hostRef) {
|
|
@@ -8539,6 +8539,9 @@ class SdTable {
|
|
|
8539
8539
|
this.innerRows = [...(this.rows || [])];
|
|
8540
8540
|
this.innerSelected = new Set(this.selected);
|
|
8541
8541
|
this.columnWidths = (this.columns || []).map(c => parseInt(c.width || '120', 10));
|
|
8542
|
+
if (this.pagination?.page) {
|
|
8543
|
+
this.currentPage = this.pagination.page;
|
|
8544
|
+
}
|
|
8542
8545
|
}
|
|
8543
8546
|
componentDidLoad() {
|
|
8544
8547
|
// SSR 환경 체크
|
|
@@ -8676,7 +8679,7 @@ class SdTable {
|
|
|
8676
8679
|
}, style: this.getStickyStyle(colIdx) }, hAsync("div", { class: `sd-th__content sd-th__content--${col.align || 'left'}` }, hAsync("slot", { name: `header-cell-${col.name}` }, hAsync("div", { class: "sd-th__content--label" }, col.label)), col.usePageMoveIcon && hAsync("sd-icon", { name: "pageMove", size: "12", color: "#006AC1" }), col.tooltip && (hAsync("sd-tooltip", { ...col.tooltipOptions }, hAsync("div", { slot: "content" }, col.tooltip.map(text => (hAsync("p", null, text))))))), this.resizable && typeof window !== 'undefined' && (hAsync("div", { class: "sd-th__resizer", onMouseDown: (evt) => this.handleResize(colIdx, evt) }))))))));
|
|
8677
8680
|
}
|
|
8678
8681
|
renderBody() {
|
|
8679
|
-
return (hAsync("tbody", { ...(!this.paginatedRows.length && { part: 'tbody-empty' }) }, this.isLoading && (hAsync("div", { class: "sd-table__loading" }, hAsync("sd-loading-spinner", null))), !this.paginatedRows.length ? (hAsync("tr",
|
|
8682
|
+
return (hAsync("tbody", { ...(!this.paginatedRows.length && { part: 'tbody-empty' }) }, this.isLoading && (hAsync("div", { class: "sd-table__loading" }, hAsync("sd-loading-spinner", null))), !this.paginatedRows.length ? (hAsync("tr", { class: "sd-table__no-data-row" }, hAsync("td", { colSpan: this.visibleColumns.length + (this.selectable ? 1 : 0) }, hAsync("slot", { name: "no-data" }, this.noDataLabel)))) : (this.paginatedRows.map((row, rowIdx) => (hAsync("tr", { key: row[this.rowKey], class: "hover:bg-Grey_Lighten-6" }, this.selectable && (hAsync("td", { class: {
|
|
8680
8683
|
'sd-td': true,
|
|
8681
8684
|
'sd-td--selected': true,
|
|
8682
8685
|
'sticky-left': Boolean(this.stickyColumn.left && this.stickyColumn.left > 0),
|
|
@@ -8698,10 +8701,13 @@ class SdTable {
|
|
|
8698
8701
|
})))))));
|
|
8699
8702
|
}
|
|
8700
8703
|
render() {
|
|
8701
|
-
return (hAsync(Host, { key: '
|
|
8704
|
+
return (hAsync(Host, { key: '06f553b40a89351df1054a07191d3fe9d92dd1a4' }, hAsync("div", { key: 'cfd19ef986b2a839791dfc6dbe0998fa4268bcc8', class: "sd-table__wrapper", style: {
|
|
8702
8705
|
'--table-width': this.width,
|
|
8703
8706
|
'--table-height': this.height,
|
|
8704
|
-
} }, hAsync("div", { key: '
|
|
8707
|
+
} }, hAsync("div", { key: 'ee2eb7c178fd4df207c096640f12061994340058', class: "sd-table__container" }, hAsync("div", { key: 'fa2ca46bba403928152d9d087b3ec990615507d4', class: {
|
|
8708
|
+
'sd-table__middle': true,
|
|
8709
|
+
'sd-table__middle--loading': this.isLoading,
|
|
8710
|
+
} }, hAsync("table", { key: 'c5248468da6f986da45233ca86dcf68a53001cd6', part: "table", class: this.sdTableClasses }, this.renderHeader(), this.renderBody())), hAsync("div", { key: 'd959e9785b3eab0a9e9864761c6377d561e6987c', class: "sd-table__bottom" })), this.pagination && this.innerRows.length > 0 && (hAsync("div", { key: 'b592fee0e0747a34b3970e4ff7286afe37e79621', class: "sd-table__pagination" }, hAsync("sd-pagination", { key: '05e7ed73d7beba2c14a4bcf07e8686a4d2cf664e', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onPageChange: (e) => {
|
|
8705
8711
|
if (!this.useInternalPagination) {
|
|
8706
8712
|
this.sdPageChange.emit(e.detail);
|
|
8707
8713
|
}
|
|
@@ -8709,7 +8715,7 @@ class SdTable {
|
|
|
8709
8715
|
this.currentPage = e.detail;
|
|
8710
8716
|
this.sdPageChange.emit(this.currentPage);
|
|
8711
8717
|
}
|
|
8712
|
-
} }), this.useRowsPerPageSelect && (hAsync("sd-select", { key: '
|
|
8718
|
+
} }), this.useRowsPerPageSelect && (hAsync("sd-select", { key: 'f0e4ad4e7ec0f857feac4fc669f5a523401120d6', value: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", onSdChange: (e) => {
|
|
8713
8719
|
const changedRowsPerPage = e.detail.value ? Number(e.detail.value) : 0;
|
|
8714
8720
|
if (!this.useInternalPagination) {
|
|
8715
8721
|
this.sdRowsPerPageChange.emit(changedRowsPerPage);
|
|
@@ -8737,7 +8743,7 @@ class SdTable {
|
|
|
8737
8743
|
"selected": ["handleSelectedChange"],
|
|
8738
8744
|
"pagination": ["handlePaginationChange"]
|
|
8739
8745
|
}; }
|
|
8740
|
-
static get style() { return
|
|
8746
|
+
static get style() { return sdTableBackupCss; }
|
|
8741
8747
|
static get cmpMeta() { return {
|
|
8742
8748
|
"$flags$": 772,
|
|
8743
8749
|
"$tagName$": "sd-table-backup",
|
|
@@ -8815,7 +8821,7 @@ class SdTag {
|
|
|
8815
8821
|
}
|
|
8816
8822
|
render() {
|
|
8817
8823
|
const tagClasses = this.getTagClasses();
|
|
8818
|
-
return (hAsync("span", { key: '
|
|
8824
|
+
return (hAsync("span", { key: 'cd470741451fde311fc3d22d21205ea7bc86295c', class: tagClasses, style: {
|
|
8819
8825
|
'--tag-bg-color': this.bgColor,
|
|
8820
8826
|
'--tag-text-color': this.textColor,
|
|
8821
8827
|
}, "aria-label": this.label || 'tag' }, this.renderContent()));
|
|
@@ -8845,7 +8851,7 @@ class SdTbody {
|
|
|
8845
8851
|
registerInstance(this, hostRef);
|
|
8846
8852
|
}
|
|
8847
8853
|
render() {
|
|
8848
|
-
return (hAsync(Host, { key: '
|
|
8854
|
+
return (hAsync(Host, { key: 'fb4f565321e2f5308bdb5c318e385c4704730d16' }, hAsync("slot", { key: '3ba442c1026ebbce4960031ed3113ebd16d949ec' })));
|
|
8849
8855
|
}
|
|
8850
8856
|
static get style() { return sdTbodyCss; }
|
|
8851
8857
|
static get cmpMeta() { return {
|
|
@@ -8869,11 +8875,11 @@ class SdTd {
|
|
|
8869
8875
|
tdStyle;
|
|
8870
8876
|
tdClass;
|
|
8871
8877
|
render() {
|
|
8872
|
-
return (hAsync(Host, { key: '
|
|
8878
|
+
return (hAsync(Host, { key: 'b0d6911cd0c2da2999b3cc16b5014f95c6616cd2', role: "cell", class: {
|
|
8873
8879
|
'sd-td': true,
|
|
8874
8880
|
[`sd-td--${this.align}`]: true,
|
|
8875
8881
|
[this.tdClass || '']: Boolean(this.tdClass),
|
|
8876
|
-
}, style: this.tdStyle }, hAsync("slot", { key: '
|
|
8882
|
+
}, style: this.tdStyle }, hAsync("slot", { key: '93c9acb6c73c6dd4f9b6dcdfbed8bba000328e92' })));
|
|
8877
8883
|
}
|
|
8878
8884
|
static get style() { return sdTdCss; }
|
|
8879
8885
|
static get cmpMeta() { return {
|
|
@@ -8898,7 +8904,7 @@ class SdTh {
|
|
|
8898
8904
|
registerInstance(this, hostRef);
|
|
8899
8905
|
}
|
|
8900
8906
|
render() {
|
|
8901
|
-
return (hAsync(Host, { key: '
|
|
8907
|
+
return (hAsync(Host, { key: '98d5096b0d03db947da3ea0129b43a5d291d0ddd', role: "columnheader" }, hAsync("slot", { key: '4ccaa018abd5915d2069adc01b802bb9392cc186' })));
|
|
8902
8908
|
}
|
|
8903
8909
|
static get style() { return sdThCss; }
|
|
8904
8910
|
static get cmpMeta() { return {
|
|
@@ -9173,7 +9179,7 @@ class SdTr {
|
|
|
9173
9179
|
registerInstance(this, hostRef);
|
|
9174
9180
|
}
|
|
9175
9181
|
render() {
|
|
9176
|
-
return (hAsync(Host, { key: '
|
|
9182
|
+
return (hAsync(Host, { key: 'f20a0bbaf94ce37ef8cbf4d59c24159549294ff2', role: "row" }, hAsync("slot", { key: '8b5d3685c916a4ad8422c03e35f9b699961a1415' })));
|
|
9177
9183
|
}
|
|
9178
9184
|
static get style() { return sdTrCss; }
|
|
9179
9185
|
static get cmpMeta() { return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellmate/design-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.36",
|
|
4
4
|
"description": "Sellmate Design System - Web Components Library built with Stencil",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -52,7 +52,8 @@
|
|
|
52
52
|
"test.watch": "stencil test --spec --e2e --watchAll",
|
|
53
53
|
"generate": "stencil generate",
|
|
54
54
|
"storybook": "storybook dev -p 6006",
|
|
55
|
-
"build-storybook": "storybook build"
|
|
55
|
+
"build-storybook": "storybook build",
|
|
56
|
+
"chromatic": "npx chromatic --project-token=chpt_d022d502c83da77"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
59
|
"@chromatic-com/storybook": "^4.1.1",
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
"@types/node": "^22.13.5",
|
|
68
69
|
"@types/react": "^19.2.2",
|
|
69
70
|
"@types/react-dom": "^19.2.2",
|
|
71
|
+
"chromatic": "^12.2.0",
|
|
70
72
|
"eslint": "^9.37.0",
|
|
71
73
|
"eslint-config-prettier": "^10.1.8",
|
|
72
74
|
"eslint-plugin-import": "^2.32.0",
|
|
@@ -90,5 +92,5 @@
|
|
|
90
92
|
"@stencil/react-output-target": "^1.2.0",
|
|
91
93
|
"@stencil/vue-output-target": "^0.11.8"
|
|
92
94
|
},
|
|
93
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "39cd6c64af224399fceca72fa09ac31d278aa5e7"
|
|
94
96
|
}
|