tnx-shared 5.3.373 → 5.3.374

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.
@@ -1134,6 +1134,7 @@
1134
1134
  this.mdWidthCommonSearch = 3;
1135
1135
  this.useCommonSearch = false;
1136
1136
  this.useCommonFullTextSearch = true;
1137
+ this.arrFullTextSearch = [];
1137
1138
  this.hiddenSearch = false;
1138
1139
  this.hiddenAuthorizeButton = false;
1139
1140
  this.suffixAuthorizeCode = ''; // thêm hậu tố mã code trong chức năng Phân quyền nút (phục vụ case crudList này nằm trong màn hình popup)
@@ -33344,6 +33345,7 @@
33344
33345
  return _this;
33345
33346
  }
33346
33347
  CommonSearchFormComponent.prototype.ngOnInit = function () {
33348
+ var _this = this;
33347
33349
  if (!this.parentSetting.useCommonFullTextSearch) {
33348
33350
  this.parentSetting.disableLazyLoadCommonSearch = true;
33349
33351
  }
@@ -33360,9 +33362,22 @@
33360
33362
  return 0;
33361
33363
  });
33362
33364
  if (this.parentSetting.useCommonFullTextSearch) {
33365
+ var arrLabel_1 = [];
33363
33366
  var lstTextSearchControl = columnFilters.filter(function (p) { return p.fullTextSearch; });
33364
- this.lstTextControl = lstTextSearchControl.map(function (p) { return p.field; });
33365
- this.searchBoxTooltip += "" + (lstTextSearchControl.map(function (x) { return x.label; })).join(', ');
33367
+ if (lstTextSearchControl.length) {
33368
+ lstTextSearchControl.forEach(function (item) {
33369
+ arrLabel_1.push(item.label);
33370
+ _this.lstTextControl.push(item.field);
33371
+ });
33372
+ }
33373
+ // fullTextSearch custom
33374
+ if (this.parentSetting.arrFullTextSearch.length) {
33375
+ this.parentSetting.arrFullTextSearch.forEach(function (item) {
33376
+ arrLabel_1.push(item.name);
33377
+ _this.lstTextControl.push(item.field);
33378
+ });
33379
+ }
33380
+ this.searchBoxTooltip += arrLabel_1.join(', ');
33366
33381
  this._index = 2;
33367
33382
  }
33368
33383
  if (this.isCustomGenerateSearch) {