@ieeesa-npm/groups 0.1.1 → 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.
@@ -51,6 +51,7 @@ export declare class GroupsComponent implements OnInit, OnDestroy {
51
51
  createGroupText: {
52
52
  heading: string;
53
53
  label: {
54
+ parentGroup: string;
54
55
  groupType: string;
55
56
  groupName: string;
56
57
  shortName: string;
@@ -58,6 +59,7 @@ export declare class GroupsComponent implements OnInit, OnDestroy {
58
59
  rightButtonLabel: string;
59
60
  leftButtonLabel: string;
60
61
  ariaLabel: {
62
+ parentGroup: string;
61
63
  groupType: string;
62
64
  groupName: string;
63
65
  shortName: string;
@@ -111,11 +113,12 @@ export declare class GroupsComponent implements OnInit, OnDestroy {
111
113
  */
112
114
  ngOnInit(): void;
113
115
  /**
114
- * Sets the dialog options for create group modal and calls openModal method.
115
- * @return -returns nothing
116
- * @memberof GroupsComponent
117
- */
118
- openCreateGroupForm(): void;
116
+ * Sets the dialog options for create group modal and calls openModal method.
117
+ * @param {GroupInfo} [parentGroupInfo] -An optional parameter. Parent group info to be passed for create child group.
118
+ * @return -returns nothing
119
+ * @memberof GroupsComponent
120
+ */
121
+ openCreateGroupForm(parentGroupInfo?: GroupInfo): void;
119
122
  /**
120
123
  * Opens modal component with for received params and handles form submission success and errors.
121
124
  * @param {*} dialogOptions
@@ -4,7 +4,7 @@ export interface CreateGroupPayload {
4
4
  groupShortName: string;
5
5
  groupType: string;
6
6
  groupDesc?: string;
7
- groupParentId: null;
7
+ groupParentId: string | null;
8
8
  };
9
9
  }
10
10
  export interface CreateGroupResponse {
@@ -1,9 +1,10 @@
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';
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
- "1009": string;
22
- "1008": string;
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.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.3.7",
8
- "@ieeesa-npm/shared-styles": "^0.0.6",
9
- "@ieeesa-npm/utility": "^0.2.9"
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"