tnx-shared 5.3.348 → 5.3.350
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 +3 -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
package/fesm2015/tnx-shared.js
CHANGED
|
@@ -669,6 +669,7 @@ class CrudListSetting {
|
|
|
669
669
|
this.hiddenWorkflowHistory = false;
|
|
670
670
|
this.allowFilterWorkflowColumn = false;
|
|
671
671
|
this.hiddenFunctionColumn = false;
|
|
672
|
+
this.hidenSortColumn = false;
|
|
672
673
|
this.hiddenRefresh = false;
|
|
673
674
|
this.hiddenFilterRow = false;
|
|
674
675
|
this.hiddenTrinhKy = true;
|
|
@@ -680,6 +681,7 @@ class CrudListSetting {
|
|
|
680
681
|
this.requiredVanBanDiAfterTrinhKy = false;
|
|
681
682
|
this.disableLazyLoadCommonSearch = false;
|
|
682
683
|
this.isLimitNumberOfLine = true;
|
|
684
|
+
this.customGetData = false;
|
|
683
685
|
this.showExportAll = false;
|
|
684
686
|
this.showExportSelectedItems = true;
|
|
685
687
|
this.showExportWordSelectedItems = false;
|
|
@@ -3915,8 +3917,8 @@ class CommonService {
|
|
|
3915
3917
|
return [startDate, endDate];
|
|
3916
3918
|
}
|
|
3917
3919
|
getStartDayEndDayInMonth(month, year) {
|
|
3918
|
-
month
|
|
3919
|
-
year
|
|
3920
|
+
month !== null && month !== void 0 ? month : (month = this.getCurrentMonth());
|
|
3921
|
+
year !== null && year !== void 0 ? year : (year = this.getCurrentYear());
|
|
3920
3922
|
return [new Date(year, month, 1), new Date(year, month + 1, 0)];
|
|
3921
3923
|
}
|
|
3922
3924
|
addHtmlContentWithTagAround(lstTag, className = '', tagAround = 'div', attributes = {}) {
|
|
@@ -19429,7 +19431,7 @@ class ListComponentBase extends ComponentBase {
|
|
|
19429
19431
|
if (!this.serviceCode && this.setting.baseService) {
|
|
19430
19432
|
this.serviceCode = this.setting.baseService.serviceCode;
|
|
19431
19433
|
}
|
|
19432
|
-
this.isBtnReady = this.setting.hiddenAuthorizeButton;
|
|
19434
|
+
this.isBtnReady = this.setting.hiddenAuthorizeButton || this.setting.customGetData;
|
|
19433
19435
|
if (this.authorizePath) {
|
|
19434
19436
|
this.authorizePaths[ComCtxConstants.COMMON.ADD] = `${this.authorizePath}/ADD`;
|
|
19435
19437
|
this.authorizePaths[ComCtxConstants.COMMON.EDIT] = `${this.authorizePath}/EDIT`;
|
|
@@ -23316,6 +23318,7 @@ class ListBase extends ComponentBaseWithButton {
|
|
|
23316
23318
|
if (this.setting.cols) {
|
|
23317
23319
|
this.setting.cols = this.setting.cols.filter(q => !q.removeOnInit);
|
|
23318
23320
|
}
|
|
23321
|
+
this.setting.customGetData = this.customGetData;
|
|
23319
23322
|
this.mergeInfoToColumnSchema();
|
|
23320
23323
|
this.generateFieldSearchText();
|
|
23321
23324
|
if (!this.setting.baseService) {
|
|
@@ -23347,6 +23350,9 @@ class ListBase extends ComponentBaseWithButton {
|
|
|
23347
23350
|
if (!this.setting.stickyColumn)
|
|
23348
23351
|
constWidth = 0;
|
|
23349
23352
|
this.setting.cols.forEach(col => {
|
|
23353
|
+
if (this.setting.hidenSortColumn) {
|
|
23354
|
+
col.sort = false;
|
|
23355
|
+
}
|
|
23350
23356
|
if (col.isPinned && col.width && i < this.numberOfPined) {
|
|
23351
23357
|
let left = constWidth;
|
|
23352
23358
|
if (i > 0) {
|
|
@@ -24304,6 +24310,11 @@ class ListBase extends ComponentBaseWithButton {
|
|
|
24304
24310
|
modifyRowDataForExport(rowData) {
|
|
24305
24311
|
return rowData;
|
|
24306
24312
|
}
|
|
24313
|
+
modifySettingInDialog() {
|
|
24314
|
+
this.setting.fixHeightTypeInDialog = false;
|
|
24315
|
+
this.setting.heightType = HeightType.dynamic;
|
|
24316
|
+
this.setting.hiddenPageTitle = true;
|
|
24317
|
+
}
|
|
24307
24318
|
}
|
|
24308
24319
|
ListBase.decorators = [
|
|
24309
24320
|
{ type: Directive }
|