@veloceapps/sdk 7.0.2-84 → 7.0.2-86

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,20 +1,20 @@
1
1
  import * as i4 from '@angular/common';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { Component, ChangeDetectionStrategy, NgModule, InjectionToken, Injectable, Optional, Inject, ViewChild, Input } from '@angular/core';
4
+ import { Component, ChangeDetectionStrategy, NgModule, InjectionToken, Optional, Inject, Injectable, ViewChild, Input } from '@angular/core';
5
5
  import * as i2 from '@veloceapps/api';
6
6
  import { ApiModule } from '@veloceapps/api';
7
7
  import * as i3$1 from '@veloceapps/components';
8
8
  import { ToastType, LetDirectiveModule, QuantityControlModule, ErrorTooltipModule, HiddenTextTooltipModule, LoaderModule, EmptyStateModule } from '@veloceapps/components';
9
9
  import * as i5 from '@veloceapps/sdk/cms';
10
- import { FlowAction, extractElementMetadata, extendElementMetadata, PreviewModule, LauncherModule } from '@veloceapps/sdk/cms';
10
+ import { extractElementMetadata, extendElementMetadata, PreviewModule, FlowAction, LauncherModule } from '@veloceapps/sdk/cms';
11
11
  import * as i1$1 from '@veloceapps/sdk/core';
12
12
  import { isLineItemModified, getOriginParent, SdkPipesModule, RuntimeOperation, generateModifiedAssetsMap, SdkCoreModule } from '@veloceapps/sdk/core';
13
13
  import * as i3 from 'primeng/button';
14
14
  import { ButtonModule } from 'primeng/button';
15
15
  import * as i1 from 'primeng/dynamicdialog';
16
16
  import { UITemplateComponentType, UITemplateType, SalesforceIdUtils, ConfigurationContextMode, EntityUtil, isLegacyUIDefinition, getUIDefinitionProperties, UUID } from '@veloceapps/core';
17
- import { Subject, BehaviorSubject, tap, takeUntil, first, catchError, of, map, switchMap, filter, shareReplay, startWith, distinctUntilChanged, combineLatest, finalize, noop, forkJoin, from, throwError } from 'rxjs';
17
+ import { BehaviorSubject, Subject, first, tap, takeUntil, catchError, of, map, switchMap, filter, shareReplay, startWith, distinctUntilChanged, combineLatest, finalize, noop, forkJoin, from, throwError } from 'rxjs';
18
18
  import * as i7 from 'primeng/overlaypanel';
19
19
  import { OverlayPanel, OverlayPanelModule } from 'primeng/overlaypanel';
20
20
  import * as i13 from 'primeng/splitbutton';
@@ -95,46 +95,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
95
95
 
96
96
  const FLOW_CUSTOMIZATION = new InjectionToken('FLOW_CUSTOMIZATION');
97
97
 
98
- class FlowDocGenService {
99
- constructor(integrationState) {
100
- this.integrationState = integrationState;
101
- this.cleanup$ = new Subject();
102
- this.isVisibleSubj$ = new BehaviorSubject(false);
103
- this.isVisible$ = this.isVisibleSubj$.asObservable();
104
- this.initSubscriptions();
105
- }
106
- cleanup() {
107
- this.cleanup$.next();
108
- }
109
- initSubscriptions() {
110
- this.integrationState
111
- .listen$(FlowAction.FLOW_OPEN_DOC_GEN)
112
- .pipe(tap(() => this.isVisibleSubj$.next(true)), takeUntil(this.cleanup$))
113
- .subscribe();
114
- this.integrationState
115
- .listen$(FlowAction.FLOW_CLOSE_DOC_GEN)
116
- .pipe(tap(() => this.isVisibleSubj$.next(false)), takeUntil(this.cleanup$))
117
- .subscribe();
118
- }
119
- }
120
- FlowDocGenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FlowDocGenService, deps: [{ token: i5.IntegrationState }], target: i0.ɵɵFactoryTarget.Injectable });
121
- FlowDocGenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FlowDocGenService });
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FlowDocGenService, decorators: [{
123
- type: Injectable
124
- }], ctorParameters: function () { return [{ type: i5.IntegrationState }]; } });
125
-
126
98
  class DocGenComponent {
127
- constructor(quoteDraftService, contextService, templatesApi, docGenService, toastService, customizationService) {
99
+ constructor(quoteDraftService, contextService, templatesApi, toastService, customizationService) {
128
100
  this.quoteDraftService = quoteDraftService;
129
101
  this.contextService = contextService;
130
102
  this.templatesApi = templatesApi;
131
- this.docGenService = docGenService;
132
103
  this.toastService = toastService;
133
104
  this.customizationService = customizationService;
134
105
  this.uiDefinition$ = new BehaviorSubject(null);
135
106
  this.templateApiName = '';
136
107
  this.destroy$ = new Subject();
137
- this.isVisible$ = this.docGenService.isVisible$;
138
108
  // initialize when quote draft requested
139
109
  this.quoteDraftService.quoteDraft$
140
110
  .pipe(first(), tap(() => this.initialize()), takeUntil(this.destroy$))
@@ -226,13 +196,13 @@ class DocGenComponent {
226
196
  }));
227
197
  }
