@ieeesa-npm/groups 0.6.9 → 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 -1
- package/esm2022/lib/components/add-user-roster/add-user-roster.component.mjs +6 -6
- package/esm2022/lib/components/create-group/create-group.component.mjs +5 -5
- package/esm2022/lib/components/edit-user-roles/edit-user-roles.component.mjs +6 -6
- package/esm2022/lib/components/tree-view/tree-view.component.mjs +8 -8
- package/esm2022/lib/components/view-roster/view-roster.component.mjs +17 -12
- 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 +102 -46
- package/fesm2022/ieeesa-npm-groups.mjs.map +1 -1
- package/lib/components/view-roster/view-roster.component.d.ts +1 -0
- package/lib/groups.component.d.ts +4 -1
- package/lib/services/groups.service.d.ts +15 -0
- package/package.json +4 -4
|
@@ -34,6 +34,7 @@ export declare class ViewRosterComponent implements AfterViewInit, OnDestroy {
|
|
|
34
34
|
rosterActions: TableActions;
|
|
35
35
|
defaultSortedColumn: string;
|
|
36
36
|
defaultColumnSortDirection: SortDirection;
|
|
37
|
+
searchTerm: string;
|
|
37
38
|
constructor(dialog: MatDialog, groupService: GroupsService, alertService: AlertsService, cdr: ChangeDetectorRef, globalErrorHandlerService: GlobalErrorHandlerService);
|
|
38
39
|
/**
|
|
39
40
|
* Show add new user success message when canShowMessage is set true
|
|
@@ -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;
|
|
@@ -56,6 +62,8 @@ export declare class GroupsService {
|
|
|
56
62
|
"1030": string;
|
|
57
63
|
"1031": string;
|
|
58
64
|
"1032": string;
|
|
65
|
+
"1033": string;
|
|
66
|
+
"1034": string;
|
|
59
67
|
"2001": string;
|
|
60
68
|
"2002": string;
|
|
61
69
|
"2010": string;
|
|
@@ -259,6 +267,13 @@ export declare class GroupsService {
|
|
|
259
267
|
* @memberof GroupsService
|
|
260
268
|
*/
|
|
261
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>;
|
|
262
277
|
static ɵfac: i0.ɵɵFactoryDeclaration<GroupsService, never>;
|
|
263
278
|
static ɵprov: i0.ɵɵInjectableDeclaration<GroupsService>;
|
|
264
279
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ieeesa-npm/groups",
|
|
3
|
-
"version": "0.
|
|
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"
|