@formio/js 5.1.0-dev.6192.9d1d8f4 → 5.1.0-dev.6194.87d4d3f

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.
@@ -571,11 +571,11 @@ class AddressComponent extends Container_1.default {
571
571
  }
572
572
  if (valueInManualMode) {
573
573
  if (this.component.manualModeViewString) {
574
- return this.interpolate(this.component.manualModeViewString, {
574
+ return this.evaluate(this.component.manualModeViewString, {
575
575
  address,
576
- data: this.data,
576
+ data: value,
577
577
  component: this.component,
578
- });
578
+ }, 'value');
579
579
  }
580
580
  return this.getComponents()
581
581
  .filter((component) => component.hasValue(address))
@@ -147,7 +147,7 @@ exports.default = [
147
147
  key: 'manualModeViewString',
148
148
  label: 'Manual Mode View String',
149
149
  placeholder: 'Enter Manual Mode View String',
150
- description: '"address" variable references component value, "data" - submission data and "component" - address component schema.',
150
+ description: '"data.address" references component value and "component" - address component schema.',
151
151
  weight: 60,
152
152
  rows: 5,
153
153
  editor: 'ace',
@@ -160,13 +160,6 @@ class TagsComponent extends Input_1.default {
160
160
  this.refs.input[0].parentNode.lastChild.focus();
161
161
  }
162
162
  }
163
- getValue() {
164
- if (this.choices) {
165
- const value = this.choices.getValue(true);
166
- return value.join(`${this.delimiter}`);
167
- }
168
- return super.getValue();
169
- }
170
163
  getValueAsString(value) {
171
164
  if (!value) {
172
165
  return '';
@@ -564,11 +564,11 @@ export default class AddressComponent extends ContainerComponent {
564
564
  }
565
565
  if (valueInManualMode) {
566
566
  if (this.component.manualModeViewString) {
567
- return this.interpolate(this.component.manualModeViewString, {
567
+ return this.evaluate(this.component.manualModeViewString, {
568
568
  address,
569
- data: this.data,
569
+ data: value,
570
570
  component: this.component,
571
- });
571
+ }, 'value');
572
572
  }
573
573
  return this.getComponents()
574
574
  .filter((component) => component.hasValue(address))
@@ -142,7 +142,7 @@ export default [
142
142
  key: 'manualModeViewString',
143
143
  label: 'Manual Mode View String',
144
144
  placeholder: 'Enter Manual Mode View String',
145
- description: '"address" variable references component value, "data" - submission data and "component" - address component schema.',
145
+ description: '"data.address" references component value and "component" - address component schema.',
146
146
  weight: 60,
147
147
  rows: 5,
148
148
  editor: 'ace',
@@ -158,13 +158,6 @@ export default class TagsComponent extends Input {
158
158
  this.refs.input[0].parentNode.lastChild.focus();
159
159
  }
160
160
  }
161
- getValue() {
162
- if (this.choices) {
163
- const value = this.choices.getValue(true);
164
- return value.join(`${this.delimiter}`);
165
- }
166
- return super.getValue();
167
- }
168
161
  getValueAsString(value) {
169
162
  if (!value) {
170
163
  return '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.1.0-dev.6192.9d1d8f4",
3
+ "version": "5.1.0-dev.6194.87d4d3f",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {