@veloceapps/sdk 2.0.17 → 2.0.19
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/bundles/veloce-sdk-cms.umd.js +121 -59
- package/bundles/veloce-sdk-cms.umd.js.map +1 -1
- package/bundles/veloce-sdk-runtime.umd.js +2 -3
- package/bundles/veloce-sdk-runtime.umd.js.map +1 -1
- package/bundles/veloce-sdk.umd.js +27 -11
- package/bundles/veloce-sdk.umd.js.map +1 -1
- package/cms/components/preview/preview.component.d.ts +5 -2
- package/cms/launcher.module.d.ts +3 -2
- package/cms/modules/configuration/services/configuration.service.d.ts +3 -2
- package/cms/services/index.d.ts +1 -0
- package/cms/services/integration.state.d.ts +20 -0
- package/cms/types/ui-definition.types.d.ts +1 -0
- package/cms/utils/element.utils.d.ts +1 -0
- package/esm2015/cms/components/preview/preview.component.js +25 -13
- package/esm2015/cms/components/preview/preview.module.js +4 -2
- package/esm2015/cms/launcher.module.js +8 -23
- package/esm2015/cms/modules/configuration/services/configuration.service.js +16 -15
- package/esm2015/cms/services/index.js +2 -1
- package/esm2015/cms/services/integration.state.js +40 -0
- package/esm2015/cms/types/ui-definition.types.js +1 -1
- package/esm2015/cms/utils/element.utils.js +16 -1
- package/esm2015/cms/utils/elements-resolver.js +3 -2
- package/esm2015/cms/vendor-map.js +4 -2
- package/esm2015/runtime/execution/directives/vl-quote.directive.js +2 -2
- package/esm2015/runtime/services/quote.service.js +2 -3
- package/esm2015/src/pages/legacy-product/legacy-product.component.js +22 -8
- package/esm2015/src/pages/product/product.component.js +6 -6
- package/esm2015/src/types/flow-customization.types.js +1 -1
- package/fesm2015/veloce-sdk-cms.js +102 -50
- package/fesm2015/veloce-sdk-cms.js.map +1 -1
- package/fesm2015/veloce-sdk-runtime.js +2 -3
- package/fesm2015/veloce-sdk-runtime.js.map +1 -1
- package/fesm2015/veloce-sdk.js +27 -14
- package/fesm2015/veloce-sdk.js.map +1 -1
- package/package.json +2 -1
- package/src/pages/legacy-product/legacy-product.component.d.ts +5 -2
- package/src/types/flow-customization.types.d.ts +2 -0
|
@@ -2,8 +2,8 @@ import { __decorate, __param, __awaiter, __rest } from 'tslib';
|
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { InjectionToken, Component, ChangeDetectionStrategy, Inject, Injector, Injectable, Directive, ViewContainerRef, SkipSelf, ViewChild, Input, EventEmitter, TemplateRef, Output, NgModule, ViewEncapsulation } from '@angular/core';
|
|
4
4
|
import * as rxjs from 'rxjs';
|
|
5
|
-
import { BehaviorSubject, combineLatest, of,
|
|
6
|
-
import * as
|
|
5
|
+
import { BehaviorSubject, combineLatest, of, throwError, shareReplay, Subject, takeUntil, map as map$1, filter, from, tap as tap$1, switchMap, forkJoin, catchError as catchError$1 } from 'rxjs';
|
|
6
|
+
import * as i8 from '@angular/common';
|
|
7
7
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
8
8
|
import { UUID, EntityUtil, RuntimeModel, ConfigurationContextMode, SalesforceIdUtils, ConfigurationMode, CoreModule } from '@veloce/core';
|
|
9
9
|
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
@@ -11,14 +11,14 @@ import * as angularForms from '@angular/forms';
|
|
|
11
11
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
12
12
|
import * as lodash from 'lodash';
|
|
13
13
|
import { compact, sortBy, isArray, pull, flatten, set } from 'lodash';
|
|
14
|
+
import * as i6 from '@veloce/components';
|
|
15
|
+
import { ConfirmationComponent, LoaderModule, ConfirmationDialogModule } from '@veloce/components';
|
|
14
16
|
import * as i2$1 from '@veloce/sdk/runtime';
|
|
15
17
|
import { RuntimeMode, RuntimeStep, ContextService } from '@veloce/sdk/runtime';
|
|
16
18
|
import * as rxjsOperators from 'rxjs/operators';
|
|
17
19
|
import { map, first, tap, catchError } from 'rxjs/operators';
|
|
18
|
-
import * as i5$1 from '@veloce/components';
|
|
19
|
-
import { ConfirmationComponent, LoaderModule, ConfirmationDialogModule } from '@veloce/components';
|
|
20
20
|
import * as i1 from '@veloce/api';
|
|
21
|
-
import { SalesforceApiService, QuoteApiService, DocumentTemplatesApiService, DocumentAttachmentApiService, ContextApiService, ProductModelApiService, ConfigurationApiService } from '@veloce/api';
|
|
21
|
+
import { SalesforceApiService, QuoteApiService, DocumentTemplatesApiService, DocumentAttachmentApiService, ContextApiService, ProductModelApiService, ConfigurationApiService, ApiModule } from '@veloce/api';
|
|
22
22
|
import * as i2 from 'primeng/api';
|
|
23
23
|
import * as i5 from 'primeng/dynamicdialog';
|
|
24
24
|
import { DialogService } from 'primeng/dynamicdialog';
|
|
@@ -471,6 +471,21 @@ function stringifyElementMetadata(elementMetadata) {
|
|
|
471
471
|
return match.replace(/"/g, '');
|
|
472
472
|
});
|
|
473
473
|
}
|
|
474
|
+
const isValidScript = (script) => {
|
|
475
|
+
var _a;
|
|
476
|
+
if (!script) {
|
|
477
|
+
return false;
|
|
478
|
+
}
|
|
479
|
+
const exportedClassName = script && ((_a = EXPORTED_CLASS_REGEX.exec(script)) !== null && _a !== void 0 ? _a : [])[1];
|
|
480
|
+
if (!exportedClassName) {
|
|
481
|
+
return false;
|
|
482
|
+
}
|
|
483
|
+
const meta = extractElementMetadata(script);
|
|
484
|
+
if (!meta.name || !meta.type) {
|
|
485
|
+
return false;
|
|
486
|
+
}
|
|
487
|
+
return true;
|
|
488
|
+
};
|
|
474
489
|
|
|
475
490
|
class ElementContextService {
|
|
476
491
|
}
|
|
@@ -763,25 +778,26 @@ class ConfigurationService {
|
|
|
763
778
|
this.lineItem.next(undefined);
|
|
764
779
|
this.charges.next({});
|
|
765
780
|
}
|
|
766
|
-
patch(lineItem) {
|
|
781
|
+
patch$(lineItem) {
|
|
767
782
|
if (!this.lineItem.value) {
|
|
768
|
-
return;
|
|
783
|
+
return throwError(() => new Error(`Source LineItem not found`));
|
|
769
784
|
}
|
|
770
785
|
this.states.configurableRamp = new LineItemWorker(this.lineItem.value).replace(lineItem).li;
|
|
771
786
|
this.states.asset = this.states.configurableRamp
|
|
772
787
|
? this.runtimeService.getAsset(this.states.configurableRamp)
|
|
773
788
|
: undefined;
|
|
774
|
-
this.configure()
|
|
775
|
-
.
|
|
776
|
-
this.
|
|
777
|
-
severity: 'error',
|
|
778
|
-
|
|
779
|
-
});
|
|
789
|
+
return this.configure().pipe(catchError(error => {
|
|
790
|
+
console.error(error);
|
|
791
|
+
if (!this.runtimeService.uiDefinitionProperties.suppressToastMessages) {
|
|
792
|
+
this.messageService.add({ severity: 'error', summary: error });
|
|
793
|
+
}
|
|
780
794
|
// bounce back if configuration call has failed
|
|
781
795
|
this.lineItem.next(this.lineItem.value ? Object.assign({}, this.lineItem.value) : undefined);
|
|
782
|
-
return
|
|
783
|
-
}))
|
|
784
|
-
|
|
796
|
+
return throwError(() => error);
|
|
797
|
+
}));
|
|
798
|
+
}
|
|
799
|
+
patch(lineItem) {
|
|
800
|
+
this.patch$(lineItem).subscribe();
|
|
785
801
|
}
|
|
786
802
|
updateCurrentStates(update) {
|
|
787
803
|
this.states = Object.assign(Object.assign({}, this.states), update);
|
|
@@ -809,7 +825,7 @@ class ConfigurationService {
|
|
|
809
825
|
const runtimeContext = this.getRuntimeContext();
|
|
810
826
|
const runtimeModel = this.getRuntimeModel();
|
|
811
827
|
if (!runtimeContext || !runtimeModel) {
|
|
812
|
-
return
|
|
828
|
+
return throwError(() => new Error('Runtime context/model not initialized'));
|
|
813
829
|
}
|
|
814
830
|
const uiDefinitionProperties = Object.assign(Object.assign({}, ((_b = (_a = runtimeContext.uiDefinition) === null || _a === void 0 ? void 0 : _a.properties) !== null && _b !== void 0 ? _b : {})), ((_c = this.runtimeService.uiDefinitionProperties) !== null && _c !== void 0 ? _c : {}));
|
|
815
831
|
const lineItem = (_d = this.states.configurableRamp) !== null && _d !== void 0 ? _d : getDefaultLineItem(runtimeContext, uiDefinitionProperties);
|
|
@@ -1272,6 +1288,43 @@ var vlCmsModules = /*#__PURE__*/Object.freeze({
|
|
|
1272
1288
|
ConfigurationService: ConfigurationService
|
|
1273
1289
|
});
|
|
1274
1290
|
|
|
1291
|
+
const InitAction = { type: 'INIT' };
|
|
1292
|
+
const ClearAction = { type: 'CLEAR' };
|
|
1293
|
+
class IntegrationState {
|
|
1294
|
+
constructor() {
|
|
1295
|
+
this.stateSubj$ = new BehaviorSubject({});
|
|
1296
|
+
this.action$ = new BehaviorSubject(InitAction);
|
|
1297
|
+
}
|
|
1298
|
+
get state$() {
|
|
1299
|
+
return this.stateSubj$.asObservable();
|
|
1300
|
+
}
|
|
1301
|
+
get state() {
|
|
1302
|
+
return this.stateSubj$.getValue();
|
|
1303
|
+
}
|
|
1304
|
+
patchState(update) {
|
|
1305
|
+
this.stateSubj$.next(Object.assign(Object.assign({}, this.stateSubj$.getValue()), update));
|
|
1306
|
+
}
|
|
1307
|
+
dispatch(action) {
|
|
1308
|
+
this.action$.next(action);
|
|
1309
|
+
}
|
|
1310
|
+
listen$(actionType) {
|
|
1311
|
+
return this.action$.pipe(filter(action => action.type === actionType), map$1(action => action.payload));
|
|
1312
|
+
}
|
|
1313
|
+
listenAll$() {
|
|
1314
|
+
return this.action$.asObservable();
|
|
1315
|
+
}
|
|
1316
|
+
clear() {
|
|
1317
|
+
this.stateSubj$.next({});
|
|
1318
|
+
this.action$.next(ClearAction);
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
IntegrationState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IntegrationState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1322
|
+
IntegrationState.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IntegrationState, providedIn: 'root' });
|
|
1323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: IntegrationState, decorators: [{
|
|
1324
|
+
type: Injectable,
|
|
1325
|
+
args: [{ providedIn: 'root' }]
|
|
1326
|
+
}] });
|
|
1327
|
+
|
|
1275
1328
|
var vlCmsUtils = /*#__PURE__*/Object.freeze({
|
|
1276
1329
|
__proto__: null,
|
|
1277
1330
|
UiBuildError: UiBuildError,
|
|
@@ -1283,6 +1336,7 @@ var vlCmsUtils = /*#__PURE__*/Object.freeze({
|
|
|
1283
1336
|
getElementConfig: getElementConfig,
|
|
1284
1337
|
doesElementSupportIO: doesElementSupportIO,
|
|
1285
1338
|
stringifyElementMetadata: stringifyElementMetadata,
|
|
1339
|
+
isValidScript: isValidScript,
|
|
1286
1340
|
parseBoundPath: parseBoundPath,
|
|
1287
1341
|
findLineItem: findLineItem,
|
|
1288
1342
|
insertLineItem: insertLineItem,
|
|
@@ -1298,7 +1352,8 @@ var vlCmsUtils = /*#__PURE__*/Object.freeze({
|
|
|
1298
1352
|
});
|
|
1299
1353
|
|
|
1300
1354
|
const vendorMap = {
|
|
1301
|
-
'@veloce/sdk/cms': Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, vlCmsModules), vlCmsUtils), vlCmsLineItemTypes), vlInjectionTokens), { TemplatesService
|
|
1355
|
+
'@veloce/sdk/cms': Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, vlCmsModules), vlCmsUtils), vlCmsLineItemTypes), vlInjectionTokens), { TemplatesService,
|
|
1356
|
+
IntegrationState }),
|
|
1302
1357
|
'@veloce/api': {
|
|
1303
1358
|
SalesforceApiService,
|
|
1304
1359
|
QuoteApiService,
|
|
@@ -1384,12 +1439,13 @@ class ElementsResolver {
|
|
|
1384
1439
|
return finalElement;
|
|
1385
1440
|
}
|
|
1386
1441
|
resolveElement(sourceElement) {
|
|
1442
|
+
var _a;
|
|
1387
1443
|
const element = this.processElementMetadata(sourceElement);
|
|
1388
1444
|
if (!element) {
|
|
1389
1445
|
return;
|
|
1390
1446
|
}
|
|
1391
1447
|
const config = CONFIG[element.type];
|
|
1392
|
-
const defaultPlugins = DEFAULT_PLUGINS[this.uiDef.type];
|
|
1448
|
+
const defaultPlugins = (_a = DEFAULT_PLUGINS[this.uiDef.type]) !== null && _a !== void 0 ? _a : [];
|
|
1393
1449
|
if (!config) {
|
|
1394
1450
|
console.warn(`Unknown element type "${element.type}"`);
|
|
1395
1451
|
return;
|
|
@@ -1457,11 +1513,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
1457
1513
|
}], ctorParameters: function () { return [{ type: i0.Compiler }, { type: DynamicModuleService }]; } });
|
|
1458
1514
|
|
|
1459
1515
|
class PreviewComponent {
|
|
1460
|
-
constructor(launcherService, configurationService, messageService, runtimeService) {
|
|
1516
|
+
constructor(launcherService, configurationService, messageService, runtimeService, integrationState) {
|
|
1461
1517
|
this.launcherService = launcherService;
|
|
1462
1518
|
this.configurationService = configurationService;
|
|
1463
1519
|
this.messageService = messageService;
|
|
1464
1520
|
this.runtimeService = runtimeService;
|
|
1521
|
+
this.integrationState = integrationState;
|
|
1522
|
+
this.clearState = true;
|
|
1465
1523
|
this.state$ = new BehaviorSubject({ loading: true, failure: false });
|
|
1466
1524
|
this.elements = [];
|
|
1467
1525
|
this.destroy$ = new Subject();
|
|
@@ -1473,6 +1531,9 @@ class PreviewComponent {
|
|
|
1473
1531
|
this.destroy$.next();
|
|
1474
1532
|
this.destroy$.complete();
|
|
1475
1533
|
this.configurationService.reset();
|
|
1534
|
+
if (this.clearState) {
|
|
1535
|
+
this.integrationState.clear();
|
|
1536
|
+
}
|
|
1476
1537
|
}
|
|
1477
1538
|
initializeConfiguration$() {
|
|
1478
1539
|
var _a;
|
|
@@ -1491,12 +1552,15 @@ class PreviewComponent {
|
|
|
1491
1552
|
.pipe(switchMap(() => this.configurationService.configure()));
|
|
1492
1553
|
}
|
|
1493
1554
|
elementToMetadataSafe(elements) {
|
|
1555
|
+
var _a, _b;
|
|
1494
1556
|
try {
|
|
1495
1557
|
return elements.map(element => elementToMetadata(element));
|
|
1496
1558
|
}
|
|
1497
1559
|
catch (e) {
|
|
1498
1560
|
console.error(e);
|
|
1499
|
-
this.
|
|
1561
|
+
if (!((_b = (_a = this.uiDefinition) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.suppressToastMessages)) {
|
|
1562
|
+
this.messageService.add({ severity: 'error', summary: String(e) });
|
|
1563
|
+
}
|
|
1500
1564
|
return [];
|
|
1501
1565
|
}
|
|
1502
1566
|
}
|
|
@@ -1509,18 +1573,19 @@ class PreviewComponent {
|
|
|
1509
1573
|
const compilation$ = this.launcherService.compileModule(this.elements, uiDefinitionMeta);
|
|
1510
1574
|
forkJoin([compilation$, this.initializeConfiguration$()])
|
|
1511
1575
|
.pipe(tap$1(() => this.state$.next({ loading: false, failure: false })), catchError$1(error => {
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1576
|
+
var _a, _b;
|
|
1577
|
+
console.error(error);
|
|
1578
|
+
if (!((_b = (_a = this.uiDefinition) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.suppressToastMessages)) {
|
|
1579
|
+
this.messageService.add({ severity: 'error', summary: error });
|
|
1580
|
+
}
|
|
1516
1581
|
this.state$.next({ loading: false, failure: true });
|
|
1517
1582
|
return of();
|
|
1518
1583
|
}), takeUntil(this.destroy$))
|
|
1519
1584
|
.subscribe();
|
|
1520
1585
|
}
|
|
1521
1586
|
}
|
|
1522
|
-
PreviewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreviewComponent, deps: [{ token: LauncherService }, { token: ConfigurationService }, { token: i2.MessageService }, { token: ConfigurationRuntimeService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1523
|
-
PreviewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: PreviewComponent, selector: "vl-cms-preview", inputs: { modelId: "modelId", uiDefinition: "uiDefinition" }, providers: [IOProviderService, TemplatesService], ngImport: i0, template: "<ng-container *ngIf=\"state$ | async as state\">\n <vl-loader *ngIf=\"state.loading; else content\" [label]=\"'Loading UI'\"></vl-loader>\n\n <ng-template #content>\n <ng-container *ngIf=\"!state.failure\">\n <vl-cms-element-renderer *ngFor=\"let el of elements\" [meta]=\"el\"></vl-cms-element-renderer>\n </ng-container>\n </ng-template>\n</ng-container>\n", styles: [":host{flex-grow:1;display:flex;flex-direction:column;height:100%}\n"], components: [{ type:
|
|
1587
|
+
PreviewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreviewComponent, deps: [{ token: LauncherService }, { token: ConfigurationService }, { token: i2.MessageService }, { token: ConfigurationRuntimeService }, { token: IntegrationState }], target: i0.ɵɵFactoryTarget.Component });
|
|
1588
|
+
PreviewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: PreviewComponent, selector: "vl-cms-preview", inputs: { modelId: "modelId", uiDefinition: "uiDefinition", clearState: "clearState" }, providers: [IOProviderService, TemplatesService], ngImport: i0, template: "<ng-container *ngIf=\"state$ | async as state\">\n <vl-loader *ngIf=\"state.loading; else content\" [label]=\"'Loading UI'\"></vl-loader>\n\n <ng-template #content>\n <ng-container *ngIf=\"!state.failure\">\n <vl-cms-element-renderer *ngFor=\"let el of elements\" [meta]=\"el\"></vl-cms-element-renderer>\n </ng-container>\n </ng-template>\n</ng-container>\n", styles: [":host{flex-grow:1;display:flex;flex-direction:column;height:100%}\n"], components: [{ type: i6.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }, { type: ElementRendererComponent, selector: "vl-cms-element-renderer", inputs: ["meta"] }], directives: [{ type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i8.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.ShadowDom });
|
|
1524
1589
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreviewComponent, decorators: [{
|
|
1525
1590
|
type: Component,
|
|
1526
1591
|
args: [{
|
|
@@ -1532,10 +1597,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
1532
1597
|
// use shadow DOM to prevent UI from being affected by global styles
|
|
1533
1598
|
encapsulation: ViewEncapsulation.ShadowDom,
|
|
1534
1599
|
}]
|
|
1535
|
-
}], ctorParameters: function () { return [{ type: LauncherService }, { type: ConfigurationService }, { type: i2.MessageService }, { type: ConfigurationRuntimeService }]; }, propDecorators: { modelId: [{
|
|
1600
|
+
}], ctorParameters: function () { return [{ type: LauncherService }, { type: ConfigurationService }, { type: i2.MessageService }, { type: ConfigurationRuntimeService }, { type: IntegrationState }]; }, propDecorators: { modelId: [{
|
|
1536
1601
|
type: Input
|
|
1537
1602
|
}], uiDefinition: [{
|
|
1538
1603
|
type: Input
|
|
1604
|
+
}], clearState: [{
|
|
1605
|
+
type: Input
|
|
1539
1606
|
}] } });
|
|
1540
1607
|
|
|
1541
1608
|
class ElementRendererModule {
|
|
@@ -1569,12 +1636,13 @@ class PreviewModule {
|
|
|
1569
1636
|
}
|
|
1570
1637
|
PreviewModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreviewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1571
1638
|
PreviewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreviewModule, declarations: [PreviewComponent], imports: [CommonModule, LoaderModule, ElementRendererModule, ElementChildrenModule], exports: [PreviewComponent] });
|
|
1572
|
-
PreviewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreviewModule, imports: [[CommonModule, LoaderModule, ElementRendererModule, ElementChildrenModule]] });
|
|
1639
|
+
PreviewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreviewModule, providers: [IntegrationState], imports: [[CommonModule, LoaderModule, ElementRendererModule, ElementChildrenModule]] });
|
|
1573
1640
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PreviewModule, decorators: [{
|
|
1574
1641
|
type: NgModule,
|
|
1575
1642
|
args: [{
|
|
1576
1643
|
declarations: [PreviewComponent],
|
|
1577
1644
|
imports: [CommonModule, LoaderModule, ElementRendererModule, ElementChildrenModule],
|
|
1645
|
+
providers: [IntegrationState],
|
|
1578
1646
|
exports: [PreviewComponent],
|
|
1579
1647
|
}]
|
|
1580
1648
|
}] });
|
|
@@ -1617,29 +1685,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
1617
1685
|
class LauncherModule {
|
|
1618
1686
|
}
|
|
1619
1687
|
LauncherModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: LauncherModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1620
|
-
LauncherModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: LauncherModule, imports: [CommonModule, CoreModule, ConfigurationModule] });
|
|
1621
|
-
LauncherModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: LauncherModule, providers: [
|
|
1622
|
-
LauncherService,
|
|
1623
|
-
DynamicModuleService,
|
|
1624
|
-
SalesforceApiService,
|
|
1625
|
-
QuoteApiService,
|
|
1626
|
-
DocumentTemplatesApiService,
|
|
1627
|
-
DocumentAttachmentApiService,
|
|
1628
|
-
DialogService,
|
|
1629
|
-
], imports: [[CommonModule, CoreModule, ConfigurationModule]] });
|
|
1688
|
+
LauncherModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: LauncherModule, imports: [CommonModule, CoreModule, ApiModule, ConfigurationModule] });
|
|
1689
|
+
LauncherModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: LauncherModule, providers: [LauncherService, IntegrationState, DynamicModuleService, DialogService], imports: [[CommonModule, CoreModule, ApiModule, ConfigurationModule]] });
|
|
1630
1690
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: LauncherModule, decorators: [{
|
|
1631
1691
|
type: NgModule,
|
|
1632
1692
|
args: [{
|
|
1633
|
-
imports: [CommonModule, CoreModule, ConfigurationModule],
|
|
1634
|
-
providers: [
|
|
1635
|
-
LauncherService,
|
|
1636
|
-
DynamicModuleService,
|
|
1637
|
-
SalesforceApiService,
|
|
1638
|
-
QuoteApiService,
|
|
1639
|
-
DocumentTemplatesApiService,
|
|
1640
|
-
DocumentAttachmentApiService,
|
|
1641
|
-
DialogService,
|
|
1642
|
-
],
|
|
1693
|
+
imports: [CommonModule, CoreModule, ApiModule, ConfigurationModule],
|
|
1694
|
+
providers: [LauncherService, IntegrationState, DynamicModuleService, DialogService],
|
|
1643
1695
|
}]
|
|
1644
1696
|
}] });
|
|
1645
1697
|
|
|
@@ -1647,5 +1699,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
1647
1699
|
* Generated bundle index. Do not edit.
|
|
1648
1700
|
*/
|
|
1649
1701
|
|
|
1650
|
-
export { ConfigurationRuntimeService, ConfigurationService, DEFAULT_PLUGINS_TOKEN, ELEMENT_CONFIG, ELEMENT_METADATA, ElementComponent, ElementDefinition, LauncherModule, LauncherService, LineItemWorker, PreviewComponent, PreviewModule, SHARED_ELEMENT_METADATA, TemplatesService, UI_DEFINITION_METADATA, UiBuildError, VENDOR_MAP, doesElementSupportIO, elementToMetadata, extendElementMetadata, extractElementMetadata, findLineItem, generateLineItem, getAttributeValue, getAttributes, getDefaultLineItem, getElementConfig, getRecommendedPrices, insertLineItem, mapAttributes, metadataToElement, normalizeElementMetadata, parseBoundPath, patchAttributes, removeLineItem, replaceLineItem, stringifyElementMetadata, upsertAttributes };
|
|
1702
|
+
export { ConfigurationRuntimeService, ConfigurationService, DEFAULT_PLUGINS_TOKEN, ELEMENT_CONFIG, ELEMENT_METADATA, ElementComponent, ElementDefinition, IntegrationState, LauncherModule, LauncherService, LineItemWorker, PreviewComponent, PreviewModule, SHARED_ELEMENT_METADATA, TemplatesService, UI_DEFINITION_METADATA, UiBuildError, VENDOR_MAP, doesElementSupportIO, elementToMetadata, extendElementMetadata, extractElementMetadata, findLineItem, generateLineItem, getAttributeValue, getAttributes, getDefaultLineItem, getElementConfig, getRecommendedPrices, insertLineItem, isValidScript, mapAttributes, metadataToElement, normalizeElementMetadata, parseBoundPath, patchAttributes, removeLineItem, replaceLineItem, stringifyElementMetadata, upsertAttributes };
|
|
1651
1703
|
//# sourceMappingURL=veloce-sdk-cms.js.map
|