@formio/js 5.0.0-bb.dev.2 → 5.0.0-bb.dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/dist/formio.embed.js +1 -1
  2. package/dist/formio.embed.min.js +1 -1
  3. package/dist/formio.embed.min.js.LICENSE.txt +1 -1
  4. package/dist/formio.form.js +20 -19
  5. package/dist/formio.form.min.js +1 -1
  6. package/dist/formio.form.min.js.LICENSE.txt +1 -1
  7. package/dist/formio.full.js +20 -19
  8. package/dist/formio.full.min.js +1 -1
  9. package/dist/formio.full.min.js.LICENSE.txt +1 -1
  10. package/dist/formio.js +9 -8
  11. package/dist/formio.min.js +1 -1
  12. package/dist/formio.min.js.LICENSE.txt +1 -1
  13. package/dist/formio.utils.min.js.LICENSE.txt +1 -1
  14. package/lib/cjs/Form.js +1 -18
  15. package/lib/cjs/PDFBuilder.d.ts +1 -1
  16. package/lib/cjs/Webform.d.ts +1 -1
  17. package/lib/cjs/WebformBuilder.d.ts +4 -4
  18. package/lib/cjs/Wizard.d.ts +1 -2
  19. package/lib/cjs/WizardBuilder.d.ts +14 -2
  20. package/lib/cjs/components/Components.d.ts +6 -6
  21. package/lib/cjs/components/_classes/component/Component.d.ts +9 -4
  22. package/lib/cjs/components/_classes/component/Component.form.d.ts +1112 -1
  23. package/lib/cjs/components/_classes/component/Component.js +10 -4
  24. package/lib/cjs/components/_classes/component/editForm/Component.edit.validation.js +8 -0
  25. package/lib/cjs/components/_classes/component/editForm/utils.d.ts +2 -2
  26. package/lib/cjs/components/_classes/input/Input.d.ts +6 -2
  27. package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +1112 -1
  28. package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +1112 -1
  29. package/lib/cjs/components/_classes/nested/NestedComponent.js +2 -2
  30. package/lib/cjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +1 -1
  31. package/lib/cjs/components/address/Address.form.d.ts +1112 -1
  32. package/lib/cjs/components/address/editForm/Address.edit.provider.d.ts +4 -1
  33. package/lib/cjs/components/button/Button.d.ts +1 -1
  34. package/lib/cjs/components/button/Button.form.d.ts +1112 -1
  35. package/lib/cjs/components/checkbox/Checkbox.d.ts +1 -1
  36. package/lib/cjs/components/checkbox/Checkbox.form.d.ts +1112 -1
  37. package/lib/cjs/components/columns/Columns.d.ts +2 -0
  38. package/lib/cjs/components/columns/Columns.form.d.ts +1112 -1
  39. package/lib/cjs/components/container/Container.form.d.ts +1112 -1
  40. package/lib/cjs/components/content/Content.form.d.ts +1112 -1
  41. package/lib/cjs/components/currency/Currency.form.d.ts +1112 -1
  42. package/lib/cjs/components/datagrid/DataGrid.d.ts +3 -3
  43. package/lib/cjs/components/datagrid/DataGrid.form.d.ts +1112 -1
  44. package/lib/cjs/components/datagrid/DataGrid.js +2 -1
  45. package/lib/cjs/components/datagrid/fixtures/comp-with-allow-calculate-override.js +1 -1
  46. package/lib/cjs/components/datagrid/fixtures/index.d.ts +2 -1
  47. package/lib/cjs/components/datagrid/fixtures/index.js +3 -1
  48. package/lib/cjs/components/datagrid/fixtures/two-comp-with-allow-calculate-override.d.ts +53 -0
  49. package/lib/cjs/components/datagrid/fixtures/two-comp-with-allow-calculate-override.js +104 -0
  50. package/lib/cjs/components/datamap/DataMap.d.ts +2 -1
  51. package/lib/cjs/components/datamap/DataMap.form.d.ts +1112 -1
  52. package/lib/cjs/components/datetime/DateTime.form.d.ts +1112 -1
  53. package/lib/cjs/components/day/Day.form.d.ts +1112 -1
  54. package/lib/cjs/components/editgrid/EditGrid.form.d.ts +1112 -1
  55. package/lib/cjs/components/editgrid/EditGrid.js +7 -4
  56. package/lib/cjs/components/editgrid/fixtures/formsWithEditGridAndConditions.d.ts +910 -0
  57. package/lib/cjs/components/editgrid/fixtures/formsWithEditGridAndConditions.js +923 -0
  58. package/lib/cjs/components/email/Email.form.d.ts +1112 -1
  59. package/lib/cjs/components/fieldset/Fieldset.form.d.ts +1112 -1
  60. package/lib/cjs/components/file/File.d.ts +2 -7
  61. package/lib/cjs/components/file/File.form.d.ts +1112 -1
  62. package/lib/cjs/components/file/editForm/File.edit.file.d.ts +4 -1
  63. package/lib/cjs/components/form/Form.d.ts +1 -1
  64. package/lib/cjs/components/form/Form.form.d.ts +1112 -1
  65. package/lib/cjs/components/hidden/Hidden.form.d.ts +1112 -1
  66. package/lib/cjs/components/html/HTML.d.ts +1 -0
  67. package/lib/cjs/components/html/HTML.form.d.ts +1112 -1
  68. package/lib/cjs/components/html/HTML.js +9 -0
  69. package/lib/cjs/components/number/Number.form.d.ts +1112 -1
  70. package/lib/cjs/components/panel/Panel.form.d.ts +1112 -1
  71. package/lib/cjs/components/password/Password.d.ts +2 -0
  72. package/lib/cjs/components/password/Password.form.d.ts +1112 -1
  73. package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +1112 -1
  74. package/lib/cjs/components/radio/Radio.d.ts +1 -1
  75. package/lib/cjs/components/radio/Radio.form.d.ts +1112 -1
  76. package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +1112 -1
  77. package/lib/cjs/components/recaptcha/ReCaptcha.js +3 -3
  78. package/lib/cjs/components/select/Select.d.ts +4 -5
  79. package/lib/cjs/components/select/Select.form.d.ts +1112 -1
  80. package/lib/cjs/components/selectboxes/SelectBoxes.d.ts +2 -7
  81. package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +1112 -1
  82. package/lib/cjs/components/signature/Signature.form.d.ts +1112 -1
  83. package/lib/cjs/components/survey/Survey.d.ts +1 -0
  84. package/lib/cjs/components/survey/Survey.form.d.ts +1112 -1
  85. package/lib/cjs/components/table/Table.d.ts +1 -0
  86. package/lib/cjs/components/table/Table.form.d.ts +1112 -1
  87. package/lib/cjs/components/tabs/Tabs.form.d.ts +1112 -1
  88. package/lib/cjs/components/tags/Tags.form.d.ts +1112 -1
  89. package/lib/cjs/components/textarea/TextArea.d.ts +1 -1
  90. package/lib/cjs/components/textarea/TextArea.form.d.ts +1112 -1
  91. package/lib/cjs/components/textarea/editForm/TextArea.edit.display.d.ts +4 -1
  92. package/lib/cjs/components/textfield/TextField.form.d.ts +1112 -1
  93. package/lib/cjs/components/time/Time.form.d.ts +1112 -1
  94. package/lib/cjs/components/url/Url.form.d.ts +1112 -1
  95. package/lib/cjs/components/well/Well.form.d.ts +1112 -1
  96. package/lib/cjs/formio.form.d.ts +3 -3
  97. package/lib/cjs/formio.form.js +59 -46
  98. package/lib/cjs/providers/address/AddressProvider.d.ts +3 -3
  99. package/lib/cjs/providers/storage/s3.js +1 -29
  100. package/lib/cjs/providers/storage/xhr.d.ts +1 -1
  101. package/lib/cjs/translations/en.d.ts +2 -0
  102. package/lib/cjs/translations/en.js +2 -0
  103. package/lib/cjs/utils/builder.d.ts +1 -1
  104. package/lib/cjs/utils/conditionOperators/ConditionOperator.d.ts +1 -1
  105. package/lib/cjs/utils/conditionOperators/EndsWith.d.ts +1 -1
  106. package/lib/cjs/utils/conditionOperators/GreaterThan.d.ts +1 -1
  107. package/lib/cjs/utils/conditionOperators/GreaterThanOrEqual.d.ts +1 -1
  108. package/lib/cjs/utils/conditionOperators/Includes.d.ts +1 -1
  109. package/lib/cjs/utils/conditionOperators/LessThan.d.ts +1 -1
  110. package/lib/cjs/utils/conditionOperators/LessThanOrEqual.d.ts +1 -1
  111. package/lib/cjs/utils/conditionOperators/StartsWith.d.ts +1 -1
  112. package/lib/cjs/utils/conditionOperators/index.d.ts +2 -2
  113. package/lib/cjs/utils/utils.d.ts +4 -3
  114. package/lib/cjs/validator/Validator.d.ts +8 -3
  115. package/lib/cjs/validator/Validator.js +1 -1
  116. package/lib/mjs/Form.js +1 -18
  117. package/lib/mjs/PDFBuilder.d.ts +1 -1
  118. package/lib/mjs/Webform.d.ts +1 -1
  119. package/lib/mjs/WebformBuilder.d.ts +4 -4
  120. package/lib/mjs/Wizard.d.ts +1 -2
  121. package/lib/mjs/WizardBuilder.d.ts +14 -2
  122. package/lib/mjs/components/Components.d.ts +6 -6
  123. package/lib/mjs/components/_classes/component/Component.d.ts +9 -4
  124. package/lib/mjs/components/_classes/component/Component.form.d.ts +1112 -1
  125. package/lib/mjs/components/_classes/component/Component.js +10 -4
  126. package/lib/mjs/components/_classes/component/editForm/Component.edit.validation.js +8 -0
  127. package/lib/mjs/components/_classes/component/editForm/utils.d.ts +2 -2
  128. package/lib/mjs/components/_classes/input/Input.d.ts +6 -2
  129. package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +1112 -1
  130. package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +1112 -1
  131. package/lib/mjs/components/_classes/nested/NestedComponent.js +2 -2
  132. package/lib/mjs/components/_classes/nestedarray/NestedArrayComponent.d.ts +1 -1
  133. package/lib/mjs/components/address/Address.form.d.ts +1112 -1
  134. package/lib/mjs/components/address/editForm/Address.edit.provider.d.ts +4 -1
  135. package/lib/mjs/components/button/Button.d.ts +1 -1
  136. package/lib/mjs/components/button/Button.form.d.ts +1112 -1
  137. package/lib/mjs/components/checkbox/Checkbox.d.ts +1 -1
  138. package/lib/mjs/components/checkbox/Checkbox.form.d.ts +1112 -1
  139. package/lib/mjs/components/columns/Columns.d.ts +2 -0
  140. package/lib/mjs/components/columns/Columns.form.d.ts +1112 -1
  141. package/lib/mjs/components/container/Container.form.d.ts +1112 -1
  142. package/lib/mjs/components/content/Content.form.d.ts +1112 -1
  143. package/lib/mjs/components/currency/Currency.form.d.ts +1112 -1
  144. package/lib/mjs/components/datagrid/DataGrid.d.ts +3 -3
  145. package/lib/mjs/components/datagrid/DataGrid.form.d.ts +1112 -1
  146. package/lib/mjs/components/datagrid/DataGrid.js +2 -1
  147. package/lib/mjs/components/datagrid/fixtures/comp-with-allow-calculate-override.js +1 -1
  148. package/lib/mjs/components/datagrid/fixtures/index.d.ts +2 -1
  149. package/lib/mjs/components/datagrid/fixtures/index.js +2 -1
  150. package/lib/mjs/components/datagrid/fixtures/two-comp-with-allow-calculate-override.d.ts +53 -0
  151. package/lib/mjs/components/datagrid/fixtures/two-comp-with-allow-calculate-override.js +102 -0
  152. package/lib/mjs/components/datamap/DataMap.d.ts +2 -1
  153. package/lib/mjs/components/datamap/DataMap.form.d.ts +1112 -1
  154. package/lib/mjs/components/datetime/DateTime.form.d.ts +1112 -1
  155. package/lib/mjs/components/day/Day.form.d.ts +1112 -1
  156. package/lib/mjs/components/editgrid/EditGrid.form.d.ts +1112 -1
  157. package/lib/mjs/components/editgrid/EditGrid.js +7 -4
  158. package/lib/mjs/components/editgrid/fixtures/formsWithEditGridAndConditions.d.ts +910 -0
  159. package/lib/mjs/components/editgrid/fixtures/formsWithEditGridAndConditions.js +921 -0
  160. package/lib/mjs/components/email/Email.form.d.ts +1112 -1
  161. package/lib/mjs/components/fieldset/Fieldset.form.d.ts +1112 -1
  162. package/lib/mjs/components/file/File.d.ts +2 -7
  163. package/lib/mjs/components/file/File.form.d.ts +1112 -1
  164. package/lib/mjs/components/file/editForm/File.edit.file.d.ts +4 -1
  165. package/lib/mjs/components/form/Form.d.ts +1 -1
  166. package/lib/mjs/components/form/Form.form.d.ts +1112 -1
  167. package/lib/mjs/components/hidden/Hidden.form.d.ts +1112 -1
  168. package/lib/mjs/components/html/HTML.d.ts +1 -0
  169. package/lib/mjs/components/html/HTML.form.d.ts +1112 -1
  170. package/lib/mjs/components/html/HTML.js +8 -0
  171. package/lib/mjs/components/number/Number.form.d.ts +1112 -1
  172. package/lib/mjs/components/panel/Panel.form.d.ts +1112 -1
  173. package/lib/mjs/components/password/Password.d.ts +2 -0
  174. package/lib/mjs/components/password/Password.form.d.ts +1112 -1
  175. package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +1112 -1
  176. package/lib/mjs/components/radio/Radio.d.ts +1 -1
  177. package/lib/mjs/components/radio/Radio.form.d.ts +1112 -1
  178. package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +1112 -1
  179. package/lib/mjs/components/recaptcha/ReCaptcha.js +3 -3
  180. package/lib/mjs/components/select/Select.d.ts +4 -5
  181. package/lib/mjs/components/select/Select.form.d.ts +1112 -1
  182. package/lib/mjs/components/selectboxes/SelectBoxes.d.ts +2 -7
  183. package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +1112 -1
  184. package/lib/mjs/components/signature/Signature.form.d.ts +1112 -1
  185. package/lib/mjs/components/survey/Survey.d.ts +1 -0
  186. package/lib/mjs/components/survey/Survey.form.d.ts +1112 -1
  187. package/lib/mjs/components/table/Table.d.ts +1 -0
  188. package/lib/mjs/components/table/Table.form.d.ts +1112 -1
  189. package/lib/mjs/components/tabs/Tabs.form.d.ts +1112 -1
  190. package/lib/mjs/components/tags/Tags.form.d.ts +1112 -1
  191. package/lib/mjs/components/textarea/TextArea.d.ts +1 -1
  192. package/lib/mjs/components/textarea/TextArea.form.d.ts +1112 -1
  193. package/lib/mjs/components/textarea/editForm/TextArea.edit.display.d.ts +4 -1
  194. package/lib/mjs/components/textfield/TextField.form.d.ts +1112 -1
  195. package/lib/mjs/components/time/Time.form.d.ts +1112 -1
  196. package/lib/mjs/components/url/Url.form.d.ts +1112 -1
  197. package/lib/mjs/components/well/Well.form.d.ts +1112 -1
  198. package/lib/mjs/formio.form.d.ts +3 -3
  199. package/lib/mjs/formio.form.js +58 -44
  200. package/lib/mjs/providers/address/AddressProvider.d.ts +3 -3
  201. package/lib/mjs/providers/storage/s3.js +1 -6
  202. package/lib/mjs/providers/storage/xhr.d.ts +1 -1
  203. package/lib/mjs/translations/en.d.ts +2 -0
  204. package/lib/mjs/translations/en.js +2 -0
  205. package/lib/mjs/utils/builder.d.ts +1 -1
  206. package/lib/mjs/utils/conditionOperators/ConditionOperator.d.ts +1 -1
  207. package/lib/mjs/utils/conditionOperators/EndsWith.d.ts +1 -1
  208. package/lib/mjs/utils/conditionOperators/GreaterThan.d.ts +1 -1
  209. package/lib/mjs/utils/conditionOperators/GreaterThanOrEqual.d.ts +1 -1
  210. package/lib/mjs/utils/conditionOperators/Includes.d.ts +1 -1
  211. package/lib/mjs/utils/conditionOperators/LessThan.d.ts +1 -1
  212. package/lib/mjs/utils/conditionOperators/LessThanOrEqual.d.ts +1 -1
  213. package/lib/mjs/utils/conditionOperators/StartsWith.d.ts +1 -1
  214. package/lib/mjs/utils/conditionOperators/index.d.ts +2 -2
  215. package/lib/mjs/utils/utils.d.ts +4 -3
  216. package/lib/mjs/validator/Validator.d.ts +8 -3
  217. package/lib/mjs/validator/Validator.js +1 -1
  218. package/package.json +1 -2
  219. package/types/builders.d.ts +0 -7
  220. package/types/components/_classes/component/component.d.ts +0 -174
  221. package/types/components/_classes/componentmodal/componentmodal.d.ts +0 -31
  222. package/types/components/_classes/field/field.d.ts +0 -5
  223. package/types/components/_classes/input/input.d.ts +0 -30
  224. package/types/components/_classes/multivalue/multivalue.d.ts +0 -16
  225. package/types/components/_classes/nested/nestedComponent.d.ts +0 -61
  226. package/types/components/_classes/widgetcomponent/widgetComponent.d.ts +0 -6
  227. package/types/components/components.d.ts +0 -69
  228. package/types/components/schema.d.ts +0 -240
  229. package/types/displays.d.ts +0 -7
  230. package/types/element.d.ts +0 -45
  231. package/types/eventEmitter.d.ts +0 -3
  232. package/types/form.d.ts +0 -18
  233. package/types/formbuilder.d.ts +0 -6
  234. package/types/formio.d.ts +0 -121
  235. package/types/index.d.ts +0 -18
  236. package/types/licenses.d.ts +0 -7
  237. package/types/providers.d.ts +0 -8
  238. package/types/rulesEngine/conjunctions.d.ts +0 -7
  239. package/types/rulesEngine/operators.d.ts +0 -7
  240. package/types/rulesEngine/quckRules.d.ts +0 -7
  241. package/types/rulesEngine/rules.d.ts +0 -7
  242. package/types/rulesEngine/transformers.d.ts +0 -7
  243. package/types/rulesEngine/valueSources.d.ts +0 -7
  244. package/types/templates.d.ts +0 -8
  245. package/types/utils.d.ts +0 -157
  246. package/types/widgets.d.ts +0 -4