228
198
  }
229
- DocGenComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DocGenComponent, deps: [{ token: i1$1.QuoteDraftService }, { token: i1$1.ContextService }, { token: i2.UITemplatesApiService }, { token: FlowDocGenService }, { token: i3$1.ToastService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0.ɵɵFactoryTarget.Component });
230
- DocGenComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: DocGenComponent, selector: "vl-flow-doc-gen", ngImport: i0, template: "<ng-container *ngIf=\"isVisible$ | async\">\n <ng-container *ngIf=\"uiDefinition$ | async as uiDefinition\">\n <vl-cms-preview [uiDefinition]=\"uiDefinition\"></vl-cms-preview>\n </ng-container>\n</ng-container>\n", styles: [":host,vl-cms-preview{display:contents}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.PreviewComponent, selector: "vl-cms-preview", inputs: ["uiDefinition", "config"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
199
+ DocGenComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DocGenComponent, deps: [{ token: i1$1.QuoteDraftService }, { token: i1$1.ContextService }, { token: i2.UITemplatesApiService }, { token: i3$1.ToastService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0.ɵɵFactoryTarget.Component });
200
+ DocGenComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: DocGenComponent, selector: "vl-flow-doc-gen", ngImport: i0, template: "<ng-container *ngIf=\"uiDefinition$ | async as uiDefinition\">\n <vl-cms-preview [uiDefinition]=\"uiDefinition\"></vl-cms-preview>\n</ng-container>\n", styles: [":host,vl-cms-preview{display:contents}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.PreviewComponent, selector: "vl-cms-preview", inputs: ["uiDefinition", "config"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
231
201
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: DocGenComponent, decorators: [{
232
202
  type: Component,
233
- args: [{ selector: 'vl-flow-doc-gen', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"isVisible$ | async\">\n <ng-container *ngIf=\"uiDefinition$ | async as uiDefinition\">\n <vl-cms-preview [uiDefinition]=\"uiDefinition\"></vl-cms-preview>\n </ng-container>\n</ng-container>\n", styles: [":host,vl-cms-preview{display:contents}\n"] }]
203
+ args: [{ selector: 'vl-flow-doc-gen', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"uiDefinition$ | async as uiDefinition\">\n <vl-cms-preview [uiDefinition]=\"uiDefinition\"></vl-cms-preview>\n</ng-container>\n", styles: [":host,vl-cms-preview{display:contents}\n"] }]
234
204
  }], ctorParameters: function () {
235
- return [{ type: i1$1.QuoteDraftService }, { type: i1$1.ContextService }, { type: i2.UITemplatesApiService }, { type: FlowDocGenService }, { type: i3$1.ToastService }, { type: undefined, decorators: [{
205
+ return [{ type: i1$1.QuoteDraftService }, { type: i1$1.ContextService }, { type: i2.UITemplatesApiService }, { type: i3$1.ToastService }, { type: undefined, decorators: [{
236
206
  type: Optional
237
207
  }, {
238
208
  type: Inject,
@@ -254,40 +224,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
254
224
  }]
255
225
  }] });
256
226
 
257
- class FlowGuidedSellingService {
258
- constructor(integrationState) {
259
- this.integrationState = integrationState;
260
- this.cleanup$ = new Subject();
261
- this.isVisibleSubj$ = new BehaviorSubject(true);
262
- this.isVisible$ = this.isVisibleSubj$.asObservable();
263
- this.initSubscriptions();
264
- }
265
- cleanup() {
266
- this.cleanup$.next();
267
- }
268
- initSubscriptions() {
269
- this.integrationState
270
- .listen$(FlowAction.OPEN_GUIDED_SELLING)
271
- .pipe(tap(() => this.isVisibleSubj$.next(true)), takeUntil(this.cleanup$))
272
- .subscribe();
273
- this.integrationState
274
- .listen$(FlowAction.CLOSE_GUIDED_SELLING)
275
- .pipe(tap(() => this.isVisibleSubj$.next(false)), takeUntil(this.cleanup$))
276
- .subscribe();
277
- }
278
- }
279
- FlowGuidedSellingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FlowGuidedSellingService, deps: [{ token: i5.IntegrationState }], target: i0.ɵɵFactoryTarget.Injectable });
280
- FlowGuidedSellingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FlowGuidedSellingService });
281
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FlowGuidedSellingService, decorators: [{
282
- type: Injectable
283
- }], ctorParameters: function () { return [{ type: i5.IntegrationState }]; } });
284
-
285
227
  class GuidedSellingComponent {
286
- constructor(quoteDraftService, contextService, templatesApi, guidedSellingService, toastService, customizationService) {
228
+ constructor(quoteDraftService, contextService, templatesApi, toastService, customizationService) {
287
229
  this.quoteDraftService = quoteDraftService;
288
230
  this.contextService = contextService;
289
231
  this.templatesApi = templatesApi;
290
- this.guidedSellingService = guidedSellingService;
291
232
  this.toastService = toastService;
292
233
  this.customizationService = customizationService;
293
234
  this.uiDefinition$ = new BehaviorSubject(null);
@@ -375,13 +316,13 @@ class GuidedSellingComponent {
375
316
  }));
376
317
  }
