@cauca-911/management 22.0.3 → 22.0.4

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,12 +1,11 @@
1
1
  {
2
2
  "name": "@cauca-911/management",
3
- "version": "22.0.3",
3
+ "version": "22.0.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.1.0",
6
6
  "@angular/core": ">=22.1.0",
7
7
  "@cauca-911/core": ">=22.0.0",
8
8
  "@cauca-911/datagrid": ">=22.0.0",
9
- "@cauca-911/devextreme": ">=22.0.0",
10
9
  "@cauca-911/material": ">=22.0.0",
11
10
  "odata-filter-builder": ">=1.0.0"
12
11
  },
@@ -4,8 +4,6 @@ import { Routes } from '@angular/router';
4
4
  import { OnDeactivate } from '@cauca-911/material';
5
5
  import { ODataFilter } from 'odata-data-source';
6
6
  import { BaseGridColumnComponent } from '@cauca-911/datagrid';
7
- import { HttpClient } from '@angular/common/http';
8
- import { Observable } from 'rxjs';
9
7
 
10
8
  declare const MANAGEMENT_URL_PREFIX: InjectionToken<string>;
11
9
  declare const MANAGEMENT_ROUTE_SEGMENT: InjectionToken<string>;
@@ -150,8 +148,12 @@ declare class UsersPageComponent {
150
148
 
151
149
  declare class UserListGridComponent implements OnInit {
152
150
  /**
153
- * Read when the grid registers its columns, in `ngAfterContentInit`. Replacing the list
154
- * afterwards renders nothing: the new columns are never registered with the MatTable.
151
+ * Read when the grid registers its columns, in `ngAfterContentInit`. Changing it afterwards
152
+ * recomputes `columns()` but does not re-run `applyColumns()`, so the MatTable is asked to
153
+ * render a column id it never registered and throws `Could not find column with id "X"`.
154
+ * `showPermissions`, `canEdit` and `canDelete` gate the row-action column the same way and
155
+ * carry the same constraint — and are the more likely one to hit, since a consumer binds them
156
+ * to an async permission signal more readily than it replaces the column list.
155
157
  */
156
158
  readonly extraColumns: _angular_core.InputSignal<UserGridColumn[]>;
157
159
  readonly showAddButton: _angular_core.InputSignal<boolean>;
@@ -193,189 +195,5 @@ declare class ScopeListGridColumnComponent extends BaseGridColumnComponent {
193
195
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ScopeListGridColumnComponent, "cauca-scope-list-grid-column", never, { "allLabel": { "alias": "allLabel"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
194
196
  }
195
197
 
196
- declare class CaucaManagementService {
197
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CaucaManagementService, never>;
198
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<CaucaManagementService>;
199
- }
200
-
201
- declare class CaucaManagementComponent {
202
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CaucaManagementComponent, never>;
203
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CaucaManagementComponent, "cauca-management", never, {}, {}, never, never, true, never>;
204
- }
205
-
206
- /**
207
- * @deprecated This model is obsolete and should not be used.
208
- */
209
- declare class UserGroupModel {
210
- idUserGroup: string;
211
- idGroup: string;
212
- idUser: string;
213
- }
214
-
215
- /**
216
- * @deprecated This model is obsolete and should not be used.
217
- */
218
- declare class UserPermissionModel {
219
- idUserPermission: string;
220
- isAllowed: boolean;
221
- idUser: string;
222
- idModulePermission: string;
223
- }
224
-
225
- /**
226
- * @deprecated This model is obsolete and should not be used.
227
- */
228
- declare class UserModel {
229
- id: string;
230
- userName: string;
231
- firstName: string;
232
- lastName: string;
233
- password: string;
234
- email: string;
235
- isActive: boolean;
236
- groups: UserGroupModel[];
237
- permissions: UserPermissionModel[];
238
- twoFactorAuthenticatorEnabled: boolean;
239
- }
240
-
241
- /**
242
- * @deprecated This model is obsolete and should not be used.
243
- */
244
- declare class GroupPermissionModel {
245
- idGroupPermission: string;
246
- isAllowed: boolean;
247
- idGroup: string;
248
- idModulePermission: string;
249
- }
250
-
251
- /**
252
- * @deprecated This model is obsolete and should not be used.
253
- */
254
- declare class GroupModel {
255
- id: string;
256
- name: string;
257
- users: UserGroupModel[];
258
- permissions: GroupPermissionModel[];
259
- assignableByAllUsers: boolean;
260
- }
261
-
262
- /**
263
- * @deprecated This model is obsolete and should not be used.
264
- */
265
- declare class PermissionModel {
266
- id: string;
267
- name: string;
268
- tag: string;
269
- idSystem: string;
270
- }
271
-
272
- /**
273
- * @deprecated This component is obsolete and should not be used.
274
- */
275
- declare class CaucaManagementGroupComponent implements OnInit {
276
- readonly showPrintButton: _angular_core.InputSignal<boolean>;
277
- readonly hoverStatePermission: _angular_core.InputSignal<boolean>;
278
- readonly showAssignableByAllUsers: _angular_core.InputSignal<boolean>;
279
- groups: GroupModel[];
280
- users: UserModel[];
281
- permissions: PermissionModel[];
282
- userFullName: any;
283
- showColumn: boolean;
284
- showColumnXS: boolean;
285
- translations: any;
286
- private groupUsers;
287
- private readonly managementGroupService;
288
- private readonly managementUserService;
289
- private readonly managementPermissionService;
290
- constructor();
291
- ngOnInit(): void;
292
- fullName(data: any): string;
293
- getGroupUser(field: any, e: any): void;
294
- setGroupUser(field: any, e: any): void;
295
- setGroupPermission(field: any, e: any): void;
296
- getPermissionStatus(field: any, permission: any, e: any): void;
297
- checkBoxToggled(field: any, permission: any, e: any): void;
298
- onRowInserted(e: any): void;
299
- onRowUpdated(e: any): void;
300
- onRowRemoved(e: any): void;
301
- calculateUsersCellValue: (e: any) => string;
302
- onEditingStart(e: any): void;
303
- onInitNewRow(): void;
304
- groupNameAlreadyUsedValidation: (e: any) => Promise<boolean>;
305
- private setPermissionStatus;
306
- private saveGroup;
307
- private removePermissionUndefined;
308
- private getGroups;
309
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CaucaManagementGroupComponent, never>;
310
- static ɵcmp: _angular_core.ɵɵ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>;
311
- }
312
-
313
- /**
314
- * @deprecated This component is obsolete and should not be used.
315
- */
316
- declare class CaucaManagementUserComponent implements OnInit {
317
- users: UserModel[];
318
- showColumnXS: boolean;
319
- private readonly managementUserService;
320
- constructor();
321
- ngOnInit(): void;
322
- onRowInserted(e: any): void;
323
- onRowUpdated(e: any): void;
324
- onRowRemoved(e: any): void;
325
- userNameAlreadyUsedValidation: (e: any) => Promise<boolean>;
326
- private saveGroup;
327
- private getUsers;
328
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CaucaManagementUserComponent, never>;
329
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CaucaManagementUserComponent, "cauca-management-user", never, {}, {}, never, never, true, never>;
330
- }
331
-
332
- /**
333
- * @deprecated Import CaucaManagementComponent, CaucaManagementUserComponent and
334
- * CaucaManagementGroupComponent directly in your standalone components. Kept as a re-export
335
- * so existing consumers keep compiling.
336
- */
337
- declare class CaucaManagementModule {
338
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CaucaManagementModule, never>;
339
- static ɵmod: _angular_core.ɵɵNgModuleDeclaration<CaucaManagementModule, never, [typeof CaucaManagementComponent, typeof CaucaManagementGroupComponent, typeof CaucaManagementUserComponent], [typeof CaucaManagementComponent, typeof CaucaManagementUserComponent, typeof CaucaManagementGroupComponent]>;
340
- static ɵinj: _angular_core.ɵɵInjectorDeclaration<CaucaManagementModule>;
341
- }
342
-
343
- /**
344
- * @deprecated This service is obsolete and should not be used.
345
- */
346
- declare class ManagementUserService {
347
- protected readonly http: HttpClient;
348
- private readonly baseUrl;
349
- private readonly baseUrlToUse;
350
- getAll<TUser>(): Observable<TUser[]>;
351
- get<TUser>(idUser: string): Observable<TUser>;
352
- getGroup(idUser: string): Observable<any>;
353
- addGroup(userGroup: UserGroupModel): Observable<any>;
354
- deleteGroup(idUserGroup: string): Observable<any>;
355
- addPermission(userPermission: UserPermissionModel): Observable<any>;
356
- deletePermission(idUserPermission: string): Observable<any>;
357
- save<TUser>(user: TUser): Observable<any>;
358
- delete(idUser: string): Observable<any>;
359
- hasExistingUserName<TUser>(user: TUser): Observable<boolean>;
360
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ManagementUserService, never>;
361
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<ManagementUserService>;
362
- }
363
-
364
- /**
365
- * @deprecated This service is obsolete and should not be used.
366
- */
367
- declare class ManagementGroupService {
368
- private readonly http;
369
- private readonly baseUrl;
370
- private readonly baseUrlToUse;
371
- getAll(): Observable<GroupModel[]>;
372
- get(idGroup: string): Observable<GroupModel>;
373
- save(group: GroupModel): Observable<any>;
374
- delete(idGroup: string): Observable<any>;
375
- hasExistingGroupName(group: GroupModel): Observable<boolean>;
376
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ManagementGroupService, never>;
377
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<ManagementGroupService>;
378
- }
379
-
380
- export { AllScopeToken, CaucaManagementComponent, CaucaManagementGroupComponent, CaucaManagementModule, CaucaManagementService, CaucaManagementUserComponent, GroupEditionPageComponent, GroupModel, GroupPermissionModel, GroupsPageComponent, MANAGEMENT_ROUTE_SEGMENT, MANAGEMENT_URL_PREFIX, ManagementGroupService, ManagementUserService, REFRESHABLE_PERMISSION_STATE_TOKEN, ScopeListGridColumnComponent, UserGroupModel, UserListGridComponent, UserModel, UserPermissionModel, UserPermissionsDialogComponent, UsersPageComponent, managementGroupRoutes, provideCaucaManagement };
198
+ export { AllScopeToken, GroupEditionPageComponent, GroupsPageComponent, MANAGEMENT_ROUTE_SEGMENT, MANAGEMENT_URL_PREFIX, REFRESHABLE_PERMISSION_STATE_TOKEN, ScopeListGridColumnComponent, UserListGridComponent, UserPermissionsDialogComponent, UsersPageComponent, managementGroupRoutes, provideCaucaManagement };
381
199
  export type { CaucaManagementConfig, RefreshablePermissionState, UserGridColumn, UserGridColumnKind, UserListRow, UserPermissionsDialogData };