@veloceapps/sdk 11.0.0-34 → 11.0.0-36
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/cms/vendor-map.d.ts +5 -2
- package/core/index.d.ts +1 -0
- package/core/operators/filter-successful-execute.operator.d.ts +3 -0
- package/core/operators/index.d.ts +1 -0
- package/core/services/flow-info.service.d.ts +1 -0
- package/esm2020/cms/vendor-map.mjs +6 -3
- package/esm2020/core/index.mjs +2 -1
- package/esm2020/core/operators/filter-successful-execute.operator.mjs +5 -0
- package/esm2020/core/operators/index.mjs +2 -0
- package/esm2020/core/services/flow-info.service.mjs +6 -3
- package/esm2020/src/resolvers/sales-transaction.resolver.mjs +5 -24
- package/fesm2015/veloceapps-sdk-cms.mjs +5 -2
- package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk-core.mjs +9 -2
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk.mjs +2 -21
- package/fesm2015/veloceapps-sdk.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-cms.mjs +5 -2
- package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +21 -14
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk.mjs +2 -21
- package/fesm2020/veloceapps-sdk.mjs.map +1 -1
- package/package.json +1 -1
@@ -1414,27 +1414,8 @@ class SalesTransactionResolver {
|
|
1414
1414
|
}));
|
1415
1415
|
}
|
1416
1416
|
getNavigateTo() {
|
1417
|
-
|
1418
|
-
|
1419
|
-
if (flow === null || flow === void 0 ? void 0 : flow.properties.stateful) {
|
1420
|
-
return this.flowStateService.select$(UITemplateType.FLOW_ENGINE, 'NAVIGATE_TO').pipe(map(r => {
|
1421
|
-
if (r.success) {
|
1422
|
-
return r.result;
|
1423
|
-
}
|
1424
|
-
return '';
|
1425
|
-
}));
|
1426
|
-
}
|
1427
|
-
else {
|
1428
|
-
const isAccountMode = this.flowInfoService.context.mode === 'ACCOUNT';
|
1429
|
-
const { hasProducts } = this.salesTransactionService;
|
1430
|
-
if (isAccountMode) {
|
1431
|
-
navigateTo = '/assets';
|
1432
|
-
}
|
1433
|
-
else if (hasProducts) {
|
1434
|
-
navigateTo = '/cart';
|
1435
|
-
}
|
1436
|
-
}
|
1437
|
-
return of(navigateTo);
|
1417
|
+
// Implement when needed
|
1418
|
+
return of('');
|
1438
1419
|
}
|
1439
1420
|
}
|
1440
1421
|
SalesTransactionResolver.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SalesTransactionResolver, deps: [{ token: i1$2.Router }, { token: FlowRouterService }, { token: i3$1.FlowInfoService }, { token: i3$1.FlowStateService }, { token: i3$1.SalesTransactionService }], target: i0.ɵɵFactoryTarget.Injectable });
|