@ieeesa-npm/groups 0.8.4 → 0.8.5
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 +4 -15
- package/esm2022/lib/assets/form-validations.mjs +1 -3
- package/esm2022/lib/components/add-user-roster/add-user-roster.component.mjs +85 -187
- package/esm2022/lib/components/view-roster/view-roster.component.mjs +3 -3
- package/esm2022/lib/models/add-or-edit-user-group.model.mjs +1 -1
- package/fesm2022/ieeesa-npm-groups.mjs +90 -205
- package/fesm2022/ieeesa-npm-groups.mjs.map +1 -1
- package/lib/assets/form-validations.d.ts +0 -1
- package/lib/components/add-user-roster/add-user-roster.component.d.ts +2 -32
- package/lib/models/add-or-edit-user-group.model.d.ts +1 -3
- package/lib/services/groups.service.d.ts +1 -25
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
|
-
import { AlertsService,
|
|
4
|
+
import { AlertsService, GlobalErrorHandlerService } from '@ieeesa-npm/utility';
|
|
5
5
|
import { FormGrid, AlignType, CheckboxOption, SelectOption, FormModel, FieldConfig, DynamicFormComponent } from '@ieeesa-npm/presentation';
|
|
6
6
|
import { GroupsService } from '../../services/groups.service';
|
|
7
7
|
import { AddOrEditUserIndividualRosterPayload, AddOrEditUserPayload } from '../../models/add-or-edit-user-group.model';
|
|
@@ -40,7 +40,6 @@ export declare class AddUserRosterComponent implements OnInit, OnDestroy {
|
|
|
40
40
|
organizations: SelectOption[];
|
|
41
41
|
hasClassification: boolean;
|
|
42
42
|
groupRosterType: GroupRosterType;
|
|
43
|
-
isUserExist: boolean;
|
|
44
43
|
dynamicFormComponent: DynamicFormComponent;
|
|
45
44
|
submitFormResponse: EventEmitter<any>;
|
|
46
45
|
formCancel: EventEmitter<any>;
|
|
@@ -72,32 +71,11 @@ export declare class AddUserRosterComponent implements OnInit, OnDestroy {
|
|
|
72
71
|
* @memberof AddUserRosterComponent
|
|
73
72
|
*/
|
|
74
73
|
validateUserExistence(): void;
|
|
75
|
-
/**
|
|
76
|
-
* Creates add user form group and updates it with prev form values.
|
|
77
|
-
* @param {string} stringifiedAddUserFormPrevValues
|
|
78
|
-
* @memberof AddUserRosterComponent
|
|
79
|
-
*/
|
|
80
|
-
updateAddUserFormGroupValues(addUserFormValues: string): void;
|
|
81
|
-
/**
|
|
82
|
-
* Initialize the add user form group array.
|
|
83
|
-
* @param {string} [email]
|
|
84
|
-
* @memberof AddUserRosterComponent
|
|
85
|
-
*/
|
|
86
|
-
createAddUserFormGroup(email?: string): void;
|
|
87
74
|
/**
|
|
88
75
|
* Adds classification, Member Type and Representing Organization form controls while adding new user to an individual group roster.
|
|
89
|
-
* @param {{
|
|
90
|
-
* classification: SelectOption;
|
|
91
|
-
* memberType: SelectOption;
|
|
92
|
-
* representingOrg: SelectOption;
|
|
93
|
-
* }} [addUserFormGroupPrevValues]
|
|
94
76
|
* @memberof AddUserRosterComponent
|
|
95
77
|
*/
|
|
96
|
-
updateAddUserFormGroup(
|
|
97
|
-
classification: SelectOption;
|
|
98
|
-
memberType: SelectOption;
|
|
99
|
-
representingOrg: SelectOption;
|
|
100
|
-
}): void;
|
|
78
|
+
updateAddUserFormGroup(): void;
|
|
101
79
|
/**
|
|
102
80
|
* Updates the add user form group controls by adding fieldConfig at required index.
|
|
103
81
|
* @param {number} indexPosition
|
|
@@ -182,14 +160,6 @@ export declare class AddUserRosterComponent implements OnInit, OnDestroy {
|
|
|
182
160
|
* @memberof AddUserRosterComponent
|
|
183
161
|
*/
|
|
184
162
|
disableSubmitButton(): void;
|
|
185
|
-
/**
|
|
186
|
-
* Handles alerts for error, warning.
|
|
187
|
-
* @param {(string | string[])} message -error or warning message
|
|
188
|
-
* @param {AlertType} alertType
|
|
189
|
-
* @return -returns nothing
|
|
190
|
-
* @memberof AddUserRosterComponent
|
|
191
|
-
*/
|
|
192
|
-
showAlertMessage(message: string | string[], alertType: AlertType): void;
|
|
193
163
|
/**
|
|
194
164
|
* NgOnDestroy performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed.
|
|
195
165
|
* @memberof AddUserRosterComponent
|
|
@@ -7,11 +7,9 @@ export interface AddOrEditGroupUserDetailsResponse {
|
|
|
7
7
|
}
|
|
8
8
|
export interface AddOrEditUserRolePayload {
|
|
9
9
|
groupId: string;
|
|
10
|
-
userId
|
|
10
|
+
userId: string;
|
|
11
11
|
roles: string[];
|
|
12
12
|
email: string;
|
|
13
|
-
firstName?: string;
|
|
14
|
-
lastName?: string;
|
|
15
13
|
}
|
|
16
14
|
export interface AddOrEditIndividualRosterPayload extends AddOrEditUserRolePayload {
|
|
17
15
|
classification?: {
|
|
@@ -33,12 +33,6 @@ export declare class GroupsService {
|
|
|
33
33
|
alertService: AlertsService;
|
|
34
34
|
groupsText: {
|
|
35
35
|
ER1000: string;
|
|
36
|
-
/**
|
|
37
|
-
* Sets selected group info.
|
|
38
|
-
* @param {(GroupInfo | undefined)} selectedGroupInfo -selected group info.
|
|
39
|
-
* @param {(GroupInfo | undefined)} [selectedGroupParentInfo] -selected parent group info.
|
|
40
|
-
* @memberof GroupsService
|
|
41
|
-
*/
|
|
42
36
|
ER1001: string;
|
|
43
37
|
"1001": string;
|
|
44
38
|
"1002": string;
|
|
@@ -54,11 +48,7 @@ export declare class GroupsService {
|
|
|
54
48
|
"1012": string;
|
|
55
49
|
"1013": string;
|
|
56
50
|
"1014": string;
|
|
57
|
-
"1015": string;
|
|
58
|
-
* Sets group function type.
|
|
59
|
-
* @param {GroupFunctionType} groupFunctionType -group function type.
|
|
60
|
-
* @memberof GroupsService
|
|
61
|
-
*/
|
|
51
|
+
"1015": string;
|
|
62
52
|
"1016": string;
|
|
63
53
|
"1017": string;
|
|
64
54
|
"1018": string;
|
|
@@ -67,12 +57,6 @@ export declare class GroupsService {
|
|
|
67
57
|
"1021": string;
|
|
68
58
|
"1022": string;
|
|
69
59
|
"1023": string;
|
|
70
|
-
/**
|
|
71
|
-
* Gets the group users for the given group id.
|
|
72
|
-
* @param {string} groupId
|
|
73
|
-
* @return {Observable<GetGroupUsersResponse>}
|
|
74
|
-
* @memberof GroupsService
|
|
75
|
-
*/
|
|
76
60
|
"1024": string;
|
|
77
61
|
"1025": string;
|
|
78
62
|
"1026": string;
|
|
@@ -84,8 +68,6 @@ export declare class GroupsService {
|
|
|
84
68
|
"1032": string;
|
|
85
69
|
"1033": string;
|
|
86
70
|
"1034": string;
|
|
87
|
-
"1035": string;
|
|
88
|
-
"1036": string;
|
|
89
71
|
"2001": string;
|
|
90
72
|
"2002": string;
|
|
91
73
|
"2010": string;
|
|
@@ -97,12 +79,6 @@ export declare class GroupsService {
|
|
|
97
79
|
"2016": string;
|
|
98
80
|
"2017": string;
|
|
99
81
|
"2018": string;
|
|
100
|
-
/**
|
|
101
|
-
* Gets the group users based on searched name or email
|
|
102
|
-
* @param {SearchUsersPayload} payload
|
|
103
|
-
* @return {Observable<GetGroupUsersResponse>}
|
|
104
|
-
* @memberof GroupsService
|
|
105
|
-
*/
|
|
106
82
|
"2019": string;
|
|
107
83
|
"2020": string;
|
|
108
84
|
"2021": string;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ieeesa-npm/groups",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.5",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^16.1.0",
|
|
6
6
|
"@angular/core": "^16.1.0",
|
|
7
|
-
"@ieeesa-npm/presentation": "^0.9.
|
|
8
|
-
"@ieeesa-npm/shared-styles": "^0.2.
|
|
9
|
-
"@ieeesa-npm/utility": "^0.8.
|
|
7
|
+
"@ieeesa-npm/presentation": "^0.9.6",
|
|
8
|
+
"@ieeesa-npm/shared-styles": "^0.2.2",
|
|
9
|
+
"@ieeesa-npm/utility": "^0.8.6"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"tslib": "^2.3.0"
|