@formio/js 5.0.0-rc.60 → 5.0.0-rc.63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) 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 +8 -8
  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 +47 -47
  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 +2 -2
  14. package/dist/formio.utils.min.js +1 -1
  15. package/dist/formio.utils.min.js.LICENSE.txt +1 -1
  16. package/lib/cjs/Element.d.ts +1 -1
  17. package/lib/cjs/Embed.d.ts +2 -2
  18. package/lib/cjs/Embed.js +10 -10
  19. package/lib/cjs/Form.d.ts +3 -3
  20. package/lib/cjs/FormBuilder.d.ts +3 -42
  21. package/lib/cjs/Formio.js +1 -0
  22. package/lib/cjs/InlineEmbed.js +2 -2
  23. package/lib/cjs/PDF.d.ts +1 -1
  24. package/lib/cjs/Webform.d.ts +3 -4
  25. package/lib/cjs/WebformBuilder.d.ts +1 -1
  26. package/lib/cjs/components/_classes/component/Component.form.d.ts +1 -1
  27. package/lib/cjs/components/_classes/component/Component.form.js +1 -1
  28. package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +1 -1
  29. package/lib/cjs/components/_classes/list/ListComponent.form.js +1 -1
  30. package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +7 -7
  31. package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +1 -1
  32. package/lib/cjs/components/_classes/nested/NestedComponent.form.js +1 -1
  33. package/lib/cjs/components/address/Address.form.d.ts +1 -1
  34. package/lib/cjs/components/address/Address.form.js +1 -1
  35. package/lib/cjs/components/button/Button.form.d.ts +1 -1
  36. package/lib/cjs/components/button/Button.form.js +1 -1
  37. package/lib/cjs/components/checkbox/Checkbox.form.d.ts +1 -1
  38. package/lib/cjs/components/checkbox/Checkbox.form.js +1 -1
  39. package/lib/cjs/components/columns/Columns.form.d.ts +1 -1
  40. package/lib/cjs/components/columns/Columns.form.js +1 -1
  41. package/lib/cjs/components/container/Container.form.d.ts +1 -1
  42. package/lib/cjs/components/container/Container.form.js +1 -1
  43. package/lib/cjs/components/content/Content.form.d.ts +1 -1
  44. package/lib/cjs/components/content/Content.form.js +1 -1
  45. package/lib/cjs/components/currency/Currency.form.d.ts +1 -1
  46. package/lib/cjs/components/currency/Currency.form.js +1 -1
  47. package/lib/cjs/components/datagrid/DataGrid.form.d.ts +1 -1
  48. package/lib/cjs/components/datagrid/DataGrid.form.js +1 -1
  49. package/lib/cjs/components/datamap/DataMap.form.d.ts +1 -1
  50. package/lib/cjs/components/datamap/DataMap.form.js +1 -1
  51. package/lib/cjs/components/datetime/DateTime.form.d.ts +1 -1
  52. package/lib/cjs/components/datetime/DateTime.form.js +1 -1
  53. package/lib/cjs/components/day/Day.form.d.ts +1 -1
  54. package/lib/cjs/components/day/Day.form.js +1 -1
  55. package/lib/cjs/components/editgrid/EditGrid.form.d.ts +1 -1
  56. package/lib/cjs/components/editgrid/EditGrid.form.js +1 -1
  57. package/lib/cjs/components/email/Email.form.d.ts +1 -1
  58. package/lib/cjs/components/email/Email.form.js +1 -1
  59. package/lib/cjs/components/fieldset/Fieldset.form.d.ts +1 -1
  60. package/lib/cjs/components/fieldset/Fieldset.form.js +1 -1
  61. package/lib/cjs/components/file/File.form.d.ts +1 -1
  62. package/lib/cjs/components/file/File.form.js +1 -1
  63. package/lib/cjs/components/form/Form.form.d.ts +1 -1
  64. package/lib/cjs/components/form/Form.form.js +1 -1
  65. package/lib/cjs/components/hidden/Hidden.form.d.ts +1 -1
  66. package/lib/cjs/components/hidden/Hidden.form.js +1 -1
  67. package/lib/cjs/components/html/HTML.form.d.ts +1 -1
  68. package/lib/cjs/components/html/HTML.form.js +1 -1
  69. package/lib/cjs/components/number/Number.form.d.ts +1 -1
  70. package/lib/cjs/components/number/Number.form.js +1 -1
  71. package/lib/cjs/components/panel/Panel.form.d.ts +1 -1
  72. package/lib/cjs/components/panel/Panel.form.js +1 -1
  73. package/lib/cjs/components/password/Password.form.d.ts +1 -1
  74. package/lib/cjs/components/password/Password.form.js +1 -1
  75. package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +1 -1
  76. package/lib/cjs/components/phonenumber/PhoneNumber.form.js +1 -1
  77. package/lib/cjs/components/radio/Radio.form.d.ts +1 -1
  78. package/lib/cjs/components/radio/Radio.form.js +1 -1
  79. package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +1 -1
  80. package/lib/cjs/components/recaptcha/ReCaptcha.form.js +1 -1
  81. package/lib/cjs/components/select/Select.form.d.ts +1 -1
  82. package/lib/cjs/components/select/Select.form.js +1 -1
  83. package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +1 -1
  84. package/lib/cjs/components/selectboxes/SelectBoxes.form.js +1 -1
  85. package/lib/cjs/components/signature/Signature.form.d.ts +1 -1
  86. package/lib/cjs/components/signature/Signature.form.js +1 -1
  87. package/lib/cjs/components/survey/Survey.form.d.ts +1 -1
  88. package/lib/cjs/components/survey/Survey.form.js +1 -1
  89. package/lib/cjs/components/table/Table.form.d.ts +1 -1
  90. package/lib/cjs/components/table/Table.form.js +1 -1
  91. package/lib/cjs/components/tabs/Tabs.form.d.ts +1 -1
  92. package/lib/cjs/components/tabs/Tabs.form.js +1 -1
  93. package/lib/cjs/components/tags/Tags.form.d.ts +1 -1
  94. package/lib/cjs/components/tags/Tags.form.js +1 -1
  95. package/lib/cjs/components/textarea/TextArea.form.d.ts +1 -1
  96. package/lib/cjs/components/textarea/TextArea.form.js +1 -1
  97. package/lib/cjs/components/textfield/TextField.form.d.ts +1 -1
  98. package/lib/cjs/components/textfield/TextField.form.js +1 -1
  99. package/lib/cjs/components/time/Time.form.d.ts +1 -1
  100. package/lib/cjs/components/time/Time.form.js +1 -1
  101. package/lib/cjs/components/unknown/Unknown.form.js +1 -1
  102. package/lib/cjs/components/url/Url.form.d.ts +1 -1
  103. package/lib/cjs/components/url/Url.form.js +1 -1
  104. package/lib/cjs/components/well/Well.form.d.ts +1 -1
  105. package/lib/cjs/components/well/Well.form.js +1 -1
  106. package/lib/cjs/formio.form.js +3 -3
  107. package/lib/cjs/providers/address/AzureAddressProvider.d.ts +1 -1
  108. package/lib/cjs/providers/storage/util.js +4 -3
  109. package/lib/cjs/templates/index.d.ts +14 -14
  110. package/lib/cjs/utils/calendarUtils.js +3 -3
  111. package/lib/cjs/utils/formUtils.d.ts +3 -3
  112. package/lib/cjs/utils/formUtils.js +2 -2
  113. package/lib/cjs/utils/utils.d.ts +14 -14
  114. package/lib/cjs/utils/utils.js +71 -70
  115. package/lib/mjs/Element.d.ts +1 -1
  116. package/lib/mjs/Embed.d.ts +2 -2
  117. package/lib/mjs/Form.d.ts +3 -3
  118. package/lib/mjs/FormBuilder.d.ts +3 -42
  119. package/lib/mjs/Formio.js +1 -0
  120. package/lib/mjs/PDF.d.ts +1 -1
  121. package/lib/mjs/Webform.d.ts +3 -4
  122. package/lib/mjs/WebformBuilder.d.ts +1 -1
  123. package/lib/mjs/components/_classes/component/Component.form.d.ts +1 -1
  124. package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +1 -1
  125. package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +7 -7
  126. package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +1 -1
  127. package/lib/mjs/components/address/Address.form.d.ts +1 -1
  128. package/lib/mjs/components/button/Button.form.d.ts +1 -1
  129. package/lib/mjs/components/checkbox/Checkbox.form.d.ts +1 -1
  130. package/lib/mjs/components/columns/Columns.form.d.ts +1 -1
  131. package/lib/mjs/components/container/Container.form.d.ts +1 -1
  132. package/lib/mjs/components/content/Content.form.d.ts +1 -1
  133. package/lib/mjs/components/currency/Currency.form.d.ts +1 -1
  134. package/lib/mjs/components/datagrid/DataGrid.form.d.ts +1 -1
  135. package/lib/mjs/components/datamap/DataMap.form.d.ts +1 -1
  136. package/lib/mjs/components/datetime/DateTime.form.d.ts +1 -1
  137. package/lib/mjs/components/day/Day.form.d.ts +1 -1
  138. package/lib/mjs/components/editgrid/EditGrid.form.d.ts +1 -1
  139. package/lib/mjs/components/email/Email.form.d.ts +1 -1
  140. package/lib/mjs/components/fieldset/Fieldset.form.d.ts +1 -1
  141. package/lib/mjs/components/file/File.form.d.ts +1 -1
  142. package/lib/mjs/components/form/Form.form.d.ts +1 -1
  143. package/lib/mjs/components/hidden/Hidden.form.d.ts +1 -1
  144. package/lib/mjs/components/html/HTML.form.d.ts +1 -1
  145. package/lib/mjs/components/number/Number.form.d.ts +1 -1
  146. package/lib/mjs/components/panel/Panel.form.d.ts +1 -1
  147. package/lib/mjs/components/password/Password.form.d.ts +1 -1
  148. package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +1 -1
  149. package/lib/mjs/components/radio/Radio.form.d.ts +1 -1
  150. package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +1 -1
  151. package/lib/mjs/components/select/Select.form.d.ts +1 -1
  152. package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +1 -1
  153. package/lib/mjs/components/signature/Signature.form.d.ts +1 -1
  154. package/lib/mjs/components/survey/Survey.form.d.ts +1 -1
  155. package/lib/mjs/components/table/Table.form.d.ts +1 -1
  156. package/lib/mjs/components/tabs/Tabs.form.d.ts +1 -1
  157. package/lib/mjs/components/tags/Tags.form.d.ts +1 -1
  158. package/lib/mjs/components/textarea/TextArea.form.d.ts +1 -1
  159. package/lib/mjs/components/textfield/TextField.form.d.ts +1 -1
  160. package/lib/mjs/components/time/Time.form.d.ts +1 -1
  161. package/lib/mjs/components/url/Url.form.d.ts +1 -1
  162. package/lib/mjs/components/well/Well.form.d.ts +1 -1
  163. package/lib/mjs/providers/address/AzureAddressProvider.d.ts +1 -1
  164. package/lib/mjs/templates/index.d.ts +14 -14
  165. package/lib/mjs/utils/formUtils.d.ts +3 -3
  166. package/lib/mjs/utils/utils.d.ts +14 -14
  167. package/package.json +10 -10
