@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.
Files changed (87) hide show
  1. package/dist/cjs/design-system.cjs.js +1 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table.sd-tooltip.sd-tooltip-portal.entry.cjs.js.map +1 -0
  4. package/dist/cjs/{sd-button_12.cjs.entry.js → sd-button_13.cjs.entry.js} +50 -30
  5. package/dist/cjs/sd-popover.cjs.entry.js +2 -2
  6. package/dist/cjs/sd-select-multiple.cjs.entry.js +2 -2
  7. package/dist/cjs/sd-select-option-group.cjs.entry.js +3 -3
  8. package/dist/collection/collection-manifest.json +1 -0
  9. package/dist/collection/components/sd-guide/sd-guide.js +5 -0
  10. package/dist/collection/components/sd-guide/sd-guide.js.map +1 -1
  11. package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.css +41 -0
  12. package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +18 -0
  13. package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js.map +1 -0
  14. package/dist/collection/components/sd-pagination/sd-pagination.js +2 -2
  15. package/dist/collection/components/sd-popover/sd-popover.js +2 -2
  16. package/dist/collection/components/sd-portal/sd-portal.js +1 -1
  17. package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
  18. package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +2 -2
  19. package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
  20. package/dist/collection/components/sd-table/sd-table.css +16 -0
  21. package/dist/collection/components/sd-table/sd-table.js +2100 -19
  22. package/dist/collection/components/sd-table/sd-table.js.map +1 -1
  23. package/dist/collection/components/sd-tooltip/sd-tooltip.js +4 -4
  24. package/dist/collection/components/sd-tooltip-portal/sd-tooltip-portal.js +1 -1
  25. package/dist/components/{p-BhRUodRD.js → p-B3EQCsY9.js} +7 -7
  26. package/dist/components/{p-BhRUodRD.js.map → p-B3EQCsY9.js.map} +1 -1
  27. package/dist/components/p-C23A_qhU.js +34 -0
  28. package/dist/components/p-C23A_qhU.js.map +1 -0
  29. package/dist/components/{p-CkHD07WH.js → p-Cf90_rlW.js} +4 -4
  30. package/dist/components/{p-CkHD07WH.js.map → p-Cf90_rlW.js.map} +1 -1
  31. package/dist/components/{p-CMFEznYN.js → p-Co9WrTI9.js} +4 -4
  32. package/dist/components/{p-CMFEznYN.js.map → p-Co9WrTI9.js.map} +1 -1
  33. package/dist/components/{p-DWYqZdbI.js → p-DoP8A06Z.js} +5 -5
  34. package/dist/components/{p-DWYqZdbI.js.map → p-DoP8A06Z.js.map} +1 -1
  35. package/dist/components/{p-BttJlXkp.js → p-FG2MnD9R.js} +3 -3
  36. package/dist/components/{p-BttJlXkp.js.map → p-FG2MnD9R.js.map} +1 -1
  37. package/dist/components/{p-DtOWZESA.js → p-bjYBeH1G.js} +3 -3
  38. package/dist/components/{p-DtOWZESA.js.map → p-bjYBeH1G.js.map} +1 -1
  39. package/dist/components/{p-Cs1Kf3Tx.js → p-qJp_DZU2.js} +3 -3
  40. package/dist/components/{p-Cs1Kf3Tx.js.map → p-qJp_DZU2.js.map} +1 -1
  41. package/dist/components/sd-date-picker.js +1 -1
  42. package/dist/components/sd-date-range-picker.js +1 -1
  43. package/dist/components/sd-guide.js +1 -1
  44. package/dist/components/sd-guide.js.map +1 -1
  45. package/dist/components/sd-loading-spinner.d.ts +11 -0
  46. package/dist/components/sd-loading-spinner.js +9 -0
  47. package/dist/components/sd-loading-spinner.js.map +1 -0
  48. package/dist/components/sd-pagination.js +1 -1
  49. package/dist/components/sd-popover.js +3 -3
  50. package/dist/components/sd-portal.js +1 -1
  51. package/dist/components/sd-select-multiple-group.js +2 -2
  52. package/dist/components/sd-select-multiple.js +4 -4
  53. package/dist/components/sd-select-option-group.js +1 -1
  54. package/dist/components/sd-select-option.js +1 -1
  55. package/dist/components/sd-select.js +1 -1
  56. package/dist/components/sd-table.js +48 -34
  57. package/dist/components/sd-table.js.map +1 -1
  58. package/dist/components/sd-tooltip-portal.js +1 -1
  59. package/dist/components/sd-tooltip.js +1 -1
  60. package/dist/design-system/design-system.esm.js +1 -1
  61. package/dist/design-system/{p-9975f6f3.entry.js → p-38c4f9b1.entry.js} +2 -2
  62. package/dist/design-system/p-38c4f9b1.entry.js.map +1 -0
  63. package/dist/design-system/p-4cad47c5.entry.js +2 -0
  64. package/dist/design-system/{p-e061c4f8.entry.js → p-8fbdec47.entry.js} +2 -2
  65. package/dist/design-system/{p-12b6c1a5.entry.js → p-e2e1c401.entry.js} +2 -2
  66. 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
  67. package/dist/esm/design-system.js +1 -1
  68. package/dist/esm/loader.js +1 -1
  69. 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
  70. package/dist/esm/{sd-button_12.entry.js → sd-button_13.entry.js} +50 -31
  71. package/dist/esm/sd-popover.entry.js +2 -2
  72. package/dist/esm/sd-select-multiple.entry.js +2 -2
  73. package/dist/esm/sd-select-option-group.entry.js +3 -3
  74. package/dist/types/components/sd-loading-spinner/sd-loading-spinner.d.ts +3 -0
  75. package/dist/types/components/sd-table/sd-table.d.ts +2 -0
  76. package/dist/types/components.d.ts +23 -0
  77. package/hydrate/index.js +65 -36
  78. package/hydrate/index.mjs +65 -36
  79. package/package.json +2 -2
  80. 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
  81. package/dist/design-system/p-9975f6f3.entry.js.map +0 -1
  82. package/dist/design-system/p-af3a1dbb.entry.js +0 -2
  83. 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
  84. 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
  85. /package/dist/design-system/{p-af3a1dbb.entry.js.map → p-4cad47c5.entry.js.map} +0 -0
  86. /package/dist/design-system/{p-e061c4f8.entry.js.map → p-8fbdec47.entry.js.map} +0 -0
  87. /package/dist/design-system/{p-12b6c1a5.entry.js.map → p-e2e1c401.entry.js.map} +0 -0
