@netgrif/components
Version:
Netgrif Application Engine frontend Angular components
43 lines (42 loc) • 1.97 kB
TypeScript
import { ProcessRole, UserListInjectedData, UserValue } from '@netgrif/components-core';
import { FormControl } from '@angular/forms';
import { MatDialogRef } from '@angular/material/dialog';
import * as i0 from "@angular/core";
export declare class AdminImpersonateDialogComponent {
protected _dialogRef: MatDialogRef<AdminImpersonateDialogComponent>;
protected _data: UserListInjectedData;
/**
* Form control for user search value.
*/
searchUserControl: FormControl<any>;
/**
* Data about preselected user send from [UserFieldComponent]{@link AbstractUserFieldComponent}.
*/
injectedData: UserListInjectedData;
/**
* Value of the current selected user.
*/
protected _currentUser: UserValue;
/**
* Inject and set data send from [UserFieldComponent]{@link AbstractUserFieldComponent} if the user is preselected.
* @param _sideMenuControl Contains [Roles]{@link ProcessRole} and [UserValue]{@link UserValue}.
*/
constructor(_dialogRef: MatDialogRef<AdminImpersonateDialogComponent>, _data: UserListInjectedData);
/**
* The user that is initially selected, or `undefined` if none is
*/
get initiallySelectedUser(): UserValue | undefined;
get roles(): Array<string> | Array<ProcessRole>;
get negativeRoles(): Array<string> | Array<ProcessRole>;
/**
* On select user from users assign list publish side menu with selected user as data and message about selection.
* @param user Select current user as [UserValue]{@link UserValue}
*/
userWasSelected(user: UserValue): void;
/**
* On assign button close side menu with selected user as data and message about confirm.
*/
assign(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<AdminImpersonateDialogComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<AdminImpersonateDialogComponent, "nc-admin-impersonate-dialog", never, {}, {}, never, never, false, never>;
}