@formio/js 5.0.0-dev.5702.41702de → 5.0.0-dev.5704.492ccdf

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.
@@ -849,6 +849,9 @@ class Webform extends NestedDataComponent_1.default {
849
849
  return changed;
850
850
  }
851
851
  getValue() {
852
+ if (!this._submission) {
853
+ this._submission = {};
854
+ }
852
855
  if (!this._submission.data) {
853
856
  this._submission.data = {};
854
857
  }
@@ -681,11 +681,6 @@ class EditGridComponent extends NestedArrayComponent_1.default {
681
681
  }
682
682
  },
683
683
  }, this.component.saveRow || 'Save'));
684
- this.emit('editGridOpenModal', {
685
- component: this.component,
686
- row: editRow,
687
- instance: this,
688
- });
689
684
  return this.attachComponents(modalContent, components);
690
685
  }
691
686
  showDialog(rowIndex) {
@@ -743,11 +738,6 @@ class EditGridComponent extends NestedArrayComponent_1.default {
743
738
  editRow.data = dataSnapshot;
744
739
  this.restoreRowContext(editRow);
745
740
  }
746
- this.emit('editGridEditRow', {
747
- component: this.component,
748
- row: editRow,
749
- instance: this,
750
- });
751
741
  if (this.component.modal) {
752
742
  return this.addRowModal(rowIndex);
753
743
  }
@@ -16,5 +16,4 @@ import comp9 from './comp9';
16
16
  import compOpenWhenEmpty from './comp-openWhenEmpty';
17
17
  import withOpenWhenEmptyAndConditions from './comp-with-conditions-and-openWhenEmpty';
18
18
  import compWithCustomDefaultValue from './comp-with-custom-default-value';
19
- import compTestEvents from './comp-test-events';
20
- export { comp1, comp2, comp3, comp10, comp11, comp12, comp13, comp14, comp15, comp4, comp5, comp6, comp7, comp8, comp9, compOpenWhenEmpty, withOpenWhenEmptyAndConditions, compWithCustomDefaultValue, compTestEvents };
19
+ export { comp1, comp2, comp3, comp10, comp11, comp12, comp13, comp14, comp15, comp4, comp5, comp6, comp7, comp8, comp9, compOpenWhenEmpty, withOpenWhenEmptyAndConditions, compWithCustomDefaultValue };
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.compTestEvents = exports.compWithCustomDefaultValue = exports.withOpenWhenEmptyAndConditions = exports.compOpenWhenEmpty = exports.comp9 = exports.comp8 = exports.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp15 = exports.comp14 = exports.comp13 = exports.comp12 = exports.comp11 = exports.comp10 = exports.comp3 = exports.comp2 = exports.comp1 = void 0;
6
+ exports.compWithCustomDefaultValue = exports.withOpenWhenEmptyAndConditions = exports.compOpenWhenEmpty = exports.comp9 = exports.comp8 = exports.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp15 = exports.comp14 = exports.comp13 = exports.comp12 = exports.comp11 = exports.comp10 = exports.comp3 = exports.comp2 = exports.comp1 = void 0;
7
7
  const comp1_1 = __importDefault(require("./comp1"));
8
8
  exports.comp1 = comp1_1.default;
9
9
  const comp2_1 = __importDefault(require("./comp2"));
@@ -40,5 +40,3 @@ const comp_openWhenEmpty_1 = __importDefault(require("./comp-openWhenEmpty"));
40
40
  exports.compOpenWhenEmpty = comp_openWhenEmpty_1.default;
41
41
  const comp_with_custom_default_value_1 = __importDefault(require("./comp-with-custom-default-value"));
42
42
  exports.compWithCustomDefaultValue = comp_with_custom_default_value_1.default;
43
- const comp_test_events_1 = __importDefault(require("./comp-test-events"));
44
- exports.compTestEvents = comp_test_events_1.default;
@@ -853,6 +853,9 @@ export default class Webform extends NestedDataComponent {
853
853
  return changed;
854
854
  }
855
855
  getValue() {
856
+ if (!this._submission) {
857
+ this._submission = {};
858
+ }
856
859
  if (!this._submission.data) {
857
860
  this._submission.data = {};
858
861
  }
@@ -672,11 +672,6 @@ export default class EditGridComponent extends NestedArrayComponent {
672
672
  }
673
673
  },
674
674
  }, this.component.saveRow || 'Save'));
