@formio/js 5.1.0-dev.6056.ba6432d → 5.1.0-dev.6058.189ce78

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.
Files changed (37) hide show
  1. package/dist/formio.form.js +1 -1
  2. package/dist/formio.form.min.js +1 -1
  3. package/dist/formio.full.js +16 -16
  4. package/dist/formio.full.min.js +1 -1
  5. package/lib/cjs/components/_classes/component/editForm/Component.edit.data.js +19 -0
  6. package/lib/cjs/components/_classes/nested/NestedComponent.form.js +0 -13
  7. package/lib/cjs/components/content/editForm/Content.edit.display.js +0 -8
  8. package/lib/cjs/components/currency/editForm/Currency.edit.display.js +0 -12
  9. package/lib/cjs/components/day/editForm/Day.edit.display.js +0 -8
  10. package/lib/cjs/components/email/editForm/Email.edit.display.js +0 -12
  11. package/lib/cjs/components/fieldset/editForm/Fieldset.edit.display.js +0 -8
  12. package/lib/cjs/components/hidden/editForm/Hidden.edit.display.js +0 -8
  13. package/lib/cjs/components/html/editForm/HTML.edit.display.js +0 -8
  14. package/lib/cjs/components/number/editForm/Number.edit.display.js +0 -12
  15. package/lib/cjs/components/password/editForm/Password.edit.display.js +1 -13
  16. package/lib/cjs/components/phonenumber/PhoneNumber.form.js +1 -9
  17. package/lib/cjs/components/tabs/editForm/Tabs.edit.display.js +0 -8
  18. package/lib/cjs/components/textarea/editForm/TextArea.edit.display.js +0 -12
  19. package/lib/cjs/components/url/editForm/Url.edit.display.js +0 -12
  20. package/lib/cjs/components/well/editForm/Well.edit.display.js +0 -8
  21. package/lib/mjs/components/_classes/component/editForm/Component.edit.data.js +19 -0
  22. package/lib/mjs/components/_classes/nested/NestedComponent.form.js +0 -13
  23. package/lib/mjs/components/content/editForm/Content.edit.display.js +0 -8
  24. package/lib/mjs/components/currency/editForm/Currency.edit.display.js +0 -12
  25. package/lib/mjs/components/day/editForm/Day.edit.display.js +0 -8
  26. package/lib/mjs/components/email/editForm/Email.edit.display.js +0 -12
  27. package/lib/mjs/components/fieldset/editForm/Fieldset.edit.display.js +0 -8
  28. package/lib/mjs/components/hidden/editForm/Hidden.edit.display.js +0 -8
  29. package/lib/mjs/components/html/editForm/HTML.edit.display.js +0 -8
  30. package/lib/mjs/components/number/editForm/Number.edit.display.js +0 -12
  31. package/lib/mjs/components/password/editForm/Password.edit.display.js +1 -13
  32. package/lib/mjs/components/phonenumber/PhoneNumber.form.js +1 -9
  33. package/lib/mjs/components/tabs/editForm/Tabs.edit.display.js +0 -8
  34. package/lib/mjs/components/textarea/editForm/TextArea.edit.display.js +0 -12
  35. package/lib/mjs/components/url/editForm/Url.edit.display.js +0 -12
  36. package/lib/mjs/components/well/editForm/Well.edit.display.js +0 -8
  37. package/package.json +1 -1
@@ -81,6 +81,25 @@ exports.default = [
81
81
  }
82
82
  ]
83
83
  },
