tnx-shared 5.1.431 → 5.1.433
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 +74 -24
- 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/components/entity-picker/entity-picker.component.d.ts.map +1 -1
- package/esm2015/components/entity-picker/entity-picker-dialog/components/entity-picker-data/entity-picker-data.component.js +28 -3
- package/esm2015/components/entity-picker/entity-picker-dialog/components/entity-picker-selected/entity-picker-selected.component.js +28 -3
- package/esm2015/components/entity-picker/entity-picker.component.js +21 -20
- package/esm2015/services/crud.service.js +2 -5
- package/fesm2015/tnx-shared.js +72 -24
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/crud.service.d.ts.map +1 -1
|
@@ -7079,10 +7079,7 @@
|
|
|
7079
7079
|
if (subField == null)
|
|
7080
7080
|
return value;
|
|
7081
7081
|
if (isArray(value)) {
|
|
7082
|
-
|
|
7083
|
-
return value.map(function (x) { return x.subField; });
|
|
7084
|
-
}
|
|
7085
|
-
return value[subField];
|
|
7082
|
+
return value.map(function (x) { return x[subField]; });
|
|
7086
7083
|
}
|
|
7087
7084
|
if (isLiteralObject(value))
|
|
7088
7085
|
return value[subField];
|
|
@@ -49165,6 +49162,7 @@
|
|
|
49165
49162
|
configurable: true
|
|
49166
49163
|
});
|
|
49167
49164
|
EntityPickerDataComponent.prototype.ngOnInit = function () {
|
|
49165
|
+
var _this = this;
|
|
49168
49166
|
var _a;
|
|
49169
49167
|
this.loadDetailFromQueryParam = true;
|
|
49170
49168
|
this.plusUrl = this.control.plusUrl;
|
|
@@ -49178,10 +49176,35 @@
|
|
|
49178
49176
|
this.setting.hiddenSettingWorkflow = true;
|
|
49179
49177
|
this.setting.hiddenSettingPermission = true;
|
|
49180
49178
|
this.setting.title = 'Danh sách các mục chưa chọn';
|
|
49181
|
-
this.setting.cols =
|
|
49179
|
+
// this.setting.cols = [...this.parentSetting.cols.map(p => ({ ...p }))];
|
|
49182
49180
|
this.setting.columnSetting = this.parentSetting.columnSetting;
|
|
49183
49181
|
this.setting.fieldSearchText = this.parentSetting.fieldSearchText;
|
|
49184
49182
|
this.setting.multipleCheckWhenClickRow = !this.isSingleSelection;
|
|
49183
|
+
// Todo: HieuND
|
|
49184
|
+
this.control.columns.forEach(function (column) {
|
|
49185
|
+
if (column.isDisplay) {
|
|
49186
|
+
var newCol = new ColumnSchemaBase({
|
|
49187
|
+
field: column.code,
|
|
49188
|
+
label: _this._translateService.instant(column.label),
|
|
49189
|
+
visible: true,
|
|
49190
|
+
baseService: column.baseService,
|
|
49191
|
+
valueField: column.valueField,
|
|
49192
|
+
displayField: column.displayField,
|
|
49193
|
+
fieldPlus: column.fieldPlus,
|
|
49194
|
+
sortField: column.sortField,
|
|
49195
|
+
sortDir: column.sortDir,
|
|
49196
|
+
funcGetLabel: column.funcGetLabel,
|
|
49197
|
+
funcSetValueRow: column.funcSetValueRow,
|
|
49198
|
+
dataSource: column.dataSource,
|
|
49199
|
+
groupCode: column.groupCode,
|
|
49200
|
+
order: column.order
|
|
49201
|
+
});
|
|
49202
|
+
if (column.dataType == 'custom') {
|
|
49203
|
+
newCol.dataType = column.code;
|
|
49204
|
+
}
|
|
49205
|
+
_this.setting.cols.push(newCol);
|
|
49206
|
+
}
|
|
49207
|
+
});
|
|
49185
49208
|
_super.prototype.ngOnInit.call(this);
|
|
49186
49209
|
};
|
|
49187
49210
|
EntityPickerDataComponent.prototype.setValue = function () {
|
|
@@ -49355,6 +49378,7 @@
|
|
|
49355
49378
|
configurable: true
|
|
49356
49379
|
});
|
|
49357
49380
|
EntityPickerSelectedComponent.prototype.ngOnInit = function () {
|
|
49381
|
+
var _this = this;
|
|
49358
49382
|
var _a;
|
|
49359
49383
|
this.loadDetailFromQueryParam = true;
|
|
49360
49384
|
this.plusUrl = this.control.plusUrl;
|
|
@@ -49368,9 +49392,34 @@
|
|
|
49368
49392
|
this.setting.hiddenSettingWorkflow = true;
|
|
49369
49393
|
this.setting.hiddenSettingPermission = true;
|
|
49370
49394
|
this.setting.title = 'Danh sách các mục đã chọn';
|
|
49371
|
-
this.setting.cols =
|
|
49395
|
+
// this.setting.cols = [...this.parentSetting.cols.map(p => ({ ...p }))];
|
|
49372
49396
|
this.setting.columnSetting = this.parentSetting.columnSetting;
|
|
49373
49397
|
this.setting.fieldSearchText = this.parentSetting.fieldSearchText;
|
|
49398
|
+
// Todo: HieuND
|
|
49399
|
+
this.control.columns.forEach(function (column) {
|
|
49400
|
+
if (column.isDisplay) {
|
|
49401
|
+
var newCol = new ColumnSchemaBase({
|
|
49402
|
+
field: column.code,
|
|
49403
|
+
label: _this._translateService.instant(column.label),
|
|
49404
|
+
visible: true,
|
|
49405
|
+
baseService: column.baseService,
|
|
49406
|
+
valueField: column.valueField,
|
|
49407
|
+
displayField: column.displayField,
|
|
49408
|
+
fieldPlus: column.fieldPlus,
|
|
49409
|
+
sortField: column.sortField,
|
|
49410
|
+
sortDir: column.sortDir,
|
|
49411
|
+
funcGetLabel: column.funcGetLabel,
|
|
49412
|
+
funcSetValueRow: column.funcSetValueRow,
|
|
49413
|
+
dataSource: column.dataSource,
|
|
49414
|
+
groupCode: column.groupCode,
|
|
49415
|
+
order: column.order
|
|
49416
|
+
});
|
|
49417
|
+
if (column.dataType == 'custom') {
|
|
49418
|
+
newCol.dataType = column.code;
|
|
49419
|
+
}
|
|
49420
|
+
_this.setting.cols.push(newCol);
|
|
49421
|
+
}
|
|
49422
|
+
});
|
|
49374
49423
|
this.updateFuncCheckReadOnlyItem();
|
|
49375
49424
|
_super.prototype.ngOnInit.call(this);
|
|
49376
49425
|
};
|
|
@@ -50223,28 +50272,29 @@
|
|
|
50223
50272
|
this.setting.hiddenSettingWorkflow = true;
|
|
50224
50273
|
this.setting.hiddenSettingPermission = true;
|
|
50225
50274
|
this.setting.fieldSearchText = this.control.fieldSearchText;
|
|
50275
|
+
// Todo: HieuND
|
|
50226
50276
|
this.control.columns.forEach(function (column) {
|
|
50227
50277
|
if (column.isDisplay) {
|
|
50278
|
+
var newCol = new ColumnSchemaBase({
|
|
50279
|
+
field: column.code,
|
|
50280
|
+
label: _this._translateService.instant(column.label),
|
|
50281
|
+
visible: true,
|
|
50282
|
+
baseService: column.baseService,
|
|
50283
|
+
valueField: column.valueField,
|
|
50284
|
+
displayField: column.displayField,
|
|
50285
|
+
fieldPlus: column.fieldPlus,
|
|
50286
|
+
sortField: column.sortField,
|
|
50287
|
+
sortDir: column.sortDir,
|
|
50288
|
+
funcGetLabel: column.funcGetLabel,
|
|
50289
|
+
funcSetValueRow: column.funcSetValueRow,
|
|
50290
|
+
dataSource: column.dataSource,
|
|
50291
|
+
groupCode: column.groupCode,
|
|
50292
|
+
order: column.order
|
|
50293
|
+
});
|
|
50228
50294
|
if (column.dataType == 'custom') {
|
|
50229
|
-
|
|
50230
|
-
field: column.code,
|
|
50231
|
-
dataType: column.code,
|
|
50232
|
-
label: _this._translateService.instant(column.label),
|
|
50233
|
-
visible: true,
|
|
50234
|
-
baseService: column.baseService,
|
|
50235
|
-
valueField: column.valueField,
|
|
50236
|
-
displayField: column.displayField,
|
|
50237
|
-
fieldPlus: column.fieldPlus,
|
|
50238
|
-
sortField: column.sortField,
|
|
50239
|
-
sortDir: column.sortDir,
|
|
50240
|
-
funcGetLabel: column.funcGetLabel,
|
|
50241
|
-
dataSource: column.dataSource,
|
|
50242
|
-
groupCode: column.groupCode
|
|
50243
|
-
});
|
|
50244
|
-
}
|
|
50245
|
-
else {
|
|
50246
|
-
_this.setting.cols.push(Object.assign(Object.assign({}, column), { field: column.code, label: _this._translateService.instant(column.label), visible: true }));
|
|
50295
|
+
newCol.dataType = column.code;
|
|
50247
50296
|
}
|
|
50297
|
+
_this.setting.cols.push(newCol);
|
|
50248
50298
|
}
|
|
50249
50299
|
});
|
|
50250
50300
|
this.advanceData.fields = this.getFields();
|