377
318
  }
378
- GuidedSellingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: GuidedSellingComponent, deps: [{ token: i1$1.QuoteDraftService }, { token: i1$1.ContextService }, { token: i2.UITemplatesApiService }, { token: FlowGuidedSellingService }, { token: i3$1.ToastService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0.ɵɵFactoryTarget.Component });
319
+ GuidedSellingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: GuidedSellingComponent, deps: [{ token: i1$1.QuoteDraftService }, { token: i1$1.ContextService }, { token: i2.UITemplatesApiService }, { token: i3$1.ToastService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0.ɵɵFactoryTarget.Component });
379
320
  GuidedSellingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: GuidedSellingComponent, selector: "vl-flow-guided-selling", ngImport: i0, template: "<ng-container *ngIf=\"uiDefinition$ | async as uiDefinition\">\n <vl-cms-preview [uiDefinition]=\"uiDefinition\"></vl-cms-preview>\n</ng-container>\n", styles: [":host,vl-cms-preview{display:contents}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.PreviewComponent, selector: "vl-cms-preview", inputs: ["uiDefinition", "config"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
380
321
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: GuidedSellingComponent, decorators: [{
381
322
  type: Component,
382
323
  args: [{ selector: 'vl-flow-guided-selling', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"uiDefinition$ | async as uiDefinition\">\n <vl-cms-preview [uiDefinition]=\"uiDefinition\"></vl-cms-preview>\n</ng-container>\n", styles: [":host,vl-cms-preview{display:contents}\n"] }]
383
324
  }], ctorParameters: function () {
384
- return [{ type: i1$1.QuoteDraftService }, { type: i1$1.ContextService }, { type: i2.UITemplatesApiService }, { type: FlowGuidedSellingService }, { type: i3$1.ToastService }, { type: undefined, decorators: [{
325
+ return [{ type: i1$1.QuoteDraftService }, { type: i1$1.ContextService }, { type: i2.UITemplatesApiService }, { type: i3$1.ToastService }, { type: undefined, decorators: [{
385
326
  type: Optional
386
327
  }, {
387
328
  type: Inject,
@@ -1543,6 +1484,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
1543
1484
  type: Injectable
1544
1485
  }], ctorParameters: function () { return [{ type: i5.IntegrationState }, { type: FlowRouterService }, { type: i1$1.QuoteDraftService }, { type: i1$1.ConfigurationService }, { type: i1$1.FlowConfigurationService }]; } });
1545
1486
 
1487
+ class FlowDocGenService {
1488
+ constructor(integrationState) {
1489
+ this.integrationState = integrationState;
1490
+ this.cleanup$ = new Subject();
1491
+ this.isVisibleSubj$ = new BehaviorSubject(false);
1492
+ this.isVisible$ = this.isVisibleSubj$.asObservable();
1493
+ this.initSubscriptions();
1494
+ }
1495
+ cleanup() {
1496
+ this.cleanup$.next();
1497
+ }
1498
+ initSubscriptions() {
1499
+ this.integrationState
1500
+ .listen$(FlowAction.FLOW_OPEN_DOC_GEN)
1501
+ .pipe(tap(() => this.isVisibleSubj$.next(true)), takeUntil(this.cleanup$))
1502
+ .subscribe();
1503
+ this.integrationState
1504
+ .listen$(FlowAction.FLOW_CLOSE_DOC_GEN)
1505
+ .pipe(tap(() => this.isVisibleSubj$.next(false)), takeUntil(this.cleanup$))
1506
+ .subscribe();
1507
+ }
1508
+ }
1509
+ FlowDocGenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FlowDocGenService, deps: [{ token: i5.IntegrationState }], target: i0.ɵɵFactoryTarget.Injectable });
1510
+ FlowDocGenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FlowDocGenService });
1511
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FlowDocGenService, decorators: [{
1512
+ type: Injectable
1513
+ }], ctorParameters: function () { return [{ type: i5.IntegrationState }]; } });
1514
+
1546
1515
  class FlowComponent {
1547
1516
  constructor(routerService, quoteDraftService, flowService, docGenService, integrationState) {
1548
1517
  this.routerService = routerService;
@@ -3058,6 +3027,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
3058
3027
  }]
