@sellmate/design-system 0.0.48 → 0.0.49
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/{index-DXo1Fhkn.js → index-Bxead0A0.js} +4 -2
- package/dist/cjs/{index-DXo1Fhkn.js.map → index-Bxead0A0.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sd-badge.cjs.entry.js +2 -2
- package/dist/cjs/sd-button.sd-checkbox.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table-backup.sd-tooltip.sd-tooltip-portal.entry.cjs.js.map +1 -1
- package/dist/cjs/sd-button_12.cjs.entry.js +206 -105
- package/dist/cjs/sd-card.cjs.entry.js +2 -2
- package/dist/cjs/sd-date-box.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 +3 -3
- package/dist/cjs/sd-guide.cjs.entry.js +4 -4
- package/dist/cjs/sd-modal-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-popover.cjs.entry.js +4 -4
- package/dist/cjs/sd-progress.cjs.entry.js +3 -3
- package/dist/cjs/sd-select-multiple-group.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-multiple.cjs.entry.js +3 -3
- package/dist/cjs/sd-select-option-group.cjs.entry.js +4 -4
- package/dist/cjs/sd-table.cjs.entry.js +1 -1
- package/dist/cjs/sd-tag.cjs.entry.js +2 -2
- package/dist/cjs/sd-tbody_3.cjs.entry.js +4 -4
- package/dist/cjs/sd-td.cjs.entry.js +3 -3
- package/dist/cjs/{tooltipArrow-DNiGFQNW.js → tooltipArrow-C7cIAuTo.js} +3 -3
- package/dist/cjs/{tooltipArrow-DNiGFQNW.js.map → tooltipArrow-C7cIAuTo.js.map} +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 +1 -1
- 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 +17 -15
- package/dist/collection/components/sd-table-backup/sd-table-backup.js +191 -90
- package/dist/collection/components/sd-table-backup/sd-table-backup.js.map +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +4 -4
- package/dist/collection/components/sd-tooltip-portal/sd-tooltip-portal.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-Bn_wuPsh.js → p-BAhPNR2w.js} +8 -8
- package/dist/components/{p-Bn_wuPsh.js.map → p-BAhPNR2w.js.map} +1 -1
- package/dist/components/{p-C9qV_qzP.js → p-BozMKCTh.js} +6 -6
- package/dist/components/{p-C9qV_qzP.js.map → p-BozMKCTh.js.map} +1 -1
- package/dist/components/{p-BvuTaRpn.js → p-BpNH68jy.js} +3 -3
- package/dist/components/{p-BvuTaRpn.js.map → p-BpNH68jy.js.map} +1 -1
- package/dist/components/{p-CIkSynaQ.js → p-C930Kn80.js} +4 -4
- package/dist/components/{p-CIkSynaQ.js.map → p-C930Kn80.js.map} +1 -1
- package/dist/components/{p-Cb33bhDR.js → p-CRB0WJnC.js} +4 -4
- package/dist/components/{p-Cb33bhDR.js.map → p-CRB0WJnC.js.map} +1 -1
- package/dist/components/{p-DWfls6IE.js → p-CVDnYikl.js} +11 -11
- package/dist/components/{p-DWfls6IE.js.map → p-CVDnYikl.js.map} +1 -1
- package/dist/components/{p-BBhUxTuK.js → p-CaLViLir.js} +9 -9
- package/dist/components/{p-BBhUxTuK.js.map → p-CaLViLir.js.map} +1 -1
- package/dist/components/{p-BlDZogGu.js → p-CePRmFej.js} +4 -4
- package/dist/components/{p-BlDZogGu.js.map → p-CePRmFej.js.map} +1 -1
- package/dist/components/{p-lS2AF6uZ.js → p-CxKXdl1J.js} +6 -6
- package/dist/components/{p-lS2AF6uZ.js.map → p-CxKXdl1J.js.map} +1 -1
- package/dist/components/{p-D2rvzY8X.js → p-D2YMmHfl.js} +4 -4
- package/dist/components/{p-D2rvzY8X.js.map → p-D2YMmHfl.js.map} +1 -1
- package/dist/components/{p-B6GiEilD.js → p-D2aGA3BX.js} +4 -4
- package/dist/components/{p-B6GiEilD.js.map → p-D2aGA3BX.js.map} +1 -1
- package/dist/components/{p-CMcI4ZlP.js → p-DC5fpNnQ.js} +4 -4
- package/dist/components/{p-CMcI4ZlP.js.map → p-DC5fpNnQ.js.map} +1 -1
- package/dist/components/{p-Cafw-qR4.js → p-DY6t0qQj.js} +3 -3
- package/dist/components/{p-Cafw-qR4.js.map → p-DY6t0qQj.js.map} +1 -1
- package/dist/components/{p-DsXAGqf9.js → p-Dg_O2miv.js} +4 -4
- package/dist/components/{p-DsXAGqf9.js.map → p-Dg_O2miv.js.map} +1 -1
- package/dist/components/{p-DCDoqfn8.js → p-LziGti_p.js} +4 -4
- package/dist/components/{p-DCDoqfn8.js.map → p-LziGti_p.js.map} +1 -1
- package/dist/components/{p-WhZES_rm.js → p-RZm_wGW3.js} +6 -6
- package/dist/components/{p-WhZES_rm.js.map → p-RZm_wGW3.js.map} +1 -1
- package/dist/components/{p-CbnL1UUF.js → p-TFWJruz2.js} +4 -3
- package/dist/components/p-TFWJruz2.js.map +1 -0
- package/dist/components/{p-t7JZlmXM.js → p-cOQWi_dD.js} +4 -4
- package/dist/components/{p-t7JZlmXM.js.map → p-cOQWi_dD.js.map} +1 -1
- package/dist/components/{p-wA4KCOG0.js → p-gnOKrd57.js} +3 -3
- package/dist/components/{p-wA4KCOG0.js.map → p-gnOKrd57.js.map} +1 -1
- package/dist/components/sd-badge.js +2 -2
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-card.js +2 -2
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/sd-date-box.js +1 -1
- package/dist/components/sd-date-picker.js +6 -6
- package/dist/components/sd-date-range-picker.js +7 -7
- package/dist/components/sd-guide.js +7 -7
- 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-modal-card.js +3 -3
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +7 -7
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-progress.js +3 -3
- package/dist/components/sd-select-multiple-group.js +7 -7
- package/dist/components/sd-select-multiple.js +9 -9
- 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 +203 -102
- package/dist/components/sd-table-backup.js.map +1 -1
- package/dist/components/sd-table.js +14 -14
- package/dist/components/sd-tag.js +2 -2
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.js +3 -3
- package/dist/components/sd-th.js +1 -1
- package/dist/components/sd-tooltip-portal.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-390283f7.entry.js → p-037de6ce.entry.js} +2 -2
- package/dist/design-system/p-0cada447.entry.js +2 -0
- package/dist/design-system/p-154958ba.entry.js +2 -0
- package/dist/design-system/{p-826c6517.entry.js → p-2285c061.entry.js} +2 -2
- package/dist/design-system/{p-d4b5575e.entry.js → p-267985b3.entry.js} +2 -2
- package/dist/design-system/p-328d7e6c.entry.js +2 -0
- package/dist/design-system/{p-8734ded6.entry.js → p-45bb29cf.entry.js} +2 -2
- package/dist/design-system/{p-871c8d66.entry.js → p-6d81e6f8.entry.js} +2 -2
- package/dist/design-system/p-6f16399e.entry.js +2 -0
- package/dist/design-system/{p-6320b9c6.entry.js.map → p-6f16399e.entry.js.map} +1 -1
- package/dist/design-system/{p-f9d01bdb.entry.js → p-74c0eee4.entry.js} +2 -2
- package/dist/design-system/{p-3574f319.entry.js → p-8d1a2a13.entry.js} +2 -2
- package/dist/design-system/p-927b3333.entry.js +2 -0
- package/dist/design-system/p-927b3333.entry.js.map +1 -0
- package/dist/design-system/p-ClyGLKUd.js +3 -0
- package/dist/design-system/{p-B2T3tS5r.js.map → p-ClyGLKUd.js.map} +1 -1
- package/dist/design-system/p-DXZjHQmQ.js +2 -0
- package/dist/design-system/{p-BE6EMCXm.js.map → p-DXZjHQmQ.js.map} +1 -1
- package/dist/design-system/{p-4386db36.entry.js → p-bea456ad.entry.js} +2 -2
- package/dist/design-system/{p-ce8fe1fd.entry.js → p-d7fe0919.entry.js} +2 -2
- package/dist/design-system/{p-0d776157.entry.js → p-dc6681a7.entry.js} +2 -2
- package/dist/design-system/p-ecb38b6a.entry.js +2 -0
- package/dist/design-system/{p-db0f705b.entry.js.map → p-ecb38b6a.entry.js.map} +1 -1
- package/dist/design-system/p-fb4d628a.entry.js +2 -0
- package/dist/design-system/sd-button.sd-checkbox.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table-backup.sd-tooltip.sd-tooltip-portal.entry.esm.js.map +1 -1
- package/dist/esm/design-system.js +2 -2
- package/dist/esm/{index-B2T3tS5r.js → index-ClyGLKUd.js} +4 -3
- package/dist/esm/{index-B2T3tS5r.js.map → index-ClyGLKUd.js.map} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/sd-badge.entry.js +2 -2
- package/dist/esm/sd-button.sd-checkbox.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table-backup.sd-tooltip.sd-tooltip-portal.entry.js.map +1 -1
- package/dist/esm/sd-button_12.entry.js +206 -105
- package/dist/esm/sd-card.entry.js +2 -2
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/sd-date-picker.entry.js +2 -2
- package/dist/esm/sd-date-range-picker.entry.js +3 -3
- package/dist/esm/sd-guide.entry.js +4 -4
- package/dist/esm/sd-modal-card.entry.js +1 -1
- package/dist/esm/sd-popover.entry.js +4 -4
- package/dist/esm/sd-progress.entry.js +3 -3
- package/dist/esm/sd-select-multiple-group.entry.js +1 -1
- package/dist/esm/sd-select-multiple.entry.js +3 -3
- package/dist/esm/sd-select-option-group.entry.js +4 -4
- package/dist/esm/sd-table.entry.js +1 -1
- package/dist/esm/sd-tag.entry.js +2 -2
- package/dist/esm/sd-tbody_3.entry.js +4 -4
- package/dist/esm/sd-td.entry.js +3 -3
- package/dist/esm/{tooltipArrow-Pa2XQhpp.js → tooltipArrow-BwO7_hdW.js} +3 -3
- package/dist/esm/{tooltipArrow-Pa2XQhpp.js.map → tooltipArrow-BwO7_hdW.js.map} +1 -1
- package/dist/types/components/sd-table-backup/sd-table-backup.d.ts +15 -0
- package/hydrate/index.js +236 -126
- package/hydrate/index.mjs +236 -126
- package/package.json +2 -2
- package/dist/components/p-CbnL1UUF.js.map +0 -1
- package/dist/design-system/p-043b7fd1.entry.js +0 -2
- package/dist/design-system/p-043b7fd1.entry.js.map +0 -1
- package/dist/design-system/p-059ca6cb.entry.js +0 -2
- package/dist/design-system/p-6320b9c6.entry.js +0 -2
- package/dist/design-system/p-7b4fe5bf.entry.js +0 -2
- package/dist/design-system/p-7e8db11c.entry.js +0 -2
- package/dist/design-system/p-B2T3tS5r.js +0 -3
- package/dist/design-system/p-BE6EMCXm.js +0 -2
- package/dist/design-system/p-d4e043c5.entry.js +0 -2
- package/dist/design-system/p-db0f705b.entry.js +0 -2
- /package/dist/design-system/{p-390283f7.entry.js.map → p-037de6ce.entry.js.map} +0 -0
- /package/dist/design-system/{p-7b4fe5bf.entry.js.map → p-0cada447.entry.js.map} +0 -0
- /package/dist/design-system/{p-059ca6cb.entry.js.map → p-154958ba.entry.js.map} +0 -0
- /package/dist/design-system/{p-826c6517.entry.js.map → p-2285c061.entry.js.map} +0 -0
- /package/dist/design-system/{p-d4b5575e.entry.js.map → p-267985b3.entry.js.map} +0 -0
- /package/dist/design-system/{p-7e8db11c.entry.js.map → p-328d7e6c.entry.js.map} +0 -0
- /package/dist/design-system/{p-8734ded6.entry.js.map → p-45bb29cf.entry.js.map} +0 -0
- /package/dist/design-system/{p-871c8d66.entry.js.map → p-6d81e6f8.entry.js.map} +0 -0
- /package/dist/design-system/{p-f9d01bdb.entry.js.map → p-74c0eee4.entry.js.map} +0 -0
- /package/dist/design-system/{p-3574f319.entry.js.map → p-8d1a2a13.entry.js.map} +0 -0
- /package/dist/design-system/{p-4386db36.entry.js.map → p-bea456ad.entry.js.map} +0 -0
- /package/dist/design-system/{p-ce8fe1fd.entry.js.map → p-d7fe0919.entry.js.map} +0 -0
- /package/dist/design-system/{p-0d776157.entry.js.map → p-dc6681a7.entry.js.map} +0 -0
- /package/dist/design-system/{p-d4e043c5.entry.js.map → p-fb4d628a.entry.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h, H as Host, F as Fragment } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h, H as Host, F as Fragment, d as readTask } from './index-ClyGLKUd.js';
|
|
2
2
|
import { r as resolveColor } from './resolveColor-CswQ9y2Q.js';
|
|
3
3
|
import { B as BaseDropdownEvent, S as SelectKeyboardNavigation } from './select-keyboard-navigation-C2JaR3A6.js';
|
|
4
|
-
import { T as TooltipArrow } from './tooltipArrow-
|
|
4
|
+
import { T as TooltipArrow } from './tooltipArrow-BwO7_hdW.js';
|
|
5
5
|
import './color-CgyTlXBV.js';
|
|
6
6
|
|
|
7
7
|
const sdButtonCss = "sd-button{display:inline-block;width:fit-content;height:fit-content}.sd-button{text-decoration:none;cursor:pointer;border-radius:4px;transition:all 0.2s ease-in-out;position:relative;overflow:hidden;white-space:nowrap;-webkit-user-select:none;user-select:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center}.sd-button--xs{padding:0 8px;font-size:12px;font-weight:500;line-height:20px;min-height:24px}.sd-button--sm{padding:0 12px;font-size:12px;font-weight:500;line-height:20px;min-height:28px}.sd-button--md{padding:0 20px;font-size:16px;font-weight:500;line-height:26px;min-height:34px}.sd-button--lg{padding:0 28px;font-size:18px;font-weight:500;line-height:30px;min-height:62px}.sd-button--primary{background-color:var(--button-color);color:white;transition:filter 0.2s ease}.sd-button--primary::before{content:\"\";position:absolute;inset:0;background:#000000;opacity:0;transition:opacity 0.2s ease;z-index:0}.sd-button--primary:hover:not(.sd-button--disabled):not(.sd-button--loading)::before{opacity:0.25}.sd-button--outline{background:white;border:1px solid var(--button-color);color:var(--button-color)}.sd-button--outline::before{content:\"\";position:absolute;inset:0;background:var(--button-color);opacity:0;transition:opacity 0.2s ease;z-index:0}.sd-button--outline:hover:not(.sd-button--disabled):not(.sd-button--loading)::before{opacity:0.15}.sd-button--outline .sd-button__content{position:relative;z-index:1}.sd-button--ghost{background-color:transparent;color:var(--button-color);border-color:transparent}.sd-button--ghost::before{content:\"\";position:absolute;inset:0;background:var(--button-color);opacity:0;transition:opacity 0.2s ease;z-index:0}.sd-button--ghost:hover:not(.sd-button--disabled):not(.sd-button--loading)::before{opacity:0.15}.sd-button--ghost .sd-button__content{position:relative;z-index:1}.sd-button--disabled{border:1px solid #cccccc;background:#e1e1e1;color:#888888;cursor:not-allowed !important}.sd-button--icon-only{padding:0;width:fit-content;height:fit-content;aspect-ratio:1/1}.sd-button--no-hover:hover::before{opacity:0 !important}.sd-button .sd-button__content{display:inline-flex;align-items:center;justify-content:center;gap:4px;z-index:1;font-weight:500}";
|
|
@@ -2155,7 +2155,7 @@ const SdIcon = class {
|
|
|
2155
2155
|
}
|
|
2156
2156
|
render() {
|
|
2157
2157
|
const IconComponent = Icons[this.name]?.[this.size];
|
|
2158
|
-
return (h("i", { key: '
|
|
2158
|
+
return (h("i", { key: '856cad8bb2373b0d86734443144f79770c0715ec', class: this.getIconClasses(), style: this.iconStyle }, h(IconComponent, { key: 'd2a06ebbda1317cb72fec996b3bf3008ba171070', color: this.resolvedColor })));
|
|
2159
2159
|
}
|
|
2160
2160
|
};
|
|
2161
2161
|
SdIcon.style = sdIconCss;
|
|
@@ -2260,11 +2260,11 @@ const SdInput = class {
|
|
|
2260
2260
|
'--input-width': typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
2261
2261
|
}
|
|
2262
2262
|
: {};
|
|
2263
|
-
return (h(Host, { key: '
|
|
2263
|
+
return (h(Host, { key: '0fc9bec4559137ede7daa7f2da5df00595991d5a', style: inputWidth }, this.label && h("div", { key: '3fd4e7d08aca431d7743ec4249a221c77f2fefd1', class: "sd-input__label" }, this.label), h("label", { key: 'bc80c41ffcb1312261b1139dcd0c390db32932df', class: {
|
|
2264
2264
|
'sd-input': true,
|
|
2265
2265
|
[this.getInputStatus()]: true,
|
|
2266
2266
|
'sd-input--barcode': !!this.barcode,
|
|
2267
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("slot", { key: '
|
|
2267
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("slot", { key: 'b1df6c52c2dc92adde26cd535b008d35bc1c73d2', name: "prefix" }), h("input", { key: '5c02cca10b415521d569151c3b05cd9b2ae4b9b7', 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: 'f85912a8f17712d0a4950a68d10d885556a1de44', name: "suffix" }), this.clearable && this.internalValue && (h("sd-icon", { key: '3087e7d22f06e2b29d17b37d2e95bdcbcc511bd4', name: "close", color: "#888", class: "sd-input__clear-icon", onClick: () => {
|
|
2268
2268
|
this.internalValue = '';
|
|
2269
2269
|
this.sdChange?.emit(this.internalValue);
|
|
2270
2270
|
this.sdInput?.emit(this.internalValue);
|
|
@@ -2284,7 +2284,7 @@ const SdLoadingSpinner = class {
|
|
|
2284
2284
|
registerInstance(this, hostRef);
|
|
2285
2285
|
}
|
|
2286
2286
|
render() {
|
|
2287
|
-
return (h(Host, { key: '
|
|
2287
|
+
return (h(Host, { key: 'd064701b25e190fc5b7feefb542cbc7d30afc3f3' }, h("svg", { key: 'ec37a9ebea3e5b48817c687fae543186bb3cf29a', class: "sd-loading-spinner text-positive", width: "72px", height: "72px", viewBox: "25 25 50 50" }, h("circle", { key: '0b61caa65955019ddb08ed52a51718cf3f55a6e3', class: "path", cx: "50", cy: "50", r: "20", fill: "none", stroke: "currentColor", "stroke-width": "5", "stroke-miterlimit": "10" }))));
|
|
2288
2288
|
}
|
|
2289
2289
|
};
|
|
2290
2290
|
SdLoadingSpinner.style = sdLoadingSpinnerCss;
|
|
@@ -2363,12 +2363,12 @@ const SdPagination = class {
|
|
|
2363
2363
|
}
|
|
2364
2364
|
}
|
|
2365
2365
|
render() {
|
|
2366
|
-
return (h("div", { key: '
|
|
2366
|
+
return (h("div", { key: 'c8c241301297c8281d02643f5a31c97f77706fff', class: this.paginationClasses }, h("div", { key: '12ca5b852a648b168928934729d2215f6648bcc1', 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: {
|
|
2367
2367
|
'pagination-btn': true,
|
|
2368
2368
|
'pagination-btn--selected': this.currentPage === n,
|
|
2369
2369
|
}, disabled: this.currentPage === n, style: {
|
|
2370
2370
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
2371
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: '
|
|
2371
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: '0ff537ba6e5985be1e055f5b9eab5dd86dd11624', class: "append-btns" }, this.renderNextButtons())));
|
|
2372
2372
|
}
|
|
2373
2373
|
};
|
|
2374
2374
|
SdPagination.style = sdPaginationCss;
|
|
@@ -2491,7 +2491,7 @@ const SdPortal = class {
|
|
|
2491
2491
|
this.sdClose.emit();
|
|
2492
2492
|
}
|
|
2493
2493
|
render() {
|
|
2494
|
-
return h("slot", { key: '
|
|
2494
|
+
return h("slot", { key: '2f6a1908864a2b5bbe86127fbf41b6b44a599666' });
|
|
2495
2495
|
}
|
|
2496
2496
|
};
|
|
2497
2497
|
|
|
@@ -2774,7 +2774,7 @@ const SdSelectOption = class {
|
|
|
2774
2774
|
}
|
|
2775
2775
|
};
|
|
2776
2776
|
render() {
|
|
2777
|
-
return (h(Host, { key: '
|
|
2777
|
+
return (h(Host, { key: '70eafe63e44409063337d0a43846c3be869086df' }, h("div", { key: '21cafb06d87968387f9b9ec91fdd09643cded1ca', class: {
|
|
2778
2778
|
'sd-select__option': true,
|
|
2779
2779
|
'sd-select__option--selected': this.isSelected,
|
|
2780
2780
|
'sd-select__option--disabled': !!this.option.disabled,
|
|
@@ -2796,7 +2796,7 @@ const SdSelectOption = class {
|
|
|
2796
2796
|
};
|
|
2797
2797
|
SdSelectOption.style = sdSelectOptionCss;
|
|
2798
2798
|
|
|
2799
|
-
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:var(--table-container-height, auto);position:relative;border:1px solid #e1e1e1;border-radius:8px;font-size:12px;overflow:hidden;background:#ffffff}.sd-table__wrapper .sd-table__container .sd-table__middle{overflow:auto;will-change:scroll-position}.sd-table__wrapper .sd-table__container .sd-table__middle--scrollable{height:var(--table-container-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%;border-collapse:separate;border-spacing:0;table-layout:fixed}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody.sd-table-tbody--virtual-scroll{position:relative;height:var(--total-virtual-height, --table-container-height, auto)}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody.sd-table-tbody--virtual-scroll tr:not([aria-hidden=true]){width:100%}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody.sd-table-tbody--virtual-scroll tr[aria-hidden=true]{padding:0;border:none}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody.sd-table-tbody--virtual-scroll tr[aria-hidden=true]:not(.sd-table__virtual-row-spacer) td{display:none}.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
|
|
2799
|
+
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:var(--table-container-height, auto);position:relative;border:1px solid #e1e1e1;border-radius:8px;font-size:12px;overflow:hidden;background:#ffffff}.sd-table__wrapper .sd-table__container .sd-table__middle{overflow:auto;will-change:scroll-position;min-height:var(--table-container-height, auto)}.sd-table__wrapper .sd-table__container .sd-table__middle--scrollable{height:var(--table-container-height, auto)}.sd-table__wrapper .sd-table__container .sd-table__middle--loading{overflow:hidden !important;pointer-events:none}.sd-table__wrapper .sd-table__container .sd-table__middle--loading__spinner{position:absolute;top:0;left:0;width:var(--table-width, 100%);height:var(--table-container-height, 100%);min-height:var(--table-container-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{background-color:white;display:table;width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody.sd-table-tbody--virtual-scroll{position:relative;height:var(--total-virtual-height, --table-container-height, auto)}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody.sd-table-tbody--virtual-scroll tr:not([aria-hidden=true]){width:100%}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody.sd-table-tbody--virtual-scroll tr[aria-hidden=true]{padding:0;border:none}.sd-table__wrapper .sd-table__container .sd-table__middle .sd-table tbody.sd-table-tbody--virtual-scroll tr[aria-hidden=true]:not(.sd-table__virtual-row-spacer) td{display:none}.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 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__container .sd-table__bottom .sd-table__no-data{padding-top:15%;color:#888888}.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%)}.sd-table__wrapper .sd-table__virtual-spacer,.sd-table__wrapper .sd-table__virtual-row-spacer{padding:0 !important}.sd-table__wrapper .sd-table__virtual-spacer td,.sd-table__wrapper .sd-table__virtual-row-spacer td{padding:0 !important;border:none}.sd-table__wrapper .sd-table__virtual-spacer .sd-table__skeleton,.sd-table__wrapper .sd-table__virtual-row-spacer .sd-table__skeleton{width:100%;height:100%;background-image:repeating-linear-gradient(0deg, rgba(246, 246, 246, 0.3) 0px, rgba(225, 225, 225, 0.5) calc(var(--row-height, 44px) / 2), rgba(246, 246, 246, 0.3) var(--row-height, 44px));background-size:100% 200%;animation:skeleton-loading 1.5s ease-in-out infinite;position:relative}.sd-table__wrapper .sd-table__virtual-spacer .sd-table__skeleton::before,.sd-table__wrapper .sd-table__virtual-row-spacer .sd-table__skeleton::before{content:\"\";position:absolute;top:0;left:0;right:0;bottom:0;background-image:repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--row-height, 44px) - 1px), #e1e1e1 calc(var(--row-height, 44px) - 1px), #e1e1e1 var(--row-height, 44px));pointer-events:none}.sd-table__wrapper .sd-table__skeleton-cell{width:100%;height:20px;background:linear-gradient(90deg, rgba(246, 246, 246, 0.3) 0%, rgba(225, 225, 225, 0.5) 50%, rgba(246, 246, 246, 0.3) 100%);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite;border-radius:4px}@keyframes skeleton-loading{0%{background-position:0% 0%}50%{background-position:100% 100%}100%{background-position:0% 0%}}";
|
|
2800
2800
|
|
|
2801
2801
|
const SdTable = class {
|
|
2802
2802
|
constructor(hostRef) {
|
|
@@ -2855,6 +2855,7 @@ const SdTable = class {
|
|
|
2855
2855
|
virtualStartColIdx = 0;
|
|
2856
2856
|
virtualEndColIdx = 0;
|
|
2857
2857
|
scrollLeftPosition = 0;
|
|
2858
|
+
// 가상 스크롤 Raf(Request Animation Frame) 관리
|
|
2858
2859
|
scrollRequestAnimationFrame = null;
|
|
2859
2860
|
scrollContainer = null;
|
|
2860
2861
|
rafScheduled = false;
|
|
@@ -2862,19 +2863,39 @@ const SdTable = class {
|
|
|
2862
2863
|
vertical: false,
|
|
2863
2864
|
horizontal: false,
|
|
2864
2865
|
};
|
|
2866
|
+
// 상태 캐시값
|
|
2867
|
+
cachedVisibleColumns = null;
|
|
2868
|
+
lastColumnsRef = null;
|
|
2869
|
+
cachedVirtualRows = null;
|
|
2870
|
+
cachedVirtualIndexKey = '';
|
|
2871
|
+
cachedColumnOrder = null;
|
|
2872
|
+
lastColumnOrderKey = '';
|
|
2873
|
+
// DOM 측정 캐시값
|
|
2874
|
+
cachedContainerHeight = 0;
|
|
2875
|
+
cachedContainerWidth = 0;
|
|
2876
|
+
// 스타일 캐시
|
|
2877
|
+
stickyStyleCache = new Map();
|
|
2878
|
+
// isAllChecked 캐시
|
|
2879
|
+
cachedIsAllChecked;
|
|
2880
|
+
lastSelectionKey = '';
|
|
2881
|
+
onScroll;
|
|
2865
2882
|
handleColumnsChange(newCols) {
|
|
2866
2883
|
this.columnWidths = newCols.map(c => parseInt(c.width || '120', 10));
|
|
2884
|
+
this.cleanUpVirtualCache();
|
|
2885
|
+
this.stickyStyleCache.clear();
|
|
2867
2886
|
if (this.useVirtualScroll.horizontal) {
|
|
2868
2887
|
this.scheduleUpdate('horizontal');
|
|
2869
2888
|
}
|
|
2870
2889
|
}
|
|
2871
2890
|
handleColumnWidthsChange() {
|
|
2891
|
+
this.stickyStyleCache.clear();
|
|
2872
2892
|
if (this.useVirtualScroll.horizontal) {
|
|
2873
2893
|
this.scheduleUpdate('horizontal');
|
|
2874
2894
|
}
|
|
2875
2895
|
}
|
|
2876
2896
|
handleRowsChange(newRows) {
|
|
2877
2897
|
this.innerRows = [...newRows];
|
|
2898
|
+
this.cleanUpVirtualCache();
|
|
2878
2899
|
if (this.useVirtualScroll.vertical) {
|
|
2879
2900
|
this.scheduleUpdate('vertical');
|
|
2880
2901
|
}
|
|
@@ -2882,11 +2903,19 @@ const SdTable = class {
|
|
|
2882
2903
|
handleSelectedChange(newSelected) {
|
|
2883
2904
|
this.innerSelected = new Set(newSelected);
|
|
2884
2905
|
}
|
|
2906
|
+
cleanUpVirtualCache() {
|
|
2907
|
+
this.cachedVisibleColumns = null;
|
|
2908
|
+
this.lastColumnsRef = null;
|
|
2909
|
+
this.cachedVirtualRows = null;
|
|
2910
|
+
this.cachedVirtualIndexKey = '';
|
|
2911
|
+
this.cachedColumnOrder = null;
|
|
2912
|
+
this.lastColumnOrderKey = '';
|
|
2913
|
+
}
|
|
2885
2914
|
handlePaginationChange(newVal) {
|
|
2886
2915
|
if (newVal?.page && newVal.page !== this.currentPage) {
|
|
2887
2916
|
this.currentPage = newVal.page;
|
|
2888
2917
|
if (this.useVirtualScroll.vertical && this.scrollContainer) {
|
|
2889
|
-
this.scrollContainer.
|
|
2918
|
+
this.scrollContainer.scrollTo({ top: 0, behavior: 'instant' });
|
|
2890
2919
|
this.scrollTopPosition = 0;
|
|
2891
2920
|
this.calculateVisibleRange();
|
|
2892
2921
|
}
|
|
@@ -2901,66 +2930,120 @@ const SdTable = class {
|
|
|
2901
2930
|
}
|
|
2902
2931
|
}
|
|
2903
2932
|
componentDidLoad() {
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
cancelAnimationFrame(this.scrollRequestAnimationFrame);
|
|
2933
|
+
readTask(() => {
|
|
2934
|
+
const middle = this.el.querySelector('.sd-table__middle');
|
|
2935
|
+
if (!middle)
|
|
2936
|
+
return;
|
|
2937
|
+
this.onScroll = () => {
|
|
2938
|
+
const scrollLeft = middle.scrollLeft;
|
|
2939
|
+
const scrollWidth = middle.scrollWidth;
|
|
2940
|
+
const clientWidth = middle.clientWidth;
|
|
2941
|
+
const scrollTop = middle.scrollTop;
|
|
2942
|
+
const verticalChanged = this.useVirtualScroll.vertical && this.scrollTopPosition !== scrollTop;
|
|
2943
|
+
const horizontalChanged = this.useVirtualScroll.horizontal && this.scrollLeftPosition !== scrollLeft;
|
|
2944
|
+
const newScrolledLeft = scrollLeft > 0;
|
|
2945
|
+
const newScrolledRight = scrollLeft + clientWidth < scrollWidth;
|
|
2946
|
+
if (this.scrolledLeft !== newScrolledLeft || this.scrolledRight !== newScrolledRight) {
|
|
2947
|
+
this.scrolledLeft = newScrolledLeft;
|
|
2948
|
+
this.scrolledRight = newScrolledRight;
|
|
2921
2949
|
}
|
|
2922
|
-
|
|
2923
|
-
if (
|
|
2924
|
-
this.
|
|
2925
|
-
this.calculateVisibleRange();
|
|
2926
|
-
}
|
|
2927
|
-
if (horizontalChanged) {
|
|
2928
|
-
this.scrollLeftPosition = scrollLeft;
|
|
2929
|
-
this.calculateVisibleColumnRange();
|
|
2950
|
+
if (verticalChanged || horizontalChanged) {
|
|
2951
|
+
if (this.scrollRequestAnimationFrame !== null) {
|
|
2952
|
+
cancelAnimationFrame(this.scrollRequestAnimationFrame);
|
|
2930
2953
|
}
|
|
2931
|
-
this.scrollRequestAnimationFrame =
|
|
2932
|
-
|
|
2933
|
-
|
|
2954
|
+
this.scrollRequestAnimationFrame = requestAnimationFrame(() => {
|
|
2955
|
+
if (verticalChanged) {
|
|
2956
|
+
this.scrollTopPosition = scrollTop;
|
|
2957
|
+
this.calculateVisibleRange();
|
|
2958
|
+
}
|
|
2959
|
+
if (horizontalChanged) {
|
|
2960
|
+
this.scrollLeftPosition = scrollLeft;
|
|
2961
|
+
this.calculateVisibleColumnRange();
|
|
2962
|
+
}
|
|
2963
|
+
this.scrollRequestAnimationFrame = null;
|
|
2964
|
+
});
|
|
2965
|
+
}
|
|
2966
|
+
};
|
|
2967
|
+
this.scrollContainer = middle;
|
|
2968
|
+
requestAnimationFrame(() => {
|
|
2969
|
+
if (this.scrollContainer && this.onScroll) {
|
|
2970
|
+
this.cachedContainerHeight = this.scrollContainer.clientHeight;
|
|
2971
|
+
this.cachedContainerWidth = this.scrollContainer.clientWidth;
|
|
2972
|
+
middle.addEventListener('scroll', this.onScroll, { passive: true });
|
|
2973
|
+
this.onScroll();
|
|
2974
|
+
}
|
|
2975
|
+
});
|
|
2976
|
+
});
|
|
2977
|
+
}
|
|
2978
|
+
changePage(page) {
|
|
2979
|
+
if (!this.useInternalPagination) {
|
|
2980
|
+
this.sdPageChange.emit(page);
|
|
2981
|
+
return;
|
|
2982
|
+
}
|
|
2983
|
+
this.currentPage = page;
|
|
2984
|
+
this.sdPageChange.emit(this.currentPage);
|
|
2985
|
+
}
|
|
2986
|
+
changeRowsPerPage(perPage) {
|
|
2987
|
+
const changedRowsPerPage = perPage ? Number(perPage) : 0;
|
|
2988
|
+
if (!this.useInternalPagination) {
|
|
2989
|
+
this.sdRowsPerPageChange.emit(changedRowsPerPage);
|
|
2990
|
+
return;
|
|
2991
|
+
}
|
|
2992
|
+
const newRowsPerPage = Number(perPage || 0);
|
|
2993
|
+
let newLastPage = Math.max(1, Math.ceil(this.innerRows.length / newRowsPerPage));
|
|
2994
|
+
let newCurrentPage = this.currentPage;
|
|
2995
|
+
if (newCurrentPage > newLastPage) {
|
|
2996
|
+
newCurrentPage = newLastPage;
|
|
2997
|
+
}
|
|
2998
|
+
this.pagination = {
|
|
2999
|
+
page: newCurrentPage,
|
|
3000
|
+
rowsPerPage: newRowsPerPage,
|
|
3001
|
+
lastPage: newLastPage,
|
|
2934
3002
|
};
|
|
2935
|
-
|
|
2936
|
-
|
|
3003
|
+
this.currentPage = newCurrentPage;
|
|
3004
|
+
this.sdRowsPerPageChange.emit(changedRowsPerPage);
|
|
2937
3005
|
}
|
|
2938
3006
|
disconnectedCallback() {
|
|
3007
|
+
if (this.scrollContainer && this.onScroll) {
|
|
3008
|
+
this.scrollContainer.removeEventListener('scroll', this.onScroll);
|
|
3009
|
+
}
|
|
2939
3010
|
if (this.scrollRequestAnimationFrame !== null) {
|
|
2940
3011
|
cancelAnimationFrame(this.scrollRequestAnimationFrame);
|
|
2941
3012
|
}
|
|
2942
3013
|
}
|
|
2943
3014
|
// ----- Derived getters -----
|
|
2944
3015
|
get visibleColumns() {
|
|
2945
|
-
|
|
3016
|
+
if (this.cachedVisibleColumns && this.lastColumnsRef === this.columns) {
|
|
3017
|
+
return this.cachedVisibleColumns;
|
|
3018
|
+
}
|
|
3019
|
+
this.lastColumnsRef = this.columns;
|
|
3020
|
+
this.cachedVisibleColumns = this.columns.filter(col => col.visible !== false);
|
|
3021
|
+
return this.cachedVisibleColumns;
|
|
2946
3022
|
}
|
|
2947
3023
|
get paginatedRows() {
|
|
2948
3024
|
if (!this.pagination || !this.useInternalPagination)
|
|
2949
3025
|
return this.innerRows;
|
|
2950
3026
|
const { rowsPerPage = this.rows.length } = this.pagination || {};
|
|
2951
|
-
|
|
2952
|
-
return result;
|
|
3027
|
+
return this.innerRows.slice((this.currentPage - 1) * rowsPerPage, this.currentPage * rowsPerPage);
|
|
2953
3028
|
}
|
|
2954
3029
|
get virtualRows() {
|
|
3030
|
+
const newVirtualIndexKey = `${this.virtualStartIndex}-${this.virtualEndIndex}`;
|
|
3031
|
+
if (this.cachedVirtualRows && this.cachedVirtualIndexKey === newVirtualIndexKey) {
|
|
3032
|
+
return this.cachedVirtualRows;
|
|
3033
|
+
}
|
|
3034
|
+
this.cachedVirtualIndexKey = newVirtualIndexKey;
|
|
2955
3035
|
if (!this.useVirtualScroll.vertical) {
|
|
2956
|
-
|
|
3036
|
+
this.cachedVirtualRows = this.paginatedRows.map((row, idx) => ({ row, actualIndex: idx }));
|
|
3037
|
+
}
|
|
3038
|
+
else {
|
|
3039
|
+
this.cachedVirtualRows = this.paginatedRows
|
|
3040
|
+
.slice(this.virtualStartIndex, this.virtualEndIndex + 1)
|
|
3041
|
+
.map((row, relativeIdx) => ({
|
|
3042
|
+
row,
|
|
3043
|
+
actualIndex: this.virtualStartIndex + relativeIdx,
|
|
3044
|
+
}));
|
|
2957
3045
|
}
|
|
2958
|
-
return this.
|
|
2959
|
-
.slice(this.virtualStartIndex, this.virtualEndIndex + 1)
|
|
2960
|
-
.map((row, relativeIdx) => ({
|
|
2961
|
-
row,
|
|
2962
|
-
actualIndex: this.virtualStartIndex + relativeIdx,
|
|
2963
|
-
}));
|
|
3046
|
+
return this.cachedVirtualRows;
|
|
2964
3047
|
}
|
|
2965
3048
|
get topSpacerHeight() {
|
|
2966
3049
|
if (!this.useVirtualScroll.vertical || this.virtualStartIndex === 0)
|
|
@@ -3033,6 +3116,7 @@ const SdTable = class {
|
|
|
3033
3116
|
if (newSelected.length === selectedArray.length)
|
|
3034
3117
|
return;
|
|
3035
3118
|
this.innerSelected = new Set(newSelected);
|
|
3119
|
+
this.cachedIsAllChecked = undefined;
|
|
3036
3120
|
this.sdSelectChange.emit(Array.from(this.innerSelected));
|
|
3037
3121
|
}
|
|
3038
3122
|
toggleSelectAll(checked) {
|
|
@@ -3044,16 +3128,29 @@ const SdTable = class {
|
|
|
3044
3128
|
const currentPageKeys = this.paginatedRows.map(r => r[this.rowKey]);
|
|
3045
3129
|
this.innerSelected = new Set([...this.innerSelected].filter(r => !currentPageKeys.includes(r[this.rowKey])));
|
|
3046
3130
|
}
|
|
3131
|
+
this.cachedIsAllChecked = undefined;
|
|
3047
3132
|
this.sdSelectChange.emit(Array.from(this.innerSelected));
|
|
3048
3133
|
}
|
|
3049
3134
|
get isAllChecked() {
|
|
3135
|
+
const selectionKey = `${this.paginatedRows.length}-${this.innerSelected.size}`;
|
|
3136
|
+
if (this.cachedIsAllChecked !== undefined && this.lastSelectionKey === selectionKey) {
|
|
3137
|
+
return this.cachedIsAllChecked;
|
|
3138
|
+
}
|
|
3050
3139
|
const total = this.paginatedRows.length;
|
|
3051
3140
|
const selectedCount = this.paginatedRows.filter(row => Array.from(this.innerSelected).some(selectedRow => selectedRow[this.rowKey] === row[this.rowKey])).length;
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3141
|
+
let result;
|
|
3142
|
+
if (selectedCount === 0) {
|
|
3143
|
+
result = false; // 아무것도 안 선택됨
|
|
3144
|
+
}
|
|
3145
|
+
else if (selectedCount === total) {
|
|
3146
|
+
result = true; // 전부 선택됨
|
|
3147
|
+
}
|
|
3148
|
+
else {
|
|
3149
|
+
result = null; // 일부만 선택됨
|
|
3150
|
+
}
|
|
3151
|
+
this.cachedIsAllChecked = result;
|
|
3152
|
+
this.lastSelectionKey = selectionKey;
|
|
3153
|
+
return result;
|
|
3057
3154
|
}
|
|
3058
3155
|
// RAF 통합 관리
|
|
3059
3156
|
scheduleUpdate(type) {
|
|
@@ -3079,13 +3176,22 @@ const SdTable = class {
|
|
|
3079
3176
|
return;
|
|
3080
3177
|
}
|
|
3081
3178
|
const scrollTop = this.scrollTopPosition;
|
|
3082
|
-
|
|
3179
|
+
let containerHeight = this.cachedContainerHeight;
|
|
3180
|
+
if (containerHeight === 0 && this.scrollContainer) {
|
|
3181
|
+
containerHeight = this.scrollContainer.clientHeight;
|
|
3182
|
+
this.cachedContainerHeight = containerHeight;
|
|
3183
|
+
}
|
|
3184
|
+
const bufferSize = this.virtualBufferSize.vertical || 5;
|
|
3083
3185
|
const startIndex = Math.floor(scrollTop / this.virtualRowHeight);
|
|
3084
3186
|
const visibleCount = Math.ceil(containerHeight / this.virtualRowHeight);
|
|
3085
|
-
const endIndex = startIndex + visibleCount;
|
|
3086
|
-
const
|
|
3087
|
-
|
|
3088
|
-
|
|
3187
|
+
const endIndex = startIndex + visibleCount - 1;
|
|
3188
|
+
const newStartIndex = Math.max(0, startIndex - bufferSize);
|
|
3189
|
+
const newEndIndex = Math.min(this.paginatedRows.length - 1, endIndex + bufferSize);
|
|
3190
|
+
// 실제로 변경된 경우에만 상태 업데이트
|
|
3191
|
+
if (this.virtualStartIndex !== newStartIndex || this.virtualEndIndex !== newEndIndex) {
|
|
3192
|
+
this.virtualStartIndex = newStartIndex;
|
|
3193
|
+
this.virtualEndIndex = newEndIndex;
|
|
3194
|
+
}
|
|
3089
3195
|
}
|
|
3090
3196
|
// 가로 가상 스크롤 렌더링 계산
|
|
3091
3197
|
calculateVisibleColumnRange() {
|
|
@@ -3095,7 +3201,12 @@ const SdTable = class {
|
|
|
3095
3201
|
return;
|
|
3096
3202
|
}
|
|
3097
3203
|
const scrollLeft = this.scrollLeftPosition;
|
|
3098
|
-
|
|
3204
|
+
// 캐시된 값 사용, 없으면 측정 후 캐시
|
|
3205
|
+
let containerWidth = this.cachedContainerWidth;
|
|
3206
|
+
if (containerWidth === 0 && this.scrollContainer) {
|
|
3207
|
+
containerWidth = this.scrollContainer.clientWidth;
|
|
3208
|
+
this.cachedContainerWidth = containerWidth;
|
|
3209
|
+
}
|
|
3099
3210
|
const stickyLeftCount = this.stickyColumn.left || 0;
|
|
3100
3211
|
const stickyRightCount = this.stickyColumn.right || 0;
|
|
3101
3212
|
// 가상 스크롤 컬럼 - sticky column 제외
|
|
@@ -3135,22 +3246,34 @@ const SdTable = class {
|
|
|
3135
3246
|
}
|
|
3136
3247
|
}
|
|
3137
3248
|
const bufferSize = this.virtualBufferSize.horizontal || 5;
|
|
3138
|
-
|
|
3139
|
-
|
|
3249
|
+
const newStartColIdx = Math.max(0, startIdx - bufferSize);
|
|
3250
|
+
const newEndColIdx = Math.min(virtualColumns.length - 1, endIdx + bufferSize);
|
|
3251
|
+
// 실제로 변경된 경우에만 상태 업데이트
|
|
3252
|
+
if (this.virtualStartColIdx !== newStartColIdx || this.virtualEndColIdx !== newEndColIdx) {
|
|
3253
|
+
this.virtualStartColIdx = newStartColIdx;
|
|
3254
|
+
this.virtualEndColIdx = newEndColIdx;
|
|
3255
|
+
}
|
|
3140
3256
|
}
|
|
3141
3257
|
// ----- Helpers -----
|
|
3142
3258
|
getStickyStyle(colIdx) {
|
|
3259
|
+
// 캐시된 스타일이 있으면 반환
|
|
3260
|
+
if (this.stickyStyleCache.has(colIdx)) {
|
|
3261
|
+
return this.stickyStyleCache.get(colIdx);
|
|
3262
|
+
}
|
|
3143
3263
|
const leftOffset = this.columnWidths.slice(0, colIdx).reduce((a, b) => a + b, 0) + (this.selectable ? 52 : 0);
|
|
3144
3264
|
const rightOffset = this.columnWidths
|
|
3145
3265
|
.filter((_, i) => i >= this.visibleColumns.length - (this.stickyColumn.right || 0) && i > colIdx)
|
|
3146
3266
|
.reduce((a, b) => a + b, 0);
|
|
3147
|
-
|
|
3267
|
+
const style = {
|
|
3148
3268
|
'--sticky-left-offset': `${leftOffset}px`,
|
|
3149
3269
|
'--sticky-right-offset': `${rightOffset}px`,
|
|
3150
3270
|
'width': `${this.columnWidths[colIdx]}px`,
|
|
3151
3271
|
'minWidth': `${this.columnWidths[colIdx]}px`,
|
|
3152
3272
|
'maxWidth': `${this.columnWidths[colIdx]}px`,
|
|
3153
3273
|
};
|
|
3274
|
+
// 스타일 캐시에 저장
|
|
3275
|
+
this.stickyStyleCache.set(colIdx, style);
|
|
3276
|
+
return style;
|
|
3154
3277
|
}
|
|
3155
3278
|
handleResize(index, event) {
|
|
3156
3279
|
// SSR 환경 체크
|
|
@@ -3180,6 +3303,10 @@ const SdTable = class {
|
|
|
3180
3303
|
return format ? format(value, row) : value;
|
|
3181
3304
|
}
|
|
3182
3305
|
getColumnRenderedInOrder() {
|
|
3306
|
+
const orderKey = `${this.visibleColumns.length}-${this.virtualStartColIdx}-${this.virtualEndColIdx}`;
|
|
3307
|
+
if (this.cachedColumnOrder && this.lastColumnOrderKey === orderKey) {
|
|
3308
|
+
return this.cachedColumnOrder;
|
|
3309
|
+
}
|
|
3183
3310
|
const stickyLeftCount = this.stickyColumn.left || 0;
|
|
3184
3311
|
const stickyRightCount = this.stickyColumn.right || 0;
|
|
3185
3312
|
// Sticky left 컬럼들
|
|
@@ -3190,13 +3317,15 @@ const SdTable = class {
|
|
|
3190
3317
|
.slice(stickyLeftCount, this.visibleColumns.length - stickyRightCount)
|
|
3191
3318
|
.slice(this.virtualStartColIdx, this.virtualEndColIdx + 1)
|
|
3192
3319
|
: this.visibleColumns.slice(stickyLeftCount, this.visibleColumns.length - stickyRightCount);
|
|
3193
|
-
|
|
3320
|
+
this.cachedColumnOrder = {
|
|
3194
3321
|
stickyLeftCount,
|
|
3195
3322
|
stickyRightCount,
|
|
3196
3323
|
stickyLeftCols,
|
|
3197
3324
|
middleCols,
|
|
3198
3325
|
stickyRightCols,
|
|
3199
3326
|
};
|
|
3327
|
+
this.lastColumnOrderKey = orderKey;
|
|
3328
|
+
return this.cachedColumnOrder;
|
|
3200
3329
|
}
|
|
3201
3330
|
// ----- Render -----
|
|
3202
3331
|
renderHead() {
|
|
@@ -3234,7 +3363,7 @@ const SdTable = class {
|
|
|
3234
3363
|
}))));
|
|
3235
3364
|
}
|
|
3236
3365
|
renderBody() {
|
|
3237
|
-
return (h("tbody", { ...(!this.paginatedRows.length && { part: 'tbody-empty' }), class: `sd-table-tbody ${this.useVirtualScroll.vertical ? 'sd-table-tbody--virtual-scroll' : ''}`, style: { '--total-virtual-height': `${this.totalVirtualHeight}px` } }, this.
|
|
3366
|
+
return (h("tbody", { ...(!this.paginatedRows.length && { part: 'tbody-empty' }), class: `sd-table-tbody ${this.useVirtualScroll.vertical ? 'sd-table-tbody--virtual-scroll' : ''}`, style: { '--total-virtual-height': `${this.totalVirtualHeight}px` } }, this.useVirtualScroll.vertical && this.topSpacerHeight > 0 && this.renderSpacerRow('top'), this.paginatedRows.length > 0 &&
|
|
3238
3367
|
this.virtualRows.map(({ row, actualIndex }) => this.renderRow(row, actualIndex)), this.useVirtualScroll.vertical &&
|
|
3239
3368
|
this.bottomSpacerHeight > 0 &&
|
|
3240
3369
|
this.renderSpacerRow('bottom')));
|
|
@@ -3304,44 +3433,16 @@ const SdTable = class {
|
|
|
3304
3433
|
}, "aria-hidden": "true" }, h("div", { class: "sd-table__skeleton-cell" })));
|
|
3305
3434
|
}
|
|
3306
3435
|
render() {
|
|
3307
|
-
return (h(Host, { key: '
|
|
3436
|
+
return (h(Host, { key: '8c01d8c3b3428d0fccb37e337fd12412c7aee51a' }, h("div", { key: 'be41d64f4b9daaa1440f2a89e253ce487894758e', class: "sd-table__wrapper", style: {
|
|
3308
3437
|
'--table-width': this.width,
|
|
3309
3438
|
'--table-height': this.height,
|
|
3310
|
-
} }, h("div", { key: '
|
|
3439
|
+
} }, h("div", { key: '580c4ca69d5374585eeacc756561e5caf2ea6e29', class: "sd-table__container", style: {
|
|
3311
3440
|
'--table-container-height': `calc(${this.height} - ${this.pagination && this.innerRows.length > 0 ? 48 : 0}px)`,
|
|
3312
|
-
} }, h("div", { key: '
|
|
3441
|
+
} }, h("div", { key: '2832a6e9078923daeefa28512450950abfca0aad', class: {
|
|
3313
3442
|
'sd-table__middle': true,
|
|
3314
3443
|
'sd-table__middle--scrollable': this.paginatedRows.length > 0,
|
|
3315
3444
|
'sd-table__middle--loading': this.isLoading,
|
|
3316
|
-
} }, h("table", { key: '
|
|
3317
|
-
if (!this.useInternalPagination) {
|
|
3318
|
-
this.sdPageChange.emit(e.detail);
|
|
3319
|
-
}
|
|
3320
|
-
else {
|
|
3321
|
-
this.currentPage = e.detail;
|
|
3322
|
-
this.sdPageChange.emit(this.currentPage);
|
|
3323
|
-
}
|
|
3324
|
-
} }), this.useRowsPerPageSelect && (h("sd-select", { key: '3f65639b064a27993dc62a8e4a5dc86b16aec4f8', value: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", onSdChange: (e) => {
|
|
3325
|
-
const changedRowsPerPage = e.detail.value ? Number(e.detail.value) : 0;
|
|
3326
|
-
if (!this.useInternalPagination) {
|
|
3327
|
-
this.sdRowsPerPageChange.emit(changedRowsPerPage);
|
|
3328
|
-
}
|
|
3329
|
-
else {
|
|
3330
|
-
const newRowsPerPage = Number(e.detail.value || 0);
|
|
3331
|
-
let newLastPage = Math.max(1, Math.ceil(this.innerRows.length / newRowsPerPage));
|
|
3332
|
-
let newCurrentPage = this.currentPage;
|
|
3333
|
-
if (newCurrentPage > newLastPage) {
|
|
3334
|
-
newCurrentPage = newLastPage;
|
|
3335
|
-
}
|
|
3336
|
-
this.pagination = {
|
|
3337
|
-
page: newCurrentPage,
|
|
3338
|
-
rowsPerPage: newRowsPerPage,
|
|
3339
|
-
lastPage: newLastPage,
|
|
3340
|
-
};
|
|
3341
|
-
this.currentPage = newCurrentPage;
|
|
3342
|
-
this.sdRowsPerPageChange.emit(changedRowsPerPage);
|
|
3343
|
-
}
|
|
3344
|
-
} })))))));
|
|
3445
|
+
} }, this.isLoading && (h("div", { key: '696cc35d6d3c58dabf92aa49dbff9a7034a0ed64', class: "sd-table__middle--loading__spinner" }, h("sd-loading-spinner", { key: '8cbd272006b64c4a6e10c87c58313a0792358451' }))), h("table", { key: 'de78dba38361cfebe39f8c3cddb57a1c93861ff6', part: "table", class: this.sdTableClasses }, this.renderHead(), this.renderBody())), h("div", { key: '662407b29c2ea446d96553dd548bec11e8179185', class: "sd-table__bottom" }, !this.paginatedRows.length && (h("div", { key: '3a475142c5da9cc40f92b761923415893a1366fa', class: "sd-table__no-data" }, h("slot", { key: '49e90e85516b6656c7019b4b33a50f6b36d949a8', name: "no-data" }, this.noDataLabel))))), this.pagination && this.innerRows.length > 0 && (h("div", { key: '460a669cb3841fdc7745e4acb774729910890b42', class: "sd-table__pagination" }, h("sd-pagination", { key: '971f5e41f8df09f4455cdf41f969e5f47d2aac99', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (h("sd-select", { key: 'ed37b8efc95ae51bf4c903a5c7c5a068ec9bfcca', value: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", onSdChange: (e) => this.changeRowsPerPage(e.detail.value) })))))));
|
|
3345
3446
|
}
|
|
3346
3447
|
static get watchers() { return {
|
|
3347
3448
|
"columns": ["handleColumnsChange"],
|
|
@@ -3401,20 +3502,20 @@ const SdTooltip = class {
|
|
|
3401
3502
|
: {
|
|
3402
3503
|
onClick: () => (this.showTooltip = !this.showTooltip),
|
|
3403
3504
|
};
|
|
3404
|
-
return (h(Fragment, { key: '
|
|
3505
|
+
return (h(Fragment, { key: 'ca85f7063d836f7a33d893d262aea709e0db1d00' }, 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: 'ab8656db09fc630085a684ef124486551e33f910', parentRef: this.buttonEl, onSdClose: () => this.handleClose(), placement: this.placement }, h("div", { key: 'ccd2369218d5b4dcb23280760c584f214beea932', class: {
|
|
3405
3506
|
'sd-tooltip-menu': true,
|
|
3406
3507
|
[`sd-tooltip-menu--${this.type}`]: true,
|
|
3407
3508
|
[`sd-tooltip-menu--${this.placement}`]: true,
|
|
3408
3509
|
'sd-tooltip-menu--with-close': this.useClose,
|
|
3409
3510
|
[`bg-${SdTooltip.COLOR_OF_TYPE[this.type].background}`]: true,
|
|
3410
3511
|
[`text-${SdTooltip.COLOR_OF_TYPE[this.type].text}`]: true,
|
|
3411
|
-
} }, h("i", { key: '
|
|
3512
|
+
} }, h("i", { key: '077a1c19e4fa7a54a80dff168950ee0327240724', class: `sd-tooltip-menu__arrow sd-tooltip-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: '09d265c0412099b0bc64e6a5297011d7f4e74bb3', class: {
|
|
3412
3513
|
[`text-${SdTooltip.COLOR_OF_TYPE[this.type].background}`]: true,
|
|
3413
|
-
} })), h("div", { key: '
|
|
3514
|
+
} })), h("div", { key: '13a0d079cae19cf77c55b9aa3b8325dc1d4daf82', class: "sd-tooltip-menu__content", ref: el => {
|
|
3414
3515
|
if (el && this.slotContent && !el.hasChildNodes()) {
|
|
3415
3516
|
el.appendChild(this.slotContent.cloneNode(true));
|
|
3416
3517
|
}
|
|
3417
|
-
} }, !this.slotContent && h("span", { key: '
|
|
3518
|
+
} }, !this.slotContent && h("span", { key: '79315652fc9db9aca0f06ef0f402d3302b909275' }, this.el.textContent)), this.useClose && (h("div", { key: '5ab0323020a5d3f2c13d690a906fde8de9df36c9', class: "sd-tooltip-menu__close-button" }, h("button", { key: 'deed089b5bb820f54471d44ff0c69e69ffcddf22', type: "button", "aria-label": "Close tooltip", title: "Close tooltip", onClick: () => this.handleClose() }, h("sd-icon", { key: '6c93da0c7f425ad1111b68c508476db74462e2ad', name: "close", size: "12", color: "#AAAAAA" })))))))));
|
|
3418
3519
|
}
|
|
3419
3520
|
};
|
|
3420
3521
|
SdTooltip.style = sdTooltipCss;
|
|
@@ -3568,7 +3669,7 @@ const SdTooltipPortal = class {
|
|
|
3568
3669
|
this.sdClose.emit();
|
|
3569
3670
|
}
|
|
3570
3671
|
render() {
|
|
3571
|
-
return h("slot", { key: '
|
|
3672
|
+
return h("slot", { key: '959737d1d7012ea468ab11bf2f1a8444e5274d4e' });
|
|
3572
3673
|
}
|
|
3573
3674
|
};
|
|
3574
3675
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-ClyGLKUd.js';
|
|
2
2
|
|
|
3
3
|
const sdCardCss = "sd-card{display:block;height:fit-content}sd-card .sd-card{border-radius:8px;background:white}sd-card .sd-card.sd-card--bordered{border:1px solid #e1e1e1}";
|
|
4
4
|
|
|
@@ -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: 'e9653557b36889a75002c32bde005c7b480b2f4b' }, h("div", { key: 'e34f53b49bdc412eaf82dbe21918cd6599d1d2c6', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.class}` }, h("slot", { key: 'b5d06b44a1a960fe12424f43a39647a4646610d6' }))));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
SdCard.style = sdCardCss;
|