nuxeo-development-framework 1.4.2 → 1.4.4
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/nuxeo-development-framework.umd.js +11 -1
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/dynamic-form/components/dynamic-form/dynamic-form.component.js +12 -2
- package/fesm2015/nuxeo-development-framework.js +11 -1
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/dynamic-form/components/dynamic-form/dynamic-form.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9809,6 +9809,15 @@
|
|
|
9809
9809
|
}
|
|
9810
9810
|
};
|
|
9811
9811
|
};
|
|
9812
|
+
DynamicFormComponent.prototype.filterNullValues = function (formValue) {
|
|
9813
|
+
var filtered = {};
|
|
9814
|
+
for (var key in formValue) {
|
|
9815
|
+
if (formValue[key]) {
|
|
9816
|
+
filtered[key] = formValue[key];
|
|
9817
|
+
}
|
|
9818
|
+
}
|
|
9819
|
+
return filtered;
|
|
9820
|
+
};
|
|
9812
9821
|
DynamicFormComponent.prototype.ngOnDestroy = function () {
|
|
9813
9822
|
this.langSubscription ? this.langSubscription.unsubscribe() : '';
|
|
9814
9823
|
};
|
|
@@ -9831,7 +9840,8 @@
|
|
|
9831
9840
|
data: this.formBuilderServic.adaptOutDynamicFields(event.data),
|
|
9832
9841
|
originalEvent: event
|
|
9833
9842
|
};
|
|
9834
|
-
this.
|
|
9843
|
+
var body = this.filterNullValues(myformValue);
|
|
9844
|
+
this.change.emit(body);
|
|
9835
9845
|
}
|
|
9836
9846
|
};
|
|
9837
9847
|
return DynamicFormComponent;
|