@veloceapps/sdk 2.0.17 → 2.0.18
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 +104 -59
- package/bundles/veloce-sdk-cms.umd.js.map +1 -1
- package/bundles/veloce-sdk.umd.js +5 -5
- 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/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/elements-resolver.js +3 -2
- package/esm2015/cms/vendor-map.js +4 -2
- package/esm2015/src/pages/product/product.component.js +6 -6
- package/fesm2015/veloce-sdk-cms.js +86 -50
- package/fesm2015/veloce-sdk-cms.js.map +1 -1
- package/fesm2015/veloce-sdk.js +5 -5
- package/fesm2015/veloce-sdk.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@angular/common'), require('@veloce/core'), require('@angular/cdk/drag-drop'), require('@angular/forms'), require('lodash'), require('@veloce/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@veloce/sdk/cms', ['exports', '@angular/core', 'rxjs', '@angular/common', '@veloce/core', '@angular/cdk/drag-drop', '@angular/forms', 'lodash', '@veloce/sdk/runtime', 'rxjs/operators', '@veloce/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.veloce = global.veloce || {}, global.veloce.sdk = global.veloce.sdk || {}, global.veloce.sdk.cms = {}), global.ng.core, global.rxjs, global.ng.common, global["@veloce/core"], global.ng.cdk.dragDrop, global.ng.forms, global.lodash, global.veloce.sdk.runtime, global.rxjs.operators, global["@veloce/
|
|
5
|
-
})(this, (function (exports, i0, rxjs,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@angular/common'), require('@veloce/core'), require('@angular/cdk/drag-drop'), require('@angular/forms'), require('lodash'), require('@veloce/components'), require('@veloce/sdk/runtime'), require('rxjs/operators'), require('@veloce/api'), require('primeng/api'), require('primeng/dynamicdialog'), require('@babel/standalone')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@veloce/sdk/cms', ['exports', '@angular/core', 'rxjs', '@angular/common', '@veloce/core', '@angular/cdk/drag-drop', '@angular/forms', 'lodash', '@veloce/components', '@veloce/sdk/runtime', 'rxjs/operators', '@veloce/api', 'primeng/api', 'primeng/dynamicdialog', '@babel/standalone'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.veloce = global.veloce || {}, global.veloce.sdk = global.veloce.sdk || {}, global.veloce.sdk.cms = {}), global.ng.core, global.rxjs, global.ng.common, global["@veloce/core"], global.ng.cdk.dragDrop, global.ng.forms, global.lodash, global["@veloce/components"], global.veloce.sdk.runtime, global.rxjs.operators, global["@veloce/api"], global["primeng/api"], global.i5, global["@babel/standalone"]));
|
|
5
|
+
})(this, (function (exports, i0, rxjs, i8, core, dragDrop, angularForms, lodash, i6, i2, rxjsOperators, i1, i2$1, i5, standalone) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
|
|
25
25
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
26
|
var rxjs__namespace = /*#__PURE__*/_interopNamespace(rxjs);
|
|
27
|
-
var
|
|
27
|
+
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
28
28
|
var angularForms__namespace = /*#__PURE__*/_interopNamespace(angularForms);
|
|
29
29
|
var lodash__namespace = /*#__PURE__*/_interopNamespace(lodash);
|
|
30
|
+
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
30
31
|
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2);
|
|
31
32
|
var rxjsOperators__namespace = /*#__PURE__*/_interopNamespace(rxjsOperators);
|
|
32
|
-
var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5);
|
|
33
33
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
34
34
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2$1);
|
|
35
|
-
var i5__namespace = /*#__PURE__*/_interopNamespace(i5
|
|
35
|
+
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
36
36
|
|
|
37
37
|
/*! *****************************************************************************
|
|
38
38
|
Copyright (c) Microsoft Corporation.
|
|
@@ -635,7 +635,7 @@
|
|
|
635
635
|
var ScriptPlugin = /** @class */ (function () {
|
|
636
636
|
function ScriptPlugin(host) {
|
|
637
637
|
this.host = host;
|
|
638
|
-
this.document = this.host.injector.get(
|
|
638
|
+
this.document = this.host.injector.get(i8.DOCUMENT);
|
|
639
639
|
this.vendorMap = this.host.injector.get(VENDOR_MAP);
|
|
640
640
|
var elementMetadata = this.host.injector.get(ELEMENT_METADATA);
|
|
641
641
|
var sharedElementMetadata = this.host.injector.get(SHARED_ELEMENT_METADATA);
|
|
@@ -1174,26 +1174,27 @@
|
|
|
1174
1174
|
this.lineItem.next(undefined);
|
|
1175
1175
|
this.charges.next({});
|
|
1176
1176
|
};
|
|
1177
|
-
ConfigurationService.prototype.patch = function (lineItem) {
|
|
1177
|
+
ConfigurationService.prototype.patch$ = function (lineItem) {
|
|
1178
1178
|
var _this = this;
|
|
1179
1179
|
if (!this.lineItem.value) {
|
|
1180
|
-
return;
|
|
1180
|
+
return rxjs.throwError(function () { return new Error("Source LineItem not found"); });
|
|
1181
1181
|
}
|
|
1182
1182
|
this.states.configurableRamp = new LineItemWorker(this.lineItem.value).replace(lineItem).li;
|
|
1183
1183
|
this.states.asset = this.states.configurableRamp
|
|
1184
1184
|
? this.runtimeService.getAsset(this.states.configurableRamp)
|
|
1185
1185
|
: undefined;
|
|
1186
|
-
this.configure()
|
|
1187
|
-
.
|
|
1188
|
-
_this.
|
|
1189
|
-
severity: 'error',
|
|
1190
|
-
|
|
1191
|
-
});
|
|
1186
|
+
return this.configure().pipe(rxjsOperators.catchError(function (error) {
|
|
1187
|
+
console.error(error);
|
|
1188
|
+
if (!_this.runtimeService.uiDefinitionProperties.suppressToastMessages) {
|
|
1189
|
+
_this.messageService.add({ severity: 'error', summary: error });
|
|
1190
|
+
}
|
|
1192
1191
|
// bounce back if configuration call has failed
|
|
1193
1192
|
_this.lineItem.next(_this.lineItem.value ? Object.assign({}, _this.lineItem.value) : undefined);
|
|
1194
|
-
return rxjs.
|
|
1195
|
-
}))
|
|
1196
|
-
|
|
1193
|
+
return rxjs.throwError(function () { return error; });
|
|
1194
|
+
}));
|
|
1195
|
+
};
|
|
1196
|
+
ConfigurationService.prototype.patch = function (lineItem) {
|
|
1197
|
+
this.patch$(lineItem).subscribe();
|
|
1197
1198
|
};
|
|
1198
1199
|
ConfigurationService.prototype.updateCurrentStates = function (update) {
|
|
1199
1200
|
this.states = Object.assign(Object.assign({}, this.states), update);
|
|
@@ -1230,7 +1231,7 @@
|
|
|
1230
1231
|
var runtimeContext = this.getRuntimeContext();
|
|
1231
1232
|
var runtimeModel = this.getRuntimeModel();
|
|
1232
1233
|
if (!runtimeContext || !runtimeModel) {
|
|
1233
|
-
return rxjs.
|
|
1234
|
+
return rxjs.throwError(function () { return new Error('Runtime context/model not initialized'); });
|
|
1234
1235
|
}
|
|
1235
1236
|
var 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 : {}));
|
|
1236
1237
|
var lineItem = (_d = this.states.configurableRamp) !== null && _d !== void 0 ? _d : getDefaultLineItem(runtimeContext, uiDefinitionProperties);
|
|
@@ -1265,7 +1266,7 @@
|
|
|
1265
1266
|
ConfigurationService.prototype.showInactiveProductsConfirmation = function () {
|
|
1266
1267
|
var _this = this;
|
|
1267
1268
|
this.dialogService
|
|
1268
|
-
.open(
|
|
1269
|
+
.open(i6.ConfirmationComponent, {
|
|
1269
1270
|
dismissableMask: false,
|
|
1270
1271
|
closeOnEscape: false,
|
|
1271
1272
|
closable: false,
|
|
@@ -1753,6 +1754,52 @@
|
|
|
1753
1754
|
ConfigurationService: ConfigurationService
|
|
1754
1755
|
});
|
|
1755
1756
|
|
|
1757
|
+
var InitAction = { type: 'INIT' };
|
|
1758
|
+
var ClearAction = { type: 'CLEAR' };
|
|
1759
|
+
var IntegrationState = /** @class */ (function () {
|
|
1760
|
+
function IntegrationState() {
|
|
1761
|
+
this.stateSubj$ = new rxjs.BehaviorSubject({});
|
|
1762
|
+
this.action$ = new rxjs.BehaviorSubject(InitAction);
|
|
1763
|
+
}
|
|
1764
|
+
Object.defineProperty(IntegrationState.prototype, "state$", {
|
|
1765
|
+
get: function () {
|
|
1766
|
+
return this.stateSubj$.asObservable();
|
|
1767
|
+
},
|
|
1768
|
+
enumerable: false,
|
|
1769
|
+
configurable: true
|
|
1770
|
+
});
|
|
1771
|
+
Object.defineProperty(IntegrationState.prototype, "state", {
|
|
1772
|
+
get: function () {
|
|
1773
|
+
return this.stateSubj$.getValue();
|
|
1774
|
+
},
|
|
1775
|
+
enumerable: false,
|
|
1776
|
+
configurable: true
|
|
1777
|
+
});
|
|
1778
|
+
IntegrationState.prototype.patchState = function (update) {
|
|
1779
|
+
this.stateSubj$.next(Object.assign(Object.assign({}, this.stateSubj$.getValue()), update));
|
|
1780
|
+
};
|
|
1781
|
+
IntegrationState.prototype.dispatch = function (action) {
|
|
1782
|
+
this.action$.next(action);
|
|
1783
|
+
};
|
|
1784
|
+
IntegrationState.prototype.listen$ = function (actionType) {
|
|
1785
|
+
return this.action$.pipe(rxjs.filter(function (action) { return action.type === actionType; }), rxjs.map(function (action) { return action.payload; }));
|
|
1786
|
+
};
|
|
1787
|
+
IntegrationState.prototype.listenAll$ = function () {
|
|
1788
|
+
return this.action$.asObservable();
|
|
1789
|
+
};
|
|
1790
|
+
IntegrationState.prototype.clear = function () {
|
|
1791
|
+
this.stateSubj$.next({});
|
|
1792
|
+
this.action$.next(ClearAction);
|
|
1793
|
+
};
|
|
1794
|
+
return IntegrationState;
|
|
1795
|
+
}());
|
|
1796
|
+
IntegrationState.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IntegrationState, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1797
|
+
IntegrationState.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IntegrationState, providedIn: 'root' });
|
|
1798
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: IntegrationState, decorators: [{
|
|
1799
|
+
type: i0.Injectable,
|
|
1800
|
+
args: [{ providedIn: 'root' }]
|
|
1801
|
+
}] });
|
|
1802
|
+
|
|
1756
1803
|
var vlCmsUtils = /*#__PURE__*/Object.freeze({
|
|
1757
1804
|
__proto__: null,
|
|
1758
1805
|
UiBuildError: UiBuildError,
|
|
@@ -1779,7 +1826,7 @@
|
|
|
1779
1826
|
});
|
|
1780
1827
|
|
|
1781
1828
|
var vendorMap = {
|
|
1782
|
-
'@veloce/sdk/cms': Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, vlCmsModules), vlCmsUtils), vlCmsLineItemTypes), vlInjectionTokens), { TemplatesService: TemplatesService }),
|
|
1829
|
+
'@veloce/sdk/cms': Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, vlCmsModules), vlCmsUtils), vlCmsLineItemTypes), vlInjectionTokens), { TemplatesService: TemplatesService, IntegrationState: IntegrationState }),
|
|
1783
1830
|
'@veloce/api': {
|
|
1784
1831
|
SalesforceApiService: i1.SalesforceApiService,
|
|
1785
1832
|
QuoteApiService: i1.QuoteApiService,
|
|
@@ -1878,12 +1925,13 @@
|
|
|
1878
1925
|
return finalElement;
|
|
1879
1926
|
};
|
|
1880
1927
|
ElementsResolver.prototype.resolveElement = function (sourceElement) {
|
|
1928
|
+
var _a;
|
|
1881
1929
|
var element = this.processElementMetadata(sourceElement);
|
|
1882
1930
|
if (!element) {
|
|
1883
1931
|
return;
|
|
1884
1932
|
}
|
|
1885
1933
|
var config = CONFIG[element.type];
|
|
1886
|
-
var defaultPlugins = DEFAULT_PLUGINS[this.uiDef.type];
|
|
1934
|
+
var defaultPlugins = (_a = DEFAULT_PLUGINS[this.uiDef.type]) !== null && _a !== void 0 ? _a : [];
|
|
1887
1935
|
if (!config) {
|
|
1888
1936
|
console.warn("Unknown element type \"" + element.type + "\"");
|
|
1889
1937
|
return;
|
|
@@ -1947,7 +1995,7 @@
|
|
|
1947
1995
|
}());
|
|
1948
1996
|
DynamicModule = __decorate([
|
|
1949
1997
|
i0.NgModule({
|
|
1950
|
-
imports: [
|
|
1998
|
+
imports: [i8.CommonModule, angularForms.FormsModule, angularForms.ReactiveFormsModule, FederatedModule, dragDrop.DragDropModule],
|
|
1951
1999
|
declarations: __spreadArray(__spreadArray([], __read(staticComponents)), __read(elementsResolver.getNgComponents())),
|
|
1952
2000
|
jit: true,
|
|
1953
2001
|
})
|
|
@@ -1963,11 +2011,13 @@
|
|
|
1963
2011
|
}], ctorParameters: function () { return [{ type: i0__namespace.Compiler }, { type: DynamicModuleService }]; } });
|
|
1964
2012
|
|
|
1965
2013
|
var PreviewComponent = /** @class */ (function () {
|
|
1966
|
-
function PreviewComponent(launcherService, configurationService, messageService, runtimeService) {
|
|
2014
|
+
function PreviewComponent(launcherService, configurationService, messageService, runtimeService, integrationState) {
|
|
1967
2015
|
this.launcherService = launcherService;
|
|
1968
2016
|
this.configurationService = configurationService;
|
|
1969
2017
|
this.messageService = messageService;
|
|
1970
2018
|
this.runtimeService = runtimeService;
|
|
2019
|
+
this.integrationState = integrationState;
|
|
2020
|
+
this.clearState = true;
|
|
1971
2021
|
this.state$ = new rxjs.BehaviorSubject({ loading: true, failure: false });
|
|
1972
2022
|
this.elements = [];
|
|
1973
2023
|
this.destroy$ = new rxjs.Subject();
|
|
@@ -1979,6 +2029,9 @@
|
|
|
1979
2029
|
this.destroy$.next();
|
|
1980
2030
|
this.destroy$.complete();
|
|
1981
2031
|
this.configurationService.reset();
|
|
2032
|
+
if (this.clearState) {
|
|
2033
|
+
this.integrationState.clear();
|
|
2034
|
+
}
|
|
1982
2035
|
};
|
|
1983
2036
|
PreviewComponent.prototype.initializeConfiguration$ = function () {
|
|
1984
2037
|
var _this = this;
|
|
@@ -1998,12 +2051,15 @@
|
|
|
1998
2051
|
.pipe(rxjs.switchMap(function () { return _this.configurationService.configure(); }));
|
|
1999
2052
|
};
|
|
2000
2053
|
PreviewComponent.prototype.elementToMetadataSafe = function (elements) {
|
|
2054
|
+
var _a, _b;
|
|
2001
2055
|
try {
|
|
2002
2056
|
return elements.map(function (element) { return elementToMetadata(element); });
|
|
2003
2057
|
}
|
|
2004
2058
|
catch (e) {
|
|
2005
2059
|
console.error(e);
|
|
2006
|
-
this.
|
|
2060
|
+
if (!((_b = (_a = this.uiDefinition) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.suppressToastMessages)) {
|
|
2061
|
+
this.messageService.add({ severity: 'error', summary: String(e) });
|
|
2062
|
+
}
|
|
2007
2063
|
return [];
|
|
2008
2064
|
}
|
|
2009
2065
|
};
|
|
@@ -2017,10 +2073,11 @@
|
|
|
2017
2073
|
var compilation$ = this.launcherService.compileModule(this.elements, uiDefinitionMeta);
|
|
2018
2074
|
rxjs.forkJoin([compilation$, this.initializeConfiguration$()])
|
|
2019
2075
|
.pipe(rxjs.tap(function () { return _this.state$.next({ loading: false, failure: false }); }), rxjs.catchError(function (error) {
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2076
|
+
var _a, _b;
|
|
2077
|
+
console.error(error);
|
|
2078
|
+
if (!((_b = (_a = _this.uiDefinition) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.suppressToastMessages)) {
|
|
2079
|
+
_this.messageService.add({ severity: 'error', summary: error });
|
|
2080
|
+
}
|
|
2024
2081
|
_this.state$.next({ loading: false, failure: true });
|
|
2025
2082
|
return rxjs.of();
|
|
2026
2083
|
}), rxjs.takeUntil(this.destroy$))
|
|
@@ -2028,8 +2085,8 @@
|
|
|
2028
2085
|
};
|
|
2029
2086
|
return PreviewComponent;
|
|
2030
2087
|
}());
|
|
2031
|
-
PreviewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewComponent, deps: [{ token: LauncherService }, { token: ConfigurationService }, { token: i2__namespace.MessageService }, { token: ConfigurationRuntimeService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2032
|
-
PreviewComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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:
|
|
2088
|
+
PreviewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewComponent, deps: [{ token: LauncherService }, { token: ConfigurationService }, { token: i2__namespace.MessageService }, { token: ConfigurationRuntimeService }, { token: IntegrationState }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2089
|
+
PreviewComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }, { type: ElementRendererComponent, selector: "vl-cms-element-renderer", inputs: ["meta"] }], directives: [{ type: i8__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i8__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.ShadowDom });
|
|
2033
2090
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewComponent, decorators: [{
|
|
2034
2091
|
type: i0.Component,
|
|
2035
2092
|
args: [{
|
|
@@ -2041,10 +2098,12 @@
|
|
|
2041
2098
|
// use shadow DOM to prevent UI from being affected by global styles
|
|
2042
2099
|
encapsulation: i0.ViewEncapsulation.ShadowDom,
|
|
2043
2100
|
}]
|
|
2044
|
-
}], ctorParameters: function () { return [{ type: LauncherService }, { type: ConfigurationService }, { type: i2__namespace.MessageService }, { type: ConfigurationRuntimeService }]; }, propDecorators: { modelId: [{
|
|
2101
|
+
}], ctorParameters: function () { return [{ type: LauncherService }, { type: ConfigurationService }, { type: i2__namespace.MessageService }, { type: ConfigurationRuntimeService }, { type: IntegrationState }]; }, propDecorators: { modelId: [{
|
|
2045
2102
|
type: i0.Input
|
|
2046
2103
|
}], uiDefinition: [{
|
|
2047
2104
|
type: i0.Input
|
|
2105
|
+
}], clearState: [{
|
|
2106
|
+
type: i0.Input
|
|
2048
2107
|
}] } });
|
|
2049
2108
|
|
|
2050
2109
|
var ElementRendererModule = /** @class */ (function () {
|
|
@@ -2086,13 +2145,14 @@
|
|
|
2086
2145
|
return PreviewModule;
|
|
2087
2146
|
}());
|
|
2088
2147
|
PreviewModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2089
|
-
PreviewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewModule, declarations: [PreviewComponent], imports: [
|
|
2090
|
-
PreviewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewModule, imports: [[
|
|
2148
|
+
PreviewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewModule, declarations: [PreviewComponent], imports: [i8.CommonModule, i6.LoaderModule, ElementRendererModule, ElementChildrenModule], exports: [PreviewComponent] });
|
|
2149
|
+
PreviewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewModule, providers: [IntegrationState], imports: [[i8.CommonModule, i6.LoaderModule, ElementRendererModule, ElementChildrenModule]] });
|
|
2091
2150
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewModule, decorators: [{
|
|
2092
2151
|
type: i0.NgModule,
|
|
2093
2152
|
args: [{
|
|
2094
2153
|
declarations: [PreviewComponent],
|
|
2095
|
-
imports: [
|
|
2154
|
+
imports: [i8.CommonModule, i6.LoaderModule, ElementRendererModule, ElementChildrenModule],
|
|
2155
|
+
providers: [IntegrationState],
|
|
2096
2156
|
exports: [PreviewComponent],
|
|
2097
2157
|
}]
|
|
2098
2158
|
}] });
|
|
@@ -2109,7 +2169,7 @@
|
|
|
2109
2169
|
return ConfigurationModule;
|
|
2110
2170
|
}());
|
|
2111
2171
|
ConfigurationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ConfigurationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2112
|
-
ConfigurationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ConfigurationModule, imports: [
|
|
2172
|
+
ConfigurationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ConfigurationModule, imports: [i6.ConfirmationDialogModule] });
|
|
2113
2173
|
ConfigurationModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ConfigurationModule, providers: [
|
|
2114
2174
|
i2.ContextService,
|
|
2115
2175
|
i1.ContextApiService,
|
|
@@ -2118,11 +2178,11 @@
|
|
|
2118
2178
|
ConfigurationRuntimeService,
|
|
2119
2179
|
RuntimeContextService,
|
|
2120
2180
|
ConfigurationService,
|
|
2121
|
-
], imports: [[
|
|
2181
|
+
], imports: [[i6.ConfirmationDialogModule]] });
|
|
2122
2182
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ConfigurationModule, decorators: [{
|
|
2123
2183
|
type: i0.NgModule,
|
|
2124
2184
|
args: [{
|
|
2125
|
-
imports: [
|
|
2185
|
+
imports: [i6.ConfirmationDialogModule],
|
|
2126
2186
|
providers: [
|
|
2127
2187
|
i2.ContextService,
|
|
2128
2188
|
i1.ContextApiService,
|
|
@@ -2141,29 +2201,13 @@
|
|
|
2141
2201
|
return LauncherModule;
|
|
2142
2202
|
}());
|
|
2143
2203
|
LauncherModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LauncherModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2144
|
-
LauncherModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LauncherModule, imports: [
|
|
2145
|
-
LauncherModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LauncherModule, providers: [
|
|
2146
|
-
LauncherService,
|
|
2147
|
-
DynamicModuleService,
|
|
2148
|
-
i1.SalesforceApiService,
|
|
2149
|
-
i1.QuoteApiService,
|
|
2150
|
-
i1.DocumentTemplatesApiService,
|
|
2151
|
-
i1.DocumentAttachmentApiService,
|
|
2152
|
-
i5$1.DialogService,
|
|
2153
|
-
], imports: [[i7.CommonModule, core.CoreModule, ConfigurationModule]] });
|
|
2204
|
+
LauncherModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LauncherModule, imports: [i8.CommonModule, core.CoreModule, i1.ApiModule, ConfigurationModule] });
|
|
2205
|
+
LauncherModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LauncherModule, providers: [LauncherService, IntegrationState, DynamicModuleService, i5.DialogService], imports: [[i8.CommonModule, core.CoreModule, i1.ApiModule, ConfigurationModule]] });
|
|
2154
2206
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: LauncherModule, decorators: [{
|
|
2155
2207
|
type: i0.NgModule,
|
|
2156
2208
|
args: [{
|
|
2157
|
-
imports: [
|
|
2158
|
-
providers: [
|
|
2159
|
-
LauncherService,
|
|
2160
|
-
DynamicModuleService,
|
|
2161
|
-
i1.SalesforceApiService,
|
|
2162
|
-
i1.QuoteApiService,
|
|
2163
|
-
i1.DocumentTemplatesApiService,
|
|
2164
|
-
i1.DocumentAttachmentApiService,
|
|
2165
|
-
i5$1.DialogService,
|
|
2166
|
-
],
|
|
2209
|
+
imports: [i8.CommonModule, core.CoreModule, i1.ApiModule, ConfigurationModule],
|
|
2210
|
+
providers: [LauncherService, IntegrationState, DynamicModuleService, i5.DialogService],
|
|
2167
2211
|
}]
|
|
2168
2212
|
}] });
|
|
2169
2213
|
|
|
@@ -2177,6 +2221,7 @@
|
|
|
2177
2221
|
exports.ELEMENT_CONFIG = ELEMENT_CONFIG;
|
|
2178
2222
|
exports.ELEMENT_METADATA = ELEMENT_METADATA;
|
|
2179
2223
|
exports.ElementDefinition = ElementDefinition;
|
|
2224
|
+
exports.IntegrationState = IntegrationState;
|
|
2180
2225
|
exports.LauncherModule = LauncherModule;
|
|
2181
2226
|
exports.LauncherService = LauncherService;
|
|
2182
2227
|
exports.LineItemWorker = LineItemWorker;
|