@onecx/angular-accelerator 5.1.5 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ElementRef, InjectionToken, OnInit, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { UserService } from '@onecx/angular-integration-interface';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export interface HasPermissionChecker {
|
|
4
5
|
hasPermission(permissionKey: string): boolean;
|
|
@@ -14,17 +15,19 @@ export declare class IfPermissionDirective implements OnInit {
|
|
|
14
15
|
private renderer;
|
|
15
16
|
private el;
|
|
16
17
|
private viewContainer;
|
|
17
|
-
private
|
|
18
|
+
private hasPermissionChecker?;
|
|
18
19
|
private templateRef?;
|
|
20
|
+
private userService?;
|
|
19
21
|
permission: string | undefined;
|
|
20
22
|
set notPermission(value: string | undefined);
|
|
21
23
|
onMissingPermission: 'hide' | 'disable';
|
|
22
24
|
ocxIfPermissionPermissions: string[] | undefined;
|
|
23
25
|
set ocxIfNotPermissionPermissions(value: string[] | undefined);
|
|
26
|
+
private permissionChecker;
|
|
24
27
|
negate: boolean;
|
|
25
|
-
constructor(renderer: Renderer2, el: ElementRef, viewContainer: ViewContainerRef,
|
|
28
|
+
constructor(renderer: Renderer2, el: ElementRef, viewContainer: ViewContainerRef, hasPermissionChecker?: HasPermissionChecker | undefined, templateRef?: TemplateRef<any> | undefined, userService?: UserService | undefined);
|
|
26
29
|
ngOnInit(): void;
|
|
27
|
-
hasPermission(permission: string): boolean;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IfPermissionDirective, [null, null, null,
|
|
30
|
+
hasPermission(permission: string): boolean | undefined;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IfPermissionDirective, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
29
32
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IfPermissionDirective, "[ocxIfPermission], [ocxIfNotPermission]", never, { "permission": { "alias": "ocxIfPermission"; "required": false; }; "notPermission": { "alias": "ocxIfNotPermission"; "required": false; }; "onMissingPermission": { "alias": "onMissingPermission"; "required": false; }; "ocxIfPermissionPermissions": { "alias": "ocxIfPermissionPermissions"; "required": false; }; "ocxIfNotPermissionPermissions": { "alias": "ocxIfNotPermissionPermissions"; "required": false; }; }, {}, never, never, false, never>;
|
|
30
33
|
}
|