@formio/js 5.0.0-rc.91 → 5.0.0-rc.92

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 (52) hide show
  1. package/dist/formio.embed.js +1 -1
  2. package/dist/formio.embed.min.js +1 -1
  3. package/dist/formio.embed.min.js.LICENSE.txt +1 -1
  4. package/dist/formio.form.js +20 -20
  5. package/dist/formio.form.min.js +1 -1
  6. package/dist/formio.form.min.js.LICENSE.txt +1 -1
  7. package/dist/formio.full.js +21 -21
  8. package/dist/formio.full.min.js +1 -1
  9. package/dist/formio.full.min.js.LICENSE.txt +1 -1
  10. package/dist/formio.js +3 -3
  11. package/dist/formio.min.js +1 -1
  12. package/dist/formio.min.js.LICENSE.txt +1 -1
  13. package/dist/formio.utils.js +6 -6
  14. package/dist/formio.utils.min.js +1 -1
  15. package/dist/formio.utils.min.js.LICENSE.txt +1 -1
  16. package/lib/cjs/Webform.js +7 -1
  17. package/lib/cjs/components/_classes/component/Component.js +2 -2
  18. package/lib/cjs/components/_classes/component/editForm/Component.edit.conditional.js +1 -1
  19. package/lib/cjs/components/_classes/component/editForm/Component.edit.data.js +1 -1
  20. package/lib/cjs/components/_classes/component/editForm/utils.js +1 -1
  21. package/lib/cjs/components/day/Day.js +3 -0
  22. package/lib/cjs/components/editgrid/EditGrid.js +8 -2
  23. package/lib/cjs/components/editgrid/fixtures/comp19.d.ts +59 -0
  24. package/lib/cjs/components/editgrid/fixtures/comp19.js +73 -0
  25. package/lib/cjs/components/editgrid/fixtures/index.d.ts +2 -1
  26. package/lib/cjs/components/editgrid/fixtures/index.js +3 -1
  27. package/lib/cjs/components/form/editForm/Form.edit.data.js +1 -1
  28. package/lib/cjs/components/number/fixtures/comp11.d.ts +17 -0
  29. package/lib/cjs/components/number/fixtures/comp11.js +20 -0
  30. package/lib/cjs/components/number/fixtures/index.d.ts +2 -1
  31. package/lib/cjs/components/number/fixtures/index.js +3 -1
  32. package/lib/cjs/components/time/Time.js +0 -6
  33. package/lib/cjs/components/time/fixtures/timeForm2.js +9 -0
  34. package/lib/mjs/Webform.js +6 -1
  35. package/lib/mjs/components/_classes/component/Component.js +2 -2
  36. package/lib/mjs/components/_classes/component/editForm/Component.edit.conditional.js +1 -1
  37. package/lib/mjs/components/_classes/component/editForm/Component.edit.data.js +1 -1
  38. package/lib/mjs/components/_classes/component/editForm/utils.js +1 -1
  39. package/lib/mjs/components/day/Day.js +3 -0
  40. package/lib/mjs/components/editgrid/EditGrid.js +8 -2
  41. package/lib/mjs/components/editgrid/fixtures/comp19.d.ts +59 -0
  42. package/lib/mjs/components/editgrid/fixtures/comp19.js +71 -0
  43. package/lib/mjs/components/editgrid/fixtures/index.d.ts +2 -1
  44. package/lib/mjs/components/editgrid/fixtures/index.js +2 -1
  45. package/lib/mjs/components/form/editForm/Form.edit.data.js +1 -1
  46. package/lib/mjs/components/number/fixtures/comp11.d.ts +17 -0
  47. package/lib/mjs/components/number/fixtures/comp11.js +18 -0
  48. package/lib/mjs/components/number/fixtures/index.d.ts +2 -1
  49. package/lib/mjs/components/number/fixtures/index.js +2 -1
  50. package/lib/mjs/components/time/Time.js +0 -6
  51. package/lib/mjs/components/time/fixtures/timeForm2.js +9 -0
  52. package/package.json +3 -3
