@smartsoft001/crud-shell-angular 2.202.0 → 2.204.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.
|
@@ -4206,7 +4206,7 @@ var ItemComponent = class ItemComponent extends CreateDynamicComponent("crud-ite
|
|
|
4206
4206
|
this.getInvalidFields(form, invalidFields, "");
|
|
4207
4207
|
this.toastService.info({
|
|
4208
4208
|
title: this.translateService.instant("INPUT.ERRORS.requires"),
|
|
4209
|
-
message: invalidFields.slice(0, 3).join("
|
|
4209
|
+
message: invalidFields.slice(0, 3).join(", ")
|
|
4210
4210
|
});
|
|
4211
4211
|
return true;
|
|
4212
4212
|
}
|
|
@@ -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();
|