@formio/js 5.0.0-dev.5834.aaa6886 → 5.0.0-dev.5836.bcc14e7

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.
@@ -214,6 +214,16 @@ 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
+ }
217
227
  normalizeValue(value) {
218
228
  return (this.manualModeEnabled && this.isValueInLegacyFormat(value))
219
229
  ? {
@@ -56,6 +56,12 @@ class TimeComponent extends TextField_1.default {
56
56
  }
57
57
  return value;
58
58
  }
59
+ get validationValue() {
60
+ if ((Array.isArray(this.rawData) && !this.rawData.length) || !this.rawData) {
61
+ return this.dataValue;
62
+ }
63
+ return this.rawData;
64
+ }
59
65
  get inputInfo() {
60
66
  const info = super.inputInfo;
61
67
  info.attr.type = this.component.inputType;
@@ -210,6 +210,16 @@ 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
+ }
213
223
  normalizeValue(value) {
214
224
  return (this.manualModeEnabled && this.isValueInLegacyFormat(value))
215
225
  ? {
@@ -51,6 +51,12 @@ export default class TimeComponent extends TextFieldComponent {
51
51
  }
52
52
  return value;
53
53
  }
54
+ get validationValue() {
55
+ if ((Array.isArray(this.rawData) && !this.rawData.length) || !this.rawData) {
56
+ return this.dataValue;
57
+ }
58
+ return this.rawData;
59
+ }
54
60
  get inputInfo() {
55
61
  const info = super.inputInfo;
56
62
  info.attr.type = this.component.inputType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5834.aaa6886",
3
+ "version": "5.0.0-dev.5836.bcc14e7",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {
@@ -82,7 +82,7 @@
82
82
  "dependencies": {
83
83
  "@formio/bootstrap": "3.0.0-dev.98.17ba6ea",
84
84
  "@formio/choices.js": "^10.2.1",
85
- "@formio/core": "v2.1.0-dev.160.d45b496",
85
+ "@formio/core": "v2.1.0-dev.156.78a83fd",
86
86
  "@formio/text-mask-addons": "^3.8.0-formio.2",
87
87
  "@formio/vanilla-text-mask": "^5.1.1-formio.1",
88
88
  "abortcontroller-polyfill": "^1.7.5",