@veloceapps/sdk 8.0.0-77 → 8.0.0-79
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -1
- package/cms/types/common.types.d.ts +0 -1
- package/esm2020/cms/types/common.types.mjs +1 -1
- package/esm2020/cms/utils/ui-builder-layout.utils.mjs +1 -3
- package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +5 -5
- package/esm2020/core/modules/configuration/services/configuration.service.mjs +3 -3
- package/esm2020/core/modules/configuration/services/runtime-context.service.mjs +6 -6
- package/esm2020/src/flow-routing.module.mjs +1 -18
- package/esm2020/src/pages/product/product.component.mjs +2 -3
- package/esm2020/src/pages/remote/remote.component.mjs +5 -6
- package/fesm2015/veloceapps-sdk-cms.mjs +2 -2
- package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk-core.mjs +16 -15
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk.mjs +8 -160
- package/fesm2015/veloceapps-sdk.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-cms.mjs +0 -2
- package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +9 -9
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk.mjs +6 -161
- package/fesm2020/veloceapps-sdk.mjs.map +1 -1
- package/package.json +1 -9
- package/src/flow-routing.module.d.ts +6 -7
- package/esm2020/runtime/components/component-preview/component-preview.component.mjs +0 -125
- package/esm2020/runtime/components/index.mjs +0 -5
- package/esm2020/runtime/components/section-renderer/section-renderer.component.mjs +0 -67
- package/esm2020/runtime/components/ui-runtime/runtime.component.mjs +0 -440
- package/esm2020/runtime/components/ui-runtime-preview/runtime-preview.component.mjs +0 -108
- package/esm2020/runtime/execution/components/children-placeholder/children-placeholder.component.mjs +0 -60
- package/esm2020/runtime/execution/components/context-provider/context-provider.component.mjs +0 -39
- package/esm2020/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.mjs +0 -67
- package/esm2020/runtime/execution/components/federated/federated.component.mjs +0 -74
- package/esm2020/runtime/execution/components/velo-attribute/velo-attribute.component.mjs +0 -60
- package/esm2020/runtime/execution/components/velo-multiselect/velo-multiselect.component.mjs +0 -130
- package/esm2020/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.mjs +0 -72
- package/esm2020/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.mjs +0 -97
- package/esm2020/runtime/execution/components/velo-port-radio/velo-port-radio.component.mjs +0 -142
- package/esm2020/runtime/execution/components/velo-type/velo-type.component.mjs +0 -119
- package/esm2020/runtime/execution/directives/section-script.directive.mjs +0 -247
- package/esm2020/runtime/execution/directives/sf-query.directive.mjs +0 -35
- package/esm2020/runtime/execution/directives/velo-attribute.directive.mjs +0 -88
- package/esm2020/runtime/execution/directives/velo-port.directive.mjs +0 -376
- package/esm2020/runtime/execution/directives/vl-approval.directive.mjs +0 -23
- package/esm2020/runtime/execution/directives/vl-document-attachments.directive.mjs +0 -36
- package/esm2020/runtime/execution/directives/vl-document-templates.directive.mjs +0 -60
- package/esm2020/runtime/execution/directives/vl-quote.directive.mjs +0 -42
- package/esm2020/runtime/execution/directives/vl-ramp.directive.mjs +0 -55
- package/esm2020/runtime/execution/runtime-execution.module.mjs +0 -133
- package/esm2020/runtime/execution/utils/federated.util.mjs +0 -32
- package/esm2020/runtime/index.mjs +0 -5
- package/esm2020/runtime/runtime.module.mjs +0 -74
- package/esm2020/runtime/services/cart.service.mjs +0 -29
- package/esm2020/runtime/services/collapsible-state.service.mjs +0 -34
- package/esm2020/runtime/services/configuration.service.mjs +0 -119
- package/esm2020/runtime/services/current-state.service.mjs +0 -17
- package/esm2020/runtime/services/form-scope.service.mjs +0 -30
- package/esm2020/runtime/services/index.mjs +0 -4
- package/esm2020/runtime/services/product-model-cache.service.mjs +0 -31
- package/esm2020/runtime/services/runtime-context.service.mjs +0 -60
- package/esm2020/runtime/services/runtime-form.service.mjs +0 -219
- package/esm2020/runtime/services/runtime.service.mjs +0 -115
- package/esm2020/runtime/services/section-helper.service.mjs +0 -27
- package/esm2020/runtime/services/section-scope.service.mjs +0 -36
- package/esm2020/runtime/services/section-store.service.mjs +0 -22
- package/esm2020/runtime/services/section.service.mjs +0 -117
- package/esm2020/runtime/types/bound-data.types.mjs +0 -7
- package/esm2020/runtime/types/index.mjs +0 -3
- package/esm2020/runtime/types/quote-states.types.mjs +0 -2
- package/esm2020/runtime/types/runtime.types.mjs +0 -2
- package/esm2020/runtime/types/script-registry.types.mjs +0 -51
- package/esm2020/runtime/utils/line-item.util.mjs +0 -270
- package/esm2020/runtime/utils/section.utils.mjs +0 -26
- package/esm2020/runtime/utils/sections-binder.helper.mjs +0 -105
- package/esm2020/runtime/veloceapps-sdk-runtime.mjs +0 -5
- package/esm2020/src/pages/legacy-product/legacy-product.component.mjs +0 -137
- package/esm2020/src/pages/legacy-product/legacy-product.module.mjs +0 -19
- package/fesm2015/veloceapps-sdk-runtime.mjs +0 -3770
- package/fesm2015/veloceapps-sdk-runtime.mjs.map +0 -1
- package/fesm2020/veloceapps-sdk-runtime.mjs +0 -3767
- package/fesm2020/veloceapps-sdk-runtime.mjs.map +0 -1
- package/runtime/README.md +0 -5
- package/runtime/components/component-preview/component-preview.component.d.ts +0 -27
- package/runtime/components/index.d.ts +0 -4
- package/runtime/components/section-renderer/section-renderer.component.d.ts +0 -25
- package/runtime/components/ui-runtime/runtime.component.d.ts +0 -53
- package/runtime/components/ui-runtime-preview/runtime-preview.component.d.ts +0 -27
- package/runtime/execution/components/children-placeholder/children-placeholder.component.d.ts +0 -30
- package/runtime/execution/components/context-provider/context-provider.component.d.ts +0 -14
- package/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.d.ts +0 -25
- package/runtime/execution/components/federated/federated.component.d.ts +0 -36
- package/runtime/execution/components/velo-attribute/velo-attribute.component.d.ts +0 -19
- package/runtime/execution/components/velo-multiselect/velo-multiselect.component.d.ts +0 -35
- package/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.d.ts +0 -22
- package/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.d.ts +0 -22
- package/runtime/execution/components/velo-port-radio/velo-port-radio.component.d.ts +0 -28
- package/runtime/execution/components/velo-type/velo-type.component.d.ts +0 -31
- package/runtime/execution/directives/section-script.directive.d.ts +0 -59
- package/runtime/execution/directives/sf-query.directive.d.ts +0 -15
- package/runtime/execution/directives/velo-attribute.directive.d.ts +0 -26
- package/runtime/execution/directives/velo-port.directive.d.ts +0 -74
- package/runtime/execution/directives/vl-approval.directive.d.ts +0 -10
- package/runtime/execution/directives/vl-document-attachments.directive.d.ts +0 -15
- package/runtime/execution/directives/vl-document-templates.directive.d.ts +0 -33
- package/runtime/execution/directives/vl-quote.directive.d.ts +0 -14
- package/runtime/execution/directives/vl-ramp.directive.d.ts +0 -15
- package/runtime/execution/runtime-execution.module.d.ts +0 -25
- package/runtime/execution/utils/federated.util.d.ts +0 -6
- package/runtime/index.d.ts +0 -4
- package/runtime/runtime.module.d.ts +0 -16
- package/runtime/services/cart.service.d.ts +0 -15
- package/runtime/services/collapsible-state.service.d.ts +0 -15
- package/runtime/services/configuration.service.d.ts +0 -20
- package/runtime/services/current-state.service.d.ts +0 -8
- package/runtime/services/form-scope.service.d.ts +0 -20
- package/runtime/services/index.d.ts +0 -3
- package/runtime/services/product-model-cache.service.d.ts +0 -14
- package/runtime/services/runtime-context.service.d.ts +0 -16
- package/runtime/services/runtime-form.service.d.ts +0 -24
- package/runtime/services/runtime.service.d.ts +0 -44
- package/runtime/services/section-helper.service.d.ts +0 -8
- package/runtime/services/section-scope.service.d.ts +0 -14
- package/runtime/services/section-store.service.d.ts +0 -11
- package/runtime/services/section.service.d.ts +0 -30
- package/runtime/types/bound-data.types.d.ts +0 -13
- package/runtime/types/index.d.ts +0 -2
- package/runtime/types/quote-states.types.d.ts +0 -6
- package/runtime/types/runtime.types.d.ts +0 -19
- package/runtime/types/script-registry.types.d.ts +0 -13
- package/runtime/utils/line-item.util.d.ts +0 -34
- package/runtime/utils/section.utils.d.ts +0 -2
- package/runtime/utils/sections-binder.helper.d.ts +0 -16
- package/src/pages/legacy-product/legacy-product.component.d.ts +0 -37
- package/src/pages/legacy-product/legacy-product.module.d.ts +0 -9
@@ -9,11 +9,11 @@ import { ToastType, LetDirectiveModule, QuantityControlModule, ErrorTooltipModul
|
|
9
9
|
import * as i5 from '@veloceapps/sdk/cms';
|
10
10
|
import { extractElementMetadata, extendElementMetadata, PreviewModule, FlowAction, LauncherModule } from '@veloceapps/sdk/cms';
|
11
11
|
import * as i1$1 from '@veloceapps/sdk/core';
|
12
|
-
import { isLineItemModified, getOriginParent, SdkPipesModule,
|
12
|
+
import { isLineItemModified, getOriginParent, SdkPipesModule, generateModifiedAssetsMap, SdkCoreModule } from '@veloceapps/sdk/core';
|
13
13
|
import * as i3 from 'primeng/button';
|
14
14
|
import { ButtonModule } from 'primeng/button';
|
15
15
|
import * as i1 from 'primeng/dynamicdialog';
|
16
|
-
import { UITemplateComponentType, UITemplateType, SalesforceIdUtils, ConfigurationContextMode,
|
16
|
+
import { UITemplateComponentType, UITemplateType, SalesforceIdUtils, ConfigurationContextMode, UUID } from '@veloceapps/core';
|
17
17
|
import { BehaviorSubject, Subject, first, tap, takeUntil, catchError, of, map, switchMap, filter, shareReplay, startWith, distinctUntilChanged, combineLatest, finalize, noop, forkJoin, from, throwError } from 'rxjs';
|
18
18
|
import * as i7 from 'primeng/overlaypanel';
|
19
19
|
import { OverlayPanel, OverlayPanelModule } from 'primeng/overlaypanel';
|
@@ -33,7 +33,7 @@ import * as i5$2 from '@angular/cdk/drag-drop';
|
|
33
33
|
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
34
34
|
import { requiredValidator, invalidCharactersValidator, standardCharSetWithSpaceRegExp, reservedIdentifierValidator } from '@veloceapps/core/forms';
|
35
35
|
import { cloneDeep, uniq } from 'lodash';
|
36
|
-
import { withLatestFrom, tap as tap$1, takeUntil as takeUntil$1,
|
36
|
+
import { withLatestFrom, tap as tap$1, takeUntil as takeUntil$1, map as map$1 } from 'rxjs/operators';
|
37
37
|
import * as i9$1 from 'primeng/sidebar';
|
38
38
|
import { SidebarModule } from 'primeng/sidebar';
|
39
39
|
import * as i10 from 'primeng/inputtext';
|
@@ -44,8 +44,6 @@ import { HttpErrorResponse } from '@angular/common/http';
|
|
44
44
|
import { DropdownModule } from 'primeng/dropdown';
|
45
45
|
import * as i6 from 'primeng/radiobutton';
|
46
46
|
import { RadioButtonModule } from 'primeng/radiobutton';
|
47
|
-
import * as i4$1 from '@veloceapps/sdk/runtime';
|
48
|
-
import { RuntimeModule } from '@veloceapps/sdk/runtime';
|
49
47
|
|
50
48
|
const VELOCE_FLOW_ROOT_ROUTE = 'VELOCE_FLOW_ROOT_ROUTE';
|
51
49
|
|
@@ -2041,143 +2039,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
2041
2039
|
}]
|
2042
2040
|
}] });
|
2043
2041
|
|
2044
|
-
class LegacyProductComponent {
|
2045
|
-
constructor(route, quoteDraftService, quoteApiService, contextService, runtimeContextService, runtimeService, currentStateService, customizationService) {
|
2046
|
-
this.route = route;
|
2047
|
-
this.quoteDraftService = quoteDraftService;
|
2048
|
-
this.quoteApiService = quoteApiService;
|
2049
|
-
this.contextService = contextService;
|
2050
|
-
this.runtimeContextService = runtimeContextService;
|
2051
|
-
this.runtimeService = runtimeService;
|
2052
|
-
this.currentStateService = currentStateService;
|
2053
|
-
this.customizationService = customizationService;
|
2054
|
-
this.destroyed$ = new Subject();
|
2055
|
-
}
|
2056
|
-
ngOnInit() {
|
2057
|
-
this.quoteDraftService.quoteDraft$
|
2058
|
-
.pipe(first$1(), takeUntil$1(this.destroyed$))
|
2059
|
-
.subscribe(quote => this.init(quote, this.route.snapshot.queryParams));
|
2060
|
-
this.runtimeService.onSolutionStopEvent.pipe(take(1)).subscribe(lineItem => this.onSolutionStop(lineItem));
|
2061
|
-
this.runtimeService.onSolutionReadyEvent.pipe(take(1)).subscribe(event => this.onSolutionReady(event));
|
2062
|
-
this.runtimeService.onSolutionCancelEvent.pipe(take(1)).subscribe(() => this.onSolutionCancel());
|
2063
|
-
}
|
2064
|
-
ngOnDestroy() {
|
2065
|
-
this.destroyed$.next();
|
2066
|
-
this.destroyed$.complete();
|
2067
|
-
}
|
2068
|
-
onSolutionReady(lineItem) {
|
2069
|
-
lineItem.actionCode = lineItem.actionCode ?? 'ADD';
|
2070
|
-
}
|
2071
|
-
onSolutionCancel() {
|
2072
|
-
this.quoteDraftService.quoteDraft$.pipe(first$1(), takeUntil$1(this.destroyed$)).subscribe(quote => {
|
2073
|
-
window['VELO_BACK_FN'].apply(null, [quote.quoteId]);
|
2074
|
-
});
|
2075
|
-
}
|
2076
|
-
onSolutionUpdated(lineItem) {
|
2077
|
-
const states = {
|
2078
|
-
configurableRamp: lineItem,
|
2079
|
-
currentState: this.currentStateService.currentState,
|
2080
|
-
asset: this.getAsset(lineItem),
|
2081
|
-
};
|
2082
|
-
this.runtimeService.updateRuntime(states);
|
2083
|
-
}
|
2084
|
-
onSolutionStop(lineItem) {
|
2085
|
-
this.quoteDraftService.quoteDraft$.pipe(first$1(), takeUntil$1(this.destroyed$)).subscribe(quote => {
|
2086
|
-
const quoteToUpsert = {
|
2087
|
-
...quote,
|
2088
|
-
context: this.contextService.resolve(),
|
2089
|
-
currentState: [...(this.currentStateService.currentState || []).filter(li => li.id !== lineItem.id), lineItem],
|
2090
|
-
};
|
2091
|
-
this.quoteApiService
|
2092
|
-
.upsertQuote(quoteToUpsert)
|
2093
|
-
.pipe(take(1))
|
2094
|
-
.subscribe(quote => {
|
2095
|
-
window['VELO_BACK_FN'].apply(null, [quote.quoteId]);
|
2096
|
-
});
|
2097
|
-
});
|
2098
|
-
}
|
2099
|
-
init(quote, queryParams) {
|
2100
|
-
const productId = queryParams['productId'];
|
2101
|
-
const lineItemId = this.getLineItemId(quote, queryParams);
|
2102
|
-
this.assets = quote.initialState;
|
2103
|
-
lineItemId && quote.currentState ? this.reConfigure(lineItemId, quote.currentState) : this.configure(productId);
|
2104
|
-
}
|
2105
|
-
getLineItemId(quote, queryParams) {
|
2106
|
-
if (EntityUtil.isPresent(queryParams['lineItemId'])) {
|
2107
|
-
return queryParams['lineItemId'];
|
2108
|
-
}
|
2109
|
-
return quote.currentState
|
2110
|
-
.filter(lineItem => lineItem.productId === queryParams['productId'])
|
2111
|
-
.map(lineItem => lineItem.id)
|
2112
|
-
.find(id => id);
|
2113
|
-
}
|
2114
|
-
configure(productId) {
|
2115
|
-
const runtimeContext = this.getRuntimeContext(productId, '', RuntimeOperation.INIT);
|
2116
|
-
this.startRuntime({}, runtimeContext);
|
2117
|
-
}
|
2118
|
-
reConfigure(lineItemId, currentState) {
|
2119
|
-
const currentStateItem = EntityUtil.findById(lineItemId, currentState);
|
2120
|
-
const runtimeContext = this.getRuntimeContext(currentStateItem.productId, currentStateItem.offeringId, RuntimeOperation.UPDATE);
|
2121
|
-
const states = {
|
2122
|
-
configurableRamp: currentStateItem,
|
2123
|
-
currentState,
|
2124
|
-
asset: this.getAsset(currentStateItem),
|
2125
|
-
};
|
2126
|
-
this.currentStateService.update(currentState);
|
2127
|
-
this.startRuntime(states, runtimeContext);
|
2128
|
-
}
|
2129
|
-
getAsset(lineItem) {
|
2130
|
-
return this.assets && this.assets.find(a => a.id === lineItem.openOrderLineItemId || a.id === lineItem.assetId);
|
2131
|
-
}
|
2132
|
-
startRuntime(states, runtimeContext$) {
|
2133
|
-
runtimeContext$
|
2134
|
-
.pipe(take(1), map$1(runtimeContext => {
|
2135
|
-
this.runtimeService.startRuntime(runtimeContext, states);
|
2136
|
-
}))
|
2137
|
-
.subscribe();
|
2138
|
-
}
|
2139
|
-
customizeContext(productId, context) {
|
2140
|
-
if (!this.customizationService?.getLegacyUiDefinition) {
|
2141
|
-
return of(context);
|
2142
|
-
}
|
2143
|
-
return this.customizationService.getLegacyUiDefinition(productId).pipe(map$1(uiDefinitionContainer => ({
|
2144
|
-
...context,
|
2145
|
-
uiDefinitionContainer: uiDefinitionContainer ?? undefined,
|
2146
|
-
})));
|
2147
|
-
}
|
2148
|
-
getRuntimeContext(productId, offeringId, runtimeOperation) {
|
2149
|
-
return this.runtimeContextService.getRuntimeContext(productId, offeringId).pipe(map$1(runtimeContext => {
|
2150
|
-
runtimeContext.invocationContext = { runtimeOperation: RuntimeOperation[runtimeOperation] };
|
2151
|
-
return runtimeContext;
|
2152
|
-
}), switchMap$1(runtimeContext => this.customizeContext(productId, runtimeContext)));
|
2153
|
-
}
|
2154
|
-
}
|
2155
|
-
LegacyProductComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LegacyProductComponent, deps: [{ token: i1$2.ActivatedRoute }, { token: i1$1.QuoteDraftService }, { token: i2.QuoteApiService }, { token: i1$1.ContextService }, { token: i4$1.RuntimeContextService }, { token: i4$1.RuntimeService }, { token: i4$1.CurrentStateService }, { token: FLOW_CUSTOMIZATION, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
2156
|
-
LegacyProductComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: LegacyProductComponent, selector: "ng-component", ngImport: i0, template: "<vl-runtime #runtimeView (solutionUpdated)=\"onSolutionUpdated($event)\"></vl-runtime>\n", styles: [":host{display:block;height:100%}\n"], dependencies: [{ kind: "component", type: i4$1.RuntimeComponent, selector: "vl-runtime", outputs: ["solutionUpdated"] }] });
|
2157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LegacyProductComponent, decorators: [{
|
2158
|
-
type: Component,
|
2159
|
-
args: [{ template: "<vl-runtime #runtimeView (solutionUpdated)=\"onSolutionUpdated($event)\"></vl-runtime>\n", styles: [":host{display:block;height:100%}\n"] }]
|
2160
|
-
}], ctorParameters: function () { return [{ type: i1$2.ActivatedRoute }, { type: i1$1.QuoteDraftService }, { type: i2.QuoteApiService }, { type: i1$1.ContextService }, { type: i4$1.RuntimeContextService }, { type: i4$1.RuntimeService }, { type: i4$1.CurrentStateService }, { type: undefined, decorators: [{
|
2161
|
-
type: Optional
|
2162
|
-
}, {
|
2163
|
-
type: Inject,
|
2164
|
-
args: [FLOW_CUSTOMIZATION]
|
2165
|
-
}] }]; } });
|
2166
|
-
|
2167
|
-
class LegacyProductModule {
|
2168
|
-
}
|
2169
|
-
LegacyProductModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LegacyProductModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2170
|
-
LegacyProductModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: LegacyProductModule, declarations: [LegacyProductComponent], imports: [CommonModule, RuntimeModule], exports: [LegacyProductComponent] });
|
2171
|
-
LegacyProductModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LegacyProductModule, imports: [CommonModule, RuntimeModule] });
|
2172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LegacyProductModule, decorators: [{
|
2173
|
-
type: NgModule,
|
2174
|
-
args: [{
|
2175
|
-
declarations: [LegacyProductComponent],
|
2176
|
-
imports: [CommonModule, RuntimeModule],
|
2177
|
-
exports: [LegacyProductComponent],
|
2178
|
-
}]
|
2179
|
-
}] });
|
2180
|
-
|
2181
2042
|
class ProductComponent {
|
2182
2043
|
constructor(contextService, configurationRuntimeService, configurationService, configurationState, quoteDraftService, integrationState, customizationService) {
|
2183
2044
|
this.contextService = contextService;
|
@@ -2219,7 +2080,7 @@ class ProductComponent {
|
|
2219
2080
|
return this.configurationRuntimeService.init({ productId, offeringId });
|
2220
2081
|
}), switchMap(() => this.customizeUI$()), tap(() => {
|
2221
2082
|
const uiDefinition = this.configurationRuntimeService.runtimeContext?.uiDefinitionContainer?.source;
|
2222
|
-
if (uiDefinition
|
2083
|
+
if (uiDefinition) {
|
2223
2084
|
this.uiDefinition$.next(uiDefinition);
|
2224
2085
|
}
|
2225
2086
|
else {
|
@@ -2346,9 +2207,8 @@ class RemoteComponent {
|
|
2346
2207
|
this.runtimeService
|
2347
2208
|
.init({ productId })
|
2348
2209
|
.pipe(first(), tap(context => {
|
2349
|
-
const uiDefinitionProperties =
|
2350
|
-
|
2351
|
-
this.uiDefinition = uiDefinition && !isLegacyUIDefinition(uiDefinition) ? uiDefinition : undefined;
|
2210
|
+
const uiDefinitionProperties = context.uiDefinitionContainer?.source.properties ?? {};
|
2211
|
+
this.uiDefinition = context.uiDefinitionContainer?.source;
|
2352
2212
|
const pricingEnabled = uiDefinitionProperties.pricingEnabled ? 'true' : 'false';
|
2353
2213
|
const priceListId = uiDefinitionProperties.priceList;
|
2354
2214
|
const runtimeContextProperties = this.runtimeService.runtimeContext?.properties;
|
@@ -2904,18 +2764,6 @@ const rootRoute = {
|
|
2904
2764
|
canActivate: [ContextGuard],
|
2905
2765
|
children: [],
|
2906
2766
|
},
|
2907
|
-
{
|
2908
|
-
path: 'legacy',
|
2909
|
-
children: [
|
2910
|
-
{
|
2911
|
-
path: 'product',
|
2912
|
-
component: LegacyProductComponent,
|
2913
|
-
runGuardsAndResolvers: 'paramsOrQueryParamsChange',
|
2914
|
-
resolve: { quote: QuoteResolver },
|
2915
|
-
canActivate: [ContextGuard],
|
2916
|
-
},
|
2917
|
-
],
|
2918
|
-
},
|
2919
2767
|
{
|
2920
2768
|
path: 'product',
|
2921
2769
|
component: ProductComponent,
|
@@ -2978,7 +2826,6 @@ class FlowRoutingModule {
|
|
2978
2826
|
}
|
2979
2827
|
FlowRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2980
2828
|
FlowRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FlowRoutingModule, imports: [i1$2.RouterModule, ProductModule,
|
2981
|
-
LegacyProductModule,
|
2982
2829
|
ShoppingCartModule,
|
2983
2830
|
CatalogModule,
|
2984
2831
|
AssetsModule,
|
@@ -2986,7 +2833,6 @@ FlowRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versi
|
|
2986
2833
|
EmptyAccountModule], exports: [RouterModule] });
|
2987
2834
|
FlowRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowRoutingModule, providers: [FlowRouterService, RootGuard, ContextGuard, ProductUnloadGuard, FlowResolver, QuoteResolver], imports: [RouterModule.forChild([rootRoute]),
|
2988
2835
|
ProductModule,
|
2989
|
-
LegacyProductModule,
|
2990
2836
|
ShoppingCartModule,
|
2991
2837
|
CatalogModule,
|
2992
2838
|
AssetsModule,
|
@@ -2998,7 +2844,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
2998
2844
|
imports: [
|
2999
2845
|
RouterModule.forChild([rootRoute]),
|
3000
2846
|
ProductModule,
|
3001
|
-
LegacyProductModule,
|
3002
2847
|
ShoppingCartModule,
|
3003
2848
|
CatalogModule,
|
3004
2849
|
AssetsModule,
|