@ieeesa-npm/tenants 0.1.6 → 0.1.7

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.
@@ -0,0 +1,279 @@
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
+ * Downloads file from AWS S3 using a presigned URL.
102
+ * @memberof TenantBasicDetailsComponent
103
+ */
104
+ "2032": string;
105
+ "2033": string;
106
+ "2034": string;
107
+ "2035": string;
108
+ "2036": string;
109
+ "2037": string;
110
+ "2038": string;
111
+ "2039": string;
112
+ "2040": string;
113
+ "2041": string;
114
+ "2042": string;
115
+ "2043": string;
116
+ "2044": string;
117
+ "2045": string;
118
+ "2046": string;
119
+ "2047": string;
120
+ "2048": string;
121
+ "2049": string;
122
+ "2050": string;
123
+ "2052": string;
124
+ "2053": string;
125
+ };
126
+ buttons: {
127
+ addApplicationLabel: string;
128
+ };
129
+ };
130
+ editTenant: {
131
+ message: {
132
+ success: {
133
+ submission: string;
134
+ };
135
+ };
136
+ };
137
+ viewTenants: {
138
+ tenantsTitle: string;
139
+ addTenant: string;
140
+ emptyFieldValueReplacedBy: string;
141
+ createTenantsIcon: string;
142
+ pageSizeOptions: number[];
143
+ ariaLabel: {
144
+ add: string;
145
+ };
146
+ label: {
147
+ appId: string;
148
+ status: string;
149
+ viewAllApps: string;
150
+ saAppId: string;
151
+ active: string;
152
+ inactive: string;
153
+ };
154
+ buttons: {
155
+ id: number;
156
+ ariaLabel: string;
157
+ label: string;
158
+ toolTip: string;
159
+ iconURL: string;
160
+ };
161
+ tableColumns: {
162
+ appId: string;
163
+ appTitle: string;
164
+ appDescription: string;
165
+ features: string;
166
+ status: string;
167
+ };
168
+ confirmationInfo: {
169
+ leftButtonLabel: string;
170
+ rightButtonLabel: string;
171
+ promptMessage: string;
172
+ promptMessageInactivate: string;
173
+ promptMessageActivate: string;
174
+ ariaLabel: {
175
+ alert: string;
176
+ };
177
+ };
178
+ errors: {
179
+ "2050": string;
180
+ "2051": string;
181
+ "2054": string;
182
+ "3007": string;
183
+ "3009": string;
184
+ };
185
+ tenantAccordionInfo: {
186
+ id: number;
187
+ title: string;
188
+ isDisabled: boolean;
189
+ content: string;
190
+ }[];
191
+ tenantBasicDetails: {
192
+ label: {
193
+ title: string;
194
+ logo: string;
195
+ description: string;
196
+ bgColor: string;
197
+ heading: string;
198
+ helpLink: string;
199
+ listOfFeatures: string;
200
+ featureVersion: string;
201
+ domainURL: string;
202
+ type: string;
203
+ };
204
+ };
205
+ };
206
+ viewRolesAndPermissions: {
207
+ tableCaption: string;
208
+ tableColumnsHeaderText: string;
209
+ scrollbarSupportMessage: string;
210
+ pageSizeOptions: number[];
211
+ columnActionIconSize: string;
212
+ actionButtonLabels: {
213
+ addRole: string;
214
+ mapPermissionsRoles: string;
215
+ };
216
+ tableColumn: {
217
+ permissions: string;
218
+ };
219
+ tableCellValue: {
220
+ yes: string;
221
+ no: string;
222
+ };
223
+ columnActionMenuItems: {
224
+ id: number;
225
+ label: string;
226
+ ariaLabel: string;
227
+ iconURL: string;
228
+ toolTip: string;
229
+ isToolTipNeeded: boolean;
230
+ }[];
231
+ };
232
+ routeConfigPath: {
233
+ viewTenants: string;
234
+ viewTenantDetails: string;
235
+ };
236
+ };
237
+ basicDetailTexts: {
238
+ title: string;
239
+ logo: string;
240
+ description: string;
241
+ bgColor: string;
242
+ heading: string;
243
+ helpLink: string;
244
+ listOfFeatures: string;
245
+ featureVersion: string;
246
+ domainURL: string;
247
+ type: string;
248
+ };
249
+ tenantBackgroundColor: string;
250
+ selectedAppType: string;
251
+ selectedAppTypeLabel: string;
252
+ logo: string;
253
+ basicInfo: TenantBasicInfo;
254
+ imageUrl: string;
255
+ set tenantDetails(value: TenantBasicInfo);
256
+ constructor(tenantAppService: TenantApplicationsService, breakpointObserverService: BreakpointObserverService, fileUploadService: FileUploadService, sharedService: SharedService);
257
+ /**
258
+ * Gets the application types.
259
+ * @memberof TenantBasicDetailsComponent
260
+ */
261
+ getAppType(): void;
262
+ /**
263
+ * Retrieves presigned URL for downloading files from Amazon S3 bucket.
264
+ * @memberof TenantBasicDetailsComponent
265
+ */
266
+ getFileDownloadPresignedUrls(fileName: string): void;
267
+ /**
268
+ * Downloads file from AWS S3 using a presigned URL.
269
+ * @memberof TenantBasicDetailsComponent
270
+ */
271
+ downloadFile(presignedUrl: string): void;
272
+ /**
273
+ * Performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed.
274
+ * @memberof ViewTenantDetailsComponent
275
+ */
276
+ ngOnDestroy(): void;
277
+ static ɵfac: i0.ɵɵFactoryDeclaration<TenantBasicDetailsComponent, never>;
278
+ static ɵcmp: i0.ɵɵComponentDeclaration<TenantBasicDetailsComponent, "ieeesa-tenant-basic-details", never, { "tenantDetails": { "alias": "tenantDetails"; "required": false; }; }, {}, never, never, true, never>;
279
+ }
@@ -1,6 +1,6 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { BreakpointObserverService, GlobalErrorHandlerService } from '@ieeesa-npm/utility';
3
- import { AccordionInfo, Menu, PaginatorConfig, TableActions, AlignType, SlideToggleOption, TableColumnSchema } from '@ieeesa-npm/presentation';
3
+ import { AccordionInfo, Menu, PaginatorConfig, TableActions, AlignType, RadioOption, IconButton, SlideToggleOption, TableColumnSchema, AccordionDetails } from '@ieeesa-npm/presentation';
4
4
  import { Subject } from 'rxjs';
