@ieeesa-npm/groups 0.14.6 → 0.15.0

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.
@@ -1,8 +1,9 @@
1
1
  import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { Subject } from 'rxjs';
4
- import { AlertType, AlertsService, GlobalErrorHandlerService } from '@ieeesa-npm/utility';
4
+ import { AlertsService, GlobalErrorHandlerService } from '@ieeesa-npm/utility';
5
5
  import { FormGrid, AlignType, CheckboxOption, SelectOption, FormModel, FieldConfig, AutoCompleteOption, DynamicFormComponent } from '@ieeesa-npm/presentation';
6
+ import { AlertType } from '@ieeesa-npm/models';
6
7
  import { GroupsService } from '../../services/groups.service';
7
8
  import { AddOrEditUserIndividualRosterPayload, AddOrEditUserPayload } from '../../models/add-or-edit-user-group.model';
8
9
  import { UserInfo } from '../../models/user-info.model';
@@ -1,11 +1,12 @@
1
1
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { FormGrid, FormModel, SelectOption, AlignType, SlideToggleOption, FieldConfig, DynamicFormComponent } from '@ieeesa-npm/presentation';
4
- import { AlertsService, AlertType, GlobalErrorHandlerService } from '@ieeesa-npm/utility';
4
+ import { AlertsService, GlobalErrorHandlerService } from '@ieeesa-npm/utility';
5
5
  import { GroupsService } from '../../services/groups.service';
6
6
  import { HttpErrorResponse } from '@angular/common/http';
7
7
  import { Subject } from 'rxjs';
8
8
  import { GroupInfo } from '../../models/group-info.model';
9
+ import { AlertType } from '@ieeesa-npm/models';
9
10
  import { GroupFunctionType } from '../../models/group-function-type.model';
10
11
  import { ParentGroupsInfo } from '../../models/parent-groups-info.model';
11
12
  import * as i0 from "@angular/core";
@@ -62,11 +63,7 @@ export declare class CreateGroupComponent implements OnInit, OnDestroy {
62
63
  };
63
64
  };
