@formio/js 5.0.0-dev.5835.c6e8cce → 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
  ? {
@@ -1468,7 +1468,7 @@ class SelectComponent extends ListComponent_1.default {
1468
1468
  asString(value, options = {}) {
1469
1469
  var _a;
1470
1470
  value = value !== null && value !== void 0 ? value : this.getValue();
1471
- if (options.modalPreview || options.dataTablePreview) {
1471
+ if (options.modalPreview) {
1472
1472
  const template = this.itemTemplate(value, value);
1473
1473
  return template;
1474
1474
  }
@@ -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
  ? {
@@ -1495,7 +1495,7 @@ export default class SelectComponent extends ListComponent {
1495
1495
  }
1496
1496
  asString(value, options = {}) {
1497
1497
  value = value ?? this.getValue();
1498
- if (options.modalPreview || options.dataTablePreview) {
1498
+ if (options.modalPreview) {
1499
1499
  const template = this.itemTemplate(value, value);
1500
1500
  return template;
1501
1501
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5835.c6e8cce",
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": {