@veloceapps/sdk 8.0.0-120 → 8.0.0-121
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/esm2020/core/services/flow-state.service.mjs +7 -1
- package/esm2020/src/components/doc-gen/doc-gen.component.mjs +2 -2
- package/esm2020/src/components/flow-header/flow-header.component.mjs +2 -2
- package/esm2020/src/components/guided-selling/guided-selling.component.mjs +2 -2
- package/esm2020/src/flow.component.mjs +8 -9
- package/esm2020/src/pages/assets/assets.component.mjs +2 -2
- package/esm2020/src/pages/catalog/catalog.component.mjs +2 -2
- package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +2 -2
- package/fesm2015/veloceapps-sdk-core.mjs +6 -0
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk.mjs +16 -17
- package/fesm2015/veloceapps-sdk.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +6 -0
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk.mjs +10 -11
- package/fesm2020/veloceapps-sdk.mjs.map +1 -1
- package/package.json +1 -1
- package/src/flow.component.d.ts +2 -3
|
@@ -97,8 +97,8 @@ class DocGenComponent {
|
|
|
97
97
|
this.destroy$.complete();
|
|
98
98
|
}
|
|
99
99
|
initialize() {
|
|
100
|
-
var _a, _b;
|
|
101
|
-
this.templateApiName = (_b = (_a = this.flowInfo.flow) === null || _a === void 0 ? void 0 : _a.properties.templates.docGen) !== null &&
|
|
100
|
+
var _a, _b, _c;
|
|
101
|
+
this.templateApiName = (_c = (_b = (_a = this.flowInfo.flow) === null || _a === void 0 ? void 0 : _a.properties.templates) === null || _b === void 0 ? void 0 : _b.docGen) !== null && _c !== void 0 ? _c : '';
|
|
102
102
|
this.generateUIDefinition$()
|
|
103
103
|
.pipe(tap(uiDef => {
|
|
104
104
|
if (!uiDef) {
|
|
@@ -222,8 +222,8 @@ class GuidedSellingComponent {
|
|
|
222
222
|
this.destroy$.complete();
|
|
223
223
|
}
|
|
224
224
|
initialize() {
|
|
225
|
-
var _a, _b;
|
|
226
|
-
this.templateApiName = (_b = (_a = this.flowInfo.flow) === null || _a === void 0 ? void 0 : _a.properties.templates.guidedSelling) !== null &&
|
|
225
|
+
var _a, _b, _c;
|
|
226
|
+
this.templateApiName = (_c = (_b = (_a = this.flowInfo.flow) === null || _a === void 0 ? void 0 : _a.properties.templates) === null || _b === void 0 ? void 0 : _b.guidedSelling) !== null && _c !== void 0 ? _c : '';
|
|
227
227
|
this.generateUIDefinition$()
|
|
228
228
|
.pipe(tap(uiDef => {
|
|
229
229
|
if (!uiDef) {
|
|
@@ -337,8 +337,8 @@ class FlowHeaderComponent {
|
|
|
337
337
|
this.destroy$.complete();
|
|
338
338
|
}
|
|
339
339
|
initialize() {
|
|
340
|
-
var _a, _b;
|
|
341
|
-
this.templateApiName = (_b = (_a = this.flowInfo.flow) === null || _a === void 0 ? void 0 : _a.properties.templates.flowHeader) !== null &&
|
|
340
|
+
var _a, _b, _c;
|
|
341
|
+
this.templateApiName = (_c = (_b = (_a = this.flowInfo.flow) === null || _a === void 0 ? void 0 : _a.properties.templates) === null || _b === void 0 ? void 0 : _b.flowHeader) !== null && _c !== void 0 ? _c : '';
|
|
342
342
|
this.generateUIDefinition$()
|
|
343
343
|
.pipe(tap(uiDef => {
|
|
344
344
|
if (!uiDef) {
|
|
@@ -855,25 +855,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
855
855
|
}], ctorParameters: function () { return [{ type: i2.IntegrationState }]; } });
|
|
856
856
|
|
|
857
857
|
class FlowComponent {
|
|
858
|
-
constructor(routerService,
|
|
858
|
+
constructor(routerService, flowService, flowInfo, guidedSellingService) {
|
|
859
859
|
this.routerService = routerService;
|
|
860
|
-
this.quoteDraftService = quoteDraftService;
|
|
861
860
|
this.flowService = flowService;
|
|
862
861
|
this.flowInfo = flowInfo;
|
|
863
862
|
this.guidedSellingService = guidedSellingService;
|
|
864
863
|
this.isLoading$ = this.routerService.loading$;
|
|
865
864
|
this.showHeader$ = combineLatest([this.routerService.route$, this.flowInfo.flow$]).pipe(map(([route, flow]) => route.data['showHeader'] && !(flow === null || flow === void 0 ? void 0 : flow.properties.standalone)));
|
|
866
|
-
this.isStandalone$ = this.
|
|
865
|
+
this.isStandalone$ = this.flowInfo.flow$.pipe(map(flow => Boolean(flow === null || flow === void 0 ? void 0 : flow.properties.standalone)));
|
|
867
866
|
this.guidedSellingVisible$ = this.guidedSellingService.isVisible$;
|
|
868
867
|
this.flowService.initSubscriptions();
|
|
869
868
|
}
|
|
870
869
|
}
|
|
871
|
-
FlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowComponent, deps: [{ token: FlowRouterService }, { token:
|
|
870
|
+
FlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowComponent, deps: [{ token: FlowRouterService }, { token: FlowService }, { token: i2.FlowInfoService }, { token: FlowGuidedSellingService }], target: i0.ɵɵFactoryTarget.Component });
|
|
872
871
|
FlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FlowComponent, selector: "vl-flow", ngImport: i0, template: "<vl-flow-new-header *ngIf=\"showHeader$ | async\"></vl-flow-new-header>\n\n<div class=\"flow-content\">\n <div class=\"loading-overlay\" *ngIf=\"isLoading$ | async\">\n <vl-loader label=\"LOADING\"></vl-loader>\n </div>\n\n <router-outlet></router-outlet>\n\n <div class=\"guided-selling\" [ngClass]=\"{ hidden: (guidedSellingVisible$ | async) === false }\">\n <vl-flow-guided-selling *ngIf=\"(isStandalone$ | async) !== true\"></vl-flow-guided-selling>\n </div>\n</div>\n\n<ng-container *ngIf=\"(isStandalone$ | async) !== true\">\n <vl-flow-doc-gen></vl-flow-doc-gen>\n</ng-container>\n", styles: [":host{display:flex;flex-direction:column;width:100%;height:100%}.flow-content{flex-grow:1;position:relative;overflow:hidden}.loading-overlay{position:absolute;height:100%;width:100%;inset:0;background-color:#fff;z-index:999}.guided-selling{position:absolute;top:0;width:100%;height:100%;z-index:100}.hidden{display:none}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i2$1.LoaderComponent, selector: "vl-loader", inputs: ["label", "overlayVisible"] }, { kind: "component", type: FlowHeaderComponent, selector: "vl-flow-new-header" }, { kind: "component", type: DocGenComponent, selector: "vl-flow-doc-gen" }, { kind: "component", type: GuidedSellingComponent, selector: "vl-flow-guided-selling" }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
873
872
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowComponent, decorators: [{
|
|
874
873
|
type: Component,
|
|
875
874
|
args: [{ selector: 'vl-flow', changeDetection: ChangeDetectionStrategy.OnPush, template: "<vl-flow-new-header *ngIf=\"showHeader$ | async\"></vl-flow-new-header>\n\n<div class=\"flow-content\">\n <div class=\"loading-overlay\" *ngIf=\"isLoading$ | async\">\n <vl-loader label=\"LOADING\"></vl-loader>\n </div>\n\n <router-outlet></router-outlet>\n\n <div class=\"guided-selling\" [ngClass]=\"{ hidden: (guidedSellingVisible$ | async) === false }\">\n <vl-flow-guided-selling *ngIf=\"(isStandalone$ | async) !== true\"></vl-flow-guided-selling>\n </div>\n</div>\n\n<ng-container *ngIf=\"(isStandalone$ | async) !== true\">\n <vl-flow-doc-gen></vl-flow-doc-gen>\n</ng-container>\n", styles: [":host{display:flex;flex-direction:column;width:100%;height:100%}.flow-content{flex-grow:1;position:relative;overflow:hidden}.loading-overlay{position:absolute;height:100%;width:100%;inset:0;background-color:#fff;z-index:999}.guided-selling{position:absolute;top:0;width:100%;height:100%;z-index:100}.hidden{display:none}\n"] }]
|
|
876
|
-
}], ctorParameters: function () { return [{ type: FlowRouterService }, { type:
|
|
875
|
+
}], ctorParameters: function () { return [{ type: FlowRouterService }, { type: FlowService }, { type: i2.FlowInfoService }, { type: FlowGuidedSellingService }]; } });
|
|
877
876
|
|
|
878
877
|
const getFlowObjectIdPropertyName = (id) => {
|
|
879
878
|
const objectName = SalesforceIdUtils.getSfObjectNameById(id);
|
|
@@ -1082,7 +1081,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1082
1081
|
|
|
1083
1082
|
class AssetsComponent {
|
|
1084
1083
|
constructor(templatesApi, cdr, toastService, flowInfo, customizationService) {
|
|
1085
|
-
var _a, _b;
|
|
1084
|
+
var _a, _b, _c;
|
|
1086
1085
|
this.templatesApi = templatesApi;
|
|
1087
1086
|
this.cdr = cdr;
|
|
1088
1087
|
this.toastService = toastService;
|
|
@@ -1092,7 +1091,7 @@ class AssetsComponent {
|
|
|
1092
1091
|
this.state$ = new BehaviorSubject({ loading: true, failure: false });
|
|
1093
1092
|
this.templateApiName = '';
|
|
1094
1093
|
this.destroyed$ = new Subject();
|
|
1095
|
-
this.templateApiName = (_b = (_a = this.flowInfo.flow) === null || _a === void 0 ? void 0 : _a.properties.templates.assets) !== null &&
|
|
1094
|
+
this.templateApiName = (_c = (_b = (_a = this.flowInfo.flow) === null || _a === void 0 ? void 0 : _a.properties.templates) === null || _b === void 0 ? void 0 : _b.assets) !== null && _c !== void 0 ? _c : '';
|
|
1096
1095
|
}
|
|
1097
1096
|
ngOnInit() {
|
|
1098
1097
|
this.generateUIDefinition$()
|
|
@@ -1196,7 +1195,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1196
1195
|
|
|
1197
1196
|
class CatalogComponent {
|
|
1198
1197
|
constructor(templatesApi, cdr, toastService, flowInfo, customizationService) {
|
|
1199
|
-
var _a, _b;
|
|
1198
|
+
var _a, _b, _c;
|
|
1200
1199
|
this.templatesApi = templatesApi;
|
|
1201
1200
|
this.cdr = cdr;
|
|
1202
1201
|
this.toastService = toastService;
|
|
@@ -1206,7 +1205,7 @@ class CatalogComponent {
|
|
|
1206
1205
|
this.state$ = new BehaviorSubject({ loading: true, failure: false });
|
|
1207
1206
|
this.templateApiName = '';
|
|
1208
1207
|
this.destroyed$ = new Subject();
|
|
1209
|
-
this.templateApiName = (_b = (_a = this.flowInfo.flow) === null || _a === void 0 ? void 0 : _a.properties.templates.catalog) !== null &&
|
|
1208
|
+
this.templateApiName = (_c = (_b = (_a = this.flowInfo.flow) === null || _a === void 0 ? void 0 : _a.properties.templates) === null || _b === void 0 ? void 0 : _b.catalog) !== null && _c !== void 0 ? _c : '';
|
|
1210
1209
|
}
|
|
1211
1210
|
ngOnInit() {
|
|
1212
1211
|
this.generateUIDefinition$()
|
|
@@ -1882,7 +1881,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1882
1881
|
|
|
1883
1882
|
class ShoppingCartComponent {
|
|
1884
1883
|
constructor(templatesApi, cdr, toastService, flowInfo, customizationService) {
|
|
1885
|
-
var _a, _b;
|
|
1884
|
+
var _a, _b, _c;
|
|
1886
1885
|
this.templatesApi = templatesApi;
|
|
1887
1886
|
this.cdr = cdr;
|
|
1888
1887
|
this.toastService = toastService;
|
|
@@ -1892,7 +1891,7 @@ class ShoppingCartComponent {
|
|
|
1892
1891
|
this.state$ = new BehaviorSubject({ loading: true, failure: false });
|
|
1893
1892
|
this.templateApiName = '';
|
|
1894
1893
|
this.destroyed$ = new Subject();
|
|
1895
|
-
this.templateApiName = (_b = (_a = this.flowInfo.flow) === null || _a === void 0 ? void 0 : _a.properties.templates.shoppingCart) !== null &&
|
|
1894
|
+
this.templateApiName = (_c = (_b = (_a = this.flowInfo.flow) === null || _a === void 0 ? void 0 : _a.properties.templates) === null || _b === void 0 ? void 0 : _b.shoppingCart) !== null && _c !== void 0 ? _c : '';
|
|
1896
1895
|
}
|
|
1897
1896
|
ngOnInit() {
|
|
1898
1897
|
this.generateUIDefinition$()
|