@cauca-911/management 21.3.0 → 21.3.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/assets/i18n/cauca/en-management.json +21 -0
- package/assets/i18n/cauca/es-management.json +21 -0
- package/assets/i18n/cauca/fr-management.json +21 -0
- package/fesm2022/cauca-911-management.mjs +1124 -16
- package/fesm2022/cauca-911-management.mjs.map +1 -1
- package/package.json +6 -2
- package/types/cauca-911-management.d.ts +88 -2
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit } from '@angular/core';
|
|
2
|
+
import { InjectionToken, Provider, EnvironmentProviders, OnInit } from '@angular/core';
|
|
3
|
+
import { Routes } from '@angular/router';
|
|
4
|
+
import { OnDeactivate } from '@cauca-911/material';
|
|
3
5
|
import * as i4 from '@angular/common';
|
|
4
6
|
import * as i5 from 'devextreme-angular/ui/check-box';
|
|
5
7
|
import * as i6 from 'devextreme-angular/ui/list';
|
|
@@ -9,6 +11,59 @@ import * as i9 from '@cauca-911/devextreme';
|
|
|
9
11
|
import { HttpClient } from '@angular/common/http';
|
|
10
12
|
import { Observable } from 'rxjs';
|
|
11
13
|
|
|
14
|
+
declare const MANAGEMENT_URL_PREFIX: InjectionToken<string>;
|
|
15
|
+
declare const MANAGEMENT_ROUTE_SEGMENT: InjectionToken<string>;
|
|
16
|
+
interface CaucaManagementConfig {
|
|
17
|
+
managementUrlPrefix?: string | null;
|
|
18
|
+
managementRouteSegment?: string | null;
|
|
19
|
+
}
|
|
20
|
+
declare function provideCaucaManagement(config?: CaucaManagementConfig): (Provider | EnvironmentProviders)[];
|
|
21
|
+
|
|
22
|
+
declare const managementGroupRoutes: Routes;
|
|
23
|
+
|
|
24
|
+
declare const REFRESHABLE_PERMISSION_STATE_TOKEN: InjectionToken<RefreshablePermissionState>;
|
|
25
|
+
interface RefreshablePermissionState {
|
|
26
|
+
refresh(): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare class GroupsPageComponent {
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GroupsPageComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GroupsPageComponent, "cauca-groups-page", never, {}, {}, never, never, true, never>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare class GroupEditionPageComponent implements OnInit, OnDeactivate {
|
|
35
|
+
readonly id: i0.InputSignal<string>;
|
|
36
|
+
readonly isLoaded: i0.WritableSignal<boolean>;
|
|
37
|
+
readonly isSaving: i0.WritableSignal<boolean>;
|
|
38
|
+
readonly showSavingError: i0.WritableSignal<boolean>;
|
|
39
|
+
readonly title: i0.Signal<string>;
|
|
40
|
+
readonly currentLocation: i0.Signal<{
|
|
41
|
+
link: string;
|
|
42
|
+
title: string;
|
|
43
|
+
}[]>;
|
|
44
|
+
private readonly state;
|
|
45
|
+
private readonly dialog;
|
|
46
|
+
private readonly router;
|
|
47
|
+
private readonly managementRouteSegment;
|
|
48
|
+
private readonly groupsPath;
|
|
49
|
+
private isClosing;
|
|
50
|
+
ngOnInit(): void;
|
|
51
|
+
canDeactivate(): Promise<boolean>;
|
|
52
|
+
cancel(): Promise<void>;
|
|
53
|
+
save(): Promise<void>;
|
|
54
|
+
loadData(): Promise<void>;
|
|
55
|
+
protected onBeforeUnload(e: BeforeUnloadEvent): Promise<void>;
|
|
56
|
+
private tryToSave;
|
|
57
|
+
private buildGroupsPath;
|
|
58
|
+
private canCancel;
|
|
59
|
+
private initializeSavingState;
|
|
60
|
+
private resetSavingState;
|
|
61
|
+
private askForCancelConfirmation;
|
|
62
|
+
private showValidationError;
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GroupEditionPageComponent, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GroupEditionPageComponent, "cauca-group-edition-page", never, { "id": { "alias": "id"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
65
|
+
}
|
|
66
|
+
|
|
12
67
|
declare class CaucaManagementService {
|
|
13
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaucaManagementService, never>;
|
|
14
69
|
static ɵprov: i0.ɵɵInjectableDeclaration<CaucaManagementService>;
|
|
@@ -19,12 +74,18 @@ declare class CaucaManagementComponent {
|
|
|
19
74
|
static ɵcmp: i0.ɵɵComponentDeclaration<CaucaManagementComponent, "cauca-management", never, {}, {}, never, never, false, never>;
|
|
20
75
|
}
|
|
21
76
|
|
|
77
|
+
/**
|
|
78
|
+
* @deprecated This model is obsolete and should not be used.
|
|
79
|
+
*/
|
|
22
80
|
declare class UserGroupModel {
|
|
23
81
|
idUserGroup: string;
|
|
24
82
|
idGroup: string;
|
|
25
83
|
idUser: string;
|
|
26
84
|
}
|
|
27
85
|
|
|
86
|
+
/**
|
|
87
|
+
* @deprecated This model is obsolete and should not be used.
|
|
88
|
+
*/
|
|
28
89
|
declare class UserPermissionModel {
|
|
29
90
|
idUserPermission: string;
|
|
30
91
|
isAllowed: boolean;
|
|
@@ -32,6 +93,9 @@ declare class UserPermissionModel {
|
|
|
32
93
|
idModulePermission: string;
|
|
33
94
|
}
|
|
34
95
|
|
|
96
|
+
/**
|
|
97
|
+
* @deprecated This model is obsolete and should not be used.
|
|
98
|
+
*/
|
|
35
99
|
declare class UserModel {
|
|
36
100
|
id: string;
|
|
37
101
|
userName: string;
|
|
@@ -45,6 +109,9 @@ declare class UserModel {
|
|
|
45
109
|
twoFactorAuthenticatorEnabled: boolean;
|
|
46
110
|
}
|
|
47
111
|
|
|
112
|
+
/**
|
|
113
|
+
* @deprecated This model is obsolete and should not be used.
|
|
114
|
+
*/
|
|
48
115
|
declare class GroupPermissionModel {
|
|
49
116
|
idGroupPermission: string;
|
|
50
117
|
isAllowed: boolean;
|
|
@@ -52,6 +119,9 @@ declare class GroupPermissionModel {
|
|
|
52
119
|
idModulePermission: string;
|
|
53
120
|
}
|
|
54
121
|
|
|
122
|
+
/**
|
|
123
|
+
* @deprecated This model is obsolete and should not be used.
|
|
124
|
+
*/
|
|
55
125
|
declare class GroupModel {
|
|
56
126
|
id: string;
|
|
57
127
|
name: string;
|
|
@@ -60,6 +130,9 @@ declare class GroupModel {
|
|
|
60
130
|
assignableByAllUsers: boolean;
|
|
61
131
|
}
|
|
62
132
|
|
|
133
|
+
/**
|
|
134
|
+
* @deprecated This model is obsolete and should not be used.
|
|
135
|
+
*/
|
|
63
136
|
declare class PermissionModel {
|
|
64
137
|
id: string;
|
|
65
138
|
name: string;
|
|
@@ -67,6 +140,9 @@ declare class PermissionModel {
|
|
|
67
140
|
idSystem: string;
|
|
68
141
|
}
|
|
69
142
|
|
|
143
|
+
/**
|
|
144
|
+
* @deprecated This component is obsolete and should not be used.
|
|
145
|
+
*/
|
|
70
146
|
declare class CaucaManagementGroupComponent implements OnInit {
|
|
71
147
|
showPrintButton: boolean;
|
|
72
148
|
hoverStatePermission: boolean;
|
|
@@ -105,6 +181,9 @@ declare class CaucaManagementGroupComponent implements OnInit {
|
|
|
105
181
|
static ɵcmp: i0.ɵɵComponentDeclaration<CaucaManagementGroupComponent, "cauca-management-group", never, { "showPrintButton": { "alias": "showPrintButton"; "required": false; }; "hoverStatePermission": { "alias": "hoverStatePermission"; "required": false; }; "showAssignableByAllUsers": { "alias": "showAssignableByAllUsers"; "required": false; }; }, {}, never, never, false, never>;
|
|
106
182
|
}
|
|
107
183
|
|
|
184
|
+
/**
|
|
185
|
+
* @deprecated This component is obsolete and should not be used.
|
|
186
|
+
*/
|
|
108
187
|
declare class CaucaManagementUserComponent implements OnInit {
|
|
109
188
|
users: UserModel[];
|
|
110
189
|
showColumnXS: boolean;
|
|
@@ -127,6 +206,9 @@ declare class CaucaManagementModule {
|
|
|
127
206
|
static ɵinj: i0.ɵɵInjectorDeclaration<CaucaManagementModule>;
|
|
128
207
|
}
|
|
129
208
|
|
|
209
|
+
/**
|
|
210
|
+
* @deprecated This service is obsolete and should not be used.
|
|
211
|
+
*/
|
|
130
212
|
declare class ManagementUserService {
|
|
131
213
|
protected readonly http: HttpClient;
|
|
132
214
|
private readonly baseUrl;
|
|
@@ -145,6 +227,9 @@ declare class ManagementUserService {
|
|
|
145
227
|
static ɵprov: i0.ɵɵInjectableDeclaration<ManagementUserService>;
|
|
146
228
|
}
|
|
147
229
|
|
|
230
|
+
/**
|
|
231
|
+
* @deprecated This service is obsolete and should not be used.
|
|
232
|
+
*/
|
|
148
233
|
declare class ManagementGroupService {
|
|
149
234
|
private readonly http;
|
|
150
235
|
private readonly baseUrl;
|
|
@@ -158,4 +243,5 @@ declare class ManagementGroupService {
|
|
|
158
243
|
static ɵprov: i0.ɵɵInjectableDeclaration<ManagementGroupService>;
|
|
159
244
|
}
|
|
160
245
|
|
|
161
|
-
export { CaucaManagementComponent, CaucaManagementGroupComponent, CaucaManagementModule, CaucaManagementService, CaucaManagementUserComponent, GroupModel, GroupPermissionModel, ManagementGroupService, ManagementUserService, UserGroupModel, UserModel, UserPermissionModel };
|
|
246
|
+
export { CaucaManagementComponent, CaucaManagementGroupComponent, CaucaManagementModule, CaucaManagementService, CaucaManagementUserComponent, GroupEditionPageComponent, GroupModel, GroupPermissionModel, GroupsPageComponent, MANAGEMENT_ROUTE_SEGMENT, MANAGEMENT_URL_PREFIX, ManagementGroupService, ManagementUserService, REFRESHABLE_PERMISSION_STATE_TOKEN, UserGroupModel, UserModel, UserPermissionModel, managementGroupRoutes, provideCaucaManagement };
|
|
247
|
+
export type { CaucaManagementConfig, RefreshablePermissionState };
|