@sellmate/design-system 0.0.26 → 0.0.27
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-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 +1 -0
- package/dist/cjs/{sd-button_12.cjs.entry.js → sd-button_13.cjs.entry.js} +50 -30
- package/dist/cjs/sd-popover.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/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sd-guide/sd-guide.js +5 -0
- package/dist/collection/components/sd-guide/sd-guide.js.map +1 -1
- package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.css +41 -0
- package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +18 -0
- package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js.map +1 -0
- 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-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 +16 -0
- package/dist/collection/components/sd-table/sd-table.js +2100 -19
- package/dist/collection/components/sd-table/sd-table.js.map +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/{p-BhRUodRD.js → p-B3EQCsY9.js} +7 -7
- package/dist/components/{p-BhRUodRD.js.map → p-B3EQCsY9.js.map} +1 -1
- package/dist/components/p-C23A_qhU.js +34 -0
- package/dist/components/p-C23A_qhU.js.map +1 -0
- package/dist/components/{p-CkHD07WH.js → p-Cf90_rlW.js} +4 -4
- package/dist/components/{p-CkHD07WH.js.map → p-Cf90_rlW.js.map} +1 -1
- package/dist/components/{p-CMFEznYN.js → p-Co9WrTI9.js} +4 -4
- package/dist/components/{p-CMFEznYN.js.map → p-Co9WrTI9.js.map} +1 -1
- package/dist/components/{p-DWYqZdbI.js → p-DoP8A06Z.js} +5 -5
- package/dist/components/{p-DWYqZdbI.js.map → p-DoP8A06Z.js.map} +1 -1
- package/dist/components/{p-BttJlXkp.js → p-FG2MnD9R.js} +3 -3
- package/dist/components/{p-BttJlXkp.js.map → p-FG2MnD9R.js.map} +1 -1
- package/dist/components/{p-DtOWZESA.js → p-bjYBeH1G.js} +3 -3
- package/dist/components/{p-DtOWZESA.js.map → p-bjYBeH1G.js.map} +1 -1
- package/dist/components/{p-Cs1Kf3Tx.js → p-qJp_DZU2.js} +3 -3
- package/dist/components/{p-Cs1Kf3Tx.js.map → p-qJp_DZU2.js.map} +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-guide.js.map +1 -1
- package/dist/components/sd-loading-spinner.d.ts +11 -0
- package/dist/components/sd-loading-spinner.js +9 -0
- package/dist/components/sd-loading-spinner.js.map +1 -0
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +3 -3
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-select-multiple-group.js +2 -2
- package/dist/components/sd-select-multiple.js +4 -4
- 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.js +48 -34
- package/dist/components/sd-table.js.map +1 -1
- package/dist/components/sd-tooltip-portal.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-9975f6f3.entry.js → p-38c4f9b1.entry.js} +2 -2
- package/dist/design-system/p-38c4f9b1.entry.js.map +1 -0
- package/dist/design-system/p-4cad47c5.entry.js +2 -0
- package/dist/design-system/{p-e061c4f8.entry.js → p-8fbdec47.entry.js} +2 -2
- package/dist/design-system/{p-12b6c1a5.entry.js → p-e2e1c401.entry.js} +2 -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 +1 -0
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -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 +1 -0
- package/dist/esm/{sd-button_12.entry.js → sd-button_13.entry.js} +50 -31
- package/dist/esm/sd-popover.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/types/components/sd-loading-spinner/sd-loading-spinner.d.ts +3 -0
- package/dist/types/components/sd-table/sd-table.d.ts +2 -0
- package/dist/types/components.d.ts +23 -0
- package/hydrate/index.js +65 -36
- package/hydrate/index.mjs +65 -36
- package/package.json +2 -2
- 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-tooltip.sd-tooltip-portal.entry.cjs.js.map +0 -1
- package/dist/design-system/p-9975f6f3.entry.js.map +0 -1
- package/dist/design-system/p-af3a1dbb.entry.js +0 -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-tooltip.sd-tooltip-portal.entry.esm.js.map +0 -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-tooltip.sd-tooltip-portal.entry.js.map +0 -1
- /package/dist/design-system/{p-af3a1dbb.entry.js.map → p-4cad47c5.entry.js.map} +0 -0
- /package/dist/design-system/{p-e061c4f8.entry.js.map → p-8fbdec47.entry.js.map} +0 -0
- /package/dist/design-system/{p-12b6c1a5.entry.js.map → p-e2e1c401.entry.js.map} +0 -0
package/hydrate/index.mjs
CHANGED
|
@@ -4922,6 +4922,26 @@ class SdInput {
|
|
|
4922
4922
|
}; }
|
|
4923
4923
|
}
|
|
4924
4924
|
|
|
4925
|
+
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}}";
|
|
4926
|
+
|
|
4927
|
+
class SdLoadingSpinner {
|
|
4928
|
+
constructor(hostRef) {
|
|
4929
|
+
registerInstance(this, hostRef);
|
|
4930
|
+
}
|
|
4931
|
+
render() {
|
|
4932
|
+
return (hAsync(Host, { key: '5d1533618d656320e6a7aae01bcfcda6765f44d2' }, hAsync("svg", { key: '12387df275b92341a8a879724d56428f715a5b60', class: "sd-loading-spinner text-positive", width: "72px", height: "72px", viewBox: "25 25 50 50" }, hAsync("circle", { key: '777d5328b6d247166fb64d3d720be714eb8c4663', class: "path", cx: "50", cy: "50", r: "20", fill: "none", stroke: "currentColor", "stroke-width": "5", "stroke-miterlimit": "10" }))));
|
|
4933
|
+
}
|
|
4934
|
+
static get style() { return sdLoadingSpinnerCss; }
|
|
4935
|
+
static get cmpMeta() { return {
|
|
4936
|
+
"$flags$": 256,
|
|
4937
|
+
"$tagName$": "sd-loading-spinner",
|
|
4938
|
+
"$members$": undefined,
|
|
4939
|
+
"$listeners$": undefined,
|
|
4940
|
+
"$lazyBundleId$": "-",
|
|
4941
|
+
"$attrsToReflect$": []
|
|
4942
|
+
}; }
|
|
4943
|
+
}
|
|
4944
|
+
|
|
4925
4945
|
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}";
|
|
4926
4946
|
|
|
4927
4947
|
const BUTTON_WIDTH = {
|
|
@@ -5002,12 +5022,12 @@ class SdPagination {
|
|
|
5002
5022
|
}
|
|
5003
5023
|
}
|
|
5004
5024
|
render() {
|
|
5005
|
-
return (hAsync("div", { key: '
|
|
5025
|
+
return (hAsync("div", { key: '442749b854a4033cd4eba7941ac69b0af3d70955', class: this.paginationClasses }, hAsync("div", { key: '9ae405c342ec1a812312bc2abc5759d811e806c4', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (hAsync("div", { class: "pagination-info" }, hAsync("span", { class: "current-page" }, this.currentPage), hAsync("span", null, "/"), hAsync("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (hAsync("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
5006
5026
|
'pagination-btn': true,
|
|
5007
5027
|
'pagination-btn--selected': this.currentPage === n,
|
|
5008
5028
|
}, disabled: this.currentPage === n, style: {
|
|
5009
5029
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
5010
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: '
|
|
5030
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: '0ec1e8a3a815919d9c8f1a5539778b2cc541772e', class: "append-btns" }, this.renderNextButtons())));
|
|
5011
5031
|
}
|
|
5012
5032
|
static get watchers() { return {
|
|
5013
5033
|
"currentPage": ["onPropChange"],
|
|
@@ -5066,11 +5086,11 @@ class SdPopover {
|
|
|
5066
5086
|
this.showPopover = false;
|
|
5067
5087
|
};
|
|
5068
5088
|
render() {
|
|
5069
|
-
return (hAsync(Fragment, { key: '
|
|
5089
|
+
return (hAsync(Fragment, { key: 'cf3343eff82b136b3c1d55f3adc1ce7bd815c144' }, this.label ? (hAsync("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-popover", onClick: () => (console.log('click popover'), (this.showPopover = !this.showPopover)) })) : (hAsync("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-popover", onClick: () => (console.log('click popover'), (this.showPopover = !this.showPopover)) })), this.showPopover && (hAsync("sd-tooltip-portal", { key: '254f14cafcc6f5dc4494360fc754656536b08a3a', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement }, hAsync("div", { key: 'f375fdf55aed6f3b8b4705fbaa3467b4c1eae7fd', class: {
|
|
5070
5090
|
'sd-popover-menu': true,
|
|
5071
5091
|
[`sd-popover-menu--${this.placement}`]: true,
|
|
5072
5092
|
[this.menuClass]: !!this.menuClass,
|
|
5073
|
-
} }, hAsync("i", { key: '
|
|
5093
|
+
} }, hAsync("i", { key: '5e4eede6dc40190223ffeaa49d2bdffd32e2defd', class: `sd-popover-menu__arrow sd-popover-menu__arrow--${this.placement}` }, hAsync(TooltipArrow, { key: '47c81c26ac958b000a451dc6c81c8752d314b0e0' })), hAsync("div", { key: '13af261b03ae81c25f7b6791dec18d3948ff4e32', class: "sd-popover-menu__content" }, this.menuTitle && hAsync("div", { key: '8024032ddaca5046ff0da49cb97ea7883a07dfd5', class: "sd-popover-menu__title" }, this.menuTitle), this.messages.length > 0 && (hAsync("div", { key: '68067a6b751f77dfaab56fcfdcfd9635f057d8c3', class: "sd-popover-menu__messages" }, this.messages.map(message => (hAsync("div", null, message))))), this.buttons.length > 0 && (hAsync("div", { key: 'f49814504de9e8f84929ae85c73df5797689947e', class: `sd-popover-menu__buttons sd-popover-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (hAsync("sd-button", { ...button })))))), this.useClose && (hAsync("button", { key: 'ca1b3244636936e4ae870c201501933a82f2fc46', class: "sd-popover-menu__close-button", onClick: () => this.handleClose() }, hAsync("sd-icon", { key: '518c4817f3f6eb54883426f6dd3acb683d3d30b4', name: "close", size: "12", color: "#AAAAAA" }))))))));
|
|
5074
5094
|
}
|
|
5075
5095
|
static get watchers() { return {
|
|
5076
5096
|
"show": ["watchShowHandler"]
|
|
@@ -5221,7 +5241,7 @@ class SdPortal {
|
|
|
5221
5241
|
this.sdClose.emit();
|
|
5222
5242
|
}
|
|
5223
5243
|
render() {
|
|
5224
|
-
return hAsync("slot", { key: '
|
|
5244
|
+
return hAsync("slot", { key: '64f974db091753e7f2d5712483d32a7c1585b37b' });
|
|
5225
5245
|
}
|
|
5226
5246
|
static get cmpMeta() { return {
|
|
5227
5247
|
"$flags$": 772,
|
|
@@ -5836,11 +5856,11 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
5836
5856
|
'--select-width': this.width || '200px',
|
|
5837
5857
|
'--select-dropdown-height': this.dropdownHeight || '260px',
|
|
5838
5858
|
};
|
|
5839
|
-
return (hAsync(Host, { key: '
|
|
5859
|
+
return (hAsync(Host, { key: '4ed0861a16ef427fdd526a3993325bc47a427f9a', style: style }, hAsync("div", { key: 'c918e7e5dc13e53a20ba63bd0b9216fae24733f2', class: {
|
|
5840
5860
|
'sd-select-multiple': true,
|
|
5841
5861
|
'sd-select-multiple--open': this.isOpen,
|
|
5842
5862
|
'sd-select-multiple--disabled': this.disabled,
|
|
5843
|
-
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), hAsync("div", { key: '
|
|
5863
|
+
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), hAsync("div", { key: '04aac623cfc31dfabda4a8e4840ea7f3c9fdbc28', class: "sd-select-multiple__container" }, this.renderTrigger(), this.renderDropdown()))));
|
|
5844
5864
|
}
|
|
5845
5865
|
renderLabel(label) {
|
|
5846
5866
|
if (!label)
|
|
@@ -6341,7 +6361,7 @@ class SdSelectOption {
|
|
|
6341
6361
|
}
|
|
6342
6362
|
};
|
|
6343
6363
|
render() {
|
|
6344
|
-
return (hAsync(Host, { key: '
|
|
6364
|
+
return (hAsync(Host, { key: 'b571989b755f8e39c95cab49f11ef7935e4bc8c7' }, hAsync("div", { key: 'af95f0a7ad90141eb7a9db91b0cfd0c66c7d4920', class: {
|
|
6345
6365
|
'sd-select__option': true,
|
|
6346
6366
|
'sd-select__option--selected': this.isSelected,
|
|
6347
6367
|
'sd-select__option--disabled': !!this.option.disabled,
|
|
@@ -6427,7 +6447,7 @@ class SdSelectOptionGroup {
|
|
|
6427
6447
|
}
|
|
6428
6448
|
};
|
|
6429
6449
|
render() {
|
|
6430
|
-
return (hAsync("div", { key: '
|
|
6450
|
+
return (hAsync("div", { key: 'eb8aac2629a851fce84ba1a17963282876a5d3c7', class: {
|
|
6431
6451
|
'sd-select__option-group': true,
|
|
6432
6452
|
'sd-select__option-group--selected': !!this.isSelected,
|
|
6433
6453
|
'sd-select__option-group--disabled': !!this.option.disabled,
|
|
@@ -6436,10 +6456,10 @@ class SdSelectOptionGroup {
|
|
|
6436
6456
|
'sd-select__option-group--group': this.option.type === 'group',
|
|
6437
6457
|
'sd-select__option-group--subgroup': this.option.type === 'subgroup',
|
|
6438
6458
|
'sd-select__option-group--item': this.option.type === 'item',
|
|
6439
|
-
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, hAsync("div", { key: '
|
|
6459
|
+
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, hAsync("div", { key: '3c6ce8963fa794aca439bcc03e677fdcbf5a5d91', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (hAsync("sd-checkbox", { key: '28f07c5705d15dd20db627fccc8c31ba9b554bc3', checked: this.isSelected, disabled: this.option.disabled, onClick: e => {
|
|
6440
6460
|
e.preventDefault();
|
|
6441
6461
|
this.handleClick(this.option, this.isSelected, e);
|
|
6442
|
-
} })), hAsync("span", { key: '
|
|
6462
|
+
} })), hAsync("span", { key: 'cef2d4c2a0183dbe0cc1e97db3337f3acd40f1cd', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (hAsync("span", { key: '522c9419fc38e86e3c66b3c0ae9a63f78568547e', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
|
|
6443
6463
|
}
|
|
6444
6464
|
static get style() { return sdSelectOptionGroupCss; }
|
|
6445
6465
|
static get cmpMeta() { return {
|
|
@@ -6464,13 +6484,14 @@ class SdSelectOptionGroup {
|
|
|
6464
6484
|
}; }
|
|
6465
6485
|
}
|
|
6466
6486
|
|
|
6467
|
-
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}.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 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%)}";
|
|
6487
|
+
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}.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{position:relative}.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%)}";
|
|
6468
6488
|
|
|
6469
6489
|
class SdTable {
|
|
6470
6490
|
constructor(hostRef) {
|
|
6471
6491
|
registerInstance(this, hostRef);
|
|
6472
6492
|
this.sdSelectChange = createEvent(this, "sdSelectChange");
|
|
6473
6493
|
this.sdPageChange = createEvent(this, "sdPageChange");
|
|
6494
|
+
this.sdRowsPerPageChange = createEvent(this, "sdRowsPerPageChange");
|
|
6474
6495
|
}
|
|
6475
6496
|
get el() { return getElement(this); }
|
|
6476
6497
|
columns;
|
|
@@ -6484,6 +6505,7 @@ class SdTable {
|
|
|
6484
6505
|
stickyHeader = false;
|
|
6485
6506
|
stickyColumn = { left: 0, right: 0 };
|
|
6486
6507
|
noDataLabel = '데이터가 없습니다.';
|
|
6508
|
+
isLoading = false;
|
|
6487
6509
|
pagination;
|
|
6488
6510
|
bodyCellRenderer;
|
|
6489
6511
|
useInternalPagination = false;
|
|
@@ -6496,6 +6518,7 @@ class SdTable {
|
|
|
6496
6518
|
];
|
|
6497
6519
|
sdSelectChange;
|
|
6498
6520
|
sdPageChange;
|
|
6521
|
+
sdRowsPerPageChange;
|
|
6499
6522
|
currentPage = this.pagination?.page || 1;
|
|
6500
6523
|
innerRows = [];
|
|
6501
6524
|
innerSelected = new Set();
|
|
@@ -6656,9 +6679,7 @@ class SdTable {
|
|
|
6656
6679
|
}, style: this.getStickyStyle(colIdx) }, hAsync("div", { class: `sd-th__content sd-th__content--${col.align || 'left'}` }, hAsync("slot", { name: `header-cell-${col.name}` }, hAsync("div", { class: "sd-th__content--label" }, col.label)), col.usePageMoveIcon && hAsync("sd-icon", { name: "pageMove", size: "12", color: "#006AC1" }), col.tooltip && (hAsync("sd-tooltip", { ...col.tooltipOptions }, hAsync("div", { slot: "content" }, col.tooltip.map(text => (hAsync("p", null, text))))))), this.resizable && typeof window !== 'undefined' && (hAsync("div", { class: "sd-th__resizer", onMouseDown: (evt) => this.handleResize(colIdx, evt) }))))))));
|
|
6657
6680
|
}
|
|
6658
6681
|
renderBody() {
|
|
6659
|
-
|
|
6660
|
-
return (hAsync("tbody", { part: "tbody-empty" }, hAsync("tr", null, hAsync("td", { colSpan: this.visibleColumns.length + (this.selectable ? 1 : 0) }, this.noDataLabel))));
|
|
6661
|
-
return (hAsync("tbody", null, this.paginatedRows.map((row, rowIdx) => (hAsync("tr", { key: row[this.rowKey], class: "hover:bg-Grey_Lighten-6" }, this.selectable && (hAsync("td", { class: {
|
|
6682
|
+
return (hAsync("tbody", { ...(!this.paginatedRows.length && { part: 'tbody-empty' }) }, this.isLoading && (hAsync("div", { class: "sd-table__loading" }, hAsync("sd-loading-spinner", null))), !this.paginatedRows.length ? (hAsync("tr", null, hAsync("td", { colSpan: this.visibleColumns.length + (this.selectable ? 1 : 0) }, hAsync("slot", { name: "no-data" }, this.noDataLabel)))) : (hAsync(hAsync.Fragment, null, this.paginatedRows.map((row, rowIdx) => (hAsync("tr", { key: row[this.rowKey], class: "hover:bg-Grey_Lighten-6" }, this.selectable && (hAsync("td", { class: {
|
|
6662
6683
|
'sd-td': true,
|
|
6663
6684
|
'sd-td--selected': true,
|
|
6664
6685
|
'sticky-left': Boolean(this.stickyColumn.left && this.stickyColumn.left > 0),
|
|
@@ -6677,13 +6698,13 @@ class SdTable {
|
|
|
6677
6698
|
colIdx === this.visibleColumns.length - this.stickyColumn.right),
|
|
6678
6699
|
[`${column.tdClass}`]: Boolean(column.tdClass),
|
|
6679
6700
|
}, style: this.getStickyStyle(colIdx) }, hAsync("slot", { name: `body-cell-${column.name}-${rowIdx}` }, rendered ? (typeof rendered === 'string' ? (hAsync("span", { innerHTML: rendered })) : (rendered)) : (this.getCellValue(column, row)))));
|
|
6680
|
-
}))))));
|
|
6701
|
+
}))))))));
|
|
6681
6702
|
}
|
|
6682
6703
|
render() {
|
|
6683
|
-
return (hAsync(Host, { key: '
|
|
6704
|
+
return (hAsync(Host, { key: '941eac6f220c2eb336748b19d7d62421954d7b2d' }, hAsync("div", { key: '9e1753e83333aca00ff3e1b85746a1a9f14ceed3', class: "sd-table__wrapper", style: {
|
|
6684
6705
|
'--table-width': this.width,
|
|
6685
6706
|
'--table-height': this.height,
|
|
6686
|
-
} }, hAsync("div", { key: '
|
|
6707
|
+
} }, hAsync("div", { key: '1a1077fc7cf1056ec1756e87cb47485e96b66d60', class: "sd-table__container" }, hAsync("div", { key: '13dce57546577aef35abe3e6e2f9fe8155ee0d9c', class: "sd-table__middle" }, hAsync("table", { key: '7fbc368f33cfd222732ca45f07ab3876f4739fce', part: "table", class: this.sdTableClasses }, this.renderHeader(), this.renderBody())), hAsync("div", { key: 'a96bdcb80985577f8f24d79ba0356be7926f84fc', class: "sd-table__bottom" })), this.pagination && this.innerRows.length > 0 && (hAsync("div", { key: '111c1d44684dc1f795250f2be51a31959e9c62e2', class: "sd-table__pagination" }, hAsync("sd-pagination", { key: '349f9cac77c2212e3d533c8fe62e1ab2ebbe461c', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onPageChange: (e) => {
|
|
6687
6708
|
if (!this.useInternalPagination) {
|
|
6688
6709
|
this.sdPageChange.emit(e.detail);
|
|
6689
6710
|
}
|
|
@@ -6691,20 +6712,26 @@ class SdTable {
|
|
|
6691
6712
|
this.currentPage = e.detail;
|
|
6692
6713
|
this.sdPageChange.emit(this.currentPage);
|
|
6693
6714
|
}
|
|
6694
|
-
} }), this.useRowsPerPageSelect && (hAsync("sd-select", { key: '
|
|
6695
|
-
const
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6715
|
+
} }), this.useRowsPerPageSelect && (hAsync("sd-select", { key: '1a9b338efdeaa212c5f3751dae638631b60f89d8', value: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", onSdChange: (e) => {
|
|
6716
|
+
const changedRowsPerPage = e.detail.value ? Number(e.detail.value) : 0;
|
|
6717
|
+
if (!this.useInternalPagination) {
|
|
6718
|
+
this.sdRowsPerPageChange.emit(changedRowsPerPage);
|
|
6719
|
+
}
|
|
6720
|
+
else {
|
|
6721
|
+
const newRowsPerPage = Number(e.detail.value || 0);
|
|
6722
|
+
let newLastPage = Math.max(1, Math.ceil(this.innerRows.length / newRowsPerPage));
|
|
6723
|
+
let newCurrentPage = this.currentPage;
|
|
6724
|
+
if (newCurrentPage > newLastPage) {
|
|
6725
|
+
newCurrentPage = newLastPage;
|
|
6726
|
+
}
|
|
6727
|
+
this.pagination = {
|
|
6728
|
+
page: newCurrentPage,
|
|
6729
|
+
rowsPerPage: newRowsPerPage,
|
|
6730
|
+
lastPage: newLastPage,
|
|
6731
|
+
};
|
|
6732
|
+
this.currentPage = newCurrentPage;
|
|
6733
|
+
this.sdRowsPerPageChange.emit(changedRowsPerPage);
|
|
6700
6734
|
}
|
|
6701
|
-
this.pagination = {
|
|
6702
|
-
page: newCurrentPage,
|
|
6703
|
-
rowsPerPage: newRowsPerPage,
|
|
6704
|
-
lastPage: newLastPage,
|
|
6705
|
-
};
|
|
6706
|
-
this.currentPage = newCurrentPage;
|
|
6707
|
-
this.sdPageChange.emit(this.currentPage);
|
|
6708
6735
|
} })))))));
|
|
6709
6736
|
}
|
|
6710
6737
|
static get watchers() { return {
|
|
@@ -6729,6 +6756,7 @@ class SdTable {
|
|
|
6729
6756
|
"stickyHeader": [4, "sticky-header"],
|
|
6730
6757
|
"stickyColumn": [16],
|
|
6731
6758
|
"noDataLabel": [1, "no-data-label"],
|
|
6759
|
+
"isLoading": [4, "is-loading"],
|
|
6732
6760
|
"pagination": [16],
|
|
6733
6761
|
"bodyCellRenderer": [16],
|
|
6734
6762
|
"useInternalPagination": [4, "use-internal-pagination"],
|
|
@@ -6861,20 +6889,20 @@ class SdTooltip {
|
|
|
6861
6889
|
: {
|
|
6862
6890
|
onClick: () => (this.showTooltip = !this.showTooltip),
|
|
6863
6891
|
};
|
|
6864
|
-
return (hAsync(Fragment, { key: '
|
|
6892
|
+
return (hAsync(Fragment, { key: '7cd7f8d9ef55457296d873107fdaac4e97256fdc' }, this.label ? (hAsync("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-tooltip", ...handleTrigger })) : (hAsync("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-tooltip", ...handleTrigger })), this.showTooltip && (hAsync("sd-tooltip-portal", { key: 'a0e066f0785fea9b0b1a597abf8ced1d835873ec', parentRef: this.buttonEl, onSdClose: () => this.handleClose(), placement: this.placement }, hAsync("div", { key: '19bb31fd00cdeb8f8c19f80a6b3a4fee71455a47', class: {
|
|
6865
6893
|
'sd-tooltip-menu': true,
|
|
6866
6894
|
[`sd-tooltip-menu--${this.type}`]: true,
|
|
6867
6895
|
[`sd-tooltip-menu--${this.placement}`]: true,
|
|
6868
6896
|
'sd-tooltip-menu--with-close': this.useClose,
|
|
6869
6897
|
[`bg-${SdTooltip.COLOR_OF_TYPE[this.type].background}`]: true,
|
|
6870
6898
|
[`text-${SdTooltip.COLOR_OF_TYPE[this.type].text}`]: true,
|
|
6871
|
-
} }, hAsync("i", { key: '
|
|
6899
|
+
} }, hAsync("i", { key: '276fd33d6abb331aa55f94591f847674a3c7a4ea', class: `sd-tooltip-menu__arrow sd-tooltip-menu__arrow--${this.placement}` }, hAsync(TooltipArrow, { key: 'dfe808944a15600e16b52dff6e4b9381cdefaf53', class: {
|
|
6872
6900
|
[`text-${SdTooltip.COLOR_OF_TYPE[this.type].background}`]: true,
|
|
6873
|
-
} })), hAsync("div", { key: '
|
|
6901
|
+
} })), hAsync("div", { key: '1f22593facecb915ef6a7a6c4cd4abba09ffce8c', class: "sd-tooltip-menu__content", ref: el => {
|
|
6874
6902
|
if (el && this.slotContent && !el.hasChildNodes()) {
|
|
6875
6903
|
el.appendChild(this.slotContent.cloneNode(true));
|
|
6876
6904
|
}
|
|
6877
|
-
} }, !this.slotContent && hAsync("span", { key: '
|
|
6905
|
+
} }, !this.slotContent && hAsync("span", { key: '7a2c28f8a6f45327420a7fd95bfbcdc2c968524d' }, this.el.textContent)), this.useClose && (hAsync("div", { key: '61bfeb5e1aba5931ecdadd35532237124514dee3', class: "sd-tooltip-menu__close-button" }, hAsync("button", { key: '16266831474067749dff6f6acfdec1a4e881e171', type: "button", "aria-label": "Close tooltip", title: "Close tooltip", onClick: () => this.handleClose() }, hAsync("sd-icon", { key: 'fedf37e33d95da2683a37289966626f9ed3c0853', name: "close", size: "12", color: "#AAAAAA" })))))))));
|
|
6878
6906
|
}
|
|
6879
6907
|
static get style() { return sdTooltipCss; }
|
|
6880
6908
|
static get cmpMeta() { return {
|
|
@@ -7049,7 +7077,7 @@ class SdTooltipPortal {
|
|
|
7049
7077
|
this.sdClose.emit();
|
|
7050
7078
|
}
|
|
7051
7079
|
render() {
|
|
7052
|
-
return hAsync("slot", { key: '
|
|
7080
|
+
return hAsync("slot", { key: '231704dc9edcd17203b0ecd491558f585c57f9bd' });
|
|
7053
7081
|
}
|
|
7054
7082
|
static get cmpMeta() { return {
|
|
7055
7083
|
"$flags$": 777,
|
|
@@ -7079,6 +7107,7 @@ registerComponents([
|
|
|
7079
7107
|
SdGuide,
|
|
7080
7108
|
SdIcon,
|
|
7081
7109
|
SdInput,
|
|
7110
|
+
SdLoadingSpinner,
|
|
7082
7111
|
SdPagination,
|
|
7083
7112
|
SdPopover,
|
|
7084
7113
|
SdPortal,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellmate/design-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.27",
|
|
4
4
|
"description": "Sellmate Design System - Web Components Library built with Stencil",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"@stencil/react-output-target": "^1.2.0",
|
|
91
91
|
"@stencil/vue-output-target": "^0.11.8"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "6ccff814d40142bb6af56b39e9a810373cf1bb6e"
|
|
94
94
|
}
|