@veloceapps/sdk 11.0.0-26 → 11.0.0-27

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.
@@ -1362,6 +1362,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1362
1362
  type: Injectable
1363
1363
  }], ctorParameters: function () { return [{ type: i1$2.Router }, { type: FlowRouterService }, { type: i3$1.FlowInfoService }]; } });
1364
1364
 
1365
+ const resolvePCMModel = () => {
1366
+ const flowInfoService = inject(FlowInfoService);
1367
+ const configurationRuntimeService = inject(ConfigurationRuntimeService);
1368
+ const { productId } = flowInfoService.context;
1369
+ if (!productId) {
1370
+ throw new Error(`Unable to start configuration for 'productId == null'`);
1371
+ }
1372
+ return configurationRuntimeService.init$({ productId });
1373
+ };
1374
+
1365
1375
  class SalesTransactionResolver {
1366
1376
  constructor(router, routerService, flowInfoService, flowStateService, salesTransactionService) {
1367
1377
  this.router = router;
@@ -1417,8 +1427,8 @@ class SalesTransactionResolver {
1417
1427
  }
1418
1428
  else {
1419
1429
  const isAccountMode = this.flowInfoService.context.mode === 'ACCOUNT';
1420
- const { hasAssets, hasProducts } = this.salesTransactionService;
1421
- if (isAccountMode || hasAssets) {
1430
+ const { hasProducts } = this.salesTransactionService;
1431
+ if (isAccountMode) {
1422
1432
  navigateTo = '/assets';
1423
1433
  }
1424
1434
  else if (hasProducts) {
@@ -1494,7 +1504,7 @@ const rootRoute = {
1494
1504
  path: 'product',
1495
1505
  component: ProductComponent,
1496
1506
  runGuardsAndResolvers: 'paramsOrQueryParamsChange',
1497
- resolve: { salesTransaction: SalesTransactionResolver, uiDef: resolveUIDefinition },
1507
+ resolve: { salesTransaction: SalesTransactionResolver, uiDef: resolveUIDefinition, pcm: resolvePCMModel },
1498
1508
  canDeactivate: [ProductUnloadGuard],
1499
1509
  data: { showHeader: true },
1500
1510
  },