@veloceapps/sdk 2.0.20 → 2.0.21
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/bundles/veloce-sdk-runtime.umd.js +6 -7
- package/bundles/veloce-sdk-runtime.umd.js.map +1 -1
- package/bundles/veloce-sdk.umd.js +15 -14
- package/bundles/veloce-sdk.umd.js.map +1 -1
- package/esm2015/runtime/execution/directives/vl-ramp.directive.js +2 -3
- package/esm2015/runtime/services/runtime-form.service.js +5 -5
- package/esm2015/runtime/services/section.service.js +4 -4
- package/esm2015/src/pages/legacy-product/legacy-product.module.js +5 -4
- package/fesm2015/veloce-sdk-runtime.js +7 -8
- package/fesm2015/veloce-sdk-runtime.js.map +1 -1
- package/fesm2015/veloce-sdk.js +8 -7
- package/fesm2015/veloce-sdk.js.map +1 -1
- package/package.json +2 -2
|
@@ -1037,7 +1037,7 @@
|
|
|
1037
1037
|
INT: i7.TypeValidators.integerValidator(),
|
|
1038
1038
|
'DOUBLE|DECIMAL': i7.TypeValidators.decimalValidator(10),
|
|
1039
1039
|
};
|
|
1040
|
-
|
|
1040
|
+
_.keys(primitiveTypesValidators).forEach(function (types) {
|
|
1041
1041
|
if (types.match(attribute.type)) {
|
|
1042
1042
|
var validator = primitiveTypesValidators[types];
|
|
1043
1043
|
validators.push(validator);
|
|
@@ -1047,10 +1047,10 @@
|
|
|
1047
1047
|
var sectionLabel_1 = section.label;
|
|
1048
1048
|
var intervalValidator = function (control) {
|
|
1049
1049
|
var _a;
|
|
1050
|
-
if (
|
|
1050
|
+
if (_.isUndefined(control.value) || _.isNull(control.value) || isNaN(+control.value)) {
|
|
1051
1051
|
return { interval: { message: sectionLabel_1 + ' is not in domain' } };
|
|
1052
1052
|
}
|
|
1053
|
-
if (!
|
|
1053
|
+
if (!_.isUndefined(control.value) && _.isString(control.value) && control.value.length === 0) {
|
|
1054
1054
|
return null;
|
|
1055
1055
|
}
|
|
1056
1056
|
var attributeDomain = (_a = section.model) === null || _a === void 0 ? void 0 : _a.attributeDomains[section.boundData.name];
|
|
@@ -3130,9 +3130,8 @@
|
|
|
3130
3130
|
.toPromise();
|
|
3131
3131
|
};
|
|
3132
3132
|
VlRampDirective.prototype.calculateRampTermByEndDate = function (lineItem, endDate) {
|
|
3133
|
-
var _a;
|
|
3134
3133
|
return this.priceApiService
|
|
3135
|
-
.getSellingTermByEndDate(lineItem.planId,
|
|
3134
|
+
.getSellingTermByEndDate(lineItem.planId, lineItem.offeringId, lineItem.startDate, endDate, lineItem.sellingFrequencyUnit, lineItem.sellingFrequencyDuration)
|
|
3136
3135
|
.toPromise();
|
|
3137
3136
|
};
|
|
3138
3137
|
VlRampDirective.prototype.calculateRampTermByTerm = function (lineItem, term) {
|
|
@@ -3589,7 +3588,7 @@
|
|
|
3589
3588
|
return DynamicModule;
|
|
3590
3589
|
};
|
|
3591
3590
|
SectionsService.prototype.applySelectorField = function (target, dynamicSelector) {
|
|
3592
|
-
|
|
3591
|
+
_.set(target, '$$dynamicSelector', dynamicSelector);
|
|
3593
3592
|
};
|
|
3594
3593
|
SectionsService.prototype.getUniqueSections = function (sections) {
|
|
3595
3594
|
var uniqueSections = {};
|
|
@@ -3604,7 +3603,7 @@
|
|
|
3604
3603
|
uniqueSections[section.hash] = section;
|
|
3605
3604
|
}
|
|
3606
3605
|
});
|
|
3607
|
-
return
|
|
3606
|
+
return _.values(uniqueSections);
|
|
3608
3607
|
};
|
|
3609
3608
|
SectionsService.prototype.getTranspiledTemplate = function (section) {
|
|
3610
3609
|
var template = section.template ? atob(section.template) : '';
|