@veloceapps/sdk 8.0.0-80 → 8.0.0-82

Sign up to get free protection for your applications and to get access to all the features.
@@ -1505,14 +1505,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1505
1505
  }], ctorParameters: function () { return [{ type: i5.IntegrationState }]; } });
1506
1506
 
1507
1507
  class FlowComponent {
1508
- constructor(routerService, quoteDraftService, flowService, docGenService, integrationState) {
1508
+ constructor(routerService, quoteDraftService, flowService, docGenService, integrationState, contextService) {
1509
1509
  this.routerService = routerService;
1510
1510
  this.quoteDraftService = quoteDraftService;
1511
1511
  this.flowService = flowService;
1512
1512
  this.docGenService = docGenService;
1513
1513
  this.integrationState = integrationState;
1514
+ this.contextService = contextService;
1514
1515
  this.isLoading$ = this.routerService.loading$;
1515
- this.showHeader$ = this.routerService.route$.pipe(map(route => route.data['showHeader'] && !this.quoteDraftService.isStandalone));
1516
+ this.showHeader$ = combineLatest([this.routerService.route$, this.quoteDraftService.isStandalone$]).pipe(map(([route, isStandalone]) => route.data['showHeader'] && !isStandalone));
1516
1517
  this.isStandalone$ = this.quoteDraftService.isStandalone$;
1517
1518
  this.flowService.initSubscriptions();
1518
1519
  }
@@ -1522,14 +1523,15 @@ class FlowComponent {
1522
1523
  ngOnDestroy() {
1523
1524
  this.flowService.cleanup();
1524
1525
  this.docGenService.cleanup();
1526
+ this.contextService.delete();
1525
1527
  }
1526
1528
  }
1527
- FlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowComponent, deps: [{ token: FlowRouterService }, { token: i1$1.QuoteDraftService }, { token: FlowService }, { token: FlowDocGenService }, { token: i5.IntegrationState }], target: i0.ɵɵFactoryTarget.Component });
1529
+ FlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowComponent, deps: [{ token: FlowRouterService }, { token: i1$1.QuoteDraftService }, { token: FlowService }, { token: FlowDocGenService }, { token: i5.IntegrationState }, { token: i1$1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
1528
1530
  FlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FlowComponent, selector: "vl-flow", ngImport: i0, template: "<vl-flow-header *ngIf=\"showHeader$ | async\"></vl-flow-header>\n\n<div class=\"flow-content\">\n <div class=\"loading-overlay\" *ngIf=\"isLoading$ | async\">\n <vl-loader label=\"LOADING\"></vl-loader>\n </div>\n\n <router-outlet></router-outlet>\n\n <vl-flow-guided-selling *ngIf=\"(isStandalone$ | async) !== true\"></vl-flow-guided-selling>\n</div>\n\n<ng-container *ngIf=\"(isStandalone$ | async) !== true\">\n <vl-flow-doc-gen></vl-flow-doc-gen>\n</ng-container>\n", styles: [":host{display:flex;flex-direction:column;height:100%}.flow-content{flex-grow:1;position:relative;overflow:hidden}.loading-overlay{position:absolute;height:100%;width:100%;inset:0;background-color:#ffffff80;z-index:4}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i3$1.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }, { kind: "component", type: FlowHeaderComponent, selector: "vl-flow-header" }, { kind: "component", type: DocGenComponent, selector: "vl-flow-doc-gen" }, { kind: "component", type: GuidedSellingComponent, selector: "vl-flow-guided-selling" }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1529
1531
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowComponent, decorators: [{
1530
1532
  type: Component,
1531
1533
  args: [{ selector: 'vl-flow', changeDetection: ChangeDetectionStrategy.OnPush, template: "<vl-flow-header *ngIf=\"showHeader$ | async\"></vl-flow-header>\n\n<div class=\"flow-content\">\n <div class=\"loading-overlay\" *ngIf=\"isLoading$ | async\">\n <vl-loader label=\"LOADING\"></vl-loader>\n </div>\n\n <router-outlet></router-outlet>\n\n <vl-flow-guided-selling *ngIf=\"(isStandalone$ | async) !== true\"></vl-flow-guided-selling>\n</div>\n\n<ng-container *ngIf=\"(isStandalone$ | async) !== true\">\n <vl-flow-doc-gen></vl-flow-doc-gen>\n</ng-container>\n", styles: [":host{display:flex;flex-direction:column;height:100%}.flow-content{flex-grow:1;position:relative;overflow:hidden}.loading-overlay{position:absolute;height:100%;width:100%;inset:0;background-color:#ffffff80;z-index:4}\n"] }]
1532
- }], ctorParameters: function () { return [{ type: FlowRouterService }, { type: i1$1.QuoteDraftService }, { type: FlowService }, { type: FlowDocGenService }, { type: i5.IntegrationState }]; } });
1534
+ }], ctorParameters: function () { return [{ type: FlowRouterService }, { type: i1$1.QuoteDraftService }, { type: FlowService }, { type: FlowDocGenService }, { type: i5.IntegrationState }, { type: i1$1.ContextService }]; } });
1533
1535
 
1534
1536
  const getFlowObjectIdPropertyName = (id) => {
1535
1537
  const objectName = SalesforceIdUtils.getSfObjectNameById(id);