@veloceapps/sdk 3.0.8 → 3.0.10
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 +11 -4
- package/bundles/veloce-sdk-cms.umd.js.map +1 -1
- package/bundles/veloce-sdk-runtime.umd.js +5 -1
- package/bundles/veloce-sdk-runtime.umd.js.map +1 -1
- package/bundles/veloce-sdk.umd.js +455 -327
- package/bundles/veloce-sdk.umd.js.map +1 -1
- package/cms/modules/flow-configuration/services/flow-configuration.service.d.ts +2 -0
- package/cms/modules/flow-configuration/services/flow-update.service.d.ts +1 -1
- package/cms/modules/flow-configuration/types/update.types.d.ts +1 -1
- package/cms/services/integration.state.d.ts +1 -1
- package/esm2015/cms/modules/flow-configuration/services/flow-configuration.service.js +7 -1
- package/esm2015/cms/modules/flow-configuration/services/flow-update.service.js +5 -5
- package/esm2015/cms/modules/flow-configuration/types/update.types.js +1 -1
- package/esm2015/cms/services/integration.state.js +1 -1
- package/esm2015/cms/vendor-map.js +3 -2
- package/esm2015/runtime/execution/directives/vl-ramp.directive.js +6 -2
- package/esm2015/src/components/header/cart-overlay/cart-overlay.component.js +78 -12
- package/esm2015/src/components/header/cart-overlay/cart-overlay.module.js +6 -4
- package/esm2015/src/components/header/header.component.js +23 -14
- package/esm2015/src/components/header/header.types.js +1 -1
- package/esm2015/src/flow-routing.module.js +4 -4
- package/esm2015/src/flow.component.js +16 -10
- package/esm2015/src/guards/context.guard.js +4 -4
- package/esm2015/src/guards/root.guard.js +4 -4
- package/esm2015/src/pages/debug/debug.component.js +7 -7
- package/esm2015/src/pages/product/product.component.js +22 -9
- package/esm2015/src/pages/record-not-found/record-not-found.component.js +3 -2
- package/esm2015/src/resolvers/context.resolver.js +4 -4
- package/esm2015/src/resolvers/flow.resolver.js +8 -8
- package/esm2015/src/resolvers/quote.resolver.js +4 -4
- package/esm2015/src/services/flow-router.service.js +107 -0
- package/esm2015/src/services/flow.service.js +22 -14
- package/fesm2015/veloce-sdk-cms.js +12 -5
- package/fesm2015/veloce-sdk-cms.js.map +1 -1
- package/fesm2015/veloce-sdk-runtime.js +5 -1
- package/fesm2015/veloce-sdk-runtime.js.map +1 -1
- package/fesm2015/veloce-sdk.js +289 -163
- package/fesm2015/veloce-sdk.js.map +1 -1
- package/package.json +1 -1
- package/src/components/header/cart-overlay/cart-overlay.component.d.ts +15 -4
- package/src/components/header/cart-overlay/cart-overlay.module.d.ts +6 -4
- package/src/components/header/header.component.d.ts +6 -1
- package/src/components/header/header.types.d.ts +1 -0
- package/src/flow.component.d.ts +7 -3
- package/src/guards/context.guard.d.ts +2 -2
- package/src/guards/root.guard.d.ts +2 -2
- package/src/pages/debug/debug.component.d.ts +3 -3
- package/src/pages/product/product.component.d.ts +6 -4
- package/src/resolvers/context.resolver.d.ts +2 -2
- package/src/resolvers/flow.resolver.d.ts +4 -4
- package/src/resolvers/quote.resolver.d.ts +2 -2
- package/src/services/{router.service.d.ts → flow-router.service.d.ts} +11 -4
- package/src/services/flow.service.d.ts +8 -8
- package/esm2015/src/services/router.service.js +0 -78
|
@@ -1784,8 +1784,8 @@
|
|
|
1784
1784
|
switch (params.attributeType) {
|
|
1785
1785
|
case 'QTY':
|
|
1786
1786
|
return this.updateQty(rootLineItem, params);
|
|
1787
|
-
case '
|
|
1788
|
-
return this.
|
|
1787
|
+
case 'EFFECTIVE_START_DATE':
|
|
1788
|
+
return this.updateEffectiveStartDate(rootLineItem, params);
|
|
1789
1789
|
case 'END_DATE':
|
|
1790
1790
|
return this.updateEndDate(rootLineItem, params);
|
|
1791
1791
|
case 'PRICE_ADJUSTMENT':
|
|
@@ -1813,12 +1813,12 @@
|
|
|
1813
1813
|
var updated = new LineItemWorker(rootLineItem).replace(Object.assign(Object.assign({}, lineItem), { qty: params.newValue }));
|
|
1814
1814
|
return updated.li;
|
|
1815
1815
|
};
|
|
1816
|
-
FlowUpdateService.prototype.
|
|
1816
|
+
FlowUpdateService.prototype.updateEffectiveStartDate = function (rootLineItem, params) {
|
|
1817
1817
|
var lineItem = findLineItem(params.id, [rootLineItem]);
|
|
1818
1818
|
if (!lineItem) {
|
|
1819
1819
|
return rootLineItem;
|
|
1820
1820
|
}
|
|
1821
|
-
var updated = new LineItemWorker(rootLineItem).replace(Object.assign(Object.assign({}, lineItem), {
|
|
1821
|
+
var updated = new LineItemWorker(rootLineItem).replace(Object.assign(Object.assign({}, lineItem), { effectiveStartDate: moment__default["default"](params.newValue).format('YYYY-MM-DD') }));
|
|
1822
1822
|
return updated.li;
|
|
1823
1823
|
};
|
|
1824
1824
|
FlowUpdateService.prototype.updateEndDate = function (rootLineItem, params) {
|
|
@@ -1916,9 +1916,15 @@
|
|
|
1916
1916
|
var _this = this;
|
|
1917
1917
|
return rxjs.of([]).pipe(rxjs.map(function () { return _this.updateService.delete(_this.lineItems.value, id); }), rxjs.catchError(function (error) { return _this.handleError(error); }), rxjs.switchMap(function (currentState) { return _this.calculate$(currentState); }));
|
|
1918
1918
|
};
|
|
1919
|
+
FlowConfigurationService.prototype.deleteAll$ = function () {
|
|
1920
|
+
return this.calculate$([]);
|
|
1921
|
+
};
|
|
1919
1922
|
FlowConfigurationService.prototype.delete = function (id) {
|
|
1920
1923
|
this.delete$(id).subscribe();
|
|
1921
1924
|
};
|
|
1925
|
+
FlowConfigurationService.prototype.deleteAll = function () {
|
|
1926
|
+
this.deleteAll$().subscribe();
|
|
1927
|
+
};
|
|
1922
1928
|
FlowConfigurationService.prototype.get = function () {
|
|
1923
1929
|
return this.lineItems.asObservable().pipe(rxjs.shareReplay());
|
|
1924
1930
|
};
|
|
@@ -2073,6 +2079,7 @@
|
|
|
2073
2079
|
QuoteApiService: i1.QuoteApiService,
|
|
2074
2080
|
DocumentTemplatesApiService: i1.DocumentTemplatesApiService,
|
|
2075
2081
|
DocumentAttachmentApiService: i1.DocumentAttachmentApiService,
|
|
2082
|
+
RampApiService: i1.RampApiService,
|
|
2076
2083
|
},
|
|
2077
2084
|
'@angular/core': i0__namespace,
|
|
2078
2085
|
'@angular/forms': angularForms__namespace,
|