@smartsoft001/crud-shell-angular 1.1.753 → 1.1.754
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/pages/list/list.component.mjs +6 -1
- package/fesm2015/smartsoft001-crud-shell-angular.mjs +5 -0
- package/fesm2015/smartsoft001-crud-shell-angular.mjs.map +1 -1
- package/fesm2020/smartsoft001-crud-shell-angular.mjs +4 -0
- package/fesm2020/smartsoft001-crud-shell-angular.mjs.map +1 -1
- package/lib/pages/list/list.component.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1861,6 +1861,7 @@ class ListComponent extends CreateDynamicComponent('crud-list-page') {
|
|
|
1861
1861
|
}
|
|
1862
1862
|
async ngOnInit() {
|
|
1863
1863
|
await this.pageService.checkPermissions();
|
|
1864
|
+
const options = getModelOptions(this.config.type);
|
|
1864
1865
|
let newFilter = null;
|
|
1865
1866
|
if (this.config.list?.resetQuery === 'beforeInit') {
|
|
1866
1867
|
newFilter = {
|
|
@@ -1996,6 +1997,9 @@ class ListComponent extends CreateDynamicComponent('crud-list-page') {
|
|
|
1996
1997
|
? {
|
|
1997
1998
|
provider: {
|
|
1998
1999
|
invoke: (id) => this.facade.delete(id),
|
|
2000
|
+
check: (item) => {
|
|
2001
|
+
return options?.remove?.enabled ? SpecificationService.valid(item, options?.remove?.enabled) : true;
|
|
2002
|
+
}
|
|
1999
2003
|
},
|
|
2000
2004
|
}
|
|
2001
2005
|
: null,
|