@@ -0,0 +1,71 @@
1
+ export default {
2
+ _id: '6704f3d329cf52a3ddd4e244',
3
+ title: 'uiu',
4
+ name: 'uiu',
5
+ path: 'uiu',
6
+ type: 'resource',
7
+ display: 'form',
8
+ components: [
9
+ {
10
+ label: 'Edit Grid',
11
+ tableView: false,
12
+ validateWhenHidden: false,
13
+ rowDrafts: false,
14
+ key: 'editGrid',
15
+ type: 'editgrid',
16
+ displayAsTable: false,
17
+ input: true,
18
+ components: [
19
+ {
20
+ label: 'Columns',
21
+ columns: [
22
+ {
23
+ components: [
24
+ {
25
+ label: 'Text Field',
26
+ applyMaskOn: 'change',
27
+ tableView: true,
28
+ validate: {
29
+ required: true,
30
+ },
31
+ validateWhenHidden: false,
32
+ key: 'textField',
33
+ type: 'textfield',
34
+ input: true,
35
+ },
36
+ ],
37
+ width: 6,
38
+ offset: 0,
39
+ push: 0,
40
+ pull: 0,
41
+ size: 'md',
42
+ currentWidth: 6,
43
+ },
44
+ {
45
+ components: [],
46
+ width: 6,
47
+ offset: 0,
48
+ push: 0,
49
+ pull: 0,
50
+ size: 'md',
51
+ currentWidth: 6,
52
+ },
53
+ ],
54
+ key: 'columns',
55
+ type: 'columns',
56
+ input: false,
57
+ tableView: false,
58
+ },
59
+ ],
60
+ },
61
+ {
62
+ type: 'button',
63
+ label: 'Submit',
64
+ key: 'submit',
65
+ disableOnInvalid: true,
66
+ input: true,
67
+ tableView: false,
68
+ },
69
+ ],
70
+ project: '66f66c655879bf08113cf465',
71
+ };
@@ -15,7 +15,8 @@ import comp14 from './comp14';
15
15
  import comp15 from './comp15';
16
16
  import comp16 from './comp16';
17
17
  import comp18 from './comp18';
18
+ import comp19 from './comp19';
18
19
  import compOpenWhenEmpty from './comp-openWhenEmpty';
19
20
  import withOpenWhenEmptyAndConditions from './comp-with-conditions-and-openWhenEmpty';
20
21
  import compWithCustomDefaultValue from './comp-with-custom-default-value';
21
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11, comp12, comp13, comp14, comp15, comp16, comp17, comp18, compOpenWhenEmpty, withOpenWhenEmptyAndConditions, compWithCustomDefaultValue, compTestEvents };
22
+ export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11, comp12, comp13, comp14, comp15, comp16, comp17, comp18, comp19, compOpenWhenEmpty, withOpenWhenEmptyAndConditions, compWithCustomDefaultValue, compTestEvents };
@@ -16,8 +16,9 @@ import comp15 from './comp15';
16
16
  import comp16 from './comp16';
17
17
  import comp17 from './comp17';
18
18
  import comp18 from './comp18';
19
+ import comp19 from './comp19';
19
20
  import withOpenWhenEmptyAndConditions from './comp-with-conditions-and-openWhenEmpty';
20
21
  import compOpenWhenEmpty from './comp-openWhenEmpty';
21
22
  import compWithCustomDefaultValue from './comp-with-custom-default-value';
22
23
  import compTestEvents from './comp-test-events';
23
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11, comp12, comp13, comp14, comp15, comp16, comp17, comp18, compOpenWhenEmpty, withOpenWhenEmptyAndConditions, compWithCustomDefaultValue, compTestEvents };
24
+ export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11, comp12, comp13, comp14, comp15, comp16, comp17, comp18, comp19, compOpenWhenEmpty, withOpenWhenEmptyAndConditions, compWithCustomDefaultValue, compTestEvents };
@@ -2,7 +2,7 @@ import EditFormUtils from '../../_classes/component/editForm/utils';
2
2
  /* eslint-disable max-len */
