@veloceapps/sdk 11.0.0-4 → 11.0.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/core/modules/configuration/services/runtime-context.service.d.ts +1 -1
- package/core/modules/configuration/types/configuration-runtime.types.d.ts +2 -0
- package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +4 -2
- package/esm2020/core/modules/configuration/services/runtime-context.service.mjs +5 -3
- package/esm2020/core/modules/configuration/types/configuration-runtime.types.mjs +1 -1
- package/esm2020/src/pages/product/product.component.mjs +9 -2
- package/fesm2015/veloceapps-sdk-core.mjs +7 -3
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk.mjs +9 -2
- package/fesm2015/veloceapps-sdk.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +7 -3
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk.mjs +8 -1
- package/fesm2020/veloceapps-sdk.mjs.map +1 -1
- package/package.json +1 -1
@@ -1953,8 +1953,10 @@ class RuntimeContextService {
|
|
1953
1953
|
constructor(configurationApiService) {
|
1954
1954
|
this.configurationApiService = configurationApiService;
|
1955
1955
|
}
|
1956
|
-
getRuntimeContext(productId, offeringId) {
|
1957
|
-
return this.configurationApiService
|
1956
|
+
getRuntimeContext(productId, offeringId, defaultUIDefinitionId, requiredUIDefinitionId) {
|
1957
|
+
return this.configurationApiService
|
1958
|
+
.getRuntimeDataByProductId(productId, offeringId, defaultUIDefinitionId, requiredUIDefinitionId)
|
1959
|
+
.pipe(map(runtimeData => {
|
1958
1960
|
const uiDefinitionContainer = this.getUIDefinitionContainer(runtimeData);
|
1959
1961
|
const runtimeModel = RuntimeModel.create(runtimeData.types, runtimeData.products);
|
1960
1962
|
const { productName, properties } = Array.from(runtimeModel.components.values()).find(c => c.productId === productId) ?? {};
|
@@ -2029,7 +2031,9 @@ class ConfigurationRuntimeService {
|
|
2029
2031
|
init(props) {
|
2030
2032
|
this.initializationProps = props;
|
2031
2033
|
const context = this.contextService.resolve();
|
2032
|
-
return this.runtimeContextService
|
2034
|
+
return this.runtimeContextService
|
2035
|
+
.getRuntimeContext(props.productId, props.offeringId, props.defaultUIDefinitionId, props.requiredUIDefinitionId)
|
2036
|
+
.pipe(tap(runtimeContext => {
|
2033
2037
|
this.uiDefinitionProperties = runtimeContext.uiDefinitionContainer?.source.properties ?? {};
|
2034
2038
|
const { PriceListId } = context.properties ?? {};
|
2035
2039
|
const mergeContext = {
|