package/hydrate/index.js CHANGED
@@ -4924,6 +4924,26 @@ class SdInput {
4924
4924
  }; }
4925
4925
  }
4926
4926
 
4927
+ 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}}";
4928
+
4929
+ class SdLoadingSpinner {
4930
+ constructor(hostRef) {
4931
+ registerInstance(this, hostRef);
4932
+ }
4933
+ render() {
4934
+ 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" }))));
4935
+ }
4936
+ static get style() { return sdLoadingSpinnerCss; }
4937
+ static get cmpMeta() { return {
4938
+ "$flags$": 256,
4939
+ "$tagName$": "sd-loading-spinner",
4940
+ "$members$": undefined,
4941
+ "$listeners$": undefined,
4942
+ "$lazyBundleId$": "-",
4943
+ "$attrsToReflect$": []
4944
+ }; }
4945
+ }
4946
+
4927
4947
  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}";
4928
4948
 
4929
4949
  const BUTTON_WIDTH = {
@@ -5004,12 +5024,12 @@ class SdPagination {
5004
5024
  }
5005
5025
  }
5006
5026
  render() {
5007
- return (hAsync("div", { key: '2707331958e2c375b570590a8742655bacb1aa4d', class: this.paginationClasses }, hAsync("div", { key: 'e98573b80c04454ea0b30f6cb7fe1974028a0464', 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: {
5027
+ 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: {
5008
5028
  'pagination-btn': true,
5009
5029
  'pagination-btn--selected': this.currentPage === n,
5010
5030
  }, disabled: this.currentPage === n, style: {
5011
5031
  '--pagination-btn-width': `${this.buttonWidth}px`,
5012
- }, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: 'ccb867eccaece5ecbdcef7abe0e4d333fb169d11', class: "append-btns" }, this.renderNextButtons())));
5032
+ }, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: '0ec1e8a3a815919d9c8f1a5539778b2cc541772e', class: "append-btns" }, this.renderNextButtons())));
5013
5033
  }