3059
3028
  }] });
3060
3029
 
3030
+ class FlowGuidedSellingService {
3031
+ constructor(integrationState) {
3032
+ this.integrationState = integrationState;
3033
+ this.cleanup$ = new Subject();
3034
+ this.isVisibleSubj$ = new BehaviorSubject(true);
3035
+ this.isVisible$ = this.isVisibleSubj$.asObservable();
3036
+ this.initSubscriptions();
3037
+ }
3038
+ cleanup() {
3039
+ this.cleanup$.next();
3040
+ }
3041
+ initSubscriptions() {
3042
+ this.integrationState
3043
+ .listen$(FlowAction.OPEN_GUIDED_SELLING)
3044
+ .pipe(tap(() => this.isVisibleSubj$.next(true)), takeUntil(this.cleanup$))
3045
+ .subscribe();
3046
+ this.integrationState
3047
+ .listen$(FlowAction.CLOSE_GUIDED_SELLING)
3048
+ .pipe(tap(() => this.isVisibleSubj$.next(false)), takeUntil(this.cleanup$))
3049
+ .subscribe();
3050
+ }
3051
+ }
3052
+ FlowGuidedSellingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FlowGuidedSellingService, deps: [{ token: i5.IntegrationState }], target: i0.ɵɵFactoryTarget.Injectable });
3053
+ FlowGuidedSellingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FlowGuidedSellingService });
3054
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FlowGuidedSellingService, decorators: [{
3055
+ type: Injectable
3056
+ }], ctorParameters: function () { return [{ type: i5.IntegrationState }]; } });
3057
+
3061
3058
  class FlowModule {
3062
3059
  }
3063
3060
  FlowModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FlowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });