@rxap/authorization
Version:
Provides an Angular module and directives to manage authorization and permissions in your application. It allows you to control the visibility and enabled state of UI elements based on user permissions. The package includes an `AuthorizationService` to ch
15 lines (14 loc) • 1.25 kB
TypeScript
import { ChangeDetectorRef, Injector, OnInit } from '@angular/core';
import { AuthorizationService } from './authorization.service';
import { HasEnablePermission } from './has-enable-permission';
import * as i0 from "@angular/core";
export declare class MatButtonHasEnablePermissionDirective extends HasEnablePermission implements OnInit {
private readonly injector;
identifier: string;
private _button;
constructor(authorization: AuthorizationService, cdr: ChangeDetectorRef, injector: Injector, scope: string);
setDisabled(disabled: boolean): void;
ngOnInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonHasEnablePermissionDirective, [null, null, null, { optional: true; }]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonHasEnablePermissionDirective, "button[rxapHasEnablePermission],[mat-button][rxapHasEnablePermission],[mat-raised-button][rxapHasEnablePermission],[mat-stroked-button][rxapHasEnablePermission],[mat-flat-button][rxapHasEnablePermission],[mat-icon-button][rxapHasEnablePermission],[mat-fab][rxapHasEnablePermission],[mat-mini-fab][rxapHasEnablePermission]", never, { "identifier": { "alias": "rxapHasEnablePermission"; "required": false; }; }, {}, never, never, true, never>;
}