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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. package/dist/formio.builder.css +8 -8
  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 +8 -8
  7. package/dist/formio.form.js +24 -24
  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 +8 -8
  12. package/dist/formio.full.js +64 -64
  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 +4 -4
  17. package/dist/formio.min.js +1 -1
  18. package/dist/formio.min.js.LICENSE.txt +1 -1
  19. package/dist/formio.utils.js +2 -2
  20. package/dist/formio.utils.min.js +1 -1
  21. package/dist/formio.utils.min.js.LICENSE.txt +1 -1
  22. package/lib/cjs/Element.d.ts +1 -1
  23. package/lib/cjs/Embed.d.ts +2 -2
  24. package/lib/cjs/Embed.js +10 -10
  25. package/lib/cjs/Form.d.ts +3 -3
  26. package/lib/cjs/FormBuilder.d.ts +42 -3
  27. package/lib/cjs/InlineEmbed.js +2 -2
  28. package/lib/cjs/PDF.d.ts +1 -1
  29. package/lib/cjs/Webform.d.ts +4 -3
  30. package/lib/cjs/Webform.js +2 -1
  31. package/lib/cjs/WebformBuilder.d.ts +1 -1
  32. package/lib/cjs/WebformBuilder.js +8 -2
  33. package/lib/cjs/components/_classes/component/Component.form.d.ts +1 -1
  34. package/lib/cjs/components/_classes/component/Component.form.js +1 -1
  35. package/lib/cjs/components/_classes/component/Component.js +2 -5
  36. package/lib/cjs/components/_classes/component/fixtures/comp6.d.ts +77 -0
  37. package/lib/cjs/components/_classes/component/fixtures/comp6.js +59 -0
  38. package/lib/cjs/components/_classes/component/fixtures/index.d.ts +2 -1
  39. package/lib/cjs/components/_classes/component/fixtures/index.js +3 -1
  40. package/lib/cjs/components/_classes/input/Input.js +6 -4
  41. package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +1 -1
  42. package/lib/cjs/components/_classes/list/ListComponent.form.js +1 -1
  43. package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +7 -7
  44. package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +1 -1
  45. package/lib/cjs/components/_classes/nested/NestedComponent.form.js +1 -1
  46. package/lib/cjs/components/address/Address.form.d.ts +1 -1
  47. package/lib/cjs/components/address/Address.form.js +1 -1
  48. package/lib/cjs/components/button/Button.form.d.ts +1 -1
  49. package/lib/cjs/components/button/Button.form.js +1 -1
  50. package/lib/cjs/components/checkbox/Checkbox.form.d.ts +1 -1
  51. package/lib/cjs/components/checkbox/Checkbox.form.js +1 -1
  52. package/lib/cjs/components/columns/Columns.form.d.ts +1 -1
  53. package/lib/cjs/components/columns/Columns.form.js +1 -1
  54. package/lib/cjs/components/container/Container.form.d.ts +1 -1
  55. package/lib/cjs/components/container/Container.form.js +1 -1
  56. package/lib/cjs/components/content/Content.form.d.ts +1 -1
  57. package/lib/cjs/components/content/Content.form.js +1 -1
  58. package/lib/cjs/components/currency/Currency.form.d.ts +1 -1
  59. package/lib/cjs/components/currency/Currency.form.js +1 -1
  60. package/lib/cjs/components/datagrid/DataGrid.form.d.ts +1 -1
  61. package/lib/cjs/components/datagrid/DataGrid.form.js +1 -1
  62. package/lib/cjs/components/datagrid/fixtures/comp-with-checkboxes.d.ts +29 -0
  63. package/lib/cjs/components/datagrid/fixtures/comp-with-checkboxes.js +36 -0
  64. package/lib/cjs/components/datagrid/fixtures/index.d.ts +2 -1
  65. package/lib/cjs/components/datagrid/fixtures/index.js +3 -1
  66. package/lib/cjs/components/datamap/DataMap.form.d.ts +1 -1
  67. package/lib/cjs/components/datamap/DataMap.form.js +1 -1
  68. package/lib/cjs/components/datetime/DateTime.form.d.ts +1 -1
  69. package/lib/cjs/components/datetime/DateTime.form.js +1 -1
  70. package/lib/cjs/components/day/Day.d.ts +1 -1
  71. package/lib/cjs/components/day/Day.form.d.ts +1 -1
  72. package/lib/cjs/components/day/Day.form.js +1 -1
  73. package/lib/cjs/components/day/Day.js +1 -1
  74. package/lib/cjs/components/day/fixtures/comp7.d.ts +109 -0
  75. package/lib/cjs/components/day/fixtures/comp7.js +109 -0
  76. package/lib/cjs/components/day/fixtures/index.d.ts +2 -1
  77. package/lib/cjs/components/day/fixtures/index.js +3 -1
  78. package/lib/cjs/components/editgrid/EditGrid.form.d.ts +1 -1
  79. package/lib/cjs/components/editgrid/EditGrid.form.js +1 -1
  80. package/lib/cjs/components/email/Email.form.d.ts +1 -1
  81. package/lib/cjs/components/email/Email.form.js +1 -1
  82. package/lib/cjs/components/fieldset/Fieldset.form.d.ts +1 -1
  83. package/lib/cjs/components/fieldset/Fieldset.form.js +1 -1
  84. package/lib/cjs/components/file/File.form.d.ts +1 -1
  85. package/lib/cjs/components/file/File.form.js +1 -1
  86. package/lib/cjs/components/file/File.js +1 -2
  87. package/lib/cjs/components/form/Form.form.d.ts +1 -1
  88. package/lib/cjs/components/form/Form.form.js +1 -1
  89. package/lib/cjs/components/form/Form.js +7 -6
  90. package/lib/cjs/components/hidden/Hidden.form.d.ts +1 -1
  91. package/lib/cjs/components/hidden/Hidden.form.js +1 -1
  92. package/lib/cjs/components/html/HTML.form.d.ts +1 -1
  93. package/lib/cjs/components/html/HTML.form.js +1 -1
  94. package/lib/cjs/components/number/Number.form.d.ts +1 -1
  95. package/lib/cjs/components/number/Number.form.js +1 -1
  96. package/lib/cjs/components/panel/Panel.form.d.ts +1 -1
  97. package/lib/cjs/components/panel/Panel.form.js +1 -1
  98. package/lib/cjs/components/password/Password.form.d.ts +1 -1
  99. package/lib/cjs/components/password/Password.form.js +1 -1
  100. package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +1 -1
  101. package/lib/cjs/components/phonenumber/PhoneNumber.form.js +1 -1
  102. package/lib/cjs/components/radio/Radio.form.d.ts +1 -1
  103. package/lib/cjs/components/radio/Radio.form.js +1 -1
  104. package/lib/cjs/components/radio/Radio.js +3 -2
  105. package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +1 -1
  106. package/lib/cjs/components/recaptcha/ReCaptcha.form.js +1 -1
  107. package/lib/cjs/components/select/Select.form.d.ts +1 -1
  108. package/lib/cjs/components/select/Select.form.js +1 -1
  109. package/lib/cjs/components/select/Select.js +1 -1
  110. package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +1 -1
  111. package/lib/cjs/components/selectboxes/SelectBoxes.form.js +1 -1
  112. package/lib/cjs/components/signature/Signature.form.d.ts +1 -1
  113. package/lib/cjs/components/signature/Signature.form.js +1 -1
  114. package/lib/cjs/components/survey/Survey.form.d.ts +1 -1
  115. package/lib/cjs/components/survey/Survey.form.js +1 -1
  116. package/lib/cjs/components/table/Table.form.d.ts +1 -1
  117. package/lib/cjs/components/table/Table.form.js +1 -1
  118. package/lib/cjs/components/tabs/Tabs.form.d.ts +1 -1
  119. package/lib/cjs/components/tabs/Tabs.form.js +1 -1
  120. package/lib/cjs/components/tags/Tags.form.d.ts +1 -1
  121. package/lib/cjs/components/tags/Tags.form.js +1 -1
  122. package/lib/cjs/components/textarea/TextArea.form.d.ts +1 -1
  123. package/lib/cjs/components/textarea/TextArea.form.js +1 -1
  124. package/lib/cjs/components/textfield/TextField.form.d.ts +1 -1
  125. package/lib/cjs/components/textfield/TextField.form.js +1 -1
  126. package/lib/cjs/components/textfield/TextField.js +3 -1
  127. package/lib/cjs/components/time/Time.form.d.ts +1 -1
  128. package/lib/cjs/components/time/Time.form.js +1 -1
  129. package/lib/cjs/components/unknown/Unknown.form.js +1 -1
  130. package/lib/cjs/components/url/Url.form.d.ts +1 -1
  131. package/lib/cjs/components/url/Url.form.js +1 -1
  132. package/lib/cjs/components/well/Well.form.d.ts +1 -1
  133. package/lib/cjs/components/well/Well.form.js +1 -1
  134. package/lib/cjs/formio.form.js +3 -3
  135. package/lib/cjs/providers/address/AzureAddressProvider.d.ts +1 -1
  136. package/lib/cjs/providers/address/GoogleAddressProvider.js +1 -1
  137. package/lib/cjs/providers/storage/util.js +3 -4
  138. package/lib/cjs/templates/index.d.ts +14 -14
  139. package/lib/cjs/translations/en.d.ts +2 -0
  140. package/lib/cjs/translations/en.js +3 -1
  141. package/lib/cjs/utils/ChoicesWrapper.d.ts +1 -1
  142. package/lib/cjs/utils/ChoicesWrapper.js +13 -2
  143. package/lib/cjs/utils/calendarUtils.js +3 -3
  144. package/lib/cjs/utils/formUtils.d.ts +3 -3
  145. package/lib/cjs/utils/formUtils.js +2 -2
  146. package/lib/cjs/utils/utils.d.ts +20 -14
  147. package/lib/cjs/utils/utils.js +82 -72
  148. package/lib/mjs/Element.d.ts +1 -1
  149. package/lib/mjs/Embed.d.ts +2 -2
  150. package/lib/mjs/Form.d.ts +3 -3
  151. package/lib/mjs/FormBuilder.d.ts +42 -3
  152. package/lib/mjs/PDF.d.ts +1 -1
  153. package/lib/mjs/Webform.d.ts +4 -3
  154. package/lib/mjs/Webform.js +2 -1
  155. package/lib/mjs/WebformBuilder.d.ts +1 -1
  156. package/lib/mjs/WebformBuilder.js +8 -2
  157. package/lib/mjs/components/_classes/component/Component.form.d.ts +1 -1
  158. package/lib/mjs/components/_classes/component/Component.js +2 -5
  159. package/lib/mjs/components/_classes/component/fixtures/comp6.d.ts +77 -0
  160. package/lib/mjs/components/_classes/component/fixtures/comp6.js +57 -0
  161. package/lib/mjs/components/_classes/component/fixtures/index.d.ts +2 -1
  162. package/lib/mjs/components/_classes/component/fixtures/index.js +2 -1
  163. package/lib/mjs/components/_classes/input/Input.js +6 -4
  164. package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +1 -1
  165. package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +7 -7
  166. package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +1 -1
  167. package/lib/mjs/components/address/Address.form.d.ts +1 -1
  168. package/lib/mjs/components/button/Button.form.d.ts +1 -1
  169. package/lib/mjs/components/checkbox/Checkbox.form.d.ts +1 -1
  170. package/lib/mjs/components/columns/Columns.form.d.ts +1 -1
  171. package/lib/mjs/components/container/Container.form.d.ts +1 -1
  172. package/lib/mjs/components/content/Content.form.d.ts +1 -1
  173. package/lib/mjs/components/currency/Currency.form.d.ts +1 -1
  174. package/lib/mjs/components/datagrid/DataGrid.form.d.ts +1 -1
  175. package/lib/mjs/components/datagrid/fixtures/comp-with-checkboxes.d.ts +29 -0
  176. package/lib/mjs/components/datagrid/fixtures/comp-with-checkboxes.js +34 -0
  177. package/lib/mjs/components/datagrid/fixtures/index.d.ts +2 -1
  178. package/lib/mjs/components/datagrid/fixtures/index.js +2 -1
  179. package/lib/mjs/components/datamap/DataMap.form.d.ts +1 -1
  180. package/lib/mjs/components/datetime/DateTime.form.d.ts +1 -1
  181. package/lib/mjs/components/day/Day.d.ts +1 -1
  182. package/lib/mjs/components/day/Day.form.d.ts +1 -1
  183. package/lib/mjs/components/day/Day.js +1 -1
  184. package/lib/mjs/components/day/fixtures/comp7.d.ts +109 -0
  185. package/lib/mjs/components/day/fixtures/comp7.js +107 -0
  186. package/lib/mjs/components/day/fixtures/index.d.ts +2 -1
  187. package/lib/mjs/components/day/fixtures/index.js +2 -1
  188. package/lib/mjs/components/editgrid/EditGrid.form.d.ts +1 -1
  189. package/lib/mjs/components/email/Email.form.d.ts +1 -1
  190. package/lib/mjs/components/fieldset/Fieldset.form.d.ts +1 -1
  191. package/lib/mjs/components/file/File.form.d.ts +1 -1
  192. package/lib/mjs/components/file/File.js +1 -2
  193. package/lib/mjs/components/form/Form.form.d.ts +1 -1
  194. package/lib/mjs/components/form/Form.js +5 -4
  195. package/lib/mjs/components/hidden/Hidden.form.d.ts +1 -1
  196. package/lib/mjs/components/html/HTML.form.d.ts +1 -1
  197. package/lib/mjs/components/number/Number.form.d.ts +1 -1
  198. package/lib/mjs/components/panel/Panel.form.d.ts +1 -1
  199. package/lib/mjs/components/password/Password.form.d.ts +1 -1
  200. package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +1 -1
  201. package/lib/mjs/components/radio/Radio.form.d.ts +1 -1
  202. package/lib/mjs/components/radio/Radio.js +3 -2
  203. package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +1 -1
  204. package/lib/mjs/components/select/Select.form.d.ts +1 -1
  205. package/lib/mjs/components/select/Select.js +2 -2
  206. package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +1 -1
  207. package/lib/mjs/components/signature/Signature.form.d.ts +1 -1
  208. package/lib/mjs/components/survey/Survey.form.d.ts +1 -1
  209. package/lib/mjs/components/table/Table.form.d.ts +1 -1
  210. package/lib/mjs/components/tabs/Tabs.form.d.ts +1 -1
  211. package/lib/mjs/components/tags/Tags.form.d.ts +1 -1
  212. package/lib/mjs/components/textarea/TextArea.form.d.ts +1 -1
  213. package/lib/mjs/components/textfield/TextField.form.d.ts +1 -1
  214. package/lib/mjs/components/textfield/TextField.js +3 -1
  215. package/lib/mjs/components/time/Time.form.d.ts +1 -1
  216. package/lib/mjs/components/url/Url.form.d.ts +1 -1
  217. package/lib/mjs/components/well/Well.form.d.ts +1 -1
  218. package/lib/mjs/providers/address/AzureAddressProvider.d.ts +1 -1
  219. package/lib/mjs/providers/address/GoogleAddressProvider.js +1 -1
  220. package/lib/mjs/templates/index.d.ts +14 -14
  221. package/lib/mjs/translations/en.d.ts +2 -0
  222. package/lib/mjs/translations/en.js +3 -1
  223. package/lib/mjs/utils/ChoicesWrapper.d.ts +1 -1
  224. package/lib/mjs/utils/ChoicesWrapper.js +13 -2
  225. package/lib/mjs/utils/formUtils.d.ts +3 -3
  226. package/lib/mjs/utils/utils.d.ts +20 -14
  227. package/lib/mjs/utils/utils.js +12 -2
  228. package/package.json +11 -11
