@ieeesa-npm/groups 0.1.2 → 0.1.3
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 +14 -2
- package/esm2022/lib/assets/form-validations.mjs +4 -4
- package/esm2022/lib/components/create-group/create-group.component.mjs +42 -10
- package/esm2022/lib/groups.component.mjs +10 -8
- package/esm2022/lib/models/create-group.model.mjs +1 -1
- package/esm2022/lib/services/groups.service.mjs +25 -9
- package/fesm2022/ieeesa-npm-groups.mjs +87 -25
- package/fesm2022/ieeesa-npm-groups.mjs.map +1 -1
- package/lib/components/create-group/create-group.component.d.ts +14 -1
- package/lib/groups.component.d.ts +8 -5
- package/lib/models/create-group.model.d.ts +1 -1
- package/lib/services/groups.service.d.ts +31 -7
- package/package.json +4 -4
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import { CreateGroupPayload, CreateGroupResponse } from
|
|
3
|
-
import { GroupTypeResponse } from
|
|
4
|
-
import { AlertsService, HttpService } from
|
|
5
|
-
import { GetGroupResponse, GetGroupsPayload } from
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { CreateGroupPayload, CreateGroupResponse } from "../models/create-group.model";
|
|
3
|
+
import { GroupTypeResponse } from "../models/group-types.model";
|
|
4
|
+
import { AlertsService, HttpService } from "@ieeesa-npm/utility";
|
|
5
|
+
import { GetGroupResponse, GetGroupsPayload } from "../models/view-group.model";
|
|
6
6
|
import { DeleteGroupPayload } from '../models/delete-group.model';
|
|
7
|
+
import { GroupInfo } from "../models/group-info.model";
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
9
10
|
* Groups service is an abstract layer and responsible for managing groups REST API calls.
|
|
@@ -15,14 +16,25 @@ export declare class GroupsService {
|
|
|
15
16
|
groupsText: {
|
|
16
17
|
"1001": string;
|
|
17
18
|
"1002": string;
|
|
19
|
+
"1003": string;
|
|
20
|
+
"1004": string;
|
|
21
|
+
"1005": string;
|
|
22
|
+
"1006": string;
|
|
23
|
+
"1008": string;
|
|
24
|
+
"1009": string;
|
|
18
25
|
"1010": string;
|
|
19
26
|
"1011": string;
|
|
20
27
|
"1012": string;
|
|
21
|
-
"
|
|
22
|
-
"
|
|
28
|
+
"1013": string;
|
|
29
|
+
"1014": string;
|
|
30
|
+
"1015": string;
|
|
31
|
+
"1016": string;
|
|
32
|
+
"1017": string;
|
|
33
|
+
"1018": string;
|
|
23
34
|
};
|
|
24
35
|
apiBaseUrl: string;
|
|
25
36
|
userPermission: any;
|
|
37
|
+
selectedGroupInfo: GroupInfo | undefined;
|
|
26
38
|
constructor(httpService: HttpService, alertService: AlertsService);
|
|
27
39
|
setAppConfig(apiBaseUrl: string, userPermission: any): void;
|
|
28
40
|
/**
|
|
@@ -59,6 +71,18 @@ export declare class GroupsService {
|
|
|
59
71
|
* @memberof GroupsService
|
|
60
72
|
*/
|
|
61
73
|
parseErrorMessage(errorCodes: string[]): string[];
|
|
74
|
+
/**
|
|
75
|
+
* Sets selected group info.
|
|
76
|
+
* @param {(GroupInfo | undefined)} selectedGroupInfo -selected group info.
|
|
77
|
+
* @memberof GroupsService
|
|
78
|
+
*/
|
|
79
|
+
setSelectedGroupInfo(selectedGroupInfo: GroupInfo | undefined): void;
|
|
80
|
+
/**
|
|
81
|
+
* Returns the selected group info.
|
|
82
|
+
* @return {(GroupInfo | undefined)} -group info.
|
|
83
|
+
* @memberof GroupsService
|
|
84
|
+
*/
|
|
85
|
+
getSelectedGroupInfo(): GroupInfo | undefined;
|
|
62
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<GroupsService, never>;
|
|
63
87
|
static ɵprov: i0.ɵɵInjectableDeclaration<GroupsService>;
|
|
64
88
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ieeesa-npm/groups",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^16.1.0",
|
|
6
6
|
"@angular/core": "^16.1.0",
|
|
7
|
-
"@ieeesa-npm/presentation": "^0.
|
|
8
|
-
"@ieeesa-npm/shared-styles": "^0.0.
|
|
9
|
-
"@ieeesa-npm/utility": "^0.3.
|
|
7
|
+
"@ieeesa-npm/presentation": "^0.4.0",
|
|
8
|
+
"@ieeesa-npm/shared-styles": "^0.0.8",
|
|
9
|
+
"@ieeesa-npm/utility": "^0.3.2"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"tslib": "^2.3.0"
|