tnx-shared 5.3.355 → 5.3.357

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.
@@ -744,12 +744,24 @@
744
744
  }
745
745
  return next();
746
746
  }
747
+ function __rewriteRelativeImportExtension(path, preserveJsx) {
748
+ if (typeof path === "string" && /^\.\.?\//.test(path)) {
749
+ return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
750
+ return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
751
+ });
752
+ }
753
+ return path;
754
+ }
747
755
  var tslib_es6 = {
748
756
  __extends: __extends,
749
757
  __assign: __assign,
750
758
  __rest: __rest,
751
759
  __decorate: __decorate,
752
760
  __param: __param,
761
+ __esDecorate: __esDecorate,
762
+ __runInitializers: __runInitializers,
763
+ __propKey: __propKey,
764
+ __setFunctionName: __setFunctionName,
753
765
  __metadata: __metadata,
754
766
  __awaiter: __awaiter,
755
767
  __generator: __generator,
@@ -772,6 +784,7 @@
772
784
  __classPrivateFieldIn: __classPrivateFieldIn,
773
785
  __addDisposableResource: __addDisposableResource,
774
786
  __disposeResources: __disposeResources,
787
+ __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,
775
788
  };
776
789
 
777
790
  exports.EnumLoaiVanBanBase = void 0;
@@ -1684,6 +1697,7 @@
1684
1697
  _this.showEditLink = true;
1685
1698
  _this.titleUnPicked = 'Danh sách các mục chưa chọn';
1686
1699
  _this.titlePicked = 'Danh sách các mục đã chọn';
1700
+ _this.fieldsPicked = null;
1687
1701
  for (var key in init) {
1688
1702
  _this[key] = init[key];
1689
1703
  }
