@veloceapps/sdk 6.0.0-99 → 7.0.0-1
Sign up to get free protection for your applications and to get access to all the features.
- package/bundles/veloceapps-sdk-core.umd.js +18 -0
- package/bundles/veloceapps-sdk-core.umd.js.map +1 -1
- package/bundles/veloceapps-sdk.umd.js +10 -3
- package/bundles/veloceapps-sdk.umd.js.map +1 -1
- package/cms/vendor-map.d.ts +1 -0
- package/core/utils/line-item.utils.d.ts +1 -0
- package/esm2015/core/utils/line-item.utils.js +17 -1
- package/esm2015/src/resolvers/quote.resolver.js +13 -4
- package/fesm2015/veloceapps-sdk-core.js +18 -1
- package/fesm2015/veloceapps-sdk-core.js.map +1 -1
- package/fesm2015/veloceapps-sdk.js +11 -4
- package/fesm2015/veloceapps-sdk.js.map +1 -1
- package/package.json +4 -4
- package/src/resolvers/quote.resolver.d.ts +4 -1
@@ -3312,12 +3312,13 @@
|
|
3312
3312
|
}], ctorParameters: function () { return [{ type: i1__namespace$2.Router }, { type: i2__namespace.FlowsApiService }, { type: FlowRouterService }, { type: i1__namespace$1.ContextService }]; } });
|
3313
3313
|
|
3314
3314
|
var QuoteResolver = /** @class */ (function () {
|
3315
|
-
function QuoteResolver(router, quoteDraftService, routerService, contextService, flowConfiguration) {
|
3315
|
+
function QuoteResolver(router, quoteDraftService, routerService, contextService, flowConfiguration, integrationState) {
|
3316
3316
|
this.router = router;
|
3317
3317
|
this.quoteDraftService = quoteDraftService;
|
3318
3318
|
this.routerService = routerService;
|
3319
3319
|
this.contextService = contextService;
|
3320
3320
|
this.flowConfiguration = flowConfiguration;
|
3321
|
+
this.integrationState = integrationState;
|
3321
3322
|
}
|
3322
3323
|
QuoteResolver.prototype.handleError = function (route, message) {
|
3323
3324
|
var parentUrl = this.routerService.getFlowRootPath(route);
|
@@ -3347,6 +3348,7 @@
|
|
3347
3348
|
_this.changeNavigation('/cart', route);
|
3348
3349
|
}
|
3349
3350
|
}
|
3351
|
+
_this.initializeModifiedAssetsMap();
|
3350
3352
|
_this.quoteDraftService.isInitialized = true;
|
3351
3353
|
_this.quoteDraftService.hasUnsavedChanges = false;
|
3352
3354
|
}), rxjs.catchError(function (e) {
|
@@ -3377,13 +3379,18 @@
|
|
3377
3379
|
QuoteResolver.prototype.accountHasNotAssets = function () {
|
3378
3380
|
return this.contextService.mode === core.ConfigurationContextMode.ACCOUNT && !this.quoteDraftService.hasProducts;
|
3379
3381
|
};
|
3382
|
+
QuoteResolver.prototype.initializeModifiedAssetsMap = function () {
|
3383
|
+
this.integrationState.patchState({
|
3384
|
+
modifiedAssets: i1$1.generateModifiedAssetsMap(this.quoteDraftService.currentState),
|
3385
|
+
});
|
3386
|
+
};
|
3380
3387
|
return QuoteResolver;
|
3381
3388
|
}());
|
3382
|
-
QuoteResolver.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuoteResolver, deps: [{ token: i1__namespace$2.Router }, { token: i1__namespace$1.QuoteDraftService }, { token: FlowRouterService }, { token: i1__namespace$1.ContextService }, { token: i1__namespace$1.FlowConfigurationService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
3389
|
+
QuoteResolver.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuoteResolver, deps: [{ token: i1__namespace$2.Router }, { token: i1__namespace$1.QuoteDraftService }, { token: FlowRouterService }, { token: i1__namespace$1.ContextService }, { token: i1__namespace$1.FlowConfigurationService }, { token: i4__namespace.IntegrationState }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
3383
3390
|
QuoteResolver.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuoteResolver });
|
3384
3391
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuoteResolver, decorators: [{
|
3385
3392
|
type: i0.Injectable
|
3386
|
-
}], ctorParameters: function () { return [{ type: i1__namespace$2.Router }, { type: i1__namespace$1.QuoteDraftService }, { type: FlowRouterService }, { type: i1__namespace$1.ContextService }, { type: i1__namespace$1.FlowConfigurationService }]; } });
|
3393
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$2.Router }, { type: i1__namespace$1.QuoteDraftService }, { type: FlowRouterService }, { type: i1__namespace$1.ContextService }, { type: i1__namespace$1.FlowConfigurationService }, { type: i4__namespace.IntegrationState }]; } });
|
3387
3394
|
|
3388
3395
|
var rootRoute = {
|
3389
3396
|
id: VELOCE_FLOW_ROOT_ROUTE,
|