@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
@@ -30,8 +30,76 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
30
30
  return (mod && mod.__esModule) ? mod : { "default": mod };
31
31
  };
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.withSwitch = exports.firstNonNil = exports.unfold = exports.bootstrapVersion = exports.uniqueKey = exports.iterateKey = exports.delay = exports.fieldData = exports.getCurrencyAffixes = exports.getNumberDecimalLimit = exports.getNumberSeparators = exports.matchInputMask = exports.unmaskValue = exports.getInputMask = exports.convertFormatToMask = exports.convertFormatToMoment = exports.convertFormatToFlatpickr = exports.getLocaleDateFormatInfo = exports.formatOffset = exports.formatDate = exports.momentDate = exports.loadZones = exports.shouldLoadZones = exports.zonesLoaded = exports.offsetDate = exports.currentTimezone = exports.isValidDate = exports.getDateSetting = exports.guid = exports.uniqueName = exports.convertStringToHTMLElement = exports.unescapeHTML = exports.setActionProperty = exports.checkTrigger = exports.checkCondition = exports.checkJsonConditional = exports.checkCustomConditional = exports.getComponentActualValue = exports.checkSimpleConditional = exports.checkCalculated = exports.isMongoId = exports.boolValue = exports.getScriptPlugin = exports.getElementRect = exports.getPropertyValue = exports.getRandomComponentId = exports.evaluate = exports.moment = exports.ConditionOperators = exports.jsonLogic = void 0;
34
- exports.isSelectResourceWithObjectValue = exports.getItemTemplateKeys = exports.interpolateErrors = exports.getComponentSavedTypes = exports.componentValueTypes = exports._ = exports.getFocusableElements = exports.isInsideScopingComponent = exports.isPromise = exports.getDataParentComponent = exports.getComponentPath = exports.getComponentPathWithoutIndicies = exports.getBrowserInfo = exports.getIEBrowserVersion = exports.round = exports.getStringFromComponentPath = exports.isChildOf = exports.getArrayFromComponentPath = exports.isInputComponent = exports.interpolate = exports.Evaluator = exports.fastCloneDeep = exports.sanitize = exports.translateHTMLTemplate = exports.getContextButtons = exports.getContextComponents = exports.observeOverload = void 0;
33
+ exports.interpolateErrors = exports.componentValueTypes = exports._ = exports.interpolate = exports.Evaluator = exports.firstNonNil = exports.moment = exports.ConditionOperators = exports.jsonLogic = void 0;
34
+ exports.evaluate = evaluate;
35
+ exports.getRandomComponentId = getRandomComponentId;
36
+ exports.getPropertyValue = getPropertyValue;
37
+ exports.getElementRect = getElementRect;
38
+ exports.getScriptPlugin = getScriptPlugin;
39
+ exports.boolValue = boolValue;
40
+ exports.isMongoId = isMongoId;
41
+ exports.checkCalculated = checkCalculated;
42
+ exports.checkSimpleConditional = checkSimpleConditional;
43
+ exports.getComponentActualValue = getComponentActualValue;
44
+ exports.checkCustomConditional = checkCustomConditional;
45
+ exports.checkJsonConditional = checkJsonConditional;
46
+ exports.checkCondition = checkCondition;
47
+ exports.checkTrigger = checkTrigger;
48
+ exports.setActionProperty = setActionProperty;
49
+ exports.removeHTML = removeHTML;
50
+ exports.unescapeHTML = unescapeHTML;
51
+ exports.convertStringToHTMLElement = convertStringToHTMLElement;
52
+ exports.uniqueName = uniqueName;
53
+ exports.guid = guid;
54
+ exports.getDateSetting = getDateSetting;
55
+ exports.isValidDate = isValidDate;
56
+ exports.currentTimezone = currentTimezone;
57
+ exports.offsetDate = offsetDate;
58
+ exports.zonesLoaded = zonesLoaded;
59
+ exports.shouldLoadZones = shouldLoadZones;
60
+ exports.loadZones = loadZones;
61
+ exports.momentDate = momentDate;
62
+ exports.formatDate = formatDate;
63
+ exports.formatOffset = formatOffset;
64
+ exports.getLocaleDateFormatInfo = getLocaleDateFormatInfo;
65
+ exports.convertFormatToFlatpickr = convertFormatToFlatpickr;
66
+ exports.convertFormatToMoment = convertFormatToMoment;
67
+ exports.convertFormatToMask = convertFormatToMask;
68
+ exports.getInputMask = getInputMask;
69
+ exports.unmaskValue = unmaskValue;
70
+ exports.matchInputMask = matchInputMask;
71
+ exports.getNumberSeparators = getNumberSeparators;
72
+ exports.getNumberDecimalLimit = getNumberDecimalLimit;
73
+ exports.getCurrencyAffixes = getCurrencyAffixes;
74
+ exports.fieldData = fieldData;
75
+ exports.delay = delay;
76
+ exports.iterateKey = iterateKey;
77
+ exports.uniqueKey = uniqueKey;
78
+ exports.bootstrapVersion = bootstrapVersion;
79
+ exports.unfold = unfold;
80
+ exports.withSwitch = withSwitch;
81
+ exports.observeOverload = observeOverload;
82
+ exports.getContextComponents = getContextComponents;
83
+ exports.getContextButtons = getContextButtons;
84
+ exports.translateHTMLTemplate = translateHTMLTemplate;
85
+ exports.sanitize = sanitize;
86
+ exports.fastCloneDeep = fastCloneDeep;
87
+ exports.isInputComponent = isInputComponent;
88
+ exports.getArrayFromComponentPath = getArrayFromComponentPath;
89
+ exports.isChildOf = isChildOf;
90
+ exports.getStringFromComponentPath = getStringFromComponentPath;
91
+ exports.round = round;
92
+ exports.getIEBrowserVersion = getIEBrowserVersion;
93
+ exports.getBrowserInfo = getBrowserInfo;
94
+ exports.getComponentPathWithoutIndicies = getComponentPathWithoutIndicies;
95
+ exports.getComponentPath = getComponentPath;
96
+ exports.getDataParentComponent = getDataParentComponent;
97
+ exports.isPromise = isPromise;
98
+ exports.isInsideScopingComponent = isInsideScopingComponent;
99
+ exports.getFocusableElements = getFocusableElements;
100
+ exports.getComponentSavedTypes = getComponentSavedTypes;
101
+ exports.getItemTemplateKeys = getItemTemplateKeys;
102
+ exports.isSelectResourceWithObjectValue = isSelectResourceWithObjectValue;
35
103
  const lodash_1 = __importDefault(require("lodash"));
