@sellmate/design-system 0.0.34 → 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/design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sd-badge.cjs.entry.js +1 -1
- package/dist/cjs/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table.sd-tbody.sd-th.sd-tooltip.sd-tooltip-portal.sd-tr.entry.cjs.js.map +1 -0
- package/dist/cjs/{sd-button_13.cjs.entry.js → sd-button_15.cjs.entry.js} +81 -78
- 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 +18 -0
- package/dist/cjs/sd-loading-spinner.entry.cjs.js.map +1 -0
- 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 +271 -0
- package/dist/cjs/sd-table-backup.entry.cjs.js.map +1 -0
- package/dist/cjs/sd-tag.cjs.entry.js +1 -1
- package/dist/cjs/sd-td.cjs.entry.js +26 -0
- package/dist/cjs/sd-td.entry.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +5 -0
- 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-table.css +17 -15
- package/dist/collection/components/sd-table/sd-table.js +24 -2087
- package/dist/collection/components/sd-table/sd-table.js.map +1 -1
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.css +3 -0
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +18 -0
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js.map +1 -0
- package/dist/collection/components/sd-table/sd-td/sd-td.css +9 -0
- package/dist/collection/components/sd-table/sd-td/sd-td.js +111 -0
- package/dist/collection/components/sd-table/sd-td/sd-td.js.map +1 -0
- package/dist/collection/components/sd-table/sd-th/sd-th.css +8 -0
- package/dist/collection/components/sd-table/sd-th/sd-th.js +18 -0
- package/dist/collection/components/sd-table/sd-th/sd-th.js.map +1 -0
- package/dist/collection/components/sd-table/sd-tr/sd-tr.css +3 -0
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +18 -0
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js.map +1 -0
- 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/collection/components/sd-tooltip/sd-tooltip.js +4 -5
- package/dist/collection/components/sd-tooltip/sd-tooltip.js.map +1 -1
- package/dist/collection/components/sd-tooltip-portal/sd-tooltip-portal.js +1 -1
- package/dist/components/{p-cZZiWgpx.js → p-0B7EuAJt.js} +5 -5
- package/dist/components/{p-cZZiWgpx.js.map → p-0B7EuAJt.js.map} +1 -1
- package/dist/components/p-18thvuHk.js +34 -0
- package/dist/components/p-18thvuHk.js.map +1 -0
- package/dist/components/{p-BLVHOrsi.js → p-BG0UE2wL.js} +3 -3
- package/dist/components/{p-BLVHOrsi.js.map → p-BG0UE2wL.js.map} +1 -1
- package/dist/components/{p-DXyjyA0e.js → p-C075_t2h.js} +3 -3
- package/dist/components/{p-DXyjyA0e.js.map → p-C075_t2h.js.map} +1 -1
- package/dist/components/p-C79lmNgp.js +34 -0
- package/dist/components/p-C79lmNgp.js.map +1 -0
- package/dist/components/{p-CVmIv1LY.js → p-Ce6LhsfH.js} +7 -7
- package/dist/components/{p-CVmIv1LY.js.map → p-Ce6LhsfH.js.map} +1 -1
- package/dist/components/{p-B5jkeFCb.js → p-CzYhjjIE.js} +7 -7
- package/dist/components/{p-B5jkeFCb.js.map → p-CzYhjjIE.js.map} +1 -1
- package/dist/components/{p-Bry2vtXF.js → p-D2x4IHr5.js} +3 -3
- package/dist/components/{p-Bry2vtXF.js.map → p-D2x4IHr5.js.map} +1 -1
- package/dist/components/{p-D60I2CpC.js → p-D7IsBL9J.js} +5 -5
- package/dist/components/{p-D60I2CpC.js.map → p-D7IsBL9J.js.map} +1 -1
- package/dist/components/p-DHI6oZcr.js +34 -0
- package/dist/components/p-DHI6oZcr.js.map +1 -0
- package/dist/components/{p-CHw7bav7.js → p-DNEKh1qk.js} +3 -3
- package/dist/components/{p-CHw7bav7.js.map → p-DNEKh1qk.js.map} +1 -1
- package/dist/components/{p-BoIp700J.js → p-DTUSoHK4.js} +5 -5
- package/dist/components/{p-BoIp700J.js.map → p-DTUSoHK4.js.map} +1 -1
- package/dist/components/{p-DR6QXFmO.js → p-DpcL5xdv.js} +3 -3
- package/dist/components/{p-DR6QXFmO.js.map → p-DpcL5xdv.js.map} +1 -1
- package/dist/components/{p-CsP5aJ3N.js → p-InrZhOLL.js} +3 -3
- package/dist/components/{p-CsP5aJ3N.js.map → p-InrZhOLL.js.map} +1 -1
- package/dist/components/{p-DKW5kNQD.js → p-kLlPK7H2.js} +11 -11
- package/dist/components/p-kLlPK7H2.js.map +1 -0
- 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 +5 -5
- 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.d.ts +11 -0
- package/dist/components/sd-table-backup.js +385 -0
- package/dist/components/sd-table-backup.js.map +1 -0
- package/dist/components/sd-table.js +59 -70
- package/dist/components/sd-table.js.map +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.d.ts +11 -0
- package/dist/components/sd-tbody.js +9 -0
- package/dist/components/sd-tbody.js.map +1 -0
- package/dist/components/sd-td.d.ts +11 -0
- package/dist/components/sd-td.js +50 -0
- package/dist/components/sd-td.js.map +1 -0
- package/dist/components/sd-th.d.ts +11 -0
- package/dist/components/sd-th.js +9 -0
- package/dist/components/sd-th.js.map +1 -0
- package/dist/components/sd-tooltip-portal.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/components/sd-tr.d.ts +11 -0
- package/dist/components/sd-tr.js +9 -0
- package/dist/components/sd-tr.js.map +1 -0
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-eeed34eb.entry.js → p-0e24195b.entry.js} +2 -2
- package/dist/design-system/{p-ac7dbf3c.entry.js → p-360dd6ab.entry.js} +2 -2
- package/dist/design-system/{p-6d769a19.entry.js → p-3e46bf2b.entry.js} +2 -2
- package/dist/design-system/p-51c4ae08.entry.js +2 -0
- package/dist/design-system/p-51c4ae08.entry.js.map +1 -0
- package/dist/design-system/p-531260cb.entry.js +2 -0
- package/dist/design-system/p-531260cb.entry.js.map +1 -0
- package/dist/design-system/{p-048f83bb.entry.js → p-675d1b1c.entry.js} +2 -2
- package/dist/design-system/p-675d1b1c.entry.js.map +1 -0
- package/dist/design-system/{p-e9800353.entry.js → p-9099eb05.entry.js} +2 -2
- package/dist/design-system/{p-cdc6b2c8.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-d492a315.entry.js → p-d8c1ce0a.entry.js} +2 -2
- package/dist/design-system/p-f4a737de.entry.js +2 -0
- package/dist/design-system/{p-56b88d9b.entry.js → p-ff7b8ecf.entry.js} +2 -2
- package/dist/design-system/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table.sd-tbody.sd-th.sd-tooltip.sd-tooltip-portal.sd-tr.entry.esm.js.map +1 -0
- package/dist/design-system/sd-loading-spinner.entry.esm.js.map +1 -0
- package/dist/design-system/sd-table-backup.entry.esm.js.map +1 -0
- package/dist/design-system/sd-td.entry.esm.js.map +1 -0
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table.sd-tbody.sd-th.sd-tooltip.sd-tooltip-portal.sd-tr.entry.js.map +1 -0
- package/dist/esm/{sd-button_13.entry.js → sd-button_15.entry.js} +79 -78
- 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 +16 -0
- package/dist/esm/sd-loading-spinner.entry.js.map +1 -0
- 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 +269 -0
- package/dist/esm/sd-table-backup.entry.js.map +1 -0
- package/dist/esm/sd-tag.entry.js +1 -1
- package/dist/esm/sd-td.entry.js +24 -0
- package/dist/esm/sd-td.entry.js.map +1 -0
- package/dist/types/components/sd-table/sd-table.d.ts +0 -4
- package/dist/types/components/sd-table/sd-tbody/sd-tbody.d.ts +3 -0
- package/dist/types/components/sd-table/sd-td/sd-td.d.ts +7 -0
- package/dist/types/components/sd-table/sd-th/sd-th.d.ts +3 -0
- package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +3 -0
- package/dist/types/components/sd-table-backup/sd-table-backup.d.ts +80 -0
- package/dist/types/components.d.ts +221 -0
- package/hydrate/index.js +413 -41
- package/hydrate/index.mjs +413 -41
- package/package.json +5 -3
- package/dist/cjs/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table.sd-tooltip.sd-tooltip-portal.entry.cjs.js.map +0 -1
- package/dist/components/p-DKW5kNQD.js.map +0 -1
- package/dist/design-system/p-048f83bb.entry.js.map +0 -1
- package/dist/design-system/p-c1e64ba9.entry.js +0 -2
- package/dist/design-system/p-ce01c171.entry.js +0 -2
- package/dist/design-system/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table.sd-tooltip.sd-tooltip-portal.entry.esm.js.map +0 -1
- package/dist/esm/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table.sd-tooltip.sd-tooltip-portal.entry.js.map +0 -1
- /package/dist/design-system/{p-eeed34eb.entry.js.map → p-0e24195b.entry.js.map} +0 -0
- /package/dist/design-system/{p-ac7dbf3c.entry.js.map → p-360dd6ab.entry.js.map} +0 -0
- /package/dist/design-system/{p-6d769a19.entry.js.map → p-3e46bf2b.entry.js.map} +0 -0
- /package/dist/design-system/{p-e9800353.entry.js.map → p-9099eb05.entry.js.map} +0 -0
- /package/dist/design-system/{p-cdc6b2c8.entry.js.map → p-a83759ba.entry.js.map} +0 -0
- /package/dist/design-system/{p-ce01c171.entry.js.map → p-c9109ae0.entry.js.map} +0 -0
- /package/dist/design-system/{p-d492a315.entry.js.map → p-d8c1ce0a.entry.js.map} +0 -0
- /package/dist/design-system/{p-c1e64ba9.entry.js.map → p-f4a737de.entry.js.map} +0 -0
- /package/dist/design-system/{p-56b88d9b.entry.js.map → p-ff7b8ecf.entry.js.map} +0 -0
|
@@ -197,11 +197,11 @@ const SdGuide = class {
|
|
|
197
197
|
};
|
|
198
198
|
render() {
|
|
199
199
|
const { name: iconName, size: iconSize, color: iconColor } = GUIDE_ICON[this.type];
|
|
200
|
-
return (h(Host, { key: '
|
|
200
|
+
return (h(Host, { key: 'cc560b500dc857dd2fb9817d5f870e702cfe6420', style: {
|
|
201
201
|
'--sd-guide-color': GUIDE_ICON[this.type].color,
|
|
202
|
-
} }, h("sd-button", { key: '
|
|
202
|
+
} }, h("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 && (h("sd-portal", { key: 'acdee17ca7be22d52bbb7309430d3ce27bab8784', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, h("div", { key: '8e7402bcf9308e9c3890a4ad55a54efe5f440c95', class: "sd-guide__popup", style: { width: this.popupWidth ? this.popupWidth + 'px' : '426px' } }, h("sd-button", { key: '05eb16594e9a2b16974e957988149114ac2bc0f9', class: "sd-guide__popup__close", icon: "close", color: colors.grey_65, size: "md", variant: "ghost", noHover: true,
|
|
203
203
|
// buttonStyle={{ padding: '0px', minHeight: '0px' }}
|
|
204
|
-
onSdClick: this.closeDropdown }), h("div", { key: '
|
|
204
|
+
onSdClick: this.closeDropdown }), h("div", { key: 'fc36f51b032fd41e63d53024f0714fbf974b37a3', class: "sd-guide__popup__header" }, h("sd-icon", { key: 'bb6a8005b45704029d7c8fdde7908d52c7fb2bd1', name: "helpOutline", size: 24, color: colors.green_65 }), h("h3", { key: 'bafff977e7a4c36515c035fc05074d5445a111bb', class: "sd-guide__popup__title" }, this.label || GUIDE_LABEL[this.type])), h("ul", { key: '1adafdaf539257ba4b61b958ef3a21362d5e44bf', class: "sd-guide__popup__list" }, this.renderListItem(this.message)))))));
|
|
205
205
|
}
|
|
206
206
|
// 현재 2depth까지만 스타일 적용
|
|
207
207
|
renderListItem(message, depth = 0) {
|
|
@@ -2231,7 +2231,7 @@ const SdIcon = class {
|
|
|
2231
2231
|
}
|
|
2232
2232
|
render() {
|
|
2233
2233
|
const IconComponent = Icons[this.name]?.[this.size];
|
|
2234
|
-
return (h("i", { key: '
|
|
2234
|
+
return (h("i", { key: '1b3f72da8307068cb0723bbc66723bfcf15a4644', class: this.getIconClasses(), style: this.iconStyle }, h(IconComponent, { key: 'a2526ffca360d28daf0f265822072e294ed27155', color: this.resolvedColor })));
|
|
2235
2235
|
}
|
|
2236
2236
|
};
|
|
2237
2237
|
SdIcon.style = sdIconCss;
|
|
@@ -2336,11 +2336,11 @@ const SdInput = class {
|
|
|
2336
2336
|
'--input-width': typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
2337
2337
|
}
|
|
2338
2338
|
: {};
|
|
2339
|
-
return (h(Host, { key: '
|
|
2339
|
+
return (h(Host, { key: 'bb677f1411303375222c7eadf7738d97de04c4ad', style: inputWidth }, this.label && h("div", { key: '0d05e92148e90645bf8c61d94693eb74d0e37154', class: "sd-input__label" }, this.label), h("label", { key: 'a6a9a4912b4e0e9fb44d9d273f73b88db804bd97', class: {
|
|
2340
2340
|
'sd-input': true,
|
|
2341
2341
|
[this.getInputStatus()]: true,
|
|
2342
2342
|
'sd-input--barcode': !!this.barcode,
|
|
2343
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("slot", { key: '
|
|
2343
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("slot", { key: 'df634eb250fc1dff27e1db4372b3c90c14f9cd79', name: "prefix" }), h("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) }), h("slot", { key: 'c139e8cb7691263e1f4ab2e1e0eadc8284303a39', name: "suffix" }), this.clearable && this.internalValue && (h("sd-icon", { key: 'b4e2a13aabf0257ff72d982197b8eab99ad6d441', name: "close", color: "#888", class: "sd-input__clear-icon", onClick: () => {
|
|
2344
2344
|
this.internalValue = '';
|
|
2345
2345
|
this.sdChange?.emit(this.internalValue);
|
|
2346
2346
|
this.sdInput?.emit(this.internalValue);
|
|
@@ -2353,18 +2353,6 @@ const SdInput = class {
|
|
|
2353
2353
|
};
|
|
2354
2354
|
SdInput.style = sdInputCss;
|
|
2355
2355
|
|
|
2356
|
-
const sdLoadingSpinnerCss = "sd-loading-spinner{display:block}sd-loading-spinner .sd-loading-spinner{animation:sd-loading-spin 2s linear infinite;transform-origin:center center}sd-loading-spinner .sd-loading-spinner .path{animation:sd-loading-spin-path 1.5s ease-in-out infinite}@keyframes sd-loading-spin{0%{transform:rotate3d(0, 0, 1, 0deg)}25%{transform:rotate3d(0, 0, 1, 90deg)}50%{transform:rotate3d(0, 0, 1, 180deg)}75%{transform:rotate3d(0, 0, 1, 270deg)}100%{transform:rotate3d(0, 0, 1, 359deg)}}@keyframes sd-loading-spin-path{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}";
|
|
2357
|
-
|
|
2358
|
-
const SdLoadingSpinner = class {
|
|
2359
|
-
constructor(hostRef) {
|
|
2360
|
-
registerInstance(this, hostRef);
|
|
2361
|
-
}
|
|
2362
|
-
render() {
|
|
2363
|
-
return (h(Host, { key: '5e0bd2fb9b7398091e38c525ea940373d6fde15a' }, h("svg", { key: 'ebc330686702cac30c3b8ffe9c7fa8e9618bd74d', class: "sd-loading-spinner text-positive", width: "72px", height: "72px", viewBox: "25 25 50 50" }, h("circle", { key: '1dc766d141fbb35d2fc2dcdd7e1ea4c0eb517fe5', class: "path", cx: "50", cy: "50", r: "20", fill: "none", stroke: "currentColor", "stroke-width": "5", "stroke-miterlimit": "10" }))));
|
|
2364
|
-
}
|
|
2365
|
-
};
|
|
2366
|
-
SdLoadingSpinner.style = sdLoadingSpinnerCss;
|
|
2367
|
-
|
|
2368
2356
|
const sdPaginationCss = ".sd-pagination{display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;gap:8px;color:#555555;width:100%;font-size:12px}.sd-pagination .prepend-btns{display:flex;flex-flow:row nowrap;align-items:center;gap:8px;width:60px}.sd-pagination .prepend-btns button{width:26px;height:26px;border:0;background:none}.sd-pagination .prepend-btns button:hover{border:1px solid #006ac1;border-radius:14px}.sd-pagination .append-btns{display:flex;flex-flow:row nowrap;align-items:center;gap:8px;width:60px}.sd-pagination .append-btns button{width:26px;height:26px;border:0;background:none}.sd-pagination .append-btns button:hover{border:1px solid #006ac1;border-radius:14px}.sd-pagination .pagination-btn{display:flex;align-items:center;justify-content:center;border-radius:14px;outline:none;border:none;cursor:pointer;height:26px;color:#555555;width:var(--pagination-btn-width, 26px)}.sd-pagination .pagination-btn--selected{background-color:#006ac1;color:white}.sd-pagination .pagination-btn:hover{border:1px solid #006ac1}.sd-pagination--simple .pagination-info{line-height:26px;display:flex;flex-flow:row nowrap;align-items:center;gap:8px}.sd-pagination--simple .pagination-info .current-page,.sd-pagination--simple .pagination-info .last-page{padding:0 2px}";
|
|
2369
2357
|
|
|
2370
2358
|
const BUTTON_WIDTH = {
|
|
@@ -2445,12 +2433,12 @@ const SdPagination = class {
|
|
|
2445
2433
|
}
|
|
2446
2434
|
}
|
|
2447
2435
|
render() {
|
|
2448
|
-
return (h("div", { key: '
|
|
2436
|
+
return (h("div", { key: 'ee07e420809eca9641ab325d38c48a054b9e04de', class: this.paginationClasses }, h("div", { key: 'a7b7f129832a465fd4426cf142385f37461a65b7', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "pagination-info" }, h("span", { class: "current-page" }, this.currentPage), h("span", null, "/"), h("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
2449
2437
|
'pagination-btn': true,
|
|
2450
2438
|
'pagination-btn--selected': this.currentPage === n,
|
|
2451
2439
|
}, disabled: this.currentPage === n, style: {
|
|
2452
2440
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
2453
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: '
|
|
2441
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: 'c1a8fd3d61d24652a17ec30ed436c90c77a19144', class: "append-btns" }, this.renderNextButtons())));
|
|
2454
2442
|
}
|
|
2455
2443
|
static get watchers() { return {
|
|
2456
2444
|
"currentPage": ["onPropChange"],
|
|
@@ -2577,7 +2565,7 @@ const SdPortal = class {
|
|
|
2577
2565
|
this.sdClose.emit();
|
|
2578
2566
|
}
|
|
2579
2567
|
render() {
|
|
2580
|
-
return h("slot", { key: '
|
|
2568
|
+
return h("slot", { key: 'f1445e7060928e48032fbed8f3b7604e626850c2' });
|
|
2581
2569
|
}
|
|
2582
2570
|
};
|
|
2583
2571
|
|
|
@@ -2860,7 +2848,7 @@ const SdSelectOption = class {
|
|
|
2860
2848
|
}
|
|
2861
2849
|
};
|
|
2862
2850
|
render() {
|
|
2863
|
-
return (h(Host, { key: '
|
|
2851
|
+
return (h(Host, { key: '56d2ed3525521a59eb3f0d8231a53259ebd22424' }, h("div", { key: '200849af32a94d4c9aeb35760ce3d8396da45836', class: {
|
|
2864
2852
|
'sd-select__option': true,
|
|
2865
2853
|
'sd-select__option--selected': this.isSelected,
|
|
2866
2854
|
'sd-select__option--disabled': !!this.option.disabled,
|
|
@@ -2882,7 +2870,7 @@ const SdSelectOption = class {
|
|
|
2882
2870
|
};
|
|
2883
2871
|
SdSelectOption.style = sdSelectOptionCss;
|
|
2884
2872
|
|
|
2885
|
-
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{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 td,.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table 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 .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 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%)}";
|
|
2873
|
+
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%)}";
|
|
2886
2874
|
|
|
2887
2875
|
const SdTable = class {
|
|
2888
2876
|
constructor(hostRef) {
|
|
@@ -2987,21 +2975,20 @@ const SdTable = class {
|
|
|
2987
2975
|
.join(' ');
|
|
2988
2976
|
}
|
|
2989
2977
|
// ----- Selection -----
|
|
2990
|
-
isRowSelected(row) {
|
|
2991
|
-
|
|
2992
|
-
}
|
|
2993
|
-
updateRowSelect(row) {
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
}
|
|
2978
|
+
// private isRowSelected(row: Row): boolean {
|
|
2979
|
+
// return Array.from(this.innerSelected).some(r => r[this.rowKey] === row[this.rowKey]);
|
|
2980
|
+
// }
|
|
2981
|
+
// private updateRowSelect(row: Row) {
|
|
2982
|
+
// const selectedArray = Array.from(this.innerSelected);
|
|
2983
|
+
// const exists = this.isRowSelected(row);
|
|
2984
|
+
// const newSelected = exists
|
|
2985
|
+
// ? selectedArray.filter(r => r[this.rowKey] !== row[this.rowKey])
|
|
2986
|
+
// : [...selectedArray, row];
|
|
2987
|
+
// // 동일 상태면 set하지 않음 → 불필요 렌더 방지
|
|
2988
|
+
// if (newSelected.length === selectedArray.length) return;
|
|
2989
|
+
// this.innerSelected = new Set(newSelected);
|
|
2990
|
+
// this.sdSelectChange.emit(Array.from(this.innerSelected));
|
|
2991
|
+
// }
|
|
3005
2992
|
toggleSelectAll(checked) {
|
|
3006
2993
|
if (checked) {
|
|
3007
2994
|
const pageRows = new Set([...this.paginatedRows]);
|
|
@@ -3053,20 +3040,20 @@ const SdTable = class {
|
|
|
3053
3040
|
document.addEventListener('mousemove', handleMouseMove);
|
|
3054
3041
|
document.addEventListener('mouseup', handleMouseUp);
|
|
3055
3042
|
}
|
|
3056
|
-
getCellValue(column, row) {
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
}
|
|
3043
|
+
// private getCellValue(column: SdTableColumn, row: Row) {
|
|
3044
|
+
// const { field, format, name } = column;
|
|
3045
|
+
// const value = typeof field === 'function' ? field(row) : field ? row[field] : row[name];
|
|
3046
|
+
// return format ? format(value, row) : value;
|
|
3047
|
+
// }
|
|
3061
3048
|
// ----- Render -----
|
|
3062
3049
|
renderHeader() {
|
|
3063
|
-
return (h("thead", null, h("tr", null, this.selectable && (h("th", { class: {
|
|
3050
|
+
return (h("thead", null, h("sd-tr", null, this.selectable && (h("sd-th", { class: {
|
|
3064
3051
|
'sd-th': true,
|
|
3065
3052
|
'sd-th--selected': true,
|
|
3066
3053
|
'sticky-left': Boolean(this.stickyColumn.left && this.stickyColumn.left > 0),
|
|
3067
3054
|
}, style: {
|
|
3068
3055
|
'--sticky-left-offset': '0px',
|
|
3069
|
-
} }, h("sd-checkbox", { checked: this.isAllChecked, disabled: !this.paginatedRows.length, onSdChange: (e) => this.toggleSelectAll(e.detail) }))), this.visibleColumns.map((col, colIdx) => (h("th", { key: col.name, class: {
|
|
3056
|
+
} }, h("sd-checkbox", { checked: this.isAllChecked, disabled: !this.paginatedRows.length, onSdChange: (e) => this.toggleSelectAll(e.detail) }))), this.visibleColumns.map((col, colIdx) => (h("sd-th", { key: col.name, class: {
|
|
3070
3057
|
'sd-th': true,
|
|
3071
3058
|
[`${col.thClass}`]: Boolean(col.thClass),
|
|
3072
3059
|
'sticky-left': Boolean(this.stickyColumn.left && colIdx < this.stickyColumn.left),
|
|
@@ -3076,33 +3063,11 @@ const SdTable = class {
|
|
|
3076
3063
|
colIdx === this.visibleColumns.length - this.stickyColumn.right),
|
|
3077
3064
|
}, style: this.getStickyStyle(colIdx) }, h("div", { class: `sd-th__content sd-th__content--${col.align || 'left'}` }, h("slot", { name: `header-cell-${col.name}` }, h("div", { class: "sd-th__content--label" }, col.label)), col.usePageMoveIcon && h("sd-icon", { name: "pageMove", size: "12", color: "#006AC1" }), col.tooltip && (h("sd-tooltip", { ...col.tooltipOptions }, h("div", { slot: "content" }, col.tooltip.map(text => (h("p", null, text))))))), this.resizable && typeof window !== 'undefined' && (h("div", { class: "sd-th__resizer", onMouseDown: (evt) => this.handleResize(colIdx, evt) }))))))));
|
|
3078
3065
|
}
|
|
3079
|
-
renderBody() {
|
|
3080
|
-
return (h("tbody", { ...(!this.paginatedRows.length && { part: 'tbody-empty' }) }, this.isLoading && (h("div", { class: "sd-table__loading" }, h("sd-loading-spinner", null))), !this.paginatedRows.length ? (h("tr", null, h("td", { colSpan: this.visibleColumns.length + (this.selectable ? 1 : 0) }, h("slot", { name: "no-data" }, this.noDataLabel)))) : (this.paginatedRows.map((row, rowIdx) => (h("tr", { key: row[this.rowKey], class: "hover:bg-Grey_Lighten-6" }, this.selectable && (h("td", { class: {
|
|
3081
|
-
'sd-td': true,
|
|
3082
|
-
'sd-td--selected': true,
|
|
3083
|
-
'sticky-left': Boolean(this.stickyColumn.left && this.stickyColumn.left > 0),
|
|
3084
|
-
}, style: {
|
|
3085
|
-
'--sticky-left-offset': '0px',
|
|
3086
|
-
} }, h("sd-checkbox", { checked: this.isRowSelected(row), disabled: !this.paginatedRows.length, onSdChange: () => this.updateRowSelect(row) }))), this.visibleColumns.map((column, colIdx) => {
|
|
3087
|
-
const rendered = this.bodyCellRenderer?.(column, row);
|
|
3088
|
-
return (h("td", { key: column.name, part: `td-${column.name}`, class: {
|
|
3089
|
-
'sd-td': true,
|
|
3090
|
-
[`sd-td--${column.align || 'left'}`]: true,
|
|
3091
|
-
'sticky-left': Boolean(this.stickyColumn.left && colIdx < this.stickyColumn.left),
|
|
3092
|
-
'sticky-right': Boolean(this.stickyColumn.right &&
|
|
3093
|
-
colIdx >= this.visibleColumns.length - this.stickyColumn.right),
|
|
3094
|
-
'sticky-left-edge': Boolean(this.stickyColumn.left && colIdx === this.stickyColumn.left - 1),
|
|
3095
|
-
'sticky-right-edge': Boolean(this.stickyColumn.right &&
|
|
3096
|
-
colIdx === this.visibleColumns.length - this.stickyColumn.right),
|
|
3097
|
-
[`${column.tdClass}`]: Boolean(column.tdClass),
|
|
3098
|
-
}, style: this.getStickyStyle(colIdx) }, h("slot", { name: `body-cell-${column.name}-${rowIdx}` }, rendered ? (typeof rendered === 'string' ? (h("span", { innerHTML: rendered })) : (rendered)) : (this.getCellValue(column, row)))));
|
|
3099
|
-
})))))));
|
|
3100
|
-
}
|
|
3101
3066
|
render() {
|
|
3102
|
-
return (h(Host, { key: '
|
|
3067
|
+
return (h(Host, { key: 'e11aca4536ae59eb5f93ad2854b45480d8ff181e' }, h("div", { key: '41e2f02cd1135b954e9c0958aeb8698e94aacd35', class: "sd-table__wrapper", style: {
|
|
3103
3068
|
'--table-width': this.width,
|
|
3104
3069
|
'--table-height': this.height,
|
|
3105
|
-
} }, h("div", { key: '
|
|
3070
|
+
} }, h("div", { key: '0dd2d7545ca47b006943bb54f1d1e3f5fdadbf0a', class: "sd-table__container" }, h("div", { key: 'c9e11231857c078ccfe4271b83c6eed8939a1bc6', class: "sd-table__middle", role: "table" }, h("div", { key: '5ca555d143a14ffcf71277c36eb86e7c036ad6c3', part: "table", class: this.sdTableClasses }, this.renderHeader(), h("sd-tbody", { key: 'aafdc62718caa4f6ae0e27d6897c7330ba1714bf' }, h("slot", { key: 'e86270cf02953779e2e77b884765011c45024d24' })))), h("div", { key: '5190f448fc1f21a3bbe13470e1f0a21cd637fdb7', class: "sd-table__bottom" })), this.pagination && this.innerRows.length > 0 && (h("div", { key: 'd00820c55aca5b06ab14db71f3ef0345ae6b155f', class: "sd-table__pagination" }, h("sd-pagination", { key: '5dcac1d21e32bb912a335a2d2fd06fd23eb8e525', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onPageChange: (e) => {
|
|
3106
3071
|
if (!this.useInternalPagination) {
|
|
3107
3072
|
this.sdPageChange.emit(e.detail);
|
|
3108
3073
|
}
|
|
@@ -3110,7 +3075,7 @@ const SdTable = class {
|
|
|
3110
3075
|
this.currentPage = e.detail;
|
|
3111
3076
|
this.sdPageChange.emit(this.currentPage);
|
|
3112
3077
|
}
|
|
3113
|
-
} }), this.useRowsPerPageSelect && (h("sd-select", { key: '
|
|
3078
|
+
} }), this.useRowsPerPageSelect && (h("sd-select", { key: '241f2fe9ce56448e922760568963767d49a45fef', value: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", onSdChange: (e) => {
|
|
3114
3079
|
const changedRowsPerPage = e.detail.value ? Number(e.detail.value) : 0;
|
|
3115
3080
|
if (!this.useInternalPagination) {
|
|
3116
3081
|
this.sdRowsPerPageChange.emit(changedRowsPerPage);
|
|
@@ -3141,7 +3106,31 @@ const SdTable = class {
|
|
|
3141
3106
|
};
|
|
3142
3107
|
SdTable.style = sdTableCss;
|
|
3143
3108
|
|
|
3144
|
-
const
|
|
3109
|
+
const sdTbodyCss = "sd-tbody{display:table-row-group}";
|
|
3110
|
+
|
|
3111
|
+
const SdTbody = class {
|
|
3112
|
+
constructor(hostRef) {
|
|
3113
|
+
registerInstance(this, hostRef);
|
|
3114
|
+
}
|
|
3115
|
+
render() {
|
|
3116
|
+
return (h(Host, { key: 'fb4f565321e2f5308bdb5c318e385c4704730d16' }, h("slot", { key: '3ba442c1026ebbce4960031ed3113ebd16d949ec' })));
|
|
3117
|
+
}
|
|
3118
|
+
};
|
|
3119
|
+
SdTbody.style = sdTbodyCss;
|
|
3120
|
+
|
|
3121
|
+
const sdThCss = "sd-th{display:table-cell;padding:12px;font-weight:bold;text-align:left;border-bottom:2px solid #ddd;background-color:#f1f1f1}";
|
|
3122
|
+
|
|
3123
|
+
const SdTh = class {
|
|
3124
|
+
constructor(hostRef) {
|
|
3125
|
+
registerInstance(this, hostRef);
|
|
3126
|
+
}
|
|
3127
|
+
render() {
|
|
3128
|
+
return (h(Host, { key: '98d5096b0d03db947da3ea0129b43a5d291d0ddd', role: "columnheader" }, h("slot", { key: '4ccaa018abd5915d2069adc01b802bb9392cc186' })));
|
|
3129
|
+
}
|
|
3130
|
+
};
|
|
3131
|
+
SdTh.style = sdThCss;
|
|
3132
|
+
|
|
3133
|
+
const sdTooltipCss = "sd-tooltip [slot=content]{display:none}sd-tooltip .sd-tooltip{position:relative;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.sd-tooltip-menu{width:fit-content;padding:8px 16px;border-radius:4px;font-size:12px;position:relative;box-sizing:border-box;display:flex;align-items:start;justify-content:center;gap:12px}.sd-tooltip-menu--with-close{padding-right:12px !important}.sd-tooltip-menu__arrow{position:absolute;display:flex;width:9.6px;height:7.2px}.sd-tooltip-menu__arrow svg{width:100%;height:100%}.sd-tooltip-menu__arrow--top{bottom:-7.2px;left:50%;transform:translateX(-50%)}.sd-tooltip-menu__arrow--bottom{top:-7.2px;left:50%;transform:translateX(-50%) rotate(180deg)}.sd-tooltip-menu__arrow--left{right:-7.2px;top:50%;transform:translateY(-50%) rotate(-90deg)}.sd-tooltip-menu__arrow--right{left:-7.2px;top:50%;transform:translateY(-50%) rotate(90deg)}.sd-tooltip-menu__content{line-height:20px;font-weight:500}.sd-tooltip-menu__content p{margin:0}.sd-tooltip-menu__close-button{padding-top:4px;display:flex}.sd-tooltip-menu__close-button button{padding:0;background:none;border:none;cursor:pointer}";
|
|
3145
3134
|
|
|
3146
3135
|
const SdTooltip = class {
|
|
3147
3136
|
constructor(hostRef) {
|
|
@@ -3189,20 +3178,20 @@ const SdTooltip = class {
|
|
|
3189
3178
|
: {
|
|
3190
3179
|
onClick: () => (this.showTooltip = !this.showTooltip),
|
|
3191
3180
|
};
|
|
3192
|
-
return (h(Fragment, { key: '
|
|
3181
|
+
return (h(Fragment, { key: 'add7afd546c5c7951d8e8ceaa052c53bf1db5956' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-tooltip", ...handleTrigger })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-tooltip", ...handleTrigger })), this.showTooltip && (h("sd-tooltip-portal", { key: '766e22f333ba081920ba4dd33ff27d3a861f9ec9', parentRef: this.buttonEl, onSdClose: () => this.handleClose(), placement: this.placement }, h("div", { key: '5ec3181541acdfbdb535d2bc3edc0a857de4f533', class: {
|
|
3193
3182
|
'sd-tooltip-menu': true,
|
|
3194
3183
|
[`sd-tooltip-menu--${this.type}`]: true,
|
|
3195
3184
|
[`sd-tooltip-menu--${this.placement}`]: true,
|
|
3196
3185
|
'sd-tooltip-menu--with-close': this.useClose,
|
|
3197
3186
|
[`bg-${SdTooltip.COLOR_OF_TYPE[this.type].background}`]: true,
|
|
3198
3187
|
[`text-${SdTooltip.COLOR_OF_TYPE[this.type].text}`]: true,
|
|
3199
|
-
} }, h("i", { key: '
|
|
3188
|
+
} }, h("i", { key: '5a82c1af8b3ec6dc8ae2667d26fba58914a21f14', class: `sd-tooltip-menu__arrow sd-tooltip-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: '34821d5f0ff61f95fdc603bfc8680566943b4a60', class: {
|
|
3200
3189
|
[`text-${SdTooltip.COLOR_OF_TYPE[this.type].background}`]: true,
|
|
3201
|
-
} })), h("div", { key: '
|
|
3190
|
+
} })), h("div", { key: '578c29f6258007f35c23f263823c450840ae187a', class: "sd-tooltip-menu__content", ref: el => {
|
|
3202
3191
|
if (el && this.slotContent && !el.hasChildNodes()) {
|
|
3203
3192
|
el.appendChild(this.slotContent.cloneNode(true));
|
|
3204
3193
|
}
|
|
3205
|
-
} }, !this.slotContent && h("span", { key: '
|
|
3194
|
+
} }, !this.slotContent && h("span", { key: '9d7ad665d467d859b9b049ee2a1190865213b1a7' }, this.el.textContent)), this.useClose && (h("div", { key: 'ee5494463906a043c19b8e8cff8ec012ab5cbd27', class: "sd-tooltip-menu__close-button" }, h("button", { key: 'ba7f1aab87247004d6ffd11a3f1b0918db98e21d', type: "button", "aria-label": "Close tooltip", title: "Close tooltip", onClick: () => this.handleClose() }, h("sd-icon", { key: '74bf57c8c0d48d15eb5879c898d6a1e5aae0df5f', name: "close", size: "12", color: "#AAAAAA" })))))))));
|
|
3206
3195
|
}
|
|
3207
3196
|
};
|
|
3208
3197
|
SdTooltip.style = sdTooltipCss;
|
|
@@ -3355,9 +3344,21 @@ const SdTooltipPortal = class {
|
|
|
3355
3344
|
this.sdClose.emit();
|
|
3356
3345
|
}
|
|
3357
3346
|
render() {
|
|
3358
|
-
return h("slot", { key: '
|
|
3347
|
+
return h("slot", { key: 'ac0fb594aae6f39ac0dc118865beec1e6259ceeb' });
|
|
3348
|
+
}
|
|
3349
|
+
};
|
|
3350
|
+
|
|
3351
|
+
const sdTrCss = "sd-tr{display:table-row}";
|
|
3352
|
+
|
|
3353
|
+
const SdTr = class {
|
|
3354
|
+
constructor(hostRef) {
|
|
3355
|
+
registerInstance(this, hostRef);
|
|
3356
|
+
}
|
|
3357
|
+
render() {
|
|
3358
|
+
return (h(Host, { key: 'f20a0bbaf94ce37ef8cbf4d59c24159549294ff2', role: "row" }, h("slot", { key: '8b5d3685c916a4ad8422c03e35f9b699961a1415' })));
|
|
3359
3359
|
}
|
|
3360
3360
|
};
|
|
3361
|
+
SdTr.style = sdTrCss;
|
|
3361
3362
|
|
|
3362
|
-
export { SdButton as sd_button, SdCheckbox as sd_checkbox, SdGuide as sd_guide, SdIcon as sd_icon, SdInput as sd_input,
|
|
3363
|
-
//# sourceMappingURL=sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-
|
|
3363
|
+
export { SdButton as sd_button, SdCheckbox as sd_checkbox, SdGuide as sd_guide, SdIcon as sd_icon, SdInput as sd_input, SdPagination as sd_pagination, SdPortal as sd_portal, SdSelect as sd_select, SdSelectOption as sd_select_option, SdTable as sd_table, SdTbody as sd_tbody, SdTh as sd_th, SdTooltip as sd_tooltip, SdTooltipPortal as sd_tooltip_portal, SdTr as sd_tr };
|
|
3364
|
+
//# sourceMappingURL=sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table.sd-tbody.sd-th.sd-tooltip.sd-tooltip-portal.sd-tr.entry.js.map
|
|
@@ -9,7 +9,7 @@ const SdCard = class {
|
|
|
9
9
|
bordered = true;
|
|
10
10
|
class = '';
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'f00cdc166da4589d81d732fb4bc84d0258efaccb' }, h("div", { key: 'c640a9db7ef09eee390ca0c0e8484a5802d17cbd', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.class}` }, h("slot", { key: '07421b4249bf7a94aa1a574011b33f7082fa984a' }))));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
SdCard.style = sdCardCss;
|
|
@@ -80,9 +80,9 @@ const SdDatePicker = class {
|
|
|
80
80
|
this.isOpen = false;
|
|
81
81
|
};
|
|
82
82
|
render() {
|
|
83
|
-
return (h(Host, { key: '
|
|
83
|
+
return (h(Host, { key: '056414534f658c5e77fedf40d94e578299b437cc', class: "sd-date-picker" }, h("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: {
|
|
84
84
|
margin: '0 0 0 8px',
|
|
85
|
-
}, onClick: () => this.openMenu() }, h("sd-icon", { key: '
|
|
85
|
+
}, onClick: () => this.openMenu() }, h("sd-icon", { key: 'd71e7a84bef6b956e77fb7f718568e8d1df59562', slot: "prefix", name: "date", size: "16", color: "#737373", class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (h("sd-portal", { key: '0cb4ff03893ddf4a095760f326104d91bdb6265b', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.handleClose }, h("div", { key: '7a3bbe3f4cd379d94832005653aacc166e6b66cf', class: "sd-date-picker__menu" }, h("div", { key: '6b33cab1222e71e3004425b07afbdffef0ec0a6b', class: "sd-date-picker__header" }, h("div", { key: 'acc16c94cfea8399ce5d210de7286760238c0963', class: "year-nav" }, h("button", { key: '6f577329b27057306e163c0c92ae16eff29a15b4', type: "button", name: "prev-year", title: "Previous Year", onClick: () => this.setCurrentYear(this.currentYear - 1) }, h("sd-icon", { key: 'c8174f406a3ba95d98ae31c6f4004f4178f6ac5f', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("span", { key: 'cdcb96cd0fbf6abedcaaa7b5cca8a56c90b62284', class: "year-nav__current" }, this.currentYear), h("button", { key: '9aba8e6ebde34b7a29e52525cff8fbe8a243ae6a', type: "button", name: "next-year", title: "Next Year", onClick: () => this.setCurrentYear(this.currentYear + 1) }, h("sd-icon", { key: '423d3b35b56f32006edfd0bdf6f457dd46a591b5', name: "arrowRight", size: "12", color: "#CCCCCC" }))), h("div", { key: 'c5dd3a1b495e48c2c980207591f161486042c361', class: "month-nav" }, h("button", { key: '48265eec87bdb40c3189d07ef1711bf95bb55381', type: "button", name: "prev-month", title: "Previous ", onClick: () => this.handleUpdateMonth('prev') }, h("sd-icon", { key: '7274e698f9c7a06369c8fe6064ec0acd9fce62c8', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("span", { key: '54e15aaad9ac9563f66a6bb4dc7b19f7dc01d7c0', class: "month-nav__current" }, this.currentMonth, "\uC6D4"), h("button", { key: '32da2302da74ef7bc8805138ce414b903d247878', type: "button", name: "next-month", title: "Next Month", onClick: () => this.handleUpdateMonth('next') }, h("sd-icon", { key: '041809657b4288519ca476953be773403912c858', name: "arrowRight", size: "12", color: "#CCCCCC" })))), h("div", { key: 'd32cd40e6df89c95f4b2639c6bc98f7156a09bc2', class: "sd-date-picker__days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (h("div", { key: day, class: "day" }, day)))), h("div", { key: 'e6fafbf9ec82a8f3abe9d67c61279598498a7396', class: "sd-date-picker__body" }, [
|
|
86
86
|
...this.calendar.prevMonthDays,
|
|
87
87
|
...this.calendar.days,
|
|
88
88
|
...this.calendar.afterMonthDays,
|
|
@@ -155,9 +155,9 @@ const SdDateRangePicker = class {
|
|
|
155
155
|
this.isOpen = false;
|
|
156
156
|
};
|
|
157
157
|
render() {
|
|
158
|
-
return (h(Host, { key: '
|
|
158
|
+
return (h(Host, { key: '9c7457b54e433a167193eeaafa8a0e7755ca24db', class: "sd-date-range-picker" }, h("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: {
|
|
159
159
|
margin: '0 0 0 8px',
|
|
160
|
-
}, onClick: () => this.openMenu() }, h("sd-icon", { key: '
|
|
160
|
+
}, onClick: () => this.openMenu() }, h("sd-icon", { key: 'e38b9dde8571369ff85bf10baff71437b0cf48f4', slot: "prefix", name: "date", size: "16", color: "#737373", class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (h("sd-portal", { key: '2f85011e2a47bb0717239da419fcd27c8410db81', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.handleClose }, h("div", { key: '21f147563f6ab7c9a1a2b08cf1951bb11a8a0302', class: "sd-date-range-picker__menu" }, h("div", { key: '2dad8cef33d07db263a73cd3760dbf44e33dd7ab', class: "sd-date-range-picker__header mb-16pxr flex flex-nowrap items-center justify-center" }, h("button", { key: '53ccd475c6ebec5999158b2669878b0426e505d1', type: "button", name: "prev", title: "Previous", onClick: () => this.setPrevYear(this.prevYear - 1) }, h("sd-icon", { key: 'aba2465aae092388568006a7a968c27446476470', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("div", { key: 'd4384c1901a5e5221d55a18e014c0955af561660', class: "header-label" }, this.prevYear), h("button", { key: '26f2e7f9da0f4571d4ca2cf0a668ceb4784af9c6', type: "button", name: "next", title: "Next", onClick: () => this.setPrevYear(this.prevYear + 1) }, h("sd-icon", { key: 'fc670a78e443dc7de8fbb05fe3233ae5bd6544d4', name: "arrowRight", size: "12", color: "#CCCCCC" }))), h("div", { key: 'fb2157002f772dee6c4ff4b76cd3c942d4bb9965', class: "sd-date-range-picker__body" }, [this.prevCalendar, this.nextCalendar].map((calendar, index) => (h(Fragment, null, index === 1 && h("div", { class: "separator" }), h("div", { key: index, class: "calendar-container" }, h("div", { class: "calendar-header" }, h("button", { type: "button", name: "month", title: "Month", class: index === 0 ? 'header-button-prev' : 'header-button-next', onClick: () => this.updateYearMonth(index === 0 ? 'prev' : 'next') }, h("sd-icon", { name: index === 0 ? 'arrowLeft' : 'arrowRight', size: "12", color: "#CCCCCC" })), index === 0
|
|
161
161
|
? `${this.prevYear}.${String(this.prevMonth).padStart(2, '0')}`
|
|
162
162
|
: `${this.nextYear}.${String(this.nextMonth).padStart(2, '0')}`), h("div", { class: "calendar-days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (h("sd-date-box", { key: day, date: day, disabled: true, class: "day" })))), h("div", { class: "calendar-body mt-12pxr grid grid-cols-7 gap-y-8pxr" }, [...calendar.prevMonthDays, ...calendar.days, ...calendar.afterMonthDays].map((day, idx) => (h("sd-date-box", { key: `prev${day}_${idx}`, date: !day ? '' : Number(day), selected: this.dateRange.some(date => date ===
|
|
163
163
|
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 ===
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-B2T3tS5r.js';
|
|
2
|
+
|
|
3
|
+
const sdLoadingSpinnerCss = "sd-loading-spinner{display:block}sd-loading-spinner .sd-loading-spinner{animation:sd-loading-spin 2s linear infinite;transform-origin:center center}sd-loading-spinner .sd-loading-spinner .path{animation:sd-loading-spin-path 1.5s ease-in-out infinite}@keyframes sd-loading-spin{0%{transform:rotate3d(0, 0, 1, 0deg)}25%{transform:rotate3d(0, 0, 1, 90deg)}50%{transform:rotate3d(0, 0, 1, 180deg)}75%{transform:rotate3d(0, 0, 1, 270deg)}100%{transform:rotate3d(0, 0, 1, 359deg)}}@keyframes sd-loading-spin-path{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}";
|
|
4
|
+
|
|
5
|
+
const SdLoadingSpinner = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (h(Host, { key: '8ab87f8cf1e002856b6721de5ca5313ccafb3265' }, h("svg", { key: 'da44064be6ab5c19d8517eb4da37c4849997715b', class: "sd-loading-spinner text-positive", width: "72px", height: "72px", viewBox: "25 25 50 50" }, h("circle", { key: 'f446e24aabaf694e4158ec7e91ad4c39e33b4f91', class: "path", cx: "50", cy: "50", r: "20", fill: "none", stroke: "currentColor", "stroke-width": "5", "stroke-miterlimit": "10" }))));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
SdLoadingSpinner.style = sdLoadingSpinnerCss;
|
|
14
|
+
|
|
15
|
+
export { SdLoadingSpinner as sd_loading_spinner };
|
|
16
|
+
//# sourceMappingURL=sd-loading-spinner.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sd-loading-spinner.entry.js","sources":["src/components/sd-loading-spinner/sd-loading-spinner.scss?tag=sd-loading-spinner","src/components/sd-loading-spinner/sd-loading-spinner.tsx"],"sourcesContent":["sd-loading-spinner {\n display: block;\n\n .sd-loading-spinner {\n animation: sd-loading-spin 2s linear infinite;\n transform-origin: center center;\n .path {\n animation: sd-loading-spin-path 1.5s ease-in-out infinite;\n }\n\n @keyframes sd-loading-spin {\n 0% {\n transform: rotate3d(0, 0, 1, 0deg);\n }\n 25% {\n transform: rotate3d(0, 0, 1, 90deg);\n }\n 50% {\n transform: rotate3d(0, 0, 1, 180deg);\n }\n 75% {\n transform: rotate3d(0, 0, 1, 270deg);\n }\n 100% {\n transform: rotate3d(0, 0, 1, 359deg);\n }\n }\n\n @keyframes sd-loading-spin-path {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -35px;\n }\n\n 100% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -124px;\n }\n }\n }\n}\n","import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'sd-loading-spinner',\n styleUrl: 'sd-loading-spinner.scss',\n})\nexport class SdLoadingSpinner {\n render() {\n return (\n <Host>\n <svg class=\"sd-loading-spinner text-positive\" width=\"72px\" height=\"72px\" viewBox=\"25 25 50 50\">\n <circle\n class=\"path\"\n cx=\"50\"\n cy=\"50\"\n r=\"20\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"5\"\n stroke-miterlimit=\"10\"\n ></circle>\n </svg>\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;AAAA,MAAM,mBAAmB,GAAG,ypBAAypB;;MCMxqB,gBAAgB,GAAA,MAAA;;;;IAC5B,MAAM,GAAA;AACL,QAAA,QACC,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACJ,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,kCAAkC,EAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,OAAO,EAAC,aAAa,EAAA,EAC7F,CAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACC,KAAK,EAAC,MAAM,EACZ,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,CAAC,EAAC,IAAI,EACN,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EAAA,cAAA,EACR,GAAG,EAAA,mBAAA,EACE,IAAI,EAAA,CACb,CACL,CACA;;;;;;;"}
|
|
@@ -37,11 +37,11 @@ const SdPopover = class {
|
|
|
37
37
|
this.showPopover = false;
|
|
38
38
|
};
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Fragment, { key: '
|
|
40
|
+
return (h(Fragment, { key: 'a58d208a0a9ba1e954568512f1dbe0df88922623' }, this.label ? (h("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)) })) : (h("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 && (h("sd-tooltip-portal", { key: '7ffbc49de8f33edbc05beec6cb554820bdbde2b6', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement }, h("div", { key: 'fcf1b9069831494c3c2ee5e274037c211f342993', class: {
|
|
41
41
|
'sd-popover-menu': true,
|
|
42
42
|
[`sd-popover-menu--${this.placement}`]: true,
|
|
43
43
|
[this.menuClass]: !!this.menuClass,
|
|
44
|
-
} }, h("i", { key: '
|
|
44
|
+
} }, h("i", { key: 'e1bd244e2c8c2e1c8a4759f96ce44e5cdda41bcc', class: `sd-popover-menu__arrow sd-popover-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: '36cf86a871f7454f2916ce8157e7d9234d808666' })), h("div", { key: '8fcd872f31d3dfcad2b8b7d26c7956368289d8cf', class: "sd-popover-menu__content" }, this.menuTitle && h("div", { key: '435f956e668910900948999a2ae23a7ffbdf67cd', class: "sd-popover-menu__title" }, this.menuTitle), this.messages.length > 0 && (h("div", { key: '80eaa27446106e6380712fb00ad9df4752ebb70b', class: "sd-popover-menu__messages" }, this.messages.map(message => (h("div", null, message))))), this.buttons.length > 0 && (h("div", { key: 'b4845d8ac339559c2b612a219517a6addb47aaca', class: `sd-popover-menu__buttons sd-popover-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (h("sd-button", { ...button })))))), this.useClose && (h("button", { key: '56ab62d73d4e71d871165d28adf7ecd4efd92870', class: "sd-popover-menu__close-button", onClick: () => this.handleClose() }, h("sd-icon", { key: 'ea93c1a46baef7cb4b7a849b8744043afc11de79', name: "close", size: "12", color: "#AAAAAA" }))))))));
|
|
45
45
|
}
|
|
46
46
|
static get watchers() { return {
|
|
47
47
|
"show": ["watchShowHandler"]
|
|
@@ -19,10 +19,10 @@ const SdProgress = class {
|
|
|
19
19
|
error: '#FB4444',
|
|
20
20
|
};
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '5ac52da4809e45fc5bc69991aea3bd423b72ffdc', style: {
|
|
23
23
|
'--progress-color': this.statusColor[this.status],
|
|
24
24
|
'--progress-percentage': `${this.percentage}%`,
|
|
25
|
-
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && h("div", { key: '
|
|
25
|
+
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && h("div", { key: '7758a60580ab05cd2dd396b16cc4483d890e0498', class: "sd-progress__label" }, this.label)));
|
|
26
26
|
}
|
|
27
27
|
renderBarProgress() {
|
|
28
28
|
return (h("div", { class: `sd-progress__bar sd-progress__bar--${this.status}` }, h("div", { class: ['sd-progress__bar__percent', this.percentage < 100 ? 'proceed' : ''].join(' ') }), h("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--left" }, this.percentage, "%"), h("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--right" }, this.percentage, "%")));
|
|
@@ -213,11 +213,11 @@ const SdSelectMultiple = class extends BaseDropdownEvent {
|
|
|
213
213
|
'--select-width': this.width || '200px',
|
|
214
214
|
'--select-dropdown-height': this.dropdownHeight || '260px',
|
|
215
215
|
};
|
|
216
|
-
return (h(Host, { key: '
|
|
216
|
+
return (h(Host, { key: '5dd79017c9796e6412984675fcd3ec2d03e32012', style: style }, h("div", { key: '777e5c8c777fb421c06ccc99ad114077918d3091', class: {
|
|
217
217
|
'sd-select-multiple': true,
|
|
218
218
|
'sd-select-multiple--open': this.isOpen,
|
|
219
219
|
'sd-select-multiple--disabled': this.disabled,
|
|
220
|
-
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), h("div", { key: '
|
|
220
|
+
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), h("div", { key: '897dbc13dddd89e3bf3be9b77efe5aa04600ea1f', class: "sd-select-multiple__container" }, this.renderTrigger(), this.renderDropdown()))));
|
|
221
221
|
}
|
|
222
222
|
renderLabel(label) {
|
|
223
223
|
if (!label)
|
|
@@ -46,7 +46,7 @@ const SdSelectOptionGroup = class {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
render() {
|
|
49
|
-
return (h("div", { key: '
|
|
49
|
+
return (h("div", { key: 'e873486c47436a1cb2e3797dfe06b89874429e18', class: {
|
|
50
50
|
'sd-select__option-group': true,
|
|
51
51
|
'sd-select__option-group--selected': !!this.isSelected,
|
|
52
52
|
'sd-select__option-group--disabled': !!this.option.disabled,
|
|
@@ -55,10 +55,10 @@ const SdSelectOptionGroup = class {
|
|
|
55
55
|
'sd-select__option-group--group': this.option.type === 'group',
|
|
56
56
|
'sd-select__option-group--subgroup': this.option.type === 'subgroup',
|
|
57
57
|
'sd-select__option-group--item': this.option.type === 'item',
|
|
58
|
-
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, h("div", { key: '
|
|
58
|
+
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, h("div", { key: '7a54f43c2f654f26ff44cb039136488b17492336', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (h("sd-checkbox", { key: 'ffe73a278e2e4869b3389b15268ab3c6d1117d47', checked: this.isSelected, disabled: this.option.disabled, onClick: e => {
|
|
59
59
|
e.preventDefault();
|
|
60
60
|
this.handleClick(this.option, this.isSelected, e);
|
|
61
|
-
} })), h("span", { key: '
|
|
61
|
+
} })), h("span", { key: '7c05471592fd30b12b94d158b11c76e98f4634ef', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (h("span", { key: 'd395b359af93878867f61990741d174bb81cd959', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
SdSelectOptionGroup.style = sdSelectOptionGroupCss;
|