@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
@@ -1394,27 +1394,8 @@ class SalesTransactionResolver {
|
|
1394
1394
|
}));
|
1395
1395
|
}
|
1396
1396
|
getNavigateTo() {
|
1397
|
-
|
1398
|
-
|
1399
|
-
if (flow?.properties.stateful) {
|
1400
|
-
return this.flowStateService.select$(UITemplateType.FLOW_ENGINE, 'NAVIGATE_TO').pipe(map(r => {
|
1401
|
-
if (r.success) {
|
1402
|
-
return r.result;
|
1403
|
-
}
|
1404
|
-
return '';
|
1405
|
-
}));
|
1406
|
-
}
|
1407
|
-
else {
|
1408
|
-
const isAccountMode = this.flowInfoService.context.mode === 'ACCOUNT';
|
1409
|
-
const { hasProducts } = this.salesTransactionService;
|
1410
|
-
if (isAccountMode) {
|
1411
|
-
navigateTo = '/assets';
|
1412
|
-
}
|
1413
|
-
else if (hasProducts) {
|
1414
|
-
navigateTo = '/cart';
|
1415
|
-
}
|
1416
|
-
}
|
1417
|
-
return of(navigateTo);
|
1397
|
+
// Implement when needed
|
1398
|
+
return of('');
|
1418
1399
|
}
|
1419
1400
|
}
|
1420
1401
|
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 });
|