@@ -3,6 +3,7 @@ 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;
6
7
  const NestedComponent_form_1 = __importDefault(require("../_classes/nested/NestedComponent.form"));
7
8
  const Fieldset_edit_display_1 = __importDefault(require("./editForm/Fieldset.edit.display"));
8
9
  /**
@@ -18,4 +19,3 @@ function default_1(...extend) {
18
19
  },
19
20
  ], ...extend);
20
21
  }
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,6 +3,7 @@ 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;
6
7
  const Components_1 = __importDefault(require("../Components"));
7
8
  const File_edit_data_1 = __importDefault(require("./editForm/File.edit.data"));
8
9
  const File_edit_display_1 = __importDefault(require("./editForm/File.edit.display"));
@@ -35,4 +36,3 @@ function default_1(...extend) {
35
36
  },
36
37
  ], ...extend);
37
38
  }
38
- exports.default = default_1;
@@ -652,8 +652,7 @@ class FileComponent extends Field_1.default {
652
652
  // Check if file with the same name is being uploaded
653
653
  const fileWithSameNameUploading = this.filesToSync.filesToUpload
654
654
  .some(fileToSync => { var _a; return ((_a = fileToSync.file) === null || _a === void 0 ? void 0 : _a.name) === file.name; });
655
- const fileWithSameNameUploaded = this.dataValue
656
- .some(fileStatus => fileStatus.originalName === file.name);
655
+ const fileWithSameNameUploaded = lodash_1.default.some(this.dataValue, fileStatus => fileStatus.originalName === file.name);
657
656
  return fileWithSameNameUploaded || fileWithSameNameUploading
658
657
  ? {
659
658
  status: 'error',
@@ -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,6 +3,7 @@ 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;
6
7
  const NestedComponent_form_1 = __importDefault(require("../_classes/nested/NestedComponent.form"));
7
8
  const Form_edit_display_1 = __importDefault(require("./editForm/Form.edit.display"));
8
9
  const Form_edit_form_1 = __importDefault(require("./editForm/Form.edit.form"));
@@ -32,4 +33,3 @@ function default_1(...extend) {
32
33
  },
33
34
  ], ...extend);
34
35
  }
35
- exports.default = default_1;
@@ -433,7 +433,7 @@ class FormComponent extends Component_1.default {
433
433
  * @returns {Promise} - The promise that resolves when the subform is loaded.
434
434
  */
