@limetech/lime-elements 38.39.2 → 38.39.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [38.39.3](https://github.com/Lundalogik/lime-elements/compare/v38.39.2...v38.39.3) (2026-01-28)
2
+
3
+ ### Bug Fixes
4
+
5
+
6
+ * **table:** fix remote sorting in table ([d9efe87](https://github.com/Lundalogik/lime-elements/commit/d9efe87427f7af2b17b0387e6b012e8f7230a1de))
7
+ * **table:** use loading state in sort example ([a8b495e](https://github.com/Lundalogik/lime-elements/commit/a8b495e2c12057e13ab2df95036a5454c1563b8a))
8
+
1
9
  ## [38.39.2](https://github.com/Lundalogik/lime-elements/compare/v38.39.1...v38.39.2) (2026-01-26)
2
10
 
3
11
  ### Bug Fixes
@@ -30810,10 +30810,22 @@ const Table = class {
30810
30810
  return this.mode === 'remote';
30811
30811
  }
30812
30812
  handleDataSorting(sorters) {
30813
+ var _a, _b;
30814
+ const columnSorters = sorters.map(createColumnSorter(this.columns));
30813
30815
  if (this.isRemoteMode()) {
30816
+ const tabulatorPage = (_b = (_a = this.tabulator) === null || _a === void 0 ? void 0 : _a.getPage) === null || _b === void 0 ? void 0 : _b.call(_a);
30817
+ const currentPage = typeof tabulatorPage === 'number' ? tabulatorPage : this.page;
30818
+ const load = {
30819
+ page: currentPage !== null && currentPage !== void 0 ? currentPage : FIRST_PAGE,
30820
+ sorters: columnSorters,
30821
+ };
30822
+ if (!isEqual.isEqual(this.currentLoad, load)) {
30823
+ this.currentSorting = columnSorters;
30824
+ this.currentLoad = load;
30825
+ this.load.emit(load);
30826
+ }
30814
30827
  return;
30815
30828
  }
30816
- const columnSorters = sorters.map(createColumnSorter(this.columns));
30817
30829
  if (columnSorters.length === 0) {
30818
30830
  return;
30819
30831
  }
@@ -30828,7 +30840,7 @@ const Table = class {
30828
30840
  handleRenderComplete() {
30829
30841
  if (this.tabulator && this.shouldSort) {
30830
30842
  this.shouldSort = false;
30831
- this.tabulator.setSort(this.getColumnSorter(this.sorting));
30843
+ this.tabulator.setSort(this.getInitialSorting());
30832
30844
  }
30833
30845
  }
30834
30846
  onClickRow(event, row) {