@ieeesa-npm/groups 0.7.0 → 0.7.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.
- package/esm2022/lib/assets/constants.json +2 -0
- package/esm2022/lib/components/add-user-roster/add-user-roster.component.mjs +5 -5
- package/esm2022/lib/components/create-group/create-group.component.mjs +5 -5
- package/esm2022/lib/components/edit-user-roles/edit-user-roles.component.mjs +5 -5
- package/esm2022/lib/components/tree-view/tree-view.component.mjs +8 -8
- package/esm2022/lib/components/view-roster/view-roster.component.mjs +5 -5
- package/esm2022/lib/groups.component.mjs +43 -8
- package/esm2022/lib/groups.module.mjs +5 -5
- package/esm2022/lib/services/groups.service.mjs +19 -4
- package/fesm2022/ieeesa-npm-groups.mjs +88 -36
- package/fesm2022/ieeesa-npm-groups.mjs.map +1 -1
- package/lib/groups.component.d.ts +4 -1
- package/lib/services/groups.service.d.ts +16 -6
- package/package.json +4 -4
|
@@ -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 } from '@ieeesa-npm/presentation';
|
|
7
|
+
import { SelectOption, IconButton, AlignType, Legend, 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';
|
|
@@ -57,6 +57,9 @@ export declare class GroupsComponent implements OnInit, OnDestroy {
|
|
|
57
57
|
alignmentType: typeof AlignType;
|
|
58
58
|
isSorting: boolean;
|
|
59
59
|
canReopenViewRosterModal: boolean;
|
|
60
|
+
searchType: SearchType;
|
|
61
|
+
minCharacterToSearch: number;
|
|
62
|
+
trimmedSearchTerm: string;
|
|
60
63
|
constructor(dialog: MatDialog, groupsService: GroupsService, alertService: AlertsService, breakpointObserverService: BreakpointObserverService, globalErrorHandlerService: GlobalErrorHandlerService);
|
|
61
64
|
/**
|
|
62
65
|
* Initialize the groups component.
|
|
@@ -23,6 +23,12 @@ export declare class GroupsService {
|
|
|
23
23
|
private httpService;
|
|
24
24
|
alertService: AlertsService;
|
|
25
25
|
groupsText: {
|
|
26
|
+
/**
|
|
27
|
+
* Updates group form data to server using HttpService.
|
|
28
|
+
* @param {EditGroupPayload} editGroupPayload -edit group form data which includes group name, short name, scope.
|
|
29
|
+
* @return {Observable<EditGroupPayload>} -returns edit group API response (success or error) as an observable.
|
|
30
|
+
* @memberof GroupsService
|
|
31
|
+
*/
|
|
26
32
|
ER1000: string;
|
|
27
33
|
"1001": string;
|
|
28
34
|
"1002": string;
|
|
@@ -34,12 +40,7 @@ export declare class GroupsService {
|
|
|
34
40
|
"1008": string;
|
|
35
41
|
"1009": string;
|
|
36
42
|
"1010": string;
|
|
37
|
-
"1011": string;
|
|
38
|
-
* This method will parse the error codes and return the respective error message for each code.
|
|
39
|
-
* @param {string[]} errorCodes
|
|
40
|
-
* @return {string[]} errorMessage
|
|
41
|
-
* @memberof GroupsService
|
|
42
|
-
*/
|
|
43
|
+
"1011": string;
|
|
43
44
|
"1012": string;
|
|
44
45
|
"1013": string;
|
|
45
46
|
"1014": string;
|
|
@@ -61,6 +62,8 @@ export declare class GroupsService {
|
|
|
61
62
|
"1030": string;
|
|
62
63
|
"1031": string;
|
|
63
64
|
"1032": string;
|
|
65
|
+
"1033": string;
|
|
66
|
+
"1034": string;
|
|
64
67
|
"2001": string;
|
|
65
68
|
"2002": string;
|
|
66
69
|
"2010": string;
|
|
@@ -264,6 +267,13 @@ export declare class GroupsService {
|
|
|
264
267
|
* @memberof GroupsService
|
|
265
268
|
*/
|
|
266
269
|
getRosterFunctionType(): RosterFunctionType;
|
|
270
|
+
/**
|
|
271
|
+
* Gets the groups based on the search by group name or acronym.
|
|
272
|
+
* @param {string} searchTerm
|
|
273
|
+
* @return {Observable<GetGroupUsersResponse>}
|
|
274
|
+
* @memberof GroupsService
|
|
275
|
+
*/
|
|
276
|
+
groupsByNameAcronym(searchTerm: string): Observable<GetGroupResponse>;
|
|
267
277
|
static ɵfac: i0.ɵɵFactoryDeclaration<GroupsService, never>;
|
|
268
278
|
static ɵprov: i0.ɵɵInjectableDeclaration<GroupsService>;
|
|
269
279
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ieeesa-npm/groups",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^16.1.0",
|
|
6
6
|
"@angular/core": "^16.1.0",
|
|
7
|
-
"@ieeesa-npm/presentation": "^0.8.
|
|
8
|
-
"@ieeesa-npm/shared-styles": "^0.
|
|
9
|
-
"@ieeesa-npm/utility": "^0.7.
|
|
7
|
+
"@ieeesa-npm/presentation": "^0.8.6",
|
|
8
|
+
"@ieeesa-npm/shared-styles": "^0.2.0",
|
|
9
|
+
"@ieeesa-npm/utility": "^0.7.8"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"tslib": "^2.3.0"
|