@@ -20,7 +20,7 @@
20
20
 
21
21
  /*! @license DOMPurify 3.1.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.5/LICENSE */
22
22
 
23
- /*! formiojs v5.0.0-rc.60 | https://unpkg.com/formiojs@5.0.0-rc.60/LICENSE.txt */
23
+ /*! formiojs v5.0.0-rc.63 | https://unpkg.com/formiojs@5.0.0-rc.63/LICENSE.txt */
24
24
 
25
25
  /**
26
26
  * @license
@@ -237,7 +237,7 @@ export default class Element {
237
237
  * @param {import('@formio/core').EvaluatorOptions} options - The options to pass to the evaluation.
238
238
  * @returns {*} - The result of the evaluation.
239
239
  */
240
- evaluate(func: string | Function | object, args: object, ret: string, interpolate: boolean, options?: import("@formio/core").EvaluatorOptions): any;
240
+ evaluate(func: string | Function | object, args: object, ret: string, interpolate: boolean, options?: import('@formio/core').EvaluatorOptions): any;
241
241
  /**
242
242
  * Allow for options to hook into the functionality of this renderer.
243
243
  * @returns {*} - The result of the hook function.
@@ -47,11 +47,11 @@ export class Form {
47
47
  options: any;
48
48
  instance: {
49
49
  proxy: boolean;
50
- ready: Promise<void> | Promise<any> | undefined;
50
+ ready: Promise<any> | Promise<void> | undefined;
51
51
  destroy: () => void;
52
52
  };
53
53
  init(): void;
54
- ready: Promise<void> | Promise<any> | undefined;
54
+ ready: Promise<any> | Promise<void> | undefined;
55
55
  create(): Promise<any>;
56
56
  setForm(form: any): void;
57
57
  setDisplay(display: any): Promise<any> | undefined;
package/lib/cjs/Embed.js CHANGED
@@ -91,8 +91,8 @@ class Formio {
91
91
  });
92
92
  return element;
93
93
  }
94
- static addScript(wrapper_1, src_1, name_1) {
95
- return __awaiter(this, arguments, void 0, function* (wrapper, src, name, flag = '') {
94
+ static addScript(wrapper, src, name, flag = '') {
95
+ return __awaiter(this, void 0, void 0, function* () {
96
96
  if (!src) {
97
97
  return Promise.resolve();
98
98
  }
@@ -242,8 +242,8 @@ class Formio {
242
242
  });
243
243
  }
244
244
  // eslint-disable-next-line max-statements
245
- static init(element_1) {
246
- return __awaiter(this, arguments, void 0, function* (element, options = {}, builder = false) {
245
+ static init(element, options = {}, builder = false) {
246
+ return __awaiter(this, void 0, void 0, function* () {
247
247
  _a.cdn = new CDN_js_1.default(_a.config.cdn, _a.config.cdnUrls || {});
248
248
  _a.config.libs = _a.config.libs || {
249
249
  uswds: {
@@ -374,8 +374,8 @@ class Formio {
374
374
  });
375
375
  }
376
376
  // Create a new form.
377
- static createForm(element_1, form_1) {
378
- return __awaiter(this, arguments, void 0, function* (element, form, options = {}) {
377
+ static createForm(element, form, options = {}) {
378
+ return __awaiter(this, void 0, void 0, function* () {
379
379
  if (_a.FormioClass) {
380
380
  return _a.FormioClass.createForm(element, form, Object.assign(Object.assign({}, options), { noLoader: true }));
381
381
  }
@@ -393,9 +393,9 @@ class Formio {
393
393
  });
394
394
  }
395
395
  // Create a form builder.
396
- static builder(element_1, form_1) {
397
- return __awaiter(this, arguments, void 0, function* (element, form, options = {}) {
398
- var _b;
396
+ static builder(element, form, options = {}) {
397
+ var _b;
398
+ return __awaiter(this, void 0, void 0, function* () {
399
399
  if ((_b = _a.FormioClass) === null || _b === void 0 ? void 0 : _b.builder) {
400
400
  return _a.FormioClass.builder(element, form, options);
401
401
  }
@@ -421,7 +421,7 @@ Formio.formioReady = new Promise((ready, reject) => {
421
421
  Formio.version = 'FORMIO_VERSION';
422
422
  // Create a report.
423
423
  Formio.Report = {
424
- create: (element_1, submission_1, ...args_1) => __awaiter(void 0, [element_1, submission_1, ...args_1], void 0, function* (element, submission, options = {}) {
424
+ create: (element, submission, options = {}) => __awaiter(void 0, void 0, void 0, function* () {
425
425
  var _b;
426
426
  if ((_b = _a.FormioClass) === null || _b === void 0 ? void 0 : _b.Report) {
427
427
  return _a.FormioClass.Report.create(element, submission, options);
package/lib/cjs/Form.d.ts CHANGED
@@ -368,7 +368,7 @@ export default class Form extends Element {
368
368
  * @param {string|object} formParam - Either the form JSON or the URL of the form json.
369
369
  * @returns {void}
370
370
  */
