@arquimedes.co/eureka-forms 1.9.84-test → 1.9.86-test

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 (217) hide show
  1. package/dist/@Types/@Types.d.ts +2 -0
  2. package/dist/@Types/@Types.js +1 -0
  3. package/dist/@Types/AYFFormStep.d.ts +19 -0
  4. package/dist/@Types/AYFFormStep.js +1 -0
  5. package/dist/@Types/CBRFormStep.d.ts +74 -0
  6. package/dist/@Types/CBRFormStep.js +1 -0
  7. package/dist/@Types/Form.d.ts +65 -0
  8. package/dist/@Types/Form.js +1 -0
  9. package/dist/@Types/FormStep.d.ts +138 -0
  10. package/dist/@Types/FormStep.js +1 -0
  11. package/dist/@Types/GenericFormSteps.d.ts +60 -0
  12. package/dist/@Types/GenericFormSteps.js +1 -0
  13. package/dist/@Types/Organization.d.ts +17 -0
  14. package/dist/@Types/Organization.js +1 -0
  15. package/dist/@Types/index.d.ts +1 -0
  16. package/dist/@Types/index.js +1 -0
  17. package/dist/App.d.ts +62 -0
  18. package/dist/App.js +470 -0
  19. package/dist/App.module.css +34 -0
  20. package/dist/AxiosAPI.d.ts +2 -0
  21. package/dist/AxiosAPI.js +8 -0
  22. package/dist/AxiosWidget.d.ts +2 -0
  23. package/dist/AxiosWidget.js +8 -0
  24. package/dist/FormComponents/Form/ColumnForm/ColumnForm.d.ts +8 -0
  25. package/dist/FormComponents/Form/ColumnForm/ColumnForm.js +379 -0
  26. package/dist/FormComponents/Form/ColumnForm/ColumnForm.module.css +51 -0
  27. package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.d.ts +12 -0
  28. package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.js +31 -0
  29. package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.module.css +64 -0
  30. package/dist/FormComponents/Form/Form.d.ts +42 -0
  31. package/dist/FormComponents/Form/Form.js +147 -0
  32. package/dist/FormComponents/Form/Form.module.css +39 -0
  33. package/dist/FormComponents/Form/StepperForm/StepperForm.d.ts +4 -0
  34. package/dist/FormComponents/Form/StepperForm/StepperForm.js +6 -0
  35. package/dist/FormComponents/Form/StepperForm/StepperForm.module.css +0 -0
  36. package/dist/FormComponents/Section/MaterialSection/MaterialSection.d.ts +4 -0
  37. package/dist/FormComponents/Section/MaterialSection/MaterialSection.js +42 -0
  38. package/dist/FormComponents/Section/MaterialSection/MaterialSection.module.css +8 -0
  39. package/dist/FormComponents/Section/Section.d.ts +39 -0
  40. package/dist/FormComponents/Section/Section.js +23 -0
  41. package/dist/FormComponents/Step/@Construction/CBRElementStep/CBRElementStep.d.ts +8 -0
  42. package/dist/FormComponents/Step/@Construction/CBRElementStep/CBRElementStep.js +139 -0
  43. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/CBRIncidentsStep.d.ts +9 -0
  44. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/CBRIncidentsStep.js +23 -0
  45. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.d.ts +8 -0
  46. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.js +49 -0
  47. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.module.css +60 -0
  48. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.d.ts +11 -0
  49. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.js +121 -0
  50. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.module.css +34 -0
  51. package/dist/FormComponents/Step/@Construction/CBRPropertyStep/CBRPropertyStep.d.ts +8 -0
  52. package/dist/FormComponents/Step/@Construction/CBRPropertyStep/CBRPropertyStep.js +138 -0
  53. package/dist/FormComponents/Step/@Construction/CBRPropertyStep/CBRPropertyStep.module.css +54 -0
  54. package/dist/FormComponents/Step/AYFStepMapper.d.ts +12 -0
  55. package/dist/FormComponents/Step/AYFStepMapper.js +170 -0
  56. package/dist/FormComponents/Step/CBRStepMapper.d.ts +13 -0
  57. package/dist/FormComponents/Step/CBRStepMapper.js +202 -0
  58. package/dist/FormComponents/Step/CheckBoxStep/CheckBoxStep.d.ts +9 -0
  59. package/dist/FormComponents/Step/CheckBoxStep/CheckBoxStep.js +35 -0
  60. package/dist/FormComponents/Step/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.d.ts +4 -0
  61. package/dist/FormComponents/Step/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.js +65 -0
  62. package/dist/FormComponents/Step/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.module.css +37 -0
  63. package/dist/FormComponents/Step/ClassifierSelectorStep/ClassifierSelectorStep.d.ts +9 -0
  64. package/dist/FormComponents/Step/ClassifierSelectorStep/ClassifierSelectorStep.js +35 -0
  65. package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.d.ts +4 -0
  66. package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +121 -0
  67. package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.module.css +25 -0
  68. package/dist/FormComponents/Step/CollapsibleStep/CollapsibleStep.d.ts +9 -0
  69. package/dist/FormComponents/Step/CollapsibleStep/CollapsibleStep.js +37 -0
  70. package/dist/FormComponents/Step/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.d.ts +4 -0
  71. package/dist/FormComponents/Step/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.js +75 -0
  72. package/dist/FormComponents/Step/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.module.css +62 -0
  73. package/dist/FormComponents/Step/DatePickerStep/DatePickerStep.d.ts +11 -0
  74. package/dist/FormComponents/Step/DatePickerStep/DatePickerStep.js +23 -0
  75. package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.d.ts +4 -0
  76. package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js +48 -0
  77. package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.module.css +9 -0
  78. package/dist/FormComponents/Step/EntityValueStep/EntityValuePickerStep.d.ts +15 -0
  79. package/dist/FormComponents/Step/EntityValueStep/EntityValuePickerStep.js +35 -0
  80. package/dist/FormComponents/Step/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.d.ts +4 -0
  81. package/dist/FormComponents/Step/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.js +203 -0
  82. package/dist/FormComponents/Step/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.module.css +25 -0
  83. package/dist/FormComponents/Step/FileUploadStep/FileUploadStep.d.ts +9 -0
  84. package/dist/FormComponents/Step/FileUploadStep/FileUploadStep.js +23 -0
  85. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.d.ts +13 -0
  86. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.js +123 -0
  87. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.module.css +60 -0
  88. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.d.ts +16 -0
  89. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +272 -0
  90. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.module.css +59 -0
  91. package/dist/FormComponents/Step/MapperStep/MapperStep.d.ts +16 -0
  92. package/dist/FormComponents/Step/MapperStep/MapperStep.js +35 -0
  93. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/MapperElement.d.ts +10 -0
  94. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/MapperElement.js +29 -0
  95. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/MapperElement.module.css +60 -0
  96. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/PillElementContainer/PillElementContainer.d.ts +13 -0
  97. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/PillElementContainer/PillElementContainer.js +33 -0
  98. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/PillElementContainer/PillElementContainer.module.css +60 -0
  99. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/MaterialMapperStep.d.ts +15 -0
  100. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/MaterialMapperStep.js +278 -0
  101. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/MaterialMapperStep.module.css +42 -0
  102. package/dist/FormComponents/Step/RatingStep/MaterialRatingStep/MaterialRatingStep.d.ts +4 -0
  103. package/dist/FormComponents/Step/RatingStep/MaterialRatingStep/MaterialRatingStep.js +71 -0
  104. package/dist/FormComponents/Step/RatingStep/MaterialRatingStep/MaterialRatingStep.module.css +30 -0
  105. package/dist/FormComponents/Step/RatingStep/RatingStep.d.ts +9 -0
  106. package/dist/FormComponents/Step/RatingStep/RatingStep.js +23 -0
  107. package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.d.ts +4 -0
  108. package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.js +104 -0
  109. package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.module.css +25 -0
  110. package/dist/FormComponents/Step/SelectorStep/SelectorStep.d.ts +9 -0
  111. package/dist/FormComponents/Step/SelectorStep/SelectorStep.js +35 -0
  112. package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.d.ts +4 -0
  113. package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.js +11 -0
  114. package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.module.css +7 -0
  115. package/dist/FormComponents/Step/SeparatorStep/SeparatorStep.d.ts +9 -0
  116. package/dist/FormComponents/Step/SeparatorStep/SeparatorStep.js +35 -0
  117. package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.d.ts +10 -0
  118. package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.js +241 -0
  119. package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.module.css +9 -0
  120. package/dist/FormComponents/Step/SmartSelectStep/SmartSelectStep.d.ts +33 -0
  121. package/dist/FormComponents/Step/SmartSelectStep/SmartSelectStep.js +23 -0
  122. package/dist/FormComponents/Step/Step.d.ts +11 -0
  123. package/dist/FormComponents/Step/Step.js +108 -0
  124. package/dist/FormComponents/Step/StepFunctions.d.ts +5 -0
  125. package/dist/FormComponents/Step/StepFunctions.js +65 -0
  126. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/DraftEditor.css +96 -0
  127. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.d.ts +13 -0
  128. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.js +213 -0
  129. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.module.css +93 -0
  130. package/dist/FormComponents/Step/TextAreaStep/TextAreaStep.d.ts +10 -0
  131. package/dist/FormComponents/Step/TextAreaStep/TextAreaStep.js +23 -0
  132. package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.d.ts +4 -0
  133. package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.js +76 -0
  134. package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.module.css +9 -0
  135. package/dist/FormComponents/Step/TextInputStep/TextInputStep.d.ts +13 -0
  136. package/dist/FormComponents/Step/TextInputStep/TextInputStep.js +23 -0
  137. package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.d.ts +4 -0
  138. package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.js +20 -0
  139. package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.module.css +19 -0
  140. package/dist/FormComponents/Step/TitleStep/TitleStep.d.ts +9 -0
  141. package/dist/FormComponents/Step/TitleStep/TitleStep.js +35 -0
  142. package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.d.ts +4 -0
  143. package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.js +88 -0
  144. package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.module.css +83 -0
  145. package/dist/FormComponents/Term/Term.d.ts +15 -0
  146. package/dist/FormComponents/Term/Term.js +23 -0
  147. package/dist/Icons/Construction/LeakIcon.d.ts +3 -0
  148. package/dist/Icons/Construction/LeakIcon.js +16 -0
  149. package/dist/Icons/Construction/ProjectIcon.d.ts +3 -0
  150. package/dist/Icons/Construction/ProjectIcon.js +16 -0
  151. package/dist/Icons/Construction/PropertyIcon.d.ts +3 -0
  152. package/dist/Icons/Construction/PropertyIcon.js +16 -0
  153. package/dist/Icons/Construction/SpaceIcon.d.ts +3 -0
  154. package/dist/Icons/Construction/SpaceIcon.js +16 -0
  155. package/dist/Icons/DocumentIcon.d.ts +3 -0
  156. package/dist/Icons/DocumentIcon.js +16 -0
  157. package/dist/Icons/Entities/GenericEntityIcon.d.ts +2 -0
  158. package/dist/Icons/Entities/GenericEntityIcon.js +17 -0
  159. package/dist/Icons/Entities/HandshakeIcon.d.ts +2 -0
  160. package/dist/Icons/Entities/HandshakeIcon.js +17 -0
  161. package/dist/Widget.d.ts +1 -0
  162. package/dist/Widget.js +61 -0
  163. package/dist/constants/AYFFormStepTypes.d.ts +9 -0
  164. package/dist/constants/AYFFormStepTypes.js +10 -0
  165. package/dist/constants/CBRFormStepTypes.d.ts +21 -0
  166. package/dist/constants/CBRFormStepTypes.js +22 -0
  167. package/dist/constants/Files/FileExtensions.d.ts +3 -0
  168. package/dist/constants/Files/FileExtensions.js +68 -0
  169. package/dist/constants/Files/FileMaxSize.d.ts +2 -0
  170. package/dist/constants/Files/FileMaxSize.js +2 -0
  171. package/dist/constants/FormStepTypes.d.ts +46 -0
  172. package/dist/constants/FormStepTypes.js +54 -0
  173. package/dist/constants/IconTypes.d.ts +10 -0
  174. package/dist/constants/IconTypes.js +11 -0
  175. package/dist/constants/InternalFormStyle.d.ts +3 -0
  176. package/dist/constants/InternalFormStyle.js +16 -0
  177. package/dist/constants/MaterialClassNameSeed.d.ts +1 -0
  178. package/dist/constants/MaterialClassNameSeed.js +1 -0
  179. package/dist/controllers/FileService.d.ts +5 -0
  180. package/dist/controllers/FileService.js +92 -0
  181. package/dist/index.d.ts +1 -0
  182. package/dist/index.js +29 -0
  183. package/dist/index.lib.d.ts +7 -0
  184. package/dist/index.lib.js +5 -0
  185. package/dist/index.module.css +14 -0
  186. package/dist/shared/InputIcon/InputIcon.d.ts +7 -0
  187. package/dist/shared/InputIcon/InputIcon.js +81 -0
  188. package/dist/shared/Loader/Loader.d.ts +18 -0
  189. package/dist/shared/Loader/Loader.js +26 -0
  190. package/dist/shared/Loader/Loader.module.css +12 -0
  191. package/dist/shared/Navbar/Navbar.d.ts +9 -0
  192. package/dist/shared/Navbar/Navbar.js +18 -0
  193. package/dist/shared/Navbar/Navbar.module.css +18 -0
  194. package/dist/shared/Rating/Rating.d.ts +16 -0
  195. package/dist/shared/Rating/Rating.js +41 -0
  196. package/dist/shared/Rating/Rating.module.css +32 -0
  197. package/dist/shared/Rating/Ratings/LikeRating.d.ts +4 -0
  198. package/dist/shared/Rating/Ratings/LikeRating.js +43 -0
  199. package/dist/shared/Rating/Ratings/SatisfactionRating.d.ts +4 -0
  200. package/dist/shared/Rating/Ratings/SatisfactionRating.js +61 -0
  201. package/dist/shared/Rating/Ratings/ScaleRating.d.ts +4 -0
  202. package/dist/shared/Rating/Ratings/ScaleRating.js +63 -0
  203. package/dist/shared/RoundedButton/RoundedButton.d.ts +30 -0
  204. package/dist/shared/RoundedButton/RoundedButton.js +45 -0
  205. package/dist/shared/RoundedCheckBox/RoundedCheckBox.d.ts +24 -0
  206. package/dist/shared/RoundedCheckBox/RoundedCheckBox.js +101 -0
  207. package/dist/shared/RoundedDatePicker/RoundedDatePicker.d.ts +48 -0
  208. package/dist/shared/RoundedDatePicker/RoundedDatePicker.js +348 -0
  209. package/dist/shared/RoundedSelect/RoundedSelect.d.ts +68 -0
  210. package/dist/shared/RoundedSelect/RoundedSelect.js +214 -0
  211. package/dist/shared/RoundedSmartSelect/RoundedSmartSelect.d.ts +66 -0
  212. package/dist/shared/RoundedSmartSelect/RoundedSmartSelect.js +234 -0
  213. package/dist/shared/RoundedTextField/RoundedTextField.d.ts +45 -0
  214. package/dist/shared/RoundedTextField/RoundedTextField.js +175 -0
  215. package/dist/utils/CbrFunctions.d.ts +8 -0
  216. package/dist/utils/CbrFunctions.js +53 -0
  217. package/package.json +1 -1