5014
5034
  static get watchers() { return {
5015
5035
  "currentPage": ["onPropChange"],
@@ -5068,11 +5088,11 @@ class SdPopover {
5068
5088
  this.showPopover = false;
5069
5089
  };
5070
5090
  render() {
5071
- return (hAsync(Fragment, { key: 'fb877e8d016d13fb33b49a1a4dbfed9fc01b1336' }, 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: '02208721da61cb84086a57c823f8e31775fdbd5e', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement }, hAsync("div", { key: '3f3c4fc690dac5061bda08af37121e2b98374979', class: {
5091
+ 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: {
5072
5092
  'sd-popover-menu': true,
5073
5093
  [`sd-popover-menu--${this.placement}`]: true,
5074
5094
  [this.menuClass]: !!this.menuClass,
5075
- } }, hAsync("i", { key: '6f0df95bafc2cbf564fd0e5a133c89f03c3a924b', class: `sd-popover-menu__arrow sd-popover-menu__arrow--${this.placement}` }, hAsync(TooltipArrow, { key: '535acee0be86db4ed58d6cc1631732541f1e475e' })), hAsync("div", { key: 'd4366800a8cbd5a1f9630344a5ca4241b0eaa8dd', class: "sd-popover-menu__content" }, this.menuTitle && hAsync("div", { key: '1cd9de3129988c5d26be0ded5b03520ab591cb9a', class: "sd-popover-menu__title" }, this.menuTitle), this.messages.length > 0 && (hAsync("div", { key: '5aae57948bd5e0fd98e73a8ae504b77ce6cdbe07', class: "sd-popover-menu__messages" }, this.messages.map(message => (hAsync("div", null, message))))), this.buttons.length > 0 && (hAsync("div", { key: '814ac9ba0b2cf4367bb4cd5e688fa5433fee7126', 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: 'a21ad0a5e28f8609b2f9d9accd0be5d81ed9de5b', class: "sd-popover-menu__close-button", onClick: () => this.handleClose() }, hAsync("sd-icon", { key: '10738ec0926ea5fbc0b30b5c8c08b6cc37bf47d3', name: "close", size: "12", color: "#AAAAAA" }))))))));
5095
+ } }, 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" }))))))));
5076
5096
  }
