@formio/js 5.0.0-dev.5834.98680ce → 5.0.0-dev.5835.c6e8cce

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.
@@ -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) {
1471
+ if (options.modalPreview || options.dataTablePreview) {
1472
1472
  const template = this.itemTemplate(value, value);
1473
1473
  return template;
1474
1474
  }
@@ -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;
@@ -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) {
1498
+ if (options.modalPreview || options.dataTablePreview) {
1499
1499
  const template = this.itemTemplate(value, value);
1500
1500
  return template;
1501
1501
  }
@@ -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.98680ce",
3
+ "version": "5.0.0-dev.5835.c6e8cce",
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",