@smartsoft001/crud-shell-angular 2.202.0 → 2.203.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.
|
@@ -4728,13 +4728,20 @@ var ListComponent = class ListComponent extends CreateDynamicComponent("crud-lis
|
|
|
4728
4728
|
getLinks: () => this.links()
|
|
4729
4729
|
}
|
|
4730
4730
|
}),
|
|
4731
|
-
sort: this.
|
|
4731
|
+
sort: this.getListSort(newFilter)
|
|
4732
4732
|
});
|
|
4733
4733
|
this.cd.detectChanges();
|
|
4734
4734
|
this.initCloseMenu();
|
|
4735
4735
|
this.initTopComponent(compiledComponents);
|
|
4736
4736
|
this.refreshDynamicInstance();
|
|
4737
4737
|
}
|
|
4738
|
+
getListSort(filter) {
|
|
4739
|
+
if (!this.config.sort) return void 0;
|
|
4740
|
+
return {
|
|
4741
|
+
default: filter?.sortBy,
|
|
4742
|
+
defaultDesc: filter?.sortDesc
|
|
4743
|
+
};
|
|
4744
|
+
}
|
|
4738
4745
|
initCloseMenu() {
|
|
4739
4746
|
this.router.events.pipe(this.takeUntilDestroy).subscribe(async () => {
|
|
4740
4747
|
await this.clear();
|