@eqproject/eqp-dynamic-module 2.6.51 → 2.6.53
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/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +4 -3
- package/esm2020/lib/models/trigger.model.mjs +1 -1
- package/esm2020/lib/services/utilityHelper.services.mjs +16 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +18 -2
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +18 -2
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/models/trigger.model.d.ts +1 -0
- package/lib/services/utilityHelper.services.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1248,6 +1248,21 @@ class UtilityHelperService {
|
|
|
1248
1248
|
//GlobalService.debugLog("RunEndPointCall - subscribe - end");
|
|
1249
1249
|
});
|
|
1250
1250
|
}
|
|
1251
|
+
static base64ToBlob(b64Data, contentType = '', sliceSize = 512) {
|
|
1252
|
+
let byteCharacters = atob(b64Data);
|
|
1253
|
+
let byteArrays = [];
|
|
1254
|
+
for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {
|
|
1255
|
+
let slice = byteCharacters.slice(offset, offset + sliceSize);
|
|
1256
|
+
let byteNumbers = new Array(slice.length);
|
|
1257
|
+
for (let i = 0; i < slice.length; i++) {
|
|
1258
|
+
byteNumbers[i] = slice.charCodeAt(i);
|
|
1259
|
+
}
|
|
1260
|
+
let byteArray = new Uint8Array(byteNumbers);
|
|
1261
|
+
byteArrays.push(byteArray);
|
|
1262
|
+
}
|
|
1263
|
+
let blob = new Blob(byteArrays, { type: contentType });
|
|
1264
|
+
return blob;
|
|
1265
|
+
}
|
|
1251
1266
|
}
|
|
1252
1267
|
UtilityHelperService.context = new Context();
|
|
1253
1268
|
UtilityHelperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UtilityHelperService, deps: [{ token: i5.UntypedFormBuilder }, { token: i1.HttpClient }, { token: SpinnerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -4894,14 +4909,15 @@ class AddFormRecordComponent {
|
|
|
4894
4909
|
];
|
|
4895
4910
|
GlobalService.debugLog('onSaveRecord - dynamicModuleParams', dynamicModuleParams);
|
|
4896
4911
|
this.utilityService.RunEndPointCall(this.endPointConfiguration.Records.SaveEndPoint, dynamicModuleParams, (res) => {
|
|
4912
|
+
dynRec.ID = res.toString();
|
|
4897
4913
|
event.ID = res.toString();
|
|
4898
4914
|
this.checkTriggers(event);
|
|
4899
|
-
this.afterSaveRecordEvent.emit(
|
|
4915
|
+
this.afterSaveRecordEvent.emit(dynRec);
|
|
4900
4916
|
this.isSaving = false;
|
|
4901
4917
|
});
|
|
4902
4918
|
}
|
|
4903
4919
|
else {
|
|
4904
|
-
this.saveRecordEvent.emit(
|
|
4920
|
+
this.saveRecordEvent.emit(dynRec);
|
|
4905
4921
|
}
|
|
4906
4922
|
}
|
|
4907
4923
|
//#endregion onSaveRecord
|