@veloceapps/sdk 3.0.4 → 3.0.6
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 +255 -27
- package/bundles/veloce-sdk-cms.umd.js.map +1 -1
- package/bundles/veloce-sdk-runtime.umd.js +11 -0
- package/bundles/veloce-sdk-runtime.umd.js.map +1 -1
- package/bundles/veloce-sdk.umd.js +219 -129
- package/bundles/veloce-sdk.umd.js.map +1 -1
- package/cms/launcher.module.d.ts +2 -1
- package/cms/modules/configuration/services/configuration-runtime.service.d.ts +2 -2
- package/cms/modules/flow-configuration/flow-configuration.module.d.ts +6 -0
- package/cms/modules/flow-configuration/index.d.ts +4 -0
- package/cms/modules/flow-configuration/services/flow-configuration.service.d.ts +34 -0
- package/cms/modules/flow-configuration/services/flow-update.service.d.ts +13 -0
- package/cms/modules/flow-configuration/types/update.types.d.ts +12 -0
- package/cms/modules/index.d.ts +1 -0
- package/cms/types/ui-definition.types.d.ts +2 -0
- package/cms/utils/line-item.utils.d.ts +1 -0
- package/esm2015/cms/components/preview/preview.component.js +2 -4
- package/esm2015/cms/launcher.module.js +5 -4
- package/esm2015/cms/modules/configuration/helpers.js +2 -2
- package/esm2015/cms/modules/configuration/services/configuration-runtime.service.js +7 -5
- package/esm2015/cms/modules/flow-configuration/flow-configuration.module.js +18 -0
- package/esm2015/cms/modules/flow-configuration/index.js +5 -0
- package/esm2015/cms/modules/flow-configuration/services/flow-configuration.service.js +77 -0
- package/esm2015/cms/modules/flow-configuration/services/flow-update.service.js +97 -0
- package/esm2015/cms/modules/flow-configuration/types/update.types.js +2 -0
- package/esm2015/cms/modules/index.js +2 -1
- package/esm2015/cms/types/ui-definition.types.js +1 -1
- package/esm2015/cms/utils/line-item.utils.js +14 -4
- package/esm2015/runtime/execution/directives/vl-ramp.directive.js +1 -1
- package/esm2015/runtime/services/context.service.js +5 -1
- package/esm2015/runtime/services/quote.service.js +4 -1
- package/esm2015/src/components/header/cart-overlay/cart-overlay.component.js +60 -0
- package/esm2015/src/components/header/cart-overlay/cart-overlay.module.js +21 -0
- package/esm2015/src/components/header/header.component.js +16 -10
- package/esm2015/src/components/header/header.module.js +6 -4
- package/esm2015/src/components/header/header.types.js +1 -1
- package/esm2015/src/flow.component.js +2 -6
- package/esm2015/src/pages/debug/debug.component.js +16 -11
- package/esm2015/src/resolvers/quote.resolver.js +21 -6
- package/fesm2015/veloce-sdk-cms.js +218 -28
- package/fesm2015/veloce-sdk-cms.js.map +1 -1
- package/fesm2015/veloce-sdk-runtime.js +7 -0
- package/fesm2015/veloce-sdk-runtime.js.map +1 -1
- package/fesm2015/veloce-sdk.js +150 -69
- package/fesm2015/veloce-sdk.js.map +1 -1
- package/package.json +1 -1
- package/runtime/execution/directives/vl-ramp.directive.d.ts +1 -1
- package/runtime/services/context.service.d.ts +1 -0
- package/runtime/services/quote.service.d.ts +1 -0
- package/src/components/header/cart-overlay/cart-overlay.component.d.ts +21 -0
- package/src/components/header/cart-overlay/cart-overlay.module.d.ts +11 -0
- package/src/components/header/header.component.d.ts +5 -2
- package/src/components/header/header.module.d.ts +3 -1
- package/src/components/header/header.types.d.ts +1 -0
- package/src/pages/debug/debug.component.d.ts +5 -2
- package/src/resolvers/quote.resolver.d.ts +6 -2
|
@@ -758,6 +758,10 @@ class ContextService {
|
|
|
758
758
|
this.resolve = () => this.context.value && Object.assign({}, this.context.value);
|
|
759
759
|
this.resolve$ = () => this.context;
|
|
760
760
|
}
|
|
761
|
+
get isStandalone() {
|
|
762
|
+
var _a;
|
|
763
|
+
return ((_a = this.resolve()) === null || _a === void 0 ? void 0 : _a.properties.standalone) === 'true';
|
|
764
|
+
}
|
|
761
765
|
create(headerId, mode) {
|
|
762
766
|
return this.contextApiService.getContext(headerId, mode).pipe(tap(context => this.context.next(merge(new ConfigurationContext(headerId, mode), context))), map(() => this.resolve()));
|
|
763
767
|
}
|
|
@@ -984,6 +988,9 @@ class QuoteService {
|
|
|
984
988
|
this.priceApiService = priceApiService;
|
|
985
989
|
this.quote = new BehaviorSubject(null);
|
|
986
990
|
}
|
|
991
|
+
reset() {
|
|
992
|
+
this.quote.next(null);
|
|
993
|
+
}
|
|
987
994
|
init(quoteId, params) {
|
|
988
995
|
return zip(this.quoteApiService.getQuoteDraft(quoteId, params), this.priceApiService.getPriceLists(), this.contextService.resolve$().pipe(filter(Boolean), map(context => context))).pipe(tap(([quote, priceLists, configurationContext]) => {
|
|
989
996
|
this.quote.next(quote);
|