@formio/js 5.1.0-dev.6040.debc859 → 5.1.0-dev.6042.6e62a7a

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 (150) hide show
  1. package/Changelog.md +140 -6
  2. package/dist/formio.form.js +591 -580
  3. package/dist/formio.form.min.js +1 -1
  4. package/dist/formio.full.js +613 -602
  5. package/dist/formio.full.min.js +1 -1
  6. package/dist/formio.js +47 -14
  7. package/dist/formio.min.js +1 -1
  8. package/dist/formio.utils.js +48 -15
  9. package/dist/formio.utils.min.js +1 -1
  10. package/lib/cjs/Element.d.ts +2 -1
  11. package/lib/cjs/Element.js +6 -4
  12. package/lib/cjs/Webform.d.ts +2 -2
  13. package/lib/cjs/Webform.js +9 -9
  14. package/lib/cjs/WebformBuilder.js +5 -1
  15. package/lib/cjs/Wizard.d.ts +1 -0
  16. package/lib/cjs/Wizard.js +23 -3
  17. package/lib/cjs/components/_classes/component/Component.d.ts +50 -15
  18. package/lib/cjs/components/_classes/component/Component.js +153 -69
  19. package/lib/cjs/components/_classes/component/editForm/Component.edit.data.js +19 -0
  20. package/lib/cjs/components/_classes/component/editForm/utils.js +1 -1
  21. package/lib/cjs/components/_classes/list/ListComponent.js +2 -2
  22. package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +0 -1
  23. package/lib/cjs/components/_classes/nested/NestedComponent.form.js +13 -0
  24. package/lib/cjs/components/_classes/nested/NestedComponent.js +10 -18
  25. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.d.ts +0 -2
  26. package/lib/cjs/components/_classes/nesteddata/NestedDataComponent.js +0 -11
  27. package/lib/cjs/components/address/Address.d.ts +9 -0
  28. package/lib/cjs/components/address/Address.js +31 -8
  29. package/lib/cjs/components/address/editForm/Address.edit.display.d.ts +4 -0
  30. package/lib/cjs/components/address/editForm/Address.edit.display.js +1 -0
  31. package/lib/cjs/components/address/editForm/Address.edit.provider.js +8 -8
  32. package/lib/cjs/components/content/editForm/Content.edit.display.js +8 -0
  33. package/lib/cjs/components/currency/editForm/Currency.edit.display.js +12 -0
  34. package/lib/cjs/components/datagrid/DataGrid.js +0 -3
  35. package/lib/cjs/components/datamap/DataMap.js +2 -6
  36. package/lib/cjs/components/datetime/editForm/DateTime.edit.validation.d.ts +66 -15
  37. package/lib/cjs/components/datetime/editForm/DateTime.edit.validation.js +68 -47
  38. package/lib/cjs/components/day/editForm/Day.edit.display.js +8 -0
  39. package/lib/cjs/components/editgrid/EditGrid.js +3 -13
  40. package/lib/cjs/components/email/editForm/Email.edit.display.js +12 -0
  41. package/lib/cjs/components/fieldset/editForm/Fieldset.edit.display.js +8 -0
  42. package/lib/cjs/components/file/File.js +7 -2
  43. package/lib/cjs/components/file/editForm/File.edit.file.d.ts +13 -0
  44. package/lib/cjs/components/file/editForm/File.edit.file.js +1 -0
  45. package/lib/cjs/components/form/Form.d.ts +0 -1
  46. package/lib/cjs/components/form/Form.js +18 -22
  47. package/lib/cjs/components/hidden/editForm/Hidden.edit.display.js +8 -0
  48. package/lib/cjs/components/html/HTML.js +1 -2
  49. package/lib/cjs/components/html/editForm/HTML.edit.display.js +8 -0
  50. package/lib/cjs/components/number/editForm/Number.edit.display.js +12 -0
  51. package/lib/cjs/components/password/editForm/Password.edit.display.js +13 -1
  52. package/lib/cjs/components/phonenumber/PhoneNumber.form.js +9 -1
  53. package/lib/cjs/components/radio/Radio.js +1 -1
  54. package/lib/cjs/components/select/Select.js +1 -1
  55. package/lib/cjs/components/select/editForm/Select.edit.data.d.ts +68 -110
  56. package/lib/cjs/components/select/editForm/Select.edit.data.js +2 -37
  57. package/lib/cjs/components/selectboxes/SelectBoxes.js +3 -0
  58. package/lib/cjs/components/survey/Survey.js +1 -1
  59. package/lib/cjs/components/tabs/Tabs.js +1 -0
  60. package/lib/cjs/components/tabs/editForm/Tabs.edit.display.js +8 -0
  61. package/lib/cjs/components/textarea/TextArea.js +9 -1
  62. package/lib/cjs/components/textarea/editForm/TextArea.edit.display.js +12 -0
  63. package/lib/cjs/components/textfield/TextField.js +2 -2
  64. package/lib/cjs/components/unknown/Unknown.form.d.ts +2 -1
  65. package/lib/cjs/components/unknown/Unknown.form.js +13 -9
  66. package/lib/cjs/components/url/editForm/Url.edit.display.js +12 -0
  67. package/lib/cjs/components/well/editForm/Well.edit.display.js +8 -0
  68. package/lib/cjs/formio.form.js +2 -2
  69. package/lib/cjs/providers/storage/uploadAdapter.js +5 -3
  70. package/lib/cjs/translations/en.d.ts +1 -234
  71. package/lib/cjs/translations/en.js +4 -2
  72. package/lib/cjs/utils/formUtils.d.ts +2 -2
  73. package/lib/cjs/utils/utils.d.ts +9 -8
  74. package/lib/cjs/utils/utils.js +18 -23
  75. package/lib/cjs/widgets/CalendarWidget.js +6 -1
  76. package/lib/mjs/Element.d.ts +2 -1
  77. package/lib/mjs/Element.js +6 -4
  78. package/lib/mjs/Webform.d.ts +2 -2
  79. package/lib/mjs/Webform.js +9 -9
  80. package/lib/mjs/WebformBuilder.js +5 -1
  81. package/lib/mjs/Wizard.d.ts +1 -0
  82. package/lib/mjs/Wizard.js +22 -2
  83. package/lib/mjs/components/_classes/component/Component.d.ts +50 -15
  84. package/lib/mjs/components/_classes/component/Component.js +154 -70
  85. package/lib/mjs/components/_classes/component/editForm/Component.edit.data.js +19 -0
  86. package/lib/mjs/components/_classes/component/editForm/utils.js +1 -1
  87. package/lib/mjs/components/_classes/list/ListComponent.js +2 -2
  88. package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +0 -1
  89. package/lib/mjs/components/_classes/nested/NestedComponent.form.js +13 -0
  90. package/lib/mjs/components/_classes/nested/NestedComponent.js +10 -18
  91. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.d.ts +0 -2
  92. package/lib/mjs/components/_classes/nesteddata/NestedDataComponent.js +0 -11
  93. package/lib/mjs/components/address/Address.d.ts +9 -0
  94. package/lib/mjs/components/address/Address.js +31 -8
  95. package/lib/mjs/components/address/editForm/Address.edit.display.d.ts +4 -0
  96. package/lib/mjs/components/address/editForm/Address.edit.display.js +1 -0
  97. package/lib/mjs/components/address/editForm/Address.edit.provider.js +8 -8
  98. package/lib/mjs/components/content/editForm/Content.edit.display.js +8 -0
  99. package/lib/mjs/components/currency/editForm/Currency.edit.display.js +12 -0
  100. package/lib/mjs/components/datagrid/DataGrid.js +0 -3
  101. package/lib/mjs/components/datamap/DataMap.js +2 -6
  102. package/lib/mjs/components/datetime/editForm/DateTime.edit.validation.d.ts +66 -15
  103. package/lib/mjs/components/datetime/editForm/DateTime.edit.validation.js +68 -47
  104. package/lib/mjs/components/day/editForm/Day.edit.display.js +8 -0
  105. package/lib/mjs/components/editgrid/EditGrid.js +3 -12
  106. package/lib/mjs/components/email/editForm/Email.edit.display.js +12 -0
  107. package/lib/mjs/components/fieldset/editForm/Fieldset.edit.display.js +8 -0
  108. package/lib/mjs/components/file/File.js +7 -2
  109. package/lib/mjs/components/file/editForm/File.edit.file.d.ts +13 -0
  110. package/lib/mjs/components/file/editForm/File.edit.file.js +1 -0
  111. package/lib/mjs/components/form/Form.d.ts +0 -1
  112. package/lib/mjs/components/form/Form.js +18 -22
  113. package/lib/mjs/components/hidden/editForm/Hidden.edit.display.js +8 -0
  114. package/lib/mjs/components/html/HTML.js +1 -2
  115. package/lib/mjs/components/html/editForm/HTML.edit.display.js +8 -0
  116. package/lib/mjs/components/number/editForm/Number.edit.display.js +12 -0
  117. package/lib/mjs/components/password/editForm/Password.edit.display.js +13 -1
  118. package/lib/mjs/components/phonenumber/PhoneNumber.form.js +9 -1
  119. package/lib/mjs/components/radio/Radio.js +1 -1
  120. package/lib/mjs/components/select/Select.js +1 -1
  121. package/lib/mjs/components/select/editForm/Select.edit.data.d.ts +68 -110
  122. package/lib/mjs/components/select/editForm/Select.edit.data.js +2 -37
  123. package/lib/mjs/components/selectboxes/SelectBoxes.js +3 -0
  124. package/lib/mjs/components/survey/Survey.js +1 -1
  125. package/lib/mjs/components/tabs/Tabs.js +1 -0
  126. package/lib/mjs/components/tabs/editForm/Tabs.edit.display.js +8 -0
  127. package/lib/mjs/components/textarea/TextArea.js +9 -1
  128. package/lib/mjs/components/textarea/editForm/TextArea.edit.display.js +12 -0
  129. package/lib/mjs/components/textfield/TextField.js +2 -2
  130. package/lib/mjs/components/unknown/Unknown.form.d.ts +2 -1
  131. package/lib/mjs/components/unknown/Unknown.form.js +13 -9
  132. package/lib/mjs/components/url/editForm/Url.edit.display.js +12 -0
  133. package/lib/mjs/components/well/editForm/Well.edit.display.js +8 -0
  134. package/lib/mjs/formio.form.js +1 -1
  135. package/lib/mjs/providers/storage/uploadAdapter.js +5 -3
  136. package/lib/mjs/translations/en.d.ts +1 -234
  137. package/lib/mjs/translations/en.js +5 -47
  138. package/lib/mjs/utils/formUtils.d.ts +2 -2
  139. package/lib/mjs/utils/utils.d.ts +9 -8
  140. package/lib/mjs/utils/utils.js +16 -21
  141. package/lib/mjs/widgets/CalendarWidget.js +7 -2
  142. package/package.json +2 -2
  143. package/lib/cjs/i18n.d.ts +0 -13
  144. package/lib/cjs/i18n.js +0 -19
  145. package/lib/cjs/utils/i18n.d.ts +0 -19
  146. package/lib/cjs/utils/i18n.js +0 -120
  147. package/lib/mjs/i18n.d.ts +0 -13
  148. package/lib/mjs/i18n.js +0 -14
  149. package/lib/mjs/utils/i18n.d.ts +0 -19
  150. package/lib/mjs/utils/i18n.js +0 -112
