@abp/ng.permission-management 10.5.0 → 10.6.0-rc.2
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/fesm2022/abp-ng.permission-management-proxy.mjs +3 -3
- package/fesm2022/abp-ng.permission-management-proxy.mjs.map +1 -1
- package/fesm2022/abp-ng.permission-management.mjs +335 -277
- package/fesm2022/abp-ng.permission-management.mjs.map +1 -1
- package/package.json +2 -2
- package/types/abp-ng.permission-management.d.ts +41 -29
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import * as rxjs from 'rxjs';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as _angular_core from '@angular/core';
|
|
4
|
-
import {
|
|
4
|
+
import { TrackByFunction, OnInit, EventEmitter, OutputEmitterRef } from '@angular/core';
|
|
5
5
|
import { ConfigStateService, ListService } from '@abp/ng.core';
|
|
6
6
|
import { ToasterService, ConfirmationService } from '@abp/ng.theme.shared';
|
|
7
|
-
import { PermissionsService, GetPermissionListResultDto,
|
|
7
|
+
import { PermissionsService, GetPermissionListResultDto, PermissionGrantInfoDto, PermissionGroupDto, ProviderInfoDto, ResourcePermissionGrantInfoDto, ResourcePermissionDefinitionDto, ResourcePermissionWithProdiverGrantInfoDto, ResourceProviderDto, SearchProviderKeyInfo } from '@abp/ng.permission-management/proxy';
|
|
8
8
|
import { LookupItem } from '@abp/ng.components/lookup';
|
|
9
9
|
|
|
10
10
|
type PermissionWithStyle = PermissionGrantInfoDto & {
|
|
11
|
-
style: string
|
|
11
|
+
style: Record<string, number>;
|
|
12
12
|
};
|
|
13
13
|
type PermissionWithGroupName = PermissionGrantInfoDto & {
|
|
14
14
|
groupName: string;
|
|
15
15
|
};
|
|
16
|
+
type SelectAllCheckboxState = {
|
|
17
|
+
checked: boolean;
|
|
18
|
+
indeterminate: boolean;
|
|
19
|
+
};
|
|
16
20
|
declare class PermissionManagementComponent {
|
|
17
21
|
protected readonly service: PermissionsService;
|
|
18
22
|
protected readonly configState: ConfigStateService;
|
|
19
23
|
protected readonly toasterService: ToasterService;
|
|
20
|
-
private readonly injector;
|
|
21
24
|
private document;
|
|
22
25
|
readonly providerNameInput: _angular_core.InputSignal<string>;
|
|
23
26
|
readonly providerKeyInput: _angular_core.InputSignal<string>;
|
|
@@ -25,7 +28,11 @@ declare class PermissionManagementComponent {
|
|
|
25
28
|
readonly entityDisplayName: _angular_core.InputSignal<string>;
|
|
26
29
|
readonly visibleInput: _angular_core.InputSignal<boolean>;
|
|
27
30
|
readonly visibleChange: _angular_core.OutputEmitterRef<boolean>;
|
|
28
|
-
protected readonly
|
|
31
|
+
protected readonly modalVisible: _angular_core.WritableSignal<boolean>;
|
|
32
|
+
protected readonly modalBusy: _angular_core.WritableSignal<boolean>;
|
|
33
|
+
protected readonly filter: _angular_core.WritableSignal<string>;
|
|
34
|
+
private isOpening;
|
|
35
|
+
private isClosingModal;
|
|
29
36
|
private _providerNameOverride?;
|
|
30
37
|
get providerName(): string;
|
|
31
38
|
set providerName(value: string);
|
|
@@ -35,41 +42,46 @@ declare class PermissionManagementComponent {
|
|
|
35
42
|
private _hideBadgesOverride?;
|
|
36
43
|
get hideBadges(): boolean;
|
|
37
44
|
set hideBadges(value: boolean);
|
|
38
|
-
selectAllInThisTabsRef: _angular_core.Signal<readonly ElementRef<HTMLInputElement>[]>;
|
|
39
|
-
selectAllInAllTabsRef: _angular_core.Signal<readonly ElementRef<HTMLInputElement>[]>;
|
|
40
45
|
data: GetPermissionListResultDto;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
permissionGroupSignal: _angular_core.WritableSignal<PermissionGroupDto[]>;
|
|
46
|
+
private readonly permissionsState;
|
|
47
|
+
private readonly selectedGroupState;
|
|
48
|
+
private readonly permissionGroupSignal;
|
|
49
|
+
protected readonly selectedGroupPermissions: _angular_core.Signal<PermissionWithStyle[]>;
|
|
50
|
+
protected readonly selectThisTabState: _angular_core.Signal<SelectAllCheckboxState>;
|
|
51
|
+
protected readonly selectAllTabState: _angular_core.Signal<SelectAllCheckboxState>;
|
|
52
|
+
protected readonly disableSelectAllTab: _angular_core.Signal<boolean>;
|
|
53
|
+
private readonly disabledSelectAllInAllTabsState;
|
|
54
|
+
protected readonly disabledSelectAllInAllTabs: _angular_core.Signal<boolean>;
|
|
51
55
|
permissionGroups: _angular_core.Signal<PermissionGroupDto[]>;
|
|
52
56
|
trackByFn: TrackByFunction<PermissionGroupDto>;
|
|
53
57
|
get visible(): boolean;
|
|
54
58
|
set visible(value: boolean);
|
|
59
|
+
private setVisible;
|
|
60
|
+
get permissions(): PermissionWithGroupName[];
|
|
61
|
+
set permissions(value: PermissionWithGroupName[]);
|
|
62
|
+
get selectedGroup(): PermissionGroupDto | null | undefined;
|
|
63
|
+
get selectThisTab(): boolean;
|
|
64
|
+
get selectAllTab(): boolean;
|
|
65
|
+
onModalVisibleChange(value: boolean): void;
|
|
66
|
+
onModalDisappear(): void;
|
|
67
|
+
private showModal;
|
|
68
|
+
private hideModal;
|
|
69
|
+
private resetModalState;
|
|
55
70
|
constructor();
|
|
56
71
|
getChecked(name: string): boolean;
|
|
57
|
-
setSelectedGroup(group: PermissionGroupDto): void;
|
|
58
|
-
|
|
59
|
-
isGrantedByOtherProviderName(grantedProviders: ProviderInfoDto[]): boolean;
|
|
72
|
+
setSelectedGroup(group: PermissionGroupDto | null): void;
|
|
73
|
+
isGrantedByOtherProviderName(grantedProviders?: ProviderInfoDto[]): boolean;
|
|
60
74
|
onClickCheckbox(clickedPermission: PermissionGrantInfoDto): void;
|
|
61
75
|
updatePermissionStatus(clickedPermission: PermissionGrantInfoDto): void;
|
|
62
76
|
setParentClicked(clickedPermission: PermissionGrantInfoDto): void;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
onClickSelectAll(): void;
|
|
77
|
+
onSelectThisTabChange(event: Event): void;
|
|
78
|
+
onSelectAllChange(event: Event): void;
|
|
79
|
+
onFilterChange(value: string): void;
|
|
80
|
+
private syncSelectedGroupWithFilter;
|
|
68
81
|
onTabChange(groupName: string): void;
|
|
69
82
|
onChangeGroup(group: PermissionGroupDto): void;
|
|
70
83
|
submit(): void;
|
|
71
84
|
openModal(): rxjs.Observable<GetPermissionListResultDto>;
|
|
72
|
-
initModal(): void;
|
|
73
85
|
getAssignedCount(groupName: string): number;
|
|
74
86
|
shouldFetchAppConfig(): boolean;
|
|
75
87
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PermissionManagementComponent, never>;
|
|
@@ -127,20 +139,20 @@ declare class ResourcePermissionStateService {
|
|
|
127
139
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ResourcePermissionStateService>;
|
|
128
140
|
}
|
|
129
141
|
|
|
130
|
-
declare class ResourcePermissionManagementComponent
|
|
142
|
+
declare class ResourcePermissionManagementComponent {
|
|
131
143
|
readonly eResourcePermissionViewModes: typeof eResourcePermissionViewModes;
|
|
132
144
|
protected readonly service: PermissionsService;
|
|
133
145
|
protected readonly toasterService: ToasterService;
|
|
134
146
|
protected readonly confirmationService: ConfirmationService;
|
|
135
147
|
protected readonly state: ResourcePermissionStateService;
|
|
136
|
-
|
|
148
|
+
protected readonly list: ListService<any>;
|
|
137
149
|
readonly resourceName: _angular_core.InputSignal<string>;
|
|
138
150
|
readonly resourceKey: _angular_core.InputSignal<string>;
|
|
139
151
|
readonly resourceDisplayName: _angular_core.InputSignal<string>;
|
|
140
152
|
readonly visible: _angular_core.ModelSignal<boolean>;
|
|
141
153
|
private readonly previousVisible;
|
|
154
|
+
private readonly listData;
|
|
142
155
|
constructor();
|
|
143
|
-
ngOnInit(): void;
|
|
144
156
|
openModal(): void;
|
|
145
157
|
onAddClicked(): void;
|
|
146
158
|
onEditClicked(grant: ResourcePermissionGrantInfoDto): void;
|