@ieeesa-npm/tenants 0.4.2 → 0.4.4
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/.eslintrc.json +31 -0
- package/ng-package.json +8 -0
- package/package.json +12 -25
- package/src/lib/assets/constants.json +454 -0
- package/src/lib/assets/tenant-validations.ts +18 -0
- package/src/lib/assets/tenants-mock.ts +1240 -0
- package/src/lib/components/create-modify-group-type/create-modify-group-type.component.html +15 -0
- package/src/lib/components/create-modify-group-type/create-modify-group-type.component.scss +44 -0
- package/src/lib/components/create-modify-group-type/create-modify-group-type.component.spec.ts +574 -0
- package/src/lib/components/create-modify-group-type/create-modify-group-type.component.ts +602 -0
- package/src/lib/components/create-modify-role/create-modify-role.component.html +15 -0
- package/src/lib/components/create-modify-role/create-modify-role.component.scss +83 -0
- package/src/lib/components/create-modify-role/create-modify-role.component.spec.ts +346 -0
- package/src/lib/components/create-modify-role/create-modify-role.component.ts +321 -0
- package/src/lib/components/create-tenant-application/create-tenant-application.component.html +18 -0
- package/src/lib/components/create-tenant-application/create-tenant-application.component.scss +73 -0
- package/src/lib/components/create-tenant-application/create-tenant-application.component.spec.ts +775 -0
- package/src/lib/components/create-tenant-application/create-tenant-application.component.ts +638 -0
- package/src/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.html +22 -0
- package/src/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.scss +79 -0
- package/src/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.spec.ts +716 -0
- package/src/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.ts +504 -0
- package/src/lib/components/tenant-basic-details/tenant-basic-details.component.html +44 -0
- package/src/lib/components/tenant-basic-details/tenant-basic-details.component.scss +16 -0
- package/src/lib/components/tenant-basic-details/tenant-basic-details.component.spec.ts +115 -0
- package/src/lib/components/tenant-basic-details/tenant-basic-details.component.ts +109 -0
- package/src/lib/components/view-tenant-details/view-tenant-details.component.html +195 -0
- package/src/lib/components/view-tenant-details/view-tenant-details.component.scss +163 -0
- package/src/lib/components/view-tenant-details/view-tenant-details.component.spec.ts +1221 -0
- package/src/lib/components/view-tenant-details/view-tenant-details.component.ts +876 -0
- package/src/lib/components/view-tenant-group-types/view-tenant-group-types.component.html +10 -0
- package/src/lib/components/view-tenant-group-types/view-tenant-group-types.component.scss +44 -0
- package/src/lib/components/view-tenant-group-types/view-tenant-group-types.component.spec.ts +410 -0
- package/src/lib/components/view-tenant-group-types/view-tenant-group-types.component.ts +219 -0
- package/src/lib/components/view-tenants-list/view-tenants-list.component.html +32 -0
- package/src/lib/components/view-tenants-list/view-tenants-list.component.scss +35 -0
- package/src/lib/components/view-tenants-list/view-tenants-list.component.spec.ts +464 -0
- package/src/lib/components/view-tenants-list/view-tenants-list.component.ts +388 -0
- package/src/lib/models/app-type-config.model.ts +14 -0
- package/src/lib/models/app-type.model.ts +5 -0
- package/src/lib/models/create-group-type-config.model.ts +18 -0
- package/src/lib/models/create-group-type.model.ts +46 -0
- package/src/lib/models/feature-permission-id.model.ts +6 -0
- package/src/lib/models/features.model.ts +15 -0
- package/src/lib/models/form-status.model.ts +5 -0
- package/src/lib/models/permission-type.model.ts +9 -0
- package/src/lib/models/role-menu-action.model.ts +5 -0
- package/src/lib/models/role-type.model.ts +34 -0
- package/src/lib/models/roles-and-permissions-table-type.model.ts +5 -0
- package/src/lib/models/roles-and-permissions.model.ts +113 -0
- package/src/lib/models/route-config.model.ts +4 -0
- package/src/lib/models/table-column-schema-view-tenant-list.model.ts +21 -0
- package/src/lib/models/tenant-function-type.model.ts +10 -0
- package/src/lib/models/tenant.model.ts +47 -0
- package/src/lib/models/tenants-permission.model.ts +9 -0
- package/src/lib/models/update-tenant-status.model.ts +12 -0
- package/src/lib/models/view-tenant-group-types.model.ts +34 -0
- package/src/lib/services/tenant-applications.service.spec.ts +1245 -0
- package/src/lib/services/tenant-applications.service.ts +798 -0
- package/src/lib/services/tenant-permissions-map.service.spec.ts +25 -0
- package/src/lib/services/tenant-permissions-map.service.ts +28 -0
- package/src/lib/services/tenant-permissions.service.spec.ts +62 -0
- package/src/lib/services/tenant-permissions.service.ts +49 -0
- package/src/lib/tenant-applications.component.html +0 -0
- package/src/lib/tenant-applications.component.scss +0 -0
- package/src/lib/tenant-applications.component.spec.ts +28 -0
- package/src/lib/tenant-applications.component.ts +12 -0
- package/src/lib/tenant-applications.module.ts +8 -0
- package/{public-api.d.ts → src/public-api.ts} +40 -30
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/esm2022/ieeesa-npm-tenants.mjs +0 -5
- package/esm2022/lib/assets/constants.json +0 -390
- package/esm2022/lib/assets/tenant-validations.mjs +0 -13
- package/esm2022/lib/components/create-modify-role/create-modify-role.component.mjs +0 -280
- package/esm2022/lib/components/create-tenant-application/create-tenant-application.component.mjs +0 -512
- package/esm2022/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.mjs +0 -391
- package/esm2022/lib/components/tenant-basic-details/tenant-basic-details.component.mjs +0 -95
- package/esm2022/lib/components/view-tenant-details/view-tenant-details.component.mjs +0 -708
- package/esm2022/lib/components/view-tenant-group-types/view-tenant-group-types.component.mjs +0 -174
- package/esm2022/lib/components/view-tenants-list/view-tenants-list.component.mjs +0 -334
- package/esm2022/lib/models/app-type-config.model.mjs +0 -2
- package/esm2022/lib/models/app-type.model.mjs +0 -7
- package/esm2022/lib/models/feature-permission-id.model.mjs +0 -8
- package/esm2022/lib/models/features.model.mjs +0 -2
- package/esm2022/lib/models/form-status.model.mjs +0 -7
- package/esm2022/lib/models/permission-type.model.mjs +0 -12
- package/esm2022/lib/models/role-menu-action.model.mjs +0 -7
- package/esm2022/lib/models/role-type.model.mjs +0 -2
- package/esm2022/lib/models/roles-and-permissions-table-type.model.mjs +0 -7
- package/esm2022/lib/models/roles-and-permissions.model.mjs +0 -2
- package/esm2022/lib/models/route-config.model.mjs +0 -2
- package/esm2022/lib/models/table-column-schema-view-tenant-list.model.mjs +0 -16
- package/esm2022/lib/models/tenant-function-type.model.mjs +0 -10
- package/esm2022/lib/models/tenant.model.mjs +0 -2
- package/esm2022/lib/models/tenants-permission.model.mjs +0 -2
- package/esm2022/lib/models/update-tenant-status.model.mjs +0 -2
- package/esm2022/lib/models/view-tenant-group-types.model.mjs +0 -9
- package/esm2022/lib/services/tenant-applications.service.mjs +0 -542
- package/esm2022/lib/services/tenant-permissions-map.service.mjs +0 -36
- package/esm2022/lib/services/tenant-permissions.service.mjs +0 -38
- package/esm2022/lib/tenant-applications.component.mjs +0 -14
- package/esm2022/lib/tenant-applications.module.mjs +0 -16
- package/esm2022/public-api.mjs +0 -34
- package/fesm2022/ieeesa-npm-tenants.mjs +0 -3565
- package/fesm2022/ieeesa-npm-tenants.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/assets/tenant-validations.d.ts +0 -11
- package/lib/components/create-modify-role/create-modify-role.component.d.ts +0 -103
- package/lib/components/create-tenant-application/create-tenant-application.component.d.ts +0 -128
- package/lib/components/roles-and-permissions-mapping/roles-and-permissions-mapping.component.d.ts +0 -106
- package/lib/components/tenant-basic-details/tenant-basic-details.component.d.ts +0 -408
- package/lib/components/view-tenant-details/view-tenant-details.component.d.ts +0 -216
- package/lib/components/view-tenant-group-types/view-tenant-group-types.component.d.ts +0 -58
- package/lib/components/view-tenants-list/view-tenants-list.component.d.ts +0 -134
- package/lib/models/app-type-config.model.d.ts +0 -14
- package/lib/models/app-type.model.d.ts +0 -4
- package/lib/models/feature-permission-id.model.d.ts +0 -4
- package/lib/models/features.model.d.ts +0 -15
- package/lib/models/form-status.model.d.ts +0 -4
- package/lib/models/permission-type.model.d.ts +0 -8
- package/lib/models/role-menu-action.model.d.ts +0 -4
- package/lib/models/role-type.model.d.ts +0 -27
- package/lib/models/roles-and-permissions-table-type.model.d.ts +0 -4
- package/lib/models/roles-and-permissions.model.d.ts +0 -119
- package/lib/models/route-config.model.d.ts +0 -4
- package/lib/models/table-column-schema-view-tenant-list.model.d.ts +0 -20
- package/lib/models/tenant-function-type.model.d.ts +0 -7
- package/lib/models/tenant.model.d.ts +0 -51
- package/lib/models/tenants-permission.model.d.ts +0 -9
- package/lib/models/update-tenant-status.model.d.ts +0 -14
- package/lib/models/view-tenant-group-types.model.d.ts +0 -27
- package/lib/services/tenant-applications.service.d.ts +0 -357
- package/lib/services/tenant-permissions-map.service.d.ts +0 -13
- package/lib/services/tenant-permissions.service.d.ts +0 -22
- package/lib/tenant-applications.component.d.ts +0 -5
- package/lib/tenant-applications.module.d.ts +0 -6
|
@@ -1,408 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { TenantApplicationsService } from '../../services/tenant-applications.service';
|
|
3
|
-
import { BreakpointObserverService } from '@ieeesa-npm/utility';
|
|
4
|
-
import { Subject } from 'rxjs';
|
|
5
|
-
import { FileUploadService } from '@ieeesa-npm/presentation';
|
|
6
|
-
import { SharedService } from '@ieeesa-npm/shared';
|
|
7
|
-
import { TenantBasicInfo } from '../../models/tenant.model';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class TenantBasicDetailsComponent implements OnDestroy {
|
|
10
|
-
tenantAppService: TenantApplicationsService;
|
|
11
|
-
private breakpointObserverService;
|
|
12
|
-
private fileUploadService;
|
|
13
|
-
private sharedService;
|
|
14
|
-
destroy$: Subject<boolean>;
|
|
15
|
-
isMobileView: boolean;
|
|
16
|
-
constants: {
|
|
17
|
-
createTenant: {
|
|
18
|
-
heading: string;
|
|
19
|
-
label: {
|
|
20
|
-
leftButtonLabel: string;
|
|
21
|
-
rightButtonLabel: string;
|
|
22
|
-
appTitle: string;
|
|
23
|
-
appId: string;
|
|
24
|
-
appLogo: string;
|
|
25
|
-
appHeading: string;
|
|
26
|
-
appDescription: string;
|
|
27
|
-
appBgColor: string;
|
|
28
|
-
appHelpLink: string;
|
|
29
|
-
featuresList: string;
|
|
30
|
-
featureVersion: string;
|
|
31
|
-
domainURL: string;
|
|
32
|
-
appType: string;
|
|
33
|
-
ariaLabel: {
|
|
34
|
-
appTitle: string;
|
|
35
|
-
appId: string;
|
|
36
|
-
appLogo: string;
|
|
37
|
-
appHeading: string;
|
|
38
|
-
appDescription: string;
|
|
39
|
-
appBgColor: string;
|
|
40
|
-
appHelpLink: string;
|
|
41
|
-
featuresList: string;
|
|
42
|
-
featureVersion: string;
|
|
43
|
-
domainURL: string;
|
|
44
|
-
appType: string;
|
|
45
|
-
};
|
|
46
|
-
ariaDescribedById: {
|
|
47
|
-
appTitle: string;
|
|
48
|
-
appId: string;
|
|
49
|
-
appLogo: string;
|
|
50
|
-
appHeading: string;
|
|
51
|
-
appDescription: string;
|
|
52
|
-
appBgColor: string;
|
|
53
|
-
appHelpLink: string;
|
|
54
|
-
featuresList: string;
|
|
55
|
-
featureVersion: string;
|
|
56
|
-
domainURL: string;
|
|
57
|
-
appType: string;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
message: {
|
|
61
|
-
error: {
|
|
62
|
-
required: string;
|
|
63
|
-
invalidColor: string;
|
|
64
|
-
invalidFile: string;
|
|
65
|
-
limit: {
|
|
66
|
-
appTitleMaxChars: string;
|
|
67
|
-
appIdMaxChars: string;
|
|
68
|
-
appHeadingMaxChars: string;
|
|
69
|
-
appDescriptionMaxChars: string;
|
|
70
|
-
appLogoMaxSize: string;
|
|
71
|
-
};
|
|
72
|
-
pattern: {
|
|
73
|
-
appId: string;
|
|
74
|
-
appHelpLink: string;
|
|
75
|
-
appDomainUrl: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
success: {
|
|
79
|
-
submission: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
supportText: {
|
|
83
|
-
appTitle: string;
|
|
84
|
-
appId: string;
|
|
85
|
-
appLogo: string;
|
|
86
|
-
appHeading: string;
|
|
87
|
-
appDescription: string;
|
|
88
|
-
appBgColor: string;
|
|
89
|
-
appHelpLink: string;
|
|
90
|
-
featuresList: string;
|
|
91
|
-
featureVersion: string;
|
|
92
|
-
domainURL: string;
|
|
93
|
-
};
|
|
94
|
-
errors: {
|
|
95
|
-
"2003": string;
|
|
96
|
-
"2026": string;
|
|
97
|
-
"2028": string;
|
|
98
|
-
"2029": string;
|
|
99
|
-
"2030": string;
|
|
100
|
-
"2031": string;
|
|
101
|
-
"2032": string;
|
|
102
|
-
"2033": string;
|
|
103
|
-
"2034": string;
|
|
104
|
-
"2035": string;
|
|
105
|
-
"2036": string;
|
|
106
|
-
"2037": string;
|
|
107
|
-
"2038": string;
|
|
108
|
-
"2039": string;
|
|
109
|
-
"2040": string;
|
|
110
|
-
"2041": string;
|
|
111
|
-
"2042": string;
|
|
112
|
-
"2043": string;
|
|
113
|
-
"2044": string;
|
|
114
|
-
"2045": string;
|
|
115
|
-
"2046": string;
|
|
116
|
-
"2047": string;
|
|
117
|
-
"2048": string;
|
|
118
|
-
"2049": string;
|
|
119
|
-
"2050": string;
|
|
120
|
-
"2052": string;
|
|
121
|
-
"2053": string;
|
|
122
|
-
};
|
|
123
|
-
buttons: {
|
|
124
|
-
addApplicationLabel: string;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
createRole: {
|
|
128
|
-
heading: string;
|
|
129
|
-
label: {
|
|
130
|
-
leftButtonLabel: string;
|
|
131
|
-
rightButtonLabel: string;
|
|
132
|
-
appTitle: string;
|
|
133
|
-
roleType: string;
|
|
134
|
-
roleName: string;
|
|
135
|
-
ariaLabel: {
|
|
136
|
-
appTitle: string;
|
|
137
|
-
roleType: string;
|
|
138
|
-
roleName: string;
|
|
139
|
-
};
|
|
140
|
-
ariaDescribedById: {
|
|
141
|
-
appTitle: string;
|
|
142
|
-
roleType: string;
|
|
143
|
-
roleName: string;
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
message: {
|
|
147
|
-
error: {
|
|
148
|
-
required: string;
|
|
149
|
-
limit: {
|
|
150
|
-
roleNameMaxChars: string;
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
success: {
|
|
154
|
-
submission1: string;
|
|
155
|
-
submission2: string;
|
|
156
|
-
submission3: string;
|
|
157
|
-
modify: string;
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
supportText: {
|
|
161
|
-
roleType: string;
|
|
162
|
-
roleName: string;
|
|
163
|
-
};
|
|
164
|
-
errors: {
|
|
165
|
-
"3011": string;
|
|
166
|
-
"3012": string;
|
|
167
|
-
"3013": string;
|
|
168
|
-
"3014": string;
|
|
169
|
-
"3015": string;
|
|
170
|
-
"3016": string;
|
|
171
|
-
"3017": string;
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
editTenant: {
|
|
175
|
-
message: {
|
|
176
|
-
success: {
|
|
177
|
-
submission: string;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
viewTenants: {
|
|
182
|
-
tenantsTitle: string;
|
|
183
|
-
addTenant: string;
|
|
184
|
-
emptyFieldValueReplacedBy: string;
|
|
185
|
-
createTenantsIcon: string;
|
|
186
|
-
pageSizeOptions: number[];
|
|
187
|
-
ariaLabel: {
|
|
188
|
-
add: string;
|
|
189
|
-
};
|
|
190
|
-
label: {
|
|
191
|
-
appId: string;
|
|
192
|
-
status: string;
|
|
193
|
-
viewAllApps: string;
|
|
194
|
-
saAppId: string;
|
|
195
|
-
active: string;
|
|
196
|
-
inactive: string;
|
|
197
|
-
};
|
|
198
|
-
buttons: {
|
|
199
|
-
id: number;
|
|
200
|
-
ariaLabel: string;
|
|
201
|
-
label: string;
|
|
202
|
-
toolTip: string;
|
|
203
|
-
iconURL: string;
|
|
204
|
-
};
|
|
205
|
-
tableColumns: {
|
|
206
|
-
appId: string;
|
|
207
|
-
appTitle: string;
|
|
208
|
-
appDescription: string;
|
|
209
|
-
features: string;
|
|
210
|
-
status: string;
|
|
211
|
-
};
|
|
212
|
-
confirmationInfo: {
|
|
213
|
-
leftButtonLabel: string;
|
|
214
|
-
rightButtonLabel: string;
|
|
215
|
-
promptMessage: string;
|
|
216
|
-
promptMessageInactivate: string;
|
|
217
|
-
promptMessageActivate: string;
|
|
218
|
-
ariaLabel: {
|
|
219
|
-
alert: string;
|
|
220
|
-
};
|
|
221
|
-
deleteRoleConfirmationMessage: string;
|
|
222
|
-
deleteRolePromptMessage: string;
|
|
223
|
-
};
|
|
224
|
-
errors: {
|
|
225
|
-
"2050": string;
|
|
226
|
-
"2051": string;
|
|
227
|
-
"2054": string;
|
|
228
|
-
"3007": string;
|
|
229
|
-
"3008": string;
|
|
230
|
-
"3009": string;
|
|
231
|
-
"3010": string;
|
|
232
|
-
"3011": string;
|
|
233
|
-
};
|
|
234
|
-
tenantAccordionInfo: {
|
|
235
|
-
id: number;
|
|
236
|
-
title: string;
|
|
237
|
-
isDisabled: boolean;
|
|
238
|
-
content: string;
|
|
239
|
-
}[];
|
|
240
|
-
tenantBasicDetails: {
|
|
241
|
-
label: {
|
|
242
|
-
title: string;
|
|
243
|
-
logo: string;
|
|
244
|
-
description: string;
|
|
245
|
-
bgColor: string;
|
|
246
|
-
heading: string;
|
|
247
|
-
helpLink: string;
|
|
248
|
-
listOfFeatures: string;
|
|
249
|
-
featureVersion: string;
|
|
250
|
-
domainURL: string;
|
|
251
|
-
type: string;
|
|
252
|
-
};
|
|
253
|
-
};
|
|
254
|
-
};
|
|
255
|
-
viewRolesAndPermissions: {
|
|
256
|
-
tableCaption: string;
|
|
257
|
-
tableColumnsHeaderText: string;
|
|
258
|
-
scrollbarSupportMessage: string;
|
|
259
|
-
pageSizeOptions: number[];
|
|
260
|
-
columnActionIconSize: string;
|
|
261
|
-
actionButtonLabels: {
|
|
262
|
-
addRole: string;
|
|
263
|
-
mapPermissionsRoles: string;
|
|
264
|
-
};
|
|
265
|
-
tableColumn: {
|
|
266
|
-
permissions: string;
|
|
267
|
-
};
|
|
268
|
-
tableCellValue: {
|
|
269
|
-
yes: string;
|
|
270
|
-
no: string;
|
|
271
|
-
};
|
|
272
|
-
columnActionMenuItems: {
|
|
273
|
-
id: number;
|
|
274
|
-
label: string;
|
|
275
|
-
ariaLabel: string;
|
|
276
|
-
iconURL: string;
|
|
277
|
-
toolTip: string;
|
|
278
|
-
isToolTipNeeded: boolean;
|
|
279
|
-
}[];
|
|
280
|
-
};
|
|
281
|
-
mapRolesAndPermissions: {
|
|
282
|
-
heading: string;
|
|
283
|
-
legend: string;
|
|
284
|
-
roleTableCaption: string;
|
|
285
|
-
permissionTableCaption: string;
|
|
286
|
-
label: {
|
|
287
|
-
leftButtonLabel: string;
|
|
288
|
-
rightButtonLabel: string;
|
|
289
|
-
role: string;
|
|
290
|
-
permission: string;
|
|
291
|
-
ariaLabel: {
|
|
292
|
-
role: string;
|
|
293
|
-
permission: string;
|
|
294
|
-
};
|
|
295
|
-
ariaDescribedById: {
|
|
296
|
-
role: string;
|
|
297
|
-
permission: string;
|
|
298
|
-
};
|
|
299
|
-
};
|
|
300
|
-
tableColumns: {
|
|
301
|
-
role: string;
|
|
302
|
-
permission: string;
|
|
303
|
-
status: string;
|
|
304
|
-
};
|
|
305
|
-
message: {
|
|
306
|
-
success: {
|
|
307
|
-
rolesAndPermissionsSubmission: string;
|
|
308
|
-
};
|
|
309
|
-
};
|
|
310
|
-
supportText: {
|
|
311
|
-
role: string;
|
|
312
|
-
permission: string;
|
|
313
|
-
};
|
|
314
|
-
errors: {
|
|
315
|
-
"3007": string;
|
|
316
|
-
"3008": string;
|
|
317
|
-
"3009": string;
|
|
318
|
-
"3020": string;
|
|
319
|
-
"3017": string;
|
|
320
|
-
"3021": string;
|
|
321
|
-
};
|
|
322
|
-
};
|
|
323
|
-
deleteRole: {
|
|
324
|
-
message: {
|
|
325
|
-
success: {
|
|
326
|
-
submission: string;
|
|
327
|
-
};
|
|
328
|
-
};
|
|
329
|
-
};
|
|
330
|
-
viewGroupTypes: {
|
|
331
|
-
actionButtonLabels: {
|
|
332
|
-
addGroupType: string;
|
|
333
|
-
};
|
|
334
|
-
actionMenuItems: {
|
|
335
|
-
id: number;
|
|
336
|
-
label: string;
|
|
337
|
-
ariaLabel: string;
|
|
338
|
-
iconURL: string;
|
|
339
|
-
toolTip: string;
|
|
340
|
-
isToolTipNeeded: boolean;
|
|
341
|
-
isDisabled: boolean;
|
|
342
|
-
}[];
|
|
343
|
-
tableColumns: {
|
|
344
|
-
heading: {
|
|
345
|
-
groupType: string;
|
|
346
|
-
rosterType: string;
|
|
347
|
-
description: string;
|
|
348
|
-
applicableRoles: string;
|
|
349
|
-
settings: string;
|
|
350
|
-
action: string;
|
|
351
|
-
};
|
|
352
|
-
};
|
|
353
|
-
settings: {
|
|
354
|
-
allowSubGroup: string;
|
|
355
|
-
allowRoster: string;
|
|
356
|
-
allowAlternateVoting: string;
|
|
357
|
-
hasClassification: string;
|
|
358
|
-
allowEdit: string;
|
|
359
|
-
allowDelete: string;
|
|
360
|
-
};
|
|
361
|
-
errors: {
|
|
362
|
-
"2050": string;
|
|
363
|
-
"1010": string;
|
|
364
|
-
};
|
|
365
|
-
};
|
|
366
|
-
routeConfigPath: {
|
|
367
|
-
viewTenants: string;
|
|
368
|
-
viewTenantDetails: string;
|
|
369
|
-
};
|
|
370
|
-
};
|
|
371
|
-
basicDetailTexts: {
|
|
372
|
-
title: string;
|
|
373
|
-
logo: string;
|
|
374
|
-
description: string;
|
|
375
|
-
bgColor: string;
|
|
376
|
-
heading: string;
|
|
377
|
-
helpLink: string;
|
|
378
|
-
listOfFeatures: string;
|
|
379
|
-
featureVersion: string;
|
|
380
|
-
domainURL: string;
|
|
381
|
-
type: string;
|
|
382
|
-
};
|
|
383
|
-
tenantBackgroundColor: string;
|
|
384
|
-
selectedAppType: string;
|
|
385
|
-
selectedAppTypeLabel: string;
|
|
386
|
-
logo: string;
|
|
387
|
-
basicInfo: TenantBasicInfo;
|
|
388
|
-
imageUrl: string;
|
|
389
|
-
set tenantDetails(value: TenantBasicInfo);
|
|
390
|
-
constructor(tenantAppService: TenantApplicationsService, breakpointObserverService: BreakpointObserverService, fileUploadService: FileUploadService, sharedService: SharedService);
|
|
391
|
-
/**
|
|
392
|
-
* Gets the application types.
|
|
393
|
-
* @memberof TenantBasicDetailsComponent
|
|
394
|
-
*/
|
|
395
|
-
getAppType(): void;
|
|
396
|
-
/**
|
|
397
|
-
* Retrieves presigned URL for downloading files from Amazon S3 bucket.
|
|
398
|
-
* @memberof TenantBasicDetailsComponent
|
|
399
|
-
*/
|
|
400
|
-
getFileDownloadPresignedUrls(fileName: string): void;
|
|
401
|
-
/**
|
|
402
|
-
* Performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed.
|
|
403
|
-
* @memberof ViewTenantDetailsComponent
|
|
404
|
-
*/
|
|
405
|
-
ngOnDestroy(): void;
|
|
406
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TenantBasicDetailsComponent, never>;
|
|
407
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TenantBasicDetailsComponent, "ieeesa-tenant-basic-details", never, { "tenantDetails": { "alias": "tenantDetails"; "required": false; }; }, {}, never, never, true, never>;
|
|
408
|
-
}
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { BreakpointObserverService, GlobalErrorHandlerService } from '@ieeesa-npm/utility';
|
|
3
|
-
import { AccordionInfo, Menu, PaginatorConfig, TableActions, AlignType, RadioOption, IconButton, SlideToggleOption, TableColumnSchema, AccordionDetails, TableColumnMenuInfo } from '@ieeesa-npm/presentation';
|
|
4
|
-
import { Subject } from 'rxjs';
|
|
5
|
-
import { ActivatedRoute } from '@angular/router';
|
|
6
|
-
import { TenantApplicationsService } from '../../services/tenant-applications.service';
|
|
7
|
-
import { TenantsPermissions, UserPermission } from '../../models/tenants-permission.model';
|
|
8
|
-
import { SharedService } from '@ieeesa-npm/shared';
|
|
9
|
-
import { TenantsRoutesConfig } from '../../models/route-config.model';
|
|
10
|
-
import { TenantBasicInfo } from '../../models/tenant.model';
|
|
11
|
-
import { TenantFunctionType } from '../../models/tenant-function-type.model';
|
|
12
|
-
import { PageEvent } from '@angular/material/paginator';
|
|
13
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
14
|
-
import { GetRolesAndPermissionsPayload, RolesAndPermissions, PaginationInfo, RoleDetails } from '../../models/roles-and-permissions.model';
|
|
15
|
-
import { PermissionType } from '../../models/permission-type.model';
|
|
16
|
-
import { RoleTypeOption } from '../../models/role-type.model';
|
|
17
|
-
import * as i0 from "@angular/core";
|
|
18
|
-
export declare class ViewTenantDetailsComponent implements OnInit, OnDestroy {
|
|
19
|
-
dialog: MatDialog;
|
|
20
|
-
private breakpointObserverService;
|
|
21
|
-
private tenantAppService;
|
|
22
|
-
globalErrorHandlerService: GlobalErrorHandlerService;
|
|
23
|
-
private sharedService;
|
|
24
|
-
private activatedRoute;
|
|
25
|
-
destroy$: Subject<boolean>;
|
|
26
|
-
apiBaseURL: string;
|
|
27
|
-
userPermissions: UserPermission[];
|
|
28
|
-
routePaths: TenantsRoutesConfig;
|
|
29
|
-
isMobileView: boolean;
|
|
30
|
-
constants: any;
|
|
31
|
-
tenantLabels: any;
|
|
32
|
-
slideToggleOption: {
|
|
33
|
-
id: number;
|
|
34
|
-
label: any;
|
|
35
|
-
checked: boolean;
|
|
36
|
-
disabled: boolean;
|
|
37
|
-
};
|
|
38
|
-
editButton: IconButton;
|
|
39
|
-
tenantDetails: TenantBasicInfo;
|
|
40
|
-
accordionInfoList: AccordionInfo[];
|
|
41
|
-
appId: string;
|
|
42
|
-
iconSize: any;
|
|
43
|
-
rolesAndPermissionsTableCaption: any;
|
|
44
|
-
rolesAndPermissionsTableHeaderName: any;
|
|
45
|
-
rolesAndPermissionsTableSupportMessage: any;
|
|
46
|
-
permissionsColumnClassNumber: number;
|
|
47
|
-
menuItems: Menu[];
|
|
48
|
-
columnSchema: TableColumnSchema[];
|
|
49
|
-
tableData: RolesAndPermissions[];
|
|
50
|
-
isRolesAndPermissionsExpanded: boolean;
|
|
51
|
-
paginatorConfig: PaginatorConfig;
|
|
52
|
-
tablePagination: PaginationInfo;
|
|
53
|
-
rolesAndPermissionsClassName: string;
|
|
54
|
-
headerElementClassName: string;
|
|
55
|
-
tableActions: TableActions;
|
|
56
|
-
viewTenantsRouteUrl: string;
|
|
57
|
-
dialogRef: any;
|
|
58
|
-
accordionDetails: typeof AccordionDetails;
|
|
59
|
-
appTypeOptions: RadioOption[];
|
|
60
|
-
isBasicDetailsExpanded: boolean;
|
|
61
|
-
editTenantScreenTexts: any;
|
|
62
|
-
deleteRoleScreenTexts: any;
|
|
63
|
-
mapRolesAndPermissionsScreenTexts: any;
|
|
64
|
-
alignmentType: typeof AlignType;
|
|
65
|
-
userTenantsPermissions: TenantsPermissions[];
|
|
66
|
-
permissionType: typeof PermissionType;
|
|
67
|
-
functionType: TenantFunctionType;
|
|
68
|
-
createRoleScreenTexts: any;
|
|
69
|
-
roleMenuElement: HTMLElement;
|
|
70
|
-
selectedRoleInfo: RoleDetails;
|
|
71
|
-
isGroupTypesExpanded: boolean;
|
|
72
|
-
roleTypeOptions: RoleTypeOption[];
|
|
73
|
-
constructor(dialog: MatDialog, breakpointObserverService: BreakpointObserverService, tenantAppService: TenantApplicationsService, globalErrorHandlerService: GlobalErrorHandlerService, sharedService: SharedService, activatedRoute: ActivatedRoute);
|
|
74
|
-
/**
|
|
75
|
-
* Initializes view tenant details component.
|
|
76
|
-
* @return -returns nothing
|
|
77
|
-
* @memberof ViewTenantDetailsComponent
|
|
78
|
-
*/
|
|
79
|
-
ngOnInit(): void;
|
|
80
|
-
/**
|
|
81
|
-
* Gets the selected tenant details from server.
|
|
82
|
-
* @memberof ViewTenantDetailsComponent
|
|
83
|
-
*/
|
|
84
|
-
getTenantDetails(appId: string): void;
|
|
85
|
-
/**
|
|
86
|
-
* Display the corresponding tenant basic or feature details based on selected accordion.
|
|
87
|
-
* @param {AccordionInfo} accordionInfo
|
|
88
|
-
* @param {boolean} expanded
|
|
89
|
-
* @memberof ViewTenantDetailsComponent
|
|
90
|
-
*/
|
|
91
|
-
showTenantDetails(accordionInfo: AccordionInfo, expanded: boolean): void;
|
|
92
|
-
/**
|
|
93
|
-
* Fetches the configured roles of the selected tenant and creates the column schema.
|
|
94
|
-
* @memberof ViewTenantDetailsComponent
|
|
95
|
-
*/
|
|
96
|
-
getRolesAndInitializeTableSchema(): void;
|
|
97
|
-
/**
|
|
98
|
-
* Fetches the roles and permissions mappings for the selected tenant and and initialize table view.
|
|
99
|
-
* @param {GetRolesAndPermissionsPayload} payload
|
|
100
|
-
* @memberof ViewTenantDetailsComponent
|
|
101
|
-
*/
|
|
102
|
-
getRolesAndPermissionsAndInitializeTableView(payload: GetRolesAndPermissionsPayload): void;
|
|
103
|
-
/**
|
|
104
|
-
* Fetch the roles and permissions records based on offset and page size while the pagination changes.
|
|
105
|
-
* @param {PageEvent} pageEvent
|
|
106
|
-
* @memberof ViewTenantDetailsComponent
|
|
107
|
-
*/
|
|
108
|
-
onTablePaginationChange(pageEvent: PageEvent): void;
|
|
109
|
-
/**
|
|
110
|
-
* Captures the selected role's information and performs edit or delete action basis on the selected menu item.
|
|
111
|
-
* @param {TableColumnMenuInfo} roleMenuInfo
|
|
112
|
-
* @memberof ViewTenantDetailsComponent
|
|
113
|
-
*/
|
|
114
|
-
onRoleMenuClick(roleMenuInfo: TableColumnMenuInfo): void;
|
|
115
|
-
/**
|
|
116
|
-
* Keeps track of the accordion based on the element's ID in DOM tree.
|
|
117
|
-
* @memberof ViewTenantDetailsComponent
|
|
118
|
-
*/
|
|
119
|
-
trackByAccordionFn(index: number, item: AccordionInfo): number;
|
|
120
|
-
/**
|
|
121
|
-
* Gets the role types and updates the form control.
|
|
122
|
-
* @memberof ViewTenantDetailsComponent
|
|
123
|
-
*/
|
|
124
|
-
getRoleTypes(): void;
|
|
125
|
-
/**
|
|
126
|
-
* Sets the dialog options for create role modal and calls openModal method.
|
|
127
|
-
* @return -returns nothing
|
|
128
|
-
* @memberof ViewTenantDetailsComponent
|
|
129
|
-
*/
|
|
130
|
-
openCreateRoleForm(): void;
|
|
131
|
-
/**
|
|
132
|
-
* Sets the dialog options for edit role modal and calls openModal method.
|
|
133
|
-
* @return -returns nothing
|
|
134
|
-
* @memberof ViewTenantDetailsComponent
|
|
135
|
-
*/
|
|
136
|
-
openEditRoleForm(): void;
|
|
137
|
-
/**
|
|
138
|
-
* Sets the dialog options for edit tenant modal and calls openModal method.
|
|
139
|
-
* @return -returns nothing
|
|
140
|
-
* @memberof ViewTenantDetailsComponent
|
|
141
|
-
*/
|
|
142
|
-
openEditTenantForm(): void;
|
|
143
|
-
/**
|
|
144
|
-
* Opens modal component with received params and handles form submission success and errors.
|
|
145
|
-
* @param {*} dialogOptions
|
|
146
|
-
* @param {string} [className]
|
|
147
|
-
* @return -returns nothing
|
|
148
|
-
* @memberof ViewTenantsDetailsComponent
|
|
149
|
-
*/
|
|
150
|
-
openModal(dialogOptions: any, className?: string): void;
|
|
151
|
-
/**
|
|
152
|
-
* Calls openTenantStatusConfirmationModal to change the status of tenant on slide toggle change.
|
|
153
|
-
* @param {SlideToggleOption} slideToggleOption
|
|
154
|
-
* @memberof ViewTenantDetailsComponent
|
|
155
|
-
*/
|
|
156
|
-
onSlideToggleChange(slideToggleOption: SlideToggleOption): void;
|
|
157
|
-
/**
|
|
158
|
-
* Opens the confirmation modal to inactivate/reactivate the tenant.
|
|
159
|
-
* @param {boolean} isActivate
|
|
160
|
-
* @memberof ViewTenantDetailsComponent
|
|
161
|
-
*/
|
|
162
|
-
openTenantStatusConfirmationModal(isActivate: boolean): void;
|
|
163
|
-
/**
|
|
164
|
-
* Opens the map permissions and roles modal.
|
|
165
|
-
* @memberof ViewTenantDetailsComponent
|
|
166
|
-
* @returns {void}
|
|
167
|
-
*/
|
|
168
|
-
openMapRolesAndPermissionsForm(): void;
|
|
169
|
-
/**
|
|
170
|
-
* Updates the tenant status to the server using http request and display success/error message based on request response (success or failure).
|
|
171
|
-
* @param {boolean} isActivate
|
|
172
|
-
* @memberof ViewTenantDetailsComponent
|
|
173
|
-
*/
|
|
174
|
-
updateTenantStatus(isActivate: boolean): void;
|
|
175
|
-
/**
|
|
176
|
-
* Sets slide toggle checked status and label.
|
|
177
|
-
* @param {boolean} isActivate
|
|
178
|
-
* @memberof ViewTenantDetailsComponent
|
|
179
|
-
*/
|
|
180
|
-
setSlideToggleStatus(isActivate: boolean): void;
|
|
181
|
-
/**
|
|
182
|
-
* Gets the application/tenant types.
|
|
183
|
-
* @memberof ViewTenantDetailsComponent
|
|
184
|
-
*/
|
|
185
|
-
getApplicationTypes(): void;
|
|
186
|
-
/**
|
|
187
|
-
* Validates permission based access for provided feature.
|
|
188
|
-
* @param {PermissionType} permissionType
|
|
189
|
-
* @return {boolean}
|
|
190
|
-
* @memberof ViewTenantDetailsComponent
|
|
191
|
-
*/
|
|
192
|
-
validateAccess(permissionType: PermissionType): boolean;
|
|
193
|
-
/**
|
|
194
|
-
* Posts the details of the role to be deleted to the server using http request and display success/error message based on request response (success or failure).
|
|
195
|
-
* @memberof ViewTenantDetailsComponent
|
|
196
|
-
*/
|
|
197
|
-
deleteRole(): void;
|
|
198
|
-
/**
|
|
199
|
-
* Sets the role menu HTMLElement.
|
|
200
|
-
* @param {HTMLElement} menuButton
|
|
201
|
-
* @memberof ViewTenantDetailsComponent
|
|
202
|
-
*/
|
|
203
|
-
selectedRoleMenuElement(menuButton: HTMLElement): void;
|
|
204
|
-
/**
|
|
205
|
-
* Opens the confirmation modal to get user confirmation to delete the role.
|
|
206
|
-
* @memberof ViewTenantDetailsComponent
|
|
207
|
-
*/
|
|
208
|
-
openDeleteRoleModal(): void;
|
|
209
|
-
/**
|
|
210
|
-
* Performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed.
|
|
211
|
-
* @memberof ViewTenantDetailsComponent
|
|
212
|
-
*/
|
|
213
|
-
ngOnDestroy(): void;
|
|
214
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ViewTenantDetailsComponent, never>;
|
|
215
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ViewTenantDetailsComponent, "ieeesa-view-tenant-details", never, { "apiBaseURL": { "alias": "apiBaseURL"; "required": false; }; "userPermissions": { "alias": "userPermissions"; "required": false; }; "routePaths": { "alias": "routePaths"; "required": false; }; }, {}, never, never, true, never>;
|
|
216
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { Menu, TableColumnSchema } from '@ieeesa-npm/presentation';
|
|
3
|
-
import { Subject } from 'rxjs';
|
|
4
|
-
import { TenantApplicationsService } from '../../services/tenant-applications.service';
|
|
5
|
-
import { SharedService } from '@ieeesa-npm/shared';
|
|
6
|
-
import { GroupTypeDetails, ViewGroupTypeResponse } from '../../models/view-tenant-group-types.model';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* Component for viewing and managing tenant group types. Fetches the configured group types associated to the selected tenant and displays in tabular view.
|
|
10
|
-
* @export
|
|
11
|
-
* @class ViewTenantGroupTypesComponent
|
|
12
|
-
* @implements {OnInit}
|
|
13
|
-
*/
|
|
14
|
-
export declare class ViewTenantGroupTypesComponent implements OnInit, OnDestroy {
|
|
15
|
-
private tenantAppService;
|
|
16
|
-
private sharedService;
|
|
17
|
-
destroy$: Subject<boolean>;
|
|
18
|
-
constants: any;
|
|
19
|
-
columnHeading: any;
|
|
20
|
-
settings: any;
|
|
21
|
-
tableRowActions: Menu[];
|
|
22
|
-
columnSchema: TableColumnSchema[];
|
|
23
|
-
groupTypes: GroupTypeDetails[];
|
|
24
|
-
appId: string;
|
|
25
|
-
headerElementClassName: string;
|
|
26
|
-
constructor(tenantAppService: TenantApplicationsService, sharedService: SharedService);
|
|
27
|
-
/**
|
|
28
|
-
* Fetches group types data from the server and initializes column schema.
|
|
29
|
-
* @memberof ViewTenantGroupTypesComponent
|
|
30
|
-
*/
|
|
31
|
-
ngOnInit(): void;
|
|
32
|
-
/**
|
|
33
|
-
* Formats raw group types data into a required format for display.
|
|
34
|
-
* @param {ViewGroupTypeResponse} groupTypeRes
|
|
35
|
-
* @return {GroupTypeDetails[]}
|
|
36
|
-
* @memberof ViewTenantGroupTypesComponent
|
|
37
|
-
*/
|
|
38
|
-
formatGroupTypesTableData(groupTypeRes: ViewGroupTypeResponse): GroupTypeDetails[];
|
|
39
|
-
/**
|
|
40
|
-
* Transforms business rule to required format in string.
|
|
41
|
-
* @param {*} rule
|
|
42
|
-
* @return {string}
|
|
43
|
-
* @memberof ViewTenantGroupTypesComponent
|
|
44
|
-
*/
|
|
45
|
-
transformBusinessRule(rule: any): string;
|
|
46
|
-
/**
|
|
47
|
-
* Initializes table column schema to display group types in tabular view.
|
|
48
|
-
* @memberof ViewTenantGroupTypesComponent
|
|
49
|
-
*/
|
|
50
|
-
initializeColumnSchema(): void;
|
|
51
|
-
/**
|
|
52
|
-
* Performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed.
|
|
53
|
-
* @memberof ViewTenantGroupTypesComponent
|
|
54
|
-
*/
|
|
55
|
-
ngOnDestroy(): void;
|
|
56
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ViewTenantGroupTypesComponent, never>;
|
|
57
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ViewTenantGroupTypesComponent, "ieeesa-view-tenant-group-types", never, {}, {}, never, never, true, never>;
|
|
58
|
-
}
|