@veloceapps/sdk 8.0.0-137 → 8.0.0-139
Sign up to get free protection for your applications and to get access to all the features.
- package/core/modules/configuration/services/configuration-state.service.d.ts +2 -2
- package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +3 -3
- package/esm2020/core/modules/configuration/services/configuration-state.service.mjs +12 -4
- package/esm2020/core/services/flow-state.service.mjs +10 -2
- package/fesm2015/veloceapps-sdk-cms.mjs +2 -2
- package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk-core.mjs +18 -2
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-cms.mjs +2 -2
- package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +18 -2
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/package.json +1 -1
@@ -1058,7 +1058,14 @@ class FlowStateService {
|
|
1058
1058
|
let flowState = this.quoteDraftService.quoteDraft;
|
1059
1059
|
request.actions.forEach(action => {
|
1060
1060
|
var _a;
|
1061
|
-
|
1061
|
+
try {
|
1062
|
+
flowState = (_a = this.executeActionScript(flowState, action)) !== null && _a !== void 0 ? _a : flowState;
|
1063
|
+
}
|
1064
|
+
catch (e) {
|
1065
|
+
console.error(e);
|
1066
|
+
this.toastService.add({ severity: ToastType.error, summary: String(e) });
|
1067
|
+
throw e;
|
1068
|
+
}
|
1062
1069
|
});
|
1063
1070
|
this.quoteDraftService.updateQuoteDraft(flowState);
|
1064
1071
|
}
|
@@ -1076,6 +1083,7 @@ class FlowStateService {
|
|
1076
1083
|
};
|
1077
1084
|
}
|
1078
1085
|
catch (e) {
|
1086
|
+
console.error(e);
|
1079
1087
|
result.selectors[key] = {
|
1080
1088
|
success: false,
|
1081
1089
|
errorMessage: String(e),
|
@@ -2328,7 +2336,14 @@ class ConfigurationStateService {
|
|
2328
2336
|
let configurationRequest = this.configurationService.generateRequest();
|
2329
2337
|
request.actions.forEach(action => {
|
2330
2338
|
var _a;
|
2331
|
-
|
2339
|
+
try {
|
2340
|
+
configurationRequest = (_a = this.executeActionScript(configurationRequest, action)) !== null && _a !== void 0 ? _a : configurationRequest;
|
2341
|
+
}
|
2342
|
+
catch (e) {
|
2343
|
+
console.error(e);
|
2344
|
+
this.toastService.add({ severity: ToastType.error, summary: String(e) });
|
2345
|
+
throw e;
|
2346
|
+
}
|
2332
2347
|
});
|
2333
2348
|
return this.configurationService.configureRequest$(configurationRequest);
|
2334
2349
|
}), map$1(() => {
|
@@ -2343,6 +2358,7 @@ class ConfigurationStateService {
|
|
2343
2358
|
};
|
2344
2359
|
}
|
2345
2360
|
catch (e) {
|
2361
|
+
console.error(e);
|
2346
2362
|
result.selectors[key] = {
|
2347
2363
|
success: false,
|
2348
2364
|
errorMessage: String(e),
|