@indigina/kendo 1.1.7 → 1.1.8
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/widgets/entity-list/entity-list.component.mjs +12 -7
- package/fesm2015/indigina-kendo.mjs +29 -29
- package/fesm2015/indigina-kendo.mjs.map +1 -1
- package/fesm2020/indigina-kendo.mjs +9 -5
- package/fesm2020/indigina-kendo.mjs.map +1 -1
- package/lib/widgets/entity-list/entity-list.component.d.ts +11 -11
- package/package.json +1 -1
|
@@ -1892,7 +1892,7 @@ class EntityListComponent {
|
|
|
1892
1892
|
}
|
|
1893
1893
|
this.getFilteredData();
|
|
1894
1894
|
}
|
|
1895
|
-
|
|
1895
|
+
ngOnInit() {
|
|
1896
1896
|
this.gridFields = (this.fields || [])
|
|
1897
1897
|
.concat(this.defaultFields)
|
|
1898
1898
|
.sort((left, right) => (left.position || 0) - (right.position || 0));
|
|
@@ -1901,7 +1901,7 @@ class EntityListComponent {
|
|
|
1901
1901
|
this.route.fragment.subscribe(async (fragment) => {
|
|
1902
1902
|
await this.restoreGridState(new URLSearchParams(fragment));
|
|
1903
1903
|
});
|
|
1904
|
-
this.route.firstChild.params.subscribe(
|
|
1904
|
+
this.route.firstChild.params.subscribe((params) => {
|
|
1905
1905
|
if (params.id) {
|
|
1906
1906
|
this.selected[0] = params.id;
|
|
1907
1907
|
}
|
|
@@ -1990,9 +1990,11 @@ class EntityListComponent {
|
|
|
1990
1990
|
this.loadings--;
|
|
1991
1991
|
});
|
|
1992
1992
|
}
|
|
1993
|
-
|
|
1993
|
+
remove(entity) {
|
|
1994
1994
|
this.loadings++;
|
|
1995
|
-
this.service
|
|
1995
|
+
this.service
|
|
1996
|
+
.delete(entity.id)
|
|
1997
|
+
.pipe(map(() => {
|
|
1996
1998
|
if (this.selected.length &&
|
|
1997
1999
|
this.selected[this.selected.length - 1] === entity.id) {
|
|
1998
2000
|
this.router.navigate(['../'], {
|
|
@@ -2001,8 +2003,10 @@ class EntityListComponent {
|
|
|
2001
2003
|
});
|
|
2002
2004
|
}
|
|
2003
2005
|
this.loadings--;
|
|
2006
|
+
}))
|
|
2007
|
+
.subscribe(() => {
|
|
2008
|
+
this.getData();
|
|
2004
2009
|
});
|
|
2005
|
-
this.getData();
|
|
2006
2010
|
}
|
|
2007
2011
|
getFilter() {
|
|
2008
2012
|
const filter = {
|