@formio/js 5.0.0-dev.5768.bc1b46b → 5.0.0-dev.5770.0748fdc

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.
@@ -436,7 +436,7 @@ class DataGridComponent extends NestedArrayComponent_1.default {
436
436
  }
437
437
  removeRow(index) {
438
438
  const makeEmpty = index === 0 && this.rows.length === 1;
439
- const flags = { isReordered: !makeEmpty, resetValue: makeEmpty, modified: true };
439
+ const flags = { isReordered: !makeEmpty, resetValue: makeEmpty };
440
440
  this.splice(index, flags);
441
441
  this.emit('dataGridDeleteRow', { index });
442
442
  const [row] = this.rows.splice(index, 1);
@@ -38,7 +38,7 @@ export default class FileComponent extends Field {
38
38
  get hasTypes(): any;
39
39
  _fileBrowseHidden: any;
40
40
  get shouldSyncFiles(): boolean;
41
- get autoSync(): any;
41
+ get autoSync(): boolean;
42
42
  get columnsSize(): {
43
43
  name: number;
44
44
  size: number;
@@ -151,7 +151,9 @@ class FileComponent extends Field_1.default {
151
151
  return Boolean(this.filesToSync.filesToDelete.length || this.filesToSync.filesToUpload.length);
152
152
  }
153
153
  get autoSync() {
154
- return lodash_1.default.get(this, 'component.autoSync', false);
154
+ // Disable autoSync for now
155
+ return false;
156
+ // return _.get(this, 'component.autoSync', false);
155
157
  }
156
158
  get columnsSize() {
157
159
  const actionsColumn = this.disabled ? 0 : this.autoSync ? 2 : 1;
@@ -6,7 +6,7 @@ exports.default = [
6
6
  ignore: true
7
7
  },
8
8
  {
9
- type: 'checkbox',
9
+ type: 'hidden',
10
10
  label: 'Files Synchronization feature',
11
11
  tooltip: 'Enable ability to control files synchronization. Files will be auto synced before submit.',
12
12
  key: 'autoSync',
@@ -432,7 +432,7 @@ export default class DataGridComponent extends NestedArrayComponent {
432
432
  }
433
433
  removeRow(index) {
434
434
  const makeEmpty = index === 0 && this.rows.length === 1;
435
- const flags = { isReordered: !makeEmpty, resetValue: makeEmpty, modified: true };
435
+ const flags = { isReordered: !makeEmpty, resetValue: makeEmpty };
436
436
  this.splice(index, flags);
437
437
  this.emit('dataGridDeleteRow', { index });
438
438
  const [row] = this.rows.splice(index, 1);
@@ -38,7 +38,7 @@ export default class FileComponent extends Field {
38
38
  get hasTypes(): any;
39
39
  _fileBrowseHidden: any;
40
40
  get shouldSyncFiles(): boolean;
41
- get autoSync(): any;
41
+ get autoSync(): boolean;
42
42
  get columnsSize(): {
43
43
  name: number;
44
44
  size: number;
@@ -140,7 +140,9 @@ export default class FileComponent extends Field {
140
140
  return Boolean(this.filesToSync.filesToDelete.length || this.filesToSync.filesToUpload.length);
141
141
  }
142
142
  get autoSync() {
143
- return _.get(this, 'component.autoSync', false);
143
+ // Disable autoSync for now
144
+ return false;
145
+ // return _.get(this, 'component.autoSync', false);
144
146
  }
145
147
  get columnsSize() {
146
148
  const actionsColumn = this.disabled ? 0 : this.autoSync ? 2 : 1;
@@ -4,7 +4,7 @@ export default [
4
4
  ignore: true
5
5
  },
6
6
  {
7
- type: 'checkbox',
7
+ type: 'hidden',
8
8
  label: 'Files Synchronization feature',
9
9
  tooltip: 'Enable ability to control files synchronization. Files will be auto synced before submit.',
10
10
  key: 'autoSync',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5768.bc1b46b",
3
+ "version": "5.0.0-dev.5770.0748fdc",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {