@ieeesa-npm/groups 0.11.7 → 0.11.9
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 +43 -18
- package/esm2022/lib/groups.component.mjs +10 -4
- package/fesm2022/ieeesa-npm-groups.mjs +64 -27
- package/fesm2022/ieeesa-npm-groups.mjs.map +1 -1
- package/lib/components/tree-view/tree-view.component.d.ts +14 -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
|
|
@@ -279,6 +282,15 @@ export declare class TreeViewComponent implements OnInit, AfterViewInit, OnDestr
|
|
|
279
282
|
* @memberof TreeViewComponent
|
|
280
283
|
*/
|
|
281
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
|
+
};
|
|
282
294
|
/**
|
|
283
295
|
* NgOnDestroy performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed.
|
|
284
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;
|