@formio/js 5.0.0-rc.66 → 5.0.0-rc.68

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. package/dist/formio.builder.css +0 -1
  2. package/dist/formio.builder.min.css +1 -1
  3. package/dist/formio.embed.js +1 -1
  4. package/dist/formio.embed.min.js +1 -1
  5. package/dist/formio.embed.min.js.LICENSE.txt +1 -1
  6. package/dist/formio.form.css +0 -1
  7. package/dist/formio.form.js +11 -11
  8. package/dist/formio.form.min.css +1 -1
  9. package/dist/formio.form.min.js +1 -1
  10. package/dist/formio.form.min.js.LICENSE.txt +1 -1
  11. package/dist/formio.full.css +0 -1
  12. package/dist/formio.full.js +12 -12
  13. package/dist/formio.full.min.css +1 -1
  14. package/dist/formio.full.min.js +1 -1
  15. package/dist/formio.full.min.js.LICENSE.txt +1 -1
  16. package/dist/formio.js +2 -2
  17. package/dist/formio.min.js +1 -1
  18. package/dist/formio.min.js.LICENSE.txt +1 -1
  19. package/dist/formio.utils.js +3 -3
  20. package/dist/formio.utils.min.js +1 -1
  21. package/dist/formio.utils.min.js.LICENSE.txt +1 -1
  22. package/lib/cjs/Webform.js +4 -0
  23. package/lib/cjs/components/address/Address.js +4 -0
  24. package/lib/cjs/components/address/editForm/Address.edit.provider.js +1 -1
  25. package/lib/cjs/components/datagrid/DataGrid.d.ts +9 -0
  26. package/lib/cjs/components/datagrid/DataGrid.js +49 -34
  27. package/lib/cjs/components/datagrid/fixtures/comp-with-reorder.d.ts +100 -0
  28. package/lib/cjs/components/datagrid/fixtures/comp-with-reorder.js +139 -0
  29. package/lib/cjs/components/datagrid/fixtures/index.d.ts +2 -1
  30. package/lib/cjs/components/datagrid/fixtures/index.js +3 -1
  31. package/lib/cjs/components/datamap/DataMap.js +2 -2
  32. package/lib/cjs/components/day/fixtures/comp8.d.ts +41 -0
  33. package/lib/cjs/components/day/fixtures/comp8.js +40 -0
  34. package/lib/cjs/components/day/fixtures/index.d.ts +2 -1
  35. package/lib/cjs/components/day/fixtures/index.js +3 -1
  36. package/lib/cjs/components/editgrid/EditGrid.js +4 -3
  37. package/lib/cjs/components/editgrid/fixtures/comp16.d.ts +52 -0
  38. package/lib/cjs/components/editgrid/fixtures/comp16.js +71 -0
  39. package/lib/cjs/components/editgrid/fixtures/index.d.ts +2 -1
  40. package/lib/cjs/components/editgrid/fixtures/index.js +3 -1
  41. package/lib/cjs/translations/en.d.ts +3 -0
  42. package/lib/cjs/translations/en.js +4 -1
  43. package/lib/mjs/Webform.js +4 -0
  44. package/lib/mjs/components/address/Address.js +4 -0
  45. package/lib/mjs/components/address/editForm/Address.edit.provider.js +1 -1
  46. package/lib/mjs/components/datagrid/DataGrid.d.ts +9 -0
  47. package/lib/mjs/components/datagrid/DataGrid.js +48 -33
  48. package/lib/mjs/components/datagrid/fixtures/comp-with-reorder.d.ts +100 -0
  49. package/lib/mjs/components/datagrid/fixtures/comp-with-reorder.js +137 -0
  50. package/lib/mjs/components/datagrid/fixtures/index.d.ts +2 -1
  51. package/lib/mjs/components/datagrid/fixtures/index.js +2 -1
  52. package/lib/mjs/components/datamap/DataMap.js +1 -1
  53. package/lib/mjs/components/day/fixtures/comp8.d.ts +41 -0
  54. package/lib/mjs/components/day/fixtures/comp8.js +38 -0
  55. package/lib/mjs/components/day/fixtures/index.d.ts +2 -1
  56. package/lib/mjs/components/day/fixtures/index.js +2 -1
  57. package/lib/mjs/components/editgrid/EditGrid.js +4 -3
  58. package/lib/mjs/components/editgrid/fixtures/comp16.d.ts +52 -0
  59. package/lib/mjs/components/editgrid/fixtures/comp16.js +69 -0
  60. package/lib/mjs/components/editgrid/fixtures/index.d.ts +2 -1
  61. package/lib/mjs/components/editgrid/fixtures/index.js +2 -1
  62. package/lib/mjs/translations/en.d.ts +3 -0
  63. package/lib/mjs/translations/en.js +4 -1
  64. package/package.json +2 -2
