@recursyve/nice-data-filter-kit 15.2.0 → 15.3.0

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.
@@ -2770,6 +2770,7 @@ const initialValue = {
2770
2770
  },
2771
2771
  baseRules: [],
2772
2772
  queryParams: null,
2773
+ orderColumns: null,
2773
2774
  resetResult: false
2774
2775
  };
2775
2776
  class NiceFilterViewStore extends EntityStore {
@@ -4810,6 +4811,8 @@ class NiceFilterMatSortSortingDirective extends NiceNestedFilterView {
4810
4811
  this.sort.active = order.column;
4811
4812
  });
4812
4813
  this.sort.sortChange.pipe(takeUntil(this.unsubscribeAll$)).subscribe((sort) => {
4814
+ const { orderColumns } = this.filterViewQuery.getValue();
4815
+ const column = orderColumns?.[sort.active];
4813
4816
  if (!sort.direction) {
4814
4817
  this.filterViewService.patchParameters({
4815
4818
  order: null
@@ -4818,8 +4821,9 @@ class NiceFilterMatSortSortingDirective extends NiceNestedFilterView {
4818
4821
  else {
4819
4822
  this.filterViewService.patchParameters({
4820
4823
  order: {
4821
- column: sort.active,
4822
- direction: sort.direction
4824
+ column: column?.column ?? sort.active,
4825
+ direction: sort.direction,
4826
+ nullLast: column?.nullLast
4823
4827
  }
4824
4828
  });
4825
4829
  }