@@ -56,42 +56,6 @@ export default [
56
56
  ],
57
57
  },
58
58
  },
59
- {
60
- type: 'textfield',
61
- weight: 10,
62
- input: true,
63
- key: 'indexeddb.database',
64
- label: 'Database name',
65
- tooltip: 'The name of the indexeddb database.',
66
- conditional: {
67
- json: { '===': [{ var: 'data.dataSrc' }, 'indexeddb'] },
68
- },
69
- },
70
- {
71
- type: 'textfield',
72
- input: true,
73
- key: 'indexeddb.table',
74
- label: 'Table name',
75
- weight: 16,
76
- tooltip: 'The name of table in the indexeddb database.',
77
- conditional: {
78
- json: { '===': [{ var: 'data.dataSrc' }, 'indexeddb'] },
79
- }
80
- },
81
- {
82
- type: 'textarea',
83
- as: 'json',
84
- editor: 'ace',
85
- weight: 18,
86
- input: true,
87
- key: 'indexeddb.filter',
88
- label: 'Row Filter',
89
- tooltip: 'Filter table items that match the object.',
90
- defaultValue: {},
91
- conditional: {
92
- json: { '===': [{ var: 'data.dataSrc' }, 'indexeddb'] },
93
- },
94
- },
95
59
  {
96
60
  type: 'textarea',
97
61
  as: 'json',
@@ -113,6 +77,7 @@ export default [
113
77
  key: 'lazyLoad',
114
78
  tooltip: 'When set, this will not fire off the request to the URL until this control is within focus. This can improve performance if you have many Select dropdowns on your form where the API\'s will only fire when the control is activated.',
115
79
  weight: 11,
80
+ defaultValue: true,
116
81
  conditional: {
117
82
  json: {
118
83
  and: [
@@ -202,7 +167,7 @@ export default [
202
167
  label: 'Value Property',
203
168
  key: 'valueProperty',
204
169
  skipMerge: true,
205
- clearOnHide: true,
170
+ clearOnHide: false,
206
171
  tooltip: 'The field to use as the value.',
207
172
  weight: 11,
208
173
  refreshOn: 'data.resource',
@@ -66,6 +66,9 @@ export default class SelectBoxesComponent extends RadioComponent {
66
66
  info.attr.class = 'form-check-input';
67
67
  return info;
68
68
  }
69
+ get hasDefaultValue() {
70
+ return true;
71
+ }
69
72
  get emptyValue() {
70
73
  return this.component.values.reduce((prev, value) => {
71
74
  if (value.value) {
@@ -118,7 +118,7 @@ export default class SurveyComponent extends Field {
118
118
  return this.component.questions.reduce((result, question) => result && Boolean(value[question.value]), true);
119
119
  }
120
120
  getInputName(question) {
121
- return `${this.options.name}[${question.value}]`;
121
+ return `${this.options.name}[${question.value}][${this.id}]`;
122
122
  }
123
123
  getValueAsString(value, options) {
124
124
  if (options?.email) {
@@ -138,6 +138,7 @@ export default class TabsComponent extends NestedComponent {
138
138
  this.addClass(this.refs[this.tabLinkKey][index], 'active');
139
139
  this.addClass(this.refs[this.tabLinkKey][index], 'formio-tab-link-active');
140
140
  }
141
+ this.setValue(this.data);
141
142
  this.triggerChange();
142
143
  }
143
144
  beforeFocus(component) {
@@ -3,6 +3,14 @@ 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
+ },
6
14
  {
7
15
  key: 'placeholder',
8
16
  ignore: true
@@ -57,7 +57,15 @@ export default class TextAreaComponent extends TextFieldComponent {
57
57
  info.content = value;
58
58
  if ((this.options.readOnly || this.disabled) && !this.isHtmlRenderMode()) {
59
59
  const elementStyle = this.info.attr.style || '';
60
- const children = `<div ${this._referenceAttributeName}="input" class="formio-editor-read-only-content" ${elementStyle ? `style='${elementStyle}'` : ''}></div>`;
60
+ const children = `
61
+ <div ${this._referenceAttributeName}="input"
62
+ class="formio-editor-read-only-content"
63
+ ${elementStyle ? `style='${elementStyle}'` : ''}
64
+ role="textbox"
65
+ aria-multiline="true"
66
+ aria-readonly="true"
67
+ >
68
+ </div>`;
61
69
  return this.renderTemplate('well', {
62
70
  children,
63
71
  nestedKey: this.key,
@@ -9,10 +9,22 @@ export default [
9
9
  key: 'allowMultipleMasks',
10
10
  ignore: true
11
11
  },
12
+ {
13
+ key: 'inputMasks',
14
+ ignore: true
15
+ },
12
16
  {
13
17
  key: 'mask',
14
18
  ignore: true
15
19
  },
20
+ {
21
+ key: 'widget.type',
22
+ ignore: true
23
+ },
24
+ {
25
+ key: 'widget',
26
+ ignore: true
27
+ },
16
28
  {
17
29
  type: 'number',
18
30
  input: true,
@@ -86,8 +86,8 @@ export default class TextFieldComponent extends Input {
86
86
  locale: this.component.widget.locale || this.options.language,
87
87
  saveAs: 'text'
88
88
  };
89
- // update originalComponent to include widget settings after component initialization
90
- // originalComponent is used to restore the component (and widget) after evaluating field logic
89
+ // update originalComponent to include widget settings after component initialization
90
+ // originalComponent is used to restore the component (and widget) after evaluating field logic
91
91
  this.originalComponent = FormioUtils.fastCloneDeep(this.component);
92
92
  }
93
93
  }
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * Unknown Component schema.
3
+ * @param {...any} extend
3
4
  * @returns {object} - The Unknown Component edit form.
4
5
  */
5
- export default function _default(): object;
6
+ export default function _default(...extend: any[]): object;
@@ -1,22 +1,26 @@
1
+ import { unionWith } from 'lodash';
1
2
  import UnknownEditDisplay from './editForm/Unknown.edit.display';
3
+ import EditFormUtils from '../../components/_classes/component/editForm/utils';
2
4
  /**
3
5
  * Unknown Component schema.
6
+ * @param {...any} extend
4
7
  * @returns {object} - The Unknown Component edit form.
5
8
  */
6
- export default function () {
9
+ export default function (...extend) {
10
+ const components = [
11
+ {
12
+ label: 'Custom',
13
+ key: 'display',
14
+ weight: 0,
15
+ components: UnknownEditDisplay
16
+ }
17
+ ].concat(...extend);
7
18
  return {
8
19
  components: [
9
20
  {
10
21
  type: 'tabs',
11
22
  key: 'tabs',
12
- components: [
13
- {
14
- label: 'Custom',
15
- key: 'display',
16
- weight: 0,
17
- components: UnknownEditDisplay
18
- }
19
- ]
23
+ components: unionWith(components, EditFormUtils.unifyComponents)
20
24
  }
21
25
  ]
22
26
  };
@@ -7,6 +7,18 @@ 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
+ },
10
22
  {
11
23
  key: 'showWordCount',
12
24
  ignore: true,
@@ -3,6 +3,14 @@ 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
+ },
6
14
  {
7
15
  key: 'placeholder',
8
16
  ignore: true
@@ -12,7 +12,7 @@ import { Evaluator } from './utils/Evaluator';
12
12
  import Licenses from './licenses';
13
13
  import EventEmitter from './EventEmitter';
14
14
  import Webform from './Webform';
15
- import { I18n } from './utils/i18n';
15
+ import { I18n } from '@formio/core';
16
16
  Formio.loadModules = (path = `${Formio.getApiUrl()}/externalModules.js`, name = 'externalModules') => {
17
17
  Formio.requireLibrary(name, name, path, true)
18
18
  .then((modules) => {
@@ -46,9 +46,11 @@ class FormioUploadAdapter {
46
46
  }
47
47
  }
48
48
  }
49
- const getFormioUploadAdapterPlugin = (fileService, component) => (editor) => {
50
- editor.plugins.get('FileRepository').createUploadAdapter = (loader) => {
51
- return new FormioUploadAdapter(loader, fileService, component);
49
+ const getFormioUploadAdapterPlugin = (fileService, component) => {
50
+ return function (editor) {
51
+ editor.plugins.get('FileRepository').createUploadAdapter = (loader) => {
52
+ return new FormioUploadAdapter(loader, fileService, component);
53
+ };
52
54
  };
53
55
  };
54
56
  export { getFormioUploadAdapterPlugin };
@@ -1,235 +1,2 @@
1
- declare const _default: {
2
- unsavedRowsError: string;
3
- invalidRowsError: string;
4
- invalidRowError: string;
5
- invalidOption: string;
6
- invalidDay: string;
7
- alertMessageWithLabel: string;
8
- alertMessage: string;
9
- complete: string;
10
- error: string;
11
- errorListHotkey: string;
12
- errorsListNavigationMessage: string;
13
- submitError: string;
14
- required: string;
15
- unique: string;
16
- array: string;
17
- array_nonempty: string;
18
- nonarray: string;
19
- select: string;
20
- pattern: string;
21
- minLength: string;
22
- maxLength: string;
23
- minWords: string;
24
- maxWords: string;
25
- min: string;
26
- max: string;
27
- maxDate: string;
28
- minDate: string;
29
- maxYear: string;
30
- minYear: string;
31
- minSelectedCount: string;
32
- maxSelectedCount: string;
33
- invalid_email: string;
34
- invalid_url: string;
35
- invalid_regex: string;
36
- invalid_date: string;
37
- invalid_day: string;
38
- invalidValueProperty: string;
39
- mask: string;
40
- valueIsNotAvailable: string;
41
- stripe: string;
42
- month: string;
43
- day: string;
44
- year: string;
45
- january: string;
46
- february: string;
47
- march: string;
48
- april: string;
49
- may: string;
50
- june: string;
51
- july: string;
52
- august: string;
53
- september: string;
54
- october: string;
55
- november: string;
56
- december: string;
57
- next: string;
58
- previous: string;
59
- cancel: string;
60
- submit: string;
61
- confirmCancel: string;
62
- saveDraftInstanceError: string;
63
- saveDraftAuthError: string;
64
- restoreDraftInstanceError: string;
65
- saveDraftError: string;
66
- restoreDraftError: string;
67
- time: string;
68
- cancelButtonAriaLabel: string;
69
- previousButtonAriaLabel: string;
70
- nextButtonAriaLabel: string;
71
- submitButtonAriaLabel: string;
72
- reCaptchaTokenValidationError: string;
73
- reCaptchaTokenNotSpecifiedError: string;
74
- apiKey: string;
75
- typeRemaining: string;
76
- typeCount: string;
77
- requiredDayField: string;
78
- requiredDayEmpty: string;
79
- requiredMonthField: string;
80
- requiredYearField: string;
81
- formNotReady: string;
82
- noFormElement: string;
83
- notUniqueKey: string;
84
- newFormSchema: string;
85
- missingUrl: string;
86
- urlNotAttachedToBtn: string;
87
- loadingProjectSettingsError: string;
88
- sessionStorageSupportError: string;
89
- builderUniqueError: string;
90
- pageNotFound: string;
91
- noDragInfoError: string;
92
- addonSupportTypeError: string;
93
- setPathError: string;
94
- calculatedPathDeprecation: string;
95
- unknownTemplate: string;
96
- unknownComponent: string;
97
- renderTemplateFunctionDeprecation: string;
98
- whenReadyDeprecation: string;
99
- loadResourcesError: string;
100
- noSelectDataConfiguration: string;
101
- indexedDBSupportError: string;
102
- caretPositionSavingError: string;
103
- iteratableRowsError: string;
104
- checkRowDeprecation: string;
105
- noOAuthBtn: string;
106
- noOAuthConfiguration: string;
107
- oAuthErrorsTitle: string;
108
- noOAuthFormUrl: string;
109
- oAuthStateError: string;
110
- componentInvalidRowValidation: string;
111
- videoPlayerNotFound: string;
112
- synchronizationFailed: string;
113
- fileWithDuplicatedNameInProgress: string;
114
- fileWithDuplicatedNameLoaded: string;
115
- nestedForm: string;
116
- noDataProvided: string;
117
- subformSubmissionLoadingError: string;
118
- noDelimiterSet: string;
119
- noSiteKey: string;
120
- failedToNormalize: string;
121
- failedToCompareItems: string;
122
- editorFocusError: string;
123
- quillImageUploadFailed: string;
124
- noFilesSelected: string;
125
- needConfigurationForQuill: string;
126
- waitPdfConverting: string;
127
- uploading: string;
128
- pasteBelow: string;
129
- copy: string;
130
- move: string;
131
- edit: string;
132
- editJson: string;
133
- remove: string;
134
- clickToSetValue: string;
135
- words: string;
136
- characters: string;
137
- addAnother: string;
138
- yes: string;
139
- no: string;
140
- wantToClearData: string;
141
- yesDelete: string;
142
- waitFileProcessing: string;
143
- wrongFileType: string;
144
- fileTooSmall: string;
145
- fileTooBig: string;
146
- noFileService: string;
147
- fileProcessingFailed: string;
148
- readyForUpload: string;
149
- readyForRemovingFromStorage: string;
150
- preparingFileToRemove: string;
151
- succefullyRemoved: string;
152
- succefullyUploaded: string;
153
- maxSelectItems: string;
154
- minSelectItems: string;
155
- clickToSign: string;
156
- surveyQuestion: string;
157
- surveyQuestionValue: string;
158
- success: string;
159
- noResultsFound: string;
160
- noChoices: string;
161
- typeToSearch: string;
162
- loading: string;
163
- help: string;
164
- component: string;
165
- save: string;
166
- preview: string;
167
- dragAndDropComponent: string;
168
- searchFields: string;
169
- noMatchesFound: string;
170
- fileName: string;
171
- size: string;
172
- type: string;
173
- gallery: string;
174
- camera: string;
175
- dropFilesToAttach: string;
176
- useCamera: string;
177
- browse: string;
178
- takePicture: string;
179
- switchToFileUpload: string;
180
- completeStatus: string;
181
- noStorageSet: string;
182
- noFileApiSupport: string;
183
- noFormDataSupport: string;
184
- noProgressSupport: string;
185
- close: string;
186
- addResource: string;
187
- autocomplete: string;
188
- showPreview: string;
189
- hidePreview: string;
190
- createPage: string;
191
- page: string;
192
- closeBtnDescription: string;
193
- cancelBtnDescription: string;
194
- saveBtnDescription: string;
195
- addOrRemove: string;
196
- anyFileTypesAllowed: string;
197
- allowedFileTypes: string;
198
- syncing: string;
199
- syncNow: string;
200
- pressToOpen: string;
201
- browseToAttachFileFor: string;
202
- or: string;
203
- numericOnly: string;
204
- uploadPdfFile: string;
205
- dropToStart: string;
206
- expand: string;
207
- collapse: string;
208
- add: string;
209
- delete: string;
210
- revert: string;
211
- removeBtnPressToRemove: string;
212
- file: string;
213
- captureVideo: string;
214
- captureAudio: string;
215
- captureImage: string;
216
- browseFiles: string;
217
- noComponentsSetInGrid: string;
218
- sortAscending: string;
219
- sortDescending: string;
220
- filter: string;
221
- clear: string;
222
- showItemsWithValue: string;
223
- gridItemsPerPage: string;
224
- gridAllItems: string;
225
- recordsSelectedOnPage: string;
226
- recordsSelectedInTable: string;
227
- gridSelectAll: string;
228
- itemsInTable: string;
229
- clearSelection: string;
230
- editGridRow: string;
231
- deleteGridRow: string;
232
- selected: string;
233
- actions: string;
234
- };
1
+ declare const _default: any;
235
2
  export default _default;
@@ -1,6 +1,11 @@
1
1
  import bootstrap from '@formio/bootstrap';
2
+ import { coreEnTranslation } from '@formio/core';
3
+ import _ from 'lodash';
2
4
  export default {
3
5
  ...(bootstrap?.translations?.en || {}),
6
+ // these keys contain a '-' to strip whitespace in core
7
+ // which is not handled correctly in the renderer, so we redefine them
8
+ ..._.omit(coreEnTranslation, ['maxDate', 'minDate']),
4
9
  unsavedRowsError: 'Please save all rows before proceeding.',
5
10
  invalidRowsError: 'Please correct invalid rows before proceeding.',
6
11
  invalidRowError: 'Invalid row. Please correct it or delete.',
@@ -13,49 +18,9 @@ export default {
13
18
  errorListHotkey: 'Press Ctrl + Alt + X to go back to the error list.',
14
19
  errorsListNavigationMessage: 'Click to navigate to the field with following error.',
15
20
  submitError: 'Please check the form and correct all errors before submitting.',
16
- required: '{{field}} is required',
17
- unique: '{{field}} must be unique',
18
- array: '{{field}} must be an array',
19
- array_nonempty: '{{field}} must be a non-empty array', // eslint-disable-line camelcase
20
- nonarray: '{{field}} must not be an array',
21
- select: '{{field}} contains an invalid selection',
22
- pattern: '{{field}} does not match the pattern {{pattern}}',
23
- minLength: '{{field}} must have at least {{length}} characters.',
24
- maxLength: '{{field}} must have no more than {{length}} characters.',
25
- minWords: '{{field}} must have at least {{length}} words.',
26
- maxWords: '{{field}} must have no more than {{length}} words.',
27
- min: '{{field}} cannot be less than {{min}}.',
28
- max: '{{field}} cannot be greater than {{max}}.',
29
21
  maxDate: '{{field}} should not contain date after {{maxDate}}',
30
22
  minDate: '{{field}} should not contain date before {{minDate}}',
31
- maxYear: '{{field}} should not contain year greater than {{maxYear}}',
32
- minYear: '{{field}} should not contain year less than {{minYear}}',
33
- minSelectedCount: 'You must select at least {{minCount}} items',
34
- maxSelectedCount: 'You may only select up to {{maxCount}} items',
35
- invalid_email: '{{field}} must be a valid email.', // eslint-disable-line camelcase
36
- invalid_url: '{{field}} must be a valid url.', // eslint-disable-line camelcase
37
- invalid_regex: '{{field}} does not match the pattern {{regex}}.', // eslint-disable-line camelcase
38
- invalid_date: '{{field}} is not a valid date.', // eslint-disable-line camelcase
39
- invalid_day: '{{field}} is not a valid day.', // eslint-disable-line camelcase
40
- invalidValueProperty: 'Invalid Value Property',
41
- mask: '{{field}} does not match the mask.',
42
- valueIsNotAvailable: '{{ field }} is an invalid value.',
43
23
  stripe: '{{stripe}}',
44
- month: 'Month',
45
- day: 'Day',
46
- year: 'Year',
47
- january: 'January',
48
- february: 'February',
49
- march: 'March',
50
- april: 'April',
51
- may: 'May',
52
- june: 'June',
53
- july: 'July',
54
- august: 'August',
55
- september: 'September',
56
- october: 'October',
57
- november: 'November',
58
- december: 'December',
59
24
  next: 'Next',
60
25
  previous: 'Previous',
61
26
  cancel: 'Cancel',
@@ -76,10 +41,7 @@ export default {
76
41
  apiKey: 'API Key is not unique: {{key}}',
77
42
  typeRemaining: '{{ remaining }} {{ type }} remaining.',
78
43
  typeCount: '{{ count }} {{ type }}',
79
- requiredDayField: '{{ field }} is required',
80
44
  requiredDayEmpty: '{{ field }} is required',
81
- requiredMonthField: '{{ field }} is required',
82
- requiredYearField: '{{ field }} is required',
83
45
  formNotReady: 'Form not ready. Use form.ready promise',
84
46
  noFormElement: 'No DOM element for form.',
85
47
  notUniqueKey: 'API Key is not unique',
@@ -139,8 +101,6 @@ export default {
139
101
  words: 'words',
140
102
  characters: 'characters',
141
103
  addAnother: 'Add Another',
142
- yes: 'Yes',
143
- no: 'No',
144
104
  wantToClearData: 'Do you want to clear data?',
145
105
  yesDelete: 'Yes, delete it',
146
106
  waitFileProcessing: 'Processing file. Please wait...',
@@ -157,8 +117,6 @@ export default {
157
117
  maxSelectItems: 'You may only select up to {{maxCount}} items',
158
118
  minSelectItems: 'You must select at least {{minCount}} items',
159
119
  clickToSign: 'Click to Sign',
160
- surveyQuestion: 'Question',
161
- surveyQuestionValue: 'Value',
162
120
  success: 'Success',
163
121
  noResultsFound: 'No results found',
164
122
  noChoices: 'No choices to choose from',
@@ -26,8 +26,8 @@ export const getBestMatch: typeof Utils.getBestMatch;
26
26
  export const getComponentFromPath: typeof Utils.getComponentFromPath;
27
27
  export const getComponentValue: typeof Utils.getComponentValue;
28
28
  export const findComponents: typeof Utils.findComponents;
29
- export const eachComponentDataAsync: (components: Component[], data: DataObject, fn: EachComponentDataAsyncCallback, includeAll?: boolean | undefined, local?: boolean | undefined, parent?: any, parentPaths?: any) => Promise<void>;
30
- export const eachComponentData: (components: Component[], data: DataObject, fn: EachComponentDataCallback, includeAll?: boolean | undefined, local?: boolean | undefined, parent?: any, parentPaths?: any) => void;
29
+ export const eachComponentDataAsync: (components: import("@formio/core").Component[], data: import("@formio/core").DataObject, fn: import("@formio/core").EachComponentDataAsyncCallback, includeAll?: boolean | undefined, local?: boolean | undefined, parent?: import("@formio/core").Component | undefined, parentPaths?: import("@formio/core").ComponentPaths | undefined) => Promise<void>;
30
+ export const eachComponentData: (components: import("@formio/core").Component[], data: import("@formio/core").DataObject, fn: import("@formio/core").EachComponentDataCallback, includeAll?: boolean | undefined, local?: boolean | undefined, parent?: import("@formio/core").Component | undefined, parentPaths?: import("@formio/core").ComponentPaths | undefined) => void;
31
31
  export const getComponentKey: typeof Utils.getComponentKey;
32
32
  export const getContextualRowPath: typeof Utils.getContextualRowPath;
33
33
  export const getContextualRowData: typeof Utils.getContextualRowData;
@@ -478,14 +478,6 @@ export function getDataParentComponent(componentInstance: Component): Component
478
478
  * @returns {boolean} - TRUE if the value is a promise; FALSE otherwise
479
479
  */
480
480
  export function isPromise(value: any): boolean;
481
- /**
482
- * Determines if the component has a scoping parent in tree (a component which scopes its children and manages its
483
- * changes by itself, e.g. EditGrid)
484
- * @param {Component} componentInstance - The component to check for the scoping parent.
485
- * @param {boolean} firstPass - Whether it is the first pass of the function
486
- * @returns {boolean|*} - TRUE if the component has a scoping parent; FALSE otherwise
487
- */
488
- export function isInsideScopingComponent(componentInstance: Component, firstPass?: boolean): boolean | any;
489
481
  /**
490
482
  * Returns all the focusable elements within the provided dom element.
491
483
  * @param {HTMLElement} element - The element to get the focusable elements from.
@@ -498,6 +490,15 @@ export function getFocusableElements(element: HTMLElement): NodeList<HTMLElement
498
490
  * @returns {Array<string>|null} - The saved types for the component
499
491
  */
500
492
  export function getComponentSavedTypes(fullSchema: import('@formio/core').Component): Array<string> | null;
493
+ /**
494
+ * Checks if a string has timezone information encoded in it
495
+ * Example: 2024-01-01T00:00:00Z -> true
496
+ * Example: 2024-01-01T00:00:00+03:00 -> true
497
+ * Example: 2011-05-03T00:00:00 -> false
498
+ * @param {string} value the string value to check
499
+ * @returns {boolean} if value has encoded timezone
500
+ */
501
+ export function hasEncodedTimezone(value: string): boolean;
501
502
  export * from "./formUtils";
502
503
  /**
503
504
  * Map values through unfold and return first non-nil value.