@@ -1,7 +0,0 @@
1
- export class Operators {
2
- static readonly operators: any;
3
- static addOperator(name: string, conjunction: any): void;
4
- static addOperators(conjunctions: any): void;
5
- static getOperator(name: string): any;
6
- static getOperators(): any;
7
- }
@@ -1,7 +0,0 @@
1
- export class QuickRules {
2
- static readonly quickRules: any;
3
- static addQuickRule(name: string, conjunction: any): void;
4
- static addQuickRules(conjunctions: any): void;
5
- static getQuickRule(name: string): any;
6
- static getQuickRules(): any;
7
- }
@@ -1,7 +0,0 @@
1
- export class Rules {
2
- static readonly rules: any;
3
- static addRule(name: string, conjunction: any): void;
4
- static addRules(conjunctions: any): void;
5
- static getRule(name: string): any;
6
- static getRules(): any;
7
- }
@@ -1,7 +0,0 @@
1
- export class Transformers {
2
- static readonly transformers: any;
3
- static addTransformer(name: string, conjunction: any): void;
4
- static addTransformers(conjunctions: any): void;
5
- static getTransformer(name: string): any;
6
- static getTransformers(): any;
7
- }
@@ -1,7 +0,0 @@
1
- export class ValueSources {
2
- static readonly valueSources: any;
3
- static addValueSource(name: string, conjunction: any): void;
4
- static addValueSources(conjunctions: any): void;
5
- static getValueSource(name: string): any;
6
- static getValueSources(): any;
7
- }
@@ -1,8 +0,0 @@
1
- export class Templates {
2
- static readonly templates: any;
3
- static addTemplate(name: string, template: any): void;
4
- static setTemplate(name: string, template: any): void;
5
- static current: any;
6
- static readonly defaultTemplates: any;
7
- static framework: any;
8
- }
package/types/utils.d.ts DELETED
@@ -1,157 +0,0 @@
1
- import * as moment from 'moment';
2
-
3
- export type AnyForJSON = { [key: string]: any } | any;
4
-
5
- export namespace Utils {
6
- const ConditionOperators: any;
7
- const componentValueTypes: { [key: string]: string };
8
- const Evaluator: any;
9
- const _: any;
10
- function getComponentSavedTypes(schema: object): Array<any> | null;
11
- function evaluate(
12
- func: any,
13
- args: { component: any; form: any; instance: any; row: any; data: any } | any,
14
- ret: any,
15
- tokenize?: any,
16
- ): any;
17
- function getRandomComponentId(): string;
18
- function getPropertyValue(style: CSSStyleDeclaration, prop: string): number;
19
- function getElementRect(element: any): { x: number; y: number; width: number; height: number };
20
- function boolValue(value: boolean | string): boolean;
21
- function isMongoId(text: any): any;
22
- function checkCalculated(component: { calculateValue?: any; key: any } | any, submission: any, rowData: any): void;
23
- function checkSimpleConditional(
24
- component: any /* unused */,
25
- condition: { eq: any; show: any; when: any } & any,
26
- row: any,
27
- data: any,
28
- instance: any
29
- ): boolean;
30
- function checkCustomConditional(
31
- component: any /* unused */,
32
- custom: string | any,
33
- row: any,
34
- data: any,
35
- form: any,
36
- variable: any,
37
- onError: any,
38
- instance: { evaluate?: any } | any,
39
- ): any;
40
- function checkJsonConditional(
41
- component: { key: string | any } | any,
42
- json: AnyForJSON,
43
- row: any,
44
- data: any,
45
- form: any,
46
- onError: any,
47
- ): any;
48
- function checkCondition(
49
- component: { customConditional: any; conditional: { when: any; json: AnyForJSON } } | any,
50
- row: any,
51
- data: any,
52
- form: any,
53
- instance: any,
54
- ): boolean;
55
- function checkTrigger(
56
- component: any,
57
- trigger: { type: string; simple: any; json: AnyForJSON; javascript: any } | any,
58
- row: any,
59
- data: any,
60
- form: any,
61
- instance: any,
62
- ): boolean | any;
63
- function setActionProperty(
64
- component: any,
65
- action: { property: { type: string | any; value: any } | any; state: boolean | any; text: any },
66
- row: any,
67
- data: any,
68
- result: any,
69
- instance?: { interpolate: (textValue: any, evalData: any) => any | any },
70
- ): any;
71
- function interpolateTemplate(template: string): any;
72
- function addTemplateHash(template: string): number;
73
- function interpolate(rawTemplate: number | string, data: any): any;
74
- function uniqueName(name: string, template: string, evalContext: Object): string;
75
- function guid(): string;
76
- function getDateSetting(date: any): null | Date;
77
- function isValidDate(date: any): boolean;
78
- function currentTimezone(): string;
79
- function offsetDate(date: Date, timezone: string): { date: Date; abbr: string };
80
- function zonesLoaded(): boolean;
81
- function shouldLoadZones(timezone: string): boolean;
82
- function loadZones(timezone?: string): Promise<undefined>;
83
- function momentDate(value: moment.MomentInput, format: string, timezone: string): moment.Moment;
84
- function formatDate(value: moment.MomentInput, format: string, timezone: string): string;
85
- function formatOffset(
86
- formatFn: (date: any, format: any) => string,
87
- date: Date | any,
88
- format: string | any,
89
- timezone: string,
90
- ): string;
91
- function getLocaleDateFormatInfo(locale: string | string[]): { dayFirst: boolean };
92
- function convertFormatToFlatpickr(format: string): string;
93
- function convertFormatToMoment(format: string): string;
94
- function convertFormatToMask(format: string): string;
95
- function getInputMask(mask: string | RegExp[]): RegExp[];
96
- function matchInputMask(value: string | RegExp, inputMask?: string | RegExp): boolean;
97
- function getNumberSeparators(lang: string): { delimiter: string; decimalSeparator: string };
98
- function getNumberDecimalLimit(component: any): number;
99
- function getCurrencyAffixes(input: {
100
- currency: string;
101
- decimalLimit: number;
102
- decimalSeparator: string;
103
- lang: string | string[];
104
- }): { prefix: string; suffix: string };
105
- function fieldData(data: Object, component: { key: string | any[]; multiple: boolean | any } | any): any;
106
- function delay(fn: Function, delay: number, args: any[]): any;
107
- function iterateKey(key: string): string;
108
- function uniqueKey(map: Object, base: string): string;
109
- function bootstrapVersion(options: { bootstrap?: any } | any): number;
110
- function unfold(e: any): any;
111
- const firstNonNil: any;
112
- function withSwitch(a: any, b: any): [Function, Function];
113
- function observeOverload(callback: Function, options?: { limit?: number; delay?: number }): any;
114
- function getContextComponents(context: any, excludeNested?: any, excludedTypes?: any): any;
115
- function sanitize(string: string, options: any): any;
116
-
117
- // Form Utils
118
- function isLayoutComponent(component: { columns: any; rows: any; components: any } | any): boolean;
119
- function eachComponent(components: any[], fn: Function, includeAll?: boolean, path?: string, parent?: Object): any;
120
- function matchComponent(component: any, query: any): boolean;
121
- function getComponent(components: any[], key: string | Object | any, includeAll: boolean): any;
122
- function searchComponents(components: any[], query: any): any;
123
- function findComponent(components: any[], key: any, path: any, fn: Function): boolean;
124
- function removeComponent(components: any[], path: any): void;
125
- function fastCloneDeep(json: any): any;
126
- function generateFormChange(
127
- type: string | any,
128
- data: { schema: any; parent: { key: any } | any; originalComponent: any },
129
- ): {
130
- op: string;
131
- key: any;
132
- container?: any;
133
- index?: number;
134
- component?: any;
135
- patches?: any;
136
- };
137
- function applyFormChanges(form: any, changes: any[]): { form: any; failed: any[] };
138
- function flattenComponents(components: any[], includeAll: boolean): any;
139
- function hasCondition(component: any): boolean;
140
- function parseFloatExt(value: any): number;
141
- function formatAsCurrency(value: any): string;
142
- function escapeRegExCharacters(value: string): string;
143
- function getValue(submission: any, key: string): any;
144
- function getStrings(
145
- form: { components: any[] } | any,
146
- ): { key: any; type?: any; property: string; string: string | any };
147
-
148
- // Builder Utils
149
- namespace BuilderUtils {
150
- function uniquify(container: any[], component: any): boolean;
151
- const additionalShortcuts: { button: ['Enter', 'Esc'] };
152
- function getAlphaShortcuts(): string[];
153
- function getAdditionalShortcuts(type: string): string[];
154
- function getBindedShortcuts(components: any[], input: any): any[];
155
- function getAvailableShortcuts(form: { components: any[] } | any, component: { type: any } | any): string[];
156
- }
157
- }
@@ -1,4 +0,0 @@
1
- export class Widgets {
2
- static readonly calendar: any;
3
- static readonly input: any;
4
- }