tnx-shared 5.0.43 → 5.0.45
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 +24 -2
- 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/data-list-base.d.ts.map +1 -1
- package/esm2015/classes/base/data-list-base.js +6 -2
- package/esm2015/services/base.service.js +16 -1
- package/fesm2015/tnx-shared.js +20 -1
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/base.service.d.ts +1 -0
- package/services/base.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
|
@@ -6488,6 +6488,24 @@
|
|
|
6488
6488
|
});
|
|
6489
6489
|
return this.postGridInfo(apiUrl, gridInfo);
|
|
6490
6490
|
};
|
|
6491
|
+
BaseService.prototype.getAllByFilter = function (filters, fields, sorts, plusUrl) {
|
|
6492
|
+
if (fields === void 0) { fields = ''; }
|
|
6493
|
+
if (sorts === void 0) { sorts = []; }
|
|
6494
|
+
if (plusUrl === void 0) { plusUrl = ''; }
|
|
6495
|
+
var apiUrl = this.apiGetAll;
|
|
6496
|
+
if (plusUrl != null && plusUrl != '')
|
|
6497
|
+
apiUrl += "/" + plusUrl;
|
|
6498
|
+
var gridInfo = new GridInfo({
|
|
6499
|
+
fields: fields,
|
|
6500
|
+
pageInfo: {
|
|
6501
|
+
page: 1,
|
|
6502
|
+
pageSize: 9999
|
|
6503
|
+
},
|
|
6504
|
+
sorts: sorts,
|
|
6505
|
+
filters: filters ? filters : []
|
|
6506
|
+
});
|
|
6507
|
+
return this.postGridInfo(apiUrl, gridInfo);
|
|
6508
|
+
};
|
|
6491
6509
|
BaseService.prototype.getAllByGridInfo = function (gridInfo, plusUrl) {
|
|
6492
6510
|
if (plusUrl === void 0) { plusUrl = ''; }
|
|
6493
6511
|
var apiUrl = this.apiGetAll;
|
|
@@ -11550,7 +11568,7 @@
|
|
|
11550
11568
|
arrPromiseDontNeedWait = [];
|
|
11551
11569
|
arrSchemaDontNeedWait = [];
|
|
11552
11570
|
_loop_1 = function (schema) {
|
|
11553
|
-
var field, arrValue_1, promise, result, funcGetLabel_1;
|
|
11571
|
+
var field, arrValue_1, promise, filters, result, funcGetLabel_1;
|
|
11554
11572
|
return __generator(this, function (_a) {
|
|
11555
11573
|
switch (_a.label) {
|
|
11556
11574
|
case 0:
|
|
@@ -11585,7 +11603,11 @@
|
|
|
11585
11603
|
promise = schema.baseService.getDataDropdown(schema.groupCode, arrValue_1, this_1.createDropdownOptions(schema));
|
|
11586
11604
|
}
|
|
11587
11605
|
else {
|
|
11588
|
-
|
|
11606
|
+
filters = [this_1.newFilter(schema.valueField, exports.Operator.in, arrValue_1)];
|
|
11607
|
+
if (schema.modifyFilter) {
|
|
11608
|
+
schema.modifyFilter(filters);
|
|
11609
|
+
}
|
|
11610
|
+
promise = schema.baseService.getDataDropdownByFilter(filters, this_1.createDropdownOptions(schema));
|
|
11589
11611
|
}
|
|
11590
11612
|
if (!(schema.order != null)) return [3 /*break*/, 2];
|
|
11591
11613
|
return [4 /*yield*/, promise];
|