@alfresco/adf-process-services-cloud 8.4.0-17433250431 → 8.4.0-17433658689
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';
|
|
@@ -4972,9 +4972,11 @@ class PeopleCloudComponent {
|
|
|
4972
4972
|
this.invalidUsers = [];
|
|
4973
4973
|
for (const user of this.getPreselectedUsers()) {
|
|
4974
4974
|
try {
|
|
4975
|
-
const validationResult = (await this.identityUserService
|
|
4976
|
-
|
|
4977
|
-
.
|
|
4975
|
+
const validationResult = (await firstValueFrom(this.identityUserService.search(user.username, {
|
|
4976
|
+
roles: this.roles,
|
|
4977
|
+
withinApplication: this.appName,
|
|
4978
|
+
groups: this.groupsRestriction
|
|
4979
|
+
})))[0];
|
|
4978
4980
|
if (!this.equalsUsers(user, validationResult)) {
|
|
4979
4981
|
this.invalidUsers.push(user);
|
|
4980
4982
|
}
|
|
@@ -5442,7 +5444,7 @@ class GroupCloudComponent {
|
|
|
5442
5444
|
return false;
|
|
5443
5445
|
}
|
|
5444
5446
|
async searchGroup(name) {
|
|
5445
|
-
return (await this.identityGroupService.search(name)
|
|
5447
|
+
return (await firstValueFrom(this.identityGroupService.search(name)))[0];
|
|
5446
5448
|
}
|
|
5447
5449
|
getPreselectedGroups() {
|
|
5448
5450
|
if (this.isSingleMode()) {
|
|
@@ -7363,23 +7365,23 @@ class ContentCloudNodeSelectorService {
|
|
|
7363
7365
|
async getNodeIdFromPath(destinationFolderPath) {
|
|
7364
7366
|
if (destinationFolderPath.alias && destinationFolderPath.path) {
|
|
7365
7367
|
try {
|
|
7366
|
-
return await this.getNodeId(destinationFolderPath.alias, destinationFolderPath.path)
|
|
7368
|
+
return await firstValueFrom(this.getNodeId(destinationFolderPath.alias, destinationFolderPath.path));
|
|
7367
7369
|
}
|
|
7368
7370
|
catch {
|
|
7369
7371
|
/*empty*/
|
|
7370
7372
|
}
|
|
7371
7373
|
}
|
|
7372
|
-
return this.getNodeId(destinationFolderPath.alias)
|
|
7374
|
+
return firstValueFrom(this.getNodeId(destinationFolderPath.alias));
|
|
7373
7375
|
}
|
|
7374
7376
|
async getNodeIdFromFolderVariableValue(variableValue, defaultAlias) {
|
|
7375
7377
|
const isExistingNode = await this.isExistingNode(variableValue);
|
|
7376
|
-
return isExistingNode ? variableValue : this.getNodeId(defaultAlias)
|
|
7378
|
+
return isExistingNode ? variableValue : firstValueFrom(this.getNodeId(defaultAlias));
|
|
7377
7379
|
}
|
|
7378
7380
|
async isExistingNode(nodeId) {
|
|
7379
7381
|
let isExistingNode = false;
|
|
7380
7382
|
if (nodeId) {
|
|
7381
7383
|
try {
|
|
7382
|
-
isExistingNode = await this.getNodeId(nodeId).pipe(mapTo(true))
|
|
7384
|
+
isExistingNode = await firstValueFrom(this.getNodeId(nodeId).pipe(mapTo(true)));
|
|
7383
7385
|
}
|
|
7384
7386
|
catch {
|
|
7385
7387
|
/*empty*/
|
|
@@ -8786,7 +8788,7 @@ class UnClaimTaskCloudDirective {
|
|
|
8786
8788
|
async onClick() {
|
|
8787
8789
|
try {
|
|
8788
8790
|
this.renderer.setAttribute(this.el.nativeElement, 'disabled', 'true');
|
|
8789
|
-
await this.taskListService.unclaimTask(this.appName, this.taskId)
|
|
8791
|
+
await firstValueFrom(this.taskListService.unclaimTask(this.appName, this.taskId));
|
|
8790
8792
|
this.success.emit(this.taskId);
|
|
8791
8793
|
}
|
|
8792
8794
|
catch (error) {
|
|
@@ -8878,7 +8880,7 @@ class ClaimTaskCloudDirective {
|
|
|
8878
8880
|
const currentUser = this.identityUserService.getCurrentUserInfo().username;
|
|
8879
8881
|
try {
|
|
8880
8882
|
this.renderer.setAttribute(this.el.nativeElement, 'disabled', 'true');
|
|
8881
|
-
const result = await this.taskListService.claimTask(this.appName, this.taskId, currentUser)
|
|
8883
|
+
const result = await firstValueFrom(this.taskListService.claimTask(this.appName, this.taskId, currentUser));
|
|
8882
8884
|
if (result) {
|
|
8883
8885
|
this.success.emit(result);
|
|
8884
8886
|
}
|
|
@@ -9571,7 +9573,7 @@ class CompleteTaskDirective {
|
|
|
9571
9573
|
async onClick() {
|
|
9572
9574
|
try {
|
|
9573
9575
|
this.renderer.setAttribute(this.el.nativeElement, 'disabled', 'true');
|
|
9574
|
-
const result = await this.taskListService.completeTask(this.appName, this.taskId)
|
|
9576
|
+
const result = await firstValueFrom(this.taskListService.completeTask(this.appName, this.taskId));
|
|
9575
9577
|
if (result) {
|
|
9576
9578
|
this.success.emit(result);
|
|
9577
9579
|
}
|