@arquimedes.co/eureka-forms 1.9.128 → 1.9.129

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 (144) hide show
  1. package/dist/App.js +4 -2
  2. package/dist/{FormComponents/Form → Form}/ConfirmationDialog/ConfirmationDialog.d.ts +1 -1
  3. package/dist/{FormComponents/Form → Form}/Form.d.ts +19 -8
  4. package/dist/Form/Form.js +264 -0
  5. package/dist/Form/FormFunctions.d.ts +6 -0
  6. package/dist/Form/FormFunctions.js +200 -0
  7. package/dist/Form/FormTypes/ColumnForm/ColumnForm.d.ts +4 -0
  8. package/dist/Form/FormTypes/ColumnForm/ColumnForm.js +106 -0
  9. package/dist/{FormComponents/Form → Form/FormTypes}/StepperForm/StepperForm.d.ts +1 -1
  10. package/dist/{FormComponents → Form}/Section/MaterialSection/MaterialSection.js +1 -1
  11. package/dist/{FormComponents → Form}/Section/Section.d.ts +1 -4
  12. package/dist/{FormComponents → Form/Terms}/Term/MaterialTerm/MaterialTerm.js +2 -2
  13. package/dist/{FormComponents → Form/Terms}/Term/Term.d.ts +1 -1
  14. package/dist/{FormComponents → Form/Terms}/Term/Term.js +1 -1
  15. package/dist/Form/Terms/Terms.d.ts +4 -0
  16. package/dist/Form/Terms/Terms.js +36 -0
  17. package/dist/{FormComponents/Step → FormSteps}/@Construction/CBRElementStep/CBRElementStep.d.ts +1 -1
  18. package/dist/{FormComponents/Step → FormSteps}/@Construction/CBRElementStep/CBRElementStep.js +2 -2
  19. package/dist/{FormComponents/Step → FormSteps}/@Construction/CBRIncidentsStep/CBRIncidentsStep.d.ts +1 -1
  20. package/dist/{FormComponents/Step → FormSteps}/@Construction/CBRIncidentsStep/CBRIncidentsStep.js +1 -1
  21. package/dist/{FormComponents/Step → FormSteps}/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.js +2 -2
  22. package/dist/{FormComponents/Step → FormSteps}/@Construction/CBRPropertyStep/CBRPropertyStep.d.ts +1 -1
  23. package/dist/{FormComponents/Step → FormSteps}/@Construction/CBRPropertyStep/CBRPropertyStep.js +2 -2
  24. package/dist/{FormComponents/Step → FormSteps}/AYFStepMapper.d.ts +1 -1
  25. package/dist/{FormComponents/Step → FormSteps}/AYFStepMapper.js +1 -1
  26. package/dist/{FormComponents/Step → FormSteps}/ApiSelectorStep/ApiSelectorStep.d.ts +1 -1
  27. package/dist/{FormComponents/Step → FormSteps}/ApiSelectorStep/ApiSelectorStep.js +1 -1
  28. package/dist/{FormComponents/Step → FormSteps}/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.js +4 -4
  29. package/dist/{FormComponents/Step → FormSteps}/CBRStepMapper.d.ts +1 -1
  30. package/dist/{FormComponents/Step → FormSteps}/CBRStepMapper.js +2 -2
  31. package/dist/{FormComponents/Step → FormSteps}/CheckBoxStep/CheckBoxStep.d.ts +1 -1
  32. package/dist/{FormComponents/Step → FormSteps}/CheckBoxStep/CheckBoxStep.js +1 -1
  33. package/dist/{FormComponents/Step → FormSteps}/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.js +1 -1
  34. package/dist/{FormComponents/Step → FormSteps}/ClassifierSelectorStep/ClassifierSelectorStep.d.ts +1 -1
  35. package/dist/{FormComponents/Step → FormSteps}/ClassifierSelectorStep/ClassifierSelectorStep.js +1 -1
  36. package/dist/{FormComponents/Step → FormSteps}/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +2 -2
  37. package/dist/{FormComponents/Step → FormSteps}/CollapsibleStep/CollapsibleStep.d.ts +1 -1
  38. package/dist/{FormComponents/Step → FormSteps}/CollapsibleStep/CollapsibleStep.js +1 -1
  39. package/dist/{FormComponents/Step → FormSteps}/DatePickerStep/DatePickerStep.d.ts +1 -1
  40. package/dist/{FormComponents/Step → FormSteps}/DatePickerStep/DatePickerStep.js +1 -1
  41. package/dist/{FormComponents/Step → FormSteps}/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js +1 -1
  42. package/dist/{FormComponents/Step → FormSteps}/EntityValueStep/EntityValuePickerStep.d.ts +1 -1
  43. package/dist/{FormComponents/Step → FormSteps}/EntityValueStep/EntityValuePickerStep.js +1 -1
  44. package/dist/{FormComponents/Step → FormSteps}/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.js +4 -4
  45. package/dist/{FormComponents/Step → FormSteps}/FileUploadStep/FileUploadStep.d.ts +1 -1
  46. package/dist/{FormComponents/Step → FormSteps}/FileUploadStep/FileUploadStep.js +1 -1
  47. package/dist/{FormComponents/Step → FormSteps}/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.d.ts +1 -1
  48. package/dist/{FormComponents/Step → FormSteps}/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.js +1 -1
  49. package/dist/{FormComponents/Step → FormSteps}/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +4 -4
  50. package/dist/{FormComponents/Step → FormSteps}/MapperStep/MapperStep.d.ts +1 -1
  51. package/dist/{FormComponents/Step → FormSteps}/MapperStep/MapperStep.js +1 -1
  52. package/dist/{FormComponents/Step → FormSteps}/MapperStep/MaterialMapperStep/Element/MapperElement.js +1 -1
  53. package/dist/{FormComponents/Step → FormSteps}/MapperStep/MaterialMapperStep/Element/PillMapperElement/PillMapperElement.js +3 -1
  54. package/dist/{FormComponents/Step → FormSteps}/MapperStep/MaterialMapperStep/MaterialMapperStep.d.ts +2 -1
  55. package/dist/{FormComponents/Step → FormSteps}/MapperStep/MaterialMapperStep/MaterialMapperStep.js +10 -18
  56. package/dist/{FormComponents/Step → FormSteps}/RatingStep/MaterialRatingStep/MaterialRatingStep.js +2 -2
  57. package/dist/{FormComponents/Step → FormSteps}/RatingStep/RatingStep.d.ts +1 -1
  58. package/dist/{FormComponents/Step → FormSteps}/RatingStep/RatingStep.js +1 -1
  59. package/dist/{FormComponents/Step → FormSteps}/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.js +2 -2
  60. package/dist/{FormComponents/Step → FormSteps}/SelectorStep/SelectorStep.d.ts +1 -1
  61. package/dist/{FormComponents/Step → FormSteps}/SelectorStep/SelectorStep.js +1 -1
  62. package/dist/{FormComponents/Step → FormSteps}/SeparatorStep/SeparatorStep.d.ts +1 -1
  63. package/dist/{FormComponents/Step → FormSteps}/SeparatorStep/SeparatorStep.js +1 -1
  64. package/dist/{FormComponents/Step → FormSteps}/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.js +1 -1
  65. package/dist/{FormComponents/Step → FormSteps}/SmartSelectStep/SmartSelectStep.d.ts +4 -4
  66. package/dist/{FormComponents/Step → FormSteps}/SmartSelectStep/SmartSelectStep.js +1 -1
  67. package/dist/{FormComponents/Step → FormSteps}/Step.d.ts +2 -2
  68. package/dist/{FormComponents/Step → FormSteps}/Step.js +1 -1
  69. package/dist/{FormComponents/Step → FormSteps}/StepFunctions.d.ts +2 -2
  70. package/dist/{FormComponents/Step → FormSteps}/StepFunctions.js +1 -1
  71. package/dist/{FormComponents/Step → FormSteps}/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.js +1 -1
  72. package/dist/{FormComponents/Step → FormSteps}/TextAreaStep/TextAreaStep.d.ts +1 -1
  73. package/dist/{FormComponents/Step → FormSteps}/TextAreaStep/TextAreaStep.js +1 -1
  74. package/dist/{FormComponents/Step → FormSteps}/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.js +1 -1
  75. package/dist/{FormComponents/Step → FormSteps}/TextInputStep/TextInputStep.d.ts +1 -1
  76. package/dist/{FormComponents/Step → FormSteps}/TextInputStep/TextInputStep.js +1 -1
  77. package/dist/{FormComponents/Step → FormSteps}/TitleStep/TitleStep.d.ts +1 -1
  78. package/dist/{FormComponents/Step → FormSteps}/TitleStep/TitleStep.js +1 -1
  79. package/dist/Widget.js +0 -2
  80. package/dist/index.js +0 -2
  81. package/dist/index.lib.d.ts +2 -2
  82. package/dist/index.lib.js +1 -1
  83. package/dist/shared/RoundedDatePicker/RoundedDatePicker.js +1 -1
  84. package/package.json +1 -1
  85. package/dist/FormComponents/Form/ColumnForm/ColumnForm.d.ts +0 -15
  86. package/dist/FormComponents/Form/ColumnForm/ColumnForm.js +0 -411
  87. package/dist/FormComponents/Form/Form.js +0 -147
  88. /package/dist/{FormComponents/Form → Form}/ConfirmationDialog/ConfirmationDialog.js +0 -0
  89. /package/dist/{FormComponents/Form → Form}/ConfirmationDialog/ConfirmationDialog.module.css +0 -0
  90. /package/dist/{FormComponents/Form → Form}/Form.module.css +0 -0
  91. /package/dist/{FormComponents/Form → Form/FormTypes}/ColumnForm/ColumnForm.module.css +0 -0
  92. /package/dist/{FormComponents/Form → Form/FormTypes}/StepperForm/StepperForm.js +0 -0
  93. /package/dist/{FormComponents/Form → Form/FormTypes}/StepperForm/StepperForm.module.css +0 -0
  94. /package/dist/{FormComponents → Form}/Section/MaterialSection/MaterialSection.d.ts +0 -0
  95. /package/dist/{FormComponents → Form}/Section/MaterialSection/MaterialSection.module.css +0 -0
  96. /package/dist/{FormComponents → Form}/Section/Section.js +0 -0
  97. /package/dist/{FormComponents → Form/Terms}/Term/MaterialTerm/MaterialTerm.d.ts +0 -0
  98. /package/dist/{FormComponents → Form/Terms}/Term/MaterialTerm/MaterialTerm.module.css +0 -0
  99. /package/dist/{FormComponents/Step → FormSteps}/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.d.ts +0 -0
  100. /package/dist/{FormComponents/Step → FormSteps}/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.js +0 -0
  101. /package/dist/{FormComponents/Step → FormSteps}/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.module.css +0 -0
  102. /package/dist/{FormComponents/Step → FormSteps}/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.d.ts +0 -0
  103. /package/dist/{FormComponents/Step → FormSteps}/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.module.css +0 -0
  104. /package/dist/{FormComponents/Step → FormSteps}/@Construction/CBRPropertyStep/CBRPropertyStep.module.css +0 -0
  105. /package/dist/{FormComponents/Step → FormSteps}/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.d.ts +0 -0
  106. /package/dist/{FormComponents/Step → FormSteps}/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.module.css +0 -0
  107. /package/dist/{FormComponents/Step → FormSteps}/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.d.ts +0 -0
  108. /package/dist/{FormComponents/Step → FormSteps}/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.module.css +0 -0
  109. /package/dist/{FormComponents/Step → FormSteps}/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.d.ts +0 -0
  110. /package/dist/{FormComponents/Step → FormSteps}/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.module.css +0 -0
  111. /package/dist/{FormComponents/Step → FormSteps}/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.d.ts +0 -0
  112. /package/dist/{FormComponents/Step → FormSteps}/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.js +0 -0
  113. /package/dist/{FormComponents/Step → FormSteps}/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.module.css +0 -0
  114. /package/dist/{FormComponents/Step → FormSteps}/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.d.ts +0 -0
  115. /package/dist/{FormComponents/Step → FormSteps}/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.module.css +0 -0
  116. /package/dist/{FormComponents/Step → FormSteps}/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.d.ts +0 -0
  117. /package/dist/{FormComponents/Step → FormSteps}/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.module.css +0 -0
  118. /package/dist/{FormComponents/Step → FormSteps}/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.module.css +0 -0
  119. /package/dist/{FormComponents/Step → FormSteps}/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.d.ts +0 -0
  120. /package/dist/{FormComponents/Step → FormSteps}/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.module.css +0 -0
  121. /package/dist/{FormComponents/Step → FormSteps}/MapperStep/MaterialMapperStep/Element/ListMapperElement/ListMapperElement.d.ts +0 -0
  122. /package/dist/{FormComponents/Step → FormSteps}/MapperStep/MaterialMapperStep/Element/ListMapperElement/ListMapperElement.js +0 -0
  123. /package/dist/{FormComponents/Step → FormSteps}/MapperStep/MaterialMapperStep/Element/ListMapperElement/ListMapperElement.module.css +0 -0
  124. /package/dist/{FormComponents/Step → FormSteps}/MapperStep/MaterialMapperStep/Element/MapperElement.d.ts +0 -0
  125. /package/dist/{FormComponents/Step → FormSteps}/MapperStep/MaterialMapperStep/Element/PillMapperElement/PillMapperElement.d.ts +0 -0
  126. /package/dist/{FormComponents/Step → FormSteps}/MapperStep/MaterialMapperStep/Element/PillMapperElement/PillMapperElement.module.css +0 -0
  127. /package/dist/{FormComponents/Step → FormSteps}/MapperStep/MaterialMapperStep/MaterialMapperStep.module.css +0 -0
  128. /package/dist/{FormComponents/Step → FormSteps}/RatingStep/MaterialRatingStep/MaterialRatingStep.d.ts +0 -0
  129. /package/dist/{FormComponents/Step → FormSteps}/RatingStep/MaterialRatingStep/MaterialRatingStep.module.css +0 -0
  130. /package/dist/{FormComponents/Step → FormSteps}/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.d.ts +0 -0
  131. /package/dist/{FormComponents/Step → FormSteps}/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.module.css +0 -0
  132. /package/dist/{FormComponents/Step → FormSteps}/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.d.ts +0 -0
  133. /package/dist/{FormComponents/Step → FormSteps}/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.js +0 -0
  134. /package/dist/{FormComponents/Step → FormSteps}/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.module.css +0 -0
  135. /package/dist/{FormComponents/Step → FormSteps}/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.d.ts +0 -0
  136. /package/dist/{FormComponents/Step → FormSteps}/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.module.css +0 -0
  137. /package/dist/{FormComponents/Step → FormSteps}/TextAreaStep/MaterialTextAreaStep/DraftEditor.css +0 -0
  138. /package/dist/{FormComponents/Step → FormSteps}/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.d.ts +0 -0
  139. /package/dist/{FormComponents/Step → FormSteps}/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.module.css +0 -0
  140. /package/dist/{FormComponents/Step → FormSteps}/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.d.ts +0 -0
  141. /package/dist/{FormComponents/Step → FormSteps}/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.module.css +0 -0
  142. /package/dist/{FormComponents/Step → FormSteps}/TitleStep/MaterialTitleStep/MaterialTitleStep.d.ts +0 -0
  143. /package/dist/{FormComponents/Step → FormSteps}/TitleStep/MaterialTitleStep/MaterialTitleStep.js +0 -0
  144. /package/dist/{FormComponents/Step → FormSteps}/TitleStep/MaterialTitleStep/MaterialTitleStep.module.css +0 -0