84
+ {
85
+ name: 'hide',
86
+ trigger: {
87
+ type: 'javascript',
88
+ javascript: 'result = instance.root.options.editJson === false;'
89
+ },
90
+ actions: [
91
+ {
92
+ name: 'hide',
93
+ type: 'property',
94
+ property: {
95
+ label: 'Hidden',
96
+ value: 'hidden',
97
+ type: 'boolean'
98
+ },
99
+ state: true
100
+ }
101
+ ]
102
+ },
84
103
  {
85
104
  name: 'disabledToolTip',
86
105
  trigger: {
@@ -11,19 +11,6 @@ const Components_1 = __importDefault(require("../../Components"));
11
11
  */
12
12
  function default_1(...extend) {
13
13
  return Components_1.default.baseEditForm([
14
- {
15
- key: 'display',
16
- components: [
17
- {
18
- key: 'labelWidth',
19
- ignore: true
20
- },
21
- {
22
- key: 'labelMargin',
23
- ignore: true
24
- }
25
- ]
26
- },
27
14
  {
28
15
  key: 'data',
29
16
  ignore: true
@@ -5,14 +5,6 @@ exports.default = [
5
5
  key: 'labelPosition',
6
6
  ignore: true
7
7
  },
8
- {
9
- key: 'labelWidth',
10
- ignore: true
11
- },
12
- {
13
- key: 'labelMargin',
14
- ignore: true
15
- },
16
8
  {
17
9
  key: 'placeholder',
18
10
  ignore: true
@@ -9,18 +9,6 @@ exports.default = [
9
9
  key: 'allowMultipleMasks',
10
10
  ignore: true
11
11
  },
12
- {
13
- key: 'inputMasks',
14
- ignore: true
15
- },
16
- {
17
- key: 'widget.type',
18
- ignore: true
19
- },
20
- {
21
- key: 'widget',
22
- ignore: true
23
- },
24
12
  {
25
13
  key: 'showWordCount',
26
14
  ignore: true
@@ -5,14 +5,6 @@ exports.default = [
5
5
  key: 'labelPosition',
6
6
  ignore: true
7
7
  },
8
- {
9
- key: 'labelWidth',
10
- ignore: true
11
- },
12
- {
13
- key: 'labelMargin',
14
- ignore: true
15
- },
16
8
  {
17
9
  weight: 15,
18
10
  type: 'checkbox',
@@ -9,18 +9,6 @@ exports.default = [
9
9
  key: 'allowMultipleMasks',
10
10
  ignore: true,
11
11
  },
12
- {
13
- key: 'inputMasks',
14
- ignore: true
15
- },
16
- {
17
- key: 'widget.type',
18
- ignore: true
19
- },
20
- {
21
- key: 'widget',
22
- ignore: true
23
- },
24
12
  {
25
13
  key: 'showWordCount',
26
14
  ignore: true
@@ -5,14 +5,6 @@ exports.default = [
5
5
  key: 'labelPosition',
6
6
  ignore: true
7
7
  },
8
- {
9
- key: 'labelWidth',
10
- ignore: true
11
- },
12
- {
13
- key: 'labelMargin',
14
- ignore: true
15
- },
16
8
  {
17
9
  key: 'placeholder',
18
10
  ignore: true
@@ -5,14 +5,6 @@ exports.default = [
5
5
  key: 'labelPosition',
6
6
  ignore: true
7
7
  },
8
- {
9
- key: 'labelWidth',
10
- ignore: true
11
- },
12
- {
13
- key: 'labelMargin',
14
- ignore: true
15
- },
16
8
  {
17
9
  key: 'placeholder',
18
10
  ignore: true
@@ -5,14 +5,6 @@ exports.default = [
5
5
  key: 'labelPosition',
6
6
  ignore: true
7
7
  },
8
- {
9
- key: 'labelWidth',
10
- ignore: true
11
- },
12
- {
13
- key: 'labelMargin',
14
- ignore: true
15
- },
16
8
  {
17
9
  key: 'placeholder',
18
10
  ignore: true
@@ -13,18 +13,6 @@ exports.default = [
13
13
  key: 'allowMultipleMasks',
14
14
  ignore: true
15
15
  },
16
- {
17
- key: 'inputMasks',
18
- ignore: true
19
- },
20
- {
21
- key: 'widget.type',
22
- ignore: true
23
- },
24
- {
25
- key: 'widget',
26
- ignore: true
27
- },
28
16
  {
29
17
  key: 'showWordCount',
30
18
  ignore: true,
@@ -12,17 +12,5 @@ exports.default = [
12
12
  {
13
13
  key: 'allowMultipleMasks',
14
14
  ignore: true
15
- },
16
- {
17
- key: 'inputMasks',
18
- ignore: true
19
- },
20
- {
21
- key: 'widget.type',
22
- ignore: true
23
- },
24
- {
25
- key: 'widget',
26
- ignore: true
27
- },
15
+ }
28
16
  ];
@@ -22,15 +22,7 @@ function default_1(...extend) {
22
22
  {
23
23
  key: 'showCharCount',
24
24
  ignore: true
25
- },
26
- {
27
- key: 'widget.type',
28
- ignore: true
29
- },
30
- {
31
- key: 'widget',
32
- ignore: true
33
- },
25
+ }
34
26
  ]
35
27
  },
36
28
  {
@@ -5,14 +5,6 @@ exports.default = [
5
5
  key: 'labelPosition',
6
6
  ignore: true
7
7
  },
8
- {
9
- key: 'labelWidth',
10
- ignore: true
11
- },
12
- {
13
- key: 'labelMargin',
14
- ignore: true
15
- },
16
8
  {
17
9
  key: 'placeholder',
18
10
  ignore: true
@@ -14,22 +14,10 @@ exports.default = [
14
14
  key: 'allowMultipleMasks',
15
15
  ignore: true
16
16
  },
17
- {
18
- key: 'inputMasks',
19
- ignore: true
20
- },
21
17
  {
22
18
  key: 'mask',
23
19
  ignore: true
24
20
  },
25
- {
26
- key: 'widget.type',
27
- ignore: true
28
- },
29
- {
30
- key: 'widget',
31
- ignore: true
32
- },
33
21
  {
34
22
  type: 'number',
35
23
  input: true,
@@ -9,18 +9,6 @@ exports.default = [
9
9
  key: 'allowMultipleMasks',
10
10
  ignore: true
11
11
  },
12
- {
13
- key: 'inputMasks',
14
- ignore: true
15
- },
16
- {
17
- key: 'widget.type',
18
- ignore: true
19
- },
20
- {
21
- key: 'widget',
22
- ignore: true
23
- },
24
12
  {
25
13
  key: 'showWordCount',
26
14
  ignore: true,
@@ -5,14 +5,6 @@ exports.default = [
5
5
  key: 'labelPosition',
6
6
  ignore: true
7
7
  },
8
- {
9
- key: 'labelWidth',
10
- ignore: true
11
- },
12
- {
13
- key: 'labelMargin',
14
- ignore: true
15
- },
16
8
  {
17
9
  key: 'placeholder',
18
10
  ignore: true
@@ -76,6 +76,25 @@ export default [
76
76
  }
77
77
  ]
78
78
  },
79
+ {
80
+ name: 'hide',
81
+ trigger: {
82
+ type: 'javascript',
83
+ javascript: 'result = instance.root.options.editJson === false;'
84
+ },
85
+ actions: [
86
+ {
87
+ name: 'hide',
88
+ type: 'property',
89
+ property: {
90
+ label: 'Hidden',
91
+ value: 'hidden',
92
+ type: 'boolean'
93
+ },
94
+ state: true
95
+ }
96
+ ]
97
+ },
79
98
  {
80
99
  name: 'disabledToolTip',
81
100
  trigger: {
@@ -6,19 +6,6 @@ import Components from '../../Components';
6
6
  */
7
7
  export default function (...extend) {
8
8
  return Components.baseEditForm([
9
- {
10
- key: 'display',
11
- components: [
12
- {
13
- key: 'labelWidth',
14
- ignore: true
15
- },
16
- {
17
- key: 'labelMargin',
18
- ignore: true
19
- }
20
- ]
21
- },
22
9
  {
23
10
  key: 'data',
24
11
  ignore: true
@@ -3,14 +3,6 @@ export default [
3
3
  key: 'labelPosition',
4
4
  ignore: true
5
5
  },
6
- {
7
- key: 'labelWidth',
8
- ignore: true
9
- },
10
- {
11
- key: 'labelMargin',
12
- ignore: true
13
- },
14
6
  {
15
7
  key: 'placeholder',
16
8
  ignore: true
@@ -7,18 +7,6 @@ export default [
7
7
  key: 'allowMultipleMasks',
8
8
  ignore: true
9
9
  },
10
- {
11
- key: 'inputMasks',
12
- ignore: true
13
- },
14
- {
15
- key: 'widget.type',
16
- ignore: true
17
- },
18
- {
19
- key: 'widget',
20
- ignore: true
21
- },
22
10
  {
23
11
  key: 'showWordCount',
24
12
  ignore: true
@@ -3,14 +3,6 @@ export default [
3
3
  key: 'labelPosition',
4
4
  ignore: true
5
5
  },
6
- {
7
- key: 'labelWidth',
8
- ignore: true
9
- },
10
- {
11
- key: 'labelMargin',
12
- ignore: true
13
- },
14
6
  {
15
7
  weight: 15,
16
8
  type: 'checkbox',
@@ -7,18 +7,6 @@ export default [
7
7
  key: 'allowMultipleMasks',
8
8
  ignore: true,
9
9
  },
10
- {
11
- key: 'inputMasks',
12
- ignore: true
13
- },
14
- {
15
- key: 'widget.type',
16
- ignore: true
17
- },
18
- {
19
- key: 'widget',
20
- ignore: true
21
- },
22
10
  {
23
11
  key: 'showWordCount',
24
12
  ignore: true
@@ -3,14 +3,6 @@ export default [
3
3
  key: 'labelPosition',
4
4
  ignore: true
5
5
  },
6
- {
7
- key: 'labelWidth',
8
- ignore: true
9
- },
10
- {
11
- key: 'labelMargin',
12
- ignore: true
13
- },
14
6
  {
15
7
  key: 'placeholder',
16
8
  ignore: true
@@ -3,14 +3,6 @@ export default [
3
3
  key: 'labelPosition',
4
4
  ignore: true
5
5
  },
6
- {
7
- key: 'labelWidth',
8
- ignore: true
9
- },
10
- {
11
- key: 'labelMargin',
12
- ignore: true
13
- },
14
6
  {
15
7
  key: 'placeholder',
16
8
  ignore: true
@@ -3,14 +3,6 @@ export default [
3
3
  key: 'labelPosition',
4
4
  ignore: true
5
5
  },
6
- {
7
- key: 'labelWidth',
8
- ignore: true
9
- },
10
- {
11
- key: 'labelMargin',
12
- ignore: true
13
- },
14
6
  {
15
7
  key: 'placeholder',
16
8
  ignore: true
@@ -11,18 +11,6 @@ export default [
11
11
  key: 'allowMultipleMasks',
12
12
  ignore: true
13
13
  },
14
- {
15
- key: 'inputMasks',
16
- ignore: true
17
- },
18
- {
19
- key: 'widget.type',
20
- ignore: true
21
- },
22
- {
23
- key: 'widget',
24
- ignore: true
25
- },
26
14
  {
27
15
  key: 'showWordCount',
28
16
  ignore: true,
@@ -10,17 +10,5 @@ export default [
10
10
  {
11
11
  key: 'allowMultipleMasks',
12
12
  ignore: true
13
- },
14
- {
15
- key: 'inputMasks',
16
- ignore: true
17
- },
18
- {
19
- key: 'widget.type',
20
- ignore: true
21
- },
22
- {
23
- key: 'widget',
24
- ignore: true
25
- },
13
+ }
26
14
  ];
@@ -17,15 +17,7 @@ export default function (...extend) {
17
17
  {
18
18
  key: 'showCharCount',
19
19
  ignore: true
20
- },
21
- {
22
- key: 'widget.type',
23
- ignore: true
24
- },
25
- {
26
- key: 'widget',
27
- ignore: true
28
- },
20
+ }
29
21
  ]
30
22
  },
31
23
  {
@@ -3,14 +3,6 @@ export default [
3
3
  key: 'labelPosition',
4
4
  ignore: true
5
5
  },
6
- {
7
- key: 'labelWidth',
8
- ignore: true
9
- },
10
- {
11
- key: 'labelMargin',
12
- ignore: true
13
- },
14
6
  {
15
7
  key: 'placeholder',
16
8
  ignore: true
@@ -9,22 +9,10 @@ export default [
9
9
  key: 'allowMultipleMasks',
10
10
  ignore: true
11
11
  },
12
- {
13
- key: 'inputMasks',
14
- ignore: true
15
- },
16
12
  {
17
13
  key: 'mask',
18
14
  ignore: true
19
15
  },
20
- {
21
- key: 'widget.type',
22
- ignore: true
23
- },
24
- {
25
- key: 'widget',
26
- ignore: true
27
- },
28
16
  {
29
17
  type: 'number',
30
18
  input: true,
@@ -7,18 +7,6 @@ export default [
7
7
  key: 'allowMultipleMasks',
8
8
  ignore: true
9
9
  },
10
- {
11
- key: 'inputMasks',
12
- ignore: true
13
- },
14
- {
15
- key: 'widget.type',
16
- ignore: true
17
- },
18
- {
19
- key: 'widget',
20
- ignore: true
21
- },
22
10
  {
23
11
  key: 'showWordCount',
24
12
  ignore: true,
@@ -3,14 +3,6 @@ export default [
3
3
  key: 'labelPosition',
4
4
  ignore: true
5
5
  },
6
- {
7
- key: 'labelWidth',
8
- ignore: true
9
- },
10
- {
11
- key: 'labelMargin',
12
- ignore: true
13
- },
14
6
  {
15
7
  key: 'placeholder',
16
8
  ignore: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.1.0-dev.6056.ba6432d",
3
+ "version": "5.1.0-dev.6058.189ce78",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {