@melodicdev/components 1.6.6 → 1.6.8

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.
@@ -14134,6 +14134,7 @@ var TableComponent = class TableComponent$1 {
14134
14134
  this.tableTitle = "";
14135
14135
  this.description = "";
14136
14136
  this.virtual = false;
14137
+ this.manualSort = false;
14137
14138
  this.columns = [];
14138
14139
  this.rows = [];
14139
14140
  this.sortKey = "";
@@ -14239,7 +14240,7 @@ var TableComponent = class TableComponent$1 {
14239
14240
  });
14240
14241
  }
14241
14242
  get sortedRows() {
14242
- if (!this.sortKey) return this.rows;
14243
+ if (this.manualSort || !this.sortKey) return this.rows;
14243
14244
  const key = this.sortKey;
14244
14245
  const dir = this.sortDirection === "asc" ? 1 : -1;
14245
14246
  return [...this.rows].sort((a, b) => {
@@ -14294,7 +14295,8 @@ TableComponent = __decorate([MelodicComponent({
14294
14295
  "table-title",
14295
14296
  "description",
14296
14297
  "sticky-header",
14297
- "virtual"
14298
+ "virtual",
14299
+ "manual-sort"
14298
14300
  ]
14299
14301
  })], TableComponent);
14300
14302
  function renderCell(col, row, index) {
@@ -22807,6 +22809,7 @@ var DialogRef = class {
22807
22809
  this._afterOpenedCallback?.();
22808
22810
  }
22809
22811
  close(result) {
22812
+ this._dismissDescendantPopovers(this._dialogEl);
22810
22813
  this._dialogEl.close();
22811
22814
  this._afterClosedCallback?.(result);
22812
22815
  }
@@ -22822,6 +22825,14 @@ var DialogRef = class {
22822
22825
  onBackdropClick(event) {
22823
22826
  if (event.target === this._dialogEl && !this._disableClose) this.close();
22824
22827
  }
22828
+ _dismissDescendantPopovers(root) {
22829
+ root.querySelectorAll("*").forEach((el) => {
22830
+ if (el.hasAttribute("popover")) try {
22831
+ el.hidePopover();
22832
+ } catch {}
22833
+ if (el.shadowRoot) this._dismissDescendantPopovers(el.shadowRoot);
22834
+ });
22835
+ }
22825
22836
  };
22826
22837
  var DialogService = class DialogService$1 {
22827
22838
  constructor() {