@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.
@@ -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(color: string): any;
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, Legend, SearchType } from '@ieeesa-npm/presentation';
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
@@ -10,7 +10,6 @@ export interface BusinessRule {
10
10
  }
11
11
  export interface GroupType {
12
12
  name: string;
13
- legendColor: string;
14
13
  description: string;
15
14
  businessRule: BusinessRule;
16
15
  hierarchy: number;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/groups",
3
- "version": "0.11.5",
3
+ "version": "0.11.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0"