tnx-shared 5.3.425 → 5.3.426
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 +59 -28
- 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-component-base.d.ts.map +1 -1
- package/classes/form-schema.d.ts +2 -0
- package/classes/form-schema.d.ts.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-search-form/entity-picker-search-form.component.d.ts.map +1 -1
- package/components/entity-picker/entity-picker.component.d.ts +1 -0
- package/components/entity-picker/entity-picker.component.d.ts.map +1 -1
- package/components/user-picker/models/user-picker-setting.d.ts +2 -0
- package/components/user-picker/models/user-picker-setting.d.ts.map +1 -1
- package/components/user-picker/user-picker-box/user-picker-box.component.d.ts +4 -1
- package/components/user-picker/user-picker-box/user-picker-box.component.d.ts.map +1 -1
- package/esm2015/classes/base/list-component-base.js +3 -2
- package/esm2015/classes/form-schema.js +2 -1
- package/esm2015/components/entity-picker/entity-picker-dialog/components/entity-picker-data/entity-picker-data.component.js +5 -2
- package/esm2015/components/entity-picker/entity-picker-dialog/components/entity-picker-search-form/entity-picker-search-form.component.js +4 -3
- package/esm2015/components/entity-picker/entity-picker.component.js +9 -1
- package/esm2015/components/file-upload/file-upload.component.js +1 -1
- package/esm2015/components/user-picker/models/user-picker-setting.js +6 -6
- package/esm2015/components/user-picker/user-picker-box/user-picker-box.component.js +11 -3
- package/esm2015/tnx-shared.module.js +2 -1
- package/fesm2015/tnx-shared.js +34 -12
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
- package/tnx-shared.module.d.ts.map +1 -1
|
@@ -1714,6 +1714,7 @@
|
|
|
1714
1714
|
_this.titleUnPicked = 'Danh sách các mục chưa chọn';
|
|
1715
1715
|
_this.titlePicked = 'Danh sách các mục đã chọn';
|
|
1716
1716
|
_this.fieldsPicked = null;
|
|
1717
|
+
_this.datasourceFieldFilter = [];
|
|
1717
1718
|
for (var key in init) {
|
|
1718
1719
|
_this[key] = init[key];
|
|
1719
1720
|
}
|
|
@@ -26175,7 +26176,8 @@
|
|
|
26175
26176
|
if (itemWorkflowHistoryLast
|
|
26176
26177
|
&& itemWorkflowHistoryLast.actionCode != MaActionBatDauQuyTrinh
|
|
26177
26178
|
&& itemWorkflowHistoryLast.userIdCreated.toUpperCase() == userIdStringUpper
|
|
26178
|
-
&& this.setting.showButtonThuHoi
|
|
26179
|
+
&& this.setting.showButtonThuHoi
|
|
26180
|
+
&& !rowData.hiddenButtonThuHoi) {
|
|
26179
26181
|
buttonContexts.push({
|
|
26180
26182
|
icon: 'pi pi-replay',
|
|
26181
26183
|
label: 'Thu hồi',
|
|
@@ -38867,7 +38869,7 @@
|
|
|
38867
38869
|
},
|
|
38868
38870
|
ComponentContextService
|
|
38869
38871
|
],
|
|
38870
|
-
styles: ["::ng-deep .file-upload{display:flex;border:1px solid #ced4da;border-radius:4px}::ng-deep .file-upload .fl-icon{flex:0 0 30px;display:flex;font-size:20px;justify-content:center;align-items:center;border-right:1px solid #ced4da}::ng-deep .file-upload .fl-icon>i{font-size:16px!important}::ng-deep .file-upload .fl-file-name{display:flex;align-items:center;flex-grow:1;cursor:pointer;opacity:.8;padding-left:12px;color:#109bf8;width:calc(100% - 110px);position:relative}::ng-deep .file-upload .fl-file-name>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}::ng-deep .file-upload .fl-file-name:hover{opacity:1}::ng-deep .file-upload .fl-buttons{flex:0 0 80px;display:flex;border-right:1px solid #ced4da;align-items:center;justify-content:space-evenly;border-left:1px solid #ced4da}::ng-deep .file-upload .nfl-signature{display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.8;padding:0 10px;color:#109bf8;overflow:hidden}::ng-deep .file-upload .nfl-signature:hover{opacity:1}::ng-deep .file-upload .signature i{position:absolute;top:
|
|
38872
|
+
styles: ["::ng-deep .file-upload{display:flex;border:1px solid #ced4da;border-radius:4px}::ng-deep .file-upload .fl-icon{flex:0 0 30px;display:flex;font-size:20px;justify-content:center;align-items:center;border-right:1px solid #ced4da}::ng-deep .file-upload .fl-icon>i{font-size:16px!important}::ng-deep .file-upload .fl-file-name{display:flex;align-items:center;flex-grow:1;cursor:pointer;opacity:.8;padding-left:12px;color:#109bf8;width:calc(100% - 110px);position:relative}::ng-deep .file-upload .fl-file-name>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}::ng-deep .file-upload .fl-file-name:hover{opacity:1}::ng-deep .file-upload .fl-buttons{flex:0 0 80px;display:flex;border-right:1px solid #ced4da;align-items:center;justify-content:space-evenly;border-left:1px solid #ced4da}::ng-deep .file-upload .nfl-signature{display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.8;padding:0 10px;color:#109bf8;overflow:hidden}::ng-deep .file-upload .nfl-signature:hover{opacity:1}::ng-deep .file-upload .signature i{position:absolute;top:50%!important;transform:translate(-50%,-50%)!important;right:0}"]
|
|
38871
38873
|
},] }
|
|
38872
38874
|
];
|
|
38873
38875
|
FileUploadComponent.ctorParameters = function () { return [
|
|
@@ -46667,13 +46669,13 @@
|
|
|
46667
46669
|
return UserPickerSetting;
|
|
46668
46670
|
}());
|
|
46669
46671
|
var DatasourceFieldFilter = [
|
|
46670
|
-
{ id: 'userName', ten: 'Tài khoản' },
|
|
46671
|
-
{ id: 'code', ten: 'Mã' },
|
|
46672
|
-
{ id: 'email', ten: 'Email' },
|
|
46672
|
+
{ id: 'userName', ten: 'Tài khoản', placeholder: 'thuan.pd\nvan.nbt' },
|
|
46673
|
+
{ id: 'code', ten: 'Mã cán bộ', placeholder: '00000408\n00014270' },
|
|
46674
|
+
{ id: 'email', ten: 'Email', placeholder: 'linh123@gmail.com\ntnam123@gmail.com' },
|
|
46673
46675
|
];
|
|
46674
46676
|
var DatasourceFilterCanBo = [
|
|
46675
|
-
{ id: 'code', ten: 'Mã' },
|
|
46676
|
-
{ id: 'email', ten: 'Email' }
|
|
46677
|
+
{ id: 'code', ten: 'Mã cán bộ', placeholder: '00000408\n00014270' },
|
|
46678
|
+
{ id: 'email', ten: 'Email', placeholder: 'linh123@gmail.com\ntnam123@gmail.com' },
|
|
46677
46679
|
];
|
|
46678
46680
|
|
|
46679
46681
|
var AutoCompletePickerComponent = /** @class */ (function (_super) {
|
|
@@ -48924,7 +48926,7 @@
|
|
|
48924
48926
|
});
|
|
48925
48927
|
EntityPickerDataComponent.prototype.ngOnInit = function () {
|
|
48926
48928
|
var _this = this;
|
|
48927
|
-
var _a;
|
|
48929
|
+
var _a, _b;
|
|
48928
48930
|
this.loadDetailFromQueryParam = true;
|
|
48929
48931
|
this.plusUrl = this.control.plusUrl;
|
|
48930
48932
|
this.setting.hiddenAuthorizeButton = true;
|
|
@@ -48948,6 +48950,9 @@
|
|
|
48948
48950
|
if (this.control.baseService instanceof CanBoHoSoService) {
|
|
48949
48951
|
this.datasourceFieldFilter = DatasourceFilterCanBo;
|
|
48950
48952
|
}
|
|
48953
|
+
if ((_b = this.control.datasourceFieldFilter) === null || _b === void 0 ? void 0 : _b.length) {
|
|
48954
|
+
this.datasourceFieldFilter = this.control.datasourceFieldFilter;
|
|
48955
|
+
}
|
|
48951
48956
|
this.control.columns.forEach(function (column) {
|
|
48952
48957
|
if (column.isDisplay) {
|
|
48953
48958
|
var newCol = new ColumnSchemaBase({
|
|
@@ -49640,6 +49645,7 @@
|
|
|
49640
49645
|
configurable: true
|
|
49641
49646
|
});
|
|
49642
49647
|
EntityPickerSearchFormComponent.prototype.ngOnInit = function () {
|
|
49648
|
+
var _this = this;
|
|
49643
49649
|
this.doNotCheckBaseService = true;
|
|
49644
49650
|
this.setting.schema = [
|
|
49645
49651
|
new RadioButtonListControlSchema({
|
|
@@ -49650,8 +49656,8 @@
|
|
|
49650
49656
|
mdWidth: 12,
|
|
49651
49657
|
hidden: !this.datasourceFieldFilter.length,
|
|
49652
49658
|
onChanged: function (evt) {
|
|
49653
|
-
var
|
|
49654
|
-
evt.formControls['lstDataCheck'].placeholder =
|
|
49659
|
+
var _a;
|
|
49660
|
+
evt.formControls['lstDataCheck'].placeholder = (_a = _this.datasourceFieldFilter.find(function (p) { return p.id == evt.parentModel.fieldFilter; })) === null || _a === void 0 ? void 0 : _a.placeholder;
|
|
49655
49661
|
}
|
|
49656
49662
|
}),
|
|
49657
49663
|
new TextAreaControlSchema({
|
|
@@ -49674,16 +49680,17 @@
|
|
|
49674
49680
|
};
|
|
49675
49681
|
EntityPickerSearchFormComponent.prototype.onFormInitialized = function (controls) {
|
|
49676
49682
|
return __awaiter(this, void 0, void 0, function () {
|
|
49677
|
-
return __generator(this, function (
|
|
49683
|
+
return __generator(this, function (_b) {
|
|
49678
49684
|
return [2 /*return*/];
|
|
49679
49685
|
});
|
|
49680
49686
|
});
|
|
49681
49687
|
};
|
|
49682
49688
|
EntityPickerSearchFormComponent.prototype.initDataAdd = function (evt) {
|
|
49683
49689
|
return __awaiter(this, void 0, void 0, function () {
|
|
49684
|
-
return __generator(this, function (
|
|
49690
|
+
return __generator(this, function (_b) {
|
|
49685
49691
|
if (this.datasourceFieldFilter.length) {
|
|
49686
49692
|
evt.rootModel.fieldFilter = this.datasourceFieldFilter[0].id;
|
|
49693
|
+
evt.formControls['lstDataCheck'].placeholder = this.datasourceFieldFilter[0].placeholder;
|
|
49687
49694
|
}
|
|
49688
49695
|
evt.rootModel.lstDataCheck = undefined;
|
|
49689
49696
|
evt.rootModel.lstDataNotExist = undefined;
|
|
@@ -49693,7 +49700,7 @@
|
|
|
49693
49700
|
};
|
|
49694
49701
|
EntityPickerSearchFormComponent.prototype.modifyDetailData = function (data) {
|
|
49695
49702
|
return __awaiter(this, void 0, void 0, function () {
|
|
49696
|
-
return __generator(this, function (
|
|
49703
|
+
return __generator(this, function (_b) {
|
|
49697
49704
|
return [2 /*return*/];
|
|
49698
49705
|
});
|
|
49699
49706
|
});
|
|
@@ -49701,11 +49708,11 @@
|
|
|
49701
49708
|
EntityPickerSearchFormComponent.prototype.customSave = function () {
|
|
49702
49709
|
return __awaiter(this, void 0, void 0, function () {
|
|
49703
49710
|
var isValid;
|
|
49704
|
-
return __generator(this, function (
|
|
49705
|
-
switch (
|
|
49711
|
+
return __generator(this, function (_b) {
|
|
49712
|
+
switch (_b.label) {
|
|
49706
49713
|
case 0: return [4 /*yield*/, this.crudForm.validateForm()];
|
|
49707
49714
|
case 1:
|
|
49708
|
-
isValid =
|
|
49715
|
+
isValid = _b.sent();
|
|
49709
49716
|
if (!isValid)
|
|
49710
49717
|
return [2 /*return*/];
|
|
49711
49718
|
this.model.data.lstData = this.model.data.lstDataCheck.split('\n').map(function (p) { return p.trim(); }).filter(function (p) { return p; });
|
|
@@ -50573,6 +50580,21 @@
|
|
|
50573
50580
|
EntityPickerComponent.prototype.setDisabledState = function (isDisabled) {
|
|
50574
50581
|
this.disabled = isDisabled;
|
|
50575
50582
|
};
|
|
50583
|
+
EntityPickerComponent.prototype._view = function (rowData) {
|
|
50584
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
50585
|
+
return __generator(this, function (_a) {
|
|
50586
|
+
switch (_a.label) {
|
|
50587
|
+
case 0:
|
|
50588
|
+
if (!this.control.onViewDetail) return [3 /*break*/, 2];
|
|
50589
|
+
return [4 /*yield*/, this.control.onViewDetail(rowData)];
|
|
50590
|
+
case 1:
|
|
50591
|
+
_a.sent();
|
|
50592
|
+
return [2 /*return*/];
|
|
50593
|
+
case 2: return [2 /*return*/];
|
|
50594
|
+
}
|
|
50595
|
+
});
|
|
50596
|
+
});
|
|
50597
|
+
};
|
|
50576
50598
|
return EntityPickerComponent;
|
|
50577
50599
|
}(DataListBase));
|
|
50578
50600
|
EntityPickerComponent.decorators = [
|
|
@@ -57572,11 +57594,14 @@
|
|
|
57572
57594
|
|
|
57573
57595
|
var UserPickerBoxComponent = /** @class */ (function (_super) {
|
|
57574
57596
|
__extends(UserPickerBoxComponent, _super);
|
|
57575
|
-
function UserPickerBoxComponent(_injector, _userV5Service, _organizationService, _coCauToChucService) {
|
|
57576
|
-
var _this =
|
|
57597
|
+
function UserPickerBoxComponent(_injector, _userV5Service, _organizationService, _coCauToChucService, _moduleConfigService) {
|
|
57598
|
+
var _this = this;
|
|
57599
|
+
var _a, _b, _c;
|
|
57600
|
+
_this = _super.call(this, _injector) || this;
|
|
57577
57601
|
_this._userV5Service = _userV5Service;
|
|
57578
57602
|
_this._organizationService = _organizationService;
|
|
57579
57603
|
_this._coCauToChucService = _coCauToChucService;
|
|
57604
|
+
_this._moduleConfigService = _moduleConfigService;
|
|
57580
57605
|
_this.multiple = false;
|
|
57581
57606
|
_this.disabled = false;
|
|
57582
57607
|
_this.enableCaching = true;
|
|
@@ -57605,6 +57630,10 @@
|
|
|
57605
57630
|
_this.rootFilter = {};
|
|
57606
57631
|
_this.treeLoading = false;
|
|
57607
57632
|
_this.datasourceFieldFilter = DatasourceFieldFilter;
|
|
57633
|
+
var _environment = _moduleConfigService.getConfig().environment;
|
|
57634
|
+
if (((_b = (_a = _environment.cauHinhNghiepVu) === null || _a === void 0 ? void 0 : _a.datasourceFieldFilterCanBo) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
57635
|
+
_this.datasourceFieldFilter = (_c = _environment.cauHinhNghiepVu) === null || _c === void 0 ? void 0 : _c.datasourceFieldFilterCanBo;
|
|
57636
|
+
}
|
|
57608
57637
|
return _this;
|
|
57609
57638
|
}
|
|
57610
57639
|
UserPickerBoxComponent.prototype.ngOnInit = function () {
|
|
@@ -57626,7 +57655,7 @@
|
|
|
57626
57655
|
UserPickerBoxComponent.prototype.nodeSelect = function (event) {
|
|
57627
57656
|
return __awaiter(this, void 0, void 0, function () {
|
|
57628
57657
|
var target;
|
|
57629
|
-
return __generator(this, function (
|
|
57658
|
+
return __generator(this, function (_d) {
|
|
57630
57659
|
target = event.originalEvent.target;
|
|
57631
57660
|
if (target.classList.contains('custom-node')) {
|
|
57632
57661
|
this.selectedNodeData = target.id;
|
|
@@ -57657,19 +57686,19 @@
|
|
|
57657
57686
|
UserPickerBoxComponent.prototype.initTree = function () {
|
|
57658
57687
|
return __awaiter(this, void 0, void 0, function () {
|
|
57659
57688
|
var rs;
|
|
57660
|
-
return __generator(this, function (
|
|
57661
|
-
switch (
|
|
57689
|
+
return __generator(this, function (_d) {
|
|
57690
|
+
switch (_d.label) {
|
|
57662
57691
|
case 0:
|
|
57663
57692
|
if (!this.controlSetting.lazyLoadOrganization) return [3 /*break*/, 2];
|
|
57664
57693
|
return [4 /*yield*/, this._organizationService.getOrganizationByParentId(this._commonService.guidEmpty())];
|
|
57665
57694
|
case 1:
|
|
57666
|
-
rs =
|
|
57695
|
+
rs = _d.sent();
|
|
57667
57696
|
this.rootTreeNode = rs.data;
|
|
57668
57697
|
this.loadTree(this.rootTreeNode[0], true);
|
|
57669
57698
|
return [3 /*break*/, 3];
|
|
57670
57699
|
case 2:
|
|
57671
57700
|
this.loadTree(null);
|
|
57672
|
-
|
|
57701
|
+
_d.label = 3;
|
|
57673
57702
|
case 3: return [2 /*return*/];
|
|
57674
57703
|
}
|
|
57675
57704
|
});
|
|
@@ -57702,7 +57731,7 @@
|
|
|
57702
57731
|
}
|
|
57703
57732
|
else {
|
|
57704
57733
|
this._organizationService.getOrganizationTree(this.controlSetting.parentOrgCode).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
57705
|
-
return __generator(this, function (
|
|
57734
|
+
return __generator(this, function (_d) {
|
|
57706
57735
|
this.rootTreeNode = result.data;
|
|
57707
57736
|
this.rootTreeNode[0].expanded = true;
|
|
57708
57737
|
this.treeLoading = true;
|
|
@@ -57722,15 +57751,15 @@
|
|
|
57722
57751
|
UserPickerBoxComponent.prototype.modifyFilter = function (filters) {
|
|
57723
57752
|
return __awaiter(this, void 0, void 0, function () {
|
|
57724
57753
|
var _this = this;
|
|
57725
|
-
return __generator(this, function (
|
|
57726
|
-
switch (
|
|
57754
|
+
return __generator(this, function (_d) {
|
|
57755
|
+
switch (_d.label) {
|
|
57727
57756
|
case 0:
|
|
57728
57757
|
Object.keys(this.rootFilter).forEach(function (item) {
|
|
57729
57758
|
filters.push(_this.rootFilter[item]);
|
|
57730
57759
|
});
|
|
57731
57760
|
return [4 /*yield*/, appendDefaultFilter(filters, this.controlSetting.defaultFilters)];
|
|
57732
57761
|
case 1:
|
|
57733
|
-
|
|
57762
|
+
_d.sent();
|
|
57734
57763
|
return [2 /*return*/];
|
|
57735
57764
|
}
|
|
57736
57765
|
});
|
|
@@ -57774,7 +57803,8 @@
|
|
|
57774
57803
|
{ type: i0.Injector },
|
|
57775
57804
|
{ type: UserV5Service },
|
|
57776
57805
|
{ type: OrganizationService },
|
|
57777
|
-
{ type: CoCauToChucTestService }
|
|
57806
|
+
{ type: CoCauToChucTestService },
|
|
57807
|
+
{ type: ModuleConfigService }
|
|
57778
57808
|
]; };
|
|
57779
57809
|
UserPickerBoxComponent.propDecorators = {
|
|
57780
57810
|
multiple: [{ type: i0.Input }],
|
|
@@ -59436,6 +59466,7 @@
|
|
|
59436
59466
|
|
|
59437
59467
|
// 1
|
|
59438
59468
|
// 2
|
|
59469
|
+
// 3
|
|
59439
59470
|
function coreDeclaration() {
|
|
59440
59471
|
return [
|
|
59441
59472
|
AddressComponent,
|