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