371
- set form(formParam: string | object);
371
+ set form(formParam: object);
372
372
  /**
373
373
  * Returns the loaded forms JSON.
374
374
  * @returns {object} - The loaded form's JSON
@@ -395,13 +395,13 @@ export default class Form extends Element {
395
395
  * @param {import('@formio/core').Form} form - The form json.
396
396
  * @returns {object} The initial options with base and project.
397
397
  */
398
- getFormInitOptions(url: string, form: import("@formio/core").Form): object;
398
+ getFormInitOptions(url: string, form: import('@formio/core').Form): object;
399
399
  /**
400
400
  * Sets the form to the JSON schema of a form.
401
401
  * @param {import('@formio/core').Form} formParam - The form JSON to set this form to.
402
402
  * @returns {Promise<Webform|Wizard|PDF>} - The webform instance that was created.
403
403
  */
404
- setForm(formParam: import("@formio/core").Form): Promise<Webform | Wizard | PDF>;
404
+ setForm(formParam: import('@formio/core').Form): Promise<Webform | Wizard | PDF>;
405
405
  _form: any;
406
406
  getSubmission(formio: any, opts: any): any;
407
407
  /**
@@ -17,44 +17,26 @@ export default class FormBuilder extends Form {
17
17
  */
18
18
  /** @type {FormBuilderOptions} */
