@formio/js 5.0.0-dev.5835.c6e8cce → 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
@@ -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
  }
@@ -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
@@ -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.5837.9b0fdec",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {