vc-create-dashboard 2.5.9 → 2.6.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.
@@ -2,6 +2,7 @@ export interface CreateDashboardForm {
2
2
  dashboardName: string;
3
3
  dashboardDescriptionText: string;
4
4
  selectedViewers: any[];
5
+ selectedGroup: any[];
5
6
  selectedFromDate: any;
6
7
  selectedToDate: any;
7
8
  selectedResponsibilityCenters: any[];
@@ -18,6 +18,7 @@ export declare class CreateDashboardComponent implements OnInit, OnChanges {
18
18
  popoverService: PopoverService;
19
19
  private configureWidgetsService;
20
20
  private textCount;
21
+ feature: any;
21
22
  activeSelector: string;
22
23
  disabled: boolean;
23
24
  mode: string;
@@ -79,6 +80,8 @@ export declare class CreateDashboardComponent implements OnInit, OnChanges {
79
80
  toDatePickerConfig: IDatePickerConfig;
80
81
  isSmiley: boolean;
81
82
  smileyMessage: string;
83
+ groupList: any;
84
+ groupsEnabled: boolean;
82
85
  constructor(createDashboardService: CreateDashboardService, paginationService: PaginationService, cdr: ChangeDetectorRef, snackBar: SnackBarService, popoverService: PopoverService, configureWidgetsService: ConfigureWidgetsService, textCount: TextCountPipe);
83
86
  ngOnChanges(): void;
84
87
  onKeydownHandler(event: KeyboardEvent): void;
@@ -109,6 +112,7 @@ export declare class CreateDashboardComponent implements OnInit, OnChanges {
109
112
  * @param url contains query params for organization users api
110
113
  */
111
114
  getUsersList(url: any): void;
115
+ getGroupList(): void;
112
116
  getComplianceCategoryList(): void;
113
117
  saveSelectedCategory(event: any): void;
114
118
  getCategoryList(): void;
@@ -124,6 +128,15 @@ export declare class CreateDashboardComponent implements OnInit, OnChanges {
124
128
  */
125
129
  paginationFilter(event: any): void;
126
130
  getRCList(): void;
131
+ /**
132
+ * #### Description
133
+ *
134
+ * Returns the unique array of object based on unique key
135
+ * @param array
136
+ * @param key
137
+ * @returns
138
+ */
139
+ uniqueByProp(array: any, key: string): unknown[];
127
140
  saveSelectedList(type: string, selectedItems: any): void;
128
141
  remove(type: any, event: any, removeIndex?: any): void;
129
142
  setList(list: any[], ids: any[], key: string): any;
@@ -149,5 +162,5 @@ export declare class CreateDashboardComponent implements OnInit, OnChanges {
149
162
  ngAfterViewChecked(): void;
150
163
  setPermission(roleActions: any): void;
151
164
  static ɵfac: i0.ɵɵFactoryDeclaration<CreateDashboardComponent, never>;
152
- static ɵcmp: i0.ɵɵComponentDeclaration<CreateDashboardComponent, "app-create-dashboard", never, { "mode": "mode"; "dashboardId": "dashboardId"; "createdBy": "createdBy"; "configureWidget": "configureWidget"; }, { "close": "close"; }, never, never, false>;
165
+ static ɵcmp: i0.ɵɵComponentDeclaration<CreateDashboardComponent, "app-create-dashboard", never, { "feature": "feature"; "mode": "mode"; "dashboardId": "dashboardId"; "createdBy": "createdBy"; "configureWidget": "configureWidget"; }, { "close": "close"; }, never, never, false>;
153
166
  }
@@ -22,6 +22,10 @@ export declare class CreateDashboardService {
22
22
  * Fetches all users by making an API call
23
23
  */
24
24
  getAllUsers(): import("rxjs").Observable<Object>;
25
+ /**
26
+ * Fetches all groups by making an API call
27
+ * */
28
+ getAllGroups(): import("rxjs").Observable<Object>;
25
29
  /**
26
30
  * Fetches responsibilityCentersList by making an API call
27
31
  */
@@ -16,12 +16,19 @@ export declare class UserListComponent implements OnInit {
16
16
  totalPages: number;
17
17
  limit: number;
18
18
  totalList: number;
19
+ feature: any;
19
20
  searchList: never[];
20
21
  searchValue: string;
21
22
  searchFilter: string;
22
23
  selectedIds: any[];
23
24
  selectedList: any[];
25
+ groupdata: any[];
24
26
  animation: boolean;
27
+ totalgroups: any;
28
+ total_group_pages: any;
29
+ selectedGroupIds: any[];
30
+ groupsEnabled: any;
31
+ selectedgroupList: any[];
25
32
  constructor(paginationService: PaginationService, dashboardService: CreateDashboardService);
26
33
  ngOnChanges(): void;
27
34
  ngOnInit(): void;
@@ -34,12 +41,14 @@ export declare class UserListComponent implements OnInit {
34
41
  * @param event consists boolean value to select of unselect.
35
42
  */
36
43
  selectAllUsers(event: any): void;
44
+ selectAllGroups(event: any): void;
37
45
  /**
38
46
  * Selects checked item from the list.
39
47
  * In case of user's list calculates number of admins/manages to set visibility(either to all admins/ admins and managers)
40
48
  * @param data is the selected element
41
49
  */
42
50
  selectElement(data: any): void;
51
+ selectGroupElement(data: any): void;
43
52
  /**
44
53
  * It is used to set and search value incase of backend driven list to differentiate search list and original list
45
54
  */
@@ -62,6 +71,8 @@ export declare class UserListComponent implements OnInit {
62
71
  * on click on next button from the list, it emits the selected list of elements to parent component.
63
72
  */
64
73
  onSubmit(): void;
74
+ currentTab: string;
75
+ switchTab(tab: string): void;
65
76
  static ɵfac: i0.ɵɵFactoryDeclaration<UserListComponent, never>;
66
- static ɵcmp: i0.ɵɵComponentDeclaration<UserListComponent, "app-user-list", never, { "selectionType": "selectionType"; "listDetails": "listDetails"; "totalPages": "totalPages"; "limit": "limit"; "totalList": "totalList"; }, { "closeUserList": "closeUserList"; "saveSelectedUsers": "saveSelectedUsers"; }, never, never, false>;
77
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserListComponent, "app-user-list", never, { "selectionType": "selectionType"; "listDetails": "listDetails"; "totalPages": "totalPages"; "limit": "limit"; "totalList": "totalList"; "feature": "feature"; }, { "closeUserList": "closeUserList"; "saveSelectedUsers": "saveSelectedUsers"; }, never, never, false>;
67
78
  }
@@ -3,8 +3,11 @@
3
3
  */
4
4
  export interface UserListConfiguration {
5
5
  selectedUsersList: {}[];
6
+ selectedGroupList: {}[];
6
7
  nonRemovableUsersList: any[];
7
8
  displayElementKey: string;
9
+ displayGroupKey: string;
10
+ groupIdkey: string;
8
11
  elementIdKey: string;
9
12
  tooltipKey: string;
10
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vc-create-dashboard",
3
- "version": "2.5.9",
3
+ "version": "2.6.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.1.0",
6
6
  "@angular/core": "^12.1.0"