19
19
  static options: {
20
- /**
21
- * - An array of "keys" of components that should be disabled within the form builder. Example: ['firstName', 'lastName']
22
- */
23
20
  /**
24
21
  * - An array of "keys" of components that should be disabled within the form builder. Example: ['firstName', 'lastName']
25
22
  */
26
23
  disabled?: string[] | undefined;
27
- /**
28
- * - When set to TRUE no modal is shown when a component is dragged onto the form.
29
- */
30
24
  /**
31
25
  * - When set to TRUE no modal is shown when a component is dragged onto the form.
32
26
  */
33
27
  noNewEdit?: boolean | undefined;
34
- /**
35
- * - Set to TRUE to not include the default submit button in Webforms.
36
- */
37
28
  /**
38
29
  * - Set to TRUE to not include the default submit button in Webforms.
39
30
  */
40
31
  noDefaultSubmitButton?: boolean | undefined;
41
- /**
42
- * - Set to TRUE to always require confirmation before removing a component.
43
- */
44
32
  /**
45
33
  * - Set to TRUE to always require confirmation before removing a component.
46
34
  */
47
35
  alwaysConfirmComponentRemoval?: boolean | undefined;
48
- /**
49
- * - Form configurations to apply to forms being created. These configurations are added to the "config" property of the form object.
50
- */
51
36
  /**
52
37
  * - Form configurations to apply to forms being created. These configurations are added to the "config" property of the form object.
53
38
  */
54
39
  formConfig?: object | undefined;
55
- /**
56
- * - The tag to use to query for the "Existing Resource Fields" section of the builder.
57
- */
58
40
  /**
59
41
  * - The tag to use to query for the "Existing Resource Fields" section of the builder.
60
42
  */
@@ -62,48 +44,27 @@ export default class FormBuilder extends Form {
62
44
  /**
63
45
  * - The options to apply to the Edit Form (the form that shows inside the modal when you edit a component).
64
46
  */
65
- /**
66
- * - The options to apply to the Edit Form (the form that shows inside the modal when you edit a component).
67
- */
68
- editForm?: import("./Form").FormOptions;
69
- /**
70
- * - The language to load into the form builder.
71
- */
47
+ editForm?: any;
72
48
  /**
73
49
  * - The language to load into the form builder.
74
50
  */
75
51
  language?: string | undefined;
76
- /**
77
- * - The builder options to pass to the builder.
78
- */
79
52
  /**
80
53
  * - The builder options to pass to the builder.
81
54
  */
82
55
  builder?: object | undefined;
83
- /**
84
- * - The display mode of the builder.
85
- */
86
56
  /**
87
57
  * - The display mode of the builder.
88
58
  */
89
59
  display?: "form" | "pdf" | "wizard" | undefined;
90
- /**
91
- * - Filter applied to the resources that appear in the builder's Existing Resource Fields.
92
- */
93
60
  /**
94
61
  * - Filter applied to the resources that appear in the builder's Existing Resource Fields.
95
62
  */
96
63
  resourceFilter?: string | undefined;
97
- /**
98
- * - When set to TRUE, the resource ID in the builder's Existing Resource Fields will not be linked.
99
- */
100
64
  /**
101
65
  * - When set to TRUE, the resource ID in the builder's Existing Resource Fields will not be linked.
102
66
  */
103
67
  noSource?: boolean | undefined;
104
- /**
105
- * - When set to TRUE, the full JSON schema will be displayed in the JSON edit menu.
106
- */
107
68
  /**
108
69
  * - When set to TRUE, the full JSON schema will be displayed in the JSON edit menu.
109
70
  */
@@ -144,7 +105,7 @@ export default class FormBuilder extends Form {
144
105
  /**
145
106
  * - The options to apply to the Edit Form (the form that shows inside the modal when you edit a component).
146
107
  */
147
- editForm?: import("./Form").FormOptions;
108
+ editForm?: any;
148
109
  /**
149
110
  * - The language to load into the form builder.
150
111
  */
@@ -199,7 +160,7 @@ export default class FormBuilder extends Form {
199
160
  /**
200
161
  * - The options to apply to the Edit Form (the form that shows inside the modal when you edit a component).
201
162
  */
202
- editForm?: import("./Form").FormOptions;
163
+ editForm?: any;
203
164
  /**
204
165
  * - The language to load into the form builder.
205
166
  */
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);
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Formio = void 0;
4
- exports.embed = embed;
3
+ exports.Formio = exports.embed = void 0;
5
4
  const Embed_1 = require("./Embed");
6
5
  Object.defineProperty(exports, "Formio", { enumerable: true, get: function () { return Embed_1.Formio; } });
7
6
  /**
@@ -114,3 +113,4 @@ function embed(config = {}) {
114
113
  document.write('<span>Could not locate the Embedded form.</span>');
115
114
  }
116
115
  }
116
+ exports.embed = embed;
package/lib/cjs/PDF.d.ts CHANGED
@@ -28,7 +28,7 @@ export default class PDF extends Webform {
28
28
  * @param {any} flags - The flags to use when setting the submission.
29
29
  * @returns {boolean} - If the value changed or not.
30
30
  */
31
- setValue(submission: import("@formio/core").Submission, flags?: any): boolean;
31
+ setValue(submission: import('@formio/core').Submission, flags?: any): boolean;
32
32
  postMessage(message: any): void;
33
33
  iframeFormSetUp: boolean | undefined;
34
34
  focusOnComponent(key: any): void;
@@ -89,11 +89,11 @@ declare class Webform extends NestedDataComponent {
89
89
  * @param {HTMLElement | object | import('Form').FormOptions} [elementOrOptions] - The DOM element to render this form within or the options to create this form instance.
90
90
  * @param {import('Form').FormOptions} [options] - The options to create a new form instance.
91
91
  */
92
- constructor(elementOrOptions?: HTMLElement | object | import("Form").FormOptions, options?: import("Form").FormOptions);
92
+ constructor(elementOrOptions?: HTMLElement | object | import('Form').FormOptions, options?: any);
93
93
  /**
94
94
  * @type {import('Form').FormOptions} - the options for this Webform.
95
95
  */
96
- options: import("Form").FormOptions;
96
+ options: any;
97
97
  _src: string;
98
98
  _loading: boolean;
99
99
  _form: {};
@@ -459,7 +459,7 @@ export default Webform;
459
459
  /**
460
460
  * Represents a JSON value.
461
461
  */
462
- export type JSON = (string | number | boolean | null | JSONArray | JSONObject);
462
+ export type JSON = (string | number | boolean | null | JSON[] | JSONObject);
463
463
  /**
464
464
  * Represents a JSON array.
465
465
  */
@@ -733,5 +733,4 @@ export type FormOptions = {
733
733
  zoom?: number | undefined;
734
734
  };
735
735
  import NestedDataComponent from "./components/_classes/nesteddata/NestedDataComponent";
736
- import { Formio } from "./Formio";
737
736
  import EventEmitter from "./EventEmitter";
@@ -59,7 +59,7 @@ export default class WebformBuilder extends Component {
59
59
  * @param {import('@formio/core').Component} component - The component to find the namespace root for.
60
60
  * @returns {import('@formio/core').Component[]} - The components root for this namespace.
61
61
  */
62
- findNamespaceRoot(component: import("@formio/core").Component): import("@formio/core").Component[];
62
+ findNamespaceRoot(component: import('@formio/core').Component): import('@formio/core').Component[];
63
63
  recurseNamespace(component: any): any;
64
64
  render(): any;
65
65
  attach(element: any): Promise<any>;
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import("@formio/core").Component[];
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -3,7 +3,6 @@ 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.default = default_1;
7
6
  const lodash_1 = __importDefault(require("lodash"));
8
7
  const Component_edit_conditional_1 = __importDefault(require("./editForm/Component.edit.conditional"));
9
8
  const Component_edit_data_1 = __importDefault(require("./editForm/Component.edit.data"));
@@ -80,3 +79,4 @@ function default_1(...extend) {
80
79
  })
81
80
  };
82
81
  }
82
+ exports.default = default_1;
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import("@formio/core").Component[];
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -3,7 +3,6 @@ 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.default = default_1;
7
6
  const Components_1 = __importDefault(require("../../Components"));
8
7
  const ListComponent_edit_data_1 = __importDefault(require("./editForm/ListComponent.edit.data"));
9
8
  /**
@@ -19,3 +18,4 @@ function default_1(...extend) {
19
18
  },
20
19
  ], ...extend);
21
20
  }
21
+ exports.default = default_1;
@@ -103,7 +103,7 @@ export default class NestedComponent extends Field {
103
103
  * @param {import('@formio/core').Component} component - The component to check.
104
104
  * @returns {boolean} - TRUE if the component has a component, FALSE otherwise.
105
105
  */
106
- hasComponent(component: import("@formio/core").Component): boolean;
106
+ hasComponent(component: import('@formio/core').Component): boolean;
107
107
  /**
108
108
  * Get the flattened components of this NestedComponent.
109
109
  * @returns {object} - The flattened components of this NestedComponent.
@@ -139,7 +139,7 @@ export default class NestedComponent extends Field {
139
139
  * @param {import('@formio/core').Component} [replacedComp] - The component to replace with this component.
140
140
  * @returns {any} - The created component instance.
141
141
  */
142
- createComponent(component: import("@formio/core").Component, options: object, data: import("@formio/core").DataObject, before?: import("@formio/core").Component | undefined, replacedComp?: import("@formio/core").Component | undefined): any;
142
+ createComponent(component: import('@formio/core').Component, options: object, data: import('@formio/core').DataObject, before?: import("@formio/core").Component | undefined, replacedComp?: import("@formio/core").Component | undefined): any;
143
143
  getContainer(): any;
144
144
  get componentComponents(): any;
145
145
  get nestedKey(): string;
@@ -159,7 +159,7 @@ export default class NestedComponent extends Field {
159
159
  * @param {boolean} [noAdd] - A possibly extraneous boolean flag.
160
160
  * @returns {any} - The created component instance.
161
161
  */
162
- addComponent(component: import("@formio/core").Component, data?: object, before?: HTMLElement, noAdd?: boolean | undefined): any;
162
+ addComponent(component: import('@formio/core').Component, data?: object, before?: HTMLElement, noAdd?: boolean | undefined): any;
163
163
  beforeFocus(): void;
164
164
  render(children: any): Field;
165
165
  renderComponents(components: any): any;
@@ -168,7 +168,7 @@ export default class NestedComponent extends Field {
168
168
  * Attach the logic to the components.
169
169
  * @param {import('@formio/core').Component[]} components - The components to attach logic to.
170
170
  */
171
- attachComponentsLogic(components: import("@formio/core").Component[]): void;
171
+ attachComponentsLogic(components: import('@formio/core').Component[]): void;
172
172
  attachComponents(element: any, components: any, container: any): Promise<any>;
173
173
  /**
174
174
  * Remove a component from the components array and from the children object
@@ -176,7 +176,7 @@ export default class NestedComponent extends Field {
176
176
  * @param {import('@formio/core').Component[]} components - An array of components to remove this component from.
177
177
  * @param {boolean} [all] - If set to TRUE will cascade remove all components.
178
178
  */
179
- removeComponent(component: import("@formio/core").Component, components: import("@formio/core").Component[], all?: boolean | undefined): void;
179
+ removeComponent(component: import('@formio/core').Component, components: import('@formio/core').Component[], all?: boolean | undefined): void;
180
180
  /**
181
181
  * Removes a component provided the API key of that component.
182
182
  * @param {string} key - The API key of the component to remove.
@@ -224,14 +224,14 @@ export default class NestedComponent extends Field {
224
224
  * @param {object} flags - The flags to use when validating.
225
225
  * @returns {Promise<Array>|Array} - The errors if any exist.
226
226
  */
227
- validateComponents(components?: import("@formio/core").Component[], data?: import("@formio/core").DataObject, flags?: object): Promise<any[]> | any[];
227
+ validateComponents(components?: import('@formio/core').Component[], data?: import('@formio/core').DataObject, flags?: object): Promise<any[]> | any[];
228
228
  /**
229
229
  * Validate a nested component with data, or its own internal data.
230
230
  * @param {import('@formio/core').DataObject} data - The data to validate.
231
231
  * @param {object} flags - The flags to use when validating.
232
232
  * @returns {Array} - The errors if any exist.
233
233
  */
234
- validate(data?: import("@formio/core").DataObject, flags?: object): any[];
234
+ validate(data?: import('@formio/core').DataObject, flags?: object): any[];
235
235
  checkComponentValidity(data?: null, dirty?: boolean, row?: null, flags?: {}, allErrors?: any[]): boolean;
236
236
  checkAsyncValidity(data?: null, dirty?: boolean, row?: null, silentCheck?: boolean): Promise<any>;
237
237
  setPristine(pristine: any): void;
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import("@formio/core").Component[];
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -3,7 +3,6 @@ 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.default = default_1;
7
6
  const Components_1 = __importDefault(require("../../Components"));
8
7
  /**
9
8
  * The Edit Form function.
@@ -22,3 +21,4 @@ function default_1(...extend) {
22
21
  }
23
22
  ], ...extend);
24
23
  }
24
+ exports.default = default_1;
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import("@formio/core").Component[];
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -3,7 +3,6 @@ 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.default = default_1;
7
6
  const Components_1 = __importDefault(require("../Components"));
8
7
  const Address_edit_data_1 = __importDefault(require("./editForm/Address.edit.data"));
9
8
  const Address_edit_display_1 = __importDefault(require("./editForm/Address.edit.display"));
@@ -31,3 +30,4 @@ function default_1(...extend) {
31
30
  },
32
31
  ], ...extend);
33
32
  }
33
+ exports.default = default_1;
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import("@formio/core").Component[];
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -3,7 +3,6 @@ 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.default = default_1;
7
6
  const Components_1 = __importDefault(require("../Components"));
8
7
  const Button_edit_display_1 = __importDefault(require("./editForm/Button.edit.display"));
9
8
  /**
@@ -27,3 +26,4 @@ function default_1(...extend) {
27
26
  },
28
27
  ], ...extend);
29
28
  }
29
+ exports.default = default_1;
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import("@formio/core").Component[];
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -3,7 +3,6 @@ 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.default = default_1;
7
6
  const Components_1 = __importDefault(require("../Components"));
8
7
  const Checkbox_edit_data_1 = __importDefault(require("./editForm/Checkbox.edit.data"));
9
8
  const Checkbox_edit_display_1 = __importDefault(require("./editForm/Checkbox.edit.display"));
@@ -29,3 +28,4 @@ function default_1(...extend) {
29
28
  },
30
29
  ], ...extend);
31
30
  }
31
+ exports.default = default_1;
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import("@formio/core").Component[];
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -3,7 +3,6 @@ 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.default = default_1;
7
6
  const NestedComponent_form_1 = __importDefault(require("../_classes/nested/NestedComponent.form"));
8
7
  const Columns_edit_display_1 = __importDefault(require("./editForm/Columns.edit.display"));
9
8
  /**
@@ -19,3 +18,4 @@ function default_1(...extend) {
19
18
  },
20
19
  ], ...extend);
21
20
  }
21
+ exports.default = default_1;
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import("@formio/core").Component[];
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -3,7 +3,6 @@ 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.default = default_1;
7
6
  const Components_1 = __importDefault(require("../Components"));
8
7
  const Container_edit_display_1 = __importDefault(require("./editForm/Container.edit.display"));
9
8
  const Container_edit_data_1 = __importDefault(require("./editForm/Container.edit.data"));
@@ -24,3 +23,4 @@ function default_1(...extend) {
24
23
  },
25
24
  ], ...extend);
26
25
  }
26
+ exports.default = default_1;
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import("@formio/core").Component[];
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -3,7 +3,6 @@ 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.default = default_1;
7
6
  const Components_1 = __importDefault(require("../Components"));
8
7
  const Content_edit_display_1 = __importDefault(require("./editForm/Content.edit.display"));
9
8
  const Content_edit_logic_1 = __importDefault(require("./editForm/Content.edit.logic"));
@@ -46,3 +45,4 @@ function default_1(...extend) {
46
45
  }].concat(editForm.components);
47
46
  return editForm;
48
47
  }
48
+ exports.default = default_1;
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import("@formio/core").Component[];
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -3,7 +3,6 @@ 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.default = default_1;
7
6
  const TextField_form_1 = __importDefault(require("../textfield/TextField.form"));
8
7
  const Currency_edit_display_1 = __importDefault(require("./editForm/Currency.edit.display"));
9
8
  const Currency_edit_data_1 = __importDefault(require("./editForm/Currency.edit.data"));
@@ -49,3 +48,4 @@ function default_1(...extend) {
49
48
  },
50
49
  ], ...extend);
51
50
  }
51
+ exports.default = default_1;
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import("@formio/core").Component[];
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -3,7 +3,6 @@ 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.default = default_1;
7
6
  const Components_1 = __importDefault(require("../Components"));
8
7
  const DataGrid_edit_data_1 = __importDefault(require("./editForm/DataGrid.edit.data"));
9
8
  const DataGrid_edit_display_1 = __importDefault(require("./editForm/DataGrid.edit.display"));
@@ -29,3 +28,4 @@ function default_1(...extend) {
29
28
  },
30
29
  ], ...extend);
31
30
  }
31
+ exports.default = default_1;
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import("@formio/core").Component[];
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -3,7 +3,6 @@ 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.default = default_1;
7
6
  const Components_1 = __importDefault(require("../Components"));
8
7
  const DataMap_edit_data_1 = __importDefault(require("./editForm/DataMap.edit.data"));
9
8
  const DataMap_edit_display_1 = __importDefault(require("./editForm/DataMap.edit.display"));
@@ -24,3 +23,4 @@ function default_1(...extend) {
24
23
  },
25
24
  ], ...extend);
26
25
  }
26
+ exports.default = default_1;
@@ -3,4 +3,4 @@
3
3
  * @param {...any} extend - The components that extend the edit form.
4
4
  * @returns {import('@formio/core').Component[]} - The edit form components.
5
5
  */
6
- export default function _default(...extend: any[]): import("@formio/core").Component[];
6
+ export default function _default(...extend: any[]): import('@formio/core').Component[];
@@ -3,7 +3,6 @@ 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.default = default_1;
7
6
  const Components_1 = __importDefault(require("../Components"));
8
7
  const DateTime_edit_data_1 = __importDefault(require("./editForm/DateTime.edit.data"));
9
8
  const DateTime_edit_date_1 = __importDefault(require("./editForm/DateTime.edit.date"));
@@ -43,3 +42,4 @@ function default_1(...extend) {
43
42
  },
44
43
  ], ...extend);
45
44
  }
45
+ exports.default = default_1;