@ieeesa-npm/groups 0.11.6 → 0.11.8
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/esm2022/lib/assets/constants.json +12 -5
- package/esm2022/lib/components/add-user-roster/add-user-roster.component.mjs +3 -3
- package/esm2022/lib/components/tree-view/tree-view.component.mjs +138 -13
- package/esm2022/lib/groups.component.mjs +10 -4
- package/fesm2022/ieeesa-npm-groups.mjs +159 -22
- package/fesm2022/ieeesa-npm-groups.mjs.map +1 -1
- package/lib/components/tree-view/tree-view.component.d.ts +41 -2
- package/lib/groups.component.d.ts +1 -0
- package/lib/services/groups.service.d.ts +6 -12
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ import { EditGroupAndParentInfo } from '../../models/edit-group.model';
|
|
|
9
9
|
import { GroupsService } from '../../services/groups.service';
|
|
10
10
|
import { PermissionType } from '../../models/permission-type.model';
|
|
11
11
|
import { GroupPermission } from '../../models/group-permissions.model';
|
|
12
|
+
import { BreakpointObserverService } from '@ieeesa-npm/utility';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
/**
|
|
14
15
|
* Dynamic Flat node creates a node structure
|
|
@@ -121,9 +122,10 @@ export declare class TreeViewComponent implements OnInit, AfterViewInit, OnDestr
|
|
|
121
122
|
database: Groups;
|
|
122
123
|
elementRef: ElementRef;
|
|
123
124
|
groupsService: GroupsService;
|
|
125
|
+
private breakpointObserverService;
|
|
124
126
|
constants: any;
|
|
125
127
|
buttons: Menu[];
|
|
126
|
-
|
|
128
|
+
treeMarginIndent: number;
|
|
127
129
|
selectedGroup: GroupNode;
|
|
128
130
|
selectedGroupAction: Menu | IconButton;
|
|
129
131
|
treeControl: FlatTreeControl<GroupNode>;
|
|
@@ -153,7 +155,8 @@ export declare class TreeViewComponent implements OnInit, AfterViewInit, OnDestr
|
|
|
153
155
|
editGroupClick: EventEmitter<EditGroupAndParentInfo>;
|
|
154
156
|
deleteGroupClick: EventEmitter<GroupInfo>;
|
|
155
157
|
viewRosterClick: EventEmitter<GroupInfo>;
|
|
156
|
-
|
|
158
|
+
isMobileView: boolean;
|
|
159
|
+
constructor(database: Groups, elementRef: ElementRef, groupsService: GroupsService, breakpointObserverService: BreakpointObserverService);
|
|
157
160
|
/**
|
|
158
161
|
* Initializes the tree view component
|
|
159
162
|
* @memberof TreeViewComponent
|
|
@@ -218,6 +221,33 @@ export declare class TreeViewComponent implements OnInit, AfterViewInit, OnDestr
|
|
|
218
221
|
* @memberof TreeViewComponent
|
|
219
222
|
*/
|
|
220
223
|
deleteGroupNode(deletedGroupId: string | undefined): void;
|
|
224
|
+
/**
|
|
225
|
+
* Returns the index of next group at the same level.
|
|
226
|
+
* @param {number} selectedGroupIndex
|
|
227
|
+
* @param {GroupNode[]} dataSource
|
|
228
|
+
* @return {*} {number}
|
|
229
|
+
* @memberof TreeViewComponent
|
|
230
|
+
*/
|
|
231
|
+
getNextGroup(selectedGroupIndex: number, dataSource: GroupNode[]): number;
|
|
232
|
+
/**
|
|
233
|
+
* Sort the groups alphabetically from given start index to end index.
|
|
234
|
+
* @param {number} startIndex
|
|
235
|
+
* @param {number} endIndex
|
|
236
|
+
* @memberof TreeViewComponent
|
|
237
|
+
*/
|
|
238
|
+
sortChildGroupsAlphabetically(startIndex: number, endIndex: number): void;
|
|
239
|
+
/**
|
|
240
|
+
* Sort the root level parent groups alphabetically.
|
|
241
|
+
* @memberof TreeViewComponent
|
|
242
|
+
*/
|
|
243
|
+
sortParentGroupsAlphabetically(): void;
|
|
244
|
+
/**
|
|
245
|
+
* Utility method to sort groups by group acronym in ascending order.
|
|
246
|
+
* @param {GroupNode[]} groups
|
|
247
|
+
* @return {*} {GroupNode[]}
|
|
248
|
+
* @memberof TreeViewComponent
|
|
249
|
+
*/
|
|
250
|
+
groupsSorting(groups: GroupNode[]): GroupNode[];
|
|
221
251
|
/**
|
|
222
252
|
* Sets the selected menu group action
|
|
223
253
|
* @param {Menu} menu
|
|
@@ -252,6 +282,15 @@ export declare class TreeViewComponent implements OnInit, AfterViewInit, OnDestr
|
|
|
252
282
|
* @memberof TreeViewComponent
|
|
253
283
|
*/
|
|
254
284
|
trackByFn(index: number, iconButton: IconButton): number;
|
|
285
|
+
/**
|
|
286
|
+
* Sets indentation based on the node level and devices.
|
|
287
|
+
* @param {GroupNode} node
|
|
288
|
+
* @return {{ [key: string]: string }}
|
|
289
|
+
* @memberof TreeViewComponent
|
|
290
|
+
*/
|
|
291
|
+
getIndentation(node: GroupNode): {
|
|
292
|
+
[key: string]: string;
|
|
293
|
+
};
|
|
255
294
|
/**
|
|
256
295
|
* NgOnDestroy performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed.
|
|
257
296
|
* @memberof GroupsComponent
|
|
@@ -51,6 +51,7 @@ export declare class GroupsComponent implements OnInit, OnDestroy {
|
|
|
51
51
|
filterPlaceHolderText: string;
|
|
52
52
|
createGroupIcon: IconButton;
|
|
53
53
|
filterGroupIcon: IconButton;
|
|
54
|
+
searchGroupIcon: IconButton;
|
|
54
55
|
getGroupsPayload: GetGroupsPayload;
|
|
55
56
|
groupsPageInfo: {
|
|
56
57
|
groupsTitle: string;
|
|
@@ -36,12 +36,6 @@ export declare class GroupsService {
|
|
|
36
36
|
alertService: AlertsService;
|
|
37
37
|
groupsText: {
|
|
38
38
|
ER1000: string;
|
|
39
|
-
/**
|
|
40
|
-
* This method will parse the error codes and return the respective error message for each code.
|
|
41
|
-
* @param {string[]} errorCodes
|
|
42
|
-
* @return {string[]} errorMessage
|
|
43
|
-
* @memberof GroupsService
|
|
44
|
-
*/
|
|
45
39
|
ER1001: string;
|
|
46
40
|
"1001": string;
|
|
47
41
|
"1002": string;
|
|
@@ -73,11 +67,6 @@ export declare class GroupsService {
|
|
|
73
67
|
"1028": string;
|
|
74
68
|
"1029": string;
|
|
75
69
|
"1030": string;
|
|
76
|
-
/**
|
|
77
|
-
* Returns group function type.
|
|
78
|
-
* @return {GroupFunctionType} -group function type.
|
|
79
|
-
* @memberof GroupsService
|
|
80
|
-
*/
|
|
81
70
|
"1031": string;
|
|
82
71
|
"1032": string;
|
|
83
72
|
"1033": string;
|
|
@@ -91,7 +80,12 @@ export declare class GroupsService {
|
|
|
91
80
|
"2002": string;
|
|
92
81
|
"2010": string;
|
|
93
82
|
"2011": string;
|
|
94
|
-
"20l2": string;
|
|
83
|
+
"20l2": string; /**
|
|
84
|
+
* Gets the group users based on the filtered roles.
|
|
85
|
+
* @param {FilterUsersPayload} payload
|
|
86
|
+
* @return {Observable<GetGroupUsersResponse>}
|
|
87
|
+
* @memberof GroupsService
|
|
88
|
+
*/
|
|
95
89
|
"2013": string;
|
|
96
90
|
"2014": string;
|
|
97
91
|
"2015": string;
|