UNPKG

@tangential/admin-console

Version:
49 lines (48 loc) 2.28 kB
import { LiveAnnouncer } from '@angular/cdk/a11y'; import { ChangeDetectorRef, OnInit } from '@angular/core'; import { AdminService, AuthPermission, AuthRole, AuthUser } from '@tangential/authorization-service'; import { MatSort, Sort } from '@angular/material/sort'; import { SelectionModel } from '@angular/cdk/collections'; import { MatTableDataSource } from '@angular/material/table'; import { AdminConsoleParentPage } from '../_parent/admin-console-parent.page'; import * as i0 from "@angular/core"; export declare class UserManagerPage implements OnInit { private adminService; private parent; private _liveAnnouncer; private changeDetectorRef; displayedColumns: string[]; dataSource: MatTableDataSource<AuthUser>; selection: SelectionModel<AuthUser>; rows: AuthUser[]; selected: any[]; columns: { prop: string; name: string; flexGrow: number; }[]; constructor(adminService: AdminService, parent: AdminConsoleParentPage, _liveAnnouncer: LiveAnnouncer, changeDetectorRef: ChangeDetectorRef); sort: MatSort; ngOnInit(): void; grantPermission(user: AuthUser, permission: AuthPermission): void; revokePermission(user: AuthUser, permission: AuthPermission): void; grantRole(user: AuthUser, role: AuthRole): void; revokeRole(user: AuthUser, role: AuthRole): void; onAddItemAction(): void; onRemove(key: string): void; onRemoveSelectedAction(keys: string[]): void; onItemChange(user: AuthUser): void; /** * Borrowed directly from Angular Material examples: https://material.angular.io/components/table/overview */ /** Whether the number of selected elements matches the total number of rows. */ isAllSelected(): boolean; /** Selects all rows if they are not all selected; otherwise clear selection. */ toggleAllRows(): void; /** The label for the checkbox on the passed row */ checkboxLabel(row?: AuthUser): string; /** Announce the change in sort state for assistive technology. */ announceSortChange(sortState: Sort): void; static ɵfac: i0.ɵɵFactoryDeclaration<UserManagerPage, never>; static ɵcmp: i0.ɵɵComponentDeclaration<UserManagerPage, "tanj-user-manager-page", never, {}, {}, never, never, false>; }