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.
- package/bundles/tnx-shared.umd.js +17 -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/form-schema.d.ts +1 -0
- package/classes/form-schema.d.ts.map +1 -1
- package/components/common-search-form/common-search-form.component.d.ts.map +1 -1
- package/esm2015/classes/form-schema.js +2 -1
- package/esm2015/components/common-search-form/common-search-form.component.js +16 -3
- package/fesm2015/tnx-shared.js +16 -2
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -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
|
-
|
|
33365
|
-
|
|
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) {
|