vcomply-workflow-engine 2.6.23 → 2.6.24
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/vcomply-workflow-engine.umd.js +16 -2
- package/bundles/vcomply-workflow-engine.umd.js.map +1 -1
- package/esm2015/lib/sharedComponents/program-listing/program-listing.component.js +17 -3
- package/fesm2015/vcomply-workflow-engine.js +16 -2
- package/fesm2015/vcomply-workflow-engine.js.map +1 -1
- package/lib/sharedComponents/program-listing/program-listing.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -24856,6 +24856,7 @@
|
|
|
24856
24856
|
this.saveSelectedProgram = new i0.EventEmitter();
|
|
24857
24857
|
this.closeEvent = new i0.EventEmitter();
|
|
24858
24858
|
this.allCategories = [];
|
|
24859
|
+
this.selectedSubCategoryIds = [];
|
|
24859
24860
|
this.programSubTab = 'PROGRAMS';
|
|
24860
24861
|
}
|
|
24861
24862
|
Object.defineProperty(ProgramListingComponent.prototype, "getSelectedCategories", {
|
|
@@ -24939,6 +24940,9 @@
|
|
|
24939
24940
|
var params = new i1.HttpParams();
|
|
24940
24941
|
// params = params.append('program_id', this.currentProgram._id);
|
|
24941
24942
|
params = params.append('isPagination', false);
|
|
24943
|
+
if (this.mode === 'EDIT' && this.responsibilityId) {
|
|
24944
|
+
params = params.append('reportId', this.responsibilityId);
|
|
24945
|
+
}
|
|
24942
24946
|
this.responsibilityService.getProgramsList(params, this.selectedProgramsId).subscribe({
|
|
24943
24947
|
next: function (res) {
|
|
24944
24948
|
var allCategories = res.data;
|
|
@@ -25096,6 +25100,9 @@
|
|
|
25096
25100
|
var params = new i1.HttpParams();
|
|
25097
25101
|
// params = params.append('program_id', this.currentProgram?._id);
|
|
25098
25102
|
params = params.append('isPagination', false);
|
|
25103
|
+
if (this.mode === 'EDIT' && this.responsibilityId) {
|
|
25104
|
+
params = params.append('reportId', this.responsibilityId);
|
|
25105
|
+
}
|
|
25099
25106
|
this.responsibilityService.getProgramsList(params, this.selectedProgramsId).subscribe({
|
|
25100
25107
|
next: function (res) {
|
|
25101
25108
|
var allCategories = res.data;
|
|
@@ -25263,13 +25270,18 @@
|
|
|
25263
25270
|
if (queryObject === null || queryObject === void 0 ? void 0 : queryObject.search) {
|
|
25264
25271
|
params = params.append('searchText', this.categorySearchString);
|
|
25265
25272
|
}
|
|
25273
|
+
if (this.mode === 'EDIT' && this.responsibilityId) {
|
|
25274
|
+
params = params.append('reportId', this.responsibilityId);
|
|
25275
|
+
}
|
|
25266
25276
|
this.responsibilityService.getProgramsList(params, __spreadArray([], __read(new Set(this.selectedProgramsId)))).subscribe({
|
|
25267
25277
|
next: function (res) {
|
|
25278
|
+
var _a;
|
|
25268
25279
|
_this.categoryData.data = res.data;
|
|
25269
25280
|
_this.categoryData.from = res.from;
|
|
25270
25281
|
_this.categoryData.to = res.to;
|
|
25271
25282
|
_this.categoryData.totalPages = res.totalPages;
|
|
25272
25283
|
_this.categoryData.totalRecords = res.totalRecords;
|
|
25284
|
+
_this.selectedSubCategoryIds = ((_a = res === null || res === void 0 ? void 0 : res.selectedSubCategoryIds) === null || _a === void 0 ? void 0 : _a.length) ? res === null || res === void 0 ? void 0 : res.selectedSubCategoryIds : [];
|
|
25273
25285
|
_this.loader = false;
|
|
25274
25286
|
},
|
|
25275
25287
|
error: function (err) {
|
|
@@ -25318,13 +25330,15 @@
|
|
|
25318
25330
|
this.displayConfirmationMessage = true;
|
|
25319
25331
|
}
|
|
25320
25332
|
else {
|
|
25321
|
-
|
|
25333
|
+
var selectedCategoryIds = this.selectedIds.concat(this.selectedSubCategoryIds);
|
|
25334
|
+
this.saveSelectedProgram.emit({ program: this.currentProgram, categories: __spreadArray([], __read(new Set(selectedCategoryIds))), linkedProgram: this.selectedProgramsDetail });
|
|
25322
25335
|
// this.saveSelectedProgram.emit({ program: this.currentProgram, categories: this.selectedIds });
|
|
25323
25336
|
}
|
|
25324
25337
|
};
|
|
25325
25338
|
ProgramListingComponent.prototype.saveChanges = function (value) {
|
|
25326
25339
|
if (value) {
|
|
25327
|
-
|
|
25340
|
+
var selectedCategoryIds = this.selectedIds.concat(this.selectedSubCategoryIds);
|
|
25341
|
+
this.saveSelectedProgram.emit({ program: this.currentProgram, categories: __spreadArray([], __read(new Set(selectedCategoryIds))), linkedProgram: this.selectedProgramsDetail });
|
|
25328
25342
|
// this.saveSelectedProgram.emit({ program: this.currentProgram, categories: this.selectedIds });
|
|
25329
25343
|
}
|
|
25330
25344
|
else {
|