@@ -83,7 +83,7 @@ export default class EditGridComponent extends NestedArrayComponent {
83
83
  {% if (!instance.options.readOnly && !instance.disabled) { %}
84
84
  <div class="col-sm-2">
85
85
  <div class="btn-group pull-right">
86
- <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass('pen-fill') }}"></i></button>
86
+ <button class="btn btn-default btn-light btn-sm editRow"><i class="{{ iconClass('edit') }}"></i></button>
87
87
  {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}
88
88
  <button class="btn btn-danger btn-sm removeRow"><i class="{{ iconClass('trash') }}"></i></button>
89
89
  {% } %}
@@ -104,7 +104,7 @@ export default class EditGridComponent extends NestedArrayComponent {
104
104
  {% if (!instance.options.readOnly && !instance.disabled) { %}
105
105
  <td class="editgrid-table-column">
106
106
  <div class="btn-group">
107
- <button class="btn btn-default btn-light btn-sm editRow" aria-label="{{ t('Edit row') }}"><i class="{{ iconClass('pen-fill') }}"></i></button>
107
+ <button class="btn btn-default btn-light btn-sm editRow" aria-label="{{ t('Edit row') }}"><i class="{{ iconClass('edit') }}"></i></button>
108
108
  {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}
109
109
  <button class="btn btn-danger btn-sm removeRow" aria-label="{{ t('Remove row') }}"><i class="{{ iconClass('trash') }}"></i></button>
110
110
  {% } %}
@@ -1079,7 +1079,8 @@ export default class EditGridComponent extends NestedArrayComponent {
1079
1079
  return false;
1080
1080
  }
1081
1081
  else if (rowsEditing && this.saveEditMode && !this.component.openWhenEmpty) {
1082
- this.setCustomValidity(this.t(this.errorMessage('unsavedRowsError')), dirty);
1082
+ this._errors = this.setCustomValidity(this.t(this.errorMessage('unsavedRowsError')), dirty);
1083
+ errors.push(...this._errors);
1083
1084
  return false;
1084
1085
  }
1085
1086
  const message = this.invalid || this.invalidMessage(data, dirty, false, row);
@@ -0,0 +1,52 @@
1
+ declare namespace _default {
2
+ let type: string;
3
+ let display: string;
4
+ let components: ({
5
+ title: string;
6
+ breadcrumbClickable: boolean;
7
+ buttonSettings: {
8
+ previous: boolean;
9
+ cancel: boolean;
10
+ next: boolean;
11
+ };
12
+ collapsible: boolean;
13
+ tableView: boolean;
14
+ key: string;
15
+ type: string;
16
+ label: string;
17
+ input: boolean;
18
+ components: {
19
+ label: string;
20
+ tableView: boolean;
21
+ rowDrafts: boolean;
22
+ key: string;
23
+ type: string;
24
+ input: boolean;
25
+ components: {
26
+ label: string;
27
+ tableView: boolean;
28
+ key: string;
29
+ type: string;
30
+ input: boolean;
31
+ alwaysEnabled: boolean;
32
+ }[];
33
+ alwaysEnabled: boolean;
34
+ }[];
35
+ alwaysEnabled: boolean;
36
+ showValidations?: undefined;
37
+ } | {
38
+ label: string;
39
+ showValidations: boolean;
40
+ alwaysEnabled: boolean;
41
+ tableView: boolean;
42
+ key: string;
43
+ type: string;
44
+ input: boolean;
45
+ title?: undefined;
46
+ breadcrumbClickable?: undefined;
47
+ buttonSettings?: undefined;
48
+ collapsible?: undefined;
49
+ components?: undefined;
50
+ })[];
51
+ }
52
+ export default _default;
@@ -0,0 +1,69 @@
1
+ export default {
2
+ type: 'form',
3
+ display: 'wizard',
4
+ components: [
5
+ {
6
+ title: 'Page 1',
7
+ breadcrumbClickable: true,
8
+ buttonSettings: {
9
+ previous: true,
10
+ cancel: true,
11
+ next: true
12
+ },
13
+ collapsible: false,
14
+ tableView: false,
15
+ key: 'page3',
16
+ type: 'panel',
17
+ label: 'Page 2',
18
+ input: false,
19
+ components: [
20
+ {
21
+ label: 'Edit Grid',
22
+ tableView: true,
23
+ rowDrafts: false,
24
+ key: 'editGrid',
25
+ type: 'editgrid',
26
+ input: true,
27
+ components: [
28
+ {
29
+ label: 'Text Field',
30
+ tableView: true,
31
+ key: 'textField',
32
+ type: 'textfield',
33
+ input: true,
34
+ alwaysEnabled: false
35
+ }
36
+ ],
37
+ alwaysEnabled: false
38
+ }
39
+ ],
40
+ alwaysEnabled: false
41
+ },
42
+ {
43
+ title: 'Page 2',
44
+ breadcrumbClickable: true,
45
+ buttonSettings: {
46
+ previous: true,
47
+ cancel: true,
48
+ next: true
49
+ },
50
+ collapsible: false,
51
+ tableView: false,
52
+ key: 'page2',
53
+ type: 'panel',
54
+ label: 'Page 1',
55
+ input: false,
56
+ alwaysEnabled: false,
57
+ components: []
58
+ },
59
+ {
60
+ label: 'Submit',
61
+ showValidations: false,
62
+ alwaysEnabled: false,
63
+ tableView: false,
64
+ key: 'submit',
65
+ type: 'button',
66
+ input: true
67
+ }
68
+ ]
69
+ };
@@ -7,6 +7,7 @@ import comp12 from './comp12';
7
7
  import comp13 from './comp13';
8
8
  import comp14 from './comp14';
9
9
  import comp15 from './comp15';
10
+ import comp16 from './comp16';
10
11
  import comp4 from './comp4';
11
12
  import comp5 from './comp5';
12
13
  import comp6 from './comp6';
@@ -16,4 +17,4 @@ import comp9 from './comp9';
16
17
  import compOpenWhenEmpty from './comp-openWhenEmpty';
17
18
  import withOpenWhenEmptyAndConditions from './comp-with-conditions-and-openWhenEmpty';
18
19
  import compWithCustomDefaultValue from './comp-with-custom-default-value';
19
- export { comp1, comp2, comp3, comp10, comp11, comp12, comp13, comp14, comp15, comp4, comp5, comp6, comp7, comp8, comp9, compOpenWhenEmpty, withOpenWhenEmptyAndConditions, compWithCustomDefaultValue };
20
+ export { comp1, comp2, comp3, comp10, comp11, comp12, comp13, comp14, comp15, comp16, comp4, comp5, comp6, comp7, comp8, comp9, compOpenWhenEmpty, withOpenWhenEmptyAndConditions, compWithCustomDefaultValue };
@@ -13,7 +13,8 @@ import comp12 from './comp12';
13
13
  import comp13 from './comp13';
14
14
  import comp14 from './comp14';
15
15
  import comp15 from './comp15';
16
+ import comp16 from './comp16';
16
17
  import withOpenWhenEmptyAndConditions from './comp-with-conditions-and-openWhenEmpty';
17
18
  import compOpenWhenEmpty from './comp-openWhenEmpty';
18
19
  import compWithCustomDefaultValue from './comp-with-custom-default-value';
19
- export { comp1, comp2, comp3, comp10, comp11, comp12, comp13, comp14, comp15, comp4, comp5, comp6, comp7, comp8, comp9, compOpenWhenEmpty, withOpenWhenEmptyAndConditions, compWithCustomDefaultValue };
20
+ export { comp1, comp2, comp3, comp10, comp11, comp12, comp13, comp14, comp15, comp16, comp4, comp5, comp6, comp7, comp8, comp9, compOpenWhenEmpty, withOpenWhenEmptyAndConditions, compWithCustomDefaultValue };
@@ -74,5 +74,8 @@ declare namespace _default {
74
74
  let apiKey: string;
75
75
  let typeRemaining: string;
76
76
  let typeCount: string;
77
+ let requiredDayField: string;
78
+ let requiredMonthField: string;
79
+ let requiredYearField: string;
77
80
  }
78
81
  export default _default;
@@ -73,5 +73,8 @@ export default {
73
73
  reCaptchaTokenNotSpecifiedError: 'ReCAPTCHA: Token is not specified in submission',
74
74
  apiKey: 'API Key is not unique: {{key}}',
75
75
  typeRemaining: '{{ remaining }} {{ type }} remaining.',
76
- typeCount: '{{ count }} {{ type }}'
76
+ typeCount: '{{ count }} {{ type }}',
77
+ requiredDayField: '{{ field }} is required',
78
+ requiredMonthField: '{{ field }} is required',
79
+ requiredYearField: '{{ field }} is required'
77
80
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-rc.66",
3
+ "version": "5.0.0-rc.68",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {
@@ -81,7 +81,7 @@
81
81
  "dependencies": {
82
82
  "@formio/bootstrap": "3.0.0-rc.36",
83
83
  "@formio/choices.js": "^10.2.1",
84
- "@formio/core": "2.2.0-rc.4",
84
+ "@formio/core": "2.2.0-rc.6",
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",