@cauca-911/management 21.3.8 → 22.0.1

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@cauca-911/management",
3
- "version": "21.3.8",
3
+ "version": "22.0.1",
4
4
  "peerDependencies": {
5
- "@angular/common": ">=21.2.0",
6
- "@angular/core": ">=21.2.0",
7
- "@cauca-911/core": ">=21.0.0",
8
- "@cauca-911/datagrid": ">=21.0.0",
9
- "@cauca-911/devextreme": ">=21.3.0",
10
- "@cauca-911/material": ">=21.3.0",
5
+ "@angular/common": ">=22.1.0",
6
+ "@angular/core": ">=22.1.0",
7
+ "@cauca-911/core": ">=22.0.0",
8
+ "@cauca-911/datagrid": ">=22.0.0",
9
+ "@cauca-911/devextreme": ">=22.0.0",
10
+ "@cauca-911/material": ">=22.0.0",
11
11
  "odata-filter-builder": ">=1.0.0"
12
12
  },
13
13
  "homepage": "https://cauca.ca",
@@ -33,6 +33,7 @@
33
33
  }
34
34
  },
35
35
  "sideEffects": false,
36
+ "type": "module",
36
37
  "scripts": {
37
38
  "prepublishOnly": "node --eval \"console.error('ERROR: Trying to publish a package that has been compiled in full compilation mode. This is not allowed.\\nPlease delete and rebuild the package with partial compilation mode, before attempting to publish.\\n')\" && exit 1"
38
39
  }
@@ -2,12 +2,6 @@ import * as i0 from '@angular/core';
2
2
  import { Type, InjectionToken, Provider, EnvironmentProviders, OnInit } from '@angular/core';
3
3
  import { Routes } from '@angular/router';
4
4
  import { OnDeactivate } from '@cauca-911/material';
5
- import * as i4 from '@angular/common';
6
- import * as i5 from 'devextreme-angular/ui/check-box';
7
- import * as i6 from 'devextreme-angular/ui/list';
8
- import * as i7 from 'devextreme-angular/ui/tag-box';
9
- import * as i8 from '@cauca-911/core';
10
- import * as i9 from '@cauca-911/devextreme';
11
5
  import { HttpClient } from '@angular/common/http';
12
6
  import { Observable } from 'rxjs';
13
7
 
