@ieeesa-npm/tenants 0.5.0 → 0.5.1
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 +4 -1
- package/esm2022/lib/components/view-tenant-details/view-tenant-details.component.mjs +76 -5
- package/fesm2022/ieeesa-npm-tenants.mjs +87 -13
- package/fesm2022/ieeesa-npm-tenants.mjs.map +1 -1
- package/lib/components/tenant-basic-details/tenant-basic-details.component.d.ts +3 -0
- package/lib/components/view-tenant-details/view-tenant-details.component.d.ts +30 -3
- package/package.json +1 -1
|
@@ -219,6 +219,9 @@ export declare class TenantBasicDetailsComponent implements OnDestroy {
|
|
|
219
219
|
};
|
|
220
220
|
deleteRoleConfirmationMessage: string;
|
|
221
221
|
deleteRolePromptMessage: string;
|
|
222
|
+
featureChangeSignOutLeftButtonLabel: string;
|
|
223
|
+
featureChangeSignOutRightButtonLabel: string;
|
|
224
|
+
featureChangeSignOutMessage: string;
|
|
222
225
|
};
|
|
223
226
|
errors: {
|
|
224
227
|
"2050": string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { GlobalErrorHandlerService } from '@ieeesa-npm/utility';
|
|
2
|
+
import { AuthService, GlobalErrorHandlerService, StorageService } from '@ieeesa-npm/utility';
|
|
3
3
|
import { AccordionInfo, Menu, PaginatorConfig, TableActions, AlignType, RadioOption, IconButton, SlideToggleOption, TableColumnSchema, AccordionDetails, TableColumnMenuInfo, BreakpointObserverService } from '@ieeesa-npm/presentation';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import { ActivatedRoute } from '@angular/router';
|
|
@@ -22,10 +22,17 @@ export declare class ViewTenantDetailsComponent implements OnInit, OnDestroy {
|
|
|
22
22
|
globalErrorHandlerService: GlobalErrorHandlerService;
|
|
23
23
|
private sharedService;
|
|
24
24
|
private activatedRoute;
|
|
25
|
+
private authService;
|
|
26
|
+
private storageService;
|
|
25
27
|
destroy$: Subject<boolean>;
|
|
26
28
|
apiBaseURL: string;
|
|
27
29
|
userPermissions: UserPermission[];
|
|
28
30
|
routePaths: TenantsRoutesConfig;
|
|
31
|
+
/** Auth cookie name and SSO sign-out URL, used to sign out after a tenant feature change. */
|
|
32
|
+
signOutConfig?: {
|
|
33
|
+
cookieName: string;
|
|
34
|
+
ssoSignOutUrl: string;
|
|
35
|
+
};
|
|
29
36
|
isMobileView: boolean;
|
|
30
37
|
constants: any;
|
|
31
38
|
tenantLabels: any;
|
|
@@ -71,7 +78,9 @@ export declare class ViewTenantDetailsComponent implements OnInit, OnDestroy {
|
|
|
71
78
|
selectedRoleInfo: RoleDetails;
|
|
72
79
|
isGroupTypesExpanded: boolean;
|
|
73
80
|
roleTypeOptions: RoleTypeOption[];
|
|
74
|
-
|
|
81
|
+
/** Feature ids captured before the edit dialog opens, used to detect a feature list change on save. */
|
|
82
|
+
private featureIdsBeforeEdit;
|
|
83
|
+
constructor(dialog: MatDialog, breakpointObserverService: BreakpointObserverService, tenantAppService: TenantApplicationsService, globalErrorHandlerService: GlobalErrorHandlerService, sharedService: SharedService, activatedRoute: ActivatedRoute, authService: AuthService, storageService: StorageService);
|
|
75
84
|
/**
|
|
76
85
|
* Initializes view tenant details component.
|
|
77
86
|
* @return -returns nothing
|
|
@@ -213,11 +222,29 @@ export declare class ViewTenantDetailsComponent implements OnInit, OnDestroy {
|
|
|
213
222
|
* @memberof ViewTenantDetailsComponent
|
|
214
223
|
*/
|
|
215
224
|
openDeleteRoleModal(): void;
|
|
225
|
+
/**
|
|
226
|
+
* Returns the feature ids of the given tenant.
|
|
227
|
+
* @param {TenantBasicInfo} [tenant]
|
|
228
|
+
* @return {string[]}
|
|
229
|
+
* @memberof ViewTenantDetailsComponent
|
|
230
|
+
*/
|
|
231
|
+
private getFeatureIds;
|
|
232
|
+
/**
|
|
233
|
+
* Opens the re-sign-in confirmation modal when the tenant feature list changed on save, since
|
|
234
|
+
* feature flags are only refreshed at login. Emits signOutRequested when the user confirms.
|
|
235
|
+
* @memberof ViewTenantDetailsComponent
|
|
236
|
+
*/
|
|
237
|
+
private promptReSignInIfFeaturesChanged;
|
|
238
|
+
/**
|
|
239
|
+
* Clears the session and redirects to the SSO sign-out URL, mirroring the header sign-out.
|
|
240
|
+
* @memberof ViewTenantDetailsComponent
|
|
241
|
+
*/
|
|
242
|
+
private signOut;
|
|
216
243
|
/**
|
|
217
244
|
* Performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed.
|
|
218
245
|
* @memberof ViewTenantDetailsComponent
|
|
219
246
|
*/
|
|
220
247
|
ngOnDestroy(): void;
|
|
221
248
|
static ɵfac: i0.ɵɵFactoryDeclaration<ViewTenantDetailsComponent, never>;
|
|
222
|
-
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>;
|
|
249
|
+
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; }; "signOutConfig": { "alias": "signOutConfig"; "required": false; }; }, {}, never, never, true, never>;
|
|
223
250
|
}
|