@@ -0,0 +1,106 @@
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, Fragment as _Fragment } from "react/jsx-runtime";
60
+ import { cloneElement, useState } from 'react';
61
+ import SectionComponent from '../../Section/Section';
62
+ import styles from './ColumnForm.module.css';
63
+ import Loader from '../../../shared/Loader/Loader';
64
+ import React from 'react';
65
+ import Terms from '../../Terms/Terms';
66
+ function ColumnForm(_a) {
67
+ var _this = this;
68
+ var _b;
69
+ var onSubmit = _a.onSubmit, formController = _a.formController, props = __rest(_a, ["onSubmit", "formController"]);
70
+ var form = props.form, formStyle = props.formStyle, customSubmit = props.customSubmit;
71
+ var _c = useState(false), loading = _c[0], setLoading = _c[1];
72
+ var getValues = formController.getValues, setValue = formController.setValue, clearErrors = formController.clearErrors, handleSubmit = formController.handleSubmit, control = formController.control, errors = formController.formState.errors, setFocus = formController.setFocus;
73
+ return (_jsxs("div", __assign({ className: styles.container, style: { color: formStyle.textColor } }, { children: [loading && _jsx("div", { className: styles.curtain }), _jsx(ColumnSection, __assign({ control: control, errors: errors, getValues: getValues, setValue: setValue, clearErrors: clearErrors, setFocus: setFocus, section: form.sections[form.firstSection] }, props)), _jsx(Terms, __assign({}, props, { onSubmit: onSubmit, formController: formController })), !props.postview && props.editable && (_jsxs(React.Fragment, { children: [!customSubmit && (_jsx("div", __assign({ className: styles.submitBtnContainer }, { children: _jsxs("button", __assign({ "data-testid": "form__submit", className: styles.submitBtn, onClick: function () {
74
+ handleSubmit(function (values) { return __awaiter(_this, void 0, void 0, function () {
75
+ return __generator(this, function (_a) {
76
+ switch (_a.label) {
77
+ case 0:
78
+ setLoading(true);
79
+ return [4 /*yield*/, onSubmit(values)];
80
+ case 1:
81
+ _a.sent();
82
+ setLoading(false);
83
+ return [2 /*return*/];
84
+ }
85
+ });
86
+ }); });
87
+ }, style: {
88
+ background: formStyle.primaryColor,
89
+ color: formStyle.primaryContrastColor,
90
+ }, disabled: loading }, { children: [_jsx("div", __assign({ style: {
91
+ visibility: loading
92
+ ? 'hidden'
93
+ : 'visible',
94
+ } }, { children: (_b = props.sendLabel) !== null && _b !== void 0 ? _b : 'Enviar' })), loading && (_jsx("div", __assign({ className: styles.loaderContainer }, { children: _jsx(Loader, { color: formStyle.primaryContrastColor, position: "unset" }) })))] })) }))), customSubmit &&
95
+ cloneElement(customSubmit, {
96
+ onSubmit: onSubmit,
97
+ loading: loading,
98
+ })] }))] })));
99
+ }
100
+ export default ColumnForm;
101
+ function ColumnSection(props) {
102
+ var section = props.section;
103
+ if (!props.section)
104
+ return _jsx(_Fragment, {});
105
+ return (_jsxs(React.Fragment, { children: [_jsx(SectionComponent, __assign({}, props)), section.nextSection && (_jsx(ColumnSection, __assign({}, props, { section: props.form.sections[section.nextSection] })))] }));
106
+ }
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { FormComponentProps } from '../Form';
2
+ import { FormComponentProps } from '../../Form';
3
3
  declare function StepperForm({}: FormComponentProps): JSX.Element;
