@tangential/admin-console
Version:
A basic administration console
41 lines (40 loc) • 2 kB
TypeScript
import { LiveAnnouncer } from '@angular/cdk/a11y';
import { ChangeDetectorRef, OnInit } from '@angular/core';
import { AdminService, AuthPermission } 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 PermissionManagerPage implements OnInit {
private adminService;
private parent;
private _liveAnnouncer;
private changeDetectorRef;
displayedColumns: string[];
dataSource: MatTableDataSource<AuthPermission>;
selection: SelectionModel<AuthPermission>;
rows: AuthPermission[];
selected: any[];
constructor(adminService: AdminService, parent: AdminConsoleParentPage, _liveAnnouncer: LiveAnnouncer, changeDetectorRef: ChangeDetectorRef);
sort: MatSort;
ngOnInit(): void;
get nextItemIndex(): number;
onAddItemAction(): void;
onRemove(key: string): void;
onRemoveSelectedAction(keys: string[]): void;
onItemChange(permission: AuthPermission): 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?: AuthPermission): string;
/** Announce the change in sort state for assistive technology. */
announceSortChange(sortState: Sort): void;
static ɵfac: i0.ɵɵFactoryDeclaration<PermissionManagerPage, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<PermissionManagerPage, "tanj-permission-manager", never, {}, {}, never, never, false>;
}