@firestitch/app-acl 12.3.6 → 12.3.8
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.
- package/app/components/acl-entries/acl-entries.component.d.ts +33 -33
- package/app/components/acl-entry/acl-entry.component.d.ts +31 -31
- package/app/components/acl-object-roles/acl-object-roles.component.d.ts +18 -18
- package/app/components/acl-permission-popover/acl-permission-popover.component.d.ts +12 -12
- package/app/components/acl-role/acl-role.component.d.ts +46 -46
- package/app/components/acl-role-popover/acl-role-popover.component.d.ts +13 -13
- package/app/components/acl-roles/acl-roles.component.d.ts +34 -35
- package/app/consts/acl-role-accesses.d.ts +5 -5
- package/app/enums/acl-role-access.d.ts +6 -6
- package/app/fs-app-acl.module.d.ts +31 -31
- package/app/injectors/app-acl-config.injector.d.ts +2 -2
- package/app/interfaces/acl-entry-data.d.ts +11 -11
- package/app/interfaces/acl-entry.d.ts +18 -18
- package/app/interfaces/acl-level.d.ts +3 -3
- package/app/interfaces/acl-object-entry.d.ts +11 -11
- package/app/interfaces/acl-object-role.d.ts +6 -6
- package/app/interfaces/acl-object.d.ts +4 -4
- package/app/interfaces/acl-permission.d.ts +7 -7
- package/app/interfaces/acl-role.d.ts +15 -15
- package/app/interfaces/app-acl-config.d.ts +7 -7
- package/app/interfaces/name-value.d.ts +4 -4
- package/app/services/app-acl.service.d.ts +16 -16
- package/bundles/firestitch-app-acl.umd.js +1133 -1134
- package/bundles/firestitch-app-acl.umd.js.map +1 -1
- package/esm2015/app/components/acl-entries/acl-entries.component.js +172 -172
- package/esm2015/app/components/acl-entry/acl-entry.component.js +89 -89
- package/esm2015/app/components/acl-object-roles/acl-object-roles.component.js +56 -56
- package/esm2015/app/components/acl-permission-popover/acl-permission-popover.component.js +32 -32
- package/esm2015/app/components/acl-role/acl-role.component.js +200 -200
- package/esm2015/app/components/acl-role-popover/acl-role-popover.component.js +37 -37
- package/esm2015/app/components/acl-roles/acl-roles.component.js +145 -146
- package/esm2015/app/consts/acl-role-accesses.js +7 -7
- package/esm2015/app/enums/acl-role-access.js +7 -7
- package/esm2015/app/fs-app-acl.module.js +123 -123
- package/esm2015/app/injectors/app-acl-config.injector.js +2 -2
- package/esm2015/app/interfaces/acl-entry-data.js +1 -1
- package/esm2015/app/interfaces/acl-entry.js +1 -1
- package/esm2015/app/interfaces/acl-level.js +1 -1
- package/esm2015/app/interfaces/acl-object-entry.js +1 -1
- package/esm2015/app/interfaces/acl-object-role.js +1 -1
- package/esm2015/app/interfaces/acl-object.js +1 -1
- package/esm2015/app/interfaces/acl-permission.js +1 -1
- package/esm2015/app/interfaces/acl-role.js +1 -1
- package/esm2015/app/interfaces/app-acl-config.js +1 -1
- package/esm2015/app/interfaces/name-value.js +1 -1
- package/esm2015/app/services/app-acl.service.js +50 -50
- package/esm2015/firestitch-app-acl.js +4 -4
- package/esm2015/public_api.js +10 -10
- package/fesm2015/firestitch-app-acl.js +775 -776
- package/fesm2015/firestitch-app-acl.js.map +1 -1
- package/firestitch-app-acl.d.ts +5 -5
- package/package.json +1 -1
- package/public_api.d.ts +20 -20
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { FsListAction, FsListComponent, FsListConfig } from '@firestitch/list';
|
|
5
|
-
import { FsPrompt } from '@firestitch/prompt';
|
|
6
|
-
import { FsAppAclService } from '../../services/app-acl.service';
|
|
7
|
-
import { AclEntry } from '../../interfaces/acl-entry';
|
|
8
|
-
import { AclRole } from '../../interfaces/acl-role';
|
|
9
|
-
import { AclObjectEntry } from '../../interfaces/acl-object-entry';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class FsAclEntriesComponent implements OnInit, OnDestroy {
|
|
12
|
-
private readonly _appAclService;
|
|
13
|
-
private readonly _dialog;
|
|
14
|
-
private _confirm;
|
|
15
|
-
loadAclEntries: (query: any) => Observable<AclEntry[]>;
|
|
16
|
-
loadAclRoles: (query: any) => Observable<AclRole[]>;
|
|
17
|
-
saveAclObjectEntry: (aclObjectEntry: AclObjectEntry) => Observable<any>;
|
|
18
|
-
environmentShow: boolean;
|
|
19
|
-
environmentLabel: string;
|
|
20
|
-
environmentKey: string;
|
|
21
|
-
actions: FsListAction[];
|
|
22
|
-
aclEntriesList: FsListComponent;
|
|
23
|
-
aclEntriesConfig: FsListConfig;
|
|
24
|
-
permissions: any[];
|
|
25
|
-
private _destroy$;
|
|
26
|
-
constructor(_appAclService: FsAppAclService, _dialog: MatDialog, _confirm: FsPrompt);
|
|
27
|
-
ngOnInit(): void;
|
|
28
|
-
update(aclObjectEntry: AclObjectEntry): void;
|
|
29
|
-
ngOnDestroy(): void;
|
|
30
|
-
reload(): void;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsAclEntriesComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsAclEntriesComponent, "fs-acl-entries", never, { "loadAclEntries": "loadAclEntries"; "loadAclRoles": "loadAclRoles"; "saveAclObjectEntry": "saveAclObjectEntry"; "environmentShow": "environmentShow"; "environmentLabel": "environmentLabel"; "environmentKey": "environmentKey"; "actions": "actions"; }, {}, never, never>;
|
|
33
|
-
}
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { FsListAction, FsListComponent, FsListConfig } from '@firestitch/list';
|
|
5
|
+
import { FsPrompt } from '@firestitch/prompt';
|
|
6
|
+
import { FsAppAclService } from '../../services/app-acl.service';
|
|
7
|
+
import { AclEntry } from '../../interfaces/acl-entry';
|
|
8
|
+
import { AclRole } from '../../interfaces/acl-role';
|
|
9
|
+
import { AclObjectEntry } from '../../interfaces/acl-object-entry';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class FsAclEntriesComponent implements OnInit, OnDestroy {
|
|
12
|
+
private readonly _appAclService;
|
|
13
|
+
private readonly _dialog;
|
|
14
|
+
private _confirm;
|
|
15
|
+
loadAclEntries: (query: any) => Observable<AclEntry[]>;
|
|
16
|
+
loadAclRoles: (query: any) => Observable<AclRole[]>;
|
|
17
|
+
saveAclObjectEntry: (aclObjectEntry: AclObjectEntry) => Observable<any>;
|
|
18
|
+
environmentShow: boolean;
|
|
19
|
+
environmentLabel: string;
|
|
20
|
+
environmentKey: string;
|
|
21
|
+
actions: FsListAction[];
|
|
22
|
+
aclEntriesList: FsListComponent;
|
|
23
|
+
aclEntriesConfig: FsListConfig;
|
|
24
|
+
permissions: any[];
|
|
25
|
+
private _destroy$;
|
|
26
|
+
constructor(_appAclService: FsAppAclService, _dialog: MatDialog, _confirm: FsPrompt);
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
update(aclObjectEntry: AclObjectEntry): void;
|
|
29
|
+
ngOnDestroy(): void;
|
|
30
|
+
reload(): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsAclEntriesComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsAclEntriesComponent, "fs-acl-entries", never, { "loadAclEntries": "loadAclEntries"; "loadAclRoles": "loadAclRoles"; "saveAclObjectEntry": "saveAclObjectEntry"; "environmentShow": "environmentShow"; "environmentLabel": "environmentLabel"; "environmentKey": "environmentKey"; "actions": "actions"; }, {}, never, never>;
|
|
33
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { FsMessage } from '@firestitch/message';
|
|
4
|
-
import { AclRole } from './../../interfaces/acl-role';
|
|
5
|
-
import { AclEntryData } from './../../interfaces/acl-entry-data';
|
|
6
|
-
import { AclObjectRole } from './../../interfaces/acl-object-role';
|
|
7
|
-
import { AclObjectEntry } from './../../interfaces/acl-object-entry';
|
|
8
|
-
import { AclEntry } from './../../interfaces/acl-entry';
|
|
9
|
-
import { FsAppAclService } from './../../services/app-acl.service';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class FsAclEntryComponent implements OnInit {
|
|
12
|
-
private readonly _appAclService;
|
|
13
|
-
private readonly _dialogRef;
|
|
14
|
-
private readonly _message;
|
|
15
|
-
private readonly _data;
|
|
16
|
-
aclRoles: AclRole[];
|
|
17
|
-
aclObjectEntry: AclObjectEntry;
|
|
18
|
-
aclObjectRole: AclObjectRole;
|
|
19
|
-
aclEntries: AclEntry[];
|
|
20
|
-
indexedAclRoleLevels: {};
|
|
21
|
-
titleEdit: string;
|
|
22
|
-
titleAdd: string;
|
|
23
|
-
required: boolean;
|
|
24
|
-
constructor(_appAclService: FsAppAclService, _dialogRef: MatDialogRef<FsAclEntryComponent>, _message: FsMessage, _data: AclEntryData);
|
|
25
|
-
ngOnInit(): void;
|
|
26
|
-
aclObjectRoleChange(aclObjectRoles: AclObjectRole[]): void;
|
|
27
|
-
save: () => import("rxjs").Subscription;
|
|
28
|
-
close(data?: any): void;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsAclEntryComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsAclEntryComponent, "ng-component", never, {}, {}, never, never>;
|
|
31
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { FsMessage } from '@firestitch/message';
|
|
4
|
+
import { AclRole } from './../../interfaces/acl-role';
|
|
5
|
+
import { AclEntryData } from './../../interfaces/acl-entry-data';
|
|
6
|
+
import { AclObjectRole } from './../../interfaces/acl-object-role';
|
|
7
|
+
import { AclObjectEntry } from './../../interfaces/acl-object-entry';
|
|
8
|
+
import { AclEntry } from './../../interfaces/acl-entry';
|
|
9
|
+
import { FsAppAclService } from './../../services/app-acl.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class FsAclEntryComponent implements OnInit {
|
|
12
|
+
private readonly _appAclService;
|
|
13
|
+
private readonly _dialogRef;
|
|
14
|
+
private readonly _message;
|
|
15
|
+
private readonly _data;
|
|
16
|
+
aclRoles: AclRole[];
|
|
17
|
+
aclObjectEntry: AclObjectEntry;
|
|
18
|
+
aclObjectRole: AclObjectRole;
|
|
19
|
+
aclEntries: AclEntry[];
|
|
20
|
+
indexedAclRoleLevels: {};
|
|
21
|
+
titleEdit: string;
|
|
22
|
+
titleAdd: string;
|
|
23
|
+
required: boolean;
|
|
24
|
+
constructor(_appAclService: FsAppAclService, _dialogRef: MatDialogRef<FsAclEntryComponent>, _message: FsMessage, _data: AclEntryData);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
aclObjectRoleChange(aclObjectRoles: AclObjectRole[]): void;
|
|
27
|
+
save: () => import("rxjs").Subscription;
|
|
28
|
+
close(data?: any): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsAclEntryComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsAclEntryComponent, "ng-component", never, {}, {}, never, never>;
|
|
31
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { AclObjectRole } from '../../interfaces/acl-object-role';
|
|
3
|
-
import { AclRole } from '../../interfaces/acl-role';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FsAclObjectRolesComponent {
|
|
6
|
-
aclRoles: AclRole[];
|
|
7
|
-
required: boolean;
|
|
8
|
-
multiple: boolean;
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
aclObjectRoles: AclObjectRole[];
|
|
11
|
-
rolesLabel: string;
|
|
12
|
-
levelLabel: string;
|
|
13
|
-
change: EventEmitter<AclObjectRole[]>;
|
|
14
|
-
compareAclRole: (o1: any, o2: any) => boolean;
|
|
15
|
-
changed(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsAclObjectRolesComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsAclObjectRolesComponent, "fs-acl-object-roles", never, { "aclRoles": "aclRoles"; "required": "required"; "multiple": "multiple"; "disabled": "disabled"; "aclObjectRoles": "aclObjectRoles"; "rolesLabel": "rolesLabel"; "levelLabel": "levelLabel"; }, { "change": "change"; }, never, never>;
|
|
18
|
-
}
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { AclObjectRole } from '../../interfaces/acl-object-role';
|
|
3
|
+
import { AclRole } from '../../interfaces/acl-role';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FsAclObjectRolesComponent {
|
|
6
|
+
aclRoles: AclRole[];
|
|
7
|
+
required: boolean;
|
|
8
|
+
multiple: boolean;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
aclObjectRoles: AclObjectRole[];
|
|
11
|
+
rolesLabel: string;
|
|
12
|
+
levelLabel: string;
|
|
13
|
+
change: EventEmitter<AclObjectRole[]>;
|
|
14
|
+
compareAclRole: (o1: any, o2: any) => boolean;
|
|
15
|
+
changed(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsAclObjectRolesComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsAclObjectRolesComponent, "fs-acl-object-roles", never, { "aclRoles": "aclRoles"; "required": "required"; "multiple": "multiple"; "disabled": "disabled"; "aclObjectRoles": "aclObjectRoles"; "rolesLabel": "rolesLabel"; "levelLabel": "levelLabel"; }, { "change": "change"; }, never, never>;
|
|
18
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FsAppAclService } from './../../services/app-acl.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FsAclPermissionPopoverComponent implements OnInit {
|
|
5
|
-
private _appAclService;
|
|
6
|
-
permission: any;
|
|
7
|
-
description: any;
|
|
8
|
-
constructor(_appAclService: FsAppAclService);
|
|
9
|
-
ngOnInit(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsAclPermissionPopoverComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsAclPermissionPopoverComponent, "acl-permission-popover", never, { "permission": "permission"; }, {}, never, ["*"]>;
|
|
12
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FsAppAclService } from './../../services/app-acl.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FsAclPermissionPopoverComponent implements OnInit {
|
|
5
|
+
private _appAclService;
|
|
6
|
+
permission: any;
|
|
7
|
+
description: any;
|
|
8
|
+
constructor(_appAclService: FsAppAclService);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsAclPermissionPopoverComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsAclPermissionPopoverComponent, "acl-permission-popover", never, { "permission": "permission"; }, {}, never, ["*"]>;
|
|
12
|
+
}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { AclRole } from './../../interfaces/acl-role';
|
|
4
|
-
import { FsMessage } from '@firestitch/message';
|
|
5
|
-
import { FsListComponent, FsListConfig } from '@firestitch/list';
|
|
6
|
-
import { Observable } from 'rxjs';
|
|
7
|
-
import { FsAppAclService } from './../../services/app-acl.service';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class FsAclRoleComponent implements OnInit, OnDestroy {
|
|
10
|
-
private readonly _data;
|
|
11
|
-
private readonly _appAclService;
|
|
12
|
-
private readonly _dialogRef;
|
|
13
|
-
private readonly _message;
|
|
14
|
-
private _cdRef;
|
|
15
|
-
list: FsListComponent;
|
|
16
|
-
aclRole: AclRole;
|
|
17
|
-
environment: any;
|
|
18
|
-
permissions: any[];
|
|
19
|
-
listConfig: FsListConfig;
|
|
20
|
-
levelPermissions: any[];
|
|
21
|
-
AclRoleAccesses: {
|
|
22
|
-
name: string;
|
|
23
|
-
value: import("../../enums/acl-role-access").AclRoleAccess;
|
|
24
|
-
}[];
|
|
25
|
-
indexedAccesses: {};
|
|
26
|
-
aclLevels: any[];
|
|
27
|
-
indexedAclLevels: {};
|
|
28
|
-
onlyFullAccess: boolean;
|
|
29
|
-
AclLevels: {};
|
|
30
|
-
aclRoleConfigs: any[];
|
|
31
|
-
levelAclRoleConfigs: any[];
|
|
32
|
-
private _destroy$;
|
|
33
|
-
constructor(_data: any, _appAclService: FsAppAclService, _dialogRef: MatDialogRef<FsAclRoleComponent>, _message: FsMessage, _cdRef: ChangeDetectorRef);
|
|
34
|
-
ngOnInit(): void;
|
|
35
|
-
levelChange(): void;
|
|
36
|
-
getRole(): Observable<any>;
|
|
37
|
-
save: () => Observable<any>;
|
|
38
|
-
close(data?: any): void;
|
|
39
|
-
allPermissionsChange(all: boolean): void;
|
|
40
|
-
ngOnDestroy(): void;
|
|
41
|
-
private _updatePermissions;
|
|
42
|
-
private _updateAclRoleConfigs;
|
|
43
|
-
private _applyMaxPermissionAccess;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsAclRoleComponent, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsAclRoleComponent, "ng-component", never, {}, {}, never, never>;
|
|
46
|
-
}
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { AclRole } from './../../interfaces/acl-role';
|
|
4
|
+
import { FsMessage } from '@firestitch/message';
|
|
5
|
+
import { FsListComponent, FsListConfig } from '@firestitch/list';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import { FsAppAclService } from './../../services/app-acl.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class FsAclRoleComponent implements OnInit, OnDestroy {
|
|
10
|
+
private readonly _data;
|
|
11
|
+
private readonly _appAclService;
|
|
12
|
+
private readonly _dialogRef;
|
|
13
|
+
private readonly _message;
|
|
14
|
+
private _cdRef;
|
|
15
|
+
list: FsListComponent;
|
|
16
|
+
aclRole: AclRole;
|
|
17
|
+
environment: any;
|
|
18
|
+
permissions: any[];
|
|
19
|
+
listConfig: FsListConfig;
|
|
20
|
+
levelPermissions: any[];
|
|
21
|
+
AclRoleAccesses: {
|
|
22
|
+
name: string;
|
|
23
|
+
value: import("../../enums/acl-role-access").AclRoleAccess;
|
|
24
|
+
}[];
|
|
25
|
+
indexedAccesses: {};
|
|
26
|
+
aclLevels: any[];
|
|
27
|
+
indexedAclLevels: {};
|
|
28
|
+
onlyFullAccess: boolean;
|
|
29
|
+
AclLevels: {};
|
|
30
|
+
aclRoleConfigs: any[];
|
|
31
|
+
levelAclRoleConfigs: any[];
|
|
32
|
+
private _destroy$;
|
|
33
|
+
constructor(_data: any, _appAclService: FsAppAclService, _dialogRef: MatDialogRef<FsAclRoleComponent>, _message: FsMessage, _cdRef: ChangeDetectorRef);
|
|
34
|
+
ngOnInit(): void;
|
|
35
|
+
levelChange(): void;
|
|
36
|
+
getRole(): Observable<any>;
|
|
37
|
+
save: () => Observable<any>;
|
|
38
|
+
close(data?: any): void;
|
|
39
|
+
allPermissionsChange(all: boolean): void;
|
|
40
|
+
ngOnDestroy(): void;
|
|
41
|
+
private _updatePermissions;
|
|
42
|
+
private _updateAclRoleConfigs;
|
|
43
|
+
private _applyMaxPermissionAccess;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsAclRoleComponent, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsAclRoleComponent, "ng-component", never, {}, {}, never, never>;
|
|
46
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FsAppAclService } from './../../services/app-acl.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FsAclRolePopoverComponent implements OnInit {
|
|
5
|
-
private readonly _appAclService;
|
|
6
|
-
aclRole: any;
|
|
7
|
-
objectName: any;
|
|
8
|
-
permissions: any[];
|
|
9
|
-
constructor(_appAclService: FsAppAclService);
|
|
10
|
-
ngOnInit(): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsAclRolePopoverComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsAclRolePopoverComponent, "fs-acl-role-popover", never, { "aclRole": "aclRole"; "objectName": "objectName"; }, {}, never, ["*"]>;
|
|
13
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FsAppAclService } from './../../services/app-acl.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FsAclRolePopoverComponent implements OnInit {
|
|
5
|
+
private readonly _appAclService;
|
|
6
|
+
aclRole: any;
|
|
7
|
+
objectName: any;
|
|
8
|
+
permissions: any[];
|
|
9
|
+
constructor(_appAclService: FsAppAclService);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsAclRolePopoverComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsAclRolePopoverComponent, "fs-acl-role-popover", never, { "aclRole": "aclRole"; "objectName": "objectName"; }, {}, never, ["*"]>;
|
|
13
|
+
}
|
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import { OnInit, OnDestroy,
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { FsListComponent, FsListConfig } from '@firestitch/list';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { AclRole } from './../../interfaces/acl-role';
|
|
6
|
-
import { AclLevel } from './../../interfaces/acl-level';
|
|
7
|
-
import { FsAppAclService } from '../../services/app-acl.service';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class FsAclRolesComponent implements OnInit, OnDestroy {
|
|
10
|
-
private readonly _appAclService;
|
|
11
|
-
private readonly _dialog;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
static
|
|
34
|
-
|
|
35
|
-
}
|
|
1
|
+
import { OnInit, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { FsListComponent, FsListConfig } from '@firestitch/list';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { AclRole } from './../../interfaces/acl-role';
|
|
6
|
+
import { AclLevel } from './../../interfaces/acl-level';
|
|
7
|
+
import { FsAppAclService } from '../../services/app-acl.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class FsAclRolesComponent implements OnInit, OnDestroy {
|
|
10
|
+
private readonly _appAclService;
|
|
11
|
+
private readonly _dialog;
|
|
12
|
+
deleteAclRole: (aclRole: AclRole) => Observable<AclRole>;
|
|
13
|
+
saveAclRole: (aclRole: AclRole) => Observable<AclRole>;
|
|
14
|
+
loadAclRoles: (query: any) => Observable<{
|
|
15
|
+
data: AclRole[];
|
|
16
|
+
paging: any;
|
|
17
|
+
}>;
|
|
18
|
+
loadAclRole: (aclRole: AclRole, query: any) => Observable<AclRole>;
|
|
19
|
+
aclLevels: AclLevel[];
|
|
20
|
+
list: QueryList<FsListComponent>;
|
|
21
|
+
listConfig: FsListConfig;
|
|
22
|
+
permissions: any;
|
|
23
|
+
indexedAclRoleLevels: {
|
|
24
|
+
[value: string]: string;
|
|
25
|
+
};
|
|
26
|
+
private _destroy$;
|
|
27
|
+
constructor(_appAclService: FsAppAclService, _dialog: MatDialog);
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
openDialog(aclRole?: AclRole): void;
|
|
30
|
+
ngOnDestroy(): void;
|
|
31
|
+
private _loadListConfig;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsAclRolesComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsAclRolesComponent, "fs-acl-roles", never, { "deleteAclRole": "deleteAclRole"; "saveAclRole": "saveAclRole"; "loadAclRoles": "loadAclRoles"; "loadAclRole": "loadAclRole"; "aclLevels": "aclLevels"; }, {}, never, never>;
|
|
34
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AclRoleAccess } from '../enums/acl-role-access';
|
|
2
|
-
export declare const AclRoleAccesses: {
|
|
3
|
-
name: string;
|
|
4
|
-
value: AclRoleAccess;
|
|
5
|
-
}[];
|
|
1
|
+
import { AclRoleAccess } from '../enums/acl-role-access';
|
|
2
|
+
export declare const AclRoleAccesses: {
|
|
3
|
+
name: string;
|
|
4
|
+
value: AclRoleAccess;
|
|
5
|
+
}[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare enum AclRoleAccess {
|
|
2
|
-
None = 0,
|
|
3
|
-
Read = 5,
|
|
4
|
-
Write = 10,
|
|
5
|
-
Full = 15
|
|
6
|
-
}
|
|
1
|
+
export declare enum AclRoleAccess {
|
|
2
|
+
None = 0,
|
|
3
|
+
Read = 5,
|
|
4
|
+
Write = 10,
|
|
5
|
+
Full = 15
|
|
6
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./components/acl-roles/acl-roles.component";
|
|
3
|
-
import * as i2 from "./components/acl-permission-popover/acl-permission-popover.component";
|
|
4
|
-
import * as i3 from "./components/acl-role/acl-role.component";
|
|
5
|
-
import * as i4 from "./components/acl-entries/acl-entries.component";
|
|
6
|
-
import * as i5 from "./components/acl-role-popover/acl-role-popover.component";
|
|
7
|
-
import * as i6 from "./components/acl-object-roles/acl-object-roles.component";
|
|
8
|
-
import * as i7 from "./components/acl-entry/acl-entry.component";
|
|
9
|
-
import * as i8 from "@angular/common";
|
|
10
|
-
import * as i9 from "@angular/forms";
|
|
11
|
-
import * as i10 from "@angular/material/dialog";
|
|
12
|
-
import * as i11 from "@angular/material/form-field";
|
|
13
|
-
import * as i12 from "@angular/material/checkbox";
|
|
14
|
-
import * as i13 from "@angular/material/select";
|
|
15
|
-
import * as i14 from "@angular/material/button";
|
|
16
|
-
import * as i15 from "@angular/material/radio";
|
|
17
|
-
import * as i16 from "@angular/material/input";
|
|
18
|
-
import * as i17 from "@angular/flex-layout";
|
|
19
|
-
import * as i18 from "@firestitch/list";
|
|
20
|
-
import * as i19 from "@firestitch/popover";
|
|
21
|
-
import * as i20 from "@firestitch/dialog";
|
|
22
|
-
import * as i21 from "@firestitch/form";
|
|
23
|
-
import * as i22 from "@firestitch/label";
|
|
24
|
-
import * as i23 from "@firestitch/radiogroup";
|
|
25
|
-
import * as i24 from "@firestitch/badge";
|
|
26
|
-
import * as i25 from "@firestitch/checkboxgroup";
|
|
27
|
-
export declare class FsAppAclModule {
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsAppAclModule, never>;
|
|
29
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FsAppAclModule, [typeof i1.FsAclRolesComponent, typeof i2.FsAclPermissionPopoverComponent, typeof i3.FsAclRoleComponent, typeof i4.FsAclEntriesComponent, typeof i5.FsAclRolePopoverComponent, typeof i6.FsAclObjectRolesComponent, typeof i7.FsAclEntryComponent], [typeof i8.CommonModule, typeof i9.FormsModule, typeof i10.MatDialogModule, typeof i11.MatFormFieldModule, typeof i12.MatCheckboxModule, typeof i13.MatSelectModule, typeof i14.MatButtonModule, typeof i15.MatRadioModule, typeof i16.MatInputModule, typeof i17.FlexLayoutModule, typeof i18.FsListModule, typeof i19.FsPopoverModule, typeof i20.FsDialogModule, typeof i21.FsFormModule, typeof i22.FsLabelModule, typeof i23.FsRadioGroupModule, typeof i24.FsBadgeModule, typeof i25.FsCheckboxGroupModule], [typeof i1.FsAclRolesComponent, typeof i2.FsAclPermissionPopoverComponent, typeof i3.FsAclRoleComponent, typeof i4.FsAclEntriesComponent, typeof i5.FsAclRolePopoverComponent, typeof i6.FsAclObjectRolesComponent, typeof i7.FsAclEntryComponent]>;
|
|
30
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FsAppAclModule>;
|
|
31
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/acl-roles/acl-roles.component";
|
|
3
|
+
import * as i2 from "./components/acl-permission-popover/acl-permission-popover.component";
|
|
4
|
+
import * as i3 from "./components/acl-role/acl-role.component";
|
|
5
|
+
import * as i4 from "./components/acl-entries/acl-entries.component";
|
|
6
|
+
import * as i5 from "./components/acl-role-popover/acl-role-popover.component";
|
|
7
|
+
import * as i6 from "./components/acl-object-roles/acl-object-roles.component";
|
|
8
|
+
import * as i7 from "./components/acl-entry/acl-entry.component";
|
|
9
|
+
import * as i8 from "@angular/common";
|
|
10
|
+
import * as i9 from "@angular/forms";
|
|
11
|
+
import * as i10 from "@angular/material/dialog";
|
|
12
|
+
import * as i11 from "@angular/material/form-field";
|
|
13
|
+
import * as i12 from "@angular/material/checkbox";
|
|
14
|
+
import * as i13 from "@angular/material/select";
|
|
15
|
+
import * as i14 from "@angular/material/button";
|
|
16
|
+
import * as i15 from "@angular/material/radio";
|
|
17
|
+
import * as i16 from "@angular/material/input";
|
|
18
|
+
import * as i17 from "@angular/flex-layout";
|
|
19
|
+
import * as i18 from "@firestitch/list";
|
|
20
|
+
import * as i19 from "@firestitch/popover";
|
|
21
|
+
import * as i20 from "@firestitch/dialog";
|
|
22
|
+
import * as i21 from "@firestitch/form";
|
|
23
|
+
import * as i22 from "@firestitch/label";
|
|
24
|
+
import * as i23 from "@firestitch/radiogroup";
|
|
25
|
+
import * as i24 from "@firestitch/badge";
|
|
26
|
+
import * as i25 from "@firestitch/checkboxgroup";
|
|
27
|
+
export declare class FsAppAclModule {
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsAppAclModule, never>;
|
|
29
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsAppAclModule, [typeof i1.FsAclRolesComponent, typeof i2.FsAclPermissionPopoverComponent, typeof i3.FsAclRoleComponent, typeof i4.FsAclEntriesComponent, typeof i5.FsAclRolePopoverComponent, typeof i6.FsAclObjectRolesComponent, typeof i7.FsAclEntryComponent], [typeof i8.CommonModule, typeof i9.FormsModule, typeof i10.MatDialogModule, typeof i11.MatFormFieldModule, typeof i12.MatCheckboxModule, typeof i13.MatSelectModule, typeof i14.MatButtonModule, typeof i15.MatRadioModule, typeof i16.MatInputModule, typeof i17.FlexLayoutModule, typeof i18.FsListModule, typeof i19.FsPopoverModule, typeof i20.FsDialogModule, typeof i21.FsFormModule, typeof i22.FsLabelModule, typeof i23.FsRadioGroupModule, typeof i24.FsBadgeModule, typeof i25.FsCheckboxGroupModule], [typeof i1.FsAclRolesComponent, typeof i2.FsAclPermissionPopoverComponent, typeof i3.FsAclRoleComponent, typeof i4.FsAclEntriesComponent, typeof i5.FsAclRolePopoverComponent, typeof i6.FsAclObjectRolesComponent, typeof i7.FsAclEntryComponent]>;
|
|
30
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FsAppAclModule>;
|
|
31
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export declare const FS_APP_ACL_CONFIG: InjectionToken<any[]>;
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
export declare const FS_APP_ACL_CONFIG: InjectionToken<any[]>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AclObjectEntry } from './acl-object-entry';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { AclRole } from './acl-role';
|
|
4
|
-
export interface AclEntryData {
|
|
5
|
-
aclObjectEntry: AclObjectEntry;
|
|
6
|
-
titleEdit?: string;
|
|
7
|
-
titleAdd?: string;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
saveAclObjectEntry(aclObjectEntry: AclObjectEntry): Observable<any>;
|
|
10
|
-
loadAclRoles(query: any): Observable<AclRole[]>;
|
|
11
|
-
}
|
|
1
|
+
import { AclObjectEntry } from './acl-object-entry';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { AclRole } from './acl-role';
|
|
4
|
+
export interface AclEntryData {
|
|
5
|
+
aclObjectEntry: AclObjectEntry;
|
|
6
|
+
titleEdit?: string;
|
|
7
|
+
titleAdd?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
saveAclObjectEntry(aclObjectEntry: AclObjectEntry): Observable<any>;
|
|
10
|
+
loadAclRoles(query: any): Observable<AclRole[]>;
|
|
11
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { AclRole } from './acl-role';
|
|
2
|
-
export interface AclEntry {
|
|
3
|
-
id: number;
|
|
4
|
-
aclRoleId?: number;
|
|
5
|
-
aclRole?: AclRole;
|
|
6
|
-
accountId?: number;
|
|
7
|
-
account?: any;
|
|
8
|
-
objectId?: number;
|
|
9
|
-
object?: {
|
|
10
|
-
name: string;
|
|
11
|
-
id: number;
|
|
12
|
-
};
|
|
13
|
-
environmentId?: number;
|
|
14
|
-
environment?: {
|
|
15
|
-
name: string;
|
|
16
|
-
id: number;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
1
|
+
import { AclRole } from './acl-role';
|
|
2
|
+
export interface AclEntry {
|
|
3
|
+
id: number;
|
|
4
|
+
aclRoleId?: number;
|
|
5
|
+
aclRole?: AclRole;
|
|
6
|
+
accountId?: number;
|
|
7
|
+
account?: any;
|
|
8
|
+
objectId?: number;
|
|
9
|
+
object?: {
|
|
10
|
+
name: string;
|
|
11
|
+
id: number;
|
|
12
|
+
};
|
|
13
|
+
environmentId?: number;
|
|
14
|
+
environment?: {
|
|
15
|
+
name: string;
|
|
16
|
+
id: number;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { NameValue } from './name-value';
|
|
2
|
-
export interface AclLevel extends NameValue {
|
|
3
|
-
}
|
|
1
|
+
import { NameValue } from './name-value';
|
|
2
|
+
export interface AclLevel extends NameValue {
|
|
3
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AclObject } from './acl-object';
|
|
2
|
-
import { AclEntry } from './acl-entry';
|
|
3
|
-
export interface AclObjectEntry {
|
|
4
|
-
object: AclObject;
|
|
5
|
-
aclEntries: AclEntry[];
|
|
6
|
-
level: string;
|
|
7
|
-
environmentId: number;
|
|
8
|
-
environment?: {
|
|
9
|
-
name: string;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
1
|
+
import { AclObject } from './acl-object';
|
|
2
|
+
import { AclEntry } from './acl-entry';
|
|
3
|
+
export interface AclObjectEntry {
|
|
4
|
+
object: AclObject;
|
|
5
|
+
aclEntries: AclEntry[];
|
|
6
|
+
level: string;
|
|
7
|
+
environmentId: number;
|
|
8
|
+
environment?: {
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AclObject } from './acl-object';
|
|
2
|
-
import { AclRole } from './acl-role';
|
|
3
|
-
export interface AclObjectRole {
|
|
4
|
-
object: AclObject;
|
|
5
|
-
aclRoles: AclRole[];
|
|
6
|
-
}
|
|
1
|
+
import { AclObject } from './acl-object';
|
|
2
|
+
import { AclRole } from './acl-role';
|
|
3
|
+
export interface AclObjectRole {
|
|
4
|
+
object: AclObject;
|
|
5
|
+
aclRoles: AclRole[];
|
|
6
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface AclObject {
|
|
2
|
-
id: number;
|
|
3
|
-
name?: string;
|
|
4
|
-
}
|
|
1
|
+
export interface AclObject {
|
|
2
|
+
id: number;
|
|
3
|
+
name?: string;
|
|
4
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface AclPermission {
|
|
2
|
-
value: string;
|
|
3
|
-
name: string;
|
|
4
|
-
levels: string[];
|
|
5
|
-
accesses: number[];
|
|
6
|
-
description: string;
|
|
7
|
-
}
|
|
1
|
+
export interface AclPermission {
|
|
2
|
+
value: string;
|
|
3
|
+
name: string;
|
|
4
|
+
levels: string[];
|
|
5
|
+
accesses: number[];
|
|
6
|
+
description: string;
|
|
7
|
+
}
|