5077
5097
  static get watchers() { return {
5078
5098
  "show": ["watchShowHandler"]
@@ -5223,7 +5243,7 @@ class SdPortal {
5223
5243
  this.sdClose.emit();
5224
5244
  }
5225
5245
  render() {
5226
- return hAsync("slot", { key: '4f344b083ff3a2d32d1a23f99e90687aeeb676b1' });
5246
+ return hAsync("slot", { key: '64f974db091753e7f2d5712483d32a7c1585b37b' });
5227
5247
  }
5228
5248
  static get cmpMeta() { return {
5229
5249
  "$flags$": 772,
@@ -5838,11 +5858,11 @@ class SdSelectMultiple extends BaseDropdownEvent {
5838
5858
  '--select-width': this.width || '200px',
5839
5859
  '--select-dropdown-height': this.dropdownHeight || '260px',
5840
5860
  };
5841
- return (hAsync(Host, { key: '8a237d4dc7f743a7685b440cd654d51629765a20', style: style }, hAsync("div", { key: 'c1240092508fbb9e9b638803171847b174da9062', class: {
5861
+ return (hAsync(Host, { key: '4ed0861a16ef427fdd526a3993325bc47a427f9a', style: style }, hAsync("div", { key: 'c918e7e5dc13e53a20ba63bd0b9216fae24733f2', class: {
5842
5862
  'sd-select-multiple': true,
5843
5863
  'sd-select-multiple--open': this.isOpen,
5844
5864
  'sd-select-multiple--disabled': this.disabled,
5845
- }, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), hAsync("div", { key: 'b99913866f316d7eacffd9e0e71fd58baac05c34', class: "sd-select-multiple__container" }, this.renderTrigger(), this.renderDropdown()))));
5865
+ }, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), hAsync("div", { key: '04aac623cfc31dfabda4a8e4840ea7f3c9fdbc28', class: "sd-select-multiple__container" }, this.renderTrigger(), this.renderDropdown()))));
5846
5866
  }
5847
5867
  renderLabel(label) {
5848
5868
  if (!label)
@@ -6343,7 +6363,7 @@ class SdSelectOption {
6343
6363
  }
6344
6364
  };
6345
6365
  render() {
6346
- return (hAsync(Host, { key: '23d87df53fa083e6c9aceb1956de51800117df9f' }, hAsync("div", { key: '569c5d35098350fa4d186ba838925de4f966c491', class: {
6366
+ return (hAsync(Host, { key: 'b571989b755f8e39c95cab49f11ef7935e4bc8c7' }, hAsync("div", { key: 'af95f0a7ad90141eb7a9db91b0cfd0c66c7d4920', class: {
6347
6367
  'sd-select__option': true,
6348
6368
  'sd-select__option--selected': this.isSelected,
6349
6369
  'sd-select__option--disabled': !!this.option.disabled,
@@ -6429,7 +6449,7 @@ class SdSelectOptionGroup {
6429
6449
  }
6430
6450
  };
6431
6451
  render() {
6432
- return (hAsync("div", { key: '0b921cd09e8115ed3af13fc2e9f1ecaff60f2b08', class: {
6452
+ return (hAsync("div", { key: 'eb8aac2629a851fce84ba1a17963282876a5d3c7', class: {
6433
6453
  'sd-select__option-group': true,
6434
6454
  'sd-select__option-group--selected': !!this.isSelected,
6435
6455
  'sd-select__option-group--disabled': !!this.option.disabled,
@@ -6438,10 +6458,10 @@ class SdSelectOptionGroup {
6438
6458
  'sd-select__option-group--group': this.option.type === 'group',
6439
6459
  'sd-select__option-group--subgroup': this.option.type === 'subgroup',
6440
6460
  'sd-select__option-group--item': this.option.type === 'item',
6441
- }, 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: '402a3e272f03930fe049d249c275a2acc1539bc3', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (hAsync("sd-checkbox", { key: '6f8c05df6de67268636495b3d15dd5f896c8b846', checked: this.isSelected, disabled: this.option.disabled, onClick: e => {
6461
+ }, 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 => {
6442
6462
  e.preventDefault();
6443
6463
  this.handleClick(this.option, this.isSelected, e);
6444
- } })), hAsync("span", { key: '4cbe65750bace072e680c251e904688c63eb6722', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (hAsync("span", { key: 'af63ce7b9e377da8453049c49c5af28e411b9eec', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
6464
+ } })), 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})`)))));
6445
6465
  }
6446
6466
  static get style() { return sdSelectOptionGroupCss; }
6447
6467
  static get cmpMeta() { return {
@@ -6466,13 +6486,14 @@ class SdSelectOptionGroup {
6466
6486
  }; }
6467
6487
  }
6468
6488
 
6469
- 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%)}";
6489
+ 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%)}";
6470
6490
 
6471
6491
  class SdTable {
6472
6492
  constructor(hostRef) {
6473
6493
  registerInstance(this, hostRef);
6474
6494
  this.sdSelectChange = createEvent(this, "sdSelectChange");
6475
6495
  this.sdPageChange = createEvent(this, "sdPageChange");
6496
+ this.sdRowsPerPageChange = createEvent(this, "sdRowsPerPageChange");
6476
6497
  }
6477
6498
  get el() { return getElement(this); }
6478
6499
  columns;
@@ -6486,6 +6507,7 @@ class SdTable {
6486
6507
  stickyHeader = false;
6487
6508
  stickyColumn = { left: 0, right: 0 };
6488
6509
  noDataLabel = '데이터가 없습니다.';
6510
+ isLoading = false;
6489
6511
  pagination;
6490
6512
  bodyCellRenderer;
6491
6513
  useInternalPagination = false;
@@ -6498,6 +6520,7 @@ class SdTable {
6498
6520
  ];
6499
6521
  sdSelectChange;
6500
6522
  sdPageChange;
6523
+ sdRowsPerPageChange;
6501
6524
  currentPage = this.pagination?.page || 1;
6502
6525
  innerRows = [];
6503
6526
  innerSelected = new Set();
@@ -6658,9 +6681,7 @@ class SdTable {
6658
6681
  }, 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) }))))))));
6659
6682
  }
6660
6683
  renderBody() {
6661
- if (!this.paginatedRows.length)
6662
- return (hAsync("tbody", { part: "tbody-empty" }, hAsync("tr", null, hAsync("td", { colSpan: this.visibleColumns.length + (this.selectable ? 1 : 0) }, this.noDataLabel))));
6663
- 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: {
6684
+ 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: {
6664
6685
  'sd-td': true,
6665
6686
  'sd-td--selected': true,
6666
6687
  'sticky-left': Boolean(this.stickyColumn.left && this.stickyColumn.left > 0),
@@ -6679,13 +6700,13 @@ class SdTable {
6679
6700
  colIdx === this.visibleColumns.length - this.stickyColumn.right),
6680
6701
  [`${column.tdClass}`]: Boolean(column.tdClass),
6681
6702
  }, 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)))));
6682
- }))))));
6703
+ }))))))));
6683
6704
  }
6684
6705
  render() {
6685
- return (hAsync(Host, { key: 'b73fefde2c99c864002a2e778b02a306d4c8c32d' }, hAsync("div", { key: '4fbf588871e3b8cb92e087cbde59aa9280ba75cd', class: "sd-table__wrapper", style: {
6706
+ return (hAsync(Host, { key: '941eac6f220c2eb336748b19d7d62421954d7b2d' }, hAsync("div", { key: '9e1753e83333aca00ff3e1b85746a1a9f14ceed3', class: "sd-table__wrapper", style: {
6686
6707
  '--table-width': this.width,
6687
6708
  '--table-height': this.height,
6688
- } }, hAsync("div", { key: '92d69eaf8e499fd5b3a0ebb3d77353c8285949e5', class: "sd-table__container" }, hAsync("div", { key: '590fd93058983bab3bc829e7c6ce4e058365287f', class: "sd-table__middle" }, hAsync("table", { key: 'c1fd46586bd9429377dfff9df94550cb5437b05a', part: "table", class: this.sdTableClasses }, this.renderHeader(), this.renderBody())), hAsync("div", { key: '89a48072c9f6b84d062e4e127b5858657003fc87', class: "sd-table__bottom" })), this.pagination && this.innerRows.length > 0 && (hAsync("div", { key: '526c024bc5493b8a3abb4f7887ec221e38dd2937', class: "sd-table__pagination" }, hAsync("sd-pagination", { key: 'f607579ff98e70f2c6975139a17c7fc48b940a19', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onPageChange: (e) => {
6709
+ } }, 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) => {
6689
6710
  if (!this.useInternalPagination) {
6690
6711
  this.sdPageChange.emit(e.detail);
6691
6712
  }
@@ -6693,20 +6714,26 @@ class SdTable {
6693
6714
  this.currentPage = e.detail;
6694
6715
  this.sdPageChange.emit(this.currentPage);
6695
6716
  }
6696
- } }), this.useRowsPerPageSelect && (hAsync("sd-select", { key: '683424acaf3961dcf681e8a04275cdba6bdf9928', value: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", onSdChange: (e) => {
6697
- const newRowsPerPage = Number(e.detail.value || 0);
6698
- let newLastPage = Math.max(1, Math.ceil(this.innerRows.length / newRowsPerPage));
6699
- let newCurrentPage = this.currentPage;
6700
- if (newCurrentPage > newLastPage) {
6701
- newCurrentPage = newLastPage;
6717
+ } }), this.useRowsPerPageSelect && (hAsync("sd-select", { key: '1a9b338efdeaa212c5f3751dae638631b60f89d8', value: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", onSdChange: (e) => {
6718
+ const changedRowsPerPage = e.detail.value ? Number(e.detail.value) : 0;
6719
+ if (!this.useInternalPagination) {
6720
+ this.sdRowsPerPageChange.emit(changedRowsPerPage);
6721
+ }
6722
+ else {
6723
+ const newRowsPerPage = Number(e.detail.value || 0);
6724
+ let newLastPage = Math.max(1, Math.ceil(this.innerRows.length / newRowsPerPage));
6725
+ let newCurrentPage = this.currentPage;
6726
+ if (newCurrentPage > newLastPage) {
6727
+ newCurrentPage = newLastPage;
6728
+ }
6729
+ this.pagination = {
6730
+ page: newCurrentPage,
6731
+ rowsPerPage: newRowsPerPage,
6732
+ lastPage: newLastPage,
6733
+ };
6734
+ this.currentPage = newCurrentPage;
6735
+ this.sdRowsPerPageChange.emit(changedRowsPerPage);
6702
6736
  }
6703
- this.pagination = {
6704
- page: newCurrentPage,
6705
- rowsPerPage: newRowsPerPage,
6706
- lastPage: newLastPage,
6707
- };
6708
- this.currentPage = newCurrentPage;
6709
- this.sdPageChange.emit(this.currentPage);
6710
6737
  } })))))));
6711
6738
  }
6712
6739
  static get watchers() { return {
@@ -6731,6 +6758,7 @@ class SdTable {
6731
6758
  "stickyHeader": [4, "sticky-header"],
6732
6759
  "stickyColumn": [16],
6733
6760
  "noDataLabel": [1, "no-data-label"],
6761
+ "isLoading": [4, "is-loading"],
6734
6762
  "pagination": [16],
6735
6763
  "bodyCellRenderer": [16],
6736
6764
  "useInternalPagination": [4, "use-internal-pagination"],
@@ -6863,20 +6891,20 @@ class SdTooltip {
6863
6891
  : {
6864
6892
  onClick: () => (this.showTooltip = !this.showTooltip),
6865
6893
  };
6866
- return (hAsync(Fragment, { key: 'da480a55495b1311368ae55ef8827a54ea5de766' }, 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: '74be36575fbf97c9b51577fa5b24a4fbcfcf4c6b', parentRef: this.buttonEl, onSdClose: () => this.handleClose(), placement: this.placement }, hAsync("div", { key: '63707a51fcc66a3a0c91fc7d409d30f61c0b1f17', class: {
6894
+ 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: {
6867
6895
  'sd-tooltip-menu': true,
6868
6896
  [`sd-tooltip-menu--${this.type}`]: true,
6869
6897
  [`sd-tooltip-menu--${this.placement}`]: true,
6870
6898
  'sd-tooltip-menu--with-close': this.useClose,
6871
6899
  [`bg-${SdTooltip.COLOR_OF_TYPE[this.type].background}`]: true,
6872
6900
  [`text-${SdTooltip.COLOR_OF_TYPE[this.type].text}`]: true,
6873
- } }, hAsync("i", { key: 'a2c557e1457c293ef4a6fb3e23a70c9ff5b0b027', class: `sd-tooltip-menu__arrow sd-tooltip-menu__arrow--${this.placement}` }, hAsync(TooltipArrow, { key: '7e7e471bb288680875fbbaa1d7b7df34b636c76f', class: {
6901
+ } }, hAsync("i", { key: '276fd33d6abb331aa55f94591f847674a3c7a4ea', class: `sd-tooltip-menu__arrow sd-tooltip-menu__arrow--${this.placement}` }, hAsync(TooltipArrow, { key: 'dfe808944a15600e16b52dff6e4b9381cdefaf53', class: {
6874
6902
  [`text-${SdTooltip.COLOR_OF_TYPE[this.type].background}`]: true,
6875
- } })), hAsync("div", { key: 'c7f7a093907053c100fdb5f247d09d984f8cddd8', class: "sd-tooltip-menu__content", ref: el => {
6903
+ } })), hAsync("div", { key: '1f22593facecb915ef6a7a6c4cd4abba09ffce8c', class: "sd-tooltip-menu__content", ref: el => {
6876
6904
  if (el && this.slotContent && !el.hasChildNodes()) {
6877
6905
  el.appendChild(this.slotContent.cloneNode(true));
6878
6906
  }
6879
- } }, !this.slotContent && hAsync("span", { key: '14925b4653ca984bd6adf99f6297713dc8b2bafa' }, this.el.textContent)), this.useClose && (hAsync("div", { key: '1a02cee06eaaf9068396fb0b489c93e23ba5c8b7', class: "sd-tooltip-menu__close-button" }, hAsync("button", { key: '40973df40b2ec2ab887a47c7f3e466f6cae4e69f', type: "button", "aria-label": "Close tooltip", title: "Close tooltip", onClick: () => this.handleClose() }, hAsync("sd-icon", { key: 'a02e35f80ae7d3c1414577ce253a67d6dfd64bc0', name: "close", size: "12", color: "#AAAAAA" })))))))));
6907
+ } }, !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" })))))))));
6880
6908
  }
6881
6909
  static get style() { return sdTooltipCss; }
6882
6910
  static get cmpMeta() { return {
@@ -7051,7 +7079,7 @@ class SdTooltipPortal {
7051
7079
  this.sdClose.emit();
7052
7080
  }
7053
7081
  render() {
7054
- return hAsync("slot", { key: '641dacdeceb023695ced987731591783daa6b88e' });
7082
+ return hAsync("slot", { key: '231704dc9edcd17203b0ecd491558f585c57f9bd' });
7055
7083
  }
7056
7084
  static get cmpMeta() { return {
7057
7085
  "$flags$": 777,
@@ -7081,6 +7109,7 @@ registerComponents([
7081
7109
  SdGuide,
7082
7110
  SdIcon,
7083
7111
  SdInput,
7112
+ SdLoadingSpinner,
7084
7113
  SdPagination,
7085
7114
  SdPopover,
7086
7115
  SdPortal,