435
435
  loadSubForm(fromAttach) {
436
- var _a, _b, _c;
436
+ var _a, _b, _c, _d, _e;
437
437
  if (this.builderMode || this.isHidden() || (this.isSubFormLazyLoad() && !fromAttach)) {
438
438
  return Promise.resolve();
439
439
  }
@@ -447,7 +447,7 @@ class FormComponent extends Component_1.default {
447
447
  }
448
448
  else if (this.formSrc) {
449
449
  this.subFormLoading = true;
450
- const options = ((_b = this.root.formio) === null || _b === void 0 ? void 0 : _b.base) && ((_c = this.root.formio) === null || _c === void 0 ? void 0 : _c.projectUrl)
450
+ const options = ((_c = (_b = this.root) === null || _b === void 0 ? void 0 : _b.formio) === null || _c === void 0 ? void 0 : _c.base) && ((_e = (_d = this.root) === null || _d === void 0 ? void 0 : _d.formio) === null || _e === void 0 ? void 0 : _e.projectUrl)
451
451
  ? {
452
452
  base: this.root.formio.base,
453
453
  project: this.root.formio.projectUrl,
@@ -628,15 +628,16 @@ class FormComponent extends Component_1.default {
628
628
  return changed;
629
629
  }
630
630
  setSubFormValue(submission, flags) {
631
- var _a, _b;
631
+ var _a, _b, _c, _d;
632
632
  const shouldLoadSubmissionById = submission
633
633
  && submission._id
634
634
  && this.subForm.formio
635
635
  && lodash_1.default.isEmpty(submission.data);
636
- if (shouldLoadSubmissionById) {
636
+ const shouldLoadDraftById = this.options.saveDraft && lodash_1.default.isEmpty(submission.data) && lodash_1.default.get(this.subForm, 'submission._id');
637
+ if (shouldLoadSubmissionById || shouldLoadDraftById) {
637
638
  const formId = submission.form || this.formObj.form || this.component.form;
638
- const submissionUrl = `${this.subForm.formio.formsUrl}/${formId}/submission/${submission._id}`;
639
- const options = ((_a = this.root.formio) === null || _a === void 0 ? void 0 : _a.base) && ((_b = this.root.formio) === null || _b === void 0 ? void 0 : _b.projectUrl)
639
+ const submissionUrl = `${this.subForm.formio.formsUrl}/${formId}/submission/${submission._id || this.subForm.submission._id}`;
640
+ const options = ((_b = (_a = this.root) === null || _a === void 0 ? void 0 : _a.formio) === null || _b === void 0 ? void 0 : _b.base) && ((_d = (_c = this.root) === null || _c === void 0 ? void 0 : _c.formio) === null || _d === void 0 ? void 0 : _d.projectUrl)
640
641
  ? {
641
642
  base: this.root.formio.base,
642
643
  project: this.root.formio.projectUrl,
@@ -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,6 +3,7 @@ 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;
6
7
  const Components_1 = __importDefault(require("../Components"));
7
8
  const Hidden_edit_display_1 = __importDefault(require("./editForm/Hidden.edit.display"));
8
9
  const Hidden_edit_data_1 = __importDefault(require("./editForm/Hidden.edit.data"));
@@ -31,4 +32,3 @@ function default_1(...extend) {
31
32
  },
32
33
  ], ...extend);
33
34
  }
34
- 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,6 +3,7 @@ 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;
6
7
  const Components_1 = __importDefault(require("../Components"));
7
8
  const HTML_edit_display_1 = __importDefault(require("./editForm/HTML.edit.display"));
8
9
  const HTML_edit_logic_1 = __importDefault(require("./editForm/HTML.edit.logic"));
@@ -31,4 +32,3 @@ function default_1(...extend) {
31
32
  },
32
33
  ], ...extend);
33
34
  }
34
- 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,6 +3,7 @@ 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;
6
7
  const TextField_form_1 = __importDefault(require("../textfield/TextField.form"));
7
8
  const Number_edit_display_1 = __importDefault(require("./editForm/Number.edit.display"));
8
9
  const Number_edit_data_1 = __importDefault(require("./editForm/Number.edit.data"));
@@ -28,4 +29,3 @@ function default_1(...extend) {
28
29
  },
29
30
  ], ...extend);
