@osovitny/anatoly 2.0.34 → 2.0.35
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 +12 -0
- 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/fesm2015/osovitny-anatoly.js +12 -0
- 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/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
|
};
|