675
- this.emit('editGridOpenModal', {
676
- component: this.component,
677
- row: editRow,
678
- instance: this,
679
- });
680
675
  return this.attachComponents(modalContent, components);
681
676
  }
682
677
  showDialog(rowIndex) {
@@ -734,11 +729,6 @@ export default class EditGridComponent extends NestedArrayComponent {
734
729
  editRow.data = dataSnapshot;
735
730
  this.restoreRowContext(editRow);
736
731
  }
737
- this.emit('editGridEditRow', {
738
- component: this.component,
739
- row: editRow,
740
- instance: this,
741
- });
742
732
  if (this.component.modal) {
743
733
  return this.addRowModal(rowIndex);
744
734
  }
@@ -16,5 +16,4 @@ import comp9 from './comp9';
16
16
  import compOpenWhenEmpty from './comp-openWhenEmpty';
17
17
  import withOpenWhenEmptyAndConditions from './comp-with-conditions-and-openWhenEmpty';
18
18
  import compWithCustomDefaultValue from './comp-with-custom-default-value';
19
- import compTestEvents from './comp-test-events';
20
- export { comp1, comp2, comp3, comp10, comp11, comp12, comp13, comp14, comp15, comp4, comp5, comp6, comp7, comp8, comp9, compOpenWhenEmpty, withOpenWhenEmptyAndConditions, compWithCustomDefaultValue, compTestEvents };
19
+ export { comp1, comp2, comp3, comp10, comp11, comp12, comp13, comp14, comp15, comp4, comp5, comp6, comp7, comp8, comp9, compOpenWhenEmpty, withOpenWhenEmptyAndConditions, compWithCustomDefaultValue };
@@ -16,5 +16,4 @@ import comp15 from './comp15';
16
16
  import withOpenWhenEmptyAndConditions from './comp-with-conditions-and-openWhenEmpty';
17
17
  import compOpenWhenEmpty from './comp-openWhenEmpty';
18
18
  import compWithCustomDefaultValue from './comp-with-custom-default-value';
19
- import compTestEvents from './comp-test-events';
20
- export { comp1, comp2, comp3, comp10, comp11, comp12, comp13, comp14, comp15, comp4, comp5, comp6, comp7, comp8, comp9, compOpenWhenEmpty, withOpenWhenEmptyAndConditions, compWithCustomDefaultValue, compTestEvents };
19
+ export { comp1, comp2, comp3, comp10, comp11, comp12, comp13, comp14, comp15, comp4, comp5, comp6, comp7, comp8, comp9, compOpenWhenEmpty, withOpenWhenEmptyAndConditions, compWithCustomDefaultValue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5702.41702de",
3
+ "version": "5.0.0-dev.5704.492ccdf",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {
@@ -1,54 +0,0 @@
1
- declare namespace _default {
2
- let _id: string;
3
- let title: string;
4
- let name: string;
5
- let path: string;
6
- let type: string;
7
- let display: string;
8
- let owner: string;
9
- let components: ({
10
- label: string;
11
- tableView: boolean;
12
- modal: boolean;
13
- validateWhenHidden: boolean;
14
- rowDrafts: boolean;
15
- key: string;
16
- type: string;
17
- displayAsTable: boolean;
18
- input: boolean;
19
- components: {
20
- label: string;
21
- applyMaskOn: string;
22
- tableView: boolean;
23
- validateWhenHidden: boolean;
24
- key: string;
25
- type: string;
26
- input: boolean;
27
- }[];
28
- disableOnInvalid?: undefined;
29
- } | {
30
- type: string;
31
- label: string;
32
- key: string;
33
- disableOnInvalid: boolean;
34
- input: boolean;
35
- tableView: boolean;
36
- modal?: undefined;
37
- validateWhenHidden?: undefined;
38
- rowDrafts?: undefined;
39
- displayAsTable?: undefined;
40
- components?: undefined;
41
- })[];
42
- let pdfComponents: never[];
43
- let settings: {};
44
- let properties: {};
45
- let project: string;
46
- let controller: string;
47
- let revisions: string;
48
- let submissionRevisions: string;
49
- let _vid: number;
50
- let created: string;
51
- let modified: string;
52
- let machineName: string;
53
- }
54
- export default _default;
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- _id: '669e1c88a40e327e67e7d1c5',
5
- title: 'editGrid test',
6
- name: 'editGridTest',
7
- path: 'editgridtest',
8
- type: 'form',
9
- display: 'form',
10
- owner: '637b2e6b48c1227e60b1f910',
11
- components: [
12
- {
13
- label: 'Edit Grid',
14
- tableView: false,
15
- modal: false,
16
- validateWhenHidden: false,
17
- rowDrafts: false,
18
- key: 'editGrid',
19
- type: 'editgrid',
20
- displayAsTable: false,
21
- input: true,
22
- components: [
23
- {
24
- label: 'Text Field',
25
- applyMaskOn: 'change',
26
- tableView: true,
27
- validateWhenHidden: false,
28
- key: 'textField',
29
- type: 'textfield',
30
- input: true,
31
- },
32
- ],
33
- },
34
- {
35
- type: 'button',
36
- label: 'Submit',
37
- key: 'submit',
38
- disableOnInvalid: true,
39
- input: true,
40
- tableView: false,
41
- },
42
- ],
43
- pdfComponents: [],
44
- settings: {},
45
- properties: {},
46
- project: '669e1c68a40e327e67e7cedd',
47
- controller: '',
48
- revisions: '',
49
- submissionRevisions: '',
50
- _vid: 0,
51
- created: '2024-07-22T08:47:04.399Z',
52
- modified: '2024-07-22T10:04:23.474Z',
53
- machineName: 'authoring-qzdhayddccjauyr:editGridTest',
54
- };
@@ -1,54 +0,0 @@
1
- declare namespace _default {
2
- let _id: string;
3
- let title: string;
4
- let name: string;
5
- let path: string;
6
- let type: string;
7
- let display: string;
8
- let owner: string;
9
- let components: ({
10
- label: string;
11
- tableView: boolean;
12
- modal: boolean;
13
- validateWhenHidden: boolean;
14
- rowDrafts: boolean;
15
- key: string;
16
- type: string;
17
- displayAsTable: boolean;
18
- input: boolean;
19
- components: {
20
- label: string;
21
- applyMaskOn: string;
22
- tableView: boolean;
23
- validateWhenHidden: boolean;
24
- key: string;
25
- type: string;
26
- input: boolean;
27
- }[];
28
- disableOnInvalid?: undefined;
29
- } | {
30
- type: string;
31
- label: string;
32
- key: string;
33
- disableOnInvalid: boolean;
34
- input: boolean;
35
- tableView: boolean;
36
- modal?: undefined;
37
- validateWhenHidden?: undefined;
38
- rowDrafts?: undefined;
39
- displayAsTable?: undefined;
40
- components?: undefined;
41
- })[];
42
- let pdfComponents: never[];
43
- let settings: {};
44
- let properties: {};
45
- let project: string;
46
- let controller: string;
47
- let revisions: string;
48
- let submissionRevisions: string;
49
- let _vid: number;
50
- let created: string;
51
- let modified: string;
52
- let machineName: string;
53
- }
54
- export default _default;
@@ -1,52 +0,0 @@
1
- export default {
2
- _id: '669e1c88a40e327e67e7d1c5',
3
- title: 'editGrid test',
4
- name: 'editGridTest',
5
- path: 'editgridtest',
6
- type: 'form',
7
- display: 'form',
8
- owner: '637b2e6b48c1227e60b1f910',
9
- components: [
10
- {
11
- label: 'Edit Grid',
12
- tableView: false,
13
- modal: false,
14
- validateWhenHidden: false,
15
- rowDrafts: false,
16
- key: 'editGrid',
17
- type: 'editgrid',
18
- displayAsTable: false,
19
- input: true,
20
- components: [
21
- {
22
- label: 'Text Field',
23
- applyMaskOn: 'change',
24
- tableView: true,
25
- validateWhenHidden: false,
26
- key: 'textField',
27
- type: 'textfield',
28
- input: true,
29
- },
30
- ],
31
- },
32
- {
33
- type: 'button',
34
- label: 'Submit',
35
- key: 'submit',
36
- disableOnInvalid: true,
37
- input: true,
38
- tableView: false,
39
- },
40
- ],
41
- pdfComponents: [],
42
- settings: {},
43
- properties: {},
44
- project: '669e1c68a40e327e67e7cedd',
45
- controller: '',
46
- revisions: '',
47
- submissionRevisions: '',
48
- _vid: 0,
49
- created: '2024-07-22T08:47:04.399Z',
50
- modified: '2024-07-22T10:04:23.474Z',
51
- machineName: 'authoring-qzdhayddccjauyr:editGridTest',
52
- };