@formio/js 5.0.0-dev.5676.625f434 → 5.0.0-dev.5679.8f14c25

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.
package/lib/cjs/Formio.js CHANGED
@@ -125,3 +125,4 @@ if (typeof global !== 'undefined') {
125
125
  if (typeof window !== 'undefined') {
126
126
  sdk_1.Formio.addToGlobal(window);
127
127
  }
128
+ Embed_1.Formio._formioReady(sdk_1.Formio);
@@ -3388,10 +3388,6 @@ class Component extends Element_1.default {
3388
3388
  const disabled = this.shouldDisabled;
3389
3389
  // Change states which won't be recalculated during redrawing
3390
3390
  if (this.visible !== visible) {
3391
- // If the logic is triggered by an event and the action sets the hidden state then the original
3392
- // component definition must be changed so that the components hidden state does not get flipped back by
3393
- // the fieldLogic function
3394
- this.originalComponent.hidden = !visible;
3395
3391
  this.visible = visible;
3396
3392
  }
3397
3393
  if (this.disabled !== disabled) {
@@ -4,5 +4,4 @@ import comp3 from './comp3';
4
4
  import comp4 from './comp4';
5
5
  import comp5 from './comp5';
6
6
  import comp6 from './comp6';
7
- import comp7 from './comp7';
8
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7 };
7
+ export { comp1, comp2, comp3, comp4, comp5, comp6 };
@@ -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.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = void 0;
6
+ exports.comp6 = exports.comp5 = exports.comp4 = 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"));
@@ -16,5 +16,3 @@ const comp5_1 = __importDefault(require("./comp5"));
16
16
  exports.comp5 = comp5_1.default;
17
17
  const comp6_1 = __importDefault(require("./comp6"));
18
18
  exports.comp6 = comp6_1.default;
19
- const comp7_1 = __importDefault(require("./comp7"));
20
- exports.comp7 = comp7_1.default;
package/lib/mjs/Formio.js CHANGED
@@ -118,4 +118,5 @@ if (typeof global !== 'undefined') {
118
118
  if (typeof window !== 'undefined') {
119
119
  FormioCore.addToGlobal(window);
120
120
  }
121
+ FormioEmbed._formioReady(FormioCore);
121
122
  export { FormioCore as Formio };
@@ -3361,10 +3361,6 @@ export default class Component extends Element {
3361
3361
  const disabled = this.shouldDisabled;
3362
3362
  // Change states which won't be recalculated during redrawing
3363
3363
  if (this.visible !== visible) {
3364
- // If the logic is triggered by an event and the action sets the hidden state then the original
3365
- // component definition must be changed so that the components hidden state does not get flipped back by
3366
- // the fieldLogic function
3367
- this.originalComponent.hidden = !visible;
3368
3364
  this.visible = visible;
3369
3365
  }
3370
3366
  if (this.disabled !== disabled) {
@@ -4,5 +4,4 @@ import comp3 from './comp3';
4
4
  import comp4 from './comp4';
5
5
  import comp5 from './comp5';
6
6
  import comp6 from './comp6';
7
- import comp7 from './comp7';
8
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7 };
7
+ export { comp1, comp2, comp3, comp4, comp5, comp6 };
@@ -4,5 +4,4 @@ import comp3 from './comp3';
4
4
  import comp4 from './comp4';
5
5
  import comp5 from './comp5';
6
6
  import comp6 from './comp6';
7
- import comp7 from './comp7';
8
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7 };
7
+ export { comp1, comp2, comp3, comp4, comp5, comp6 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-dev.5676.625f434",
3
+ "version": "5.0.0-dev.5679.8f14c25",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {
@@ -1,84 +0,0 @@
1
- declare namespace _default {
2
- let components: ({
3
- label: string;
4
- action: string;
5
- showValidations: boolean;
6
- tableView: boolean;
7
- key: string;
8
- type: string;
9
- event: string;
10
- input: boolean;
11
- theme?: undefined;
12
- collapsible?: undefined;
13
- hidden?: undefined;
14
- logic?: undefined;
15
- collapsed?: undefined;
16
- components?: undefined;
17
- applyMaskOn?: undefined;
18
- } | {
19
- label: string;
20
- action: string;
21
- showValidations: boolean;
22
- theme: string;
23
- tableView: boolean;
24
- key: string;
25
- type: string;
26
- event: string;
27
- input: boolean;
28
- collapsible?: undefined;
29
- hidden?: undefined;
30
- logic?: undefined;
31
- collapsed?: undefined;
32
- components?: undefined;
33
- applyMaskOn?: undefined;
34
- } | {
35
- collapsible: boolean;
36
- hidden: boolean;
37
- key: string;
38
- logic: {
39
- name: string;
40
- trigger: {
41
- type: string;
42
- event: string;
43
- };
44
- actions: {
45
- name: string;
46
- type: string;
47
- property: {
48
- label: string;
49
- value: string;
50
- type: string;
51
- };
52
- state: boolean;
53
- }[];
54
- }[];
55
- type: string;
56
- label: string;
57
- collapsed: boolean;
58
- input: boolean;
59
- tableView: boolean;
60
- components: never[];
61
- action?: undefined;
62
- showValidations?: undefined;
63
- event?: undefined;
64
- theme?: undefined;
65
- applyMaskOn?: undefined;
66
- } | {
67
- label: string;
68
- applyMaskOn: string;
69
- tableView: boolean;
70
- key: string;
71
- type: string;
72
- input: boolean;
73
- action?: undefined;
74
- showValidations?: undefined;
75
- event?: undefined;
76
- theme?: undefined;
77
- collapsible?: undefined;
78
- hidden?: undefined;
79
- logic?: undefined;
80
- collapsed?: undefined;
81
- components?: undefined;
82
- })[];
83
- }
84
- export default _default;
@@ -1,86 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- components: [
5
- {
6
- "label": "Show",
7
- "action": "event",
8
- "showValidations": false,
9
- "tableView": false,
10
- "key": "show",
11
- "type": "button",
12
- "event": "show",
13
- "input": true
14
- },
15
- {
16
- "label": "Hide",
17
- "action": "event",
18
- "showValidations": false,
19
- "theme": "danger",
20
- "tableView": false,
21
- "key": "hide",
22
- "type": "button",
23
- "event": "hide",
24
- "input": true
25
- },
26
- {
27
- "collapsible": true,
28
- "hidden": true,
29
- "key": "panel",
30
- "logic": [
31
- {
32
- "name": "ShowPanel",
33
- "trigger": {
34
- "type": "event",
35
- "event": "show"
36
- },
37
- "actions": [
38
- {
39
- "name": "Show",
40
- "type": "property",
41
- "property": {
42
- "label": "Hidden",
43
- "value": "hidden",
44
- "type": "boolean"
45
- },
46
- "state": false
47
- }
48
- ]
49
- },
50
- {
51
- "name": "HidePanel",
52
- "trigger": {
53
- "type": "event",
54
- "event": "hide"
55
- },
56
- "actions": [
57
- {
58
- "name": "Hide",
59
- "type": "property",
60
- "property": {
61
- "label": "Hidden",
62
- "value": "hidden",
63
- "type": "boolean"
64
- },
65
- "state": true
66
- }
67
- ]
68
- }
69
- ],
70
- "type": "panel",
71
- "label": "Panel",
72
- "collapsed": false,
73
- "input": false,
74
- "tableView": false,
75
- "components": []
76
- },
77
- {
78
- "label": "Text Field",
79
- "applyMaskOn": "change",
80
- "tableView": true,
81
- "key": "textField1",
82
- "type": "textfield",
83
- "input": true
84
- }
85
- ]
86
- };
@@ -1,84 +0,0 @@
1
- declare namespace _default {
2
- let components: ({
3
- label: string;
4
- action: string;
5
- showValidations: boolean;
6
- tableView: boolean;
7
- key: string;
8
- type: string;
9
- event: string;
10
- input: boolean;
11
- theme?: undefined;
12
- collapsible?: undefined;
13
- hidden?: undefined;
14
- logic?: undefined;
15
- collapsed?: undefined;
16
- components?: undefined;
17
- applyMaskOn?: undefined;
18
- } | {
19
- label: string;
20
- action: string;
21
- showValidations: boolean;
22
- theme: string;
23
- tableView: boolean;
24
- key: string;
25
- type: string;
26
- event: string;
27
- input: boolean;
28
- collapsible?: undefined;
29
- hidden?: undefined;
30
- logic?: undefined;
31
- collapsed?: undefined;
32
- components?: undefined;
33
- applyMaskOn?: undefined;
34
- } | {
35
- collapsible: boolean;
36
- hidden: boolean;
37
- key: string;
38
- logic: {
39
- name: string;
40
- trigger: {
41
- type: string;
42
- event: string;
43
- };
44
- actions: {
45
- name: string;
46
- type: string;
47
- property: {
48
- label: string;
49
- value: string;
50
- type: string;
51
- };
52
- state: boolean;
53
- }[];
54
- }[];
55
- type: string;
56
- label: string;
57
- collapsed: boolean;
58
- input: boolean;
59
- tableView: boolean;
60
- components: never[];
61
- action?: undefined;
62
- showValidations?: undefined;
63
- event?: undefined;
64
- theme?: undefined;
65
- applyMaskOn?: undefined;
66
- } | {
67
- label: string;
68
- applyMaskOn: string;
69
- tableView: boolean;
70
- key: string;
71
- type: string;
72
- input: boolean;
73
- action?: undefined;
74
- showValidations?: undefined;
75
- event?: undefined;
76
- theme?: undefined;
77
- collapsible?: undefined;
78
- hidden?: undefined;
79
- logic?: undefined;
80
- collapsed?: undefined;
81
- components?: undefined;
82
- })[];
83
- }
84
- export default _default;
@@ -1,84 +0,0 @@
1
- export default {
2
- components: [
3
- {
4
- "label": "Show",
5
- "action": "event",
6
- "showValidations": false,
7
- "tableView": false,
8
- "key": "show",
9
- "type": "button",
10
- "event": "show",
11
- "input": true
12
- },
13
- {
14
- "label": "Hide",
15
- "action": "event",
16
- "showValidations": false,
17
- "theme": "danger",
18
- "tableView": false,
19
- "key": "hide",
20
- "type": "button",
21
- "event": "hide",
22
- "input": true
23
- },
24
- {
25
- "collapsible": true,
26
- "hidden": true,
27
- "key": "panel",
28
- "logic": [
29
- {
30
- "name": "ShowPanel",
31
- "trigger": {
32
- "type": "event",
33
- "event": "show"
34
- },
35
- "actions": [
36
- {
37
- "name": "Show",
38
- "type": "property",
39
- "property": {
40
- "label": "Hidden",
41
- "value": "hidden",
42
- "type": "boolean"
43
- },
44
- "state": false
45
- }
46
- ]
47
- },
48
- {
49
- "name": "HidePanel",
50
- "trigger": {
51
- "type": "event",
52
- "event": "hide"
53
- },
54
- "actions": [
55
- {
56
- "name": "Hide",
57
- "type": "property",
58
- "property": {
59
- "label": "Hidden",
60
- "value": "hidden",
61
- "type": "boolean"
62
- },
63
- "state": true
64
- }
65
- ]
66
- }
67
- ],
68
- "type": "panel",
69
- "label": "Panel",
70
- "collapsed": false,
71
- "input": false,
72
- "tableView": false,
73
- "components": []
74
- },
75
- {
76
- "label": "Text Field",
77
- "applyMaskOn": "change",
78
- "tableView": true,
79
- "key": "textField1",
80
- "type": "textfield",
81
- "input": true
82
- }
83
- ]
84
- };