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