@melodicdev/components 1.6.7 → 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) {