@alfresco/adf-process-services-cloud 8.4.0-17644123790 → 8.4.0-17645733517
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.
|
@@ -9,7 +9,7 @@ import * as i3 from '@angular/material/icon';
|
|
|
9
9
|
import { MatIconModule } from '@angular/material/icon';
|
|
10
10
|
import * as i4 from '@angular/material/card';
|
|
11
11
|
import { MatCardModule } from '@angular/material/card';
|
|
12
|
-
import { of, from, Subject, EMPTY, throwError, BehaviorSubject, combineLatest,
|
|
12
|
+
import { of, from, Subject, EMPTY, throwError, BehaviorSubject, combineLatest, forkJoin, catchError as catchError$1 } from 'rxjs';
|
|
13
13
|
import { map, catchError, take, tap, filter, switchMap, debounceTime, finalize, mergeMap, distinctUntilChanged, expand, reduce, mapTo, concatMap } from 'rxjs/operators';
|
|
14
14
|
import * as i1 from '@alfresco/adf-core/api';
|
|
15
15
|
import * as i6 from '@angular/material/core';
|
|
@@ -4980,11 +4980,9 @@ class PeopleCloudComponent {
|
|
|
4980
4980
|
this.invalidUsers = [];
|
|
4981
4981
|
for (const user of this.getPreselectedUsers()) {
|
|
4982
4982
|
try {
|
|
4983
|
-
const validationResult = (await
|
|
4984
|
-
roles: this.roles,
|
|
4985
|
-
|
|
4986
|
-
groups: this.groupsRestriction
|
|
4987
|
-
})))[0];
|
|
4983
|
+
const validationResult = (await this.identityUserService
|
|
4984
|
+
.search(user.username, { roles: this.roles, withinApplication: this.appName, groups: this.groupsRestriction })
|
|
4985
|
+
.toPromise())[0];
|
|
4988
4986
|
if (!this.equalsUsers(user, validationResult)) {
|
|
4989
4987
|
this.invalidUsers.push(user);
|
|
4990
4988
|
}
|
|
@@ -5452,7 +5450,7 @@ class GroupCloudComponent {
|
|
|
5452
5450
|
return false;
|
|
5453
5451
|
}
|
|
5454
5452
|
async searchGroup(name) {
|
|
5455
|
-
return (await
|
|
5453
|
+
return (await this.identityGroupService.search(name).toPromise())[0];
|
|
5456
5454
|
}
|
|
5457
5455
|
getPreselectedGroups() {
|
|
5458
5456
|
if (this.isSingleMode()) {
|
|
@@ -7373,23 +7371,23 @@ class ContentCloudNodeSelectorService {
|
|
|
7373
7371
|
async getNodeIdFromPath(destinationFolderPath) {
|
|
7374
7372
|
if (destinationFolderPath.alias && destinationFolderPath.path) {
|
|
7375
7373
|
try {
|
|
7376
|
-
return await
|
|
7374
|
+
return await this.getNodeId(destinationFolderPath.alias, destinationFolderPath.path).toPromise();
|
|
7377
7375
|
}
|
|
7378
7376
|
catch {
|
|
7379
7377
|
/*empty*/
|
|
7380
7378
|
}
|
|
7381
7379
|
}
|
|
7382
|
-
return
|
|
7380
|
+
return this.getNodeId(destinationFolderPath.alias).toPromise();
|
|
7383
7381
|
}
|
|
7384
7382
|
async getNodeIdFromFolderVariableValue(variableValue, defaultAlias) {
|
|
7385
7383
|
const isExistingNode = await this.isExistingNode(variableValue);
|
|
7386
|
-
return isExistingNode ? variableValue :
|
|
7384
|
+
return isExistingNode ? variableValue : this.getNodeId(defaultAlias).toPromise();
|
|
7387
7385
|
}
|
|
7388
7386
|
async isExistingNode(nodeId) {
|
|
7389
7387
|
let isExistingNode = false;
|
|
7390
7388
|
if (nodeId) {
|
|
7391
7389
|
try {
|
|
7392
|
-
isExistingNode = await
|
|
7390
|
+
isExistingNode = await this.getNodeId(nodeId).pipe(mapTo(true)).toPromise();
|
|
7393
7391
|
}
|
|
7394
7392
|
catch {
|
|
7395
7393
|
/*empty*/
|
|
@@ -8796,7 +8794,7 @@ class UnClaimTaskCloudDirective {
|
|
|
8796
8794
|
async onClick() {
|
|
8797
8795
|
try {
|
|
8798
8796
|
this.renderer.setAttribute(this.el.nativeElement, 'disabled', 'true');
|
|
8799
|
-
await
|
|
8797
|
+
await this.taskListService.unclaimTask(this.appName, this.taskId).toPromise();
|
|
8800
8798
|
this.success.emit(this.taskId);
|
|
8801
8799
|
}
|
|
8802
8800
|
catch (error) {
|
|
@@ -8888,7 +8886,7 @@ class ClaimTaskCloudDirective {
|
|
|
8888
8886
|
const currentUser = this.identityUserService.getCurrentUserInfo().username;
|
|
8889
8887
|
try {
|
|
8890
8888
|
this.renderer.setAttribute(this.el.nativeElement, 'disabled', 'true');
|
|
8891
|
-
const result = await
|
|
8889
|
+
const result = await this.taskListService.claimTask(this.appName, this.taskId, currentUser).toPromise();
|
|
8892
8890
|
if (result) {
|
|
8893
8891
|
this.success.emit(result);
|
|
8894
8892
|
}
|
|
@@ -9581,7 +9579,7 @@ class CompleteTaskDirective {
|
|
|
9581
9579
|
async onClick() {
|
|
9582
9580
|
try {
|
|
9583
9581
|
this.renderer.setAttribute(this.el.nativeElement, 'disabled', 'true');
|
|
9584
|
-
const result = await
|
|
9582
|
+
const result = await this.taskListService.completeTask(this.appName, this.taskId).toPromise();
|
|
9585
9583
|
if (result) {
|
|
9586
9584
|
this.success.emit(result);
|
|
9587
9585
|
}
|