@veloceapps/sdk 3.1.5 → 3.1.7
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-core.umd.js +41 -16
- package/bundles/veloce-sdk-core.umd.js.map +1 -1
- package/bundles/veloce-sdk-runtime.umd.js +3 -13
- package/bundles/veloce-sdk-runtime.umd.js.map +1 -1
- package/bundles/veloce-sdk.umd.js +145 -120
- package/bundles/veloce-sdk.umd.js.map +1 -1
- package/core/modules/configuration/services/configuration.service.d.ts +2 -2
- package/core/modules/flow-configuration/services/flow-configuration.service.d.ts +2 -2
- package/core/services/context.service.d.ts +4 -4
- package/core/services/quote-draft.service.d.ts +3 -0
- package/esm2015/core/modules/configuration/services/configuration-runtime.service.js +2 -5
- package/esm2015/core/modules/configuration/services/configuration.service.js +2 -2
- package/esm2015/core/modules/flow-configuration/services/flow-configuration.service.js +1 -1
- package/esm2015/core/services/context.service.js +13 -10
- package/esm2015/core/services/quote-draft.service.js +26 -5
- package/esm2015/runtime/components/ui-runtime/runtime.component.js +1 -4
- package/esm2015/runtime/execution/directives/vl-ramp.directive.js +1 -4
- package/esm2015/runtime/services/cart.service.js +1 -1
- package/esm2015/runtime/services/configuration.service.js +3 -3
- package/esm2015/runtime/services/runtime-context.service.js +2 -3
- package/esm2015/runtime/services/runtime.service.js +1 -4
- package/esm2015/src/components/header/header.component.js +36 -19
- package/esm2015/src/flow.component.js +6 -6
- package/esm2015/src/flow.module.js +2 -2
- package/esm2015/src/guards/product-unload.guard.js +7 -6
- package/esm2015/src/pages/catalog/catalog.component.js +3 -3
- package/esm2015/src/pages/legacy-product/legacy-product.component.js +1 -1
- package/esm2015/src/pages/product/product.component.js +2 -3
- package/esm2015/src/pages/shopping-cart/shopping-cart.component.js +3 -3
- package/esm2015/src/resolvers/context.resolver.js +7 -5
- package/esm2015/src/resolvers/quote.resolver.js +2 -2
- package/esm2015/src/services/flow-dialog.service.js +80 -0
- package/esm2015/src/services/flow.service.js +2 -2
- package/esm2015/src/utils/flow.utils.js +1 -11
- package/fesm2015/veloce-sdk-core.js +38 -18
- package/fesm2015/veloce-sdk-core.js.map +1 -1
- package/fesm2015/veloce-sdk-runtime.js +3 -13
- package/fesm2015/veloce-sdk-runtime.js.map +1 -1
- package/fesm2015/veloce-sdk.js +117 -92
- package/fesm2015/veloce-sdk.js.map +1 -1
- package/package.json +1 -1
- package/runtime/services/cart.service.d.ts +1 -1
- package/src/components/header/header.component.d.ts +7 -4
- package/src/flow.component.d.ts +3 -3
- package/src/guards/product-unload.guard.d.ts +4 -3
- package/src/services/{fow-dialog.service.d.ts → flow-dialog.service.d.ts} +2 -0
- package/src/utils/flow.utils.d.ts +0 -2
- package/esm2015/src/services/fow-dialog.service.js +0 -66
@@ -1154,7 +1154,7 @@
|
|
1154
1154
|
}
|
1155
1155
|
else {
|
1156
1156
|
var context = this.contextService.resolve();
|
1157
|
-
if (
|
1157
|
+
if (context.properties && ((_e = runtimeContext.properties) === null || _e === void 0 ? void 0 : _e.StartDate)) {
|
1158
1158
|
this.contextService.update({
|
1159
1159
|
properties: Object.assign(Object.assign({}, context.properties), runtimeContext.properties),
|
1160
1160
|
});
|
@@ -1198,7 +1198,7 @@
|
|
1198
1198
|
.onClose.subscribe(function (result) {
|
1199
1199
|
if (!result) {
|
1200
1200
|
var context = _this.contextService.resolve();
|
1201
|
-
window['VELO_BACK_FN'].apply(null, [
|
1201
|
+
window['VELO_BACK_FN'].apply(null, [context.headerId]);
|
1202
1202
|
}
|
1203
1203
|
});
|
1204
1204
|
};
|
@@ -1264,9 +1264,6 @@
|
|
1264
1264
|
.pipe(rxjsOperators.take(1))
|
1265
1265
|
.subscribe(function (lineItem) {
|
1266
1266
|
var context = _this.contextService.resolve();
|
1267
|
-
if (!context) {
|
1268
|
-
return;
|
1269
|
-
}
|
1270
1267
|
_this.updateRuntimeContext(context.properties);
|
1271
1268
|
_this.solutionUpdatedSubject.next(lineItem);
|
1272
1269
|
}, function (error) {
|
@@ -1414,8 +1411,7 @@
|
|
1414
1411
|
};
|
1415
1412
|
RuntimeContextService.prototype.getUIDefinition = function (uiDefinitions) {
|
1416
1413
|
if (uiDefinitions === void 0) { uiDefinitions = []; }
|
1417
|
-
var
|
1418
|
-
var uiDefinitionId = ((_a = this.contextService.resolve()) !== null && _a !== void 0 ? _a : {}).uiDefinitionId;
|
1414
|
+
var uiDefinitionId = this.contextService.resolve().uiDefinitionId;
|
1419
1415
|
var findByFn = function (uiDef) { return (uiDefinitionId ? uiDefinitionId === uiDef.id : uiDef.primary); };
|
1420
1416
|
var uiDefinition = uiDefinitions.find(findByFn) || (uiDefinitions.length === 1 && Object.assign({}, uiDefinitions[0]));
|
1421
1417
|
if (!uiDefinition) {
|
@@ -3016,9 +3012,6 @@
|
|
3016
3012
|
VlRampDirective.prototype.createRamp = function (sourceItems, currentRamps, term) {
|
3017
3013
|
var _this = this;
|
3018
3014
|
var context = this.contextService.resolve();
|
3019
|
-
if (!context) {
|
3020
|
-
throw new Error('Context is not provided');
|
3021
|
-
}
|
3022
3015
|
return this.rampApiService
|
3023
3016
|
.next({
|
3024
3017
|
context: context,
|
@@ -3985,9 +3978,6 @@
|
|
3985
3978
|
var _a;
|
3986
3979
|
var context = this.runtimeService.getRuntimeContext();
|
3987
3980
|
var configurationContext = this.contextService.resolve();
|
3988
|
-
if (!configurationContext) {
|
3989
|
-
return;
|
3990
|
-
}
|
3991
3981
|
var mergeContext = Object.assign(Object.assign({}, context), { properties: Object.assign(Object.assign({}, context.properties), configurationContext.properties) });
|
3992
3982
|
var accountId = (_a = mergeContext.properties) === null || _a === void 0 ? void 0 : _a.AccountId;
|
3993
3983
|
if (accountId && accountId.length === 15) {
|