@veloceapps/sdk 8.0.0-137 → 8.0.0-139
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/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
|
@@ -1105,7 +1105,14 @@ class FlowStateService {
|
|
|
1105
1105
|
}
|
|
1106
1106
|
let flowState = this.quoteDraftService.quoteDraft;
|
|
1107
1107
|
request.actions.forEach(action => {
|
|
1108
|
-
|
|
1108
|
+
try {
|
|
1109
|
+
flowState = this.executeActionScript(flowState, action) ?? flowState;
|
|
1110
|
+
}
|
|
1111
|
+
catch (e) {
|
|
1112
|
+
console.error(e);
|
|
1113
|
+
this.toastService.add({ severity: ToastType.error, summary: String(e) });
|
|
1114
|
+
throw e;
|
|
1115
|
+
}
|
|
1109
1116
|
});
|
|
1110
1117
|
this.quoteDraftService.updateQuoteDraft(flowState);
|
|
1111
1118
|
}
|
|
@@ -1122,6 +1129,7 @@ class FlowStateService {
|
|
|
1122
1129
|
};
|
|
1123
1130
|
}
|
|
1124
1131
|
catch (e) {
|
|
1132
|
+
console.error(e);
|
|
1125
1133
|
result.selectors[key] = {
|
|
1126
1134
|
success: false,
|
|
1127
1135
|
errorMessage: String(e),
|
|
@@ -2359,7 +2367,14 @@ class ConfigurationStateService {
|
|
|
2359
2367
|
}
|
|
2360
2368
|
let configurationRequest = this.configurationService.generateRequest();
|
|
2361
2369
|
request.actions.forEach(action => {
|
|
2362
|
-
|
|
2370
|
+
try {
|
|
2371
|
+
configurationRequest = this.executeActionScript(configurationRequest, action) ?? configurationRequest;
|
|
2372
|
+
}
|
|
2373
|
+
catch (e) {
|
|
2374
|
+
console.error(e);
|
|
2375
|
+
this.toastService.add({ severity: ToastType.error, summary: String(e) });
|
|
2376
|
+
throw e;
|
|
2377
|
+
}
|
|
2363
2378
|
});
|
|
2364
2379
|
return this.configurationService.configureRequest$(configurationRequest);
|
|
2365
2380
|
}), map$1(() => {
|
|
@@ -2373,6 +2388,7 @@ class ConfigurationStateService {
|
|
|
2373
2388
|
};
|
|
2374
2389
|
}
|
|
2375
2390
|
catch (e) {
|
|
2391
|
+
console.error(e);
|
|
2376
2392
|
result.selectors[key] = {
|
|
2377
2393
|
success: false,
|
|
2378
2394
|
errorMessage: String(e),
|