@veloceapps/sdk 3.1.3 → 3.1.5
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 +108 -75
- package/bundles/veloce-sdk-cms.umd.js.map +1 -1
- package/bundles/veloce-sdk-core.umd.js +7 -1
- package/bundles/veloce-sdk-core.umd.js.map +1 -1
- package/bundles/veloce-sdk.umd.js +181 -98
- package/bundles/veloce-sdk.umd.js.map +1 -1
- package/cms/cms.actions.d.ts +12 -0
- package/cms/index.d.ts +2 -0
- package/cms/modules/federated/default-options.d.ts +4 -0
- package/cms/modules/federated/export.d.ts +1 -0
- package/cms/{components → modules}/federated/federated.component.d.ts +12 -22
- package/cms/{components → modules}/federated/federated.module.d.ts +3 -1
- package/cms/modules/federated/federated.types.d.ts +30 -0
- package/cms/modules/federated/federated.utils.d.ts +1 -0
- package/cms/services/integration.state.d.ts +1 -4
- package/cms/types/index.d.ts +1 -0
- package/cms/types/integration.types.d.ts +4 -0
- package/cms/utils/index.d.ts +0 -1
- package/cms/vendor-map.d.ts +8 -0
- package/core/modules/configuration/services/configuration.service.d.ts +1 -0
- package/esm2015/cms/cms.actions.js +17 -0
- package/esm2015/cms/index.js +3 -1
- package/esm2015/cms/modules/federated/default-options.js +5 -0
- package/esm2015/cms/modules/federated/export.js +2 -0
- package/esm2015/cms/modules/federated/federated.component.js +82 -0
- package/esm2015/cms/modules/federated/federated.module.js +19 -0
- package/esm2015/cms/modules/federated/federated.types.js +2 -0
- package/esm2015/cms/modules/federated/federated.utils.js +37 -0
- package/esm2015/cms/services/integration.state.js +1 -1
- package/esm2015/cms/services/launcher.service.js +2 -2
- package/esm2015/cms/types/index.js +2 -1
- package/esm2015/cms/types/integration.types.js +2 -0
- package/esm2015/cms/utils/index.js +1 -2
- package/esm2015/cms/vendor-map.js +4 -3
- package/esm2015/core/modules/configuration/services/configuration-runtime.service.js +2 -2
- package/esm2015/core/modules/configuration/services/configuration.service.js +7 -1
- package/esm2015/src/components/header/cart-overlay/cart-overlay.component.js +4 -4
- package/esm2015/src/components/header/header.component.js +3 -2
- package/esm2015/src/flow-routing.module.js +21 -3
- package/esm2015/src/guards/product-unload.guard.js +30 -0
- package/esm2015/src/pages/product/product.component.js +26 -38
- package/esm2015/src/services/flow-router.service.js +13 -5
- package/esm2015/src/services/flow.service.js +47 -12
- package/esm2015/src/services/fow-dialog.service.js +9 -1
- package/fesm2015/veloce-sdk-cms.js +96 -68
- package/fesm2015/veloce-sdk-cms.js.map +1 -1
- package/fesm2015/veloce-sdk-core.js +7 -1
- package/fesm2015/veloce-sdk-core.js.map +1 -1
- package/fesm2015/veloce-sdk.js +151 -70
- package/fesm2015/veloce-sdk.js.map +1 -1
- package/package.json +1 -1
- package/src/components/header/cart-overlay/cart-overlay.component.d.ts +1 -1
- package/src/components/header/header.component.d.ts +1 -0
- package/src/guards/product-unload.guard.d.ts +13 -0
- package/src/pages/product/product.component.d.ts +3 -6
- package/src/services/flow-router.service.d.ts +3 -1
- package/src/services/flow.service.d.ts +5 -1
- package/src/services/fow-dialog.service.d.ts +1 -0
- package/cms/utils/federated.util.d.ts +0 -6
- package/esm2015/cms/components/federated/federated.component.js +0 -81
- package/esm2015/cms/components/federated/federated.module.js +0 -16
- package/esm2015/cms/utils/federated.util.js +0 -37
@@ -1,8 +1,8 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('lodash'), require('@angular/common'), require('@veloce/core'), require('@angular/cdk/drag-drop'), require('@angular/forms'), require('@veloce/sdk/core'), require('@babel/standalone'), require('@veloce/api'), require('rxjs/operators'), require('primeng/api'), require('
|
3
|
-
typeof define === 'function' && define.amd ? define('@veloce/sdk/cms', ['exports', '@angular/core', 'rxjs', 'lodash', '@angular/common', '@veloce/core', '@angular/cdk/drag-drop', '@angular/forms', '@veloce/sdk/core', '@babel/standalone', '@veloce/api', 'rxjs/operators', 'primeng/api', '
|
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.lodash, global.ng.common, global["@veloce/core"], global.ng.cdk.dragDrop, global.ng.forms, global.veloce.sdk.core, global["@babel/standalone"], global["@veloce/api"], global.rxjs.operators, global["primeng/api"], global["
|
5
|
-
})(this, (function (exports, i0, rxjs, lodash, i7, core, dragDrop, angularForms, i2, standalone, api, rxjsOperators, i3,
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('lodash'), require('@angular/common'), require('@veloce/core'), require('@angular/cdk/drag-drop'), require('@angular/forms'), require('@veloce/sdk/core'), require('@veloce/components'), require('@babel/standalone'), require('@veloce/api'), require('rxjs/operators'), require('primeng/api'), require('primeng/dynamicdialog')) :
|
3
|
+
typeof define === 'function' && define.amd ? define('@veloce/sdk/cms', ['exports', '@angular/core', 'rxjs', 'lodash', '@angular/common', '@veloce/core', '@angular/cdk/drag-drop', '@angular/forms', '@veloce/sdk/core', '@veloce/components', '@babel/standalone', '@veloce/api', 'rxjs/operators', 'primeng/api', 'primeng/dynamicdialog'], 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.lodash, global.ng.common, global["@veloce/core"], global.ng.cdk.dragDrop, global.ng.forms, global.veloce.sdk.core, global["@veloce/components"], global["@babel/standalone"], global["@veloce/api"], global.rxjs.operators, global["primeng/api"], global["primeng/dynamicdialog"]));
|
5
|
+
})(this, (function (exports, i0, rxjs, lodash, i7, core, dragDrop, angularForms, i2, i1, standalone, api, rxjsOperators, i3, dynamicdialog) { 'use strict';
|
6
6
|
|
7
7
|
function _interopNamespace(e) {
|
8
8
|
if (e && e.__esModule) return e;
|
@@ -28,9 +28,37 @@
|
|
28
28
|
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
29
29
|
var angularForms__namespace = /*#__PURE__*/_interopNamespace(angularForms);
|
30
30
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
31
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
31
32
|
var rxjsOperators__namespace = /*#__PURE__*/_interopNamespace(rxjsOperators);
|
32
33
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
33
|
-
|
34
|
+
|
35
|
+
exports.FlowAction = void 0;
|
36
|
+
(function (FlowAction) {
|
37
|
+
FlowAction["FLOW_CONFIGURE_PRODUCT"] = "FLOW_CONFIGURE_PRODUCT";
|
38
|
+
FlowAction["FLOW_NAVIGATE_BACK"] = "FLOW_NAVIGATE_BACK";
|
39
|
+
FlowAction["FLOW_APPLY_PRODUCT_CONFIGURATION"] = "FLOW_APPLY_PRODUCT_CONFIGURATION";
|
40
|
+
})(exports.FlowAction || (exports.FlowAction = {}));
|
41
|
+
var ConfigureProductAction = function (_a) {
|
42
|
+
var lineItemId = _a.lineItemId, productId = _a.productId;
|
43
|
+
return ({
|
44
|
+
type: exports.FlowAction.FLOW_CONFIGURE_PRODUCT,
|
45
|
+
payload: { lineItemId: lineItemId, productId: productId },
|
46
|
+
});
|
47
|
+
};
|
48
|
+
var NavigateBackAction = function () { return ({
|
49
|
+
type: exports.FlowAction.FLOW_NAVIGATE_BACK,
|
50
|
+
}); };
|
51
|
+
var ApplyProductConfigurationAction = function () { return ({
|
52
|
+
type: exports.FlowAction.FLOW_APPLY_PRODUCT_CONFIGURATION,
|
53
|
+
}); };
|
54
|
+
|
55
|
+
var cmsInjectionTokens = /*#__PURE__*/Object.freeze({
|
56
|
+
__proto__: null,
|
57
|
+
get FlowAction () { return exports.FlowAction; },
|
58
|
+
ConfigureProductAction: ConfigureProductAction,
|
59
|
+
NavigateBackAction: NavigateBackAction,
|
60
|
+
ApplyProductConfigurationAction: ApplyProductConfigurationAction
|
61
|
+
});
|
34
62
|
|
35
63
|
/*! *****************************************************************************
|
36
64
|
Copyright (c) Microsoft Corporation.
|
@@ -357,7 +385,7 @@
|
|
357
385
|
var ELEMENT_CONFIG = new i0.InjectionToken('ELEMENT_CONFIG_TOKEN');
|
358
386
|
var VENDOR_MAP = new i0.InjectionToken('VENDOR_MAP');
|
359
387
|
|
360
|
-
var
|
388
|
+
var cmsActions = /*#__PURE__*/Object.freeze({
|
361
389
|
__proto__: null,
|
362
390
|
DEFAULT_PLUGINS_TOKEN: DEFAULT_PLUGINS_TOKEN,
|
363
391
|
UI_DEFINITION_METADATA: UI_DEFINITION_METADATA,
|
@@ -1052,6 +1080,34 @@
|
|
1052
1080
|
}]
|
1053
1081
|
}], ctorParameters: function () { return [{ type: ElementContextService }]; } });
|
1054
1082
|
|
1083
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
1084
|
+
var CustomTemplateDirective = /** @class */ (function () {
|
1085
|
+
function CustomTemplateDirective(templateRef, templatesService) {
|
1086
|
+
this.templateRef = templateRef;
|
1087
|
+
this.templatesService = templatesService;
|
1088
|
+
}
|
1089
|
+
CustomTemplateDirective.prototype.ngAfterViewInit = function () {
|
1090
|
+
if (!this.customTemplate) {
|
1091
|
+
return;
|
1092
|
+
}
|
1093
|
+
this.templatesService.register(this.customTemplate, this.templateRef);
|
1094
|
+
};
|
1095
|
+
return CustomTemplateDirective;
|
1096
|
+
}());
|
1097
|
+
CustomTemplateDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CustomTemplateDirective, deps: [{ token: i0__namespace.TemplateRef }, { token: TemplatesService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
1098
|
+
CustomTemplateDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: CustomTemplateDirective, selector: "[customTemplate]", inputs: { customTemplate: "customTemplate" }, ngImport: i0__namespace });
|
1099
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CustomTemplateDirective, decorators: [{
|
1100
|
+
type: i0.Directive,
|
1101
|
+
args: [{ selector: '[customTemplate]' }]
|
1102
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.TemplateRef }, { type: TemplatesService }]; }, propDecorators: { customTemplate: [{
|
1103
|
+
type: i0.Input
|
1104
|
+
}] } });
|
1105
|
+
|
1106
|
+
var defaultOptions = {
|
1107
|
+
suppressLoading: false,
|
1108
|
+
loadingLabel: 'LOADING',
|
1109
|
+
};
|
1110
|
+
|
1055
1111
|
var moduleMap = {};
|
1056
1112
|
function loadRemoteEntry(remoteEntry) {
|
1057
1113
|
return new Promise(function (resolve, reject) {
|
@@ -1095,68 +1151,73 @@
|
|
1095
1151
|
});
|
1096
1152
|
});
|
1097
1153
|
}
|
1098
|
-
function loadRemoteModule(
|
1154
|
+
function loadRemoteModule(remoteEntry, remoteName, exposedModule) {
|
1099
1155
|
return __awaiter(this, void 0, void 0, function () {
|
1100
1156
|
return __generator(this, function (_a) {
|
1101
1157
|
switch (_a.label) {
|
1102
|
-
case 0: return [4 /*yield*/, loadRemoteEntry(
|
1158
|
+
case 0: return [4 /*yield*/, loadRemoteEntry(remoteEntry)];
|
1103
1159
|
case 1:
|
1104
1160
|
_a.sent();
|
1105
|
-
return [4 /*yield*/, lookupExposedModule(
|
1161
|
+
return [4 /*yield*/, lookupExposedModule(remoteName, exposedModule)];
|
1106
1162
|
case 2: return [2 /*return*/, _a.sent()];
|
1107
1163
|
}
|
1108
1164
|
});
|
1109
1165
|
});
|
1110
1166
|
}
|
1111
1167
|
|
1112
|
-
var IntegrationEvent;
|
1113
|
-
(function (IntegrationEvent) {
|
1114
|
-
IntegrationEvent["Init"] = "Init";
|
1115
|
-
})(IntegrationEvent || (IntegrationEvent = {}));
|
1116
1168
|
var FederatedComponent = /** @class */ (function () {
|
1117
1169
|
function FederatedComponent(injector, compiler, appRef, renderer) {
|
1118
1170
|
this.injector = injector;
|
1119
1171
|
this.compiler = compiler;
|
1120
1172
|
this.appRef = appRef;
|
1121
1173
|
this.renderer = renderer;
|
1122
|
-
this.
|
1123
|
-
|
1174
|
+
this.isLoading$ = new rxjs.BehaviorSubject(false);
|
1175
|
+
// configs
|
1176
|
+
this.suppressLoading = defaultOptions.suppressLoading;
|
1177
|
+
this.loadingLabel = defaultOptions.loadingLabel;
|
1124
1178
|
}
|
1179
|
+
FederatedComponent.prototype.ngOnChanges = function (changes) {
|
1180
|
+
var _a, _b, _c, _d;
|
1181
|
+
if (changes.data && this.instance) {
|
1182
|
+
this.instance.data = this.data;
|
1183
|
+
}
|
1184
|
+
if (changes.options) {
|
1185
|
+
this.suppressLoading = (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.suppressLoading) !== null && _b !== void 0 ? _b : defaultOptions.suppressLoading;
|
1186
|
+
this.loadingLabel = (_d = (_c = this.options) === null || _c === void 0 ? void 0 : _c.loadingLabel) !== null && _d !== void 0 ? _d : defaultOptions.loadingLabel;
|
1187
|
+
}
|
1188
|
+
};
|
1189
|
+
FederatedComponent.prototype.ngOnInit = function () {
|
1190
|
+
this.isLoading$.next(true);
|
1191
|
+
};
|
1125
1192
|
FederatedComponent.prototype.ngAfterViewInit = function () {
|
1126
1193
|
var _this = this;
|
1127
|
-
|
1194
|
+
var _a, _b, _c, _d, _e, _f;
|
1195
|
+
var remoteEntry = (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.remoteEntry) !== null && _b !== void 0 ? _b : this.remoteEntry;
|
1196
|
+
var remoteName = (_d = (_c = this.options) === null || _c === void 0 ? void 0 : _c.remoteName) !== null && _d !== void 0 ? _d : this.remoteName;
|
1197
|
+
var exposedModule = (_f = (_e = this.options) === null || _e === void 0 ? void 0 : _e.exposedModule) !== null && _f !== void 0 ? _f : this.exposedModule;
|
1198
|
+
if (!remoteEntry || !remoteName || !exposedModule) {
|
1128
1199
|
return;
|
1129
1200
|
}
|
1130
|
-
loadRemoteModule({
|
1131
|
-
|
1132
|
-
|
1133
|
-
exposedModule: this.exposedModule,
|
1134
|
-
}).then(function (federated) {
|
1135
|
-
_this.compiler.compileModuleAsync(federated[_this.exposedModule]).then(function (moduleFactory) {
|
1136
|
-
var _a;
|
1201
|
+
loadRemoteModule(remoteEntry, remoteName, exposedModule).then(function (federated) {
|
1202
|
+
_this.compiler.compileModuleAsync(federated[exposedModule]).then(function (moduleFactory) {
|
1203
|
+
var _a, _b, _c;
|
1137
1204
|
var rootModuleRef = moduleFactory.create(_this.injector);
|
1138
|
-
var rootComponentFactory = rootModuleRef.componentFactoryResolver.resolveComponentFactory(federated[
|
1205
|
+
var rootComponentFactory = rootModuleRef.componentFactoryResolver.resolveComponentFactory(federated[exposedModule].rootComponent);
|
1139
1206
|
var node = document.createElement('div');
|
1140
|
-
var
|
1207
|
+
var _g = rootComponentFactory.create(_this.injector, [], node), instance = _g.instance, hostView = _g.hostView;
|
1141
1208
|
_this.instance = instance;
|
1142
1209
|
_this.instance.data = _this.data;
|
1143
|
-
_this.instance.eventData = _this.eventData;
|
1144
|
-
_this.instance.integrationEvent = _this.integrationEvent;
|
1145
1210
|
_this.renderer.appendChild((_a = _this.moduleHostRef) === null || _a === void 0 ? void 0 : _a.nativeElement, node);
|
1146
1211
|
_this.appRef.attachView(hostView);
|
1212
|
+
(_c = (_b = _this.options) === null || _b === void 0 ? void 0 : _b.onReady) === null || _c === void 0 ? void 0 : _c.call(_b);
|
1213
|
+
_this.isLoading$.next(false);
|
1147
1214
|
});
|
1148
1215
|
});
|
1149
1216
|
};
|
1150
|
-
FederatedComponent.prototype.ngOnChanges = function (changes) {
|
1151
|
-
if (!this.instance) {
|
1152
|
-
return;
|
1153
|
-
}
|
1154
|
-
this.instance.ngOnChanges(changes);
|
1155
|
-
};
|
1156
1217
|
return FederatedComponent;
|
1157
1218
|
}());
|
1158
1219
|
FederatedComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FederatedComponent, deps: [{ token: i0__namespace.Injector }, { token: i0__namespace.Compiler }, { token: i0__namespace.ApplicationRef }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
1159
|
-
FederatedComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: FederatedComponent, selector: "veloce-host-federated", inputs: { remoteEntry: "remoteEntry", remoteName: "remoteName", exposedModule: "exposedModule", data: "data",
|
1220
|
+
FederatedComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: FederatedComponent, selector: "veloce-host-federated", inputs: { remoteEntry: "remoteEntry", remoteName: "remoteName", exposedModule: "exposedModule", data: "data", options: "options" }, viewQueries: [{ propertyName: "moduleHostRef", first: true, predicate: ["moduleHost"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div #moduleHost></div>\n\n<vl-loader *ngIf=\"!suppressLoading && (isLoading$ | async)\" [label]=\"loadingLabel\"></vl-loader>\n", styles: [":host{display:block}div{height:100%}\n"], components: [{ type: i1__namespace.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i7__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
1160
1221
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FederatedComponent, decorators: [{
|
1161
1222
|
type: i0.Component,
|
1162
1223
|
args: [{
|
@@ -1166,13 +1227,7 @@
|
|
1166
1227
|
styleUrls: ['./federated.component.scss'],
|
1167
1228
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
1168
1229
|
}]
|
1169
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }, { type: i0__namespace.Compiler }, { type: i0__namespace.ApplicationRef }, { type: i0__namespace.Renderer2 }]; }, propDecorators: {
|
1170
|
-
type: i0.ViewChild,
|
1171
|
-
args: ['federatedComponent', { read: i0.ViewContainerRef }]
|
1172
|
-
}], foo: [{
|
1173
|
-
type: i0.ViewChild,
|
1174
|
-
args: ['foo', { read: i0.TemplateRef }]
|
1175
|
-
}], moduleHostRef: [{
|
1230
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }, { type: i0__namespace.Compiler }, { type: i0__namespace.ApplicationRef }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { moduleHostRef: [{
|
1176
1231
|
type: i0.ViewChild,
|
1177
1232
|
args: ['moduleHost', { static: false }]
|
1178
1233
|
}], remoteEntry: [{
|
@@ -1183,10 +1238,8 @@
|
|
1183
1238
|
type: i0.Input
|
1184
1239
|
}], data: [{
|
1185
1240
|
type: i0.Input
|
1186
|
-
}],
|
1241
|
+
}], options: [{
|
1187
1242
|
type: i0.Input
|
1188
|
-
}], integrationEvent: [{
|
1189
|
-
type: i0.Output
|
1190
1243
|
}] } });
|
1191
1244
|
|
1192
1245
|
var FederatedModule = /** @class */ (function () {
|
@@ -1195,39 +1248,17 @@
|
|
1195
1248
|
return FederatedModule;
|
1196
1249
|
}());
|
1197
1250
|
FederatedModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FederatedModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
1198
|
-
FederatedModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FederatedModule, declarations: [FederatedComponent], exports: [FederatedComponent] });
|
1199
|
-
FederatedModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FederatedModule });
|
1251
|
+
FederatedModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FederatedModule, declarations: [FederatedComponent], imports: [i7.CommonModule, i1.LoaderModule], exports: [FederatedComponent] });
|
1252
|
+
FederatedModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FederatedModule, imports: [[i7.CommonModule, i1.LoaderModule]] });
|
1200
1253
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: FederatedModule, decorators: [{
|
1201
1254
|
type: i0.NgModule,
|
1202
1255
|
args: [{
|
1203
1256
|
declarations: [FederatedComponent],
|
1257
|
+
imports: [i7.CommonModule, i1.LoaderModule],
|
1204
1258
|
exports: [FederatedComponent],
|
1205
1259
|
}]
|
1206
1260
|
}] });
|
1207
1261
|
|
1208
|
-
// eslint-disable-next-line @angular-eslint/directive-selector
|
1209
|
-
var CustomTemplateDirective = /** @class */ (function () {
|
1210
|
-
function CustomTemplateDirective(templateRef, templatesService) {
|
1211
|
-
this.templateRef = templateRef;
|
1212
|
-
this.templatesService = templatesService;
|
1213
|
-
}
|
1214
|
-
CustomTemplateDirective.prototype.ngAfterViewInit = function () {
|
1215
|
-
if (!this.customTemplate) {
|
1216
|
-
return;
|
1217
|
-
}
|
1218
|
-
this.templatesService.register(this.customTemplate, this.templateRef);
|
1219
|
-
};
|
1220
|
-
return CustomTemplateDirective;
|
1221
|
-
}());
|
1222
|
-
CustomTemplateDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CustomTemplateDirective, deps: [{ token: i0__namespace.TemplateRef }, { token: TemplatesService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
1223
|
-
CustomTemplateDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.15", type: CustomTemplateDirective, selector: "[customTemplate]", inputs: { customTemplate: "customTemplate" }, ngImport: i0__namespace });
|
1224
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: CustomTemplateDirective, decorators: [{
|
1225
|
-
type: i0.Directive,
|
1226
|
-
args: [{ selector: '[customTemplate]' }]
|
1227
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.TemplateRef }, { type: TemplatesService }]; }, propDecorators: { customTemplate: [{
|
1228
|
-
type: i0.Input
|
1229
|
-
}] } });
|
1230
|
-
|
1231
1262
|
var ConfigurationPlugin = /** @class */ (function () {
|
1232
1263
|
function ConfigurationPlugin(host) {
|
1233
1264
|
var _this = this;
|
@@ -1387,7 +1418,7 @@
|
|
1387
1418
|
|
1388
1419
|
var vendorMap = {
|
1389
1420
|
'@veloce/sdk/core': Object.assign({ ConfigurationService: i2.ConfigurationService, FlowConfigurationService: i2.FlowConfigurationService, LineItemWorker: i2.LineItemWorker }, i2.lineItemUtils),
|
1390
|
-
'@veloce/sdk/cms': Object.assign(Object.assign({},
|
1421
|
+
'@veloce/sdk/cms': Object.assign(Object.assign(Object.assign({}, cmsInjectionTokens), cmsActions), { TemplatesService: TemplatesService, IntegrationState: IntegrationState }),
|
1391
1422
|
'@veloce/api': {
|
1392
1423
|
SalesforceApiService: api.SalesforceApiService,
|
1393
1424
|
QuoteApiService: api.QuoteApiService,
|
@@ -1647,7 +1678,7 @@
|
|
1647
1678
|
return PreviewComponent;
|
1648
1679
|
}());
|
1649
1680
|
PreviewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewComponent, deps: [{ token: LauncherService }, { token: i2__namespace.ConfigurationService }, { token: i3__namespace.MessageService }, { token: i2__namespace.ConfigurationRuntimeService }, { token: IntegrationState }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
1650
|
-
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:
|
1681
|
+
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: i1__namespace.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }, { type: ElementRendererComponent, selector: "vl-cms-element-renderer", inputs: ["meta"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i7__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.ShadowDom });
|
1651
1682
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewComponent, decorators: [{
|
1652
1683
|
type: i0.Component,
|
1653
1684
|
args: [{
|
@@ -1706,13 +1737,13 @@
|
|
1706
1737
|
return PreviewModule;
|
1707
1738
|
}());
|
1708
1739
|
PreviewModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
1709
|
-
PreviewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewModule, declarations: [PreviewComponent], imports: [i7.CommonModule,
|
1710
|
-
PreviewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewModule, providers: [IntegrationState], imports: [[i7.CommonModule,
|
1740
|
+
PreviewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewModule, declarations: [PreviewComponent], imports: [i7.CommonModule, i1.LoaderModule, ElementRendererModule, ElementChildrenModule], exports: [PreviewComponent] });
|
1741
|
+
PreviewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewModule, providers: [IntegrationState], imports: [[i7.CommonModule, i1.LoaderModule, ElementRendererModule, ElementChildrenModule]] });
|
1711
1742
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: PreviewModule, decorators: [{
|
1712
1743
|
type: i0.NgModule,
|
1713
1744
|
args: [{
|
1714
1745
|
declarations: [PreviewComponent],
|
1715
|
-
imports: [i7.CommonModule,
|
1746
|
+
imports: [i7.CommonModule, i1.LoaderModule, ElementRendererModule, ElementChildrenModule],
|
1716
1747
|
providers: [IntegrationState],
|
1717
1748
|
exports: [PreviewComponent],
|
1718
1749
|
}]
|
@@ -1744,6 +1775,8 @@
|
|
1744
1775
|
* Generated bundle index. Do not edit.
|
1745
1776
|
*/
|
1746
1777
|
|
1778
|
+
exports.ApplyProductConfigurationAction = ApplyProductConfigurationAction;
|
1779
|
+
exports.ConfigureProductAction = ConfigureProductAction;
|
1747
1780
|
exports.DEFAULT_PLUGINS_TOKEN = DEFAULT_PLUGINS_TOKEN;
|
1748
1781
|
exports.ELEMENT_CONFIG = ELEMENT_CONFIG;
|
1749
1782
|
exports.ELEMENT_METADATA = ELEMENT_METADATA;
|
@@ -1752,6 +1785,7 @@
|
|
1752
1785
|
exports.IntegrationState = IntegrationState;
|
1753
1786
|
exports.LauncherModule = LauncherModule;
|
1754
1787
|
exports.LauncherService = LauncherService;
|
1788
|
+
exports.NavigateBackAction = NavigateBackAction;
|
1755
1789
|
exports.PreviewComponent = PreviewComponent;
|
1756
1790
|
exports.PreviewModule = PreviewModule;
|
1757
1791
|
exports.SHARED_ELEMENT_METADATA = SHARED_ELEMENT_METADATA;
|
@@ -1767,7 +1801,6 @@
|
|
1767
1801
|
exports.getAbsolutePath = getAbsolutePath;
|
1768
1802
|
exports.getElementConfig = getElementConfig;
|
1769
1803
|
exports.isValidScript = isValidScript;
|
1770
|
-
exports.loadRemoteModule = loadRemoteModule;
|
1771
1804
|
exports.metadataToElement = metadataToElement;
|
1772
1805
|
exports.normalizeElementMetadata = normalizeElementMetadata;
|
1773
1806
|
exports.parseBoundPath = parseBoundPath;
|