tnx-shared 5.0.32 → 5.0.33
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 +72 -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/components/entity-picker/entity-picker-dialog/components/entity-picker-data/entity-picker-data.component.d.ts.map +1 -1
- package/components/entity-picker/entity-picker-dialog/components/entity-picker-selected/entity-picker-selected.component.d.ts.map +1 -1
- package/esm2015/components/entity-picker/entity-picker-dialog/components/entity-picker-data/entity-picker-data.component.js +37 -3
- package/esm2015/components/entity-picker/entity-picker-dialog/components/entity-picker-selected/entity-picker-selected.component.js +37 -3
- package/fesm2015/tnx-shared.js +70 -2
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
|
@@ -30401,6 +30401,7 @@
|
|
|
30401
30401
|
configurable: true
|
|
30402
30402
|
});
|
|
30403
30403
|
EntityPickerDataComponent.prototype.ngOnInit = function () {
|
|
30404
|
+
var _this = this;
|
|
30404
30405
|
this.plusUrl = this.control.plusUrl;
|
|
30405
30406
|
this.setting.baseService = this.control.baseService;
|
|
30406
30407
|
this.setting.pageSetting.pageSize = 30;
|
|
@@ -30411,10 +30412,44 @@
|
|
|
30411
30412
|
this.setting.hiddenSettingWorkflow = true;
|
|
30412
30413
|
this.setting.hiddenSettingPermission = true;
|
|
30413
30414
|
this.setting.title = 'Danh sách các mục chưa chọn';
|
|
30414
|
-
this.setting.cols =
|
|
30415
|
+
// this.setting.cols = [...this.parentSetting.cols.map(p => ({ ...p }))];
|
|
30415
30416
|
this.setting.columnSetting = this.parentSetting.columnSetting;
|
|
30416
30417
|
this.setting.fieldSearchText = this.parentSetting.fieldSearchText;
|
|
30417
30418
|
this.setting.multipleCheckWhenClickRow = !this.isSingleSelection;
|
|
30419
|
+
// Todo: HieuND
|
|
30420
|
+
this.control.columns.forEach(function (column) {
|
|
30421
|
+
if (column.isDisplay) {
|
|
30422
|
+
var newCol = new ColumnSchemaBase({
|
|
30423
|
+
field: column.code,
|
|
30424
|
+
label: _this._translateService.instant(column.label),
|
|
30425
|
+
visible: true,
|
|
30426
|
+
dataType: column.dataType,
|
|
30427
|
+
width: column.width,
|
|
30428
|
+
mdWidth: column.mdWidth,
|
|
30429
|
+
textAlign: column.textAlign,
|
|
30430
|
+
baseService: column.baseService,
|
|
30431
|
+
valueField: column.valueField,
|
|
30432
|
+
displayField: column.displayField,
|
|
30433
|
+
fieldPlus: column.fieldPlus,
|
|
30434
|
+
sortField: column.sortField,
|
|
30435
|
+
sortDir: column.sortDir,
|
|
30436
|
+
fieldFilter: column.fieldFilter,
|
|
30437
|
+
allowFilter: column.allowFilter,
|
|
30438
|
+
modifyFilter: column.modifyFilter,
|
|
30439
|
+
defaultFilters: column.defaultFilters,
|
|
30440
|
+
templateFilter: column.templateFilter,
|
|
30441
|
+
funcGetLabel: column.funcGetLabel,
|
|
30442
|
+
funcSetValueRow: column.funcSetValueRow,
|
|
30443
|
+
dataSource: column.dataSource,
|
|
30444
|
+
groupCode: column.groupCode,
|
|
30445
|
+
order: column.order
|
|
30446
|
+
});
|
|
30447
|
+
if (column.dataType == 'custom') {
|
|
30448
|
+
newCol.dataType = column.code;
|
|
30449
|
+
}
|
|
30450
|
+
_this.setting.cols.push(newCol);
|
|
30451
|
+
}
|
|
30452
|
+
});
|
|
30418
30453
|
_super.prototype.ngOnInit.call(this);
|
|
30419
30454
|
};
|
|
30420
30455
|
EntityPickerDataComponent.prototype.setValue = function () {
|
|
@@ -30568,6 +30603,7 @@
|
|
|
30568
30603
|
configurable: true
|
|
30569
30604
|
});
|
|
30570
30605
|
EntityPickerSelectedComponent.prototype.ngOnInit = function () {
|
|
30606
|
+
var _this = this;
|
|
30571
30607
|
this.plusUrl = this.control.plusUrl;
|
|
30572
30608
|
this.setting.baseService = this.control.baseService;
|
|
30573
30609
|
this.setting.pageSetting.pageSize = 30;
|
|
@@ -30578,9 +30614,43 @@
|
|
|
30578
30614
|
this.setting.hiddenSettingWorkflow = true;
|
|
30579
30615
|
this.setting.hiddenSettingPermission = true;
|
|
30580
30616
|
this.setting.title = 'Danh sách các mục đã chọn';
|
|
30581
|
-
this.setting.cols =
|
|
30617
|
+
// this.setting.cols = [...this.parentSetting.cols.map(p => ({ ...p }))];
|
|
30582
30618
|
this.setting.columnSetting = this.parentSetting.columnSetting;
|
|
30583
30619
|
this.setting.fieldSearchText = this.parentSetting.fieldSearchText;
|
|
30620
|
+
// Todo: HieuND
|
|
30621
|
+
this.control.columns.forEach(function (column) {
|
|
30622
|
+
if (column.isDisplay) {
|
|
30623
|
+
var newCol = new ColumnSchemaBase({
|
|
30624
|
+
field: column.code,
|
|
30625
|
+
label: _this._translateService.instant(column.label),
|
|
30626
|
+
visible: true,
|
|
30627
|
+
dataType: column.dataType,
|
|
30628
|
+
width: column.width,
|
|
30629
|
+
mdWidth: column.mdWidth,
|
|
30630
|
+
textAlign: column.textAlign,
|
|
30631
|
+
baseService: column.baseService,
|
|
30632
|
+
valueField: column.valueField,
|
|
30633
|
+
displayField: column.displayField,
|
|
30634
|
+
fieldPlus: column.fieldPlus,
|
|
30635
|
+
sortField: column.sortField,
|
|
30636
|
+
sortDir: column.sortDir,
|
|
30637
|
+
fieldFilter: column.fieldFilter,
|
|
30638
|
+
allowFilter: column.allowFilter,
|
|
30639
|
+
modifyFilter: column.modifyFilter,
|
|
30640
|
+
defaultFilters: column.defaultFilters,
|
|
30641
|
+
templateFilter: column.templateFilter,
|
|
30642
|
+
funcGetLabel: column.funcGetLabel,
|
|
30643
|
+
funcSetValueRow: column.funcSetValueRow,
|
|
30644
|
+
dataSource: column.dataSource,
|
|
30645
|
+
groupCode: column.groupCode,
|
|
30646
|
+
order: column.order
|
|
30647
|
+
});
|
|
30648
|
+
if (column.dataType == 'custom') {
|
|
30649
|
+
newCol.dataType = column.code;
|
|
30650
|
+
}
|
|
30651
|
+
_this.setting.cols.push(newCol);
|
|
30652
|
+
}
|
|
30653
|
+
});
|
|
30584
30654
|
_super.prototype.ngOnInit.call(this);
|
|
30585
30655
|
};
|
|
30586
30656
|
EntityPickerSelectedComponent.prototype.setValue = function () {
|