@veloceapps/sdk 8.0.0-120 → 8.0.0-121

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.
@@ -97,7 +97,7 @@ class DocGenComponent {
97
97
  this.destroy$.complete();
98
98
  }
99
99
  initialize() {
100
- this.templateApiName = this.flowInfo.flow?.properties.templates.docGen ?? '';
100
+ this.templateApiName = this.flowInfo.flow?.properties.templates?.docGen ?? '';
101
101
  this.generateUIDefinition$()
102
102
  .pipe(tap(uiDef => {
103
103
  if (!uiDef) {
@@ -219,7 +219,7 @@ class GuidedSellingComponent {
219
219
  this.destroy$.complete();
220
220
  }
221
221
  initialize() {
222
- this.templateApiName = this.flowInfo.flow?.properties.templates.guidedSelling ?? '';
222
+ this.templateApiName = this.flowInfo.flow?.properties.templates?.guidedSelling ?? '';
223
223
  this.generateUIDefinition$()
224
224
  .pipe(tap(uiDef => {
225
225
  if (!uiDef) {
@@ -329,7 +329,7 @@ class FlowHeaderComponent {
329
329
  this.destroy$.complete();
330
330
  }
331
331
  initialize() {
332
- this.templateApiName = this.flowInfo.flow?.properties.templates.flowHeader ?? '';
332
+ this.templateApiName = this.flowInfo.flow?.properties.templates?.flowHeader ?? '';
333
333
  this.generateUIDefinition$()
334
334
  .pipe(tap(uiDef => {
335
335
  if (!uiDef) {
@@ -840,25 +840,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
840
840
  }], ctorParameters: function () { return [{ type: i2.IntegrationState }]; } });
841
841
 
842
842
  class FlowComponent {
843
- constructor(routerService, quoteDraftService, flowService, flowInfo, guidedSellingService) {
843
+ constructor(routerService, flowService, flowInfo, guidedSellingService) {
844
844
  this.routerService = routerService;
845
- this.quoteDraftService = quoteDraftService;
846
845
  this.flowService = flowService;
847
846
  this.flowInfo = flowInfo;
848
847
  this.guidedSellingService = guidedSellingService;
849
848
  this.isLoading$ = this.routerService.loading$;
850
849
  this.showHeader$ = combineLatest([this.routerService.route$, this.flowInfo.flow$]).pipe(map(([route, flow]) => route.data['showHeader'] && !flow?.properties.standalone));
851
- this.isStandalone$ = this.quoteDraftService.isStandalone$;
850
+ this.isStandalone$ = this.flowInfo.flow$.pipe(map(flow => Boolean(flow?.properties.standalone)));
852
851
  this.guidedSellingVisible$ = this.guidedSellingService.isVisible$;
853
852
  this.flowService.initSubscriptions();
854
853
  }
855
854
  }
856
- FlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowComponent, deps: [{ token: FlowRouterService }, { token: i2.QuoteDraftService }, { token: FlowService }, { token: i2.FlowInfoService }, { token: FlowGuidedSellingService }], target: i0.ɵɵFactoryTarget.Component });
855
+ FlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowComponent, deps: [{ token: FlowRouterService }, { token: FlowService }, { token: i2.FlowInfoService }, { token: FlowGuidedSellingService }], target: i0.ɵɵFactoryTarget.Component });
857
856
  FlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FlowComponent, selector: "vl-flow", ngImport: i0, template: "<vl-flow-new-header *ngIf=\"showHeader$ | async\"></vl-flow-new-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 <div class=\"guided-selling\" [ngClass]=\"{ hidden: (guidedSellingVisible$ | async) === false }\">\n <vl-flow-guided-selling *ngIf=\"(isStandalone$ | async) !== true\"></vl-flow-guided-selling>\n </div>\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;width:100%;height:100%}.flow-content{flex-grow:1;position:relative;overflow:hidden}.loading-overlay{position:absolute;height:100%;width:100%;inset:0;background-color:#fff;z-index:999}.guided-selling{position:absolute;top:0;width:100%;height:100%;z-index:100}.hidden{display:none}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: i2$1.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }, { kind: "component", type: FlowHeaderComponent, selector: "vl-flow-new-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 });
858
857
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowComponent, decorators: [{
859
858
  type: Component,
860
859
  args: [{ selector: 'vl-flow', changeDetection: ChangeDetectionStrategy.OnPush, template: "<vl-flow-new-header *ngIf=\"showHeader$ | async\"></vl-flow-new-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 <div class=\"guided-selling\" [ngClass]=\"{ hidden: (guidedSellingVisible$ | async) === false }\">\n <vl-flow-guided-selling *ngIf=\"(isStandalone$ | async) !== true\"></vl-flow-guided-selling>\n </div>\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;width:100%;height:100%}.flow-content{flex-grow:1;position:relative;overflow:hidden}.loading-overlay{position:absolute;height:100%;width:100%;inset:0;background-color:#fff;z-index:999}.guided-selling{position:absolute;top:0;width:100%;height:100%;z-index:100}.hidden{display:none}\n"] }]
861
- }], ctorParameters: function () { return [{ type: FlowRouterService }, { type: i2.QuoteDraftService }, { type: FlowService }, { type: i2.FlowInfoService }, { type: FlowGuidedSellingService }]; } });
860
+ }], ctorParameters: function () { return [{ type: FlowRouterService }, { type: FlowService }, { type: i2.FlowInfoService }, { type: FlowGuidedSellingService }]; } });
862
861
 
863
862
  const getFlowObjectIdPropertyName = (id) => {
864
863
  const objectName = SalesforceIdUtils.getSfObjectNameById(id);
@@ -1081,7 +1080,7 @@ class AssetsComponent {
1081
1080
  this.state$ = new BehaviorSubject({ loading: true, failure: false });
1082
1081
  this.templateApiName = '';
1083
1082
  this.destroyed$ = new Subject();
1084
- this.templateApiName = this.flowInfo.flow?.properties.templates.assets ?? '';
1083
+ this.templateApiName = this.flowInfo.flow?.properties.templates?.assets ?? '';
1085
1084
  }
1086
1085
  ngOnInit() {
1087
1086
  this.generateUIDefinition$()
@@ -1190,7 +1189,7 @@ class CatalogComponent {
1190
1189
  this.state$ = new BehaviorSubject({ loading: true, failure: false });
1191
1190
  this.templateApiName = '';
1192
1191
  this.destroyed$ = new Subject();
1193
- this.templateApiName = this.flowInfo.flow?.properties.templates.catalog ?? '';
1192
+ this.templateApiName = this.flowInfo.flow?.properties.templates?.catalog ?? '';
1194
1193
  }
1195
1194
  ngOnInit() {
1196
1195
  this.generateUIDefinition$()
@@ -1863,7 +1862,7 @@ class ShoppingCartComponent {
1863
1862
  this.state$ = new BehaviorSubject({ loading: true, failure: false });
1864
1863
  this.templateApiName = '';
1865
1864
  this.destroyed$ = new Subject();
1866
- this.templateApiName = this.flowInfo.flow?.properties.templates.shoppingCart ?? '';
1865
+ this.templateApiName = this.flowInfo.flow?.properties.templates?.shoppingCart ?? '';
1867
1866
  }
1868
1867
  ngOnInit() {
1869
1868
  this.generateUIDefinition$()