mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AD-4222] e2e compilation fixes (#4426)
* Run tsc on the e2e folder and as part of the sh script * in progress * in progress * in progress * in progress * in progress * in progress * fixing compile errors * fixing compile errors. * Fix the apiService and exclude nodemodules * Add semicolumn * fix import * fix configuration test package * fix * fix errors * fix typescript * restore packages.json * fix errors after rebase * fix type prolems and add protracotr path mapping * remove undefined
This commit is contained in:
committed by
Eugenio Romano
parent
f891ea3df5
commit
fc2132e248
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@alfresco/adf-process-services-cloud",
|
||||
"description": "Alfresco ADF process services cloud",
|
||||
"version": "3.1.0-beta4",
|
||||
"version": "3.1.0-beta5",
|
||||
"author": "Alfresco Software, Ltd.",
|
||||
"main": "bundles/adf-process-services-cloud.js",
|
||||
"repository": {
|
||||
@@ -25,9 +25,9 @@
|
||||
"@angular/platform-browser": ">=7.0.3",
|
||||
"@angular/platform-browser-dynamic": ">=7.0.3",
|
||||
"@angular/router": ">=7.0.3",
|
||||
"@alfresco/js-api": "3.1.0-beta4",
|
||||
"@alfresco/js-api": "3.1.0-6eec5abc14bb31af3512cba5492f4ba43ffa2fac",
|
||||
"rxjs": ">=6.2.2",
|
||||
"@alfresco/adf-core": "3.1.0-beta4",
|
||||
"@alfresco/adf-core": "3.1.0-beta5",
|
||||
"@ngx-translate/core": ">=11.0.0",
|
||||
"hammerjs": ">=2.0.8",
|
||||
"moment": ">=2.22.2",
|
||||
|
@@ -15,7 +15,18 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Component, ElementRef, OnInit, Output, EventEmitter, ViewChild, ViewEncapsulation, Input, SimpleChanges, OnChanges } from '@angular/core';
|
||||
import {
|
||||
Component,
|
||||
ElementRef,
|
||||
OnInit,
|
||||
Output,
|
||||
EventEmitter,
|
||||
ViewChild,
|
||||
ViewEncapsulation,
|
||||
Input,
|
||||
SimpleChanges,
|
||||
OnChanges
|
||||
} from '@angular/core';
|
||||
import { FormControl } from '@angular/forms';
|
||||
import { trigger, state, style, transition, animate } from '@angular/animations';
|
||||
import { Observable, of, BehaviorSubject } from 'rxjs';
|
||||
@@ -133,6 +144,7 @@ export class GroupCloudComponent implements OnInit, OnChanges {
|
||||
this.enableSearch();
|
||||
}
|
||||
}
|
||||
|
||||
initSearch() {
|
||||
this.searchGroupsControl.valueChanges.pipe(
|
||||
filter((value) => {
|
||||
@@ -211,9 +223,9 @@ export class GroupCloudComponent implements OnInit, OnChanges {
|
||||
|
||||
filterGroupsByRoles(group: GroupModel): Observable<GroupModel> {
|
||||
return this.groupService.checkGroupHasRole(group.id, this.roles).pipe(
|
||||
mergeMap((hasRole) => {
|
||||
mergeMap<boolean, Observable<GroupModel>>((hasRole) => {
|
||||
return hasRole ? of(group) : of();
|
||||
}));
|
||||
}));
|
||||
}
|
||||
|
||||
onSelect(selectedGroup: GroupModel) {
|
||||
@@ -236,7 +248,9 @@ export class GroupCloudComponent implements OnInit, OnChanges {
|
||||
|
||||
onRemove(selectedGroup: GroupModel) {
|
||||
this.removeGroup.emit(selectedGroup);
|
||||
const indexToRemove = this.selectedGroups.findIndex((group: GroupModel) => { return group.id === selectedGroup.id; });
|
||||
const indexToRemove = this.selectedGroups.findIndex((group: GroupModel) => {
|
||||
return group.id === selectedGroup.id;
|
||||
});
|
||||
this.selectedGroups.splice(indexToRemove, 1);
|
||||
this.selectedGroupsSubject.next(this.selectedGroups);
|
||||
}
|
||||
|
@@ -261,7 +261,7 @@ export class PeopleCloudComponent implements OnInit, OnChanges {
|
||||
|
||||
filterUsersByRoles(user: IdentityUserModel): Observable<IdentityUserModel> {
|
||||
return this.identityUserService.checkUserHasRole(user.id, this.roles).pipe(
|
||||
mergeMap((hasRole) => {
|
||||
mergeMap<boolean, Observable<IdentityUserModel>>((hasRole) => {
|
||||
return hasRole ? of(user) : of();
|
||||
})
|
||||
);
|
||||
|
Reference in New Issue
Block a user