@veloceapps/sdk 2.0.20 → 2.0.22
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 +7 -9
- 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 +3 -5
- 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 +8 -10
- 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,15 +3130,13 @@
|
|
|
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) {
|
|
3139
|
-
var _a;
|
|
3140
3138
|
return this.priceApiService
|
|
3141
|
-
.getSellingTermByTerm(lineItem.planId,
|
|
3139
|
+
.getSellingTermByTerm(lineItem.planId, lineItem.offeringId, lineItem.startDate, term, lineItem.sellingFrequencyUnit, lineItem.sellingFrequencyDuration)
|
|
3142
3140
|
.toPromise();
|
|
3143
3141
|
};
|
|
3144
3142
|
return VlRampDirective;
|
|
@@ -3589,7 +3587,7 @@
|
|
|
3589
3587
|
return DynamicModule;
|
|
3590
3588
|
};
|
|
3591
3589
|
SectionsService.prototype.applySelectorField = function (target, dynamicSelector) {
|
|
3592
|
-
|
|
3590
|
+
_.set(target, '$$dynamicSelector', dynamicSelector);
|
|
3593
3591
|
};
|
|
3594
3592
|
SectionsService.prototype.getUniqueSections = function (sections) {
|
|
3595
3593
|
var uniqueSections = {};
|
|
@@ -3604,7 +3602,7 @@
|
|
|
3604
3602
|
uniqueSections[section.hash] = section;
|
|
3605
3603
|
}
|
|
3606
3604
|
});
|
|
3607
|
-
return
|
|
3605
|
+
return _.values(uniqueSections);
|
|
3608
3606
|
};
|
|
3609
3607
|
SectionsService.prototype.getTranspiledTemplate = function (section) {
|
|
3610
3608
|
var template = section.template ? atob(section.template) : '';
|