@solcre-org/core-ui 2.20.9 → 2.20.10

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/README.md CHANGED
@@ -41,6 +41,7 @@ This command will compile your project, and the build artifacts will be placed i
41
41
  Once the project is built, you can publish your library by following these steps:
42
42
 
43
43
  1. Navigate to the `dist` directory:
44
+
44
45
  ```bash
45
46
  cd dist/core-ui-library
46
47
  ```
@@ -10082,6 +10082,7 @@ class TableDataService {
10082
10082
  currentFilterParams = undefined;
10083
10083
  currentPaginationParams = undefined;
10084
10084
  currentCustomParams = undefined;
10085
+ currentSortParams = undefined;
10085
10086
  isPaginationEnabled = true;
10086
10087
  currentCustomArrayKey = undefined;
10087
10088
  isLoading = false;
@@ -10130,6 +10131,7 @@ class TableDataService {
10130
10131
  }
10131
10132
  let params = {
10132
10133
  ...this.currentCustomParams,
10134
+ ...this.currentSortParams,
10133
10135
  ...this.currentFilterParams
10134
10136
  };
10135
10137
  if (this.isPaginationEnabled && this.currentPaginationParams) {
@@ -10150,16 +10152,25 @@ class TableDataService {
10150
10152
  this.loadData(this.currentFilterParams, this.currentPaginationParams, loaderId);
10151
10153
  }
10152
10154
  }
10153
- refreshWithFilters(filterParams, loaderId) {
10155
+ refreshWithFilters(filterParams, loaderId, sortParams) {
10154
10156
  if (this.isPaginationEnabled) {
10155
10157
  this.currentPaginationParams = {
10156
10158
  page: this.currentPaginationParams?.page || 1,
10157
10159
  size: this.currentPaginationParams?.size || TableDataService.DEFAULT_PAGE_SIZE
10158
10160
  };
10159
10161
  }
10162
+ if (sortParams) {
10163
+ this.currentSortParams = sortParams;
10164
+ }
10160
10165
  const paginationParams = this.isPaginationEnabled ? this.currentPaginationParams : undefined;
10161
10166
  this.loadData(filterParams, paginationParams, loaderId);
10162
10167
  }
10168
+ updateSortParams(sortParams) {
10169
+ this.currentSortParams = sortParams;
10170
+ }
10171
+ updatePaginationParams(paginationParams) {
10172
+ this.currentPaginationParams = paginationParams;
10173
+ }
10163
10174
  updateDisplayedData(filteredData, enablePagination, paginationService, tableId, itemsLoaded) {
10164
10175
  if (!this.currentEndpoint) {
10165
10176
  let displayed;
@@ -13938,7 +13949,7 @@ class GenericTableComponent {
13938
13949
  this.displayedData.set(orderedData);
13939
13950
  }
13940
13951
  else if (this.endpoint() && originalData.length === 0) {
13941
- this.tableDataService.refreshWithFilters();
13952
+ this.tableDataService.refreshWithFilters(undefined, undefined, {});
13942
13953
  }
13943
13954
  }
13944
13955
  sortCurrentData(data, columnKey) {
@@ -14038,7 +14049,8 @@ class GenericTableComponent {
14038
14049
  next: (success) => {
14039
14050
  if (success) {
14040
14051
  this.dataUpdated.emit(row);
14041
- this.tableDataService.refreshWithFilters();
14052
+ const sortParams = this.tableSortService.generateServerSortParams();
14053
+ this.tableDataService.refreshWithFilters(undefined, undefined, sortParams);
14042
14054
  }
14043
14055
  },
14044
14056
  error: (error) => {
@@ -14791,8 +14803,9 @@ class GenericTableComponent {
14791
14803
  transformedFilters.forEach((value, key) => {
14792
14804
  filterParams[key] = value;
14793
14805
  });
14806
+ const sortParams = this.tableSortService.generateServerSortParams();
14794
14807
  this.startLoaderTimeout(this.FILTER_LOADER_ID);
14795
- this.tableDataService.refreshWithFilters(filterParams, this.FILTER_LOADER_ID);
14808
+ this.tableDataService.refreshWithFilters(filterParams, this.FILTER_LOADER_ID, sortParams);
14796
14809
  this.filterService.setCustomFiltersSilent(currentFilters);
14797
14810
  }
14798
14811
  else {
@@ -14812,8 +14825,9 @@ class GenericTableComponent {
14812
14825
  handleFiltersCleared() {
14813
14826
  this.currentFilterValues.set(new Map());
14814
14827
  if (this.endpoint()) {
14828
+ const sortParams = this.tableSortService.generateServerSortParams();
14815
14829
  this.startLoaderTimeout(this.FILTER_LOADER_ID);
14816
- this.tableDataService.refreshWithFilters({}, this.FILTER_LOADER_ID);
14830
+ this.tableDataService.refreshWithFilters({}, this.FILTER_LOADER_ID, sortParams);
14817
14831
  this.filterService.setCustomFiltersSilent(new Map());
14818
14832
  this.filterService.setGlobalFilterSilent('');
14819
14833
  }
@@ -14979,6 +14993,10 @@ class GenericTableComponent {
14979
14993
  const paginationParams = this.enablePagination()
14980
14994
  ? this.paginationService.getCurrentPaginationParams(this.tableId)
14981
14995
  : {};
14996
+ this.tableDataService.updateSortParams(sortParams);
14997
+ if (this.enablePagination() && 'page' in paginationParams && 'size' in paginationParams) {
14998
+ this.tableDataService.updatePaginationParams(paginationParams);
14999
+ }
14982
15000
  const cleanedCustomParams = this.getCleanedCustomParams(sortParams);
14983
15001
  const allParams = {
14984
15002
  ...cleanedCustomParams,
@@ -17181,11 +17199,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
17181
17199
  // Este archivo es generado automáticamente por scripts/update-version.js
17182
17200
  // No edites manualmente este archivo
17183
17201
  const VERSION = {
17184
- full: '2.20.9',
17202
+ full: '2.20.10',
17185
17203
  major: 2,
17186
17204
  minor: 20,
17187
- patch: 9,
17188
- timestamp: '2026-02-03T15:24:39.625Z',
17205
+ patch: 10,
17206
+ timestamp: '2026-02-03T16:21:27.114Z',
17189
17207
  buildDate: '3/2/2026'
17190
17208
  };
17191
17209