@@ -2583,7 +2597,7 @@
2583
2597
  var LogColumn = /** @class */ (function () {
2584
2598
  function LogColumn(init) {
2585
2599
  this.visible = true;
2586
- this.enumLogType = 1;
2600
+ this.enumLogType = exports.EnumLogType.Normal;
2587
2601
  for (var key in init) {
2588
2602
  this[key] = init[key];
2589
2603
  }
@@ -46895,14 +46909,14 @@
46895
46909
  this.onPick.emit(data);
46896
46910
  };
46897
46911
  EntityPickerDataComponent.prototype.pickAll = function () {
46898
- var _a;
46912
+ var _a, _b;
46899
46913
  return __awaiter(this, void 0, void 0, function () {
46900
46914
  var lstData;
46901
- return __generator(this, function (_b) {
46902
- switch (_b.label) {
46903
- case 0: return [4 /*yield*/, this.setting.baseService.getDataCustomRoute(this.plusUrl, this.currentGridInfo.filters, this.control.valueField, this.currentGridInfo.sorts, -1)];
46915
+ return __generator(this, function (_c) {
46916
+ switch (_c.label) {
46917
+ case 0: return [4 /*yield*/, this.setting.baseService.getDataCustomRoute(this.plusUrl, this.currentGridInfo.filters, (_a = this.control.fieldsPicked) !== null && _a !== void 0 ? _a : this.control.valueField, this.currentGridInfo.sorts, -1)];
46904
46918
  case 1:
46905
- lstData = (_a = (_b.sent()).data) !== null && _a !== void 0 ? _a : [];
46919
+ lstData = (_b = (_c.sent()).data) !== null && _b !== void 0 ? _b : [];
46906
46920
  if (lstData.length) {
46907
46921
  this.onPickAll.emit(lstData);
46908
46922
  }
@@ -46917,8 +46931,8 @@
46917
46931
  EntityPickerDataComponent.prototype.modifyGridInfo = function (gridInfo) {
46918
46932
  return __awaiter(this, void 0, void 0, function () {
46919
46933
  var allow;
46920
- return __generator(this, function (_b) {
46921
- switch (_b.label) {
46934
+ return __generator(this, function (_c) {
46935
+ switch (_c.label) {
46922
46936
  case 0:
46923
46937
  gridInfo.fields = this.advanceData.fields;
46924
46938
  if (this.control.multiple) {
@@ -46933,20 +46947,20 @@
46933
46947
  }
46934
46948
  return [4 /*yield*/, appendDefaultFilter(gridInfo.filters, this.control.defaultFilters)];
46935
46949
  case 1:
46936
- _b.sent();
46950
+ _c.sent();
46937
46951
  if (!this.control.modifyFilter) return [3 /*break*/, 3];
46938
46952
  return [4 /*yield*/, this.control.modifyFilter(gridInfo.filters, this, this.currentNode)];
46939
46953
  case 2:
46940
- allow = _b.sent();
46954
+ allow = _c.sent();
46941
46955
  if (allow === false)
46942
46956
  return [2 /*return*/, false];
46943
- _b.label = 3;
46957
+ _c.label = 3;
46944
46958
  case 3:
46945
46959
  if (!this.control.filterWhileProcess) return [3 /*break*/, 5];
46946
46960
  return [4 /*yield*/, appendDefaultFilter(gridInfo.filters, this.control.filterWhileProcess)];
46947
46961
  case 4:
46948
- _b.sent();
46949
- _b.label = 5;
46962
+ _c.sent();
46963
+ _c.label = 5;
46950
46964
  case 5:
46951
46965
  // if (this.setting.columnSetting.sortField) {
46952
46966
  // gridInfo.sorts.push(<Sort>{
@@ -46965,7 +46979,7 @@
46965
46979
  EntityPickerDataComponent.prototype.beforeRenderDataSource = function (data) {
46966
46980
  return __awaiter(this, void 0, void 0, function () {
46967
46981
  var _this = this;
46968
- return __generator(this, function (_b) {
46982
+ return __generator(this, function (_c) {
46969
46983
  data.forEach(function (item) {
46970
46984
  item._dropdownvalue = _this.control.valueField;
46971
46985
  });
@@ -46977,14 +46991,14 @@
46977
46991
  return __awaiter(this, void 0, void 0, function () {
46978
46992
  var filterCheckExist, lstDataCheckExist_1;
46979
46993
  var _this = this;
46980
- return __generator(this, function (_b) {
46981
- switch (_b.label) {
46994
+ return __generator(this, function (_c) {
46995
+ switch (_c.label) {
46982
46996
  case 0:
46983
46997
  if (!this.control.afterGetDataUnPicked) return [3 /*break*/, 2];
46984
46998
  return [4 /*yield*/, this.control.afterGetDataUnPicked(this.model.dataSource, this)];
46985
46999
  case 1:
46986
- _b.sent();
46987
- _b.label = 2;
47000
+ _c.sent();
47001
+ _c.label = 2;
46988
47002
  case 2:
46989
47003
  if (!(this.searchData && this.showFormAdvancedSearch
46990
47004
  && this.model.dataSource.length != this.searchData.lstData.length
@@ -46992,12 +47006,12 @@
46992
47006
  filterCheckExist = [this.newFilter(this.searchData.fieldFilter, exports.Operator.in, this.searchData.lstData)];
46993
47007
  return [4 /*yield*/, this.setting.baseService.getAllWithIgnore(filterCheckExist, this.searchData.fieldFilter)];
46994
47008
  case 3:
46995
- lstDataCheckExist_1 = (_b.sent()).data;
47009
+ lstDataCheckExist_1 = (_c.sent()).data;
46996
47010
  this.lstDataNotExist = this.searchData.lstData.filter(function (p) { return !lstDataCheckExist_1.some(function (c) { return c[_this.searchData.fieldFilter] == p; }); });
46997
47011
  return [3 /*break*/, 5];
46998
47012
  case 4:
46999
47013
  this.showFormAdvancedSearch = false;
47000
- _b.label = 5;
47014
+ _c.label = 5;
47001
47015
  case 5: return [2 /*return*/];
47002
47016
  }
47003
47017
  });