5
5
  import { TenantApplicationsService } from '../../services/tenant-applications.service';
6
6
  import { UserPermission } from '../../models/tenants-permission.model';
@@ -30,6 +30,7 @@ export declare class ViewTenantDetailsComponent implements OnInit, OnDestroy {
30
30
  checked: boolean;
31
31
  disabled: boolean;
32
32
  };
33
+ editButton: IconButton;
33
34
  tenantDetails: TenantBasicInfo;
34
35
  accordionInfoList: AccordionInfo[];
35
36
  appId: string;
@@ -46,6 +47,9 @@ export declare class ViewTenantDetailsComponent implements OnInit, OnDestroy {
46
47
  tableActions: TableActions;
47
48
  viewTenantsRouteUrl: string;
48
49
  dialogRef: any;
50
+ accordionDetails: typeof AccordionDetails;
51
+ appTypeOptions: RadioOption[];
52
+ isBasicDetailsExpanded: boolean;
49
53
  editTenantScreenTexts: any;
50
54
  alignmentType: typeof AlignType;
51
55
  constructor(dialog: MatDialog, breakpointObserverService: BreakpointObserverService, tenantAppService: TenantApplicationsService, globalErrorHandlerService: GlobalErrorHandlerService, sharedService: SharedService);
@@ -127,6 +131,11 @@ export declare class ViewTenantDetailsComponent implements OnInit, OnDestroy {
127
131
  * @memberof ViewTenantDetailsComponent
128
132
  */
129
133
  setSlideToggleStatus(isActivate: boolean): void;
134
+ /**
135
+ * Gets the application/tenant types.
136
+ * @memberof ViewTenantDetailsComponent
137
+ */
138
+ getApplicationTypes(): void;
130
139
  /**
131
140
  * Performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed.
132
141
  * @memberof ViewTenantDetailsComponent
@@ -96,13 +96,13 @@ export declare class ViewTenantsListComponent implements OnInit, OnDestroy {
96
96
  */
97
97
  onSortTenants(sort: Sort): void;
98
98
  /**
99
- * Returning sorting order according to column definition
99
+ * Returning sorting order according to column definition.
100
100
  * @param defaultColumnSortDirection
101
101
  * @returns SortOrderBy.ASC | SortOrderBy.DESC
102
102
  */
103
103
  filterSortedOrderBy(defaultColumnSortDirection: boolean): string;
104
104
  /**
105
- * Get the the records according to pagination
105
+ * Get the the records according to pagination.
106
106
  * @param {{
107
107
  * pageOffset: number;
108
108
  * pageLimit: number;
@@ -111,7 +111,8 @@ export declare class ViewTenantsListComponent implements OnInit, OnDestroy {
111
111
  */
112
112
  onTablePaginationChange(pageEvent: PageEvent): void;
113
113
  /**
114
- * Navigates to view tenants detail component
114
+ * Navigates to view tenants detail component.
115
+ * @param {{tenantInfo: TenantBasicInfo}}
115
116
  * @memberof ViewTenantsListComponent
116
117
  */
117
118
  navigateToViewTenantDetails(tenantInfo: TenantBasicInfo): void;
@@ -19,6 +19,13 @@ export declare class TenantApplicationsService {
19
19
  private tenantPermissionsMapService;
20
20
  tenantsText: {
21
21
  "2050": string;
22
+ "2051": string; /**
23
+ * Gets list of roles from server using HttpService.
24
+ * @param {string} appId
25
+ * @return {*} {Observable<GetRolesResponse>}
26
+ * @memberof TenantApplicationsService
27
+ */
28
+ "2054": string;
22
29
  "3007": string;
23
30
  "3009": string;
24
31
  };
@@ -39,6 +46,11 @@ export declare class TenantApplicationsService {
39
46
  "2035": string;
40
47
  "2036": string;
41
48
  "2037": string;
49
+ /**
50
+ * Returns the tenants information
51
+ * @return {TenantBasicInfo}
52
+ * @memberof TenantApplicationsService
53
+ */
42
54
  "2038": string;
43
55
  "2039": string;
44
56
  "2040": string;
@@ -59,6 +71,7 @@ export declare class TenantApplicationsService {
59
71
  tenantFunctionType: TenantFunctionType;
60
72
  radioOptions: RadioOption[];
61
73
  checkBoxOptions: CheckboxOption[];
74
+ appTypeInfo: RadioOption[];
62
75
  featureList: Features[];
63
76
  constructor(httpService: HttpService, tenantPermissionsService: TenantPermissionsService, tenantPermissionsMapService: TenantPermissionsMapService);
64
77
  setAppConfig(apiBaseUrl: string, userPermission: UserPermission[]): void;
@@ -93,6 +106,18 @@ export declare class TenantApplicationsService {
93
106
  * @memberof TenantApplicationsService
94
107
  */
95
108
  getSelectedTenantInformation(): TenantBasicInfo | undefined;
109
+ /**
110
+ * Sets the list of application type information
111
+ * @param {RadioOption} appTypeInfo
112
+ * @memberof TenantApplicationsService
113
+ */
114
+ setApplicationType(appTypeInfo: RadioOption[]): void;
115
+ /**
116
+ * Returns the list of application type information
117
+ * @return {RadioOption}
118
+ * @memberof TenantApplicationsService
119
+ */
120
+ getApplicationType(): RadioOption[] | undefined;
96
121
  /**
97
122
  * Filter permissions
98
123
  * @param usersPermissions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/tenants",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0"
package/public-api.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from './lib/components/view-tenants-list/view-tenants-list.component';
2
2
  export * from './lib/components/view-tenant-details/view-tenant-details.component';
3
3
  export * from './lib/components/create-tenant-application/create-tenant-application.component';
4
4
  export * from './lib/tenant-applications.component';
5
+ export * from './lib/components/tenant-basic-details/tenant-basic-details.component';
5
6
  export * from './lib/models/app-type-config.model';
6
7
  export * from './lib/models/app-type.model';
7
8
  export * from './lib/models/tenant.model';