@arquimedes.co/eureka-forms 1.9.81-test → 1.9.83-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/package.json +1 -1
  2. package/dist/@Types/@Types.d.ts +0 -2
  3. package/dist/@Types/@Types.js +0 -1
  4. package/dist/@Types/AYFFormStep.d.ts +0 -19
  5. package/dist/@Types/AYFFormStep.js +0 -1
  6. package/dist/@Types/CBRFormStep.d.ts +0 -74
  7. package/dist/@Types/CBRFormStep.js +0 -1
  8. package/dist/@Types/Form.d.ts +0 -65
  9. package/dist/@Types/Form.js +0 -1
  10. package/dist/@Types/FormStep.d.ts +0 -138
  11. package/dist/@Types/FormStep.js +0 -1
  12. package/dist/@Types/GenericFormSteps.d.ts +0 -60
  13. package/dist/@Types/GenericFormSteps.js +0 -1
  14. package/dist/@Types/Organization.d.ts +0 -17
  15. package/dist/@Types/Organization.js +0 -1
  16. package/dist/@Types/index.d.ts +0 -1
  17. package/dist/@Types/index.js +0 -1
  18. package/dist/App.d.ts +0 -60
  19. package/dist/App.js +0 -470
  20. package/dist/App.module.css +0 -34
  21. package/dist/AxiosAPI.d.ts +0 -2
  22. package/dist/AxiosAPI.js +0 -8
  23. package/dist/AxiosWidget.d.ts +0 -2
  24. package/dist/AxiosWidget.js +0 -8
  25. package/dist/FormComponents/Form/ColumnForm/ColumnForm.d.ts +0 -7
  26. package/dist/FormComponents/Form/ColumnForm/ColumnForm.js +0 -379
  27. package/dist/FormComponents/Form/ColumnForm/ColumnForm.module.css +0 -51
  28. package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.d.ts +0 -12
  29. package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.js +0 -31
  30. package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.module.css +0 -64
  31. package/dist/FormComponents/Form/Form.d.ts +0 -42
  32. package/dist/FormComponents/Form/Form.js +0 -147
  33. package/dist/FormComponents/Form/Form.module.css +0 -39
  34. package/dist/FormComponents/Form/StepperForm/StepperForm.d.ts +0 -4
  35. package/dist/FormComponents/Form/StepperForm/StepperForm.js +0 -6
  36. package/dist/FormComponents/Form/StepperForm/StepperForm.module.css +0 -0
  37. package/dist/FormComponents/Section/MaterialSection/MaterialSection.d.ts +0 -4
  38. package/dist/FormComponents/Section/MaterialSection/MaterialSection.js +0 -42
  39. package/dist/FormComponents/Section/MaterialSection/MaterialSection.module.css +0 -8
  40. package/dist/FormComponents/Section/Section.d.ts +0 -39
  41. package/dist/FormComponents/Section/Section.js +0 -23
  42. package/dist/FormComponents/Step/@Construction/CBRElementStep/CBRElementStep.d.ts +0 -8
  43. package/dist/FormComponents/Step/@Construction/CBRElementStep/CBRElementStep.js +0 -139
  44. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/CBRIncidentsStep.d.ts +0 -9
  45. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/CBRIncidentsStep.js +0 -23
  46. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.d.ts +0 -8
  47. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.js +0 -49
  48. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.module.css +0 -60
  49. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.d.ts +0 -11
  50. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.js +0 -121
  51. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.module.css +0 -34
  52. package/dist/FormComponents/Step/@Construction/CBRPropertyStep/CBRPropertyStep.d.ts +0 -8
  53. package/dist/FormComponents/Step/@Construction/CBRPropertyStep/CBRPropertyStep.js +0 -138
  54. package/dist/FormComponents/Step/@Construction/CBRPropertyStep/CBRPropertyStep.module.css +0 -54
  55. package/dist/FormComponents/Step/AYFStepMapper.d.ts +0 -12
  56. package/dist/FormComponents/Step/AYFStepMapper.js +0 -170
  57. package/dist/FormComponents/Step/CBRStepMapper.d.ts +0 -13
  58. package/dist/FormComponents/Step/CBRStepMapper.js +0 -202
  59. package/dist/FormComponents/Step/CheckBoxStep/CheckBoxStep.d.ts +0 -9
  60. package/dist/FormComponents/Step/CheckBoxStep/CheckBoxStep.js +0 -35
  61. package/dist/FormComponents/Step/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.d.ts +0 -4
  62. package/dist/FormComponents/Step/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.js +0 -65
  63. package/dist/FormComponents/Step/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.module.css +0 -37
  64. package/dist/FormComponents/Step/ClassifierSelectorStep/ClassifierSelectorStep.d.ts +0 -9
  65. package/dist/FormComponents/Step/ClassifierSelectorStep/ClassifierSelectorStep.js +0 -35
  66. package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.d.ts +0 -4
  67. package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +0 -121
  68. package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.module.css +0 -25
  69. package/dist/FormComponents/Step/CollapsibleStep/CollapsibleStep.d.ts +0 -9
  70. package/dist/FormComponents/Step/CollapsibleStep/CollapsibleStep.js +0 -37
  71. package/dist/FormComponents/Step/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.d.ts +0 -4
  72. package/dist/FormComponents/Step/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.js +0 -75
  73. package/dist/FormComponents/Step/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.module.css +0 -62
  74. package/dist/FormComponents/Step/DatePickerStep/DatePickerStep.d.ts +0 -11
  75. package/dist/FormComponents/Step/DatePickerStep/DatePickerStep.js +0 -23
  76. package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.d.ts +0 -4
  77. package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js +0 -48
  78. package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.module.css +0 -9
  79. package/dist/FormComponents/Step/EntityValueStep/EntityValuePickerStep.d.ts +0 -15
  80. package/dist/FormComponents/Step/EntityValueStep/EntityValuePickerStep.js +0 -35
  81. package/dist/FormComponents/Step/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.d.ts +0 -4
  82. package/dist/FormComponents/Step/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.js +0 -203
  83. package/dist/FormComponents/Step/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.module.css +0 -25
  84. package/dist/FormComponents/Step/FileUploadStep/FileUploadStep.d.ts +0 -9
  85. package/dist/FormComponents/Step/FileUploadStep/FileUploadStep.js +0 -23
  86. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.d.ts +0 -13
  87. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.js +0 -123
  88. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.module.css +0 -60
  89. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.d.ts +0 -16
  90. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +0 -272
  91. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.module.css +0 -59
  92. package/dist/FormComponents/Step/MapperStep/MapperStep.d.ts +0 -15
  93. package/dist/FormComponents/Step/MapperStep/MapperStep.js +0 -35
  94. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/MapperElement.d.ts +0 -10
  95. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/MapperElement.js +0 -27
  96. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/MapperElement.module.css +0 -60
  97. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/PillElementContainer/PillElementContainer.d.ts +0 -13
  98. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/PillElementContainer/PillElementContainer.js +0 -33
  99. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/PillElementContainer/PillElementContainer.module.css +0 -60
  100. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/MaterialMapperStep.d.ts +0 -15
  101. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/MaterialMapperStep.js +0 -275
  102. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/MaterialMapperStep.module.css +0 -42
  103. package/dist/FormComponents/Step/RatingStep/MaterialRatingStep/MaterialRatingStep.d.ts +0 -4
  104. package/dist/FormComponents/Step/RatingStep/MaterialRatingStep/MaterialRatingStep.js +0 -71
  105. package/dist/FormComponents/Step/RatingStep/MaterialRatingStep/MaterialRatingStep.module.css +0 -30
  106. package/dist/FormComponents/Step/RatingStep/RatingStep.d.ts +0 -9
  107. package/dist/FormComponents/Step/RatingStep/RatingStep.js +0 -23
  108. package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.d.ts +0 -4
  109. package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.js +0 -104
  110. package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.module.css +0 -25
  111. package/dist/FormComponents/Step/SelectorStep/SelectorStep.d.ts +0 -9
  112. package/dist/FormComponents/Step/SelectorStep/SelectorStep.js +0 -35
  113. package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.d.ts +0 -4
  114. package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.js +0 -11
  115. package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.module.css +0 -7
  116. package/dist/FormComponents/Step/SeparatorStep/SeparatorStep.d.ts +0 -9
  117. package/dist/FormComponents/Step/SeparatorStep/SeparatorStep.js +0 -35
  118. package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.d.ts +0 -10
  119. package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.js +0 -241
  120. package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.module.css +0 -9
  121. package/dist/FormComponents/Step/SmartSelectStep/SmartSelectStep.d.ts +0 -33
  122. package/dist/FormComponents/Step/SmartSelectStep/SmartSelectStep.js +0 -23
  123. package/dist/FormComponents/Step/Step.d.ts +0 -11
  124. package/dist/FormComponents/Step/Step.js +0 -108
  125. package/dist/FormComponents/Step/StepFunctions.d.ts +0 -5
  126. package/dist/FormComponents/Step/StepFunctions.js +0 -65
  127. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/DraftEditor.css +0 -96
  128. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.d.ts +0 -13
  129. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.js +0 -213
  130. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.module.css +0 -93
  131. package/dist/FormComponents/Step/TextAreaStep/TextAreaStep.d.ts +0 -10
  132. package/dist/FormComponents/Step/TextAreaStep/TextAreaStep.js +0 -23
  133. package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.d.ts +0 -4
  134. package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.js +0 -76
  135. package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.module.css +0 -9
  136. package/dist/FormComponents/Step/TextInputStep/TextInputStep.d.ts +0 -13
  137. package/dist/FormComponents/Step/TextInputStep/TextInputStep.js +0 -23
  138. package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.d.ts +0 -4
  139. package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.js +0 -20
  140. package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.module.css +0 -19
  141. package/dist/FormComponents/Step/TitleStep/TitleStep.d.ts +0 -9
  142. package/dist/FormComponents/Step/TitleStep/TitleStep.js +0 -35
  143. package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.d.ts +0 -4
  144. package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.js +0 -88
  145. package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.module.css +0 -83
  146. package/dist/FormComponents/Term/Term.d.ts +0 -15
  147. package/dist/FormComponents/Term/Term.js +0 -23
  148. package/dist/Icons/Construction/LeakIcon.d.ts +0 -3
  149. package/dist/Icons/Construction/LeakIcon.js +0 -16
  150. package/dist/Icons/Construction/ProjectIcon.d.ts +0 -3
  151. package/dist/Icons/Construction/ProjectIcon.js +0 -16
  152. package/dist/Icons/Construction/PropertyIcon.d.ts +0 -3
  153. package/dist/Icons/Construction/PropertyIcon.js +0 -16
  154. package/dist/Icons/Construction/SpaceIcon.d.ts +0 -3
  155. package/dist/Icons/Construction/SpaceIcon.js +0 -16
  156. package/dist/Icons/DocumentIcon.d.ts +0 -3
  157. package/dist/Icons/DocumentIcon.js +0 -16
  158. package/dist/Icons/Entities/GenericEntityIcon.d.ts +0 -2
  159. package/dist/Icons/Entities/GenericEntityIcon.js +0 -17
  160. package/dist/Icons/Entities/HandshakeIcon.d.ts +0 -2
  161. package/dist/Icons/Entities/HandshakeIcon.js +0 -17
  162. package/dist/Widget.d.ts +0 -1
  163. package/dist/Widget.js +0 -61
  164. package/dist/constants/AYFFormStepTypes.d.ts +0 -9
  165. package/dist/constants/AYFFormStepTypes.js +0 -10
  166. package/dist/constants/CBRFormStepTypes.d.ts +0 -21
  167. package/dist/constants/CBRFormStepTypes.js +0 -22
  168. package/dist/constants/Files/FileExtensions.d.ts +0 -3
  169. package/dist/constants/Files/FileExtensions.js +0 -68
  170. package/dist/constants/Files/FileMaxSize.d.ts +0 -2
  171. package/dist/constants/Files/FileMaxSize.js +0 -2
  172. package/dist/constants/FormStepTypes.d.ts +0 -46
  173. package/dist/constants/FormStepTypes.js +0 -54
  174. package/dist/constants/IconTypes.d.ts +0 -10
  175. package/dist/constants/IconTypes.js +0 -11
  176. package/dist/constants/InternalFormStyle.d.ts +0 -3
  177. package/dist/constants/InternalFormStyle.js +0 -16
  178. package/dist/constants/MaterialClassNameSeed.d.ts +0 -1
  179. package/dist/constants/MaterialClassNameSeed.js +0 -1
  180. package/dist/controllers/FileService.d.ts +0 -5
  181. package/dist/controllers/FileService.js +0 -92
  182. package/dist/index.d.ts +0 -1
  183. package/dist/index.js +0 -29
  184. package/dist/index.lib.d.ts +0 -7
  185. package/dist/index.lib.js +0 -5
  186. package/dist/index.module.css +0 -14
  187. package/dist/shared/InputIcon/InputIcon.d.ts +0 -7
  188. package/dist/shared/InputIcon/InputIcon.js +0 -81
  189. package/dist/shared/Loader/Loader.d.ts +0 -18
  190. package/dist/shared/Loader/Loader.js +0 -26
  191. package/dist/shared/Loader/Loader.module.css +0 -12
  192. package/dist/shared/Navbar/Navbar.d.ts +0 -9
  193. package/dist/shared/Navbar/Navbar.js +0 -18
  194. package/dist/shared/Navbar/Navbar.module.css +0 -18
  195. package/dist/shared/Rating/Rating.d.ts +0 -16
  196. package/dist/shared/Rating/Rating.js +0 -41
  197. package/dist/shared/Rating/Rating.module.css +0 -32
  198. package/dist/shared/Rating/Ratings/LikeRating.d.ts +0 -4
  199. package/dist/shared/Rating/Ratings/LikeRating.js +0 -43
  200. package/dist/shared/Rating/Ratings/SatisfactionRating.d.ts +0 -4
  201. package/dist/shared/Rating/Ratings/SatisfactionRating.js +0 -61
  202. package/dist/shared/Rating/Ratings/ScaleRating.d.ts +0 -4
  203. package/dist/shared/Rating/Ratings/ScaleRating.js +0 -63
  204. package/dist/shared/RoundedButton/RoundedButton.d.ts +0 -30
  205. package/dist/shared/RoundedButton/RoundedButton.js +0 -45
  206. package/dist/shared/RoundedCheckBox/RoundedCheckBox.d.ts +0 -24
  207. package/dist/shared/RoundedCheckBox/RoundedCheckBox.js +0 -101
  208. package/dist/shared/RoundedDatePicker/RoundedDatePicker.d.ts +0 -48
  209. package/dist/shared/RoundedDatePicker/RoundedDatePicker.js +0 -348
  210. package/dist/shared/RoundedSelect/RoundedSelect.d.ts +0 -68
  211. package/dist/shared/RoundedSelect/RoundedSelect.js +0 -214
  212. package/dist/shared/RoundedSmartSelect/RoundedSmartSelect.d.ts +0 -66
  213. package/dist/shared/RoundedSmartSelect/RoundedSmartSelect.js +0 -234
  214. package/dist/shared/RoundedTextField/RoundedTextField.d.ts +0 -45
  215. package/dist/shared/RoundedTextField/RoundedTextField.js +0 -175
  216. package/dist/utils/CbrFunctions.d.ts +0 -8
  217. package/dist/utils/CbrFunctions.js +0 -53
