@ieeesa-npm/tenants 0.4.1 → 0.4.2
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 +0 -64
- package/esm2022/lib/assets/tenant-validations.mjs +1 -5
- package/esm2022/lib/components/view-tenant-details/view-tenant-details.component.mjs +3 -27
- package/esm2022/lib/components/view-tenant-group-types/view-tenant-group-types.component.mjs +19 -39
- package/esm2022/lib/models/tenant-function-type.model.mjs +1 -3
- package/esm2022/lib/models/view-tenant-group-types.model.mjs +1 -3
- package/esm2022/lib/services/tenant-applications.service.mjs +2 -78
- package/esm2022/public-api.mjs +1 -4
- package/fesm2022/ieeesa-npm-tenants.mjs +25 -701
- package/fesm2022/ieeesa-npm-tenants.mjs.map +1 -1
- package/lib/assets/tenant-validations.d.ts +0 -4
- package/lib/components/tenant-basic-details/tenant-basic-details.component.d.ts +0 -64
- package/lib/components/view-tenant-details/view-tenant-details.component.d.ts +0 -7
- package/lib/components/view-tenant-group-types/view-tenant-group-types.component.d.ts +0 -5
- package/lib/models/tenant-function-type.model.d.ts +1 -3
- package/lib/models/view-tenant-group-types.model.d.ts +1 -3
- package/lib/services/tenant-applications.service.d.ts +7 -48
- package/package.json +1 -1
- package/public-api.d.ts +0 -3
- package/esm2022/lib/components/create-modify-group-type/create-modify-group-type.component.mjs +0 -477
- package/esm2022/lib/models/create-group-type-config.model.mjs +0 -22
- package/esm2022/lib/models/create-group-type.model.mjs +0 -2
- package/lib/components/create-modify-group-type/create-modify-group-type.component.d.ts +0 -129
- package/lib/models/create-group-type-config.model.d.ts +0 -16
- package/lib/models/create-group-type.model.d.ts +0 -49
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-unused-vars */
|
|
2
|
-
export var Settings;
|
|
3
|
-
(function (Settings) {
|
|
4
|
-
Settings["ALLOW_SUB_GROUPS"] = "Allow Sub-Groups";
|
|
5
|
-
Settings["ALLOW_ROSTERS"] = "Rosters Enabled";
|
|
6
|
-
Settings["ALLOW_ALTERNATE_VOTING"] = "Allow Alternate Voting";
|
|
7
|
-
Settings["HAS_CLASSIFICATION"] = "Has Classification";
|
|
8
|
-
Settings["ALLOW_EDIT"] = "Allow Edit";
|
|
9
|
-
Settings["ALLOW_DELETE"] = "Allow Delete";
|
|
10
|
-
})(Settings || (Settings = {}));
|
|
11
|
-
/* eslint-disable no-unused-vars */
|
|
12
|
-
export var VotingMemberLevelRole;
|
|
13
|
-
(function (VotingMemberLevelRole) {
|
|
14
|
-
VotingMemberLevelRole["VOTING_MEMBER_PRINCIPAL"] = "Voting Member (Principal)";
|
|
15
|
-
VotingMemberLevelRole["VOTING_MEMBER_ALTERNATE"] = "Voting Member (Alternate)";
|
|
16
|
-
})(VotingMemberLevelRole || (VotingMemberLevelRole = {}));
|
|
17
|
-
export var RosterTypeLOVCode;
|
|
18
|
-
(function (RosterTypeLOVCode) {
|
|
19
|
-
RosterTypeLOVCode["INDIVIDUAL"] = "IND";
|
|
20
|
-
RosterTypeLOVCode["ENTITY"] = "EN";
|
|
21
|
-
})(RosterTypeLOVCode || (RosterTypeLOVCode = {}));
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLWdyb3VwLXR5cGUtY29uZmlnLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdGVuYW50cy9zcmMvbGliL21vZGVscy9jcmVhdGUtZ3JvdXAtdHlwZS1jb25maWcubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsbUNBQW1DO0FBQ25DLE1BQU0sQ0FBTixJQUFZLFFBT1g7QUFQRCxXQUFZLFFBQVE7SUFDbEIsaURBQXFDLENBQUE7SUFDckMsNkNBQWlDLENBQUE7SUFDakMsNkRBQWlELENBQUE7SUFDakQscURBQXlDLENBQUE7SUFD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bjtcclxuICAgIGFsbG93QWx0ZXJuYXRlVm90aW5nOiBib29sZWFuO1xyXG4gICAgYWxsb3dEZWxldGU6IGJvb2xlYW47XHJcbiAgICBoYXNDbGFzc2lmaWNhdGlvbjogYm9vbGVhbjtcclxuICAgIGFsbG93ZWRHcm91cFR5cGU6IHN0cmluZ1tdO1xyXG4gICAgaXNSb290R3JvdXA6IGJvb2xlYW47XHJcbiAgfTtcclxuICBoaWVyYXJjaHk/OiBudW1iZXI7XHJcbn1cclxuZXhwb3J0IGludGVyZmFjZSBDcmVhdGVkT3JNb2RpZmllZEdyb3VwVHlwZUluZm8ge1xyXG4gIGFwcElkOiBzdHJpbmc7XHJcbiAgcm9sZXM6IHtcclxuICAgIHJvbGVJZDogc3RyaW5nO1xyXG4gIH1bXTtcclxuICBjb25maWdGaWVsZE5hbWU6IHN0cmluZztcclxuICBjb25maWdGaWVsZFZhbHVlOiBDb25maWdGaWVsZFZhbHVlO1xyXG59XHJcbmV4cG9ydCBpbnRlcmZhY2UgQ3JlYXRlR3JvdXBUeXBlUmVxdWVzdFBheWxvYWQge1xyXG4gIHBheWxvYWQ6IHtcclxuICAgIGFwcElkOiBzdHJpbmc7XHJcbiAgICByb2xlczoge1xyXG4gICAgICByb2xlSWQ6IHN0cmluZztcclxuICAgIH1bXTtcclxuICAgIGNvbmZpZ0ZpZWxkTmFtZTogc3RyaW5nO1xyXG4gICAgY29uZmlnRmllbGRWYWx1ZTogc3RyaW5nO1xyXG4gIH07XHJcbn1cclxuZXhwb3J0IGludGVyZmFjZSBDcmVhdGVHcm91cFR5cGVSZXNwb25zZSB7XHJcbiAgc3RhdHVzOiBib29sZWFuO1xyXG4gIG1lc3NhZ2U6IHN0cmluZztcclxuICBib2R5Pzogc3RyaW5nIHwgbnVsbCB8IHsgZXJyb3JDb2Rlczogc3RyaW5nW10gfTtcclxufVxyXG4iXX0=
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { ComponentRef, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { Subject } from 'rxjs';
|
|
4
|
-
import { SharedService, FormUtilityService } from '@ieeesa-npm/shared';
|
|
5
|
-
import { AlignType, CheckboxOption, FieldConfig, FormGrid, FormModel, RadioOption, DynamicFormComponent } from '@ieeesa-npm/presentation';
|
|
6
|
-
import { TenantApplicationsService } from '../../services/tenant-applications.service';
|
|
7
|
-
import { TenantFunctionType } from '../../models/tenant-function-type.model';
|
|
8
|
-
import { ViewGroupTypeResponse } from '../../models/view-tenant-group-types.model';
|
|
9
|
-
import { CreatedOrModifiedGroupTypeInfo } from '../../models/create-group-type.model';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
/**
|
|
12
|
-
* CreateModifyGroupTypeComponent uses DynamicFormComponent to build create add group type form or edit group type form and implement the functionalities of submission of form and handling success and error scenarios.
|
|
13
|
-
* @class CreateModifyGroupTypeComponent
|
|
14
|
-
* @implements {OnInit}
|
|
15
|
-
* @implements {OnDestroy}
|
|
16
|
-
*/
|
|
17
|
-
export declare class CreateModifyGroupTypeComponent implements OnInit, OnDestroy {
|
|
18
|
-
private tenantAppService;
|
|
19
|
-
private sharedService;
|
|
20
|
-
private renderer;
|
|
21
|
-
private elementRef;
|
|
22
|
-
private formUtilityService;
|
|
23
|
-
destroy$: Subject<boolean>;
|
|
24
|
-
constants: any;
|
|
25
|
-
createGroupTypeScreenTexts: any;
|
|
26
|
-
leftButtonLabel: any;
|
|
27
|
-
rightButtonLabel: any;
|
|
28
|
-
colWidth: FormGrid;
|
|
29
|
-
createGroupTypeFormGroup: FormModel;
|
|
30
|
-
createModifyGroupTypeFormGroupRef: FormGroup;
|
|
31
|
-
actionButtonAlign: AlignType;
|
|
32
|
-
tenantFunctionType: TenantFunctionType;
|
|
33
|
-
isRootGroupOptions: {
|
|
34
|
-
id: number;
|
|
35
|
-
label: any;
|
|
36
|
-
checked: boolean;
|
|
37
|
-
}[];
|
|
38
|
-
rosterTypeOptions: RadioOption[];
|
|
39
|
-
settingOptions: CheckboxOption[];
|
|
40
|
-
officerRolesOptions: CheckboxOption[];
|
|
41
|
-
memberLevelOptions: CheckboxOption[];
|
|
42
|
-
allowedSubGroupTypesOptions: CheckboxOption[];
|
|
43
|
-
allowedSubGroupTypesFieldConfig: FieldConfig;
|
|
44
|
-
appId: string;
|
|
45
|
-
groupTypeDetails: ViewGroupTypeResponse;
|
|
46
|
-
selectedGroupTypeInfo: CreatedOrModifiedGroupTypeInfo;
|
|
47
|
-
dynamicFormComponent: DynamicFormComponent;
|
|
48
|
-
dynamicFormComponentViewRef: ViewContainerRef;
|
|
49
|
-
componentRef: ComponentRef<any>;
|
|
50
|
-
/**
|
|
51
|
-
* Event emitter for form submission response.
|
|
52
|
-
* @memberof CreateModifyGroupTypeComponent
|
|
53
|
-
*/
|
|
54
|
-
submitFormResponse: EventEmitter<any>;
|
|
55
|
-
/**
|
|
56
|
-
* Event emitter for form cancel action.
|
|
57
|
-
* @memberof CreateModifyGroupTypeComponent
|
|
58
|
-
*/
|
|
59
|
-
formCancel: EventEmitter<any>;
|
|
60
|
-
constructor(tenantAppService: TenantApplicationsService, sharedService: SharedService, renderer: Renderer2, elementRef: ElementRef, formUtilityService: FormUtilityService);
|
|
61
|
-
/**
|
|
62
|
-
* Sets appId, tenantFunctionType and calls getGroupTypes() & getRosterTypes() to get group and roster types.
|
|
63
|
-
* @memberof CreateModifyGroupTypeComponent
|
|
64
|
-
*/
|
|
65
|
-
ngOnInit(): void;
|
|
66
|
-
/**
|
|
67
|
-
* Gets the list of roster types and updates the form control.
|
|
68
|
-
* @memberof CreateModifyGroupTypeComponent
|
|
69
|
-
*/
|
|
70
|
-
getRosterTypes(): void;
|
|
71
|
-
/**
|
|
72
|
-
* Gets the list of settings and updates the form control.
|
|
73
|
-
* @memberof CreateModifyGroupTypeComponent
|
|
74
|
-
*/
|
|
75
|
-
getSettings(): void;
|
|
76
|
-
/**
|
|
77
|
-
* Gets the list of roles and updates the form control.
|
|
78
|
-
* @memberof CreateModifyGroupTypeComponent
|
|
79
|
-
*/
|
|
80
|
-
getRoles(): void;
|
|
81
|
-
/**
|
|
82
|
-
* Gets and filters non SYSTEM_USER group types, constructs allowed sub-group types options and form field config.
|
|
83
|
-
* @memberof CreateModifyGroupTypeComponent
|
|
84
|
-
*/
|
|
85
|
-
getGroupTypes(): void;
|
|
86
|
-
/**
|
|
87
|
-
* Initialize the create/edit group type form group array.
|
|
88
|
-
* @param {*} [formValue]
|
|
89
|
-
* @memberof CreateModifyGroupTypeComponent
|
|
90
|
-
*/
|
|
91
|
-
initializeCreateGroupTypeFormGroup(): void;
|
|
92
|
-
/**
|
|
93
|
-
* Add or removes allowed sub groups form control (checkbox group control and options) as when allow sub group selection and updates the form state.
|
|
94
|
-
* @param {*} selectedCheckbox
|
|
95
|
-
* @memberof CreateModifyGroupTypeComponent
|
|
96
|
-
*/
|
|
97
|
-
onCheckboxSelectionChange(selectedCheckbox: CheckboxOption): void;
|
|
98
|
-
/**
|
|
99
|
-
* Sets create/modify group type reactive form group reference.
|
|
100
|
-
* @param {FormGroup[]} form -The form group array containing the form to be referenced.
|
|
101
|
-
* @memberof CreateModifyGroupTypeComponent
|
|
102
|
-
*/
|
|
103
|
-
getCreateModifyGroupTypeFormGroupRef(form: FormGroup[]): void;
|
|
104
|
-
/**
|
|
105
|
-
* Find the provided setting name in setting option and return the boolean value.
|
|
106
|
-
* @param {string} settingName
|
|
107
|
-
* @return {*} {boolean}
|
|
108
|
-
* @memberof CreateModifyGroupTypeComponent
|
|
109
|
-
*/
|
|
110
|
-
isSettingSelectedByName(settingName: string): boolean;
|
|
111
|
-
/**
|
|
112
|
-
* Creates a new group type on form submission and the form is valid.
|
|
113
|
-
* @param {FormGroup[]} form
|
|
114
|
-
* @memberof CreateModifyGroupTypeComponent
|
|
115
|
-
*/
|
|
116
|
-
onCreateModifyGroupTypeFormSubmit(form: FormGroup[]): void;
|
|
117
|
-
/**
|
|
118
|
-
* Emits form cancel event.
|
|
119
|
-
* @memberof CreateModifyGroupTypeComponent
|
|
120
|
-
*/
|
|
121
|
-
onFormCancel(): void;
|
|
122
|
-
/**
|
|
123
|
-
* Implementation of ngOnDestroy lifecycle hook method to unsubscribe the open observable subscriptions.
|
|
124
|
-
* @memberof CreateModifyGroupTypeComponent
|
|
125
|
-
*/
|
|
126
|
-
ngOnDestroy(): void;
|
|
127
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CreateModifyGroupTypeComponent, never>;
|
|
128
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CreateModifyGroupTypeComponent, "ieeesa-create-modify-group-type", never, {}, { "submitFormResponse": "submitFormResponse"; "formCancel": "formCancel"; }, never, never, true, never>;
|
|
129
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare enum Settings {
|
|
2
|
-
ALLOW_SUB_GROUPS = "Allow Sub-Groups",
|
|
3
|
-
ALLOW_ROSTERS = "Rosters Enabled",
|
|
4
|
-
ALLOW_ALTERNATE_VOTING = "Allow Alternate Voting",
|
|
5
|
-
HAS_CLASSIFICATION = "Has Classification",
|
|
6
|
-
ALLOW_EDIT = "Allow Edit",
|
|
7
|
-
ALLOW_DELETE = "Allow Delete"
|
|
8
|
-
}
|
|
9
|
-
export declare enum VotingMemberLevelRole {
|
|
10
|
-
VOTING_MEMBER_PRINCIPAL = "Voting Member (Principal)",
|
|
11
|
-
VOTING_MEMBER_ALTERNATE = "Voting Member (Alternate)"
|
|
12
|
-
}
|
|
13
|
-
export declare enum RosterTypeLOVCode {
|
|
14
|
-
INDIVIDUAL = "IND",
|
|
15
|
-
ENTITY = "EN"
|
|
16
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { LOV } from '@ieeesa-npm/shared';
|
|
2
|
-
export interface GetRosterTypeOrSettingsResponse {
|
|
3
|
-
status: boolean;
|
|
4
|
-
message: string;
|
|
5
|
-
body?: LOV[] | null | {
|
|
6
|
-
errorCodes: string[];
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
export interface ConfigFieldValue {
|
|
10
|
-
name: string;
|
|
11
|
-
description: string;
|
|
12
|
-
businessRule: {
|
|
13
|
-
rosterType: string;
|
|
14
|
-
allowEdit: boolean;
|
|
15
|
-
allowRoster: boolean;
|
|
16
|
-
allowSubGroup: boolean;
|
|
17
|
-
allowAlternateVoting: boolean;
|
|
18
|
-
allowDelete: boolean;
|
|
19
|
-
hasClassification: boolean;
|
|
20
|
-
allowedGroupType: string[];
|
|
21
|
-
isRootGroup: boolean;
|
|
22
|
-
};
|
|
23
|
-
hierarchy?: number;
|
|
24
|
-
}
|
|
25
|
-
export interface CreatedOrModifiedGroupTypeInfo {
|
|
26
|
-
appId: string;
|
|
27
|
-
roles: {
|
|
28
|
-
roleId: string;
|
|
29
|
-
}[];
|
|
30
|
-
configFieldName: string;
|
|
31
|
-
configFieldValue: ConfigFieldValue;
|
|
32
|
-
}
|
|
33
|
-
export interface CreateGroupTypeRequestPayload {
|
|
34
|
-
payload: {
|
|
35
|
-
appId: string;
|
|
36
|
-
roles: {
|
|
37
|
-
roleId: string;
|
|
38
|
-
}[];
|
|
39
|
-
configFieldName: string;
|
|
40
|
-
configFieldValue: string;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
export interface CreateGroupTypeResponse {
|
|
44
|
-
status: boolean;
|
|
45
|
-
message: string;
|
|
46
|
-
body?: string | null | {
|
|
47
|
-
errorCodes: string[];
|
|
48
|
-
};
|
|
49
|
-
}
|