3
3
  export default [
4
4
  EditFormUtils.javaScriptValue('Custom Default Value', 'customDefaultValue', 'customDefaultValue', 120, '<p><h4>Example:</h4><pre>value = data.firstName + " " + data.lastName;</pre></p>', '<p><h4>Example:</h4><pre>{"cat": [{"var": "data.firstName"}, " ", {"var": "data.lastName"}]}</pre>'),
5
- EditFormUtils.javaScriptValue('Calculated Value', 'calculateValue', 'calculateValue', 130, '<p><h4>Example:</h4><pre>value = data.a + data.b + data.c;</pre></p>', '<p><h4>Example:</h4><pre>{"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}</pre><p><a href="http://formio.github.io/formio.js/app/examples/calculated.html" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>'),
5
+ EditFormUtils.javaScriptValue('Calculated Value', 'calculateValue', 'calculateValue', 130, '<p><h4>Example:</h4><pre>value = data.a + data.b + data.c;</pre></p>', '<p><h4>Example:</h4><pre>{"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}</pre><p><a href="https://help.form.io/userguide/form-building/logic-and-conditions#calculated-values" target="_blank" rel="noopener noreferrer">Click here for an example</a></p>'),
6
6
  {
7
7
  weight: 140,
8
8
  type: 'checkbox',
@@ -0,0 +1,17 @@
1
+ declare namespace _default {
2
+ let components: {
3
+ label: string;
4
+ mask: boolean;
5
+ tableView: boolean;
6
+ modalEdit: boolean;
7
+ multiple: boolean;
8
+ delimiter: string;
9
+ requireDecimal: boolean;
10
+ inputFormat: string;
11
+ truncateMultipleSpaces: boolean;
12
+ key: string;
13
+ type: string;
14
+ input: boolean;
15
+ }[];
16
+ }
17
+ export default _default;
@@ -0,0 +1,18 @@
1
+ export default {
2
+ components: [
3
+ {
4
+ label: 'Number',
5
+ mask: true,
6
+ tableView: false,
7
+ modalEdit: true,
8
+ multiple: true,
9
+ delimiter: ',',
10
+ requireDecimal: false,
11
+ inputFormat: 'plain',
12
+ truncateMultipleSpaces: false,
13
+ key: 'number',
14
+ type: 'number',
15
+ input: true
16
+ }
17
+ ]
18
+ };
@@ -8,4 +8,5 @@ import comp7 from './comp7';
8
8
  import comp8 from './comp8';
9
9
  import comp9 from './comp9';
10
10
  import comp10 from './comp10';
11
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, comp10 };
11
+ import comp11 from './comp11';
12
+ export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11 };
@@ -8,4 +8,5 @@ import comp7 from './comp7';
8
8
  import comp8 from './comp8';
9
9
  import comp9 from './comp9';
10
10
  import comp10 from './comp10';
11
- export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, comp10 };
11
+ import comp11 from './comp11';
12
+ export { comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, comp9, comp10, comp11 };
@@ -51,12 +51,6 @@ 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
- }
60
54
  get inputInfo() {
61
55
  const info = super.inputInfo;
62
56
  info.attr.type = this.component.inputType;
@@ -12,6 +12,15 @@ export default {
12
12
  'input': true,
13
13
  'inputMask': '99:99'
14
14
  },
15
+ {
16
+ 'label': 'Multiple Time',
17
+ 'inputType': 'text',
18
+ 'tableView': true,
19
+ 'key': 'multipleTime',
20
+ 'type': 'time',
21
+ 'input': true,
22
+ 'inputMask': '99:99'
23
+ },
15
24
  {
16
25
  'label': 'Submit',
17
26
  'showValidations': false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-rc.91",
3
+ "version": "5.0.0-rc.92",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {
@@ -79,9 +79,9 @@
79
79
  },
80
80
  "homepage": "https://github.com/formio/formio.js#readme",
81
81
  "dependencies": {
82
- "@formio/bootstrap": "3.0.0-rc.38",
82
+ "@formio/bootstrap": "3.0.0-rc.39",
83
83
  "@formio/choices.js": "^10.2.1",
84
- "@formio/core": "2.3.0-rc.10",
84
+ "@formio/core": "2.3.0-rc.13",
85
85
  "@formio/text-mask-addons": "^3.8.0-formio.2",
86
86
  "@formio/vanilla-text-mask": "^5.1.1-formio.1",
87
87
  "abortcontroller-polyfill": "^1.7.5",