@veloceapps/sdk 7.0.2-32 → 7.0.2-34
Sign up to get free protection for your applications and to get access to all the features.
- package/cms/components/preview/preview.component.d.ts +3 -4
- package/cms/index.d.ts +1 -0
- package/cms/types/layouts.types.d.ts +2 -0
- package/core/types/ui-definition.types.d.ts +1 -0
- package/esm2020/cms/cms.layouts.mjs +17 -1
- package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +3 -3
- package/esm2020/cms/components/preview/preview.component.mjs +8 -10
- package/esm2020/cms/index.mjs +2 -1
- package/esm2020/cms/modules/runtime/services/runtime.service.mjs +3 -2
- package/esm2020/cms/types/layouts.types.mjs +1 -1
- package/esm2020/core/modules/configuration/helpers.mjs +3 -6
- package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +2 -1
- package/esm2020/core/types/ui-definition.types.mjs +1 -1
- package/fesm2015/veloceapps-sdk-cms.mjs +258 -244
- package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk-core.mjs +2 -5
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-cms.mjs +258 -244
- package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +3 -5
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/package.json +1 -1
@@ -14,10 +14,7 @@ import moment from 'moment';
|
|
14
14
|
const getDefaultLineItem = (context, uiDefinitionProperties, qty = 1) => {
|
15
15
|
var _a, _b, _c;
|
16
16
|
const id = UUID.UUID();
|
17
|
-
|
18
|
-
? { offeringId: context.offeringId, offeringInstanceId: context.offeringInstanceId || id }
|
19
|
-
: {}));
|
20
|
-
return lineItem;
|
17
|
+
return Object.assign({ id, type: (_a = uiDefinitionProperties.rootType) !== null && _a !== void 0 ? _a : '', cfgStatus: 'Default', actionCode: 'ADD', qty, productName: ((_b = context.properties) === null || _b === void 0 ? void 0 : _b['displayName']) || context.productName, productId: (_c = context.productId) !== null && _c !== void 0 ? _c : '' }, (uiDefinitionProperties.offeringId ? { offeringId: uiDefinitionProperties.offeringId } : {}));
|
21
18
|
};
|
22
19
|
|
23
20
|
var RuntimeMode;
|
@@ -158,7 +155,7 @@ class ConfigurationRuntimeService {
|
|
158
155
|
runtimeMode: RuntimeMode.TEST,
|
159
156
|
};
|
160
157
|
this.contextService.update({
|
161
|
-
properties: Object.assign(Object.assign(Object.assign(Object.assign({}, (_a = this.runtimeContext) === null || _a === void 0 ? void 0 : _a.properties), context.properties), { ModelId: modelId, RuntimeMode: ConfigurationContextMode.TEST, PricingEnabled: this.uiDefinitionProperties.pricingEnabled ? 'true' : 'false', StartDate: new Date().toISOString().substring(0, 10), PriceListId: this.uiDefinitionProperties.priceList, standalone: 'true' }), uiDefinitionExternals),
|
158
|
+
properties: Object.assign(Object.assign(Object.assign(Object.assign({}, (_a = this.runtimeContext) === null || _a === void 0 ? void 0 : _a.properties), context.properties), { ModelId: modelId, RuntimeMode: ConfigurationContextMode.TEST, PricingEnabled: this.uiDefinitionProperties.pricingEnabled ? 'true' : 'false', StartDate: new Date().toISOString().substring(0, 10), PriceListId: this.uiDefinitionProperties.priceList, offeringId: this.uiDefinitionProperties.offeringId, standalone: 'true' }), uiDefinitionExternals),
|
162
159
|
});
|
163
160
|
this._isInitialized = true;
|
164
161
|
}));
|