@osovitny/anatoly 2.0.34 → 2.0.36
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/bundles/osovitny-anatoly.umd.js +16 -4
- package/bundles/osovitny-anatoly.umd.js.map +1 -1
- package/bundles/osovitny-anatoly.umd.min.js +1 -1
- package/bundles/osovitny-anatoly.umd.min.js.map +1 -1
- package/esm2015/lib/core/services/loading.service.js +7 -1
- package/esm2015/lib/data/base/base-api.service.js +7 -1
- package/esm2015/lib/data/base/grid/base-grid-edit.service.js +6 -6
- package/fesm2015/osovitny-anatoly.js +17 -5
- package/fesm2015/osovitny-anatoly.js.map +1 -1
- package/lib/core/services/loading.service.d.ts +1 -0
- package/lib/data/base/base-api.service.d.ts +2 -0
- package/lib/data/base/grid/base-grid-edit.service.d.ts +1 -1
- package/osovitny-anatoly.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -448,6 +448,12 @@
|
|
|
448
448
|
_this.isFreezed = false;
|
|
449
449
|
}, timeout);
|
|
450
450
|
};
|
|
451
|
+
LoadingService.prototype.reset = function () {
|
|
452
|
+
if (this.counter > 0) {
|
|
453
|
+
this.next(false);
|
|
454
|
+
}
|
|
455
|
+
this.counter = 0;
|
|
456
|
+
};
|
|
451
457
|
return LoadingService;
|
|
452
458
|
}(rxjs.BehaviorSubject));
|
|
453
459
|
LoadingService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LoadingService_Factory() { return new LoadingService(); }, token: LoadingService, providedIn: "root" });
|
|
@@ -1422,6 +1428,12 @@
|
|
|
1422
1428
|
return this.http.delete(url, { responseType: responseType });
|
|
1423
1429
|
};
|
|
1424
1430
|
//gets
|
|
1431
|
+
BaseApiService.prototype.getById = function (id) {
|
|
1432
|
+
return this.get('getById', { id: id });
|
|
1433
|
+
};
|
|
1434
|
+
BaseApiService.prototype.getAll = function (data) {
|
|
1435
|
+
return this.get('getAll', data).pipe(operators.map(function (res) { return res; }));
|
|
1436
|
+
};
|
|
1425
1437
|
BaseApiService.prototype.getExternalTextFile = function (url) {
|
|
1426
1438
|
return this.http.get(url);
|
|
1427
1439
|
};
|
|
@@ -1825,13 +1837,13 @@
|
|
|
1825
1837
|
BaseGridEditService.prototype.delete = function (data, sucess) {
|
|
1826
1838
|
var _this = this;
|
|
1827
1839
|
this.reset();
|
|
1828
|
-
this.
|
|
1829
|
-
|
|
1830
|
-
_this.read();
|
|
1831
|
-
}, function () {
|
|
1840
|
+
var url = this.baseUrl + "/delete" + this.serializeParams(data);
|
|
1841
|
+
return this.http.delete(url).subscribe(function () {
|
|
1832
1842
|
_this.read();
|
|
1833
1843
|
if (sucess)
|
|
1834
1844
|
sucess();
|
|
1845
|
+
}, function () {
|
|
1846
|
+
_this.read();
|
|
1835
1847
|
});
|
|
1836
1848
|
};
|
|
1837
1849
|
BaseGridEditService.prototype.post = function (action, data) {
|