simpo-component-library 3.5.31 → 3.5.34
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/sections/registration-form/registration-form.component.mjs +17 -11
- package/fesm2022/simpo-component-library.mjs +16 -10
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/package.json +1 -1
- package/simpo-component-library-3.5.34.tgz +0 -0
- package/simpo-component-library-3.5.31.tgz +0 -0
@@ -10988,7 +10988,7 @@ class RegistrationFormComponent extends BaseSection {
|
|
10988
10988
|
// this.payload['returnUrl'] = `https://stage.cmis.tejsoft.com/verify-payment/?url=true&type=REGISTRATION&bId=${this.businessId}` //stage
|
10989
10989
|
for (let infieldDocument of this.payload.fieldItems) {
|
10990
10990
|
if (infieldDocument.fieldImageUrl) {
|
10991
|
-
let imageData = await this.imageUploadService.uploadFileInAzure(infieldDocument.
|
10991
|
+
let imageData = await this.imageUploadService.uploadFileInAzure(infieldDocument.selectedImageData);
|
10992
10992
|
infieldDocument.fieldImageUrl = imageData.url || imageData._response?.request?.url;
|
10993
10993
|
}
|
10994
10994
|
}
|
@@ -11004,7 +11004,7 @@ class RegistrationFormComponent extends BaseSection {
|
|
11004
11004
|
// }
|
11005
11005
|
// this.payload.studentFeeStructure['paymentPlanType'] = this.payload.paymentPlanType;
|
11006
11006
|
// this.payload['returnUrl'] = `https://cmis.tejsoft.com/verify-payment/?url=true&type=ADMISSION&bId=${this.businessId}`; //production
|
11007
|
-
this.payload['returnUrl'] = `https://
|
11007
|
+
this.payload['returnUrl'] = `https://dev.cmis.tejsoft.com/verify-payment/?url=true&type=ADMISSION&bId=${this.businessId}`; //dev
|
11008
11008
|
// this.payload['returnUrl'] = `https://stage.cmis.tejsoft.com/verify-payment/?url=true&type=ADMISSION&bId=${this.businessId}`; //stage
|
11009
11009
|
if (this.backupDocFile) {
|
11010
11010
|
let imageData = await this.imageUploadService.uploadFileInAzure(this.backupDocFile);
|
@@ -11024,13 +11024,15 @@ class RegistrationFormComponent extends BaseSection {
|
|
11024
11024
|
}
|
11025
11025
|
for (let infieldDocument of this.payload.fieldItems) {
|
11026
11026
|
if (infieldDocument.fieldImageUrl) {
|
11027
|
-
|
11028
|
-
|
11027
|
+
if (!infieldDocument.fieldImageUrl.includes('https:')) {
|
11028
|
+
let imageData = await this.imageUploadService.uploadFileInAzure(infieldDocument.selectedImageData);
|
11029
|
+
infieldDocument.fieldImageUrl = imageData.url || imageData._response?.request?.url;
|
11030
|
+
}
|
11029
11031
|
}
|
11030
11032
|
}
|
11033
|
+
// console.log(this.payload)
|
11031
11034
|
this.payload.admissionPaymentDetail.amount = this.payload.studentFeeStructureV2.totalFee;
|
11032
|
-
|
11033
|
-
this.registrationSubscription = this.restService.createPaymentForAdmission(this.payload).subscribe((res) => {
|
11035
|
+
this.registrationSubscription = this.restService.createAdmission(this.payload).subscribe((res) => {
|
11034
11036
|
// this.snackBar.open('Admission created successfully', 'close', {duration: 2000});
|
11035
11037
|
this._eventService.cashFreeEvent.emit({ response: res, paymentType: 'ADMISSION' });
|
11036
11038
|
});
|
@@ -11063,7 +11065,9 @@ class RegistrationFormComponent extends BaseSection {
|
|
11063
11065
|
fieldStepId: field.fieldStepId,
|
11064
11066
|
fieldStepName: step,
|
11065
11067
|
type: field.type,
|
11066
|
-
fieldImageUrl: field.fieldImageUrl
|
11068
|
+
fieldImageUrl: field.fieldImageUrl,
|
11069
|
+
selectedImageData: field.selectedImageData,
|
11070
|
+
dataType: field?.dataType
|
11067
11071
|
});
|
11068
11072
|
}
|
11069
11073
|
}
|
@@ -11089,12 +11093,14 @@ class RegistrationFormComponent extends BaseSection {
|
|
11089
11093
|
return response;
|
11090
11094
|
}
|
11091
11095
|
updateAdmissionImage(ev) {
|
11092
|
-
|
11096
|
+
let fileInput = ev.target;
|
11097
|
+
this.fileData = fileInput.files[0];
|
11093
11098
|
const reader = new FileReader();
|
11094
11099
|
reader.onload = (response) => {
|
11095
11100
|
this.payload.imgUrl = response.target.result;
|
11096
11101
|
};
|
11097
11102
|
this.fileData ? reader.readAsDataURL(this.fileData) : null;
|
11103
|
+
fileInput.value = '';
|
11098
11104
|
}
|
11099
11105
|
deleteImg() {
|
11100
11106
|
this.payload.imgUrl = '';
|
@@ -11284,7 +11290,7 @@ class RegistrationFormComponent extends BaseSection {
|
|
11284
11290
|
field.fieldImageUrl = response.target.result;
|
11285
11291
|
};
|
11286
11292
|
selectedImageData ? reader.readAsDataURL(selectedImageData) : null;
|
11287
|
-
field.
|
11293
|
+
field.selectedImageData = selectedImageData;
|
11288
11294
|
}
|
11289
11295
|
updateSelectedImage(ev, field) {
|
11290
11296
|
let selectedImageData;
|
@@ -11294,7 +11300,7 @@ class RegistrationFormComponent extends BaseSection {
|
|
11294
11300
|
field.fieldImageUrl = response.target.result;
|
11295
11301
|
};
|
11296
11302
|
selectedImageData ? reader.readAsDataURL(selectedImageData) : null;
|
11297
|
-
field.
|
11303
|
+
field.selectedImageData = selectedImageData;
|
11298
11304
|
}
|
11299
11305
|
isImage(fileUrl) {
|
11300
11306
|
return typeof fileUrl === 'string' && (fileUrl.startsWith('data:image') || /\.(jpg|jpeg|png|gif)$/i.test(fileUrl));
|