commons-shared-web-ui 0.0.82 → 0.0.83

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.
@@ -13763,16 +13763,18 @@ class SmartTableComponent {
13763
13763
  const qpConfig = this.config.queryParamsConfig;
13764
13764
  const pageKey = qpConfig.pageKey || 'page';
13765
13765
  const sizeKey = qpConfig.sizeKey || 'pageSize';
13766
+ const sortKey = qpConfig.sortKey || 'sortBy';
13767
+ const orderKey = qpConfig.orderKey || 'orderBy';
13766
13768
  const pageIndex = this.currentPage + (qpConfig.pageIndexOffset || 0);
13767
13769
  let paramsObj = {
13768
13770
  [pageKey]: pageIndex.toString(),
13769
13771
  [sizeKey]: (this.config.pagination?.pageSize || 10).toString()
13770
13772
  };
13771
13773
  if (this.activeSort.key)
13772
- paramsObj['sortBy'] = this.activeSort.key;
13774
+ paramsObj[sortKey] = this.activeSort.key;
13773
13775
  // Only include orderBy if explicitly configured or user has sorted a column
13774
13776
  if (this.isSortActive && this.activeSort.direction)
13775
- paramsObj['orderBy'] = this.activeSort.direction;
13777
+ paramsObj[orderKey] = this.activeSort.direction;
13776
13778
  // Search Handling
13777
13779
  if (this.searchTerm) {
13778
13780
  const searchConfig = this.config.searchConfig;