tnx-shared 5.1.236 → 5.1.237
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 +10 -6
- 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/workflow/models/models.d.ts +3 -0
- package/components/workflow/models/models.d.ts.map +1 -1
- package/components/workflow/process-workflow-form/process-workflow-form.component.d.ts.map +1 -1
- package/esm2015/components/statemachines/statemachines-connection-metadata/statemachines-connection-metadata.component.js +2 -2
- package/esm2015/components/workflow/models/models.js +1 -1
- package/esm2015/components/workflow/process-workflow-form/process-workflow-form.component.js +5 -2
- package/esm2015/components/workflow/process-workflow-target/process-workflow-target.component.js +5 -5
- package/fesm2015/tnx-shared.js +9 -6
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -43832,7 +43832,7 @@
|
|
|
43832
43832
|
mdWidth: 5
|
|
43833
43833
|
}),
|
|
43834
43834
|
new CheckBoxListControlSchema({
|
|
43835
|
-
label: 'Cho sửa gợi ý',
|
|
43835
|
+
label: 'Cho sửa gợi ý nhóm theo dõi (dữ liệu lấy từ bước trước)',
|
|
43836
43836
|
field: 'targetsAllowModify',
|
|
43837
43837
|
mdWidth: 12,
|
|
43838
43838
|
dataSource: DataSourceTargetType
|
|
@@ -49879,6 +49879,9 @@
|
|
|
49879
49879
|
this.initValueForTargetForm.lstGroupViewId = dataUserInProcessForm.lstGroupViewId;
|
|
49880
49880
|
this.initValueForTargetForm.lstRoleId = dataUserInProcessForm.lstRoleId;
|
|
49881
49881
|
this.initValueForTargetForm.lstRoleViewId = dataUserInProcessForm.lstRoleViewId;
|
|
49882
|
+
this.initValueForTargetForm.lstUserIdInWorkflow = dataUserInProcessForm.lstUserIdInWorkflow;
|
|
49883
|
+
this.initValueForTargetForm.lstDonViIdInWorkflow = dataUserInProcessForm.lstDonViIdInWorkflow;
|
|
49884
|
+
this.initValueForTargetForm.lstGroupIdInWorkflow = dataUserInProcessForm.lstGroupIdInWorkflow;
|
|
49882
49885
|
return [2 /*return*/, true];
|
|
49883
49886
|
}
|
|
49884
49887
|
});
|
|
@@ -50015,7 +50018,7 @@
|
|
|
50015
50018
|
ProcessWorkflowFormComponent.decorators = [
|
|
50016
50019
|
{ type: i0.Component, args: [{
|
|
50017
50020
|
selector: 'process-workflow-form',
|
|
50018
|
-
template: "<crud-form *ngIf=\"formReady\" #crudForm [(data)]=\"model.data\" [setting]=\"setting\" [context]=\"context\"\r\n [disableCaching]=\"true\" (onFormReady)=\"_handleFormReady($event)\">\r\n <ng-template #separator>\r\n <div style=\"height: 3px; width: 100%; background: #2196f3;\"></div>\r\n </ng-template>\r\n</crud-form>\r\n<tn-tabview *ngIf=\"formReady\" [data]=\"mainTabData\" [allowViewAll]=\"true\" [isDynamicHeight]=\"true\">\r\n <ng-template #allowEdit>\r\n <process-workflow-target #targetAllowEdit [data]=\"dataAllowEdit\" [initValue]=\"initValueForTargetForm\"
|
|
50021
|
+
template: "<crud-form *ngIf=\"formReady\" #crudForm [(data)]=\"model.data\" [setting]=\"setting\" [context]=\"context\"\r\n [disableCaching]=\"true\" (onFormReady)=\"_handleFormReady($event)\">\r\n <ng-template #separator>\r\n <div style=\"height: 3px; width: 100%; background: #2196f3;\"></div>\r\n </ng-template>\r\n</crud-form>\r\n<tn-tabview *ngIf=\"formReady\" [data]=\"mainTabData\" [allowViewAll]=\"true\" [isDynamicHeight]=\"true\">\r\n <ng-template #allowEdit>\r\n <process-workflow-target #targetAllowEdit [data]=\"dataAllowEdit\" [initValue]=\"initValueForTargetForm\">\r\n </process-workflow-target>\r\n </ng-template>\r\n <ng-template #onlyView>\r\n <process-workflow-target #targetOnlyView [data]=\"dataOnlyView\" [initValue]=\"initValueForTargetForm\"\r\n [action]=\"action\">\r\n </process-workflow-target>\r\n </ng-template>\r\n</tn-tabview>\r\n<ng-template #buttonTemplate>\r\n <button *ngIf=\"!model.data.__disableEdit && !__isFormView\" [disabled]=\"model.submitting\" type=\"button\" pButton\r\n icon=\"pi pi-save\" class=\"p-button-text\" [label]=\"'FORM.SAVE' | translate\"\r\n (click)=\"_handleSave($event)\"></button>\r\n <button type=\"button\" pButton icon=\"pi pi-replay\" class=\"p-button-text p-button-secondary\"\r\n [label]=\"'FORM.CANCEL' | translate\" preventTab (click)=\"_handleCancel($event)\"></button>\r\n</ng-template>",
|
|
50019
50022
|
styles: [""]
|
|
50020
50023
|
},] }
|
|
50021
50024
|
];
|
|
@@ -50100,20 +50103,21 @@
|
|
|
50100
50103
|
};
|
|
50101
50104
|
ProcessWorkflowTargetComponent.prototype.onFormInitialized = function (evt) {
|
|
50102
50105
|
return __awaiter(this, void 0, void 0, function () {
|
|
50106
|
+
var _this = this;
|
|
50103
50107
|
return __generator(this, function (_a) {
|
|
50104
50108
|
evt.model.userIds = this.data.userIds;
|
|
50105
50109
|
evt.model.departmentIds = this.data.departmentIds;
|
|
50106
50110
|
evt.model.groupIds = this.data.groupIds;
|
|
50107
50111
|
// evt.model.roleIds = this.data.roleIds;
|
|
50108
|
-
if (this.action.targetsAllowModify) {
|
|
50112
|
+
if (this.action && this.action.targetsAllowModify) {
|
|
50109
50113
|
if (!this.action.targetsAllowModify.some(function (x) { return x == exports.EnumTargetType.USER; })) {
|
|
50110
|
-
evt.model.userIds_readOnly = evt.model.userIds;
|
|
50114
|
+
evt.model.userIds_readOnly = evt.model.userIds.filter(function (q) { return _this.initValue.lstUserIdInWorkflow.some(function (x) { return x == q; }); });
|
|
50111
50115
|
}
|
|
50112
50116
|
if (!this.action.targetsAllowModify.some(function (x) { return x == exports.EnumTargetType.DEPARTMENT; })) {
|
|
50113
|
-
evt.model.departmentIds_readOnly = evt.model.departmentIds;
|
|
50117
|
+
evt.model.departmentIds_readOnly = evt.model.departmentIds.filter(function (q) { return _this.initValue.lstDonViIdInWorkflow.some(function (x) { return x == q; }); });
|
|
50114
50118
|
}
|
|
50115
50119
|
if (!this.action.targetsAllowModify.some(function (x) { return x == exports.EnumTargetType.GROUP; })) {
|
|
50116
|
-
evt.model.groupIds_readOnly = evt.model.groupIds;
|
|
50120
|
+
evt.model.groupIds_readOnly = evt.model.groupIds.filter(function (q) { return _this.initValue.lstGroupIdInWorkflow.some(function (x) { return x == q; }); });
|
|
50117
50121
|
}
|
|
50118
50122
|
}
|
|
50119
50123
|
return [2 /*return*/];
|