@veloceapps/sdk 9.0.0-0 → 9.0.0-10
Sign up to get free protection for your applications and to get access to all the features.
- package/core/modules/configuration/services/configuration-state.service.d.ts +6 -1
- package/core/services/flow-state.service.d.ts +1 -1
- package/esm2020/core/modules/configuration/services/configuration-state.service.mjs +19 -13
- package/esm2020/core/services/flow-info.service.mjs +1 -5
- package/esm2020/core/services/flow-state.service.mjs +18 -9
- package/esm2020/core/services/quote-draft.service.mjs +11 -5
- package/esm2020/src/components/doc-gen/doc-gen.component.mjs +4 -1
- package/esm2020/src/components/flow-header/flow-header.component.mjs +4 -1
- package/esm2020/src/components/guided-selling/guided-selling.component.mjs +4 -1
- package/esm2020/src/services/flow.service.mjs +2 -2
- package/fesm2015/veloceapps-sdk-core.mjs +46 -28
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk.mjs +10 -1
- package/fesm2015/veloceapps-sdk.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +46 -28
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk.mjs +10 -1
- package/fesm2020/veloceapps-sdk.mjs.map +1 -1
- package/package.json +1 -1
@@ -98,6 +98,9 @@ class DocGenComponent {
|
|
98
98
|
}
|
99
99
|
initialize() {
|
100
100
|
this.templateApiName = this.flowInfo.flow?.properties.templates?.docGen ?? '';
|
101
|
+
if (this.flowInfo.isLegacy && !this.templateApiName) {
|
102
|
+
return;
|
103
|
+
}
|
101
104
|
this.generateUIDefinition$()
|
102
105
|
.pipe(tap(uiDef => {
|
103
106
|
if (!uiDef) {
|
@@ -225,6 +228,9 @@ class GuidedSellingComponent {
|
|
225
228
|
}
|
226
229
|
initialize() {
|
227
230
|
this.templateApiName = this.flowInfo.flow?.properties.templates?.guidedSelling ?? '';
|
231
|
+
if (this.flowInfo.isLegacy && !this.templateApiName) {
|
232
|
+
return;
|
233
|
+
}
|
228
234
|
this.generateUIDefinition$()
|
229
235
|
.pipe(tap(uiDef => {
|
230
236
|
if (!uiDef) {
|
@@ -335,6 +341,9 @@ class FlowHeaderComponent {
|
|
335
341
|
}
|
336
342
|
initialize() {
|
337
343
|
this.templateApiName = this.flowInfo.flow?.properties.templates?.flowHeader ?? '';
|
344
|
+
if (this.flowInfo.isLegacy && !this.templateApiName) {
|
345
|
+
return;
|
346
|
+
}
|
338
347
|
this.generateUIDefinition$()
|
339
348
|
.pipe(tap(uiDef => {
|
340
349
|
if (!uiDef) {
|
@@ -813,7 +822,7 @@ class FlowService {
|
|
813
822
|
return this.legacyApplyConfiguration();
|
814
823
|
}
|
815
824
|
else {
|
816
|
-
return this.configurationStateService.saveConfiguration(
|
825
|
+
return this.configurationStateService.saveConfiguration(true).pipe(switchMap(() => this.configurationStateService.cancelConfiguration()), switchMap(() => this.flowStateService.dispatch$(UITemplateType.FLOW_ENGINE, 'MODIFY_ASSETS', {
|
817
826
|
addConfiguringAssetId: true,
|
818
827
|
enable: true,
|
819
828
|
})));
|