tnx-shared 5.3.257 → 5.3.258
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/tnx-shared.umd.js +8 -6
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/classes/base/list-base.d.ts +2 -0
- package/classes/base/list-base.d.ts.map +1 -1
- package/esm2015/classes/base/list-base.js +3 -3
- package/esm2015/services/base.service.js +5 -5
- package/fesm2015/tnx-shared.js +6 -6
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/base.service.d.ts +2 -2
- package/services/base.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
|
@@ -8693,8 +8693,9 @@
|
|
|
8693
8693
|
var url = plusUrl ? this.serviceUri + "/" + plusUrl + "/" + id : this.serviceUri + "/" + id;
|
|
8694
8694
|
return this._http.put(url, item).toPromise();
|
|
8695
8695
|
};
|
|
8696
|
-
BaseService.prototype.delete = function (id) {
|
|
8697
|
-
|
|
8696
|
+
BaseService.prototype.delete = function (id, plusUrl) {
|
|
8697
|
+
if (plusUrl === void 0) { plusUrl = ''; }
|
|
8698
|
+
var url = plusUrl ? this.serviceUri + "/" + plusUrl + "/" + id : this.serviceUri + "/" + id;
|
|
8698
8699
|
return this._http.delete(url).toPromise();
|
|
8699
8700
|
};
|
|
8700
8701
|
BaseService.prototype.deleteById = function (id) {
|
|
@@ -8702,8 +8703,9 @@
|
|
|
8702
8703
|
var url = this.serviceUri + "/" + id;
|
|
8703
8704
|
return this._http.delete(url).pipe(operators.catchError(function (err) { return _this.handleError(err, _this._injector); })).toPromise();
|
|
8704
8705
|
};
|
|
8705
|
-
BaseService.prototype.deleteMany = function (lstId) {
|
|
8706
|
-
|
|
8706
|
+
BaseService.prototype.deleteMany = function (lstId, plusUrl) {
|
|
8707
|
+
if (plusUrl === void 0) { plusUrl = ''; }
|
|
8708
|
+
var url = plusUrl ? this.serviceUri + "/DeleteManyAsync/" + plusUrl + "/" + lstId : this.serviceUri + "/DeleteManyAsync/" + lstId;
|
|
8707
8709
|
return this._http.delete(url).toPromise();
|
|
8708
8710
|
};
|
|
8709
8711
|
BaseService.prototype.defaultGet = function (apiUrl, options) {
|
|
@@ -27540,7 +27542,7 @@
|
|
|
27540
27542
|
};
|
|
27541
27543
|
};
|
|
27542
27544
|
ListBase.prototype.getPromiseDeleteItem = function (rowData) {
|
|
27543
|
-
return this.setting.baseService.delete(rowData.id);
|
|
27545
|
+
return this.setting.baseService.delete(rowData.id, this.deletePlusUrl);
|
|
27544
27546
|
};
|
|
27545
27547
|
ListBase.prototype._delete = function (rowData) {
|
|
27546
27548
|
var _this = this;
|
|
@@ -27575,7 +27577,7 @@
|
|
|
27575
27577
|
};
|
|
27576
27578
|
ListBase.prototype.getPromiseDeleteItems = function (items) {
|
|
27577
27579
|
var ids = items.map(function (x) { return x.id; }).join(',');
|
|
27578
|
-
return this.setting.baseService.deleteMany(ids);
|
|
27580
|
+
return this.setting.baseService.deleteMany(ids, this.deleteManyPlusUrl);
|
|
27579
27581
|
};
|
|
27580
27582
|
ListBase.prototype._deleteMultiple = function (items) {
|
|
27581
27583
|
var _this = this;
|