@veloceapps/sdk 6.0.0-23 → 6.0.0-25
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/veloceapps-sdk-core.umd.js +19 -22
- package/bundles/veloceapps-sdk-core.umd.js.map +1 -1
- package/bundles/veloceapps-sdk-runtime.umd.js.map +1 -1
- package/bundles/veloceapps-sdk.umd.js +6 -16
- package/bundles/veloceapps-sdk.umd.js.map +1 -1
- package/core/modules/configuration/services/configuration-runtime.service.d.ts +1 -3
- package/core/modules/configuration/services/configuration.service.d.ts +4 -3
- package/core/modules/configuration/types/configuration-runtime.types.d.ts +0 -2
- package/core/services/quote-draft.service.d.ts +2 -2
- package/core/types/index.d.ts +0 -1
- package/esm2015/core/modules/configuration/services/configuration-runtime.service.js +1 -6
- package/esm2015/core/modules/configuration/services/configuration.service.js +17 -15
- package/esm2015/core/modules/configuration/types/configuration-runtime.types.js +1 -1
- package/esm2015/core/services/quote-draft.service.js +4 -4
- package/esm2015/core/types/index.js +1 -2
- package/esm2015/runtime/execution/directives/vl-quote.directive.js +1 -1
- package/esm2015/runtime/services/configuration.service.js +1 -1
- package/esm2015/runtime/services/runtime.service.js +1 -1
- package/esm2015/runtime/types/index.js +2 -1
- package/esm2015/runtime/types/quote-states.types.js +2 -0
- package/esm2015/src/components/header/header.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 -9
- package/esm2015/src/pages/remote/remote.component.js +2 -5
- package/esm2015/src/resolvers/quote.resolver.js +3 -3
- package/fesm2015/veloceapps-sdk-core.js +19 -22
- package/fesm2015/veloceapps-sdk-core.js.map +1 -1
- package/fesm2015/veloceapps-sdk-runtime.js.map +1 -1
- package/fesm2015/veloceapps-sdk.js +6 -16
- package/fesm2015/veloceapps-sdk.js.map +1 -1
- package/package.json +1 -1
- package/runtime/services/configuration.service.d.ts +2 -1
- package/runtime/services/runtime.service.d.ts +2 -1
- package/runtime/types/index.d.ts +1 -0
- package/{core → runtime}/types/quote-states.types.d.ts +0 -0
- package/src/pages/product/product.component.d.ts +0 -1
- package/esm2015/core/types/quote-states.types.js +0 -2
@@ -1275,7 +1275,7 @@
|
|
1275
1275
|
this.contextProperties$ = this.contextService.resolve$().pipe(rxjs.map(function (ctx) { return ctx.properties; }));
|
1276
1276
|
this.objectName$ = this.mode$.pipe(rxjs.map(function (mode) { var _a; return (_a = mode === null || mode === void 0 ? void 0 : mode.toLocaleLowerCase()) !== null && _a !== void 0 ? _a : ''; }));
|
1277
1277
|
this.activePriceList$ = this.quoteDraftService.activePriceList$;
|
1278
|
-
this.isReadonlyMode$ = this.quoteDraftService.
|
1278
|
+
this.isReadonlyMode$ = this.quoteDraftService.hasProducts$.pipe(rxjs.map(function () { return _this.isReadonlyMode(); }));
|
1279
1279
|
this.status$ = this.contextService.resolve$().pipe(rxjs.map(function (context) { var _a; return (_a = context.properties.Status) !== null && _a !== void 0 ? _a : ''; }));
|
1280
1280
|
this.isEditMode$ = this.quoteDraftService.isEditMode$();
|
1281
1281
|
this.products$ = this.flowConfiguration.get().pipe(rxjs.map(function (lineItems) { return _this.generateProducts(lineItems); }));
|
@@ -1556,7 +1556,7 @@
|
|
1556
1556
|
FlowHeaderComponent.prototype.isReadonlyMode = function () {
|
1557
1557
|
var _a;
|
1558
1558
|
return (((_a = this.quoteDraftService.quoteDraft) === null || _a === void 0 ? void 0 : _a.context.properties.mode) === core.ConfigurationContextMode.ACCOUNT &&
|
1559
|
-
!this.quoteDraftService.
|
1559
|
+
!this.quoteDraftService.hasProducts);
|
1560
1560
|
};
|
1561
1561
|
FlowHeaderComponent.prototype.isUpsellQuoteWithoutChanges = function () {
|
1562
1562
|
var noUpdates = this.quoteDraftService.activeCurrentState.every(function (lineItem) { return lineItem.actionCode === 'EXIST'; });
|
@@ -2408,11 +2408,7 @@
|
|
2408
2408
|
return id === lineItemId;
|
2409
2409
|
});
|
2410
2410
|
if (currentStateItem) {
|
2411
|
-
this.configurationService.
|
2412
|
-
configurableRamp: currentStateItem,
|
2413
|
-
currentState: quote.currentState,
|
2414
|
-
asset: this.getAsset(quote, currentStateItem),
|
2415
|
-
});
|
2411
|
+
this.configurationService.setConfigurableRamp(currentStateItem);
|
2416
2412
|
}
|
2417
2413
|
var offeringId = (currentStateItem !== null && currentStateItem !== void 0 ? currentStateItem : {}).offeringId;
|
2418
2414
|
this.runtimeService
|
@@ -2447,9 +2443,6 @@
|
|
2447
2443
|
}
|
2448
2444
|
return id;
|
2449
2445
|
};
|
2450
|
-
ProductComponent.prototype.getAsset = function (quote, lineItem) {
|
2451
|
-
return quote.initialState.find(function (a) { return a.id === lineItem.openOrderLineItemId || a.id === lineItem.assetId; });
|
2452
|
-
};
|
2453
2446
|
return ProductComponent;
|
2454
2447
|
}());
|
2455
2448
|
ProductComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProductComponent, deps: [{ token: i1__namespace$1.ContextService }, { token: i1__namespace$1.ConfigurationRuntimeService }, { token: i1__namespace$1.ConfigurationService }, { token: i1__namespace$1.QuoteDraftService }, { token: i2__namespace$1.MessageService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
@@ -2595,10 +2588,7 @@
|
|
2595
2588
|
},
|
2596
2589
|
});
|
2597
2590
|
_this.uiDefinition = context === null || context === void 0 ? void 0 : context.uiDefinition;
|
2598
|
-
_this.configurationService.
|
2599
|
-
configurableRamp: _this.createLineItem(),
|
2600
|
-
currentState: quote.currentState,
|
2601
|
-
});
|
2591
|
+
_this.configurationService.setConfigurableRamp(_this.createLineItem());
|
2602
2592
|
}), this.throwIfNoUIDefinition(), rxjs.switchMap(function () { return _this.configurationService.configure(); }), rxjs.tap(function () { return _this.state$.next({ loading: false, failure: false }); }), rxjs.catchError(function (error) {
|
2603
2593
|
var _a, _b;
|
2604
2594
|
if (!((_b = (_a = _this.uiDefinition) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.suppressToastMessages)) {
|
@@ -3168,7 +3158,7 @@
|
|
3168
3158
|
if (_this.accountHasNotAssets()) {
|
3169
3159
|
_this.changeNavigation('/empty', route);
|
3170
3160
|
}
|
3171
|
-
else if (!_this.quoteDraftService.isInitialized && _this.quoteDraftService.
|
3161
|
+
else if (!_this.quoteDraftService.isInitialized && _this.quoteDraftService.hasProducts) {
|
3172
3162
|
_this.changeNavigation('/cart', route);
|
3173
3163
|
}
|
3174
3164
|
}
|
@@ -3195,7 +3185,7 @@
|
|
3195
3185
|
QuoteResolver.prototype.accountHasNotAssets = function () {
|
3196
3186
|
var _a;
|
3197
3187
|
return (((_a = this.quoteDraftService.quoteDraft) === null || _a === void 0 ? void 0 : _a.context.properties.mode) === core.ConfigurationContextMode.ACCOUNT &&
|
3198
|
-
!this.quoteDraftService.
|
3188
|
+
!this.quoteDraftService.hasProducts);
|
3199
3189
|
};
|
3200
3190
|
return QuoteResolver;
|
3201
3191
|
}());
|