@@ -0,0 +1,379 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ var __rest = (this && this.__rest) || function (s, e) {
49
+ var t = {};
50
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
51
+ t[p] = s[p];
52
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
53
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
54
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
55
+ t[p[i]] = s[p[i]];
56
+ }
57
+ return t;
58
+ };
59
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
60
+ import { cloneElement, useEffect, useRef, useState } from 'react';
61
+ import ReCAPTCHA from 'react-google-recaptcha';
62
+ import SectionComponent from '../../Section/Section';
63
+ import { useForm } from 'react-hook-form';
64
+ import styles from './ColumnForm.module.css';
65
+ import Types from '../../../constants/FormStepTypes';
66
+ import { convertToRaw } from 'draft-js';
67
+ import TermComponent from '../../Term/Term';
68
+ import ConfirmationDialog from '../ConfirmationDialog/ConfirmationDialog';
69
+ import Loader from '../../../shared/Loader/Loader';
70
+ import axiosInstance from '../../../AxiosAPI';
71
+ import widgetInstance from '../../../AxiosWidget';
72
+ import React from 'react';
73
+ function ColumnForm(_a) {
74
+ var _this = this;
75
+ var form = _a.form, apiKey = _a.apiKey, reload = _a.reload, domain = _a.domain, postview = _a.postview, internal = _a.internal, formStyle = _a.formStyle, sendLabel = _a.sendLabel, widthStats = _a.widthStats, customSteps = _a.customSteps, customSend = _a.customSend, customSubmit = _a.customSubmit, handleLoaded = _a.handleLoaded, originalValues = _a.originalValues, others = __rest(_a, ["form", "apiKey", "reload", "domain", "postview", "internal", "formStyle", "sendLabel", "widthStats", "customSteps", "customSend", "customSubmit", "handleLoaded", "originalValues"]);
76
+ var _b = useState(false), tempError = _b[0], setTempError = _b[1];
77
+ var _c = useState(calcDependencies(form.steps, originalValues, customSteps)), dependencyStore = _c[0], setDependencyStore = _c[1];
78
+ var _d = useForm({
79
+ defaultValues: originalValues,
80
+ mode: 'onTouched',
81
+ shouldFocusError: true,
82
+ }), getValues = _d.getValues, setValue = _d.setValue, clearErrors = _d.clearErrors, control = _d.control, errors = _d.formState.errors, trigger = _d.trigger, setFocus = _d.setFocus;
83
+ var recaptchaRef = useRef();
84
+ var _e = useState(undefined), sections = _e[0], setSections = _e[1];
85
+ var _f = useState(false), loading = _f[0], setLoading = _f[1];
86
+ var _g = useState(), showConfirmation = _g[0], setShowConfirmation = _g[1];
87
+ useEffect(function () {
88
+ var tempSections = [];
89
+ calcNextSection(form, form.firstSection, tempSections);
90
+ setSections(tempSections);
91
+ handleLoaded();
92
+ }, []);
93
+ if (sections === undefined) {
94
+ return _jsx("div", {});
95
+ }
96
+ var onSubmit = function (token) { return __awaiter(_this, void 0, void 0, function () {
97
+ var valid, values, newValues, deleteIds, _i, _a, idStep, _b, deleteIds_1, id, customResp, payload, url, resp, _c, error_1;
98
+ return __generator(this, function (_d) {
99
+ switch (_d.label) {
100
+ case 0:
101
+ if (!(apiKey || internal || customSend)) return [3 /*break*/, 11];
102
+ return [4 /*yield*/, trigger(undefined, { shouldFocus: true })];
103
+ case 1:
104
+ valid = _d.sent();
105
+ values = getValues();
106
+ if (!!valid) return [3 /*break*/, 2];
107
+ console.error('ERRORS:', errors);
108
+ setTempError(true);
109
+ setTimeout(function () {
110
+ setTempError(false);
111
+ }, 500);
112
+ return [3 /*break*/, 11];
113
+ case 2:
114
+ _d.trys.push([2, 10, , 11]);
115
+ setLoading(true);
116
+ newValues = {};
117
+ deleteIds = [];
118
+ for (_i = 0, _a = Object.keys(values); _i < _a.length; _i++) {
119
+ idStep = _a[_i];
120
+ newValues[idStep] = calcValue(idStep, form.steps, values, customSteps, deleteIds);
121
+ }
122
+ for (_b = 0, deleteIds_1 = deleteIds; _b < deleteIds_1.length; _b++) {
123
+ id = deleteIds_1[_b];
124
+ delete newValues[id];
125
+ }
126
+ if (!customSend) return [3 /*break*/, 4];
127
+ return [4 /*yield*/, customSend(newValues, reload)];
128
+ case 3:
129
+ customResp = _d.sent();
130
+ setLoading(false);
131
+ return [2 /*return*/, customResp];
132
+ case 4:
133
+ payload = {
134
+ formValues: { steps: newValues },
135
+ };
136
+ if (token) {
137
+ payload.token = token;
138
+ }
139
+ url = "/ticket/".concat(internal ? form.apiKey : apiKey);
140
+ if (!(domain || internal)) return [3 /*break*/, 6];
141
+ return [4 /*yield*/, widgetInstance.post("".concat(url, "?idOrganization=").concat(domain), payload)];
142
+ case 5:
143
+ _c = _d.sent();
144
+ return [3 /*break*/, 8];
145
+ case 6: return [4 /*yield*/, axiosInstance.post(url, payload)];
146
+ case 7:
147
+ _c = _d.sent();
148
+ _d.label = 8;
149
+ case 8:
150
+ resp = _c;
151
+ setShowConfirmation(resp === null || resp === void 0 ? void 0 : resp.data);
152
+ _d.label = 9;
153
+ case 9:
154
+ setLoading(false);
155
+ return [3 /*break*/, 11];
156
+ case 10:
157
+ error_1 = _d.sent();
158
+ console.error(error_1);
159
+ setLoading(false);
160
+ return [3 /*break*/, 11];
161
+ case 11: return [2 /*return*/];
162
+ }
163
+ });
164
+ }); };
165
+ return (_jsxs("div", __assign({ className: styles.container, style: { color: formStyle.textColor } }, { children: [loading && _jsx("div", { className: styles.curtain }), showConfirmation !== undefined && (_jsx(ConfirmationDialog, { formStyle: formStyle, confirmation: showConfirmation, onClose: function () {
166
+ reload();
167
+ setShowConfirmation(undefined);
168
+ } })), sections.map(function (idSection, index) { return (_jsx(SectionComponent, __assign({ form: form, sendLabel: sendLabel, domain: domain, postview: postview, clearErrors: clearErrors, widthStats: widthStats, control: control, getValues: getValues, originalValues: originalValues, errors: errors, index: index, setSections: setSections, section: form.sections[idSection], formStyle: formStyle, customSteps: customSteps, setDependencyStore: setDependencyStore, dependencyStore: dependencyStore, setFocus: setFocus }, others), idSection)); }), form.terms &&
169
+ (!internal || (internal && postview)) &&
170
+ (originalValues === null || originalValues === void 0 ? void 0 : originalValues['INTERNAL_CREATING_AGENT']) === undefined && (_jsx("div", __assign({ className: styles.termsContainer, style: {
171
+ width: (form.size.blockSize + form.size.spacingSize) *
172
+ form.size.blockNum,
173
+ } }, { children: form.terms.map(function (term) { return (_jsx(TermComponent, { setValue: setValue, postview: postview, tempError: tempError, term: term, control: control, errors: errors, form: form, formStyle: formStyle }, term.id)); }) }))), !postview && others.editable && (_jsxs(React.Fragment, { children: [form.hasCaptcha && !internal && (_jsx(ReCAPTCHA, { ref: recaptchaRef, sitekey: "6LcL22kkAAAAAEotDeAFbRATob-u5vbibbCyWL2p", size: 'invisible', badge: 'bottomright' })), !customSubmit && (_jsx("div", __assign({ className: styles.submitBtnContainer }, { children: _jsxs("button", __assign({ "data-testid": "form__submit", className: styles.submitBtn, onClick: function () { return __awaiter(_this, void 0, void 0, function () {
174
+ var valid, captcha;
175
+ return __generator(this, function (_a) {
176
+ switch (_a.label) {
177
+ case 0:
178
+ if (!(form.hasCaptcha && !internal)) return [3 /*break*/, 5];
179
+ return [4 /*yield*/, trigger(undefined, {
180
+ shouldFocus: true,
181
+ })];
182
+ case 1:
183
+ valid = _a.sent();
184
+ if (!valid) return [3 /*break*/, 4];
185
+ captcha = recaptchaRef.current.getValue();
186
+ if (!!captcha) return [3 /*break*/, 3];
187
+ return [4 /*yield*/, (recaptchaRef === null || recaptchaRef === void 0 ? void 0 : recaptchaRef.current.executeAsync())];
188
+ case 2:
189
+ captcha =
190
+ _a.sent();
191
+ _a.label = 3;
192
+ case 3:
193
+ onSubmit(captcha);
194
+ _a.label = 4;
195
+ case 4: return [3 /*break*/, 6];
196
+ case 5:
197
+ onSubmit();
198
+ _a.label = 6;
199
+ case 6: return [2 /*return*/];
200
+ }
201
+ });
202
+ }); }, style: {
203
+ background: formStyle.primaryColor,
204
+ color: formStyle.primaryContrastColor,
205
+ }, disabled: loading }, { children: [_jsx("div", __assign({ style: {
206
+ visibility: loading
207
+ ? 'hidden'
208
+ : 'visible',
209
+ } }, { children: sendLabel !== null && sendLabel !== void 0 ? sendLabel : 'Enviar' })), loading && (_jsx("div", __assign({ className: styles.loaderContainer }, { children: _jsx(Loader, { color: formStyle.primaryContrastColor, position: "unset" }) })))] })) }))), customSubmit &&
210
+ cloneElement(customSubmit, {
211
+ onSubmit: onSubmit,
212
+ loading: loading,
213
+ })] }))] })));
214
+ }
215
+ export default ColumnForm;
216
+ function calcNextSection(form, idSection, sections) {
217
+ var _a;
218
+ var section = form.sections[idSection];
219
+ if (section) {
220
+ sections.push(idSection);
221
+ var nextSectionId = (_a = section.nextSection) !== null && _a !== void 0 ? _a : '';
222
+ var nextSection = form.sections[nextSectionId];
223
+ if (nextSection) {
224
+ calcNextSection(form, nextSectionId, sections);
225
+ }
226
+ }
227
+ }
228
+ export var calcValue = function (idStep, steps, values, customSteps, deleteIds, value) {
229
+ var _a, _b;
230
+ if (value === void 0) { value = values[idStep]; }
231
+ var step = steps[idStep];
232
+ if (!step)
233
+ return value;
234
+ var custom = customSteps[step === null || step === void 0 ? void 0 : step.type];
235
+ if (custom !== undefined) {
236
+ return (_b = (_a = custom.calcValue) === null || _a === void 0 ? void 0 : _a.call(custom, step, value)) !== null && _b !== void 0 ? _b : value;
237
+ }
238
+ else {
239
+ switch (step === null || step === void 0 ? void 0 : step.type) {
240
+ case Types.TEXTAREA: {
241
+ if (step.hasTextEditor) {
242
+ var currentContent = value.getCurrentContent();
243
+ return {
244
+ value: currentContent.getPlainText(),
245
+ draft: convertToRaw(currentContent),
246
+ };
247
+ }
248
+ else {
249
+ return {
250
+ value: value,
251
+ draft: stringToDraft(value),
252
+ };
253
+ }
254
+ }
255
+ case Types.FILEUPLOAD: {
256
+ return value.map(function (val) { return ({
257
+ fileName: val.fileName,
258
+ S3Key: val.S3Key,
259
+ }); });
260
+ }
261
+ case Types.SELECTOR:
262
+ case Types.CLASSIFIER_SELECTOR: {
263
+ return value.value;
264
+ }
265
+ case Types.COLLAPSIBLE: {
266
+ return !!value;
267
+ }
268
+ case Types.MAPPER: {
269
+ var elements = value === null || value === void 0 ? void 0 : value.filter(function (element) { return element.deleted !== true; });
270
+ var mappedValues = [];
271
+ for (var _i = 0, elements_1 = elements; _i < elements_1.length; _i++) {
272
+ var element = elements_1[_i];
273
+ var newValue = {
274
+ id: element.id,
275
+ value: element.value,
276
+ };
277
+ for (var _c = 0, _d = Object.keys(step.steps); _c < _d.length; _c++) {
278
+ var idStep_1 = _d[_c];
279
+ var mappedId = element.ids[idStep_1];
280
+ if (values[mappedId] !== undefined) {
281
+ newValue[idStep_1] = calcValue(idStep_1, step.steps, values, customSteps, deleteIds, values[mappedId]);
282
+ deleteIds.push(mappedId);
283
+ }
284
+ }
285
+ mappedValues.push(newValue);
286
+ }
287
+ return mappedValues;
288
+ }
289
+ default:
290
+ if ((step === null || step === void 0 ? void 0 : step.type) === 'CBR_INCIDENCIAS') {
291
+ return value === null || value === void 0 ? void 0 : value.filter(function (incidencia) { return incidencia.deleted !== true; });
292
+ }
293
+ return value;
294
+ }
295
+ }
296
+ };
297
+ function stringToDraft(text) {
298
+ var draftStructure = {
299
+ blocks: [],
300
+ entityMap: {},
301
+ };
302
+ text.split('\n').forEach(function (element, index) {
303
+ draftStructure.blocks.push({
304
+ key: String(index),
305
+ text: element,
306
+ type: 'unstyled',
307
+ depth: 0,
308
+ inlineStyleRanges: [],
309
+ entityRanges: [],
310
+ data: {},
311
+ });
312
+ });
313
+ return draftStructure;
314
+ }
315
+ function calcDependencies(steps, originalValues, customSteps, allSteps, dependencies) {
316
+ var _a, _b;
317
+ if (customSteps === void 0) { customSteps = {}; }
318
+ if (allSteps === void 0) { allSteps = steps; }
319
+ if (dependencies === void 0) { dependencies = {}; }
320
+ for (var _i = 0, _c = Object.values(steps); _i < _c.length; _i++) {
321
+ var step = _c[_i];
322
+ if (step.dependencies) {
323
+ for (var _d = 0, _e = step.dependencies; _d < _e.length; _d++) {
324
+ var idDep = _e[_d];
325
+ var depStep = allSteps[idDep];
326
+ if (depStep && dependencies[idDep] === undefined) {
327
+ dependencies[idDep] = calcStepDependencyValue(depStep, customSteps, originalValues);
328
+ }
329
+ else if (dependencies[idDep] === undefined) {
330
+ dependencies[idDep] = originalValues[idDep];
331
+ }
332
+ }
333
+ }
334
+ if (step.type === Types.MAPPER) {
335
+ var newSteps = {};
336
+ var elements = (_a = originalValues[step.id]) !== null && _a !== void 0 ? _a : [];
337
+ var _loop_1 = function (element) {
338
+ for (var _g = 0, _h = Object.keys(step.steps); _g < _h.length; _g++) {
339
+ var idSubStep = _h[_g];
340
+ var subStep = step.steps[idSubStep];
341
+ var mappedId = element.ids[idSubStep];
342
+ newSteps[mappedId] = __assign(__assign({}, subStep), { id: mappedId, dependencies: (_b = subStep.dependencies) === null || _b === void 0 ? void 0 : _b.map(function (dep) { var _a; return (_a = element.ids[dep]) !== null && _a !== void 0 ? _a : dep; }) });
343
+ }
344
+ };
345
+ for (var _f = 0, elements_2 = elements; _f < elements_2.length; _f++) {
346
+ var element = elements_2[_f];
347
+ _loop_1(element);
348
+ }
349
+ if (elements.length === 0) {
350
+ newSteps = step.steps;
351
+ }
352
+ calcDependencies(newSteps, originalValues, customSteps, __assign(__assign({}, allSteps), newSteps), dependencies);
353
+ }
354
+ }
355
+ return dependencies;
356
+ }
357
+ export function calcStepDependencyValue(depStep, originalValues, customSteps) {
358
+ var _a, _b, _c, _d;
359
+ if (customSteps === void 0) { customSteps = {}; }
360
+ var custom = customSteps[depStep === null || depStep === void 0 ? void 0 : depStep.type];
361
+ if (custom === null || custom === void 0 ? void 0 : custom.calcDependencyValue) {
362
+ return custom.calcDependencyValue(depStep, originalValues[depStep.id]);
363
+ }
364
+ switch (depStep.type) {
365
+ case Types.TEXTAREA: {
366
+ if (depStep.hasTextEditor) {
367
+ return null;
368
+ }
369
+ else {
370
+ return (_a = originalValues[depStep.id]) === null || _a === void 0 ? void 0 : _a.value;
371
+ }
372
+ }
373
+ case Types.MAPPER: {
374
+ return ((_c = (_b = originalValues[depStep.id]) === null || _b === void 0 ? void 0 : _b.map(function (mapperValue) { var _a; return (_a = mapperValue.value) !== null && _a !== void 0 ? _a : mapperValue; })) !== null && _c !== void 0 ? _c : null);
375
+ }
376
+ default:
377
+ return (_d = originalValues[depStep.id]) !== null && _d !== void 0 ? _d : null;
378
+ }
379
+ }
@@ -0,0 +1,51 @@
1
+ .container {
2
+ width: fit-content;
3
+ display: flex;
4
+ flex-direction: column;
5
+ align-items: center;
6
+ max-width: 100%;
7
+ position: relative;
8
+ }
9
+ .curtain {
10
+ position: absolute;
11
+ width: 100%;
12
+ height: 100%;
13
+ z-index: 2;
14
+ }
15
+ .submitBtnContainer {
16
+ margin-top: 10px;
17
+ width: 200px;
18
+ max-width: calc(100% - 40px);
19
+ }
20
+
21
+ .submitBtn {
22
+ border-radius: 20px;
23
+ padding: 15px 10px;
24
+ width: calc(100% - 30px);
25
+ margin: 0 auto 0 auto;
26
+ font-size: 1.4rem;
27
+ cursor: pointer;
28
+ -moz-user-select: none;
29
+ -khtml-user-select: none;
30
+ -webkit-user-select: none;
31
+ -ms-user-select: none;
32
+ user-select: none;
33
+ border: none;
34
+ position: relative;
35
+ }
36
+ .submitBtn[disabled] {
37
+ pointer-events: none;
38
+ opacity: 0.5;
39
+ }
40
+
41
+ .loaderContainer {
42
+ top: 0px;
43
+ bottom: 0px;
44
+ right: 0px;
45
+ left: 0px;
46
+ position: absolute;
47
+ }
48
+
49
+ .termsContainer {
50
+ max-width: 100%;
51
+ }
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { FormStyle } from '../../../@Types/Form';
3
+ interface ConfirmationDialogProps {
4
+ confirmation: {
5
+ case: string;
6
+ url: string;
7
+ };
8
+ onClose: Function;
9
+ formStyle: FormStyle;
10
+ }
11
+ declare function ConfirmationDialog({ confirmation, formStyle, onClose, }: ConfirmationDialogProps): JSX.Element;
12
+ export default ConfirmationDialog;
@@ -0,0 +1,31 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import CheckCircleOutlineRoundedIcon from '@material-ui/icons/CheckCircleOutlineRounded';
14
+ import styles from './ConfirmationDialog.module.css';
15
+ import Dialog from '@material-ui/core/Dialog';
16
+ import CloseRoundedIcon from '@material-ui/icons/CloseRounded';
17
+ function ConfirmationDialog(_a) {
18
+ var confirmation = _a.confirmation, formStyle = _a.formStyle, onClose = _a.onClose;
19
+ return (_jsx(Dialog, __assign({ PaperProps: {
20
+ style: {
21
+ borderRadius: '20px',
22
+ maxWidth: '100vw',
23
+ boxSizing: 'content-box',
24
+ },
25
+ }, open: true }, { children: _jsxs("div", __assign({ className: styles.confirmationContainer, style: { color: '#293241' } }, { children: [_jsx("div", __assign({ className: styles.closeIcon, onClick: function () {
26
+ onClose();
27
+ } }, { children: _jsx(CloseRoundedIcon, { fontSize: "inherit" }) })), _jsxs("div", __assign({ className: styles.container }, { children: [_jsx("div", __assign({ className: styles.checkContainer, style: { color: formStyle.primaryColor } }, { children: _jsx(CheckCircleOutlineRoundedIcon, { fontSize: "inherit", style: { fontSize: '160px' } }) })), _jsxs("div", __assign({ className: styles.messageContainer }, { children: ["Tu caso n\u00FAmero", ' ', _jsx("span", __assign({ style: { fontWeight: 'bold' } }, { children: confirmation.case })), ' ', "ha sido registrado!"] })), _jsx("div", __assign({ className: styles.messageContainer }, { children: "Pronto te estaremos dando respuesta." })), _jsxs("div", __assign({ className: styles.linkContainer }, { children: ["Puedes consultar el estado aqui:", ' '] })), _jsx("a", __assign({ className: styles.url, "data-testid": "ResUrl", target: "_blank", href: confirmation.url, style: {
28
+ color: '#293241',
29
+ } }, { children: confirmation.url }))] }))] })) })));
30
+ }
31
+ export default ConfirmationDialog;
@@ -0,0 +1,64 @@
1
+ .confirmationContainer {
2
+ display: flex;
3
+ flex-direction: column;
4
+ width: fit-content;
5
+ max-height: 80vh;
6
+ max-width: 80vw;
7
+ position: relative;
8
+ }
9
+
10
+ .container {
11
+ max-height: 100%;
12
+ display: flex;
13
+ flex-direction: column;
14
+ overflow: hidden;
15
+ overflow-y: auto;
16
+ }
17
+ .confirmationContainer,
18
+ .confirmationContainer *,
19
+ .confirmationContainer *::after,
20
+ .confirmationContainer *::before {
21
+ -webkit-box-sizing: content-box;
22
+ -moz-box-sizing: content-box;
23
+ box-sizing: content-box;
24
+ }
25
+
26
+ .checkContainer {
27
+ margin-left: auto;
28
+ margin-right: auto;
29
+ padding-top: 30px;
30
+ height: fit-content;
31
+ margin-bottom: 15px;
32
+ }
33
+
34
+ .messageContainer {
35
+ margin-top: 5px;
36
+ margin-left: 20px;
37
+ margin-right: 20px;
38
+ font-size: 1.2rem;
39
+ text-align: center;
40
+ }
41
+
42
+ .linkContainer {
43
+ margin-top: 20px;
44
+ font-size: 1.2rem;
45
+ margin-left: 20px;
46
+ }
47
+ .url {
48
+ font-weight: bolder;
49
+ margin-left: 40px;
50
+ margin-right: 40px;
51
+ margin-top: 10px;
52
+ margin-bottom: 40px;
53
+ cursor: pointer;
54
+ font-size: 1rem;
55
+ max-width: calc(100% - 100px);
56
+ word-break: break-all;
57
+ }
58
+ .closeIcon {
59
+ right: 15px;
60
+ top: 10px;
61
+ font-size: 26px;
62
+ position: absolute;
63
+ cursor: pointer;
64
+ }
@@ -0,0 +1,42 @@
1
+ /// <reference types="react" />
2
+ import { Organization } from '../../@Types/@Types';
3
+ import { Form, FormStyle } from '../../@Types/Form';
4
+ import { CustomStep } from '../../App';
5
+ export declare const getLocale: () => any;
6
+ export interface WidthStats {
7
+ currentBreakPoint: number;
8
+ isResponsive: boolean;
9
+ isMobile: boolean;
10
+ }
11
+ export interface FormComponentProps {
12
+ form: Form;
13
+ organization: Organization;
14
+ originalValues: Record<string, unknown>;
15
+ customSteps: Record<string, CustomStep>;
16
+ customStepProps: Record<string, any>;
17
+ customSend?: (values: any, reload: Function) => Promise<any>;
18
+ customSubmit?: JSX.Element;
19
+ widthStats: WidthStats;
20
+ internal: boolean;
21
+ reload: Function;
22
+ partial: boolean;
23
+ postview: boolean;
24
+ preview: boolean;
25
+ formStyle: FormStyle;
26
+ domain?: string;
27
+ apiKey: string | undefined;
28
+ /** Function to call on postview to fetch the download url of a file */
29
+ fetchDownloadUrl?: (S3Key: string, fileName: string) => Promise<string>;
30
+ /** Function to call when the form has loaded */
31
+ handleLoaded: () => void;
32
+ /** If the form can be edited (For entities) */
33
+ editable: boolean;
34
+ /** The custom send label to display */
35
+ sendLabel?: string;
36
+ }
37
+ declare function FormComponent({ form, isWidget, internal, postview, organization, containerRef, ...others }: Omit<FormComponentProps, 'widthStats' | 'formStyle' | 'handleLoaded'> & {
38
+ containerRef: any;
39
+ organization: Organization | null;
40
+ isWidget: boolean;
41
+ }): JSX.Element;
42
+ export default FormComponent;