4
4
  export default StepperForm;
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import { createElement as _createElement } from "react";
25
- import StepComponent from '../../Step/Step';
25
+ import StepComponent from '../../../FormSteps/Step';
26
26
  import styles from './MaterialSection.module.css';
27
27
  function MaterialSection(_a) {
28
28
  var _b;
@@ -3,8 +3,7 @@ import { Control, FieldValues, UseFormGetValues } from 'react-hook-form';
3
3
  import { Organization } from '../../@Types';
4
4
  import { Form, FormStyle, Section } from '../../@Types/Form';
5
5
  import { CustomStep } from '../../App';
6
- import { WidthStats } from '../Form/Form';
7
- import { DependencyStore } from '../Form/ColumnForm/ColumnForm';
6
+ import { DependencyStore, WidthStats } from '../Form';
8
7
  export interface RecursiveData {
9
8
  form: Form;
10
9
  organization: Organization;
@@ -34,8 +33,6 @@ export interface SectionComponentProps extends RecursiveData {
34
33
  /** The custom send label to display */
35
34
  sendLabel?: string;
36
35
  section: Section;
37
- setSections: Function;
38
- index: number;
39
36
  }
40
37
  declare function SectionComponent(props: SectionComponentProps): JSX.Element;
41
38
  export default SectionComponent;
@@ -25,8 +25,8 @@ import { Dialog } from '@material-ui/core';
25
25
  import React from 'react';
26
26
  import { useState } from 'react';
27
27
  import { Controller } from 'react-hook-form';
28
- import RoundedButton from '../../../shared/RoundedButton/RoundedButton';
29
- import RoundedCheckBox from '../../../shared/RoundedCheckBox/RoundedCheckBox';
28
+ import RoundedButton from '../../../../shared/RoundedButton/RoundedButton';
29
+ import RoundedCheckBox from '../../../../shared/RoundedCheckBox/RoundedCheckBox';
30
30
  import CloseRoundedIcon from '@material-ui/icons/CloseRounded';
31
31
  import styles from './MaterialTerm.module.css';
32
32
  function TermComponent(_a) {
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { Control, FieldValues } from 'react-hook-form';
3
- import { Form, FormStyle, Term } from '../../@Types/Form';
3
+ import { Form, FormStyle, Term } from '../../../@Types/Form';
4
4
  export interface TermComponentProps {
5
5
  term: Term;
6
6
  form: Form;
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { FormStyleTypes } from '../../constants/FormStepTypes';
13
+ import { FormStyleTypes } from '../../../constants/FormStepTypes';
14
14
  import MaterialTerm from './MaterialTerm/MaterialTerm';
15
15
  function TermComponent(props) {
16
16
  switch (props.formStyle.type) {
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { FormComponentProps } from '../Form';
3
+ declare function Terms({ form, internal, postview, formStyle, originalValues, formController, }: FormComponentProps): JSX.Element;
4
+ export default Terms;
@@ -0,0 +1,36 @@
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, Fragment as _Fragment } from "react/jsx-runtime";
13
+ import { useEffect, useState } from 'react';
14
+ import styles from '../Form.module.css';
15
+ import TermComponent from './Term/Term';
16
+ function Terms(_a) {
17
+ var form = _a.form, internal = _a.internal, postview = _a.postview, formStyle = _a.formStyle, originalValues = _a.originalValues, formController = _a.formController;
18
+ var setValue = formController.setValue, control = formController.control, formState = formController.formState;
19
+ var _b = useState(false), tempError = _b[0], setTempError = _b[1];
20
+ useEffect(function () {
21
+ setTempError(true);
22
+ setTimeout(function () {
23
+ setTempError(false);
24
+ }, 500);
25
+ }, [formState.isSubmitting]);
26
+ if (form.terms &&
27
+ (!internal || (internal && postview)) &&
28
+ (originalValues === null || originalValues === void 0 ? void 0 : originalValues['INTERNAL_CREATING_AGENT']) === undefined) {
29
+ return (_jsx("div", __assign({ className: styles.termsContainer, style: {
30
+ width: (form.size.blockSize + form.size.spacingSize) *
31
+ form.size.blockNum,
32
+ } }, { children: form.terms.map(function (term) { return (_jsx(TermComponent, { setValue: setValue, postview: postview, tempError: tempError, term: term, control: control, errors: formState.errors, form: form, formStyle: formStyle }, term.id)); }) })));
33
+ }
34
+ return _jsx(_Fragment, {});
35
+ }
36
+ export default Terms;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { StepProps } from '../../Step';
3
- import { CBRElementStep } from '../../../../@Types/CBRFormStep';
3
+ import { CBRElementStep } from '../../../@Types/CBRFormStep';
4
4
  declare function CBRElementStepComponent(props: ElementSubStepRendererProps): JSX.Element;
5
5
  export default CBRElementStepComponent;
6
6
  export interface ElementSubStepRendererProps extends Omit<StepProps, 'step'> {
@@ -47,9 +47,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
47
47
  };
48
48
  import { jsx as _jsx } from "react/jsx-runtime";
49
49
  import SmartSelectStep from '../../SmartSelectStep/SmartSelectStep';
50
- import CBRFormStepTypes from '../../../../constants/CBRFormStepTypes';
50
+ import CBRFormStepTypes from '../../../constants/CBRFormStepTypes';
51
51
  import axios from 'axios';
52
- import InputIcon from '../../../../shared/InputIcon/InputIcon';
52
+ import InputIcon from '../../../shared/InputIcon/InputIcon';
53
53
  function CBRElementStepComponent(props) {
54
54
  return (_jsx(SmartSelectStep, __assign({}, props, { step: props.step, icon: _jsx(InputIcon, { icon: 'LEAK' }), getOptions: getElementOptions, getOptionSelected: function (option, value) {
55
55
  return option.id === value.id;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { CBRIncidentsStep as CBRIncidentsStepType } from '../../../../@Types/CBRFormStep';
2
+ import { CBRIncidentsStep as CBRIncidentsStepType } from '../../../@Types/CBRFormStep';
3
3
  import { StepProps } from '../../Step';
4
4
  export interface CBRIncidentsStepProps extends Omit<StepProps, 'step'> {
5
5
  /** The CBRIncidentsStep to display */
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { FormStyleTypes } from '../../../../constants/FormStepTypes';
13
+ import { FormStyleTypes } from '../../../constants/FormStepTypes';
14
14
  import MaterialCBRIncidentsStep from './MaterialCBRIncidentsStep/MaterialCBRIncidentsStep';
15
15
  function CBRIncidentsStep(props) {
16
16
  switch (props.formStyle.type) {
@@ -33,11 +33,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
33
33
  /* eslint-disable no-console */
34
34
  import { useEffect, useState } from 'react';
35
35
  import { Controller } from 'react-hook-form';
36
- import CBRFormStepTypes from '../../../../../constants/CBRFormStepTypes';
36
+ import CBRFormStepTypes from '../../../../constants/CBRFormStepTypes';
37
37
  import IncidentComponent from './Incident/Incident';
38
38
  import styles from './MaterialCBRIncidentsStep.module.css';
39
39
  import { nanoid } from 'nanoid';
40
- import RoundedButton from '../../../../../shared/RoundedButton/RoundedButton';
40
+ import RoundedButton from '../../../../shared/RoundedButton/RoundedButton';
41
41
  function Incidents(_a) {
42
42
  var step = _a.step, form = _a.form, btnRef = _a.btnRef, editable = _a.editable, postview = _a.postview, onChange = _a.onChange, incidents = _a.incidents, formStyle = _a.formStyle, dependencyStore = _a.dependencyStore, setDependencyStore = _a.setDependencyStore, others = __rest(_a, ["step", "form", "btnRef", "editable", "postview", "onChange", "incidents", "formStyle", "dependencyStore", "setDependencyStore"]);
43
43
  /** Form to pass down with aditional steps */
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { StepProps } from '../../Step';
3
- import { CBRPropertyStep } from '../../../../@Types/CBRFormStep';
3
+ import { CBRPropertyStep } from '../../../@Types/CBRFormStep';
4
4
  export interface PropertyRendererProps extends Omit<StepProps, 'step'> {
5
5
  step: CBRPropertyStep;
6
6
  }
@@ -53,8 +53,8 @@ import WarningRoundedIcon from '@material-ui/icons/WarningRounded';
53
53
  import axios from 'axios';
54
54
  import React, { useState } from 'react';
55
55
  import { Dialog } from '@material-ui/core';
56
- import RoundedButton from '../../../../shared/RoundedButton/RoundedButton';
57
- import InputIcon from '../../../../shared/InputIcon/InputIcon';
56
+ import RoundedButton from '../../../shared/RoundedButton/RoundedButton';
57
+ import InputIcon from '../../../shared/InputIcon/InputIcon';
58
58
  var baseUrl = "https://integrations.".concat(process.env.REACT_APP_DOMAIN, "/sinco/cbr/");
59
59
  function CBRPropertyStepComponent(props) {
60
60
  var _this = this;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AYFFormStep } from '../../@Types/AYFFormStep';
2
+ import { AYFFormStep } from '../@Types/AYFFormStep';
3
3
  import { StepProps } from './Step';
4
4
  interface AYFStepProps extends Omit<StepProps, 'step'> {
5
5
  step: AYFFormStep;
@@ -46,7 +46,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
46
46
  }
47
47
  };
48
48
  import { jsx as _jsx } from "react/jsx-runtime";
49
- import AYFFormStepTypes from '../../constants/AYFFormStepTypes';
49
+ import AYFFormStepTypes from '../constants/AYFFormStepTypes';
50
50
  import TextInputStep from './TextInputStep/TextInputStep';
51
51
  import SmartSelectStep from './SmartSelectStep/SmartSelectStep';
52
52
  import CalendarTodayRoundedIcon from '@material-ui/icons/CalendarTodayRounded';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ApiSelector } from '../../../@Types/FormStep';
2
+ import { ApiSelector } from '../../@Types/FormStep';
3
3
  import { StepProps } from '../Step';
4
4
  export interface StepOptions {
5
5
  id: string | number;
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  return t;
22
22
  };
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
- import { FormStyleTypes } from '../../../constants/FormStepTypes';
24
+ import { FormStyleTypes } from '../../constants/FormStepTypes';
25
25
  import MaterialApiSelectorStep from './MaterialApiSelectorStep/MaterialApiSelectorStep';
26
26
  function ApiSelectorStep(_a) {
27
27
  var props = __rest(_a, []);
@@ -59,15 +59,15 @@ var __rest = (this && this.__rest) || function (s, e) {
59
59
  import { createElement as _createElement } from "react";
60
60
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
61
61
  import React, { useEffect, useState } from 'react';
62
- import FormStepTypes, { ApiSelectorOptionTypes, ApiSelectorParamTypes, } from '../../../../constants/FormStepTypes';
62
+ import FormStepTypes, { ApiSelectorOptionTypes, ApiSelectorParamTypes, } from '../../../constants/FormStepTypes';
63
63
  import styles from './MaterialApiSelectorStep.module.css';
64
64
  import StepComponent from '../../Step';
65
65
  import { Controller } from 'react-hook-form';
66
66
  import { calcFillerSize } from '../../StepFunctions';
67
67
  import { SmartSelect } from '../../SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep';
68
- import widgetInstance from '../../../../AxiosWidget';
69
- import axiosInstance from '../../../../AxiosAPI';
70
- import InputIcon from '../../../../shared/InputIcon/InputIcon';
68
+ import widgetInstance from '../../../AxiosWidget';
69
+ import axiosInstance from '../../../AxiosAPI';
70
+ import InputIcon from '../../../shared/InputIcon/InputIcon';
71
71
  function ApiSelector(_a) {
72
72
  var _this = this;
73
73
  var step = _a.step, form = _a.form, level = _a.level, value = _a.value, control = _a.control, editable = _a.editable, postview = _a.postview, inputRef = _a.inputRef, getValues = _a.getValues, widthStats = _a.widthStats, handleSizeChange = _a.handleSizeChange, others = __rest(_a, ["step", "form", "level", "value", "control", "editable", "postview", "inputRef", "getValues", "widthStats", "handleSizeChange"]);
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { CBRFormStep } from '../../@Types/CBRFormStep';
2
+ import { CBRFormStep } from '../@Types/CBRFormStep';
3
3
  import { StepProps } from './Step';
4
4
  interface CBRStepProps extends Omit<StepProps, 'step'> {
5
5
  step: CBRFormStep;
@@ -46,7 +46,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
46
46
  }
47
47
  };
48
48
  import { jsx as _jsx } from "react/jsx-runtime";
49
- import CBRFormStepTypes from '../../constants/CBRFormStepTypes';
49
+ import CBRFormStepTypes from '../constants/CBRFormStepTypes';
50
50
  import PersonRoundedIcon from '@material-ui/icons/PersonRounded';
51
51
  import TextInputStep from './TextInputStep/TextInputStep';
52
52
  import SmartSelectStep from './SmartSelectStep/SmartSelectStep';
@@ -55,7 +55,7 @@ import CBRIncidentsStep from './@Construction/CBRIncidentsStep/CBRIncidentsStep'
55
55
  import CBRElementStep from './@Construction/CBRElementStep/CBRElementStep';
56
56
  import axios from 'axios';
57
57
  import CBRPropertyStep from './@Construction/CBRPropertyStep/CBRPropertyStep';
58
- import InputIcon from '../../shared/InputIcon/InputIcon';
58
+ import InputIcon from '../shared/InputIcon/InputIcon';
59
59
  var baseUrl = "https://integrations.".concat(process.env.REACT_APP_DOMAIN, "/sinco/cbr/");
60
60
  function CBRStepMapper(props) {
61
61
  var _this = this;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { CheckBox } from '../../../@Types/FormStep';
2
+ import { CheckBox } from '../../@Types/FormStep';
3
3
  import { StepProps } from '../Step';
4
4
  export interface CheckBoxStepProps extends StepProps {
5
5
  /** The CheckboxStep to display */
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  return t;
22
22
  };
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
- import { FormStyleTypes } from '../../../constants/FormStepTypes';
24
+ import { FormStyleTypes } from '../../constants/FormStepTypes';
25
25
  import MaterialCheckBoxStep from './MaterialCheckBoxStep/MaterialCheckBoxStep';
26
26
  function CheckboxStep(_a) {
27
27
  var formStyle = _a.formStyle, others = __rest(_a, ["formStyle"]);
@@ -24,7 +24,7 @@ import { createElement as _createElement } from "react";
24
24
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
25
25
  import styles from './MaterialCheckBoxStep.module.css';
26
26
  import { calcFillerSize, calcStepWidth } from '../../StepFunctions';
27
- import RoundedCheckBox from '../../../../shared/RoundedCheckBox/RoundedCheckBox';
27
+ import RoundedCheckBox from '../../../shared/RoundedCheckBox/RoundedCheckBox';
28
28
  import { Controller } from 'react-hook-form';
29
29
  import React, { useState } from 'react';
30
30
  import StepComponent from '../../Step';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ClassifierSelector } from '../../../@Types/FormStep';
2
+ import { ClassifierSelector } from '../../@Types/FormStep';
3
3
  import { StepProps } from '../Step';
4
4
  export interface ClassifierSelectorStepProps extends StepProps {
5
5
  /** The ClassifierSelectorStep to display */
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  return t;
22
22
  };
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
- import { FormStyleTypes } from '../../../constants/FormStepTypes';
24
+ import { FormStyleTypes } from '../../constants/FormStepTypes';
25
25
  import MaterialClassifierSelectorStep from './MaterialClassifierSelectorStep/MaterialClassifierSelectorStep';
26
26
  function ClassifierSelectorStep(_a) {
27
27
  var formStyle = _a.formStyle, others = __rest(_a, ["formStyle"]);
@@ -23,12 +23,12 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import { createElement as _createElement } from "react";
24
24
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
25
25
  import React, { useState } from 'react';
26
- import { ClassifierOptionTypes } from '../../../../constants/FormStepTypes';
26
+ import { ClassifierOptionTypes } from '../../../constants/FormStepTypes';
27
27
  import styles from './MaterialClassifierSelectorStep.module.css';
28
28
  import StepComponent from '../../Step';
29
29
  import { Controller } from 'react-hook-form';
30
30
  import { calcFillerSize, calcStepWidth } from '../../StepFunctions';
31
- import RoundedSmartSelect from '../../../../shared/RoundedSmartSelect/RoundedSmartSelect';
31
+ import RoundedSmartSelect from '../../../shared/RoundedSmartSelect/RoundedSmartSelect';
32
32
  function ClassifierSelector(_a) {
33
33
  var _b, _c;
34
34
  var step = _a.step, form = _a.form, level = _a.level, errors = _a.errors, value = _a.value, onBlur = _a.onBlur, control = _a.control, editable = _a.editable, onChange = _a.onChange, postview = _a.postview, inputRef = _a.inputRef, formStyle = _a.formStyle, getValues = _a.getValues, widthStats = _a.widthStats, handleSizeChange = _a.handleSizeChange, others = __rest(_a, ["step", "form", "level", "errors", "value", "onBlur", "control", "editable", "onChange", "postview", "inputRef", "formStyle", "getValues", "widthStats", "handleSizeChange"]);
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Collapsible } from '../../../@Types/FormStep';
2
+ import { Collapsible } from '../../@Types/FormStep';
3
3
  import { StepProps } from '../Step';
4
4
  export interface CollapsibleStepProps extends StepProps {
5
5
  /** The CollapsibleStep to display */
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  return t;
22
22
  };
23
23
  import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
24
- import { FormStyleTypes } from '../../../constants/FormStepTypes';
24
+ import { FormStyleTypes } from '../../constants/FormStepTypes';
25
25
  import MaterialCollapsibleStep from './MaterialTitleStep/MaterialCollapsibleStep';
26
26
  function CollapsibleStep(_a) {
27
27
  var step = _a.step, formStyle = _a.formStyle, others = __rest(_a, ["step", "formStyle"]);
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { DatePicker } from '../../../@Types/FormStep';
2
+ import { DatePicker } from '../../@Types/FormStep';
3
3
  import { StepProps } from '../Step';
4
4
  export interface DatePickerStepProps extends StepProps {
5
5
  /** The DatePickerStep to display */
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { FormStyleTypes } from '../../../constants/FormStepTypes';
13
+ import { FormStyleTypes } from '../../constants/FormStepTypes';
14
14
  import MaterialDatePickerStep from './MaterialDatePickerStep/MaterialDatePickerStep';
15
15
  function DatePickerStep(props) {
16
16
  switch (props.formStyle.type) {
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import styles from './MaterialDatePickerStep.module.css';
25
25
  import { Controller } from 'react-hook-form';
26
- import RoundedDatePicker from '../../../../shared/RoundedDatePicker/RoundedDatePicker';
26
+ import RoundedDatePicker from '../../../shared/RoundedDatePicker/RoundedDatePicker';
27
27
  import { calcStepWidth } from '../../StepFunctions';
28
28
  function DatePickerStep(_a) {
29
29
  var step = _a.step, form = _a.form, errors = _a.errors, control = _a.control, editable = _a.editable, postview = _a.postview, formStyle = _a.formStyle, widthStats = _a.widthStats, _b = _a.defaultValue, defaultValue = _b === void 0 ? null : _b;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { EntityValuePicker } from '../../../@Types/FormStep';
2
+ import { EntityValuePicker } from '../../@Types/FormStep';
3
3
  import { StepProps } from '../Step';
4
4
  export interface StepOptions {
5
5
  id: string | number;
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  return t;
22
22
  };
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
- import { FormStyleTypes } from '../../../constants/FormStepTypes';
24
+ import { FormStyleTypes } from '../../constants/FormStepTypes';
25
25
  import MaterialEntityValuePickerStep from './MaterialEntityValuePickerStep/MaterialEntityValuePickerStep';
26
26
  function EntityValuePickerStep(_a) {
27
27
  var props = __rest(_a, []);
@@ -59,15 +59,15 @@ var __rest = (this && this.__rest) || function (s, e) {
59
59
  import { createElement as _createElement } from "react";
60
60
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
61
61
  import React, { useEffect, useState } from 'react';
62
- import FormStepTypes, { EntityValueDataTypes, EntityValueOptionTypes, } from '../../../../constants/FormStepTypes';
62
+ import FormStepTypes, { EntityValueDataTypes, EntityValueOptionTypes, } from '../../../constants/FormStepTypes';
63
63
  import styles from './MaterialEntityValuePickerStep.module.css';
64
64
  import StepComponent from '../../Step';
65
65
  import { Controller } from 'react-hook-form';
66
66
  import { calcFillerSize } from '../../StepFunctions';
67
67
  import { SmartSelect } from '../../SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep';
68
- import widgetInstance from '../../../../AxiosWidget';
69
- import axiosInstance from '../../../../AxiosAPI';
70
- import InputIcon from '../../../../shared/InputIcon/InputIcon';
68
+ import widgetInstance from '../../../AxiosWidget';
69
+ import axiosInstance from '../../../AxiosAPI';
70
+ import InputIcon from '../../../shared/InputIcon/InputIcon';
71
71
  function EntityValuePicker(_a) {
72
72
  var _this = this;
73
73
  var step = _a.step, form = _a.form, level = _a.level, value = _a.value, control = _a.control, editable = _a.editable, postview = _a.postview, inputRef = _a.inputRef, getValues = _a.getValues, widthStats = _a.widthStats, handleSizeChange = _a.handleSizeChange, others = __rest(_a, ["step", "form", "level", "value", "control", "editable", "postview", "inputRef", "getValues", "widthStats", "handleSizeChange"]);
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { FileUpload } from '../../../@Types/FormStep';
2
+ import { FileUpload } from '../../@Types/FormStep';
3
3
  import { StepProps } from '../Step';
4
4
  export interface FileUploadStepProps extends StepProps {
5
5
  /** The FileUploadStep to display */
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { FormStyleTypes } from '../../../constants/FormStepTypes';
13
+ import { FormStyleTypes } from '../../constants/FormStepTypes';
14
14
  import MaterialFileUploadStep from './MaterialFileUploadStep/MaterialFileUploadStep';
15
15
  function FileUploadStep(props) {
16
16
  switch (props.formStyle.type) {
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { FileObject, UploadedFileObject } from '../MaterialFileUploadStep';
3
- import { FormStyle } from '../../../../../@Types/Form';
3
+ import { FormStyle } from '../../../../@Types/Form';
4
4
  interface FileComponentProps {
5
5
  file: FileObject | UploadedFileObject;
6
6
  formStyle: FormStyle;
@@ -51,7 +51,7 @@ import styles from './FileComponent.module.css';
51
51
  import ClearRoundedIcon from '@material-ui/icons/ClearRounded';
52
52
  import DescriptionRoundedIcon from '@material-ui/icons/DescriptionRounded';
53
53
  import ErrorRoundedIcon from '@material-ui/icons/ErrorRounded';
54
- import Loader from '../../../../../shared/Loader/Loader';
54
+ import Loader from '../../../../shared/Loader/Loader';
55
55
  import { useState } from 'react';
56
56
  function FileUploadComponent(_a) {
57
57
  var _this = this;
@@ -68,12 +68,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
68
68
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
69
69
  import styles from './MaterialFileUploadStep.module.css';
70
70
  import { Controller } from 'react-hook-form';
71
- import RoundedButton from '../../../../shared/RoundedButton/RoundedButton';
71
+ import RoundedButton from '../../../shared/RoundedButton/RoundedButton';
72
72
  import { useEffect, useRef, useState } from 'react';
73
- import { getAcceptedExtensions } from '../../../../constants/Files/FileExtensions';
74
- import { getUploadUrls, postFile } from '../../../../controllers/FileService';
73
+ import { getAcceptedExtensions } from '../../../constants/Files/FileExtensions';
74
+ import { getUploadUrls, postFile } from '../../../controllers/FileService';
75
75
  import FileComponent from './FileComponent/FileComponent';
76
- import maxSize from '../../../../constants/Files/FileMaxSize';
76
+ import maxSize from '../../../constants/Files/FileMaxSize';
77
77
  export function isUploadedFileObject(file) {
78
78
  return file.state === undefined && file.S3Key !== undefined;
79
79
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Mapper } from '../../../@Types/FormStep';
2
+ import { Mapper } from '../../@Types/FormStep';
3
3
  import { MapperElement } from './MaterialMapperStep/MaterialMapperStep';
4
4
  import { StepProps } from '../Step';
5
5
  interface CustomMapperElementModifiers<Type> {