tnx-shared 5.1.432 → 5.1.434
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 +93 -39
- 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/esm2015/services/templateinstance.service.js +9 -6
- package/fesm2015/tnx-shared.js +78 -28
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/crud.service.d.ts.map +1 -1
- package/services/templateinstance.service.d.ts +4 -2
- package/services/templateinstance.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +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];
|
|
@@ -9284,18 +9281,21 @@
|
|
|
9284
9281
|
{ type: NotifierService }
|
|
9285
9282
|
]; };
|
|
9286
9283
|
|
|
9287
|
-
var TemplateInstanceService = /** @class */ (function () {
|
|
9288
|
-
|
|
9289
|
-
|
|
9290
|
-
this.
|
|
9291
|
-
|
|
9292
|
-
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
|
|
9297
|
-
|
|
9298
|
-
|
|
9284
|
+
var TemplateInstanceService = /** @class */ (function (_super) {
|
|
9285
|
+
__extends(TemplateInstanceService, _super);
|
|
9286
|
+
function TemplateInstanceService(_moduleConfigService, _httpClient, _printService, _fileService, _notifierService, _crudService, _commonService, _downloadLinkService, injector) {
|
|
9287
|
+
var _this = _super.call(this, _httpClient, injector, _moduleConfigService.getConfig().environment.apiDomain.authorizationEndpoint + "/" + _moduleConfigService.getConfig().environment.apiVersion + "/TemplateInstance") || this;
|
|
9288
|
+
_this._httpClient = _httpClient;
|
|
9289
|
+
_this._printService = _printService;
|
|
9290
|
+
_this._fileService = _fileService;
|
|
9291
|
+
_this._notifierService = _notifierService;
|
|
9292
|
+
_this._crudService = _crudService;
|
|
9293
|
+
_this._commonService = _commonService;
|
|
9294
|
+
_this._downloadLinkService = _downloadLinkService;
|
|
9295
|
+
_this._moduleConfig = _moduleConfigService.getConfig();
|
|
9296
|
+
_this.environment = _this._moduleConfig.environment;
|
|
9297
|
+
_this.serviceUri = _this._moduleConfig.environment.apiDomain.templateEndpoint + "/" + _this._moduleConfig.environment.apiVersion + "/TemplateInstance";
|
|
9298
|
+
return _this;
|
|
9299
9299
|
}
|
|
9300
9300
|
TemplateInstanceService.prototype.useV4 = function () {
|
|
9301
9301
|
this.serviceUri = this._moduleConfig.environment.apiDomain.templateV4Endpoint + "/Template";
|
|
@@ -9641,8 +9641,8 @@
|
|
|
9641
9641
|
});
|
|
9642
9642
|
};
|
|
9643
9643
|
return TemplateInstanceService;
|
|
9644
|
-
}());
|
|
9645
|
-
TemplateInstanceService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TemplateInstanceService_Factory() { return new TemplateInstanceService(i0.ɵɵinject(ModuleConfigService), i0.ɵɵinject(i1$1.HttpClient), i0.ɵɵinject(PrintService), i0.ɵɵinject(FileExplorerService), i0.ɵɵinject(NotifierService), i0.ɵɵinject(CrudService), i0.ɵɵinject(CommonService), i0.ɵɵinject(DownloadLinkService)); }, token: TemplateInstanceService, providedIn: "root" });
|
|
9644
|
+
}(BaseService));
|
|
9645
|
+
TemplateInstanceService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TemplateInstanceService_Factory() { return new TemplateInstanceService(i0.ɵɵinject(ModuleConfigService), i0.ɵɵinject(i1$1.HttpClient), i0.ɵɵinject(PrintService), i0.ɵɵinject(FileExplorerService), i0.ɵɵinject(NotifierService), i0.ɵɵinject(CrudService), i0.ɵɵinject(CommonService), i0.ɵɵinject(DownloadLinkService), i0.ɵɵinject(i0.INJECTOR)); }, token: TemplateInstanceService, providedIn: "root" });
|
|
9646
9646
|
TemplateInstanceService.decorators = [
|
|
9647
9647
|
{ type: i0.Injectable, args: [{
|
|
9648
9648
|
providedIn: 'root'
|
|
@@ -9656,7 +9656,8 @@
|
|
|
9656
9656
|
{ type: NotifierService },
|
|
9657
9657
|
{ type: CrudService },
|
|
9658
9658
|
{ type: CommonService },
|
|
9659
|
-
{ type: DownloadLinkService }
|
|
9659
|
+
{ type: DownloadLinkService },
|
|
9660
|
+
{ type: i0.Injector }
|
|
9660
9661
|
]; };
|
|
9661
9662
|
|
|
9662
9663
|
var EXPORT_VERSION_V4 = 4;
|
|
@@ -49165,6 +49166,7 @@
|
|
|
49165
49166
|
configurable: true
|
|
49166
49167
|
});
|
|
49167
49168
|
EntityPickerDataComponent.prototype.ngOnInit = function () {
|
|
49169
|
+
var _this = this;
|
|
49168
49170
|
var _a;
|
|
49169
49171
|
this.loadDetailFromQueryParam = true;
|
|
49170
49172
|
this.plusUrl = this.control.plusUrl;
|
|
@@ -49178,10 +49180,35 @@
|
|
|
49178
49180
|
this.setting.hiddenSettingWorkflow = true;
|
|
49179
49181
|
this.setting.hiddenSettingPermission = true;
|
|
49180
49182
|
this.setting.title = 'Danh sách các mục chưa chọn';
|
|
49181
|
-
this.setting.cols =
|
|
49183
|
+
// this.setting.cols = [...this.parentSetting.cols.map(p => ({ ...p }))];
|
|
49182
49184
|
this.setting.columnSetting = this.parentSetting.columnSetting;
|
|
49183
49185
|
this.setting.fieldSearchText = this.parentSetting.fieldSearchText;
|
|
49184
49186
|
this.setting.multipleCheckWhenClickRow = !this.isSingleSelection;
|
|
49187
|
+
// Todo: HieuND
|
|
49188
|
+
this.control.columns.forEach(function (column) {
|
|
49189
|
+
if (column.isDisplay) {
|
|
49190
|
+
var newCol = new ColumnSchemaBase({
|
|
49191
|
+
field: column.code,
|
|
49192
|
+
label: _this._translateService.instant(column.label),
|
|
49193
|
+
visible: true,
|
|
49194
|
+
baseService: column.baseService,
|
|
49195
|
+
valueField: column.valueField,
|
|
49196
|
+
displayField: column.displayField,
|
|
49197
|
+
fieldPlus: column.fieldPlus,
|
|
49198
|
+
sortField: column.sortField,
|
|
49199
|
+
sortDir: column.sortDir,
|
|
49200
|
+
funcGetLabel: column.funcGetLabel,
|
|
49201
|
+
funcSetValueRow: column.funcSetValueRow,
|
|
49202
|
+
dataSource: column.dataSource,
|
|
49203
|
+
groupCode: column.groupCode,
|
|
49204
|
+
order: column.order
|
|
49205
|
+
});
|
|
49206
|
+
if (column.dataType == 'custom') {
|
|
49207
|
+
newCol.dataType = column.code;
|
|
49208
|
+
}
|
|
49209
|
+
_this.setting.cols.push(newCol);
|
|
49210
|
+
}
|
|
49211
|
+
});
|
|
49185
49212
|
_super.prototype.ngOnInit.call(this);
|
|
49186
49213
|
};
|
|
49187
49214
|
EntityPickerDataComponent.prototype.setValue = function () {
|
|
@@ -49355,6 +49382,7 @@
|
|
|
49355
49382
|
configurable: true
|
|
49356
49383
|
});
|
|
49357
49384
|
EntityPickerSelectedComponent.prototype.ngOnInit = function () {
|
|
49385
|
+
var _this = this;
|
|
49358
49386
|
var _a;
|
|
49359
49387
|
this.loadDetailFromQueryParam = true;
|
|
49360
49388
|
this.plusUrl = this.control.plusUrl;
|
|
@@ -49368,9 +49396,34 @@
|
|
|
49368
49396
|
this.setting.hiddenSettingWorkflow = true;
|
|
49369
49397
|
this.setting.hiddenSettingPermission = true;
|
|
49370
49398
|
this.setting.title = 'Danh sách các mục đã chọn';
|
|
49371
|
-
this.setting.cols =
|
|
49399
|
+
// this.setting.cols = [...this.parentSetting.cols.map(p => ({ ...p }))];
|
|
49372
49400
|
this.setting.columnSetting = this.parentSetting.columnSetting;
|
|
49373
49401
|
this.setting.fieldSearchText = this.parentSetting.fieldSearchText;
|
|
49402
|
+
// Todo: HieuND
|
|
49403
|
+
this.control.columns.forEach(function (column) {
|
|
49404
|
+
if (column.isDisplay) {
|
|
49405
|
+
var newCol = new ColumnSchemaBase({
|
|
49406
|
+
field: column.code,
|
|
49407
|
+
label: _this._translateService.instant(column.label),
|
|
49408
|
+
visible: true,
|
|
49409
|
+
baseService: column.baseService,
|
|
49410
|
+
valueField: column.valueField,
|
|
49411
|
+
displayField: column.displayField,
|
|
49412
|
+
fieldPlus: column.fieldPlus,
|
|
49413
|
+
sortField: column.sortField,
|
|
49414
|
+
sortDir: column.sortDir,
|
|
49415
|
+
funcGetLabel: column.funcGetLabel,
|
|
49416
|
+
funcSetValueRow: column.funcSetValueRow,
|
|
49417
|
+
dataSource: column.dataSource,
|
|
49418
|
+
groupCode: column.groupCode,
|
|
49419
|
+
order: column.order
|
|
49420
|
+
});
|
|
49421
|
+
if (column.dataType == 'custom') {
|
|
49422
|
+
newCol.dataType = column.code;
|
|
49423
|
+
}
|
|
49424
|
+
_this.setting.cols.push(newCol);
|
|
49425
|
+
}
|
|
49426
|
+
});
|
|
49374
49427
|
this.updateFuncCheckReadOnlyItem();
|
|
49375
49428
|
_super.prototype.ngOnInit.call(this);
|
|
49376
49429
|
};
|
|
@@ -50223,28 +50276,29 @@
|
|
|
50223
50276
|
this.setting.hiddenSettingWorkflow = true;
|
|
50224
50277
|
this.setting.hiddenSettingPermission = true;
|
|
50225
50278
|
this.setting.fieldSearchText = this.control.fieldSearchText;
|
|
50279
|
+
// Todo: HieuND
|
|
50226
50280
|
this.control.columns.forEach(function (column) {
|
|
50227
50281
|
if (column.isDisplay) {
|
|
50282
|
+
var newCol = new ColumnSchemaBase({
|
|
50283
|
+
field: column.code,
|
|
50284
|
+
label: _this._translateService.instant(column.label),
|
|
50285
|
+
visible: true,
|
|
50286
|
+
baseService: column.baseService,
|
|
50287
|
+
valueField: column.valueField,
|
|
50288
|
+
displayField: column.displayField,
|
|
50289
|
+
fieldPlus: column.fieldPlus,
|
|
50290
|
+
sortField: column.sortField,
|
|
50291
|
+
sortDir: column.sortDir,
|
|
50292
|
+
funcGetLabel: column.funcGetLabel,
|
|
50293
|
+
funcSetValueRow: column.funcSetValueRow,
|
|
50294
|
+
dataSource: column.dataSource,
|
|
50295
|
+
groupCode: column.groupCode,
|
|
50296
|
+
order: column.order
|
|
50297
|
+
});
|
|
50228
50298
|
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 }));
|
|
50299
|
+
newCol.dataType = column.code;
|
|
50247
50300
|
}
|
|
50301
|
+
_this.setting.cols.push(newCol);
|
|
50248
50302
|
}
|
|
50249
50303
|
});
|
|
50250
50304
|
this.advanceData.fields = this.getFields();
|