30
31
  }
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,6 +3,7 @@ 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;
6
7
  const NestedComponent_form_1 = __importDefault(require("../_classes/nested/NestedComponent.form"));
7
8
  const Panel_edit_display_1 = __importDefault(require("./editForm/Panel.edit.display"));
8
9
  const Panel_edit_conditional_1 = __importDefault(require("./editForm/Panel.edit.conditional"));
@@ -23,4 +24,3 @@ function default_1(...extend) {
23
24
  },
24
25
  ], ...extend);
25
26
  }
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,6 +3,7 @@ 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;
6
7
  const TextField_form_1 = __importDefault(require("../textfield/TextField.form"));
7
8
  const Password_edit_display_1 = __importDefault(require("./editForm/Password.edit.display"));
8
9
  const Password_edit_data_1 = __importDefault(require("./editForm/Password.edit.data"));
@@ -28,4 +29,3 @@ function default_1(...extend) {
28
29
  },
29
30
  ], ...extend);
30
31
  }
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,6 +3,7 @@ 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;
6
7
  const TextField_form_1 = __importDefault(require("../textfield/TextField.form"));
7
8
  const PhoneNumber_edit_validation_1 = __importDefault(require("./editForm/PhoneNumber.edit.validation"));
8
9
  /**
@@ -40,4 +41,3 @@ function default_1(...extend) {
40
41
  },
41
42
  ], ...extend);
42
43
  }
43
- 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,6 +3,7 @@ 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;
6
7
  const ListComponent_form_1 = __importDefault(require("../_classes/list/ListComponent.form"));
7
8
  const Radio_edit_data_1 = __importDefault(require("./editForm/Radio.edit.data"));
8
9
  const Radio_edit_display_1 = __importDefault(require("./editForm/Radio.edit.display"));
@@ -28,4 +29,3 @@ function default_1(...extend) {
28
29
  },
29
30
  ], ...extend);
30
31
  }
31
- exports.default = default_1;
@@ -200,7 +200,8 @@ class RadioComponent extends ListComponent_1.default {
200
200
  if (this.viewOnly || !this.refs.input || !this.refs.input.length) {
201
201
  return this.dataValue;
202
202
  }
203
- let value = this.dataValue;
203
+ // If the input type of the component is checkbox the value should be determined by the checkboxes checked property
204
+ let value = this.component.inputType === 'checkbox' ? '' : this.dataValue;
204
205
  this.refs.input.forEach((input, index) => {
205
206
  if (input.checked) {
206
207
  value = (this.isSelectURL && lodash_1.default.isObject(this.loadedOptions[index].value)) ?
@@ -322,7 +323,7 @@ class RadioComponent extends ListComponent_1.default {
322
323
  const value = this.dataValue;
323
324
  this.refs.wrapper.forEach((wrapper, index) => {
324
325
  const input = this.refs.input[index];
325
- const checked = (input.type === 'checkbox') ? value[input.value] : (input.value.toString() === value.toString());
326
+ const checked = (input.type === 'checkbox') ? value[input.value] || input.checked : (input.value.toString() === value.toString());
326
327
  if (checked) {
327
328
  //add class to container when selected
328
329
  this.addClass(wrapper, this.optionSelectedClass);
@@ -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,6 +3,7 @@ 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;
6
7
  const Components_1 = __importDefault(require("../Components"));
7
8
  const ReCaptcha_edit_display_1 = __importDefault(require("./editForm/ReCaptcha.edit.display"));
8
9
  /**
@@ -34,4 +35,3 @@ function default_1(...extend) {
34
35
  },
35
36
  ], ...extend);
36
37
  }
37
- 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,6 +3,7 @@ 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;
6
7
  const ListComponent_form_1 = __importDefault(require("../_classes/list/ListComponent.form"));
7
8
  const Select_edit_data_1 = __importDefault(require("./editForm/Select.edit.data"));
8
9
  const Select_edit_display_1 = __importDefault(require("./editForm/Select.edit.display"));
@@ -28,4 +29,3 @@ function default_1(...extend) {
28
29
  },
29
30
  ], ...extend);
30
31
  }
31
- exports.default = default_1;
@@ -1523,7 +1523,7 @@ class SelectComponent extends ListComponent_1.default {
1523
1523
  const getTemplateValue = (v) => {
1524
1524
  const itemTemplate = this.itemTemplate(v);
1525
1525
  return options.csv && itemTemplate
1526
- ? (0, utils_1.unescapeHTML)(itemTemplate)
1526
+ ? (0, utils_1.removeHTML)(itemTemplate)
1527
1527
  : itemTemplate;
1528
1528
  };
1529
1529
  if (Array.isArray(value)) {
@@ -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,6 +3,7 @@ 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;
6
7
  const Radio_form_1 = __importDefault(require("../radio/Radio.form"));
7
8
  const SelectBoxes_edit_validation_1 = __importDefault(require("./editForm/SelectBoxes.edit.validation"));
8
9
  /**
@@ -27,4 +28,3 @@ function default_1(...extend) {
27
28
  },
28
29
  ], ...extend);
29
30
  }
30
- 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,6 +3,7 @@ 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;
6
7
  const Components_1 = __importDefault(require("../Components"));
7
8
  const Signature_edit_data_1 = __importDefault(require("./editForm/Signature.edit.data"));
8
9
  const Signature_edit_display_1 = __importDefault(require("./editForm/Signature.edit.display"));
@@ -28,4 +29,3 @@ function default_1(...extend) {
28
29
  },
29
30
  ], ...extend);
30
31
  }
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,6 +3,7 @@ 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;
6
7
  const Components_1 = __importDefault(require("../Components"));
7
8
  const Survey_edit_data_1 = __importDefault(require("./editForm/Survey.edit.data"));
8
9
  const Survey_edit_display_1 = __importDefault(require("./editForm/Survey.edit.display"));
@@ -28,4 +29,3 @@ function default_1(...extend) {
28
29
  },
29
30
  ], ...extend);
30
31
  }
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,6 +3,7 @@ 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;
6
7
  const NestedComponent_form_1 = __importDefault(require("../_classes/nested/NestedComponent.form"));
7
8
  const Table_edit_display_1 = __importDefault(require("./editForm/Table.edit.display"));
8
9
  /**
@@ -18,4 +19,3 @@ function default_1(...extend) {
18
19
  },
19
20
  ], ...extend);
20
21
  }
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,6 +3,7 @@ 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;
6
7
  const NestedComponent_form_1 = __importDefault(require("../_classes/nested/NestedComponent.form"));
7
8
  const Tabs_edit_display_1 = __importDefault(require("./editForm/Tabs.edit.display"));
8
9
  /**
@@ -18,4 +19,3 @@ function default_1(...extend) {
18
19
  },
19
20
  ], ...extend);
20
21
  }
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,6 +3,7 @@ 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;
6
7
  const Components_1 = __importDefault(require("../Components"));
7
8
  const Tags_edit_data_1 = __importDefault(require("./editForm/Tags.edit.data"));
8
9
  /**
@@ -18,4 +19,3 @@ function default_1(...extend) {
18
19
  },
19
20
  ], ...extend);
20
21
  }
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,6 +3,7 @@ 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;
6
7
  const TextField_form_1 = __importDefault(require("../textfield/TextField.form"));
7
8
  const TextArea_edit_display_1 = __importDefault(require("./editForm/TextArea.edit.display"));
8
9
  const TextArea_edit_validation_1 = __importDefault(require("./editForm/TextArea.edit.validation"));
@@ -23,4 +24,3 @@ function default_1(...extend) {
23
24
  },
24
25
  ], ...extend);
25
26
  }
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,6 +3,7 @@ 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;
6
7
  const Components_1 = __importDefault(require("../Components"));
7
8
  const TextField_edit_data_1 = __importDefault(require("./editForm/TextField.edit.data"));
8
9
  const TextField_edit_display_1 = __importDefault(require("./editForm/TextField.edit.display"));
@@ -28,4 +29,3 @@ function default_1(...extend) {
28
29
  },
29
30
  ], ...extend);
30
31
  }
31
- exports.default = default_1;
@@ -163,6 +163,9 @@ class TextFieldComponent extends Input_1.default {
163
163
  const maskInput = this.refs.select ? this.refs.select[index] : null;
164
164
  const mask = this.getMaskPattern(value.maskName);
165
165
  if (textInput && maskInput && mask) {
166
+ // We need to set the maskInput (select dropdown) value before calling inputmask.setValue because, this
167
+ // function will trigger a "change" event, which was calling updateValue setting the mask type to an incorrect value.
168
+ maskInput.value = value.maskName;
166
169
  if (textInput.inputmask) {
167
170
  this.setInputMask(textInput, mask);
168
171
  textInput.inputmask.setValue(textValue);
@@ -171,7 +174,6 @@ class TextFieldComponent extends Input_1.default {
171
174
  const placeholderChar = this.placeholderChar;
172
175
  textInput.value = (0, vanilla_text_mask_1.conformToMask)(textValue, FormioUtils.getInputMask(mask), { placeholderChar }).conformedValue;
173
176
  }
174
- maskInput.value = value.maskName;
175
177
  }
176
178
  else {
177
179
  return super.setValueAt(index, textValue, flags);
@@ -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,6 +3,7 @@ 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;
6
7
  const Component_form_1 = __importDefault(require("../_classes/component/Component.form"));
7
8
  const Time_edit_data_1 = __importDefault(require("./editForm/Time.edit.data"));
8
9
  const Time_edit_display_1 = __importDefault(require("./editForm/Time.edit.display"));
@@ -23,4 +24,3 @@ function default_1(...extend) {
23
24
  },
24
25
  ], ...extend);
25
26
  }
26
- exports.default = default_1;
@@ -3,6 +3,7 @@ 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;
6
7
  const Unknown_edit_display_1 = __importDefault(require("./editForm/Unknown.edit.display"));
7
8
  /**
8
9
  * Unknown Component schema.
@@ -26,4 +27,3 @@ function default_1() {
26
27
  ]
27
28
  };
28
29
  }
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,6 +3,7 @@ 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;
6
7
  const TextField_form_1 = __importDefault(require("../textfield/TextField.form"));
7
8
  const Url_edit_display_1 = __importDefault(require("./editForm/Url.edit.display"));
8
9
  const Url_edit_data_1 = __importDefault(require("./editForm/Url.edit.data"));
@@ -28,4 +29,3 @@ function default_1(...extend) {
28
29
  },
29
30
  ], ...extend);
30
31
  }
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,6 +3,7 @@ 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;
6
7
  const NestedComponent_form_1 = __importDefault(require("../_classes/nested/NestedComponent.form"));
7
8
  const Well_edit_display_1 = __importDefault(require("./editForm/Well.edit.display"));
8
9
  /**
@@ -18,4 +19,3 @@ function default_1(...extend) {
18
19
  },
19
20
  ], ...extend);
20
21
  }
21
- exports.default = default_1;
@@ -3,7 +3,9 @@ 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.Webform = exports.EventEmitter = exports.Licenses = exports.Formio = exports.Form = exports.Utils = exports.Templates = exports.Widgets = exports.Providers = exports.Displays = exports.Components = exports.FormioCore = exports.useModule = exports.registerModule = void 0;
6
+ exports.Webform = exports.EventEmitter = exports.Licenses = exports.Formio = exports.Form = exports.Utils = exports.Templates = exports.Widgets = exports.Providers = exports.Displays = exports.Components = exports.FormioCore = void 0;
7
+ exports.registerModule = registerModule;
8
+ exports.useModule = useModule;
7
9
  const lodash_1 = __importDefault(require("lodash"));
8
10
  const Formio_1 = require("./Formio");
9
11
  Object.defineProperty(exports, "Formio", { enumerable: true, get: function () { return Formio_1.Formio; } });
@@ -116,7 +118,6 @@ function registerModule(mod, defaultFn = null, options = {}) {
116
118
  }
117
119
  }
118
120
  }
119
- exports.registerModule = registerModule;
120
121
  /**
121
122
  * @param {Function|null} defaultFn - The default function to call if the module does not have a known key.
122
123
  * @returns {void}
@@ -134,7 +135,6 @@ function useModule(defaultFn = null) {
134
135
  });
135
136
  };
136
137
  }
137
- exports.useModule = useModule;
138
138
  /**
139
139
  * Allows passing in plugins as an array of plugins or a single plugin.
140
140
  *