@ieeesa-npm/tenants 0.1.5 → 0.1.6
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 +11 -1
- package/esm2022/lib/components/create-tenant-application/create-tenant-application.component.mjs +118 -29
- package/esm2022/lib/components/view-tenant-details/view-tenant-details.component.mjs +53 -2
- package/esm2022/lib/components/view-tenants-list/view-tenants-list.component.mjs +4 -2
- package/esm2022/lib/models/tenant-function-type.model.mjs +7 -0
- package/esm2022/lib/models/tenant.model.mjs +1 -1
- package/esm2022/lib/services/tenant-applications.service.mjs +64 -12
- package/esm2022/public-api.mjs +2 -2
- package/fesm2022/ieeesa-npm-tenants.mjs +250 -42
- package/fesm2022/ieeesa-npm-tenants.mjs.map +1 -1
- package/lib/components/create-tenant-application/create-tenant-application.component.d.ts +19 -4
- package/lib/components/view-tenant-details/view-tenant-details.component.d.ts +19 -4
- package/lib/components/view-tenants-list/view-tenants-list.component.d.ts +6 -5
- package/lib/models/tenant-function-type.model.d.ts +4 -0
- package/lib/models/tenant.model.d.ts +32 -9
- package/lib/services/tenant-applications.service.d.ts +42 -14
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/esm2022/lib/models/tenants.model.mjs +0 -2
- package/lib/models/tenants.model.d.ts +0 -35
|
@@ -119,12 +119,22 @@ var createTenant = {
|
|
|
119
119
|
"2046": "Application Features are required.",
|
|
120
120
|
"2047": "Application Type is required.",
|
|
121
121
|
"2048": "Features Not Found.",
|
|
122
|
-
"2049": "Unable to display tenants. Please try again
|
|
122
|
+
"2049": "Unable to display tenants. Please try again later.",
|
|
123
|
+
"2050": "Tenant Details not found.",
|
|
124
|
+
"2052": "Not allowed to update Application Id and Application Type.",
|
|
125
|
+
"2053": "Default features to be pre-selected."
|
|
123
126
|
},
|
|
124
127
|
buttons: {
|
|
125
128
|
addApplicationLabel: "Add Application"
|
|
126
129
|
}
|
|
127
130
|
};
|
|
131
|
+
var editTenant = {
|
|
132
|
+
message: {
|
|
133
|
+
success: {
|
|
134
|
+
submission: "has been edited successfully."
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
};
|
|
128
138
|
var viewTenants = {
|
|
129
139
|
tenantsTitle: "Tenant Application Management",
|
|
130
140
|
addTenant: "Add Application",
|
|
@@ -238,6 +248,7 @@ var errors = {
|
|
|
238
248
|
};
|
|
239
249
|
var constants = {
|
|
240
250
|
createTenant: createTenant,
|
|
251
|
+
editTenant: editTenant,
|
|
241
252
|
viewTenants: viewTenants,
|
|
242
253
|
viewRolesAndPermissions: viewRolesAndPermissions,
|
|
243
254
|
routeConfigPath: routeConfigPath,
|
|
@@ -250,6 +261,7 @@ var screenText = /*#__PURE__*/Object.freeze({
|
|
|
250
261
|
TenantAccordionInfo: TenantAccordionInfo,
|
|
251
262
|
createTenant: createTenant,
|
|
252
263
|
default: constants,
|
|
264
|
+
editTenant: editTenant,
|
|
253
265
|
errors: errors,
|
|
254
266
|
routeConfigPath: routeConfigPath,
|
|
255
267
|
viewRolesAndPermissions: viewRolesAndPermissions,
|
|
@@ -301,6 +313,13 @@ var FormStatus;
|
|
|
301
313
|
FormStatus["INVALID"] = "INVALID";
|
|
302
314
|
})(FormStatus || (FormStatus = {}));
|
|
303
315
|
|
|
316
|
+
/* eslint-disable no-unused-vars */
|
|
317
|
+
var TenantFunctionType;
|
|
318
|
+
(function (TenantFunctionType) {
|
|
319
|
+
TenantFunctionType["CREATE"] = "CREATE";
|
|
320
|
+
TenantFunctionType["EDIT"] = "EDIT";
|
|
321
|
+
})(TenantFunctionType || (TenantFunctionType = {}));
|
|
322
|
+
|
|
304
323
|
class TenantPermissionsService {
|
|
305
324
|
/**
|
|
306
325
|
* Returns access provision for the passed action/feature based on whether the signed in user has appropriate permission.
|
|
@@ -386,6 +405,7 @@ class TenantApplicationsService {
|
|
|
386
405
|
this.createTenantsText = createTenant?.errors;
|
|
387
406
|
this.radioOptions = [];
|
|
388
407
|
this.checkBoxOptions = [];
|
|
408
|
+
this.featureList = [];
|
|
389
409
|
}
|
|
390
410
|
setAppConfig(apiBaseUrl, userPermission) {
|
|
391
411
|
this.apiBaseUrl = apiBaseUrl;
|
|
@@ -424,7 +444,7 @@ class TenantApplicationsService {
|
|
|
424
444
|
}
|
|
425
445
|
/**
|
|
426
446
|
* Sets the user tenants information
|
|
427
|
-
* @param {
|
|
447
|
+
* @param {TenantBasicInfo} tenantInfo
|
|
428
448
|
* @memberof TenantApplicationsService
|
|
429
449
|
*/
|
|
430
450
|
setSelectedTenantInformation(tenantInfo) {
|
|
@@ -432,7 +452,7 @@ class TenantApplicationsService {
|
|
|
432
452
|
}
|
|
433
453
|
/**
|
|
434
454
|
* Returns the tenants information
|
|
435
|
-
* @return {
|
|
455
|
+
* @return {TenantBasicInfo}
|
|
436
456
|
* @memberof TenantApplicationsService
|
|
437
457
|
*/
|
|
438
458
|
getSelectedTenantInformation() {
|
|
@@ -491,7 +511,9 @@ class TenantApplicationsService {
|
|
|
491
511
|
* @memberof TenantApplicationsService
|
|
492
512
|
*/
|
|
493
513
|
getRoles(appId) {
|
|
494
|
-
return this.httpService
|
|
514
|
+
return this.httpService
|
|
515
|
+
.getData(`${this.apiBaseUrl}/groups/getRole/${appId}`)
|
|
516
|
+
.pipe(map((response) => {
|
|
495
517
|
return response;
|
|
496
518
|
}), catchError((error) => {
|
|
497
519
|
throw error;
|
|
@@ -505,7 +527,9 @@ class TenantApplicationsService {
|
|
|
505
527
|
* @memberof TenantApplicationsService
|
|
506
528
|
*/
|
|
507
529
|
getRolesAndPermissionsMappings(appId, payload) {
|
|
508
|
-
return this.httpService
|
|
530
|
+
return this.httpService
|
|
531
|
+
.postData(`${this.apiBaseUrl}/groups/getRoleBasedPermission/${appId}`, payload)
|
|
532
|
+
.pipe(map((response) => {
|
|
509
533
|
return response;
|
|
510
534
|
}), catchError((error) => {
|
|
511
535
|
throw error;
|
|
@@ -589,17 +613,46 @@ class TenantApplicationsService {
|
|
|
589
613
|
return featureIds;
|
|
590
614
|
}
|
|
591
615
|
/**
|
|
592
|
-
* Sets the tenant
|
|
593
|
-
* @param {
|
|
616
|
+
* Sets the newly created tenant information.
|
|
617
|
+
* @param {NewTenantInfo} newTenantInfo
|
|
594
618
|
*/
|
|
595
|
-
|
|
596
|
-
this.
|
|
619
|
+
setNewTenantInfo(newTenantInfo) {
|
|
620
|
+
this.newTenantInfo = newTenantInfo;
|
|
597
621
|
}
|
|
598
622
|
/**
|
|
599
|
-
* Returns the tenant
|
|
623
|
+
* Returns the newly created tenant information.
|
|
600
624
|
*/
|
|
601
|
-
get
|
|
602
|
-
return this.
|
|
625
|
+
get getNewTenantInfo() {
|
|
626
|
+
return this.newTenantInfo;
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* Sets tenant function type.
|
|
630
|
+
* @param {TenantFunctionType} tenantFunctionType -tenant function type.
|
|
631
|
+
*/
|
|
632
|
+
setTenantFunctionType(tenantFunctionType) {
|
|
633
|
+
this.tenantFunctionType = tenantFunctionType;
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* Returns tenant function type.
|
|
637
|
+
* @return {TenantFunctionType} -tenant function type.
|
|
638
|
+
*/
|
|
639
|
+
getTenantFunctionType() {
|
|
640
|
+
return this.tenantFunctionType;
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* Posts the edited tenant application form data to server using HttpService for updating the tenant information.
|
|
644
|
+
* @param {CreateTenantPayload} editTenantPayload
|
|
645
|
+
* @return {Observable<CreateTenantResponse>}
|
|
646
|
+
* @memberof TenantApplicationsService
|
|
647
|
+
*/
|
|
648
|
+
editTenant(editTenantPayload) {
|
|
649
|
+
return this.httpService
|
|
650
|
+
.putData(`${this.apiBaseUrl}/configurations/app/editTenant`, editTenantPayload)
|
|
651
|
+
.pipe(map((response) => {
|
|
652
|
+
return response;
|
|
653
|
+
}), catchError((error) => {
|
|
654
|
+
throw error;
|
|
655
|
+
}));
|
|
603
656
|
}
|
|
604
657
|
/**
|
|
605
658
|
* Sends update request to the server to update the tenant application status to active/inactive using HttpService and returns the success or failure response.
|
|
@@ -616,6 +669,24 @@ class TenantApplicationsService {
|
|
|
616
669
|
throw error;
|
|
617
670
|
}));
|
|
618
671
|
}
|
|
672
|
+
/**
|
|
673
|
+
* It generates Feature list from checkbox options generated in form array.
|
|
674
|
+
* @param {CheckboxOption[]} features
|
|
675
|
+
* @return {Features[]}
|
|
676
|
+
* @memberof TenantApplicationsService
|
|
677
|
+
*/
|
|
678
|
+
getFeaturesList(features) {
|
|
679
|
+
this.featureList = [];
|
|
680
|
+
features?.forEach((feature) => {
|
|
681
|
+
if (feature.checked)
|
|
682
|
+
this.featureList?.push({
|
|
683
|
+
featureId: feature?.id,
|
|
684
|
+
featureName: feature?.name,
|
|
685
|
+
isDefault: feature?.checked,
|
|
686
|
+
});
|
|
687
|
+
});
|
|
688
|
+
return this.featureList;
|
|
689
|
+
}
|
|
619
690
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantApplicationsService, deps: [{ token: i2.HttpService }, { token: TenantPermissionsService }, { token: TenantPermissionsMapService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
620
691
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TenantApplicationsService, providedIn: 'root' }); }
|
|
621
692
|
}
|
|
@@ -653,8 +724,12 @@ class CreateTenantApplicationComponent {
|
|
|
653
724
|
AllowedFileTypes.PNG,
|
|
654
725
|
AllowedFileTypes.SVG,
|
|
655
726
|
];
|
|
727
|
+
this.isAppLogoModified = false;
|
|
656
728
|
}
|
|
657
729
|
ngOnInit() {
|
|
730
|
+
this.tenantFunctionType = this.tenantAppService?.getTenantFunctionType();
|
|
731
|
+
this.selectedTenantInfo =
|
|
732
|
+
this.tenantAppService?.getSelectedTenantInformation();
|
|
658
733
|
this.fileUploadService.setApiBaseUrl(this.tenantAppService?.apiBaseUrl);
|
|
659
734
|
this.getFeatures();
|
|
660
735
|
}
|
|
@@ -670,6 +745,12 @@ class CreateTenantApplicationComponent {
|
|
|
670
745
|
next: (response) => {
|
|
671
746
|
if (response?.status) {
|
|
672
747
|
this.featuresOptions = this.tenantAppService.getFeatureOptions(response?.body);
|
|
748
|
+
if (this.tenantFunctionType === TenantFunctionType.EDIT)
|
|
749
|
+
this.featuresOptions?.forEach((option) => {
|
|
750
|
+
if (this.selectedTenantInfo?.features?.some((feature) => feature?.featureId === option?.id)) {
|
|
751
|
+
option.checked = true;
|
|
752
|
+
}
|
|
753
|
+
});
|
|
673
754
|
this.getApplicationTypes();
|
|
674
755
|
}
|
|
675
756
|
},
|
|
@@ -692,6 +773,17 @@ class CreateTenantApplicationComponent {
|
|
|
692
773
|
if (response?.status) {
|
|
693
774
|
this.appTypeOptions =
|
|
694
775
|
this.tenantAppService.getApplicationTypeOptions(response?.body);
|
|
776
|
+
if (this.tenantFunctionType === TenantFunctionType.EDIT) {
|
|
777
|
+
this.appTypeOptions?.forEach((radioOption) => {
|
|
778
|
+
if (radioOption?.id === this.selectedTenantInfo?.appType) {
|
|
779
|
+
radioOption.checked = true;
|
|
780
|
+
this.selectedAppTypeOption = radioOption;
|
|
781
|
+
}
|
|
782
|
+
else {
|
|
783
|
+
radioOption.checked = false;
|
|
784
|
+
}
|
|
785
|
+
});
|
|
786
|
+
}
|
|
695
787
|
this.initializeCreateTenantFormGroup();
|
|
696
788
|
}
|
|
697
789
|
},
|
|
@@ -715,7 +807,9 @@ class CreateTenantApplicationComponent {
|
|
|
715
807
|
type: FormControlType.INPUT,
|
|
716
808
|
label: this.createTenantTexts?.label?.appTitle + '*',
|
|
717
809
|
controlName: 'appTitle',
|
|
718
|
-
value:
|
|
810
|
+
value: this.tenantFunctionType === TenantFunctionType.EDIT
|
|
811
|
+
? this.selectedTenantInfo?.appTitle
|
|
812
|
+
: '',
|
|
719
813
|
validation: [
|
|
720
814
|
Validators.required,
|
|
721
815
|
Validators.maxLength(TenantsValidationPatterns.appTitleMaxLength),
|
|
@@ -730,12 +824,15 @@ class CreateTenantApplicationComponent {
|
|
|
730
824
|
type: FormControlType.INPUT,
|
|
731
825
|
label: this.createTenantTexts?.label?.appId + '*',
|
|
732
826
|
controlName: 'appId',
|
|
733
|
-
value:
|
|
827
|
+
value: this.tenantFunctionType === TenantFunctionType.EDIT
|
|
828
|
+
? this.selectedTenantInfo?.appId
|
|
829
|
+
: '',
|
|
734
830
|
validation: [
|
|
735
831
|
Validators.required,
|
|
736
832
|
Validators.maxLength(TenantsValidationPatterns.appIdMaxLength),
|
|
737
833
|
Validators.pattern(TenantsValidationPatterns.alphaNumeric),
|
|
738
834
|
],
|
|
835
|
+
disabled: this.tenantFunctionType === TenantFunctionType.EDIT,
|
|
739
836
|
supportMessage: this.createTenantTexts?.supportText?.appId,
|
|
740
837
|
requiredErrorMessage: this.createTenantTexts?.message?.error?.required,
|
|
741
838
|
maxErrorMessage: this.createTenantTexts?.message?.error?.limit?.appIdMaxChars,
|
|
@@ -748,8 +845,11 @@ class CreateTenantApplicationComponent {
|
|
|
748
845
|
label: this.createTenantTexts?.label?.appLogo,
|
|
749
846
|
controlName: 'appLogo',
|
|
750
847
|
requiredErrorMessage: this.createTenantTexts?.message?.error?.required,
|
|
751
|
-
value:
|
|
848
|
+
value: this.tenantFunctionType === TenantFunctionType.EDIT
|
|
849
|
+
? this.selectedTenantInfo?.appLogo
|
|
850
|
+
: '',
|
|
752
851
|
placeholder: '',
|
|
852
|
+
isFileSelected: this.tenantFunctionType === TenantFunctionType.EDIT,
|
|
753
853
|
supportMessage: this.createTenantTexts?.supportText?.appLogo,
|
|
754
854
|
validation: [Validators.required],
|
|
755
855
|
ariaLabel: this.createTenantTexts?.label?.ariaLabel?.appLogo,
|
|
@@ -764,7 +864,9 @@ class CreateTenantApplicationComponent {
|
|
|
764
864
|
type: FormControlType.INPUT,
|
|
765
865
|
label: this.createTenantTexts?.label?.appHeading + '*',
|
|
766
866
|
controlName: 'appHeading',
|
|
767
|
-
value:
|
|
867
|
+
value: this.tenantFunctionType === TenantFunctionType.EDIT
|
|
868
|
+
? this.selectedTenantInfo?.appHeading
|
|
869
|
+
: '',
|
|
768
870
|
validation: [
|
|
769
871
|
Validators.required,
|
|
770
872
|
Validators.maxLength(TenantsValidationPatterns.appHeadingMaxLength),
|
|
@@ -781,7 +883,9 @@ class CreateTenantApplicationComponent {
|
|
|
781
883
|
type: FormControlType.TEXT_AREA,
|
|
782
884
|
label: this.createTenantTexts?.label?.appDescription + '*',
|
|
783
885
|
controlName: 'appDescription',
|
|
784
|
-
value:
|
|
886
|
+
value: this.tenantFunctionType === TenantFunctionType.EDIT
|
|
887
|
+
? this.selectedTenantInfo?.appDescription
|
|
888
|
+
: '',
|
|
785
889
|
validation: [
|
|
786
890
|
Validators.required,
|
|
787
891
|
Validators.maxLength(TenantsValidationPatterns.appDescriptionMaxLength),
|
|
@@ -802,6 +906,9 @@ class CreateTenantApplicationComponent {
|
|
|
802
906
|
label: this.createTenantTexts?.label?.appBgColor + '*',
|
|
803
907
|
controlName: 'backgroundColor',
|
|
804
908
|
value: '',
|
|
909
|
+
defaultColor: this.tenantFunctionType === TenantFunctionType.EDIT
|
|
910
|
+
? this.selectedTenantInfo?.backgroundColor
|
|
911
|
+
: '',
|
|
805
912
|
placeholder: '',
|
|
806
913
|
supportMessage: this.createTenantTexts?.supportText?.appBgColor,
|
|
807
914
|
validation: [Validators.required, validColorValidator()],
|
|
@@ -814,7 +921,9 @@ class CreateTenantApplicationComponent {
|
|
|
814
921
|
type: FormControlType.INPUT,
|
|
815
922
|
label: this.createTenantTexts?.label?.appHelpLink + '*',
|
|
816
923
|
controlName: 'appHelpLink',
|
|
817
|
-
value:
|
|
924
|
+
value: this.tenantFunctionType === TenantFunctionType.EDIT
|
|
925
|
+
? this.selectedTenantInfo?.appHelpLink
|
|
926
|
+
: '',
|
|
818
927
|
validation: [
|
|
819
928
|
Validators.required,
|
|
820
929
|
Validators.pattern(TenantsValidationPatterns.url),
|
|
@@ -841,7 +950,9 @@ class CreateTenantApplicationComponent {
|
|
|
841
950
|
type: FormControlType.INPUT,
|
|
842
951
|
label: this.createTenantTexts?.label?.domainURL + '*',
|
|
843
952
|
controlName: 'appDomainUrl',
|
|
844
|
-
value:
|
|
953
|
+
value: this.tenantFunctionType === TenantFunctionType.EDIT
|
|
954
|
+
? this.selectedTenantInfo?.appDomainUrl
|
|
955
|
+
: '',
|
|
845
956
|
validation: [
|
|
846
957
|
Validators.required,
|
|
847
958
|
Validators.pattern(TenantsValidationPatterns.url),
|
|
@@ -856,7 +967,10 @@ class CreateTenantApplicationComponent {
|
|
|
856
967
|
type: FormControlType.RADIO,
|
|
857
968
|
label: this.createTenantTexts?.label?.appType + '*',
|
|
858
969
|
controlName: 'appType',
|
|
859
|
-
value:
|
|
970
|
+
value: this.tenantFunctionType === TenantFunctionType.EDIT
|
|
971
|
+
? this.selectedTenantInfo?.appType
|
|
972
|
+
: '',
|
|
973
|
+
disabled: this.tenantFunctionType === TenantFunctionType.EDIT,
|
|
860
974
|
radioOptions: this.appTypeOptions,
|
|
861
975
|
validation: [Validators.required],
|
|
862
976
|
requiredErrorMessage: this.createTenantTexts?.message?.error?.required,
|
|
@@ -869,7 +983,7 @@ class CreateTenantApplicationComponent {
|
|
|
869
983
|
};
|
|
870
984
|
}
|
|
871
985
|
/**
|
|
872
|
-
* Creates
|
|
986
|
+
* Creates Payload and gets presigned url for file upload on form submission.
|
|
873
987
|
* @param {FormGroup[]} form
|
|
874
988
|
* @memberof CreateTenantApplicationComponent
|
|
875
989
|
*/
|
|
@@ -877,10 +991,63 @@ class CreateTenantApplicationComponent {
|
|
|
877
991
|
form[0]?.markAllAsTouched();
|
|
878
992
|
if (form[0].status === FormStatus.VALID) {
|
|
879
993
|
this.createTenantPayload = this.getCreateTenantPayload(form[0].getRawValue());
|
|
880
|
-
if (this.
|
|
994
|
+
if (this.tenantFunctionType === TenantFunctionType.EDIT &&
|
|
995
|
+
(!this.isAppLogoModified || !this.file)) {
|
|
996
|
+
this.editTenant();
|
|
997
|
+
}
|
|
998
|
+
else if (this.file) {
|
|
881
999
|
this.getFileUploadPresignedUrl(this.file);
|
|
1000
|
+
}
|
|
1001
|
+
else {
|
|
1002
|
+
this.createTenant();
|
|
1003
|
+
}
|
|
882
1004
|
}
|
|
883
1005
|
}
|
|
1006
|
+
/**
|
|
1007
|
+
* Creates a new tenant on form submission.
|
|
1008
|
+
* @memberof CreateTenantApplicationComponent
|
|
1009
|
+
*/
|
|
1010
|
+
createTenant() {
|
|
1011
|
+
this.tenantAppService
|
|
1012
|
+
.createTenant(this.createTenantPayload)
|
|
1013
|
+
.pipe(takeUntil(this.destroy$))
|
|
1014
|
+
.subscribe({
|
|
1015
|
+
next: (response) => {
|
|
1016
|
+
if (response.status) {
|
|
1017
|
+
this.tenantAppService.setNewTenantInfo(this.createTenantPayload?.payload);
|
|
1018
|
+
this.submitFormResponse.emit(response);
|
|
1019
|
+
}
|
|
1020
|
+
},
|
|
1021
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1022
|
+
error: (error) => {
|
|
1023
|
+
this.sharedService.handleErrors(error, this.createTenantTexts?.errors);
|
|
1024
|
+
},
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
/**
|
|
1028
|
+
* Updates the modified tenant information on form submission.
|
|
1029
|
+
* @memberof CreateTenantApplicationComponent
|
|
1030
|
+
*/
|
|
1031
|
+
editTenant() {
|
|
1032
|
+
this.tenantAppService
|
|
1033
|
+
.editTenant(this.createTenantPayload)
|
|
1034
|
+
.pipe(takeUntil(this.destroy$))
|
|
1035
|
+
.subscribe({
|
|
1036
|
+
next: (response) => {
|
|
1037
|
+
if (response?.status) {
|
|
1038
|
+
this.updatedTenantBasicInfo = this.createTenantPayload?.payload;
|
|
1039
|
+
this.updatedTenantBasicInfo.features =
|
|
1040
|
+
this.tenantAppService.getFeaturesList(this.featuresOptions);
|
|
1041
|
+
this.tenantAppService.setSelectedTenantInformation(this.updatedTenantBasicInfo);
|
|
1042
|
+
this.submitFormResponse.emit(response);
|
|
1043
|
+
}
|
|
1044
|
+
},
|
|
1045
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1046
|
+
error: (error) => {
|
|
1047
|
+
this.sharedService.handleErrors(error, this.createTenantTexts?.errors);
|
|
1048
|
+
},
|
|
1049
|
+
});
|
|
1050
|
+
}
|
|
884
1051
|
/**
|
|
885
1052
|
* Constructs create tenant payload from the form data and returns.
|
|
886
1053
|
* @param {*} formData
|
|
@@ -920,12 +1087,15 @@ class CreateTenantApplicationComponent {
|
|
|
920
1087
|
});
|
|
921
1088
|
}
|
|
922
1089
|
/**
|
|
923
|
-
* Updates createTenantFormGroupRef on add tenant form change event.
|
|
1090
|
+
* Updates createTenantFormGroupRef on add or edit tenant form change event.
|
|
924
1091
|
* @param {FormGroup[]} form
|
|
925
1092
|
* @memberof CreateTenantApplicationComponent
|
|
926
1093
|
*/
|
|
927
1094
|
onCreateTenantFormChange(form) {
|
|
928
1095
|
this.createTenantFormGroupRef = form[0];
|
|
1096
|
+
this.isAppLogoModified =
|
|
1097
|
+
this.createTenantFormGroupRef?.controls['appLogo']?.dirty &&
|
|
1098
|
+
this.tenantFunctionType === TenantFunctionType.EDIT;
|
|
929
1099
|
}
|
|
930
1100
|
/**
|
|
931
1101
|
* Emits form cancel event.
|
|
@@ -973,21 +1143,10 @@ class CreateTenantApplicationComponent {
|
|
|
973
1143
|
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
|
|
974
1144
|
next: (response) => {
|
|
975
1145
|
this.fileUploadService.setFileUploadStatus(true);
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
.
|
|
979
|
-
.
|
|
980
|
-
next: (response) => {
|
|
981
|
-
if (response.status) {
|
|
982
|
-
this.tenantAppService.setTenantBasicInfo(this.createTenantPayload);
|
|
983
|
-
this.submitFormResponse.emit(response);
|
|
984
|
-
}
|
|
985
|
-
},
|
|
986
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
987
|
-
error: (error) => {
|
|
988
|
-
this.sharedService.handleErrors(error, this.createTenantTexts?.errors);
|
|
989
|
-
},
|
|
990
|
-
});
|
|
1146
|
+
// eslint-disable-next-line no-unused-expressions
|
|
1147
|
+
this.tenantFunctionType === TenantFunctionType.EDIT
|
|
1148
|
+
? this.editTenant()
|
|
1149
|
+
: this.createTenant();
|
|
991
1150
|
},
|
|
992
1151
|
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
|
|
993
1152
|
error: (error) => {
|
|
@@ -1019,11 +1178,11 @@ class CreateTenantApplicationComponent {
|
|
|
1019
1178
|
this.destroy$.unsubscribe();
|
|
1020
1179
|
}
|
|
1021
1180
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CreateTenantApplicationComponent, deps: [{ token: i1.FileUploadService }, { token: TenantApplicationsService }, { token: i3.SharedService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1022
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CreateTenantApplicationComponent, isStandalone: true, selector: "ieeesa-create-tenant-application", outputs: { submitFormResponse: "submitFormResponse", formCancel: "formCancel" }, viewQueries: [{ propertyName: "dynamicFormComponent", first: true, predicate: DynamicFormComponent, descendants: true }], ngImport: i0, template: "<ieeesa-dynamic-form\r\n *ngIf=\"createTenantFormGroup\"\r\n class=\"ieeesa-create-tenant-form\"\r\n [leftButtonLabel]=\"leftButtonLabel\"\r\n [rightButtonLabel]=\"rightButtonLabel\"\r\n [isLegendVisible]=\"false\"\r\n [colWidth]=\"colWidth\"\r\n [actionButtonAlign]=\"actionButtonAlign\"\r\n [formGroups]=\"createTenantFormGroup\"\r\n [isLeftButtonNeeded]=\"true\"\r\n (formSubmit)=\"onCreateTenantFormSubmit($event)\"\r\n (formChange)=\"onCreateTenantFormChange($event)\"\r\n (formLeftButtonClicked)=\"onFormCancel()\"\r\n (formGroupsReference)=\"getCreateTenantFormGroupRef($event)\"\r\n (formFileUpload)=\"onFormFileUpload($event)\"\r\n (formColorPickerChange)=\"onColorPickerChange($event)\"\r\n (formRadioOptionSelected)=\"onRadioOptionSelected($event)\"\r\n></ieeesa-dynamic-form>\r\n", styles: [".ieeesa-subtitle{text-align:left;font-family:Calibri Regular;font-size:1.5625rem;letter-spacing:0;color:#000;opacity:1}.ieeesa-body{text-align:left;font-family:Calibri Regular;font-size:1.25rem;letter-spacing:0;color:#000;opacity:1}.ieeesa-display-lg-57{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:3.5625rem;line-height:64px;color:#000;letter-spacing:0}.ieeesa-display-md-45{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.813rem;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-md-47{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.9375rem;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-sm-38{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.375rem;line-height:44px;color:#000;letter-spacing:0}.ieeesa-headline-lg-32{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2rem;line-height:40px;color:#000;letter-spacing:0}.ieeesa-headline-lg-34{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.125rem;line-height:40px;color:#000;letter-spacing:0}.ieeesa-headline-md-30{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.875rem;line-height:36px;color:#000;letter-spacing:0}.ieeesa-headline-sm-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5rem;line-height:32px;color:#00629b;letter-spacing:0}.ieeesa-headline-sm-26{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.625rem;line-height:32px;color:#000;letter-spacing:0}.ieeesa-title-lg-bold-24{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.5rem;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-lg-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5rem;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-md-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125rem;line-height:24px;color:#000;letter-spacing:.009375em}.ieeesa-title-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-title-sm-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1rem;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1rem;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1rem;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-btn-label-lg-bold-16{font-family:Calibri Regular;font-style:normal;font-weight:700;font-size:1rem;line-height:20px;color:#00629b;letter-spacing:.00625em}.ieeesa-label-md-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-label-sm-13{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.8125rem;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1rem;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-18{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.125rem;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125rem;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-md-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:20px;color:#1c1b1f;letter-spacing:.015625em}.ieeesa-body-md-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1rem;line-height:20px;color:#000;letter-spacing:.015625em}.ieeesa-body-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-body-color-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:18px;color:#49454f;letter-spacing:.025em}.ieeesa-body-sm-bold-14{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:.875rem;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-title-inter-lg-bold-24{font-family:Inter Bold;font-style:normal;font-weight:700;font-size:1.5rem;line-height:29px;color:#000;letter-spacing:0}.mat-mdc-button.mat-mdc-button-base.mat-primary-button,.mat-mdc-button.mat-mdc-button-base.mat-secondary-button,.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button,.mat-mdc-button.mat-mdc-button-base.mat-text-button{min-width:103px;width:auto;min-height:40px;height:auto;border-radius:3px;text-align:center;padding:.625em 1.5em;border:none;font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1rem;line-height:20px;color:#000;letter-spacing:.00625em}.mat-mdc-button.mat-mdc-button-base>.mat-icon{margin-right:11px}.mat-mdc-button.mat-mdc-button-base.mat-primary-button{background-color:#00629b;color:#fff}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:hover{background-color:#003e65}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:active{background-color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:disabled{background-color:#1c1b1f1f}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button{color:#fff;background:#a7a8aa;box-shadow:0 1px 2px #0000004d,0 2px 6px 2px #00000026}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:hover{background:#a7a8aa}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:active{background:#1d192b1f}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:disabled{background:#1c1b1f1f;color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button{background-color:#fff;border:1px solid #00629b;color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:hover{background-color:#6750a414}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:active{background:#6750a41f}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:disabled{border:1px solid rgba(28,27,31,.12);color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-text-button{color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-text-button:hover,.mat-mdc-button.mat-mdc-button-base.mat-text-button:active{background:#6750a414}.mat-mdc-button.mat-mdc-button-base.mat-text-button:disabled{color:#1c1b1f;opacity:.38}.ieeesa-text-button{color:#cac4d0;background:none;border:none}.ieeesa-view-more-or-less-button{border:none;background:none;text-decoration:underline;color:#00629b}.flex-align-center{display:flex;align-items:center;justify-content:center}.mat-button-toggle-checked{background-color:#a7a8aa}.mat-button-toggle-checked .mat-button-toggle-label-content:before{font-family:\"Font Awesome 5 Free\";font-weight:900;content:\"\\f00c\";padding-right:.5625em}.mat-button-toggle-group .mat-button-toggle-label-content{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1rem;line-height:20px;color:#1c1b1f;letter-spacing:.00625em}.no-bg-color-btn{color:#00629b;border-radius:3px;border:1px solid #00629b;min-height:40px;height:auto}@media (max-width: 768px){.mat-button-toggle-group .mat-button-toggle-label-content{max-width:8ch;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:relative}}.cdk-overlay-pane .mat-mdc-tooltip .mdc-tooltip__surface{color:#525252;padding:6px 12px;font-family:Calibri Regular;font-size:1rem;border:1px solid #cac4d0;background:#fff;box-shadow:0 4px 8px #00000040;max-width:unset!important}.cdk-overlay-pane .mat-mdc-option .mdc-list-item__primary-text{font-family:Calibri Regular!important}.cdk-overlay-pane.ieeesa-modal-confirm-dialog,.cdk-overlay-pane.ieeesa-modal-dialog,.cdk-overlay-pane.ieeesa-alert-dialog{width:100%;min-width:312px}.mat-mdc-form-field{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1rem;line-height:24px;color:#49454f;letter-spacing:.03125em}.ieeesa-modal-dialog.ieeesa-create-tenant{max-width:60vw!important}.ieeesa-modal-dialog.ieeesa-create-tenant .mat-mdc-dialog-container{box-shadow:none}.ieeesa-modal-dialog.ieeesa-create-tenant .mat-mdc-dialog-surface{border-radius:0;margin:1em 0}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal{box-shadow:0 3px #11b7e5 inset,0 4px 24px #00000080;padding-bottom:.5em}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .mat-mdc-dialog-content{padding:1.5em 1em .75em!important}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal-title{margin-left:15px!important}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__actions{flex-direction:row-reverse;gap:.5em;padding:2em 1em .75em;margin-top:2em}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field{margin-bottom:1em;padding-top:0!important}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field__content,.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mdc-label{color:#49454f}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mdc-label{padding-left:0}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field__resize{resize:vertical}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field:not(.app-description,.app-logo){width:90%}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .mat-mdc-form-field-flex{width:62.5em}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field .mat-mdc-form-field{display:flex;min-height:40px}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field .mat-mdc-text-field-wrapper{padding:.5em 1em}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field__label,.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field__support-text{color:#49454f}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-form-error--text{padding:.25em 1em 0}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .mat-mdc-form-field-subscript-wrapper{display:none}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field__content{position:relative;bottom:10px}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field__icon--warning{position:relative;bottom:6px}@media (max-width: 767px){.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field:not(.app-description,.app-logo){width:100%}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DynamicFormComponent, selector: "ieeesa-dynamic-form", inputs: ["formGroups", "submitResponse", "searchResponse", "colWidth", "isLegendVisible", "rightButtonLabel", "leftButtonLabel", "isSubmitButtonDisabled", "isLeftButtonDisabled", "isLeftButtonNeeded", "actionButtonAlign"], outputs: ["formSubmit", "formChange", "formInput", "formLeftButtonClicked", "formSearchApply", "formGroupsReference", "dropdownChange", "formCheckboxSelection", "formDateSelected", "formSelectSearch", "formControlChange", "formAutoCompleteSearch", "formAutoCompleteClearSearchValue", "autoCompleteOptionSelected", "formAfterContentInit", "formSelectedDateRange", "addFormGroup", "formTimeSelected", "supportTextLinkClick", "formSlideToggleChange", "formFileUpload", "dropdownOpenedChange", "formColorPickerChange", "formRadioOptionSelected"], exportAs: ["dynamicForm"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
1181
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CreateTenantApplicationComponent, isStandalone: true, selector: "ieeesa-create-tenant-application", outputs: { submitFormResponse: "submitFormResponse", formCancel: "formCancel" }, viewQueries: [{ propertyName: "dynamicFormComponent", first: true, predicate: DynamicFormComponent, descendants: true }], ngImport: i0, template: "<ieeesa-dynamic-form\r\n *ngIf=\"createTenantFormGroup\"\r\n class=\"ieeesa-create-tenant-form\"\r\n [leftButtonLabel]=\"leftButtonLabel\"\r\n [rightButtonLabel]=\"rightButtonLabel\"\r\n [isLegendVisible]=\"false\"\r\n [colWidth]=\"colWidth\"\r\n [actionButtonAlign]=\"actionButtonAlign\"\r\n [formGroups]=\"createTenantFormGroup\"\r\n [isLeftButtonNeeded]=\"true\"\r\n (formSubmit)=\"onCreateTenantFormSubmit($event)\"\r\n (formChange)=\"onCreateTenantFormChange($event)\"\r\n (formLeftButtonClicked)=\"onFormCancel()\"\r\n (formGroupsReference)=\"getCreateTenantFormGroupRef($event)\"\r\n (formFileUpload)=\"onFormFileUpload($event)\"\r\n (formColorPickerChange)=\"onColorPickerChange($event)\"\r\n (formRadioOptionSelected)=\"onRadioOptionSelected($event)\"\r\n></ieeesa-dynamic-form>\r\n", styles: [".ieeesa-subtitle{text-align:left;font-family:Calibri Regular;font-size:1.5625rem;letter-spacing:0;color:#000;opacity:1}.ieeesa-body{text-align:left;font-family:Calibri Regular;font-size:1.25rem;letter-spacing:0;color:#000;opacity:1}.ieeesa-display-lg-57{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:3.5625rem;line-height:64px;color:#000;letter-spacing:0}.ieeesa-display-md-45{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.813rem;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-md-47{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.9375rem;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-sm-38{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.375rem;line-height:44px;color:#000;letter-spacing:0}.ieeesa-headline-lg-32{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2rem;line-height:40px;color:#000;letter-spacing:0}.ieeesa-headline-lg-34{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.125rem;line-height:40px;color:#000;letter-spacing:0}.ieeesa-headline-md-30{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.875rem;line-height:36px;color:#000;letter-spacing:0}.ieeesa-headline-sm-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5rem;line-height:32px;color:#00629b;letter-spacing:0}.ieeesa-headline-sm-26{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.625rem;line-height:32px;color:#000;letter-spacing:0}.ieeesa-title-lg-bold-24{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.5rem;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-lg-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5rem;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-md-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125rem;line-height:24px;color:#000;letter-spacing:.009375em}.ieeesa-title-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-title-sm-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1rem;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1rem;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1rem;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-btn-label-lg-bold-16{font-family:Calibri Regular;font-style:normal;font-weight:700;font-size:1rem;line-height:20px;color:#00629b;letter-spacing:.00625em}.ieeesa-label-md-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-label-sm-13{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.8125rem;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1rem;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-18{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.125rem;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125rem;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-md-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:20px;color:#1c1b1f;letter-spacing:.015625em}.ieeesa-body-md-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1rem;line-height:20px;color:#000;letter-spacing:.015625em}.ieeesa-body-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-body-color-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:18px;color:#49454f;letter-spacing:.025em}.ieeesa-body-sm-bold-14{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:.875rem;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-title-inter-lg-bold-24{font-family:Inter Bold;font-style:normal;font-weight:700;font-size:1.5rem;line-height:29px;color:#000;letter-spacing:0}.mat-mdc-button.mat-mdc-button-base.mat-primary-button,.mat-mdc-button.mat-mdc-button-base.mat-secondary-button,.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button,.mat-mdc-button.mat-mdc-button-base.mat-text-button{min-width:103px;width:auto;min-height:40px;height:auto;border-radius:3px;text-align:center;padding:.625em 1.5em;border:none;font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1rem;line-height:20px;color:#000;letter-spacing:.00625em}.mat-mdc-button.mat-mdc-button-base>.mat-icon{margin-right:11px}.mat-mdc-button.mat-mdc-button-base.mat-primary-button{background-color:#00629b;color:#fff}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:hover{background-color:#003e65}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:active{background-color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:disabled{background-color:#1c1b1f1f}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button{color:#fff;background:#a7a8aa;box-shadow:0 1px 2px #0000004d,0 2px 6px 2px #00000026}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:hover{background:#a7a8aa}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:active{background:#1d192b1f}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:disabled{background:#1c1b1f1f;color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button{background-color:#fff;border:1px solid #00629b;color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:hover{background-color:#6750a414}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:active{background:#6750a41f}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:disabled{border:1px solid rgba(28,27,31,.12);color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-text-button{color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-text-button:hover,.mat-mdc-button.mat-mdc-button-base.mat-text-button:active{background:#6750a414}.mat-mdc-button.mat-mdc-button-base.mat-text-button:disabled{color:#1c1b1f;opacity:.38}.ieeesa-text-button{color:#cac4d0;background:none;border:none}.ieeesa-view-more-or-less-button{border:none;background:none;text-decoration:underline;color:#00629b}.flex-align-center{display:flex;align-items:center;justify-content:center}.mat-button-toggle-checked{background-color:#a7a8aa}.mat-button-toggle-checked .mat-button-toggle-label-content:before{font-family:\"Font Awesome 5 Free\";font-weight:900;content:\"\\f00c\";padding-right:.5625em}.mat-button-toggle-group .mat-button-toggle-label-content{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1rem;line-height:20px;color:#1c1b1f;letter-spacing:.00625em}.no-bg-color-btn{color:#00629b;border-radius:3px;border:1px solid #00629b;min-height:40px;height:auto}@media (max-width: 768px){.mat-button-toggle-group .mat-button-toggle-label-content{max-width:8ch;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:relative}}.cdk-overlay-pane .mat-mdc-tooltip .mdc-tooltip__surface{color:#525252;padding:6px 12px;font-family:Calibri Regular;font-size:1rem;border:1px solid #cac4d0;background:#fff;box-shadow:0 4px 8px #00000040;max-width:unset!important}.cdk-overlay-pane .mat-mdc-option .mdc-list-item__primary-text{font-family:Calibri Regular!important}.cdk-overlay-pane.ieeesa-modal-confirm-dialog,.cdk-overlay-pane.ieeesa-modal-dialog,.cdk-overlay-pane.ieeesa-alert-dialog{width:100%;min-width:312px}.mat-mdc-form-field{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1rem;line-height:24px;color:#49454f;letter-spacing:.03125em}.ieeesa-modal-dialog.ieeesa-create-tenant,.ieeesa-modal-dialog.ieeesa-edit-tenant{max-width:60vw!important}.ieeesa-modal-dialog.ieeesa-create-tenant .mat-mdc-dialog-container,.ieeesa-modal-dialog.ieeesa-edit-tenant .mat-mdc-dialog-container{box-shadow:none}.ieeesa-modal-dialog.ieeesa-create-tenant .mat-mdc-dialog-surface,.ieeesa-modal-dialog.ieeesa-edit-tenant .mat-mdc-dialog-surface{border-radius:0;margin:1em 0}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal{box-shadow:0 3px #11b7e5 inset,0 4px 24px #00000080;padding-bottom:.5em}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .mat-mdc-dialog-content,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .mat-mdc-dialog-content{padding:1.5em 1em .75em!important}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal-title,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal-title{margin-left:15px!important}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__actions,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-dynamic-form__actions{flex-direction:row-reverse;gap:.5em;padding:2em 1em .75em;margin-top:2em}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field{margin-bottom:1em;padding-top:0!important}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field__content,.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mdc-label,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field__content,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mdc-label{color:#49454f}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mdc-label,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mdc-label{padding-left:0}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field__resize,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field__resize{resize:vertical}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field:not(.app-description,.app-logo),.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field:not(.app-description,.app-logo){width:90%}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .mat-mdc-form-field-flex,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .mat-mdc-form-field-flex{width:62.5em}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field .mat-mdc-form-field,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-input-field .mat-mdc-form-field{display:flex;min-height:40px}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field .mat-mdc-text-field-wrapper,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-input-field .mat-mdc-text-field-wrapper{padding:.5em 1em}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field__label,.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field__support-text,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-input-field__label,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-input-field__support-text{color:#49454f}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-form-error--text,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-form-error--text{padding:.25em 1em 0}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .mat-mdc-form-field-subscript-wrapper,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .mat-mdc-form-field-subscript-wrapper{display:none}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field__content,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-input-field__content{position:relative;bottom:10px}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field__icon--warning,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-input-field__icon--warning{position:relative;bottom:6px}@media (max-width: 767px){.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field:not(.app-description,.app-logo),.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field:not(.app-description,.app-logo){width:100%}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DynamicFormComponent, selector: "ieeesa-dynamic-form", inputs: ["formGroups", "submitResponse", "searchResponse", "colWidth", "isLegendVisible", "rightButtonLabel", "leftButtonLabel", "isSubmitButtonDisabled", "isLeftButtonDisabled", "isLeftButtonNeeded", "actionButtonAlign"], outputs: ["formSubmit", "formChange", "formInput", "formLeftButtonClicked", "formSearchApply", "formGroupsReference", "dropdownChange", "formCheckboxSelection", "formDateSelected", "formSelectSearch", "formControlChange", "formAutoCompleteSearch", "formAutoCompleteClearSearchValue", "autoCompleteOptionSelected", "formAfterContentInit", "formSelectedDateRange", "addFormGroup", "formTimeSelected", "supportTextLinkClick", "formSlideToggleChange", "formFileUpload", "dropdownOpenedChange", "formColorPickerChange", "formRadioOptionSelected"], exportAs: ["dynamicForm"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
1023
1182
|
}
|
|
1024
1183
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CreateTenantApplicationComponent, decorators: [{
|
|
1025
1184
|
type: Component,
|
|
1026
|
-
args: [{ selector: 'ieeesa-create-tenant-application', standalone: true, imports: [CommonModule, DynamicFormComponent], encapsulation: ViewEncapsulation.None, template: "<ieeesa-dynamic-form\r\n *ngIf=\"createTenantFormGroup\"\r\n class=\"ieeesa-create-tenant-form\"\r\n [leftButtonLabel]=\"leftButtonLabel\"\r\n [rightButtonLabel]=\"rightButtonLabel\"\r\n [isLegendVisible]=\"false\"\r\n [colWidth]=\"colWidth\"\r\n [actionButtonAlign]=\"actionButtonAlign\"\r\n [formGroups]=\"createTenantFormGroup\"\r\n [isLeftButtonNeeded]=\"true\"\r\n (formSubmit)=\"onCreateTenantFormSubmit($event)\"\r\n (formChange)=\"onCreateTenantFormChange($event)\"\r\n (formLeftButtonClicked)=\"onFormCancel()\"\r\n (formGroupsReference)=\"getCreateTenantFormGroupRef($event)\"\r\n (formFileUpload)=\"onFormFileUpload($event)\"\r\n (formColorPickerChange)=\"onColorPickerChange($event)\"\r\n (formRadioOptionSelected)=\"onRadioOptionSelected($event)\"\r\n></ieeesa-dynamic-form>\r\n", styles: [".ieeesa-subtitle{text-align:left;font-family:Calibri Regular;font-size:1.5625rem;letter-spacing:0;color:#000;opacity:1}.ieeesa-body{text-align:left;font-family:Calibri Regular;font-size:1.25rem;letter-spacing:0;color:#000;opacity:1}.ieeesa-display-lg-57{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:3.5625rem;line-height:64px;color:#000;letter-spacing:0}.ieeesa-display-md-45{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.813rem;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-md-47{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.9375rem;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-sm-38{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.375rem;line-height:44px;color:#000;letter-spacing:0}.ieeesa-headline-lg-32{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2rem;line-height:40px;color:#000;letter-spacing:0}.ieeesa-headline-lg-34{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.125rem;line-height:40px;color:#000;letter-spacing:0}.ieeesa-headline-md-30{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.875rem;line-height:36px;color:#000;letter-spacing:0}.ieeesa-headline-sm-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5rem;line-height:32px;color:#00629b;letter-spacing:0}.ieeesa-headline-sm-26{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.625rem;line-height:32px;color:#000;letter-spacing:0}.ieeesa-title-lg-bold-24{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.5rem;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-lg-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5rem;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-md-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125rem;line-height:24px;color:#000;letter-spacing:.009375em}.ieeesa-title-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-title-sm-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1rem;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1rem;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1rem;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-btn-label-lg-bold-16{font-family:Calibri Regular;font-style:normal;font-weight:700;font-size:1rem;line-height:20px;color:#00629b;letter-spacing:.00625em}.ieeesa-label-md-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-label-sm-13{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.8125rem;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1rem;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-18{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.125rem;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125rem;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-md-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:20px;color:#1c1b1f;letter-spacing:.015625em}.ieeesa-body-md-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1rem;line-height:20px;color:#000;letter-spacing:.015625em}.ieeesa-body-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-body-color-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:18px;color:#49454f;letter-spacing:.025em}.ieeesa-body-sm-bold-14{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:.875rem;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-title-inter-lg-bold-24{font-family:Inter Bold;font-style:normal;font-weight:700;font-size:1.5rem;line-height:29px;color:#000;letter-spacing:0}.mat-mdc-button.mat-mdc-button-base.mat-primary-button,.mat-mdc-button.mat-mdc-button-base.mat-secondary-button,.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button,.mat-mdc-button.mat-mdc-button-base.mat-text-button{min-width:103px;width:auto;min-height:40px;height:auto;border-radius:3px;text-align:center;padding:.625em 1.5em;border:none;font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1rem;line-height:20px;color:#000;letter-spacing:.00625em}.mat-mdc-button.mat-mdc-button-base>.mat-icon{margin-right:11px}.mat-mdc-button.mat-mdc-button-base.mat-primary-button{background-color:#00629b;color:#fff}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:hover{background-color:#003e65}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:active{background-color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:disabled{background-color:#1c1b1f1f}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button{color:#fff;background:#a7a8aa;box-shadow:0 1px 2px #0000004d,0 2px 6px 2px #00000026}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:hover{background:#a7a8aa}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:active{background:#1d192b1f}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:disabled{background:#1c1b1f1f;color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button{background-color:#fff;border:1px solid #00629b;color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:hover{background-color:#6750a414}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:active{background:#6750a41f}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:disabled{border:1px solid rgba(28,27,31,.12);color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-text-button{color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-text-button:hover,.mat-mdc-button.mat-mdc-button-base.mat-text-button:active{background:#6750a414}.mat-mdc-button.mat-mdc-button-base.mat-text-button:disabled{color:#1c1b1f;opacity:.38}.ieeesa-text-button{color:#cac4d0;background:none;border:none}.ieeesa-view-more-or-less-button{border:none;background:none;text-decoration:underline;color:#00629b}.flex-align-center{display:flex;align-items:center;justify-content:center}.mat-button-toggle-checked{background-color:#a7a8aa}.mat-button-toggle-checked .mat-button-toggle-label-content:before{font-family:\"Font Awesome 5 Free\";font-weight:900;content:\"\\f00c\";padding-right:.5625em}.mat-button-toggle-group .mat-button-toggle-label-content{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1rem;line-height:20px;color:#1c1b1f;letter-spacing:.00625em}.no-bg-color-btn{color:#00629b;border-radius:3px;border:1px solid #00629b;min-height:40px;height:auto}@media (max-width: 768px){.mat-button-toggle-group .mat-button-toggle-label-content{max-width:8ch;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:relative}}.cdk-overlay-pane .mat-mdc-tooltip .mdc-tooltip__surface{color:#525252;padding:6px 12px;font-family:Calibri Regular;font-size:1rem;border:1px solid #cac4d0;background:#fff;box-shadow:0 4px 8px #00000040;max-width:unset!important}.cdk-overlay-pane .mat-mdc-option .mdc-list-item__primary-text{font-family:Calibri Regular!important}.cdk-overlay-pane.ieeesa-modal-confirm-dialog,.cdk-overlay-pane.ieeesa-modal-dialog,.cdk-overlay-pane.ieeesa-alert-dialog{width:100%;min-width:312px}.mat-mdc-form-field{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1rem;line-height:24px;color:#49454f;letter-spacing:.03125em}.ieeesa-modal-dialog.ieeesa-create-tenant{max-width:60vw!important}.ieeesa-modal-dialog.ieeesa-create-tenant .mat-mdc-dialog-container{box-shadow:none}.ieeesa-modal-dialog.ieeesa-create-tenant .mat-mdc-dialog-surface{border-radius:0;margin:1em 0}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal{box-shadow:0 3px #11b7e5 inset,0 4px 24px #00000080;padding-bottom:.5em}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .mat-mdc-dialog-content{padding:1.5em 1em .75em!important}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal-title{margin-left:15px!important}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__actions{flex-direction:row-reverse;gap:.5em;padding:2em 1em .75em;margin-top:2em}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field{margin-bottom:1em;padding-top:0!important}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field__content,.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mdc-label{color:#49454f}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mdc-label{padding-left:0}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field__resize{resize:vertical}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field:not(.app-description,.app-logo){width:90%}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .mat-mdc-form-field-flex{width:62.5em}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field .mat-mdc-form-field{display:flex;min-height:40px}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field .mat-mdc-text-field-wrapper{padding:.5em 1em}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field__label,.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field__support-text{color:#49454f}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-form-error--text{padding:.25em 1em 0}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .mat-mdc-form-field-subscript-wrapper{display:none}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field__content{position:relative;bottom:10px}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field__icon--warning{position:relative;bottom:6px}@media (max-width: 767px){.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field:not(.app-description,.app-logo){width:100%}}\n"] }]
|
|
1185
|
+
args: [{ selector: 'ieeesa-create-tenant-application', standalone: true, imports: [CommonModule, DynamicFormComponent], encapsulation: ViewEncapsulation.None, template: "<ieeesa-dynamic-form\r\n *ngIf=\"createTenantFormGroup\"\r\n class=\"ieeesa-create-tenant-form\"\r\n [leftButtonLabel]=\"leftButtonLabel\"\r\n [rightButtonLabel]=\"rightButtonLabel\"\r\n [isLegendVisible]=\"false\"\r\n [colWidth]=\"colWidth\"\r\n [actionButtonAlign]=\"actionButtonAlign\"\r\n [formGroups]=\"createTenantFormGroup\"\r\n [isLeftButtonNeeded]=\"true\"\r\n (formSubmit)=\"onCreateTenantFormSubmit($event)\"\r\n (formChange)=\"onCreateTenantFormChange($event)\"\r\n (formLeftButtonClicked)=\"onFormCancel()\"\r\n (formGroupsReference)=\"getCreateTenantFormGroupRef($event)\"\r\n (formFileUpload)=\"onFormFileUpload($event)\"\r\n (formColorPickerChange)=\"onColorPickerChange($event)\"\r\n (formRadioOptionSelected)=\"onRadioOptionSelected($event)\"\r\n></ieeesa-dynamic-form>\r\n", styles: [".ieeesa-subtitle{text-align:left;font-family:Calibri Regular;font-size:1.5625rem;letter-spacing:0;color:#000;opacity:1}.ieeesa-body{text-align:left;font-family:Calibri Regular;font-size:1.25rem;letter-spacing:0;color:#000;opacity:1}.ieeesa-display-lg-57{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:3.5625rem;line-height:64px;color:#000;letter-spacing:0}.ieeesa-display-md-45{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.813rem;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-md-47{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.9375rem;line-height:52px;color:#000;letter-spacing:0}.ieeesa-display-sm-38{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.375rem;line-height:44px;color:#000;letter-spacing:0}.ieeesa-headline-lg-32{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2rem;line-height:40px;color:#000;letter-spacing:0}.ieeesa-headline-lg-34{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:2.125rem;line-height:40px;color:#000;letter-spacing:0}.ieeesa-headline-md-30{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.875rem;line-height:36px;color:#000;letter-spacing:0}.ieeesa-headline-sm-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5rem;line-height:32px;color:#00629b;letter-spacing:0}.ieeesa-headline-sm-26{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.625rem;line-height:32px;color:#000;letter-spacing:0}.ieeesa-title-lg-bold-24{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.5rem;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-lg-24{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.5rem;line-height:28px;color:#000;letter-spacing:0}.ieeesa-title-md-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125rem;line-height:24px;color:#000;letter-spacing:.009375em}.ieeesa-title-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-title-sm-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1rem;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1rem;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-label-lg-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1rem;line-height:20px;color:#000;letter-spacing:.00625em}.ieeesa-btn-label-lg-bold-16{font-family:Calibri Regular;font-style:normal;font-weight:700;font-size:1rem;line-height:20px;color:#00629b;letter-spacing:.00625em}.ieeesa-label-md-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-label-sm-13{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.8125rem;line-height:16px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-16{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1rem;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-bold-18{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1.125rem;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-lg-18{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1.125rem;line-height:24px;color:#000;letter-spacing:.03125em}.ieeesa-body-md-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:20px;color:#1c1b1f;letter-spacing:.015625em}.ieeesa-body-md-16{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1rem;line-height:20px;color:#000;letter-spacing:.015625em}.ieeesa-body-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-body-color-sm-14{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:.875rem;line-height:18px;color:#49454f;letter-spacing:.025em}.ieeesa-body-sm-bold-14{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:.875rem;line-height:16px;color:#000;letter-spacing:.025em}.ieeesa-title-inter-lg-bold-24{font-family:Inter Bold;font-style:normal;font-weight:700;font-size:1.5rem;line-height:29px;color:#000;letter-spacing:0}.mat-mdc-button.mat-mdc-button-base.mat-primary-button,.mat-mdc-button.mat-mdc-button-base.mat-secondary-button,.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button,.mat-mdc-button.mat-mdc-button-base.mat-text-button{min-width:103px;width:auto;min-height:40px;height:auto;border-radius:3px;text-align:center;padding:.625em 1.5em;border:none;font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1rem;line-height:20px;color:#000;letter-spacing:.00625em}.mat-mdc-button.mat-mdc-button-base>.mat-icon{margin-right:11px}.mat-mdc-button.mat-mdc-button-base.mat-primary-button{background-color:#00629b;color:#fff}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:hover{background-color:#003e65}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:active{background-color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-primary-button:disabled{background-color:#1c1b1f1f}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button{color:#fff;background:#a7a8aa;box-shadow:0 1px 2px #0000004d,0 2px 6px 2px #00000026}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:hover{background:#a7a8aa}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:active{background:#1d192b1f}.mat-mdc-button.mat-mdc-button-base.mat-secondary-button:disabled{background:#1c1b1f1f;color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button{background-color:#fff;border:1px solid #00629b;color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:hover{background-color:#6750a414}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:active{background:#6750a41f}.mat-mdc-button.mat-mdc-button-base.mat-tertiary-button:disabled{border:1px solid rgba(28,27,31,.12);color:#1c1b1f;opacity:.38}.mat-mdc-button.mat-mdc-button-base.mat-text-button{color:#00629b}.mat-mdc-button.mat-mdc-button-base.mat-text-button:hover,.mat-mdc-button.mat-mdc-button-base.mat-text-button:active{background:#6750a414}.mat-mdc-button.mat-mdc-button-base.mat-text-button:disabled{color:#1c1b1f;opacity:.38}.ieeesa-text-button{color:#cac4d0;background:none;border:none}.ieeesa-view-more-or-less-button{border:none;background:none;text-decoration:underline;color:#00629b}.flex-align-center{display:flex;align-items:center;justify-content:center}.mat-button-toggle-checked{background-color:#a7a8aa}.mat-button-toggle-checked .mat-button-toggle-label-content:before{font-family:\"Font Awesome 5 Free\";font-weight:900;content:\"\\f00c\";padding-right:.5625em}.mat-button-toggle-group .mat-button-toggle-label-content{font-family:Calibri Bold;font-style:normal;font-weight:700;font-size:1rem;line-height:20px;color:#1c1b1f;letter-spacing:.00625em}.no-bg-color-btn{color:#00629b;border-radius:3px;border:1px solid #00629b;min-height:40px;height:auto}@media (max-width: 768px){.mat-button-toggle-group .mat-button-toggle-label-content{max-width:8ch;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;position:relative}}.cdk-overlay-pane .mat-mdc-tooltip .mdc-tooltip__surface{color:#525252;padding:6px 12px;font-family:Calibri Regular;font-size:1rem;border:1px solid #cac4d0;background:#fff;box-shadow:0 4px 8px #00000040;max-width:unset!important}.cdk-overlay-pane .mat-mdc-option .mdc-list-item__primary-text{font-family:Calibri Regular!important}.cdk-overlay-pane.ieeesa-modal-confirm-dialog,.cdk-overlay-pane.ieeesa-modal-dialog,.cdk-overlay-pane.ieeesa-alert-dialog{width:100%;min-width:312px}.mat-mdc-form-field{font-family:Calibri Regular;font-style:normal;font-weight:400;font-size:1rem;line-height:24px;color:#49454f;letter-spacing:.03125em}.ieeesa-modal-dialog.ieeesa-create-tenant,.ieeesa-modal-dialog.ieeesa-edit-tenant{max-width:60vw!important}.ieeesa-modal-dialog.ieeesa-create-tenant .mat-mdc-dialog-container,.ieeesa-modal-dialog.ieeesa-edit-tenant .mat-mdc-dialog-container{box-shadow:none}.ieeesa-modal-dialog.ieeesa-create-tenant .mat-mdc-dialog-surface,.ieeesa-modal-dialog.ieeesa-edit-tenant .mat-mdc-dialog-surface{border-radius:0;margin:1em 0}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal{box-shadow:0 3px #11b7e5 inset,0 4px 24px #00000080;padding-bottom:.5em}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .mat-mdc-dialog-content,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .mat-mdc-dialog-content{padding:1.5em 1em .75em!important}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal-title,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal-title{margin-left:15px!important}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__actions,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-dynamic-form__actions{flex-direction:row-reverse;gap:.5em;padding:2em 1em .75em;margin-top:2em}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field{margin-bottom:1em;padding-top:0!important}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field__content,.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mdc-label,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field__content,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mdc-label{color:#49454f}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mdc-label,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field .mdc-label{padding-left:0}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field__resize,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field .ieeesa-text-area-field__resize{resize:vertical}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field:not(.app-description,.app-logo),.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field:not(.app-description,.app-logo){width:90%}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .mat-mdc-form-field-flex,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .mat-mdc-form-field-flex{width:62.5em}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field .mat-mdc-form-field,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-input-field .mat-mdc-form-field{display:flex;min-height:40px}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field .mat-mdc-text-field-wrapper,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-input-field .mat-mdc-text-field-wrapper{padding:.5em 1em}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field__label,.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field__support-text,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-input-field__label,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-input-field__support-text{color:#49454f}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-form-error--text,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-form-error--text{padding:.25em 1em 0}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .mat-mdc-form-field-subscript-wrapper,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .mat-mdc-form-field-subscript-wrapper{display:none}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field__content,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-input-field__content{position:relative;bottom:10px}.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-input-field__icon--warning,.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-input-field__icon--warning{position:relative;bottom:6px}@media (max-width: 767px){.ieeesa-modal-dialog.ieeesa-create-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field:not(.app-description,.app-logo),.ieeesa-modal-dialog.ieeesa-edit-tenant .ieeesa-modal .ieeesa-dynamic-form__form-field:not(.app-description,.app-logo){width:100%}}\n"] }]
|
|
1027
1186
|
}], ctorParameters: function () { return [{ type: i1.FileUploadService }, { type: TenantApplicationsService }, { type: i3.SharedService }]; }, propDecorators: { dynamicFormComponent: [{
|
|
1028
1187
|
type: ViewChild,
|
|
1029
1188
|
args: [DynamicFormComponent]
|
|
@@ -1210,6 +1369,7 @@ class ViewTenantsListComponent {
|
|
|
1210
1369
|
* @memberof ViewTenantsListComponent
|
|
1211
1370
|
*/
|
|
1212
1371
|
openCreateTenantForm() {
|
|
1372
|
+
this.tenantApplicationsService.setTenantFunctionType(TenantFunctionType.CREATE);
|
|
1213
1373
|
const dialogOptions = {
|
|
1214
1374
|
heading: this.viewTenantsConstants?.addTenant,
|
|
1215
1375
|
isCloseNeeded: true,
|
|
@@ -1241,7 +1401,7 @@ class ViewTenantsListComponent {
|
|
|
1241
1401
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, no-unused-vars
|
|
1242
1402
|
.subscribe((result) => {
|
|
1243
1403
|
this.dialogRef?.close();
|
|
1244
|
-
const appTitle = this.tenantApplicationsService.
|
|
1404
|
+
const appTitle = this.tenantApplicationsService.getNewTenantInfo?.appTitle;
|
|
1245
1405
|
this.sharedService.showAlertMessage(AlertType?.SUCCESS, `${appTitle} ${this.createTenantScreenTexts?.message?.success?.submission}`);
|
|
1246
1406
|
this.getTenantsAndInitializeTableView({
|
|
1247
1407
|
payload: {
|
|
@@ -1402,6 +1562,8 @@ class ViewTenantDetailsComponent {
|
|
|
1402
1562
|
this.tableActions = {
|
|
1403
1563
|
isPaginationNeeded: true,
|
|
1404
1564
|
};
|
|
1565
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1566
|
+
this.editTenantScreenTexts = this.constants?.editTenant;
|
|
1405
1567
|
this.alignmentType = AlignType;
|
|
1406
1568
|
this.breakpointObserverService
|
|
1407
1569
|
.getBreakpoint()
|
|
@@ -1435,6 +1597,7 @@ class ViewTenantDetailsComponent {
|
|
|
1435
1597
|
next: (response) => {
|
|
1436
1598
|
if (response?.status) {
|
|
1437
1599
|
this.tenantDetails = response?.body;
|
|
1600
|
+
this.tenantAppService.setSelectedTenantInformation(this.tenantDetails);
|
|
1438
1601
|
this.slideToggleOption.checked = this.tenantDetails
|
|
1439
1602
|
.status;
|
|
1440
1603
|
this.slideToggleOption.label = this.tenantDetails.status
|
|
@@ -1582,6 +1745,51 @@ class ViewTenantDetailsComponent {
|
|
|
1582
1745
|
trackByAccordionFn(index, item) {
|
|
1583
1746
|
return item?.id;
|
|
1584
1747
|
}
|
|
1748
|
+
/**
|
|
1749
|
+
* Sets the dialog options for edit tenant modal and calls openModal method.
|
|
1750
|
+
* @return -returns nothing
|
|
1751
|
+
* @memberof ViewTenantDetailsComponent
|
|
1752
|
+
*/
|
|
1753
|
+
openEditTenantForm() {
|
|
1754
|
+
this.tenantAppService?.setTenantFunctionType(TenantFunctionType?.EDIT);
|
|
1755
|
+
const dialogOptions = {
|
|
1756
|
+
heading: this.tenantDetails?.appTitle,
|
|
1757
|
+
isCloseNeeded: true,
|
|
1758
|
+
componentReference: CreateTenantApplicationComponent,
|
|
1759
|
+
modalType: ModalType.FORM,
|
|
1760
|
+
};
|
|
1761
|
+
this.openModal(dialogOptions, 'ieeesa-edit-tenant');
|
|
1762
|
+
}
|
|
1763
|
+
/**
|
|
1764
|
+
* Opens modal component with received params and handles form submission success and errors.
|
|
1765
|
+
* @param {*} dialogOptions
|
|
1766
|
+
* @param {string} [className]
|
|
1767
|
+
* @return -returns nothing
|
|
1768
|
+
* @memberof ViewTenantsDetailsComponent
|
|
1769
|
+
*/
|
|
1770
|
+
openModal(
|
|
1771
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1772
|
+
dialogOptions, className) {
|
|
1773
|
+
className = className ?? '';
|
|
1774
|
+
this.dialogRef = this.dialog?.open(ModalComponent, {
|
|
1775
|
+
data: dialogOptions,
|
|
1776
|
+
width: '',
|
|
1777
|
+
panelClass: ['ieeesa-modal-dialog', className],
|
|
1778
|
+
ariaModal: true,
|
|
1779
|
+
});
|
|
1780
|
+
this.dialogRef?.componentInstance?.submitFormResponse
|
|
1781
|
+
.pipe(takeUntil(this.destroy$))
|
|
1782
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, no-unused-vars
|
|
1783
|
+
.subscribe((result) => {
|
|
1784
|
+
this.dialogRef?.close();
|
|
1785
|
+
this.sharedService.showAlertMessage(AlertType?.SUCCESS, `${this.tenantDetails?.appTitle} ${this.editTenantScreenTexts?.message?.success?.submission}`);
|
|
1786
|
+
});
|
|
1787
|
+
this.dialogRef?.componentInstance?.formCancel
|
|
1788
|
+
.pipe(takeUntil(this.destroy$))
|
|
1789
|
+
.subscribe(() => {
|
|
1790
|
+
this.dialogRef?.close();
|
|
1791
|
+
});
|
|
1792
|
+
}
|
|
1585
1793
|
/**
|
|
1586
1794
|
* Calls openTenantStatusConfirmationModal to change the status of tenant on slide toggle change.
|
|
1587
1795
|
* @param {SlideToggleOption} slideToggleOption
|
|
@@ -1737,5 +1945,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1737
1945
|
* Generated bundle index. Do not edit.
|
|
1738
1946
|
*/
|
|
1739
1947
|
|
|
1740
|
-
export { AppType, CreateTenantApplicationComponent, FeaturePermissionId, FormStatus, PermissionType, SortOrderBy, TenantApplicationsComponent, TenantApplicationsModule, TenantApplicationsService, TenantPermissionsMapService, TenantPermissionsService, TenantStatus, TenantsValidationPatterns, ViewTenantDetailsComponent, ViewTenantsColumnSchemaDef, ViewTenantsListComponent };
|
|
1948
|
+
export { AppType, CreateTenantApplicationComponent, FeaturePermissionId, FormStatus, PermissionType, SortOrderBy, TenantApplicationsComponent, TenantApplicationsModule, TenantApplicationsService, TenantFunctionType, TenantPermissionsMapService, TenantPermissionsService, TenantStatus, TenantsValidationPatterns, ViewTenantDetailsComponent, ViewTenantsColumnSchemaDef, ViewTenantsListComponent };
|
|
1741
1949
|
//# sourceMappingURL=ieeesa-npm-tenants.mjs.map
|