@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.
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/button/advanced-filters-button.component.mjs +1 -1
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/filter-selection/filter-selection.component.mjs +1 -1
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/utils/advanced-filters.utils.mjs +1 -1
- package/esm2020/lib/components/nice-filter-view/components/export-buttons/export-buttons.component.mjs +1 -1
- package/esm2020/lib/components/nice-filter-view/directives/mat-paginator.mjs +1 -1
- package/esm2020/lib/components/nice-filter-view/directives/mat-sort.mjs +6 -3
- package/esm2020/lib/components/nice-filter-view/models/order-options.model.mjs +2 -0
- package/esm2020/lib/components/nice-filter-view/nice-filter-view.component.mjs +1 -1
- package/esm2020/lib/components/nice-filter-view/store/nice-filter-view.store.mjs +2 -1
- package/fesm2015/recursyve-nice-data-filter-kit.mjs +7 -2
- package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs +6 -2
- package/fesm2020/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/lib/components/nice-filter-view/models/order-options.model.d.ts +7 -0
- package/lib/components/nice-filter-view/store/nice-filter-view.store.d.ts +3 -1
- package/package.json +1 -1
|
@@ -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
|
}
|