asp-lib 1.1.5 → 1.1.7

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.
@@ -1,4 +1,5 @@
1
1
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
+ import { OnInit } from '@angular/core';
2
3
  import { MatDialogRef } from '@angular/material/dialog';
3
4
  import { SecurityAdminService } from '../services/security-admin.service';
4
5
  import { FormControl } from '@angular/forms';
@@ -9,7 +10,7 @@ interface Entity {
9
10
  name: string;
10
11
  entityType: "Customer" | "User";
11
12
  }
12
- export declare class AssignRolesComponent {
13
+ export declare class AssignRolesComponent implements OnInit {
13
14
  dialogRef: MatDialogRef<AssignRolesComponent>;
14
15
  data: {
15
16
  theme: string;
@@ -18,7 +19,8 @@ export declare class AssignRolesComponent {
18
19
  private securityAdminService;
19
20
  private snackbar;
20
21
  theme: string;
21
- roles: any[];
22
+ allRoles: any[];
23
+ filteredAvailableRoles: any[];
22
24
  dropHover: boolean;
23
25
  assigned: Set<string | number>;
24
26
  search: FormControl<string | null>;
@@ -30,6 +32,12 @@ export declare class AssignRolesComponent {
30
32
  get dragOptions(): any[];
31
33
  get droppedItems(): any[];
32
34
  get entityName(): string;
35
+ constructor(dialogRef: MatDialogRef<AssignRolesComponent>, data: {
36
+ theme: string;
37
+ entityType: "Customer" | "User";
38
+ }, securityAdminService: SecurityAdminService, snackbar: SnackbarService);
39
+ ngOnInit(): void;
40
+ filterAvailableRoles(searchTerm: string): void;
33
41
  removeRole(role: any): void;
34
42
  uiActions: {
35
43
  icon: string;
@@ -37,10 +45,6 @@ export declare class AssignRolesComponent {
37
45
  }[];
38
46
  drop(event: CdkDragDrop<any[]>): void;
39
47
  setDropHover(value: boolean): void;
40
- constructor(dialogRef: MatDialogRef<AssignRolesComponent>, data: {
41
- theme: string;
42
- entityType: "Customer" | "User";
43
- }, securityAdminService: SecurityAdminService, snackbar: SnackbarService);
44
48
  loadAssignedRoles(): void;
45
49
  loadRoleOptions(): void;
46
50
  onSave(): void;
@@ -43,6 +43,7 @@ interface MenuOption {
43
43
  validFlag?: string;
44
44
  format?: string;
45
45
  checked?: boolean;
46
+ indeterminate?: boolean;
46
47
  children?: MenuOption[];
47
48
  expanded?: boolean;
48
49
  wiseUrl?: boolean | null;
@@ -65,7 +66,7 @@ export declare class RoleMenuOptionsComponent implements OnInit {
65
66
  ngOnInit(): void;
66
67
  loadModules(): void;
67
68
  loadMenuOptions(): void;
68
- mapMenuOption(option: any): MenuOption;
69
+ mapMenuOption(option: any, level?: number): MenuOption;
69
70
  filterMenuOptionsByModule(): void;
70
71
  selectModule(module: Module): void;
71
72
  toggleOption(option: MenuOption): void;
@@ -74,10 +75,10 @@ export declare class RoleMenuOptionsComponent implements OnInit {
74
75
  findParentOption(parentId: number | null): MenuOption | null;
75
76
  toggleExpanded(option: MenuOption): void;
76
77
  trackByOptionId(index: number, option: MenuOption): number;
77
- getModuleIcon(moduleName: string): string;
78
78
  cancel(): void;
79
79
  save(): void;
80
80
  getSelectedOptions(options: MenuOption[]): MenuOption[];
81
+ updateIndeterminateState(option: MenuOption): void;
81
82
  static ɵfac: i0.ɵɵFactoryDeclaration<RoleMenuOptionsComponent, never>;
82
83
  static ɵcmp: i0.ɵɵComponentDeclaration<RoleMenuOptionsComponent, "lib-role-menu-options", never, {}, {}, never, never, false, never>;
83
84
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asp-lib",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=16.2.0 <20.0.0",
6
6
  "@angular/core": ">=16.2.0 <20.0.0",