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.
@@ -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
- promise = schema.baseService.getDataDropdownByFilter([this_1.newFilter(schema.valueField, exports.Operator.in, arrValue_1)], this_1.createDropdownOptions(schema));
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];