tnx-shared 5.1.531 → 5.1.532
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 +14 -4
- 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 +4 -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 +5 -1
- package/esm2015/components/common-search-form/common-search-form.component.js +11 -5
- package/fesm2015/tnx-shared.js +14 -4
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -1201,6 +1201,7 @@
|
|
|
1201
1201
|
_this.fieldAlias = '';
|
|
1202
1202
|
_this.data = {};
|
|
1203
1203
|
_this.isHtmlLabel = false;
|
|
1204
|
+
_this.order = 0;
|
|
1204
1205
|
for (var key in init) {
|
|
1205
1206
|
_this[key] = init[key];
|
|
1206
1207
|
}
|
|
@@ -2097,6 +2098,9 @@
|
|
|
2097
2098
|
_this.includeSelect = true;
|
|
2098
2099
|
_this.hasOperatorCanBo = false;
|
|
2099
2100
|
_this.minimizeFilter = false;
|
|
2101
|
+
_this.forceLoading = false; // cho phép load lại crud-list khi column này không phải là property của baservice (dùng trong common-search)
|
|
2102
|
+
_this.autoDisplayFirst = false;
|
|
2103
|
+
_this.notInCrudForm = false;
|
|
2100
2104
|
for (var key in init) {
|
|
2101
2105
|
_this[key] = init[key];
|
|
2102
2106
|
}
|
|
@@ -49562,8 +49566,11 @@
|
|
|
49562
49566
|
if (!(column instanceof TextControlSchema) || column instanceof NumberRangeControlSchema) {
|
|
49563
49567
|
column.onChanged = function (evt) { return _this.handleSearch(null, evt.control.field); };
|
|
49564
49568
|
}
|
|
49569
|
+
if (column instanceof NumberRangeControlSchema) {
|
|
49570
|
+
_this.lstNumberRangeControl.push(column.field);
|
|
49571
|
+
}
|
|
49565
49572
|
});
|
|
49566
|
-
this.setting.schema = this.addSearchBox(this.parentSetting.commonSchemas);
|
|
49573
|
+
this.setting.schema = this.addSearchBox(this.parentSetting.commonSchemas.sort(function (prev, next) { return prev.order - next.order; }));
|
|
49567
49574
|
}
|
|
49568
49575
|
else {
|
|
49569
49576
|
this.setting.schema = this.genFormSchema(columnFilters);
|
|
@@ -49582,7 +49589,7 @@
|
|
|
49582
49589
|
var _this = this;
|
|
49583
49590
|
var result = [];
|
|
49584
49591
|
columns.forEach(function (column) {
|
|
49585
|
-
if (!column.isInTable) {
|
|
49592
|
+
if (!column.isInTable || !column.includeSelect) {
|
|
49586
49593
|
_this.lstControlNotIn.push(column.field);
|
|
49587
49594
|
}
|
|
49588
49595
|
var isBool = column.dataType == exports.DataType.boolean;
|
|
@@ -49609,7 +49616,9 @@
|
|
|
49609
49616
|
_this.formControls[bindingFilterVal]._component.filterFromParents = [];
|
|
49610
49617
|
_this.formControls[bindingFilterVal]._component._getDataSource();
|
|
49611
49618
|
}
|
|
49612
|
-
|
|
49619
|
+
if ((!column.includeSelect || !column.isInTable) && !column.forceLoading) {
|
|
49620
|
+
return;
|
|
49621
|
+
}
|
|
49613
49622
|
}
|
|
49614
49623
|
_this.handleSearch();
|
|
49615
49624
|
} })));
|
|
@@ -49682,13 +49691,14 @@
|
|
|
49682
49691
|
}
|
|
49683
49692
|
if (!data) {
|
|
49684
49693
|
data = this.model.data;
|
|
49694
|
+
var lstFilters_1 = this._crudService.getFilterFromTemplate(this.templateFilter, data);
|
|
49685
49695
|
if (!this.isAddDefaultValues && Object.keys(this.defaultValues).length) {
|
|
49686
49696
|
data = Object.assign(data, this.defaultValues);
|
|
49687
49697
|
this.isAddDefaultValues = true;
|
|
49688
49698
|
}
|
|
49689
49699
|
if (this.isCustomGenerateSearch) {
|
|
49690
49700
|
var rs = {
|
|
49691
|
-
filters: filterFullTextSearch,
|
|
49701
|
+
filters: __spread(lstFilters_1, filterFullTextSearch),
|
|
49692
49702
|
dataForm: Object.assign(Object.assign({}, data), { keywords: this.keywords })
|
|
49693
49703
|
};
|
|
49694
49704
|
if (field) {
|