36
104
  exports._ = lodash_1.default;
37
105
  const fetch_ponyfill_1 = __importDefault(require("fetch-ponyfill"));
@@ -90,7 +158,6 @@ function setPathToComponentAndPerentSchema(component) {
90
158
  function evaluate(func, args, ret, interpolate, options = {}) {
91
159
  return Evaluator_1.Evaluator.evaluate(func, args, ret, interpolate, undefined, options);
92
160
  }
93
- exports.evaluate = evaluate;
94
161
  /**
95
162
  * Returns a random compoennt ID.
96
163
  * @returns {string} - A random component ID.
@@ -98,7 +165,6 @@ exports.evaluate = evaluate;
98
165
  function getRandomComponentId() {
99
166
  return `e${Math.random().toString(36).substring(7)}`;
100
167
  }
101
- exports.getRandomComponentId = getRandomComponentId;
102
168
  /**
103
169
  * Get a property value of an element.
104
170
  * @param {CSSStyleDeclaration} style - The style element to get the property value from.
@@ -110,7 +176,6 @@ function getPropertyValue(style, prop) {
110
176
  value = value ? value.replace(/[^0-9.]/g, '') : '0';
111
177
  return parseFloat(value);
112
178
  }
113
- exports.getPropertyValue = getPropertyValue;
114
179
  /**
115
180
  * Get an elements bounding rectagle.
116
181
  * @param {HTMLElement} element - A DOM element to get the bounding rectangle for.
@@ -125,7 +190,6 @@ function getElementRect(element) {
125
190
  height: getPropertyValue(style, 'height')
126
191
  };
127
192
  }
128
- exports.getElementRect = getElementRect;
129
193
  /**
130
194
  * Get non HTMLElement property in the window object
131
195
  * @param {string} property - The window property to fetch the script plugin from.
@@ -139,7 +203,6 @@ function getScriptPlugin(property) {
139
203
  }
140
204
  return obj;
141
205
  }
142
- exports.getScriptPlugin = getScriptPlugin;
143
206
  /**
144
207
  * Determines the boolean value of a setting.
145
208
  * @param {string|boolean} value - A string or boolean value to convert to boolean.
@@ -156,7 +219,6 @@ function boolValue(value) {
156
219
  return !!value;
157
220
  }
158
221
  }
159
- exports.boolValue = boolValue;
160
222
  /**
161
223
  * Check to see if an ID is a mongoID.
162
224
  * @param {string} text - The text to check if it is a mongoID.
@@ -165,7 +227,6 @@ exports.boolValue = boolValue;
165
227
  function isMongoId(text) {
166
228
  return !!text.toString().match(/^[0-9a-fA-F]{24}$/);
167
229
  }
168
- exports.isMongoId = isMongoId;
169
230
  /**
170
231
  * Checks the calculated value for a provided component and data.
171
232
  * @param {import('@formio/core').Component} component - The component to check for the calculated value.
@@ -184,7 +245,6 @@ function checkCalculated(component, submission, rowData) {
184
245
  }, 'value'));
185
246
  }
186
247
  }
187
- exports.checkCalculated = checkCalculated;
188
248
  /**
189
249
  * Check if a simple conditional evaluates to true.
190
250
  * @param {import('@formio/core').Component} component - The component to check for the conditional.
@@ -236,7 +296,6 @@ function checkSimpleConditional(component, condition, row, data, instance) {
236
296
  return show ? result : !result;
237
297
  }
238
298
  }
239
- exports.checkSimpleConditional = checkSimpleConditional;
240
299
  /**
241
300
  * Returns a components normalized value.
242
301
  * @param {string} compPath - The full path to the component.
@@ -258,7 +317,6 @@ function getComponentActualValue(compPath, data, row) {
258
317
  }
259
318
  return value;
260
319
  }
261
- exports.getComponentActualValue = getComponentActualValue;
262
320
  /**
263
321
  * Check custom javascript conditional.
264
322
  * @param {import('@formio/core').Component} component - The component to check for the conditional.
@@ -283,7 +341,6 @@ function checkCustomConditional(component, custom, row, data, form, variable, on
283
341
  }
284
342
  return value;
285
343
  }
286
- exports.checkCustomConditional = checkCustomConditional;
287
344
  /**
288
345
  * Check a component for JSON conditionals.
289
346
  * @param {import('@formio/core').Component} component - The component
@@ -308,7 +365,6 @@ function checkJsonConditional(component, json, row, data, form, onError) {
308
365
  return onError;
309
366
  }
310
367
  }
311
- exports.checkJsonConditional = checkJsonConditional;
312
368
  /**
313
369
  * Returns the contextual row data for a component.
314
370
  * @param {import('@formio/core').Component} component - The component to get the row data for.
@@ -361,7 +417,6 @@ function checkCondition(component, row, data, form, instance) {
361
417
  // Default to show.
362
418
  return true;
363
419
  }
364
- exports.checkCondition = checkCondition;
365
420
  /**
366
421
  * Test a trigger on a component.
367
422
  * @param {import('@formio/core').Component} component - The component to test the trigger against.
@@ -389,7 +444,6 @@ function checkTrigger(component, trigger, row, data, form, instance) {
389
444
  // If none of the types matched, don't fire the trigger.
390
445
  return false;
391
446
  }
392
- exports.checkTrigger = checkTrigger;
393
447
  /**
394
448
  * Sets a property on a component via an executed Logic action.
395
449
  * @param {import('@formio/core').Component} component - The component to set the property on.
@@ -431,7 +485,15 @@ function setActionProperty(component, action, result, row, data, instance) {
431
485
  }
432
486
  return component;
433
487
  }
434
- exports.setActionProperty = setActionProperty;
488
+ /**
489
+ * Removes HTML tags from string e.g. <div>Hello World</div> => Hello World
490
+ * @param {string} str - The string to remove HTML tags from.
491
+ * @returns {string} - The string without HTML tags.
492
+ */
493
+ function removeHTML(str) {
494
+ const doc = new window.DOMParser().parseFromString(str, 'text/html');
495
+ return (doc.body.textContent || '').trim();
496
+ }
435
497
  /**
436
498
  * Unescape HTML characters like &lt, &gt, &amp and etc.
437
499
  * @param {string} str - The string to unescape.
@@ -441,10 +503,10 @@ function unescapeHTML(str) {
441
503
  if (typeof window === 'undefined' || !('DOMParser' in window)) {
442
504
  return str;
443
505
  }
444
- const doc = new window.DOMParser().parseFromString(str, 'text/html');
445
- return doc.documentElement.textContent;
506
+ const elem = document.createElement('textarea');
507
+ elem.innerHTML = str;
508
+ return elem.value;
446
509
  }
447
- exports.unescapeHTML = unescapeHTML;
448
510
  /**
449
511
  * Make HTML element from string
450
512
  * @param {string} str - The string to convert to an HTML element.
@@ -455,7 +517,6 @@ function convertStringToHTMLElement(str, selector) {
455
517
  const doc = new window.DOMParser().parseFromString(str, 'text/html');
456
518
  return doc.body.querySelector(selector);
457
519
  }
458
- exports.convertStringToHTMLElement = convertStringToHTMLElement;
459
520
  /**
460
521
  * Make a filename guaranteed to be unique.
461
522
  * @param {string} name - The original name of the file.
@@ -484,7 +545,6 @@ function uniqueName(name, template, evalContext) {
484
545
  const uniqueName = `${Evaluator_1.Evaluator.interpolate(template, evalContext)}${extension}`.replace(/[^0-9a-zA-Z.\-_ ]/g, '-');
485
546
  return uniqueName;
486
547
  }
487
- exports.uniqueName = uniqueName;
488
548
  /**
489
549
  * Returns a GUID
490
550
  * @returns {string} - A GUID.
@@ -498,7 +558,6 @@ function guid() {
498
558
  return v.toString(16);
499
559
  });
500
560
  }
501
- exports.guid = guid;
502
561
  /**
503
562
  * Return a translated date setting.
504
563
  * @param {string|Date} date - The date to translate.
@@ -543,7 +602,6 @@ function getDateSetting(date) {
543
602
  }
544
603
  return dateSetting.toDate();
545
604
  }
546
- exports.getDateSetting = getDateSetting;
547
605
  /**
548
606
  * Returns true if the date is a valid date. False otherwise.
549
607
  * @param {Date|string} date - The date to check for validity.
@@ -552,7 +610,6 @@ exports.getDateSetting = getDateSetting;
552
610
  function isValidDate(date) {
553
611
  return lodash_1.default.isDate(date) && !lodash_1.default.isNaN(date.getDate());
554
612
  }
555
- exports.isValidDate = isValidDate;
556
613
  /**
557
614
  * Get the current timezone string.
558
615
  * @returns {string} - The current timezone.
@@ -564,7 +621,6 @@ function currentTimezone() {
564
621
  moment_timezone_1.default.currentTimezone = jstimezonedetect_1.default.determine().name();
565
622
  return moment_timezone_1.default.currentTimezone;
566
623
  }
567
- exports.currentTimezone = currentTimezone;
568
624
  /**
569
625
  * Get an offset date provided a date object and timezone object.
570
626
  * @param {Date} date - The date to offset.
@@ -584,7 +640,6 @@ function offsetDate(date, timezone) {
584
640
  abbr: dateMoment.format('z')
585
641
  };
586
642
  }
587
- exports.offsetDate = offsetDate;
588
643
  /**
589
644
  * Returns if the zones are loaded.
590
645
  * @returns {boolean} - TRUE if the zones are loaded; FALSE otherwise.
@@ -592,7 +647,6 @@ exports.offsetDate = offsetDate;
592
647
  function zonesLoaded() {
593
648
  return moment_timezone_1.default.zonesLoaded;
594
649
  }
595
- exports.zonesLoaded = zonesLoaded;
596
650
  /**
597
651
  * Returns if we should load the zones.
598
652
  * @param {string} timezone - The timezone to check if we should load the zones.
@@ -604,7 +658,6 @@ function shouldLoadZones(timezone) {
604
658
  }
605
659
  return true;
606
660
  }
607
- exports.shouldLoadZones = shouldLoadZones;
608
661
  /**
609
662
  * Externally load the timezone data.
610
663
  * @param {string} url - The URL to load the timezone data from.
@@ -631,7 +684,6 @@ function loadZones(url, timezone) {
631
684
  }
632
685
  }));
633
686
  }
634
- exports.loadZones = loadZones;
635
687
  /**
636
688
  * Get the moment date object for translating dates with timezones.
637
689
  * @param {string|Date} value - The value to convert into a moment date.
@@ -652,7 +704,6 @@ function momentDate(value, format, timezone) {
652
704
  }
653
705
  return momentDate;
654
706
  }
655
- exports.momentDate = momentDate;
656
707
  /**
657
708
  * Format a date provided a value, format, and timezone object.
658
709
  * @param {string} timezonesUrl - The URL to load the timezone data from.
@@ -691,7 +742,6 @@ function formatDate(timezonesUrl, value, format, timezone, flatPickrInputFormat)
691
742
  return momentDate.format(convertFormatToMoment(format));
692
743
  }
693
744
  }
694
- exports.formatDate = formatDate;
695
745
  /**
696
746
  * Pass a format function to format within a timezone.
697
747
  * @param {string} timezonesUrl - The URL to load the timezone data from.
@@ -718,7 +768,6 @@ function formatOffset(timezonesUrl, formatFn, date, format, timezone) {
718
768
  return formatFn(date, format);
719
769
  }
720
770
  }
721
- exports.formatOffset = formatOffset;
722
771
  /**
723
772
  * Returns the local date format information.
724
773
  * @param {Intl.LocalesArgument} locale - The locale to get the date format for.
@@ -732,7 +781,6 @@ function getLocaleDateFormatInfo(locale) {
732
781
  formatInfo.dayFirst = localDateString.slice(0, 2) === day.toString();
733
782
  return formatInfo;
734
783
  }
735
- exports.getLocaleDateFormatInfo = getLocaleDateFormatInfo;
736
784
  /**
737
785
  * Convert the format from the angular-datepicker module to flatpickr format.
738
786
  * @param {string} format - The format to convert.
@@ -764,7 +812,6 @@ function convertFormatToFlatpickr(format) {
764
812
  .replace('ss', 'S')
765
813
  .replace(/a/g, 'K');
766
814
  }
767
- exports.convertFormatToFlatpickr = convertFormatToFlatpickr;
768
815
  /**
769
816
  * Convert the format from the angular-datepicker module to moment format.
770
817
  * @param {string} format - The format to convert.
@@ -783,7 +830,6 @@ function convertFormatToMoment(format) {
783
830
  // Unix Timestamp
784
831
  .replace(/U/g, 'X');
785
832
  }
786
- exports.convertFormatToMoment = convertFormatToMoment;
787
833
  /**
788
834
  * Convert the format from the angular-datepicker module to mask format.
789
835
  * @param {string} format - The format to convert.
@@ -804,7 +850,6 @@ function convertFormatToMask(format) {
804
850
  // AM/PM conversion.
805
851
  .replace(/a/g, 'AA');
806
852
  }
807
- exports.convertFormatToMask = convertFormatToMask;
808
853
  /**
809
854
  * Returns an input mask that is compatible with the input mask library.
810
855
  * @param {string} mask - The Form.io input mask.
@@ -847,7 +892,6 @@ function getInputMask(mask, placeholderChar) {
847
892
  }
848
893
  return maskArray;
849
894
  }
850
- exports.getInputMask = getInputMask;
851
895
  /**
852
896
  * Unmasks a value using the provided mask and placeholder characters.
853
897
  * @param {string} value - The value to unmask.
@@ -870,7 +914,6 @@ function unmaskValue(value, mask, placeholderChar) {
870
914
  unmaskedValue = unmaskedValue.join('').replace(placeholderChar, '');
871
915
  return unmaskedValue;
872
916
  }
873
- exports.unmaskValue = unmaskValue;
874
917
  /**
875
918
  * Returns true if the value matches the input mask format.
876
919
  * @param {string} value - The value to check.
@@ -894,7 +937,6 @@ function matchInputMask(value, inputMask) {
894
937
  }
895
938
  return true;
896
939
  }
897
- exports.matchInputMask = matchInputMask;
898
940
  /**
899
941
  * Returns the number separators (i.e. 1,000) for the provided language.
900
942
  * @param {string} lang - The language code to get the number separators for.
@@ -914,7 +956,6 @@ function getNumberSeparators(lang = 'en') {
914
956
  decimalSeparator: (delimeters.length > 2) ? delimeters[2] : '.',
915
957
  };
916
958
  }
917
- exports.getNumberSeparators = getNumberSeparators;
918
959
  /**
919
960
  * Returns the number for the maximum amount of decimal places for a number.
920
961
  * @param {import('@formio/core').Component} component - The component to check for decimal limits.
@@ -936,7 +977,6 @@ function getNumberDecimalLimit(component, defaultLimit) {
936
977
  }
937
978
  return decimalLimit;
938
979
  }
939
- exports.getNumberDecimalLimit = getNumberDecimalLimit;
940
980
  /**
941
981
  * Returns the currency affixes for a specific language.
942
982
  * @param {object} arg0 - The arguments object.
@@ -965,7 +1005,6 @@ function getCurrencyAffixes({ currency, decimalLimit, decimalSeparator, lang, })
965
1005
  suffix: (parts === null || parts === void 0 ? void 0 : parts[2]) || ''
966
1006
  };
967
1007
  }
968
- exports.getCurrencyAffixes = getCurrencyAffixes;
969
1008
  /**
970
1009
  * Fetch the field data provided a component.
971
1010
  * @param {import('@formio/core').DataObject} data - The data object to fetch the field data from.
@@ -1014,7 +1053,6 @@ function fieldData(data, component) {
1014
1053
  return data[component.key];
1015
1054
  }
1016
1055
  }
1017
- exports.fieldData = fieldData;
1018
1056
  /**
1019
1057
  * Delays function execution with possibility to execute function synchronously or cancel it.
1020
1058
  * @param {Function} fn - Function to delay
@@ -1042,7 +1080,6 @@ function delay(fn, delay = 0, ...args) {
1042
1080
  earlyCall.cancel = cancel;
1043
1081
  return earlyCall;
1044
1082
  }
1045
- exports.delay = delay;
1046
1083
  /**
1047
1084
  * Iterate the given key to make it unique.
1048
1085
  * @param {string} key
@@ -1058,7 +1095,6 @@ function iterateKey(key) {
1058
1095
  return Number(suffix) + 1;
1059
1096
  });
1060
1097
  }
1061
- exports.iterateKey = iterateKey;
1062
1098
  /**
1063
1099
  * Determines a unique key within a map provided the base key.
1064
1100
  * @param {Record<string, string>} map - The map to check for uniqueness.
@@ -1072,7 +1108,6 @@ function uniqueKey(map, base) {
1072
1108
  }
1073
1109
  return newKey;
1074
1110
  }
1075
- exports.uniqueKey = uniqueKey;
1076
1111
  /**
1077
1112
  * Determines the major version number of bootstrap.
1078
1113
  * @param {object} options - The options to check for bootstrap version.
@@ -1091,7 +1126,6 @@ function bootstrapVersion(options) {
1091
1126
  }
1092
1127
  return 0;
1093
1128
  }
1094
- exports.bootstrapVersion = bootstrapVersion;
1095
1129
  /**
1096
1130
  * Retrun provided argument.
1097
1131
  * If argument is a function, returns the result of a function call.
@@ -1104,7 +1138,6 @@ function unfold(e) {
1104
1138
  }
1105
1139
  return e;
1106
1140
  }
1107
- exports.unfold = unfold;
1108
1141
  /**
1109
1142
  * Map values through unfold and return first non-nil value.
1110
1143
  * @param {Array<T>} collection - The collection to map through unfold.;
@@ -1140,7 +1173,6 @@ function withSwitch(a, b) {
1140
1173
  }
1141
1174
  return [get, toggle];
1142
1175
  }
1143
- exports.withSwitch = withSwitch;
1144
1176
  /**
1145
1177
  * Create a function that will call the provided function only the provided limit.
1146
1178
  * @param {Function} callback - The callback to call.
@@ -1168,7 +1200,6 @@ function observeOverload(callback, options = {}) {
1168
1200
  }
1169
1201
  };
1170
1202
  }
1171
- exports.observeOverload = observeOverload;
1172
1203
  /**
1173
1204
  * Returns the components that are provided within an evaluation context.
1174
1205
  * @param {any} context - The evaluation context to get the components from.
@@ -1189,7 +1220,6 @@ function getContextComponents(context, excludeNested, excludedTypes = []) {
1189
1220
  });
1190
1221
  return values;
1191
1222
  }
1192
- exports.getContextComponents = getContextComponents;
1193
1223
  /**
1194
1224
  * Returns the button components that are within an evaluation context.
1195
1225
  * @param {any} context - The evaluation context to get the components from.
@@ -1207,7 +1237,6 @@ function getContextButtons(context) {
1207
1237
  });
1208
1238
  return values;
1209
1239
  }
1210
- exports.getContextButtons = getContextButtons;
1211
1240
  // Tags that could be in text, that should be ommited or handled in a special way
1212
1241
  const inTextTags = ['#text', 'A', 'B', 'EM', 'I', 'SMALL', 'STRONG', 'SUB', 'SUP', 'INS', 'DEL', 'MARK', 'CODE'];
1213
1242
  /**
@@ -1279,7 +1308,6 @@ function translateHTMLTemplate(template, translate) {
1279
1308
  }
1280
1309
  return template;
1281
1310
  }
1282
- exports.translateHTMLTemplate = translateHTMLTemplate;
1283
1311
  /**
1284
1312
  * Sanitize an html string.
1285
1313
  * @param {string} string - The string to sanitize.
@@ -1330,7 +1358,6 @@ function sanitize(string, options) {
1330
1358
  }
1331
1359
  return dompurify_1.default.sanitize(string, sanitizeOptions);
1332
1360
  }
1333
- exports.sanitize = sanitize;
1334
1361
  /**
1335
1362
  * Fast cloneDeep for JSON objects only.
1336
1363
  * @param {any} obj - The object to perform a fast clone deep against.
@@ -1339,7 +1366,6 @@ exports.sanitize = sanitize;
1339
1366
  function fastCloneDeep(obj) {
1340
1367
  return obj ? JSON.parse(JSON.stringify(obj)) : obj;
1341
1368
  }
1342
- exports.fastCloneDeep = fastCloneDeep;
1343
1369
  /**
1344
1370
  * Returns if the component is an input component.
1345
1371
  * @param {import('@formio/core').Component} componentJson - The JSON of a component.
@@ -1364,7 +1390,6 @@ function isInputComponent(componentJson) {
1364
1390
  return true;
1365
1391
  }
1366
1392
  }
1367
- exports.isInputComponent = isInputComponent;
1368
1393
  /**
1369
1394
  * Takes a component path, and returns a component path array.
1370
1395
  * @param {string} pathStr - The path string to convert to an array.
@@ -1383,7 +1408,6 @@ function getArrayFromComponentPath(pathStr) {
1383
1408
  .split('.')
1384
1409
  .map(part => lodash_1.default.defaultTo(lodash_1.default.toNumber(part), part));
1385
1410
  }
1386
- exports.getArrayFromComponentPath = getArrayFromComponentPath;
1387
1411
  /**
1388
1412
  * Returns true if the component is a child of the parent.
1389
1413
  * @param {any} child - The child component to check.
@@ -1399,7 +1423,6 @@ function isChildOf(child, parent) {
1399
1423
  }
1400
1424
  return false;
1401
1425
  }
1402
- exports.isChildOf = isChildOf;
1403
1426
  /**
1404
1427
  * Takes an array of component path indexes, and returns a string version of that array.
1405
1428
  * @param {Array<number>} path - The path array to convert to a string.
@@ -1420,7 +1443,6 @@ function getStringFromComponentPath(path) {
1420
1443
  });
1421
1444
  return strPath;
1422
1445
  }
1423
- exports.getStringFromComponentPath = getStringFromComponentPath;
1424
1446
  /**
1425
1447
  * Takes a number and rounds it to the provided precision amount.
1426
1448
  * @param {number} number - The number to round.
@@ -1433,7 +1455,6 @@ function round(number, precision) {
1433
1455
  }
1434
1456
  return number.toString();
1435
1457
  }
1436
- exports.round = round;
1437
1458
  /**
1438
1459
  * Check for Internet Explorer browser version
1439
1460
  * @returns {(number|null)} - The IE browser version or null if not IE
@@ -1442,7 +1463,6 @@ function getIEBrowserVersion() {
1442
1463
  const { ie, version } = getBrowserInfo();
1443
1464
  return ie ? version : null;
1444
1465
  }
1445
- exports.getIEBrowserVersion = getIEBrowserVersion;
1446
1466
  /**
1447
1467
  * Get browser name and version (modified from 'jquery-browser-plugin')
1448
1468
  * @returns {object} -- {{browser name, version, isWebkit?}}
@@ -1493,7 +1513,6 @@ function getBrowserInfo() {
1493
1513
  }
1494
1514
  return browser;
1495
1515
  }
1496
- exports.getBrowserInfo = getBrowserInfo;
1497
1516
  /**
1498
1517
  * Takes a component path, which may include array indicies (i.e. [0][1]), and returns the compoennt path without the indicies.
1499
1518
  * @param {string} path - The path to remove the indicies from.
@@ -1502,7 +1521,6 @@ exports.getBrowserInfo = getBrowserInfo;
1502
1521
  function getComponentPathWithoutIndicies(path = '') {
1503
1522
  return path.replace(/\[\d+\]/, '');
1504
1523
  }
1505
- exports.getComponentPathWithoutIndicies = getComponentPathWithoutIndicies;
1506
1524
  /**
1507
1525
  * Returns a path to the component which based on its schema
1508
1526
  * @param {import('@formio/core').Component} component - Component containing link to its parent's schema in the 'parent' property
@@ -1517,7 +1535,6 @@ function getComponentPath(component, path = '') {
1517
1535
  path = component.isInputComponent || component.input === true ? `${component.key}${path ? '.' : ''}${path}` : path;
1518
1536
  return getComponentPath(component.parent, path);
1519
1537
  }
1520
- exports.getComponentPath = getComponentPath;
1521
1538
  /**
1522
1539
  * Returns a parent component of the passed component instance skipping all the Layout components
1523
1540
  * @param {Component} componentInstance - The component to check for the parent.
@@ -1535,7 +1552,6 @@ function getDataParentComponent(componentInstance) {
1535
1552
  return getDataParentComponent(parent);
1536
1553
  }
1537
1554
  }
1538
- exports.getDataParentComponent = getDataParentComponent;
1539
1555
  /**
1540
1556
  * Returns whether the value is a promise
1541
1557
  * @param {any} value - The value to check
@@ -1547,7 +1563,6 @@ function isPromise(value) {
1547
1563
  && typeof value.then === 'function'
1548
1564
  && Object.prototype.toString.call(value) === '[object Promise]';
1549
1565
  }
1550
- exports.isPromise = isPromise;
1551
1566
  /**
1552
1567
  * Determines if the component has a scoping parent in tree (a component which scopes its children and manages its
1553
1568
  * changes by itself, e.g. EditGrid)
@@ -1568,7 +1583,6 @@ function isInsideScopingComponent(componentInstance, firstPass = true) {
1568
1583
  }
1569
1584
  return false;
1570
1585
  }
1571
- exports.isInsideScopingComponent = isInsideScopingComponent;
1572
1586
  /**
1573
1587
  * Returns all the focusable elements within the provided dom element.
1574
1588
  * @param {HTMLElement} element - The element to get the focusable elements from.
@@ -1579,7 +1593,6 @@ function getFocusableElements(element) {
1579
1593
  textarea:not([disabled]), button:not([disabled]), [href]`;
1580
1594
  return element.querySelectorAll(focusableSelector);
1581
1595
  }
1582
- exports.getFocusableElements = getFocusableElements;
1583
1596
  exports.componentValueTypes = {
1584
1597
  number: 'number',
1585
1598
  string: 'string',
@@ -1604,7 +1617,6 @@ function getComponentSavedTypes(fullSchema) {
1604
1617
  }
1605
1618
  return null;
1606
1619
  }
1607
- exports.getComponentSavedTypes = getComponentSavedTypes;
1608
1620
  /**
1609
1621
  * Interpolates @formio/core errors so that they are compatible with the renderer
1610
1622
  * @param {Component} component - The component to interpolate the errors for
@@ -1642,7 +1654,6 @@ function getItemTemplateKeys(template) {
1642
1654
  }
1643
1655
  return templateKeys;
1644
1656
  }
1645
- exports.getItemTemplateKeys = getItemTemplateKeys;
1646
1657
  /**
1647
1658
  * Returns if the component is a select resource with an object for its value.
1648
1659
  * @param {import('@formio/core').Component} comp - The component to check.
@@ -1652,4 +1663,3 @@ function isSelectResourceWithObjectValue(comp = {}) {
1652
1663
  const { reference, dataSrc, valueProperty } = comp;
1653
1664
  return reference || (dataSrc === 'resource' && (!valueProperty || valueProperty === 'data'));
1654
1665
  }
1655
- exports.isSelectResourceWithObjectValue = isSelectResourceWithObjectValue;
@@ -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<any> | Promise<void> | undefined;
50
+ ready: Promise<void> | Promise<any> | undefined;
51
51
  destroy: () => void;
52
52
  };
53
53
  init(): void;
54
- ready: Promise<any> | Promise<void> | undefined;
54
+ ready: Promise<void> | Promise<any> | undefined;
55
55
  create(): Promise<any>;
56
56
  setForm(form: any): void;
57
57
  setDisplay(display: any): Promise<any> | undefined;
package/lib/mjs/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: object);
371
+ set form(formParam: string | 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
  /**