@@ -1,123 +0,0 @@
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
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
49
- import styles from './FileComponent.module.css';
50
- import ClearRoundedIcon from '@material-ui/icons/ClearRounded';
51
- import DescriptionRoundedIcon from '@material-ui/icons/DescriptionRounded';
52
- import ErrorRoundedIcon from '@material-ui/icons/ErrorRounded';
53
- import Loader from '../../../../../shared/Loader/Loader';
54
- import { useState } from 'react';
55
- function FileUploadComponent(_a) {
56
- var _this = this;
57
- var _b, _c;
58
- var file = _a.file, formStyle = _a.formStyle, error = _a.error, handleRemove = _a.handleRemove, fetchDownloadUrl = _a.fetchDownloadUrl;
59
- var _d = useState(false), downloading = _d[0], setDownloading = _d[1];
60
- if (!file) {
61
- return _jsx("div", {});
62
- }
63
- var downloadFile = function () { return __awaiter(_this, void 0, void 0, function () {
64
- var fileUrl, a, error_1;
65
- return __generator(this, function (_a) {
66
- switch (_a.label) {
67
- case 0:
68
- if (!(fetchDownloadUrl && file.S3Key && file.fileName)) return [3 /*break*/, 4];
69
- _a.label = 1;
70
- case 1:
71
- _a.trys.push([1, 3, , 4]);
72
- setDownloading(true);
73
- return [4 /*yield*/, fetchDownloadUrl(file.S3Key, file.fileName)];
74
- case 2:
75
- fileUrl = _a.sent();
76
- a = document.createElement('a');
77
- a.href = fileUrl;
78
- a.setAttribute('download', file.fileName);
79
- a.click();
80
- setDownloading(false);
81
- return [3 /*break*/, 4];
82
- case 3:
83
- error_1 = _a.sent();
84
- console.error(error_1);
85
- return [3 /*break*/, 4];
86
- case 4: return [2 /*return*/];
87
- }
88
- });
89
- }); };
90
- var calcIcon = function () {
91
- if (downloading) {
92
- return (_jsx("div", __assign({ className: styles.loaderContainer }, { children: _jsx(Loader, { size: 26, color: formStyle.primaryColor }) })));
93
- }
94
- else if (file.state !== undefined) {
95
- switch (file.state) {
96
- case 'STARTING':
97
- case 'UPLOADING':
98
- return (_jsx("div", __assign({ className: styles.loaderContainer }, { children: _jsx(Loader, { size: 26, color: formStyle.primaryColor }) })));
99
- case 'DONE':
100
- return (_jsx("div", __assign({ className: styles.documentIcon, style: { color: formStyle.primaryColor } }, { children: _jsx(DescriptionRoundedIcon, {}) })));
101
- case 'ERROR':
102
- return (_jsx("div", __assign({ className: styles.documentIcon, style: { color: formStyle.errorColor } }, { children: _jsx(ErrorRoundedIcon, {}) })));
103
- default:
104
- return _jsx("div", {});
105
- }
106
- }
107
- else {
108
- return (_jsx("div", __assign({ className: styles.documentIcon, style: { color: formStyle.primaryColor } }, { children: _jsx(DescriptionRoundedIcon, {}) })));
109
- }
110
- };
111
- return (_jsxs("div", __assign({ className: styles.container }, { children: [_jsx("div", __assign({ className: styles.iconContainer }, { children: calcIcon() })), _jsx("div", __assign({ className: fetchDownloadUrl && file.S3Key
112
- ? styles.downloadableLbl
113
- : styles.label, style: {
114
- color: error ? formStyle.errorColor : formStyle.textColor,
115
- }, onClick: function () {
116
- if (fetchDownloadUrl !== undefined && file.S3Key) {
117
- downloadFile();
118
- }
119
- } }, { children: (_c = (_b = file.file) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : file.fileName })), _jsx("div", __assign({ className: styles.deletBtn, onClick: function () {
120
- handleRemove();
121
- } }, { children: file.state !== undefined && (_jsx(ClearRoundedIcon, { fontSize: "inherit" })) }))] })));
122
- }
123
- export default FileUploadComponent;
@@ -1,60 +0,0 @@
1
- .container {
2
- display: flex;
3
- flex-direction: row;
4
- align-items: center;
5
- margin-left: 4px;
6
- }
7
-
8
- .documentIcon {
9
- font-size: 26px;
10
- width: 30px;
11
- display: flex;
12
- align-items: center;
13
- justify-content: center;
14
- height: 30px;
15
- }
16
-
17
- .label,
18
- .downloadableLbl {
19
- font-size: 1rem;
20
- margin-left: 2px;
21
- cursor: default;
22
- white-space: nowrap;
23
- overflow: hidden;
24
- text-overflow: ellipsis;
25
- max-width: calc(100% - 80px);
26
- }
27
- .downloadableLbl {
28
- cursor: pointer;
29
- }
30
- .downloadableLbl:hover {
31
- text-decoration: underline;
32
- }
33
- .deletBtn {
34
- font-size: 26px;
35
- height: 26px;
36
- margin-left: 5px;
37
- color: '#787878';
38
- cursor: pointer;
39
- }
40
- .loaderContainer {
41
- position: relative;
42
- height: 26px;
43
- width: 26px;
44
- }
45
- .waitingForUpload {
46
- height: 22px;
47
- width: 22px;
48
- border: 2px solid #787878;
49
- border-radius: 20px;
50
- margin-left: 0px;
51
- }
52
-
53
- .iconContainer {
54
- height: 30px;
55
- width: 30px;
56
- margin-left: 10px;
57
- display: flex;
58
- align-items: center;
59
- justify-content: center;
60
- }
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- import { FileUploadStepProps } from '../FileUploadStep';
3
- export interface FileObject {
4
- state: 'STARTING' | 'UPLOADING' | 'DONE' | 'CANCEL' | 'ERROR';
5
- file: File;
6
- postInfo: any;
7
- fileName?: string;
8
- S3Key?: string;
9
- error?: boolean;
10
- }
11
- export interface UploadedFileObject {
12
- fileName: string;
13
- S3Key: string;
14
- }
15
- declare function UploadStepComponent(props: FileUploadStepProps): JSX.Element;
16
- export default UploadStepComponent;
@@ -1,272 +0,0 @@
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
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
60
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
61
- if (ar || !(i in from)) {
62
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
63
- ar[i] = from[i];
64
- }
65
- }
66
- return to.concat(ar || Array.prototype.slice.call(from));
67
- };
68
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
69
- import styles from './MaterialFileUploadStep.module.css';
70
- import { Controller } from 'react-hook-form';
71
- import RoundedButton from '../../../../shared/RoundedButton/RoundedButton';
72
- import { useEffect, useRef, useState } from 'react';
73
- import { getAcceptedExtensions } from '../../../../constants/Files/FileExtensions';
74
- import { getUploadUrls, postFile } from '../../../../controllers/FileService';
75
- import FileComponent from './FileComponent/FileComponent';
76
- import maxSize from '../../../../constants/Files/FileMaxSize';
77
- function FileUploadStep(_a) {
78
- var step = _a.step, errors = _a.errors, value = _a.value, domain = _a.domain, btnRef = _a.btnRef, postview = _a.postview, onChange = _a.onChange, editable = _a.editable, formStyle = _a.formStyle, clearErrors = _a.clearErrors, fetchDownloadUrl = _a.fetchDownloadUrl;
79
- var _b = useState(undefined), error = _b[0], setError = _b[1];
80
- var _c = useState([]), fileChange = _c[0], setFileChange = _c[1];
81
- var inputRef = useRef();
82
- useEffect(function () {
83
- var filesToFetchLink = [];
84
- var filesChanged = [];
85
- for (var _i = 0, fileChange_1 = fileChange; _i < fileChange_1.length; _i++) {
86
- var file = fileChange_1[_i];
87
- if (file.state === 'STARTING') {
88
- filesToFetchLink.push(file);
89
- }
90
- if (file.state === 'UPLOADING') {
91
- uploadFile(file);
92
- filesChanged.push(file);
93
- }
94
- if (file.state === 'DONE' ||
95
- file.state === 'ERROR') {
96
- filesChanged.push(file);
97
- }
98
- if (file.state === 'CANCEL') {
99
- var newValue = __spreadArray([], value, true);
100
- for (var i = 0; i < value.length; i++) {
101
- if (value[i].file === file.file) {
102
- newValue.splice(i, 1);
103
- break;
104
- }
105
- }
106
- onChange(newValue);
107
- }
108
- }
109
- if (filesChanged.length > 0) {
110
- var newValue = __spreadArray([], value, true);
111
- for (var _a = 0, filesChanged_1 = filesChanged; _a < filesChanged_1.length; _a++) {
112
- var file = filesChanged_1[_a];
113
- for (var i = 0; i < value.length; i++) {
114
- if (value[i].file === file.file) {
115
- newValue[i] = file;
116
- }
117
- }
118
- }
119
- onChange(newValue);
120
- }
121
- if (filesToFetchLink.length > 0) {
122
- getLinks(filesToFetchLink);
123
- onChange(__spreadArray(__spreadArray([], value, true), filesToFetchLink, true));
124
- }
125
- }, [fileChange]);
126
- function getLinks(pFiles) {
127
- return __awaiter(this, void 0, void 0, function () {
128
- var fileLinks_1, errorsExt_1, error_1;
129
- return __generator(this, function (_a) {
130
- switch (_a.label) {
131
- case 0:
132
- _a.trys.push([0, 2, , 3]);
133
- return [4 /*yield*/, getUploadUrls(pFiles.map(function (file) { return file.file; }), domain)];
134
- case 1:
135
- fileLinks_1 = _a.sent();
136
- errorsExt_1 = [];
137
- setFileChange(pFiles.map(function (file, index) {
138
- var _a;
139
- if (fileLinks_1[index] === 'ERROR:INVALIDEXTENSION') {
140
- errorsExt_1.push((_a = file.file.name.split('.').pop()) !== null && _a !== void 0 ? _a : '');
141
- return __assign(__assign({}, file), { state: 'ERROR' });
142
- }
143
- else {
144
- return __assign(__assign({}, file), { state: 'UPLOADING', postInfo: fileLinks_1[index] });
145
- }
146
- }));
147
- if (errorsExt_1.length === 1) {
148
- setError('La extención .' + errorsExt_1[0] + ' no es válida');
149
- }
150
- else if (errorsExt_1.length > 1) {
151
- setError('Las extenciónes .' +
152
- errorsExt_1.join(',.') +
153
- ' no son válidas');
154
- }
155
- return [3 /*break*/, 3];
156
- case 2:
157
- error_1 = _a.sent();
158
- console.error(error_1);
159
- return [3 /*break*/, 3];
160
- case 3: return [2 /*return*/];
161
- }
162
- });
163
- });
164
- }
165
- function uploadFile(pFile) {
166
- return __awaiter(this, void 0, void 0, function () {
167
- var resp, error_2;
168
- return __generator(this, function (_a) {
169
- switch (_a.label) {
170
- case 0:
171
- _a.trys.push([0, 2, , 3]);
172
- return [4 /*yield*/, Promise.all([
173
- postFile(pFile.file, pFile.postInfo),
174
- new Promise(function (resolve) { return setTimeout(resolve, 1000); }),
175
- ])];
176
- case 1:
177
- resp = _a.sent();
178
- setFileChange([__assign(__assign(__assign({}, pFile), { state: 'DONE' }), resp[0])]);
179
- return [3 /*break*/, 3];
180
- case 2:
181
- error_2 = _a.sent();
182
- console.error(error_2);
183
- return [3 /*break*/, 3];
184
- case 3: return [2 /*return*/];
185
- }
186
- });
187
- });
188
- }
189
- var calcErrorMsg = function () {
190
- if (!!errors[step.id]) {
191
- var errNum = value.filter(function (val) { return val.state === 'ERROR'; }).length;
192
- if (errNum === 1) {
193
- return 'Este archivo no es válido';
194
- }
195
- else if (errNum > 1) {
196
- return 'Estos archivos no son válidos';
197
- }
198
- else {
199
- return 'Este campo es obligatorio';
200
- }
201
- }
202
- return '';
203
- };
204
- return (_jsxs("div", __assign({ className: styles.container +
205
- (error || !!errors[step.id] ? ' EF-error' : ''), style: editable == false || postview
206
- ? {}
207
- : {
208
- minHeight: '100px',
209
- }, "data-testid": step.id }, { children: [_jsx("div", __assign({ className: styles.labelLabel }, { children: step.label })), step.description && (_jsx("div", __assign({ className: styles.stepDescriptionLabel, style: { color: formStyle.descriptionTextColor } }, { children: step.description }))), _jsx("input", { type: "file", ref: inputRef, className: styles.filesInput, onChange: function (e) {
210
- var files = e.target.files;
211
- if (files) {
212
- var filesArray = Array.from(files);
213
- var maxFiles = filesArray.filter(function (file) { return file.size > maxSize; });
214
- if (maxFiles.length > 0) {
215
- setError('El tamaño máximo de carga es de 30Mb.');
216
- }
217
- else {
218
- setFileChange(filesArray
219
- .filter(function (file) {
220
- return value.find(function (val) {
221
- return val.file ===
222
- file;
223
- }) === undefined;
224
- })
225
- .map(function (file) {
226
- return ({
227
- state: 'STARTING',
228
- file: file,
229
- postInfo: null,
230
- });
231
- }));
232
- }
233
- inputRef.current.value = '';
234
- }
235
- }, multiple: true, accept: getAcceptedExtensions() }), _jsxs("div", __assign({ className: styles.btnContainer }, { children: [_jsx("input", { ref: btnRef, className: styles.hiddenInput }), _jsx(RoundedButton, { disabled: !editable || postview, text: 'Examinar' + (step.required ? ' *' : ''), color: formStyle.primaryContrastColor, backgroundColor: formStyle.primaryColor, fontSize: '1rem', padding: '5px 15px 5px 15px', onClick: function () {
236
- if (editable && !postview) {
237
- var input = inputRef.current;
238
- if (input !== null) {
239
- clearErrors(step.id);
240
- setError(undefined);
241
- input.click();
242
- }
243
- }
244
- } })] })), _jsx("div", __assign({ className: styles.filesContainer }, { children: value.map(function (file, index) { return (_jsx(FileComponent, { formStyle: formStyle, file: file, error: (!!errors[step.id] &&
245
- file.state !== 'DONE') ||
246
- file.state === 'ERROR', handleRemove: function () {
247
- if (value.filter(function (val) {
248
- return val.state === 'ERROR';
249
- }).length === 1) {
250
- clearErrors(step.id);
251
- setError(undefined);
252
- }
253
- if (file.state !== undefined) {
254
- setFileChange([
255
- __assign(__assign({}, file), { state: 'CANCEL' }),
256
- ]);
257
- }
258
- }, fetchDownloadUrl: fetchDownloadUrl }, index)); }) })), _jsx("div", __assign({ className: styles.errorMsg, style: { color: formStyle.errorColor } }, { children: error !== null && error !== void 0 ? error : calcErrorMsg() }))] })));
259
- }
260
- function UploadStepComponent(props) {
261
- return (_jsx(Controller, { name: props.step.id, control: props.control, defaultValue: [], rules: {
262
- validate: function (array) {
263
- return ((props.step.required && array.length > 0) ||
264
- !props.step.required) &&
265
- array.find(function (file) { return !file.S3Key; }) === undefined;
266
- },
267
- }, shouldUnregister: true, render: function (_a) {
268
- var _b = _a.field, ref = _b.ref, field = __rest(_b, ["ref"]);
269
- return (_jsx(FileUploadStep, __assign({}, props, field, { btnRef: ref })));
270
- } }));
271
- }
272
- export default UploadStepComponent;
@@ -1,59 +0,0 @@
1
- .container {
2
- width: fit-content;
3
- max-width: calc(100% - 20px);
4
- display: flex;
5
- padding: 10px;
6
- padding-bottom: 0px;
7
- padding-top: 5px;
8
- margin-bottom: 0px;
9
- width: 100%;
10
- flex-direction: column;
11
- }
12
-
13
- .labelLabel {
14
- font-size: 16px;
15
- margin-left: 8px;
16
- margin-bottom: 5px;
17
- -moz-user-select: none;
18
- -khtml-user-select: none;
19
- -webkit-user-select: none;
20
- -ms-user-select: none;
21
- user-select: none;
22
- }
23
-
24
- .stepDescriptionLabel {
25
- font-size: 0.75rem;
26
- margin-left: 14px;
27
- margin-top: -4px;
28
- font-weight: 400;
29
- line-height: 1.66;
30
- max-width: 100%;
31
- overflow: hidden;
32
- text-overflow: ellipsis;
33
- }
34
-
35
- .filesInput {
36
- display: none;
37
- }
38
- .btnContainer {
39
- margin-top: 5px;
40
- margin-left: 10px;
41
- margin-bottom: 3px;
42
- width: fit-content;
43
- }
44
- .errorMsg {
45
- font-size: 0.75rem;
46
- margin-top: 5px;
47
- margin-left: 14px;
48
- }
49
-
50
- .filesContainer {
51
- padding-top: 5px;
52
- }
53
-
54
- .hiddenInput {
55
- height: 0;
56
- width: 0;
57
- padding: 0;
58
- border-width: 0;
59
- }
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import { Mapper } from '../../../@Types/FormStep';
3
- import { MapperElement } from './MaterialMapperStep/MaterialMapperStep';
4
- import { StepProps } from '../Step';
5
- interface CustomMapperElementModifiers<Type> {
6
- calcName?: (element: MapperElement<Type>) => string;
7
- }
8
- export interface MapperStepProps<Type = any> extends StepProps {
9
- /** The MapperStep to display */
10
- step: Mapper;
11
- customAdd?: JSX.Element;
12
- customElementModifiers?: CustomMapperElementModifiers<Type>;
13
- }
14
- declare function MapperStep<Type>({ step, formStyle, ...others }: MapperStepProps<Type>): JSX.Element;
15
- export default MapperStep;
@@ -1,35 +0,0 @@
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 __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import { FormStyleTypes } from '../../../constants/FormStepTypes';
25
- import MaterialMapperStep from './MaterialMapperStep/MaterialMapperStep';
26
- function MapperStep(_a) {
27
- var step = _a.step, formStyle = _a.formStyle, others = __rest(_a, ["step", "formStyle"]);
28
- switch (formStyle.type) {
29
- case FormStyleTypes.MATERIAL:
30
- default: {
31
- return (_jsx(MaterialMapperStep, __assign({ step: step, formStyle: formStyle }, others)));
32
- }
33
- }
34
- }
35
- export default MapperStep;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { MapperStepProps } from '../../MapperStep';
3
- import { MapperElement } from '../MaterialMapperStep';
4
- export interface MapperElementComponentProps<Type> {
5
- num: number;
6
- element: MapperElement<Type>;
7
- handleDelete: Function;
8
- }
9
- declare function MapperElementComponent<Type = any>(props: MapperStepProps & MapperElementComponentProps<Type>): JSX.Element;
10
- export default MapperElementComponent;
@@ -1,27 +0,0 @@
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 { createElement as _createElement } from "react";
13
- import { jsx as _jsx } from "react/jsx-runtime";
14
- import StepComponent from '../../../Step';
15
- import PillElementContainer from './PillElementContainer/PillElementContainer';
16
- function MapperElementComponent(props) {
17
- var level = props.level, form = props.form, step = props.step, element = props.element, editable = props.editable;
18
- if (element.deleted) {
19
- return _jsx("div", {});
20
- }
21
- return (_jsx(PillElementContainer, __assign({}, props, { step: step }, { children: step.rootSteps.map(function (idSubStep) {
22
- var _a;
23
- var subStep = form.steps[element.ids[idSubStep]];
24
- return (_createElement(StepComponent, __assign({}, props, { globalEditable: editable ? (_a = step.editable) !== null && _a !== void 0 ? _a : true : false, step: subStep, key: idSubStep, level: level + 1 })));
25
- }) })));
26
- }
27
- export default MapperElementComponent;