64
65
  characterLimit: {
65
- character500: number; /**
66
- * Initialize the create group form group array and component.
67
- * @return -returns nothing
68
- * @memberof CreateGroupComponent
69
- */
66
+ character500: number;
70
67
  character15: number;
71
68
  character1500: number;
72
69
  character2000: number;
@@ -1,5 +1,5 @@
1
1
  import { ElementRef, EventEmitter, OnInit, AfterViewInit, OnDestroy } from '@angular/core';
2
- import { Menu, IconButton } from '@ieeesa-npm/presentation';
2
+ import { Menu, IconButton, BreakpointObserverService } from '@ieeesa-npm/presentation';
3
3
  import { CollectionViewer, SelectionChange, DataSource } from '@angular/cdk/collections';
4
4
  import { FlatTreeControl } from '@angular/cdk/tree';
5
5
  import { BehaviorSubject, Observable, Subject } from 'rxjs';
@@ -10,7 +10,6 @@ import { GroupsService } from '../../services/groups.service';
10
10
  import { GroupFunctionType } from '../../models/group-function-type.model';
11
11
  import { PermissionType } from '../../models/permission-type.model';
12
12
  import { GroupPermission } from '../../models/group-permissions.model';
13
- import { BreakpointObserverService } from '@ieeesa-npm/utility';
14
13
  import * as i0 from "@angular/core";
15
14
  /**
16
15
  * Dynamic Flat node creates a node structure
@@ -3,7 +3,8 @@ import { Subject } from 'rxjs';
3
3
  import { Sort } from '@angular/material/sort';
4
4
  import { MatDialog } from '@angular/material/dialog';
5
5
  import { TableColumnSchema, TableActions, AlignType, ChipOption, CheckboxOption, FiltersAndOptions } from '@ieeesa-npm/presentation';
6
- import { AlertType, AlertsService, GlobalErrorHandlerService } from '@ieeesa-npm/utility';
6
+ import { AlertsService, GlobalErrorHandlerService } from '@ieeesa-npm/utility';
7
+ import { AlertType } from '@ieeesa-npm/models';
7
8
  import { GroupsService } from '../../services/groups.service';
8
9
  import { User, LoggedInUserInfo } from '../../models/user.model';
9
10
  import { GroupUserInfo } from '../../models/group-user-info.model';
@@ -4,9 +4,10 @@ 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, SearchType } from '@ieeesa-npm/presentation';
7
+ import { SelectOption, IconButton, AlignType, SearchType, BreakpointObserverService } from '@ieeesa-npm/presentation';
8
8
  import { GroupType, GroupTypeConfigValue } from './models/group-types.model';
9
- import { AlertType, BreakpointObserverService, AlertsService, GlobalErrorHandlerService } from '@ieeesa-npm/utility';
9
+ import { AlertsService, GlobalErrorHandlerService } from '@ieeesa-npm/utility';
10
+ import { AlertType } from '@ieeesa-npm/models';
10
11
  import { GroupFunctionType } from './models/group-function-type.model';
11
12
  import { GetGroupsPayload } from './models/view-group.model';
12
13
  import { EditGroupAndParentInfo } from './models/edit-group.model';
@@ -7,7 +7,6 @@ import { DeleteGroupPayload } from '../models/delete-group.model';
7
7
  import { GroupInfo } from '../models/group-info.model';
8
8
  import { SearchUsersPayload, FilterUsersPayload, GetGroupUsersResponse, User, LoggedInUserInfo } from '../models/user.model';
9
9
  import { Role } from '../models/role.model';
10
- import { CheckboxOption } from '@ieeesa-npm/presentation';
11
10
  import { EditGroupPayload } from '../models/edit-group.model';
12
11
  import { GroupFunctionType } from '../models/group-function-type.model';
13
12
  import { RosterFunctionType } from '../models/roster-function-type.model';
@@ -18,6 +17,7 @@ import { GetUserDetailsPayload, SearchUserByEmailResponse } from '../models/add-
18
17
  import { OrganizationRequestPayload, OrganizationResponse } from '../models/organization.model';
19
18
  import { ClassificationResponse } from '../models/classification.model';
20
19
  import { GroupRosterType } from '../models/roster-type.model';
20
+ import { CheckboxOption } from '@ieeesa-npm/models';
21
21
  import { FormControlStatus } from '@angular/forms';
22
22
  import { GroupPermission, UserPermission } from '../models/group-permissions.model';
23
23
  import { PermissionType } from '../models/permission-type.model';
@@ -44,12 +44,6 @@ export declare class GroupsService {
44
44
  "1005": string;
45
45
  "1006": string;
46
46
  "1007": string;
47
- /**
48
- * Sets selected group info.
49
- * @param {(GroupInfo | undefined)} selectedGroupInfo -selected group info.
50
- * @param {(GroupInfo | undefined)} [selectedGroupParentInfo] -selected parent group info.
51
- * @memberof GroupsService
52
- */
53
47
  "1008": string;
54
48
  "1009": string;
55
49
  "1010": string;
@@ -63,24 +57,22 @@ export declare class GroupsService {
63
57
  "1018": string;
64
58
  "1019": string;
65
59
  "1020": string;
66
- "1021": string; /**
67
- * Sets group function type.
68
- * @param {GroupFunctionType} groupFunctionType -group function type.
69
- * @memberof GroupsService
70
- */
60
+ "1021": string;
71
61
  "1022": string;
72
62
  "1023": string;
73
63
  "1024": string;
74
64
  "1025": string;
75
- "1026": string; /**
76
- * Returns group function type.
77
- * @return {GroupFunctionType} -group function type.
78
- * @memberof GroupsService
79
- */
65
+ "1026": string;
80
66
  "1027": string;
81
67
  "1028": string;
82
68
  "1029": string;
83
69
  "1030": string;
70
+ /**
71
+ * Gets the group users for the given group id.
72
+ * @param {string} groupId
73
+ * @return {Observable<GetGroupUsersResponse>}
74
+ * @memberof GroupsService
75
+ */
84
76
  "1031": string;
85
77
  "1032": string;
86
78
  "1033": string;
@@ -103,7 +95,12 @@ export declare class GroupsService {
103
95
  "2018": string;
104
96
  "2019": string;
105
97
  "2020": string;
106
- "2021": string;
98
+ "2021": string; /**
99
+ * Gets the group users based on searched name or email
100
+ * @param {SearchUsersPayload} payload
101
+ * @return {Observable<GetGroupUsersResponse>}
102
+ * @memberof GroupsService
103
+ */
107
104
  "2022": string;
108
105
  "2023": string;
109
106
  "2024": string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/groups",
3
- "version": "0.14.6",
3
+ "version": "0.15.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0"
package/public-api.d.ts CHANGED
@@ -9,7 +9,6 @@ export * from './lib/models/group-info.model';
9
9
  export * from './lib/models/group-types.model';
10
10
  export * from './lib/models/view-group.model';
11
11
  export * from './lib/models/edit-group.model';
12
- export * from './lib/models/form-status.model';
13
12
  export * from './lib/models/delete-group.model';
14
13
  export * from './lib/models/group-user-info.model';
15
14
  export * from './lib/models/add-or-edit-user-group.model';
@@ -1,7 +0,0 @@
1
- /* eslint-disable no-unused-vars */
2
- export var FormStatus;
3
- (function (FormStatus) {
4
- FormStatus["VALID"] = "VALID";
5
- FormStatus["INVALID"] = "INVALID";
6
- })(FormStatus || (FormStatus = {}));
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1zdGF0dXMubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9ncm91cHMvc3JjL2xpYi9tb2RlbHMvZm9ybS1zdGF0dXMubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsbUNBQW1DO0FBQ25DLE1BQU0sQ0FBTixJQUFZLFVBR1g7QUFIRCxXQUFZLFVBQVU7SUFDcEIsNkJBQWUsQ0FBQTtJQUNmLGlDQUFtQixDQUFBO0FBQ3JCLENBQUMsRUFIVyxVQUFVLEtBQVYsVUFBVSxRQUdyQiIsInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIG5vLXVudXNlZC12YXJzICovXHJcbmV4cG9ydCBlbnVtIEZvcm1TdGF0dXMge1xyXG4gIFZBTElEID0gXCJWQUxJRFwiLFxyXG4gIElOVkFMSUQgPSBcIklOVkFMSURcIixcclxufSJdfQ==
@@ -1,4 +0,0 @@
1
- export declare enum FormStatus {
2
- VALID = "VALID",
3
- INVALID = "INVALID"
4
- }