@@ -65,6 +59,44 @@ declare class GroupEditionPageComponent implements OnInit, OnDeactivate {
65
59
  static ɵcmp: i0.ɵɵComponentDeclaration<GroupEditionPageComponent, "cauca-group-edition-page", never, { "id": { "alias": "id"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
66
60
  }
67
61
 
62
+ declare enum PermissionStatus {
63
+ Undefined = 0,
64
+ Allowed = 1,
65
+ Denied = 2
66
+ }
67
+ declare enum UserPermissionOriginKind {
68
+ Group = 0,
69
+ UserOverride = 1
70
+ }
71
+ interface UserPermissionOrigin {
72
+ kind: UserPermissionOriginKind;
73
+ groupId: string | null;
74
+ groupName: string | null;
75
+ isAllowed: boolean;
76
+ }
77
+ interface UserPermissionDetail {
78
+ idModulePermission: string;
79
+ tag: string;
80
+ name: string;
81
+ status: PermissionStatus;
82
+ origins: UserPermissionOrigin[];
83
+ }
84
+
85
+ interface UserPermissionsDialogData {
86
+ userId: string;
87
+ userDisplayName?: string;
88
+ }
89
+ declare class UserPermissionsDialogComponent {
90
+ readonly data: UserPermissionsDialogData;
91
+ readonly permissionsResource: i0.ResourceRef<UserPermissionDetail[]>;
92
+ readonly permissions: i0.Signal<UserPermissionDetail[]>;
93
+ private readonly dialogRef;
94
+ private readonly service;
95
+ closeDialog(): void;
96
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserPermissionsDialogComponent, never>;
97
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserPermissionsDialogComponent, "cauca-user-permissions-dialog", never, {}, {}, never, never, true, never>;
98
+ }
99
+
68
100
  declare class CaucaManagementService {
69
101
  static ɵfac: i0.ɵɵFactoryDeclaration<CaucaManagementService, never>;
70
102
  static ɵprov: i0.ɵɵInjectableDeclaration<CaucaManagementService>;
@@ -72,7 +104,7 @@ declare class CaucaManagementService {
72
104
 
73
105
  declare class CaucaManagementComponent {
74
106
  static ɵfac: i0.ɵɵFactoryDeclaration<CaucaManagementComponent, never>;
75
- static ɵcmp: i0.ɵɵComponentDeclaration<CaucaManagementComponent, "cauca-management", never, {}, {}, never, never, false, never>;
107
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaucaManagementComponent, "cauca-management", never, {}, {}, never, never, true, never>;
76
108
  }
77
109
 
78
110
  /**
@@ -145,9 +177,9 @@ declare class PermissionModel {
145
177
  * @deprecated This component is obsolete and should not be used.
146
178
  */
147
179
  declare class CaucaManagementGroupComponent implements OnInit {
148
- showPrintButton: boolean;
149
- hoverStatePermission: boolean;
150
- showAssignableByAllUsers: boolean;
180
+ readonly showPrintButton: i0.InputSignal<boolean>;
181
+ readonly hoverStatePermission: i0.InputSignal<boolean>;
182
+ readonly showAssignableByAllUsers: i0.InputSignal<boolean>;
151
183
  groups: GroupModel[];
152
184
  users: UserModel[];
153
185
  permissions: PermissionModel[];
@@ -179,7 +211,7 @@ declare class CaucaManagementGroupComponent implements OnInit {
179
211
  private removePermissionUndefined;
180
212
  private getGroups;
181
213
  static ɵfac: i0.ɵɵFactoryDeclaration<CaucaManagementGroupComponent, never>;
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>;
214
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaucaManagementGroupComponent, "cauca-management-group", never, { "showPrintButton": { "alias": "showPrintButton"; "required": false; "isSignal": true; }; "hoverStatePermission": { "alias": "hoverStatePermission"; "required": false; "isSignal": true; }; "showAssignableByAllUsers": { "alias": "showAssignableByAllUsers"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
183
215
  }
184
216
 
185
217
  /**
@@ -198,12 +230,17 @@ declare class CaucaManagementUserComponent implements OnInit {
198
230
  private saveGroup;
199
231
  private getUsers;
200
232
  static ɵfac: i0.ɵɵFactoryDeclaration<CaucaManagementUserComponent, never>;
201
- static ɵcmp: i0.ɵɵComponentDeclaration<CaucaManagementUserComponent, "cauca-management-user", never, {}, {}, never, never, false, never>;
233
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaucaManagementUserComponent, "cauca-management-user", never, {}, {}, never, never, true, never>;
202
234
  }
203
235
 
236
+ /**
237
+ * @deprecated Import CaucaManagementComponent, CaucaManagementUserComponent and
238
+ * CaucaManagementGroupComponent directly in your standalone components. Kept as a re-export
239
+ * so existing consumers keep compiling.
240
+ */
204
241
  declare class CaucaManagementModule {
205
242
  static ɵfac: i0.ɵɵFactoryDeclaration<CaucaManagementModule, never>;
206
- static ɵmod: i0.ɵɵNgModuleDeclaration<CaucaManagementModule, [typeof CaucaManagementComponent, typeof CaucaManagementGroupComponent, typeof CaucaManagementUserComponent], [typeof i4.CommonModule, typeof i5.DxCheckBoxModule, typeof i6.DxListModule, typeof i7.DxTagBoxModule, typeof i8.CaucaCoreForChildModule, typeof i9.CaucaDevextremeModule], [typeof CaucaManagementComponent, typeof CaucaManagementUserComponent, typeof CaucaManagementGroupComponent]>;
243
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CaucaManagementModule, never, [typeof CaucaManagementComponent, typeof CaucaManagementGroupComponent, typeof CaucaManagementUserComponent], [typeof CaucaManagementComponent, typeof CaucaManagementUserComponent, typeof CaucaManagementGroupComponent]>;
207
244
  static ɵinj: i0.ɵɵInjectorDeclaration<CaucaManagementModule>;
208
245
  }
209
246
 
@@ -244,5 +281,5 @@ declare class ManagementGroupService {
244
281
  static ɵprov: i0.ɵɵInjectableDeclaration<ManagementGroupService>;
245
282
  }
246
283
 
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 };
284
+ 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, UserPermissionsDialogComponent, managementGroupRoutes, provideCaucaManagement };
285
+ export type { CaucaManagementConfig, RefreshablePermissionState, UserPermissionsDialogData };