tnx-shared 5.3.348 → 5.3.349
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 -3
- 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/base/list-base.d.ts +1 -0
- package/classes/base/list-base.d.ts.map +1 -1
- package/classes/form-schema.d.ts +2 -0
- package/classes/form-schema.d.ts.map +1 -1
- package/esm2015/classes/base/list-base.js +11 -2
- package/esm2015/classes/base/list-component-base.js +2 -2
- package/esm2015/classes/form-schema.js +3 -1
- package/esm2015/services/common.service.js +3 -3
- package/fesm2015/tnx-shared.js +14 -3
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/common.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
|
@@ -1131,6 +1131,7 @@
|
|
|
1131
1131
|
this.hiddenWorkflowHistory = false;
|
|
1132
1132
|
this.allowFilterWorkflowColumn = false;
|
|
1133
1133
|
this.hiddenFunctionColumn = false;
|
|
1134
|
+
this.hidenSortColumn = false;
|
|
1134
1135
|
this.hiddenRefresh = false;
|
|
1135
1136
|
this.hiddenFilterRow = false;
|
|
1136
1137
|
this.hiddenTrinhKy = true;
|
|
@@ -1142,6 +1143,7 @@
|
|
|
1142
1143
|
this.requiredVanBanDiAfterTrinhKy = false;
|
|
1143
1144
|
this.disableLazyLoadCommonSearch = false;
|
|
1144
1145
|
this.isLimitNumberOfLine = true;
|
|
1146
|
+
this.customGetData = false;
|
|
1145
1147
|
this.showExportAll = false;
|
|
1146
1148
|
this.showExportSelectedItems = true;
|
|
1147
1149
|
this.showExportWordSelectedItems = false;
|
|
@@ -4795,8 +4797,8 @@
|
|
|
4795
4797
|
return [startDate, endDate];
|
|
4796
4798
|
};
|
|
4797
4799
|
CommonService.prototype.getStartDayEndDayInMonth = function (month, year) {
|
|
4798
|
-
month
|
|
4799
|
-
year
|
|
4800
|
+
month !== null && month !== void 0 ? month : (month = this.getCurrentMonth());
|
|
4801
|
+
year !== null && year !== void 0 ? year : (year = this.getCurrentYear());
|
|
4800
4802
|
return [new Date(year, month, 1), new Date(year, month + 1, 0)];
|
|
4801
4803
|
};
|
|
4802
4804
|
CommonService.prototype.addHtmlContentWithTagAround = function (lstTag, className, tagAround, attributes) {
|
|
@@ -22947,7 +22949,7 @@
|
|
|
22947
22949
|
if (!this.serviceCode && this.setting.baseService) {
|
|
22948
22950
|
this.serviceCode = this.setting.baseService.serviceCode;
|
|
22949
22951
|
}
|
|
22950
|
-
this.isBtnReady = this.setting.hiddenAuthorizeButton;
|
|
22952
|
+
this.isBtnReady = this.setting.hiddenAuthorizeButton || this.setting.customGetData;
|
|
22951
22953
|
if (this.authorizePath) {
|
|
22952
22954
|
this.authorizePaths[ComCtxConstants.COMMON.ADD] = this.authorizePath + "/ADD";
|
|
22953
22955
|
this.authorizePaths[ComCtxConstants.COMMON.EDIT] = this.authorizePath + "/EDIT";
|
|
@@ -27157,6 +27159,7 @@
|
|
|
27157
27159
|
if (this.setting.cols) {
|
|
27158
27160
|
this.setting.cols = this.setting.cols.filter(function (q) { return !q.removeOnInit; });
|
|
27159
27161
|
}
|
|
27162
|
+
this.setting.customGetData = this.customGetData;
|
|
27160
27163
|
this.mergeInfoToColumnSchema();
|
|
27161
27164
|
this.generateFieldSearchText();
|
|
27162
27165
|
if (!this.setting.baseService) {
|
|
@@ -27189,6 +27192,9 @@
|
|
|
27189
27192
|
if (!this.setting.stickyColumn)
|
|
27190
27193
|
constWidth = 0;
|
|
27191
27194
|
this.setting.cols.forEach(function (col) {
|
|
27195
|
+
if (_this.setting.hidenSortColumn) {
|
|
27196
|
+
col.sort = false;
|
|
27197
|
+
}
|
|
27192
27198
|
if (col.isPinned && col.width && i < _this.numberOfPined) {
|
|
27193
27199
|
var left = constWidth;
|
|
27194
27200
|
if (i > 0) {
|
|
@@ -28498,6 +28504,11 @@
|
|
|
28498
28504
|
ListBase.prototype.modifyRowDataForExport = function (rowData) {
|
|
28499
28505
|
return rowData;
|
|
28500
28506
|
};
|
|
28507
|
+
ListBase.prototype.modifySettingInDialog = function () {
|
|
28508
|
+
this.setting.fixHeightTypeInDialog = false;
|
|
28509
|
+
this.setting.heightType = exports.HeightType.dynamic;
|
|
28510
|
+
this.setting.hiddenPageTitle = true;
|
|
28511
|
+
};
|
|
28501
28512
|
return ListBase;
|
|
28502
28513
|
}(ComponentBaseWithButton));
|
|
28503
28514
|
ListBase.decorators = [
|