@alfresco/adf-core 8.4.0-17645733517 → 8.4.0-17676172540
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/fesm2022/adf-core.mjs +5 -5
- package/fesm2022/adf-core.mjs.map +1 -1
- package/fesm2022/alfresco-adf-core-api.mjs +3 -5
- package/fesm2022/alfresco-adf-core-api.mjs.map +1 -1
- package/package.json +4 -5
- package/schematics/migrations/schematics/migrations/7_0_0/index.d.ts +1 -2
- package/schematics/migrations/schematics/migrations/7_0_0/index.js +46 -59
- package/schematics/migrations/schematics/migrations/7_0_0/index.js.map +1 -1
- package/schematics/migrations/schematics/migrations/collection.json +0 -5
package/fesm2022/adf-core.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import * as i1$1 from '@ngx-translate/core';
|
|
|
8
8
|
import { TranslatePipe, provideTranslateService, TranslateLoader, TranslateModule } from '@ngx-translate/core';
|
|
9
9
|
import * as i1$8 from '@angular/common/http';
|
|
10
10
|
import { HttpClient, HttpHeaders, HttpResponse, provideHttpClient, HTTP_INTERCEPTORS, withInterceptorsFromDi, withXsrfConfiguration } from '@angular/common/http';
|
|
11
|
-
import { ReplaySubject, BehaviorSubject, of, Subject, switchMap as switchMap$1, from, fromEvent, Observable, throwError, combineLatest, defer, EMPTY, race, forkJoin, merge } from 'rxjs';
|
|
11
|
+
import { ReplaySubject, BehaviorSubject, of, Subject, switchMap as switchMap$1, from, fromEvent, Observable, throwError, firstValueFrom, combineLatest, defer, EMPTY, race, forkJoin, merge } from 'rxjs';
|
|
12
12
|
import { map, distinctUntilChanged, take, switchMap, delay, catchError, skipWhile, filter, first, timeout, shareReplay, mergeMap, tap, retry, takeUntil, debounceTime, share, pairwise, buffer } from 'rxjs/operators';
|
|
13
13
|
import * as i1$4 from '@alfresco/adf-extensions';
|
|
14
14
|
import { ExtensionService, mergeObjects, ExtensionsModule, PreviewExtensionComponent } from '@alfresco/adf-extensions';
|
|
@@ -7552,7 +7552,7 @@ class AuthConfigService {
|
|
|
7552
7552
|
return this._authConfig;
|
|
7553
7553
|
}
|
|
7554
7554
|
loadConfig() {
|
|
7555
|
-
return this.appConfigService.onLoad.pipe(take(1))
|
|
7555
|
+
return firstValueFrom(this.appConfigService.onLoad.pipe(take(1))).then(this.loadAppConfig.bind(this));
|
|
7556
7556
|
}
|
|
7557
7557
|
loadAppConfig() {
|
|
7558
7558
|
const oauth2 = this.appConfigService.oauth2;
|
|
@@ -9794,7 +9794,7 @@ class IdentityUserService {
|
|
|
9794
9794
|
async getUsersByRolesWithCurrentUser(roleNames) {
|
|
9795
9795
|
const filteredUsers = [];
|
|
9796
9796
|
if (roleNames && roleNames.length > 0) {
|
|
9797
|
-
const users = await this.getUsers()
|
|
9797
|
+
const users = await firstValueFrom(this.getUsers());
|
|
9798
9798
|
for (let i = 0; i < users.length; i++) {
|
|
9799
9799
|
const hasAnyRole = await this.userHasAnyRole(users[i].id, roleNames);
|
|
9800
9800
|
if (hasAnyRole) {
|
|
@@ -9814,7 +9814,7 @@ class IdentityUserService {
|
|
|
9814
9814
|
const filteredUsers = [];
|
|
9815
9815
|
if (roleNames && roleNames.length > 0) {
|
|
9816
9816
|
const currentUser = this.getCurrentUserInfo();
|
|
9817
|
-
let users = await this.getUsers()
|
|
9817
|
+
let users = await firstValueFrom(this.getUsers());
|
|
9818
9818
|
users = users.filter(({ username }) => username !== currentUser.username);
|
|
9819
9819
|
for (let i = 0; i < users.length; i++) {
|
|
9820
9820
|
const hasAnyRole = await this.userHasAnyRole(users[i].id, roleNames);
|
|
@@ -9826,7 +9826,7 @@ class IdentityUserService {
|
|
|
9826
9826
|
return filteredUsers;
|
|
9827
9827
|
}
|
|
9828
9828
|
async userHasAnyRole(userId, roleNames) {
|
|
9829
|
-
const userRoles = await this.getUserRoles(userId)
|
|
9829
|
+
const userRoles = await firstValueFrom(this.getUserRoles(userId));
|
|
9830
9830
|
const hasAnyRole = roleNames.some((roleName) => {
|
|
9831
9831
|
const filteredRoles = userRoles.filter((userRole) => userRole.name.toLocaleLowerCase() === roleName.toLocaleLowerCase());
|
|
9832
9832
|
return filteredRoles.length > 0;
|