@formio/js 5.0.0-dev.5836.bcc14e7 → 5.0.0-dev.5837.9b0fdec

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.
@@ -2992,6 +2992,7 @@ class Component extends Element_1.default {
2992
2992
  value: this.validationValue,
2993
2993
  path: this.path || this.component.key,
2994
2994
  instance: this,
2995
+ form: this.root ? this.root._form : {},
2995
2996
  scope: { errors: [] },
2996
2997
  processors: [
2997
2998
  process_1.validateProcessInfo
@@ -214,16 +214,6 @@ class AddressComponent extends Container_1.default {
214
214
  isValueInLegacyFormat(value) {
215
215
  return value && !value.mode;
216
216
  }
217
- set dataValue(value) {
218
- super.dataValue = value;
219
- }
220
- get dataValue() {
221
- const resultValue = lodash_1.default.get(this._data, this.component.path);
222
- if (!lodash_1.default.isArray(resultValue) && this.component.multiple) {
223
- return [resultValue];
224
- }
225
- return super.dataValue;
226
- }
227
217
  normalizeValue(value) {
228
218
  return (this.manualModeEnabled && this.isValueInLegacyFormat(value))
229
219
  ? {
@@ -2956,6 +2956,7 @@ export default class Component extends Element {
2956
2956
  value: this.validationValue,
2957
2957
  path: this.path || this.component.key,
2958
2958
  instance: this,
2959
+ form: this.root ? this.root._form : {},
2959
2960
  scope: { errors: [] },
2960
2961
  processors: [
2961
2962
  validateProcessInfo
@@ -210,16 +210,6 @@ export default class AddressComponent extends ContainerComponent {
210
210
  isValueInLegacyFormat(value) {
211
211
  return value && !value.mode;
212
212
  }
213
- set dataValue(value) {
214
- super.dataValue = value;
215
- }
216
- get dataValue() {
217
- const resultValue = _.get(this._data, this.component.path);
218
- if (!_.isArray(resultValue) && this.component.multiple) {
219
- return [resultValue];
220
- }
221
- return super.dataValue;
222
- }
223
213
  normalizeValue(value) {
224
214
  return (this.manualModeEnabled && this.isValueInLegacyFormat(value))
225
215
  ? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5836.bcc14e7",
3
+ "version": "5.0.0-dev.5837.9b0fdec",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {