@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,30 +0,0 @@
1
- import { Component } from '../component/component';
2
- import { Multivalue } from '../multivalue/multivalue';
3
- import { Element } from './../../../element.d';
4
-
5
- export class Input extends Multivalue {
6
- constructor(component: Component | any, options: Object, data: any);
7
- readonly inputInfo: {
8
- id: string | number;
9
- type: string;
10
- changeEvent: string;
11
- content?: any;
12
- attr: any;
13
- };
14
- readonly maskOptions: { label: any; value: any }[];
15
- readonly isMultipleMasksField: boolean;
16
- getMaskByName(maskName: string): any;
17
- setInputMask(input: any, inputMask: any): any;
18
- getMaskOptions(): { label: any; value: any }[];
19
- readonly remainingWords: number;
20
- renderElement(value: any, index: string | number): any;
21
- setCounter(type: string, element: any | Element, count: number, max: number): void;
22
- updateValueAt(value: any, flags: any, index: string | number): void;
23
- getValueAt(index: string | number): any;
24
- updateValue(value: any, flags: any, index: string | number): any;
25
- attach(element: any): any;
26
- attachElement(element: any | Element, index: string | number): void;
27
- readonly widget: any;
28
- createWidget(index: string | number): any;
29
- addFocusBlurEvents(element: any | Element): void;
30
- }
@@ -1,16 +0,0 @@
1
- import { Field } from '../field/field';
2
-
3
- export class Multivalue extends Field {
4
- public dataValue: any;
5
- readonly defaultValue: any;
6
- readonly addAnother: any;
7
- useWrapper(): boolean;
8
- renderRow(value: any, index: any): any;
9
- attach(dom: any): any;
10
- attachElement(element: any, index: number | string): any;
11
- onSelectMaskHandler(event: any): void;
12
- tryAttachMultipleMasksInput(): boolean;
13
- updateMask(input: any, mask: any): void;
14
- addNewValue(value: any): void;
15
- addValue(): void;
16
- }
@@ -1,61 +0,0 @@
1
- import { Field } from '../field/field';
2
- import { Component } from './../component/component.d';
3
-
4
- export class NestedComponent extends Field {
5
- constructor(component: any | Component, options: Object, data: any);
6
- readonly defaultSchema: any;
7
- readonly schema: any;
8
- public collapsed: any | boolean;
9
- public visible: any | boolean;
10
- public parentVisible: boolean;
11
- public disabled: boolean;
12
- public parentDisabled: any | boolean;
13
- readonly ready: any;
14
- public currentForm: any;
15
- public data: any;
16
- getComponents(): any[] | Component[];
17
- getAllComponents(): any[] | Component[];
18
- everyComponent(fn: Function): void;
19
- flattenComponents(): Object;
20
- eachComponent(fn: Function): void;
21
- getComponent(path: string, fn: Function): Object;
22
- getComponentById(id: string, fn: Function): Object;
23
- createComponent(component: any | Component, options: Object, data: any, before: any): any | Object;
24
- getContainer(): any;
25
- readonly componentComponents: any[];
26
- readonly nestedKey: string;
27
- readonly templateName: string;
28
- init(): void;
29
- addComponents(data: any, options: Object): void;
30
- addComponent(component: any, data: Object, before: HTMLElement, noAdd?: any): Component;
31
- render(children: any): any;
32
- renderComponents(components: any): any;
33
- attach(element: any): any;
34
- attachComponents(element: any, components: any | Component[], container: any): any;
35
- removeComponent(component: Component, components: Component[]): any;
36
- removeComponentByKey(key: string, fn: Function): null;
37
- removeComponentById(id: string, fn: Function): null;
38
- updateValue(value: any, flags: any, source: any): any;
39
- hasChanged(): boolean;
40
- checkData(data: any, flags: any, source: any): boolean;
41
- checkModal(isValid: boolean, dirty: boolean): void;
42
- checkConditions(data: any, norecurse?: any): any;
43
- clearOnHide(show: boolean): void;
44
- restoreComponentsContext(): void;
45
- beforePage(next?: any): any;
46
- beforeSubmit(): any;
47
- calculateValue(data: any, flags: any): any;
48
- isLastPage(): boolean;
49
- isValid(data: any, dirty: any): boolean;
50
- checkValidity(data: any, dirty: any): any | boolean;
51
- setPristine(pristine: any): void;
52
- detach(): void;
53
- destroy(): void;
54
- destroyComponents(): void;
55
- readonly errors: any[];
56
- getValue(): any;
57
- resetValue(): void;
58
- readonly dataReady: any;
59
- setNestedValue(component: any | Component, value: any, flags: any | Object, changed: boolean): any;
60
- setValue(value: any, flags: any | Object): boolean;
61
- }
@@ -1,6 +0,0 @@
1
- import { Input } from '../input/input';
2
-
3
- export class WidgetComponent extends Input {
4
- readonly widgetLocale: any;
5
- readonly widgetData: any;
6
- }
@@ -1,69 +0,0 @@
1
- import { ExtendedComponentSchema } from './schema';
2
- import { Component } from './_classes/component/component';
3
- import { ComponentModal } from './_classes/componentmodal/componentmodal';
4
- import { Field } from './_classes/field/field';
5
- import { Input } from './_classes/input/input';
6
- import { Multivalue } from './_classes/multivalue/multivalue';
7
- import { NestedComponent } from './_classes/nested/nestedComponent';
8
- import { WidgetComponent } from './_classes/widgetcomponent/widgetComponent';
9
-
10
- type ClassWithEditForm<C> = C & { editForm: () => { components: ExtendedComponentSchema[] } };
11
-
12
- export namespace Components {
13
- function setComponents(comps: Object): void;
14
- function setComponent(name: string, comp: Object): void;
15
- function addComponent(name: string, comp: Object): void;
16
- function create(component: any, options: Object, data?: any, flag?: any): Object;
17
- let baseEditForm: any;
18
- let EditFormUtils: any;
19
- namespace components {
20
- class base extends Component {}
21
- class componentmodal extends ComponentModal {}
22
- class input extends Input {}
23
- class nested extends NestedComponent {}
24
- class multivalue extends Multivalue {}
25
- class field extends Field {}
26
-
27
- const address: ClassWithEditForm<typeof WidgetComponent>;
28
- const button: ClassWithEditForm<typeof Field>;
29
- const checkbox: ClassWithEditForm<typeof Field>;
30
- const columns: ClassWithEditForm<typeof NestedComponent>;
31
- const container: ClassWithEditForm<typeof NestedComponent>;
32
- const content: ClassWithEditForm<typeof Component>;
33
- const currency: ClassWithEditForm<typeof Input>;
34
- const datagrid: ClassWithEditForm<typeof NestedComponent>;
35
- const datamap: ClassWithEditForm<typeof NestedComponent>;
36
- const datetime: ClassWithEditForm<typeof WidgetComponent>;
37
- const day: ClassWithEditForm<typeof Field>;
38
- const editgrid: ClassWithEditForm<typeof NestedComponent>;
39
- const email: ClassWithEditForm<typeof WidgetComponent>;
40
- const fieldset: ClassWithEditForm<typeof NestedComponent>;
41
- const file: ClassWithEditForm<typeof Field>;
42
- const form: ClassWithEditForm<typeof Component>;
43
- const hidden: ClassWithEditForm<typeof Input>;
44
- const htmlelement: ClassWithEditForm<typeof Component>;
45
- const number: ClassWithEditForm<typeof Input>;
46
- const panel: ClassWithEditForm<typeof NestedComponent>;
47
- const password: ClassWithEditForm<typeof WidgetComponent>;
48
- const phoneNumber: ClassWithEditForm<typeof WidgetComponent>;
49
- const radio: ClassWithEditForm<typeof Field>;
50
- const recaptcha: ClassWithEditForm<typeof Component>;
51
- const resource: ClassWithEditForm<typeof Field>;
52
- const select: ClassWithEditForm<typeof Field>;
53
- const selectboxes: ClassWithEditForm<typeof Field>;
54
- const signature: ClassWithEditForm<typeof Input>;
55
- const sketchpad: ClassWithEditForm<typeof Field>;
56
- const survey: ClassWithEditForm<typeof Field>;
57
- const table: ClassWithEditForm<typeof NestedComponent>;
58
- const tabs: ClassWithEditForm<typeof NestedComponent>;
59
- const tagpad: ClassWithEditForm<typeof NestedComponent>;
60
- const tags: ClassWithEditForm<typeof Input>;
61
- const textarea: ClassWithEditForm<typeof WidgetComponent>;
62
- const textfield: ClassWithEditForm<typeof WidgetComponent>;
63
- const time: ClassWithEditForm<typeof WidgetComponent>;
64
- const tree: ClassWithEditForm<typeof NestedComponent>;
65
- const unknown: ClassWithEditForm<typeof Component>;
66
- const url: ClassWithEditForm<typeof WidgetComponent>;
67
- const well: ClassWithEditForm<typeof NestedComponent>;
68
- }
69
- }
@@ -1,240 +0,0 @@
1
- export interface ComponentSchema<T = any> {
2
- /**
3
- * The type of component
4
- */
5
- type?: string;
6
-
7
- /**
8
- * The data key for this component (how the data is stored in the database, referenced as API key in docs).
9
- */
10
- key?: string;
11
-
12
- /**
13
- * The HTML label to give this component.
14
- */
15
- label?: string;
16
-
17
- /**
18
- * The input placeholder for this component.
19
- */
20
- placeholder?: string;
21
-
22
- /**
23
- * Determines if this component provides an input.
24
- */
25
- input?: boolean;
26
-
27
- /**
28
- * If this component should be included as a column within a submission table.
29
- * Determines if this field will show in the data tables output.
30
- */
31
- tableView?: boolean;
32
-
33
- /**
34
- * If this component should allow an array of values to be captured.
35
- */
36
- multiple?: boolean;
37
-
38
- /**
39
- * If the data of this component should be protected (no GET api requests can see the data)
40
- */
41
- protected?: boolean;
42
-
43
- /**
44
- * The prefix text to put in front of the input
45
- */
46
- prefix?: string;
47
-
48
- /**
49
- * The suffix text to put after the input
50
- */
51
- suffix?: string;
52
-
53
- /**
54
- * The default value of this compoennt.
55
- */
56
- defaultValue?: T;
57
-
58
- /**
59
- * If the value of this field should be cleared when it is conditionally hidden.
60
- */
61
- clearOnHide?: boolean;
62
-
63
- /**
64
- * Validate if the value of this component should be unique within the form.
65
- */
66
- unique?: boolean;
67
-
68
- /**
69
- * If the value of this component should be persisted within the backend api database.
70
- */
71
- persistent?: boolean;
72
-
73
- /**
74
- * Determines if the component should be within the form, but not visible.
75
- * This can be overridden with the conditionals.
76
- */
77
- hidden?: boolean;
78
-
79
- /**
80
- * The validation criteria for this component.
81
- */
82
- validate?: ValidateOptions;
83
-
84
- /**
85
- * Determines when this component should be added to the form for both processing and input.
86
- */
87
- conditional?: ConditionalOptions;
88
-
89
- /**
90
- * Allows customizable errors to be displayed for each component when an error occurs. This is an object with the following keys:
91
- required
92
- min
93
- max
94
- minLength
95
- maxLength
96
- invalid_email
97
- invalid_date
98
- pattern
99
- custom
100
-
101
- An object (keys listed above), values are the strings you wish to display. Each string has the {{ field }} to use within the string. Example.
102
- {"required": "{{ field }} is required. Try again."}
103
- */
104
- errors?: Object;
105
-
106
- /**
107
- * Allows changing the component definition in reaction to data entered in a form. For example, changing a field to required, disabled or hidden when a value is entered.
108
- An array of instances of the Field Logic Schema
109
- Fyi: https://github.com/formio/formio.js/wiki/Field-Logic-Schema
110
- */
111
- logic?: Object[];
112
-
113
- /**
114
- * The custom CSS class to provide to this component.
115
- */
116
- customClass?: string;
117
-
118
- /**
119
- * If true, will show label when component is in a datagrid.
120
- */
121
- dataGridLabel?: boolean;
122
-
123
- labelPosition?: 'top' | 'bottom' | 'left' | 'right';
124
- labelWidth?: number;
125
- labelMargin?: number;
126
- description?: string;
127
- errorLabel?: string;
128
- tooltip?: string;
129
- hideLabel?: boolean;
130
- tabindex?: string;
131
- disabled?: boolean;
132
- autofocus?: boolean;
133
- dbIndex?: boolean;
134
- customDefaultValue?: any;
135
- calculateValue?: any;
136
- allowCalculateOverride?: boolean;
137
- widget?: any; // Input widgets i.e. calendar widget
138
-
139
- /**
140
- * This will refresh this component when this field changes.
141
- */
142
- refreshOn?: string;
143
-
144
- /**
145
- * Determines if we should clear our value when a refresh occurs.
146
- */
147
- clearOnRefresh?: boolean;
148
-
149
- /**
150
- * This will perform the validation on either "change" or "blur" of the input element.
151
- */
152
- validateOn?: 'change' | 'blur';
153
- }
154
-
155
- export type ExtendedComponentSchema<T = any> = ComponentSchema<T> & { [key: string]: any };
156
-
157
- export interface ConditionalOptions {
158
- /** If the field should show if the condition is true */
159
- show?: boolean;
160
- /** The field API key that it should compare its value against to determine if the condition is triggered. */
161
- when?: string;
162
- /** The value that should be checked against the comparison component */
163
- eq?: string;
164
- /** The JSON Logic to determine if this component is conditionally available.
165
- * Fyi: http://jsonlogic.com/
166
- */
167
- json?: Object;
168
- }
169
-
170
- export interface ValidateOptions {
171
- /**
172
- * If this component is required.
173
- */
174
- required?: boolean;
175
-
176
- /**
177
- * For text input, this checks the minimum length of text for valid input
178
- */
179
- minLength?: number;
180
-
181
- /**
182
- * For text input, this checks the maximum length of text for valid input
183
- */
184
- maxLength?: number;
185
-
186
- /**
187
- * For text input, this checks the text agains a Regular expression pattern.
188
- */
189
- pattern?: string;
190
-
191
- /**
192
- * A custom javascript based validation or a JSON object for using JSON Logic
193
- */
194
- custom?: any;
195
-
196
- /**
197
- * If the custom validation should remain private (only the backend will see it and execute it).
198
- */
199
- customPrivate?: boolean;
200
-
201
- /**
202
- * Minimum value for numbers
203
- */
204
- min?: number;
205
-
206
- /**
207
- * Maximum value for numbers
208
- */
209
- max?: number;
210
-
211
- minSelectedCount?: number;
212
- maxSelectedCount?: number;
213
- minWords?: number;
214
- maxWords?: number;
215
- email?: boolean;
216
- url?: boolean;
217
- date?: boolean;
218
- day?: boolean;
219
- json?: string;
220
- mask?: boolean;
221
- minDate?: any;
222
- maxDate?: any;
223
- }
224
-
225
- export interface ElementInfo {
226
- type: string;
227
- component: ExtendedComponentSchema;
228
- changeEvent: string;
229
- attr: any;
230
- content: string;
231
- }
232
-
233
- export interface BuilderInfo {
234
- title: string;
235
- group: string;
236
- icon: string;
237
- documentation?: string;
238
- weight?: number;
239
- schema?: ExtendedComponentSchema;
240
- }
@@ -1,7 +0,0 @@
1
- export class Displays {
2
- static readonly displays: any;
3
- static addDisplay(name: string, display: any): void;
4
- static addDisplays(name: string, display: any): void;
5
- static getDisplay(name: string): any;
6
- static getDisplays(name: string): any;
7
- }
@@ -1,45 +0,0 @@
1
- import { EventEmitter } from './eventEmitter.d';
2
-
3
- export class Element {
4
- options: Object;
5
- id: string;
6
- eventHandlers: any[];
7
- i18next: any;
8
- events: EventEmitter;
9
- defaultMask: any;
10
- inputMasks: any[];
11
- constructor(options: any);
12
- on(event: string, cb: Function, internal: boolean, once?: boolean): any;
13
- once(event: string, cb: Function, internal: boolean): any;
14
- onAny(cb: Function): any;
15
- off(event: string): void;
16
- emit(event: string, data: Object): void;
17
- addEventListener(obj: HTMLElement, type: string, func: Function, persistent?: boolean): any;
18
- removeEventListener(obj: Object, type: any): any;
19
- removeEventListeners(): void;
20
- removeAllEvents(includeExternal: boolean): void;
21
- destroy(): void;
22
- appendTo(element: HTMLElement, container: HTMLElement): any;
23
- prependTo(element: HTMLElement, container: HTMLElement): any;
24
- removeChildFrom(element: HTMLElement, container: HTMLElement): any;
25
- ce(type: string, attr?: Object, children?: HTMLElement | string | Array<HTMLElement | string>): HTMLElement;
26
- appendChild(element: any, child: any): any;
27
- maskPlaceholder(mask: HTMLElement): string;
28
- setInputMask(input: HTMLElement, inputMask: string, placeholder: boolean): void;
29
- t(text: string, params?: Object): string;
30
- text(text: string): Text;
31
- attr(element: HTMLElement, attr: Object): void;
32
- hasClass(element: HTMLElement | any, className: string): boolean;
33
- addClass(element: HTMLElement, className: string): any;
34
- removeClass(element: HTMLElement, className: string): any;
35
- empty(element: HTMLElement): void;
36
- evalContext(additional: any): any;
37
- interpolate(string: any, data: any): any;
38
- evaluate(
39
- func: any,
40
- args: { component: any; form: any; instance: any; row: any; data: any } | any,
41
- ret: any,
42
- tokenize?: any,
43
- ): any;
44
- hook(...args: any[]): any;
45
- }
@@ -1,3 +0,0 @@
1
- export class EventEmitter /* extends EventEmitter3 */ {
2
- constructor(conf: Object);
3
- }
package/types/form.d.ts DELETED
@@ -1,18 +0,0 @@
1
- import { Element } from './element';
2
-
3
- export class Form extends Element {
4
- form: any;
5
- instance: any;
6
- ready: Promise<any>;
7
- constructor(...args: any[]);
8
- create(display: 'wizard' | 'form' | 'pdf'): any;
9
- setForm(formParam: any): any;
10
- setDisplay(display: any): any;
11
- empty(): void;
12
- render(): any | Promise<any>;
13
- static embed(element: any): any;
14
- sanitize(dirty: string): any;
15
- setContent(element: any, content: any): boolean;
16
- build(): Promise<any>;
17
- attach(element: any): any | Promise<any>;
18
- }
@@ -1,6 +0,0 @@
1
- import { Form } from './form';
2
-
3
- export class FormBuilder extends Form {
4
- constructor(element: any, form: any, options: any);
5
- create(display: string): any;
6
- }
package/types/formio.d.ts DELETED
@@ -1,121 +0,0 @@
1
- export class Formio {
2
- constructor(url: string, options?: Object);
3
- public base: string;
4
- public projectsUrl: string;
5
- public projectUrl: string;
6
- public projectId: string;
7
- public formId: string;
8
- public submissionId: string;
9
- public actionsUrl: string;
10
- public actionId: string;
11
- public actionUrl: string;
12
- public vsUrl: string;
13
- public vId: string;
14
- public vUrl: string;
15
- public query: string;
16
- public formUrl?: string;
17
- public formsUrl?: string;
18
- public submissionUrl?: string;
19
- public submissionsUrl?: string;
20
- public token: any | string;
21
- static libraries: any;
22
- static Promise: any;
23
- static fetch: any;
24
- static Headers: any;
25
- static baseUrl: string;
26
- static projectUrl: string;
27
- static authUrl: string;
28
- static projectUrlSet: boolean;
29
- static plugins: any;
30
- static cache: any;
31
- static license: string;
32
- static providers: any;
33
- static events: any; // EventEmitter3
34
- static namespace: string;
35
- static formOnly?: boolean;
36
- static rulesEntities: any;
37
- static options: any;
38
- delete(type: any, opts?: any): any;
39
- index(type: any, query?: any, opts?: any): any;
40
- save(type: any, data: any, opts?: any): any;
41
- load(type: any, query?: any, opts?: any): any;
42
- makeRequest(...args: any[]): any;
43
- loadProject(query?: any, opts?: any): any;
44
- saveProject(data: any, opts?: any): any;
45
- deleteProject(opts?: any): any;
46
- static loadProjects(query?: any, opts?: any): any;
47
- static createForm(element: any, form: string | Object, options?: Object): Promise<any>;
48
- static setBaseUrl(url: string): void;
49
- static setProjectUrl(url: string): void;
50
- static setAuthUrl(url: string): void;
51
- static getToken(options?: any): any;
52
- static makeStaticRequest(url: string, method?: string, data?: any, opts?: Object): any;
53
- static makeRequest(formio?: Formio, type?: string, url?: string, method?: string, data?: any, opts?: Object): any;
54
- static currentUser(formio?: Formio, options?: Object): any;
55
- static logout(formio?: Formio, options?: Object): any;
56
- static clearCache(): void;
57
- static setUser(user: any, opts?: Object): any;
58
- loadForm(query?: any, opts?: Object): any;
59
- loadForms(query?: any, opts?: Object): any;
60
- loadSubmission(query?: any, opts?: Object): any;
61
- loadSubmissions(query?: any, opts?: Object): any;
62
- userPermissions(
63
- user?: any,
64
- form?: any,
65
- submission?: any,
66
- ): Promise<{ create: boolean; read: boolean; edit: boolean; delete: boolean }>;
67
- createform(form: Object): Promise<any>;
68
- saveForm(data: any, opts?: Object): any;
69
- saveSubmission(data: any, opts?: Object): any;
70
- deleteForm(opts?: Object): any;
71
- deleteSubmission(opts?: Object): any;
72
- saveAction(data: any, opts?: any): any;
73
- deleteAction(opts?: any): any;
74
- loadAction(query?: any, opts?: any): any;
75
- loadActions(query?: any, opts?: any): any;
76
- availableActions(): any;
77
- actionInfo(name: any): any;
78
- isObjectId(id: any): any;
79
- getProjectId(): any;
80
- getFormId(): any;
81
- currentUser(options?: Object): any;
82
- accessInfo(): any;
83
- getToken(options?: Object): any;
84
- setToken(token: any, options?: Object): any;
85
- getTempToken(expire: any, allowed: any, options?: Object): any;
86
- getDownloadUrl(form: any): any;
87
- uploadFile(storage: any, file: any, fileName: any, dir: any, progressCallback: any, url: any, options?: Object): any;
88
- downloadFile(file: any, options?: Object): any;
89
- canSubmit(): any;
90
- getUrlParts(url: any): any;
91
- static use(plugin: any): any;
92
- static getUrlParts(url: any, formio?: Formio): any;
93
- static serialize(obj: any, _interpolate: any): any;
94
- static getRequestArgs(formio: Formio, type: string, url: string, method?: string, data?: any, opts?: any): any;
95
- static request(url: any, method?: any, data?: any, header?: any, opts?: any): any;
96
- static setToken(token: string, opts?: any): any;
97
- static getUser(options?: Object): any;
98
- static getBaseUrl(): string;
99
- static setApiUrl(url: string): any;
100
- static getApiUrl(): any;
101
- static setAppUrl(url: string): any;
102
- static getAppUrl(): any;
103
- static getProjectUrl(): any;
104
- static noop(): any;
105
- static identity(value: any): any;
106
- static deregisterPlugin(plugin: any): any;
107
- static registerPlugin(plugin: any, name: string): any;
108
- static getPlugin(name: any | string): any;
109
- static pluginWait(pluginFn: any, ...args: any[]): any;
110
- static pluginGet(pluginFn: any, ...args: any[]): any;
111
- static pluginAlter(pluginFn: any, value: any, ...args: any[]): any;
112
- static accessInfo(formio?: Formio): any;
113
- static pageQuery(): any;
114
- static oAuthCurrentUser(formio?: Formio, token?: any): any;
115
- static samlInit(options?: Object): any;
116
- static oktaInit(options?: Object): any;
117
- static ssoInit(type: any, options?: Object): any;
118
- static requireLibrary(name: any, property: any, src: any, polling?: boolean): any;
119
- static libraryReady(name: string): any;
120
- oauthLogoutURI(uri: string, options?: any): any;
121
- }
package/types/index.d.ts DELETED
@@ -1,18 +0,0 @@
1
- export * from './components/components';
2
- export * from './components/schema';
3
- export * from './form';
4
- export * from './formbuilder';
5
- export * from './formio';
6
- export * from './templates';
7
- export * from './displays';
8
- export * from './widgets';
9
- export * from './utils';
10
- export * from './builders';
11
- export * from './rulesEngine/conjunctions';
12
- export * from './rulesEngine/operators';
13
- export * from './rulesEngine/quckRules';
14
- export * from './rulesEngine/rules';
15
- export * from './rulesEngine/transformers';
16
- export * from './rulesEngine/valueSources';
17
- export * from './providers';
18
- export * from './licenses';
@@ -1,7 +0,0 @@
1
- export class Licenses {
2
- static readonly licenses: any;
3
- static addLicense(name: string, license: any): void;
4
- static removeLicense(name: string): void;
5
- static getLicense(name: string): any;
6
- static getLicenses(): any;
7
- }
@@ -1,8 +0,0 @@
1
- export class Providers {
2
- static readonly providers: any;
3
- static addProvider(type: string, name: string, provider:any): void;
4
- static addProviders(type:string, providers: any): void;
5
- static getProvider(type: string, name: string): any;
6
- static getProviders(type: string): any;
7
- }
8
-
@@ -1,7 +0,0 @@
1
- export class Conjunctions {
2
- static readonly conjunctions: any;
3
- static addConjunction(name: string, conjunction: any): void;
4
- static addConjunctions(conjunctions: any): void;
5
- static getConjunction(name: string): any;
6
- static getConjunctions(): any;
7
- }