@ieeesa-npm/groups 0.11.5 → 0.11.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.
- package/esm2022/lib/assets/constants.json +0 -1
- package/esm2022/lib/components/tree-view/tree-view.component.mjs +105 -6
- package/esm2022/lib/groups.component.mjs +3 -19
- package/esm2022/lib/models/group-types.model.mjs +1 -1
- package/fesm2022/ieeesa-npm-groups.mjs +106 -24
- package/fesm2022/ieeesa-npm-groups.mjs.map +1 -1
- package/lib/components/tree-view/tree-view.component.d.ts +28 -2
- package/lib/groups.component.d.ts +1 -8
- package/lib/models/group-types.model.d.ts +0 -1
- package/lib/services/groups.service.d.ts +11 -0
- package/package.json +1 -1
|
@@ -192,11 +192,10 @@ export declare class TreeViewComponent implements OnInit, AfterViewInit, OnDestr
|
|
|
192
192
|
viewChildGroups(node: GroupNode): void;
|
|
193
193
|
/**
|
|
194
194
|
* Sets the box shadow based on the group type legend color
|
|
195
|
-
* @param {string} color
|
|
196
195
|
* @return {*}
|
|
197
196
|
* @memberof TreeViewComponent
|
|
198
197
|
*/
|
|
199
|
-
getBoxShadow(
|
|
198
|
+
getBoxShadow(): any;
|
|
200
199
|
/**
|
|
201
200
|
* Sets the dataSource with parent groups data
|
|
202
201
|
* @memberof TreeViewComponent
|
|
@@ -219,6 +218,33 @@ export declare class TreeViewComponent implements OnInit, AfterViewInit, OnDestr
|
|
|
219
218
|
* @memberof TreeViewComponent
|
|
220
219
|
*/
|
|
221
220
|
deleteGroupNode(deletedGroupId: string | undefined): void;
|
|
221
|
+
/**
|
|
222
|
+
* Returns the index of next group at the same level.
|
|
223
|
+
* @param {number} selectedGroupIndex
|
|
224
|
+
* @param {GroupNode[]} dataSource
|
|
225
|
+
* @return {*} {number}
|
|
226
|
+
* @memberof TreeViewComponent
|
|
227
|
+
*/
|
|
228
|
+
getNextGroup(selectedGroupIndex: number, dataSource: GroupNode[]): number;
|
|
229
|
+
/**
|
|
230
|
+
* Sort the groups alphabetically from given start index to end index.
|
|
231
|
+
* @param {number} startIndex
|
|
232
|
+
* @param {number} endIndex
|
|
233
|
+
* @memberof TreeViewComponent
|
|
234
|
+
*/
|
|
235
|
+
sortChildGroupsAlphabetically(startIndex: number, endIndex: number): void;
|
|
236
|
+
/**
|
|
237
|
+
* Sort the root level parent groups alphabetically.
|
|
238
|
+
* @memberof TreeViewComponent
|
|
239
|
+
*/
|
|
240
|
+
sortParentGroupsAlphabetically(): void;
|
|
241
|
+
/**
|
|
242
|
+
* Utility method to sort groups by group acronym in ascending order.
|
|
243
|
+
* @param {GroupNode[]} groups
|
|
244
|
+
* @return {*} {GroupNode[]}
|
|
245
|
+
* @memberof TreeViewComponent
|
|
246
|
+
*/
|
|
247
|
+
groupsSorting(groups: GroupNode[]): GroupNode[];
|
|
222
248
|
/**
|
|
223
249
|
* Sets the selected menu group action
|
|
224
250
|
* @param {Menu} menu
|
|
@@ -4,7 +4,7 @@ import { MatDialog } from '@angular/material/dialog';
|
|
|
4
4
|
import { GroupsService } from './services/groups.service';
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
6
6
|
import { GroupInfo } from './models/group-info.model';
|
|
7
|
-
import { SelectOption, IconButton, AlignType,
|
|
7
|
+
import { SelectOption, IconButton, AlignType, SearchType } from '@ieeesa-npm/presentation';
|
|
8
8
|
import { GroupTypeConfigValue } from './models/group-types.model';
|
|
9
9
|
import { AlertType, BreakpointObserverService, AlertsService, GlobalErrorHandlerService } from '@ieeesa-npm/utility';
|
|
10
10
|
import { GroupFunctionType } from './models/group-function-type.model';
|
|
@@ -51,7 +51,6 @@ export declare class GroupsComponent implements OnInit, OnDestroy {
|
|
|
51
51
|
filterPlaceHolderText: string;
|
|
52
52
|
createGroupIcon: IconButton;
|
|
53
53
|
filterGroupIcon: IconButton;
|
|
54
|
-
groupsLegends: Legend[];
|
|
55
54
|
getGroupsPayload: GetGroupsPayload;
|
|
56
55
|
groupsPageInfo: {
|
|
57
56
|
groupsTitle: string;
|
|
@@ -64,7 +63,6 @@ export declare class GroupsComponent implements OnInit, OnDestroy {
|
|
|
64
63
|
permissionType: typeof PermissionType;
|
|
65
64
|
functionType: GroupFunctionType;
|
|
66
65
|
alignmentType: typeof AlignType;
|
|
67
|
-
isSorting: boolean;
|
|
68
66
|
canReopenViewRosterModal: boolean;
|
|
69
67
|
searchType: SearchType;
|
|
70
68
|
minCharacterToSearch: number;
|
|
@@ -155,11 +153,6 @@ export declare class GroupsComponent implements OnInit, OnDestroy {
|
|
|
155
153
|
* @memberof GroupsComponent
|
|
156
154
|
*/
|
|
157
155
|
getGroupTypeOptions(): SelectOption[];
|
|
158
|
-
/**
|
|
159
|
-
* Sets legend color from groupTypes response
|
|
160
|
-
* @memberof GroupsComponent
|
|
161
|
-
*/
|
|
162
|
-
legendColor(): void;
|
|
163
156
|
/**
|
|
164
157
|
* Sets the isGroupSearchOrFilterActive flag and loads parent group info as per selected filter option.
|
|
165
158
|
* @param {SelectOption} event
|
|
@@ -36,6 +36,12 @@ 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
|
+
*/
|
|
39
45
|
ER1001: string;
|
|
40
46
|
"1001": string;
|
|
41
47
|
"1002": string;
|
|
@@ -67,6 +73,11 @@ export declare class GroupsService {
|
|
|
67
73
|
"1028": string;
|
|
68
74
|
"1029": string;
|
|
69
75
|
"1030": string;
|
|
76
|
+
/**
|
|
77
|
+
* Returns group function type.
|
|
78
|
+
* @return {GroupFunctionType} -group function type.
|
|
79
|
+
* @memberof GroupsService
|
|
80
|
+
*/
|
|
70
81
|
"1031": string;
|
|
71
82
|
"1032": string;
|
|
72
83
|
"1033": string;
|