@arquimedes.co/eureka-forms 0.1.2 → 0.2.5
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.
- package/dist/@Types/@Types.d.ts +1 -1
- package/dist/@Types/@Types.js +1 -1
- package/dist/@Types/Form.d.ts +63 -63
- package/dist/@Types/Form.js +1 -1
- package/dist/@Types/FormStep.d.ts +105 -105
- package/dist/@Types/FormStep.js +1 -1
- package/dist/@Types/Organization.d.ts +16 -16
- package/dist/@Types/Organization.js +1 -1
- package/dist/App.d.ts +34 -32
- package/dist/App.js +262 -261
- package/dist/App.module.css +21 -0
- package/dist/FormComponents/Form/ColumnForm/ColumnForm.d.ts +4 -4
- package/dist/FormComponents/Form/ColumnForm/ColumnForm.js +232 -232
- package/dist/FormComponents/Form/ColumnForm/ColumnForm.module.css +46 -0
- package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.d.ts +12 -12
- package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.js +33 -33
- package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.module.css +48 -0
- package/dist/FormComponents/Form/Form.d.ts +24 -23
- package/dist/FormComponents/Form/Form.js +116 -116
- package/dist/FormComponents/Form/Form.module.css +39 -0
- package/dist/FormComponents/Form/StepperForm/StepperForm.d.ts +4 -4
- package/dist/FormComponents/Form/StepperForm/StepperForm.js +6 -6
- package/dist/FormComponents/Form/StepperForm/StepperForm.module.css +0 -0
- package/dist/FormComponents/Section/MaterialSection/MaterialSection.d.ts +4 -4
- package/dist/FormComponents/Section/MaterialSection/MaterialSection.js +42 -42
- package/dist/FormComponents/Section/MaterialSection/MaterialSection.module.css +8 -0
- package/dist/FormComponents/Section/Section.d.ts +24 -23
- package/dist/FormComponents/Section/Section.js +25 -25
- package/dist/FormComponents/Step/ClassifierSelectorStep/ClassifierSelectorStep.d.ts +9 -9
- package/dist/FormComponents/Step/ClassifierSelectorStep/ClassifierSelectorStep.js +37 -37
- package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.d.ts +4 -4
- package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +105 -105
- package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.module.css +25 -0
- package/dist/FormComponents/Step/DatePickerStep/DatePickerStep.d.ts +9 -9
- package/dist/FormComponents/Step/DatePickerStep/DatePickerStep.js +25 -25
- package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.d.ts +4 -4
- package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js +35 -35
- package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.module.css +9 -0
- package/dist/FormComponents/Step/FileUploadStep/FileUploadStep.d.ts +9 -9
- package/dist/FormComponents/Step/FileUploadStep/FileUploadStep.js +25 -25
- package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.d.ts +11 -11
- package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.js +110 -110
- package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.module.css +52 -0
- package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.d.ts +13 -13
- package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +165 -165
- package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.module.css +45 -0
- package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.d.ts +4 -4
- package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.js +99 -99
- package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.module.css +25 -0
- package/dist/FormComponents/Step/SelectorStep/SelectorStep.d.ts +9 -9
- package/dist/FormComponents/Step/SelectorStep/SelectorStep.js +37 -37
- package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.d.ts +4 -4
- package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.js +11 -11
- package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.module.css +7 -0
- package/dist/FormComponents/Step/SeparatorStep/SeparatorStep.d.ts +9 -9
- package/dist/FormComponents/Step/SeparatorStep/SeparatorStep.js +37 -37
- package/dist/FormComponents/Step/Step.d.ts +10 -10
- package/dist/FormComponents/Step/Step.js +73 -64
- package/dist/FormComponents/Step/StepFunctions.d.ts +5 -5
- package/dist/FormComponents/Step/StepFunctions.js +51 -51
- package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/DraftEditor.css +35 -0
- package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.d.ts +6 -6
- package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.js +112 -112
- package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.module.css +58 -0
- package/dist/FormComponents/Step/TextAreaStep/TextAreaStep.d.ts +9 -9
- package/dist/FormComponents/Step/TextAreaStep/TextAreaStep.js +25 -25
- package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.d.ts +4 -4
- package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.js +43 -43
- package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.module.css +9 -0
- package/dist/FormComponents/Step/TextInputStep/TextInputStep.d.ts +9 -9
- package/dist/FormComponents/Step/TextInputStep/TextInputStep.js +25 -25
- package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.d.ts +4 -4
- package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.js +18 -18
- package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.module.css +35 -0
- package/dist/FormComponents/Step/TitleStep/TitleStep.d.ts +9 -9
- package/dist/FormComponents/Step/TitleStep/TitleStep.js +37 -37
- package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.d.ts +4 -4
- package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.js +77 -77
- package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.module.css +73 -0
- package/dist/FormComponents/Term/Term.d.ts +15 -15
- package/dist/FormComponents/Term/Term.js +25 -25
- package/dist/Widget.d.ts +1 -1
- package/dist/Widget.js +39 -56
- package/dist/constants/Files/FileExtensions.d.ts +3 -3
- package/dist/constants/Files/FileExtensions.js +65 -65
- package/dist/constants/Files/FileMaxSize.d.ts +2 -2
- package/dist/constants/Files/FileMaxSize.js +2 -2
- package/dist/constants/FormStepTypes.d.ts +33 -33
- package/dist/constants/FormStepTypes.js +39 -39
- package/dist/constants/InternalFormStyle.d.ts +3 -3
- package/dist/constants/InternalFormStyle.js +12 -12
- package/dist/constants/MaterialClassNameSeed.d.ts +1 -1
- package/dist/constants/MaterialClassNameSeed.js +1 -1
- package/dist/controllers/FileService.d.ts +5 -5
- package/dist/controllers/FileService.js +89 -89
- package/dist/index.d.ts +1 -2
- package/dist/index.js +16 -17
- package/dist/index.lib.d.ts +3 -0
- package/dist/index.lib.js +3 -0
- package/dist/index.module.css +14 -0
- package/dist/shared/Loader/Loader.d.ts +18 -18
- package/dist/shared/Loader/Loader.js +26 -26
- package/dist/shared/Loader/Loader.module.css +12 -0
- package/dist/shared/Navbar/Navbar.d.ts +9 -9
- package/dist/shared/Navbar/Navbar.js +18 -18
- package/dist/shared/Navbar/Navbar.module.css +18 -0
- package/dist/shared/RoundedButton/RoundedButton.d.ts +30 -30
- package/dist/shared/RoundedButton/RoundedButton.js +45 -45
- package/dist/shared/RoundedCheckBox/RoundedCheckBox.d.ts +24 -24
- package/dist/shared/RoundedCheckBox/RoundedCheckBox.js +101 -101
- package/dist/shared/RoundedDatePicker/RoundedDatePicker.d.ts +40 -40
- package/dist/shared/RoundedDatePicker/RoundedDatePicker.js +246 -246
- package/dist/shared/RoundedSelect/RoundedSelect.d.ts +42 -42
- package/dist/shared/RoundedSelect/RoundedSelect.js +171 -171
- package/dist/shared/RoundedTextField/RoundedTextField.d.ts +41 -41
- package/dist/shared/RoundedTextField/RoundedTextField.js +138 -138
- package/package.json +2 -2
|
@@ -1,37 +1,37 @@
|
|
|
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 MaterialClassifierSelectorStep from './MaterialClassifierSelectorStep/MaterialClassifierSelectorStep';
|
|
26
|
-
function ClassifierSelectorStep(_a) {
|
|
27
|
-
var formStyle = _a.formStyle, others = __rest(_a, ["formStyle"]);
|
|
28
|
-
switch (formStyle.type) {
|
|
29
|
-
case FormStyleTypes.MATERIAL: {
|
|
30
|
-
return (_jsx(MaterialClassifierSelectorStep, __assign({ formStyle: formStyle }, others), void 0));
|
|
31
|
-
}
|
|
32
|
-
default: {
|
|
33
|
-
return (_jsx(MaterialClassifierSelectorStep, __assign({ formStyle: formStyle }, others), void 0));
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
export default ClassifierSelectorStep;
|
|
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 MaterialClassifierSelectorStep from './MaterialClassifierSelectorStep/MaterialClassifierSelectorStep';
|
|
26
|
+
function ClassifierSelectorStep(_a) {
|
|
27
|
+
var formStyle = _a.formStyle, others = __rest(_a, ["formStyle"]);
|
|
28
|
+
switch (formStyle.type) {
|
|
29
|
+
case FormStyleTypes.MATERIAL: {
|
|
30
|
+
return (_jsx(MaterialClassifierSelectorStep, __assign({ formStyle: formStyle }, others), void 0));
|
|
31
|
+
}
|
|
32
|
+
default: {
|
|
33
|
+
return (_jsx(MaterialClassifierSelectorStep, __assign({ formStyle: formStyle }, others), void 0));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export default ClassifierSelectorStep;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ClassifierSelectorStepProps } from '../ClassifierSelectorStep';
|
|
3
|
-
export default ClassifierSelectorStep;
|
|
4
|
-
declare function ClassifierSelectorStep(props: ClassifierSelectorStepProps): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ClassifierSelectorStepProps } from '../ClassifierSelectorStep';
|
|
3
|
+
export default ClassifierSelectorStep;
|
|
4
|
+
declare function ClassifierSelectorStep(props: ClassifierSelectorStepProps): JSX.Element;
|
|
@@ -1,105 +1,105 @@
|
|
|
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 { createElement as _createElement } from "react";
|
|
24
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
|
-
import React, { useState } from 'react';
|
|
26
|
-
import { ClassifierOptionTypes } from '../../../../constants/FormStepTypes';
|
|
27
|
-
import RoundedSelect from '../../../../shared/RoundedSelect/RoundedSelect';
|
|
28
|
-
import { MenuItem } from '@material-ui/core';
|
|
29
|
-
import styles from './MaterialClassifierSelectorStep.module.css';
|
|
30
|
-
import StepComponent from '../../Step';
|
|
31
|
-
import { Controller } from 'react-hook-form';
|
|
32
|
-
import { calcFillerSize, calcStepWidth } from '../../StepFunctions';
|
|
33
|
-
function ClassifierSelector(_a) {
|
|
34
|
-
var step = _a.step, form = _a.form, level = _a.level, errors = _a.errors, value = _a.value, onBlur = _a.onBlur, control = _a.control, onChange = _a.onChange, postview = _a.postview, formStyle = _a.formStyle, getValues = _a.getValues, widthStats = _a.widthStats, handleSizeChange = _a.handleSizeChange, others = __rest(_a, ["step", "form", "level", "errors", "value", "onBlur", "control", "onChange", "postview", "formStyle", "getValues", "widthStats", "handleSizeChange"]);
|
|
35
|
-
var _b = useState(level === 0 ? calcFillerSize(step, form.steps, getValues(), form) : 0), fillerSize = _b[0], setFillerSize = _b[1];
|
|
36
|
-
if (!step.idClassifier) {
|
|
37
|
-
return _jsx("div", {}, void 0);
|
|
38
|
-
}
|
|
39
|
-
var classifier = form.classifiers[step.idClassifier];
|
|
40
|
-
if (!classifier) {
|
|
41
|
-
return _jsx("div", {}, void 0);
|
|
42
|
-
}
|
|
43
|
-
var sizeChange = function () {
|
|
44
|
-
handleSizeChange();
|
|
45
|
-
if (level === 0) {
|
|
46
|
-
setFillerSize(calcFillerSize(step, form.steps, getValues(), form));
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var renderSelect = function () {
|
|
50
|
-
return (_jsx("div", __assign({ className: styles.container, style: {
|
|
51
|
-
width: widthStats.currentBreakPoint <= step.size
|
|
52
|
-
? '100%'
|
|
53
|
-
: calcStepWidth(step.size, form),
|
|
54
|
-
maxWidth: '100%',
|
|
55
|
-
minHeight: step.description || step.required ? '55px' : '43px',
|
|
56
|
-
} }, { children: _jsxs(RoundedSelect, __assign({ fullWidth: true, value: value, cantEdit: postview, errorColor: formStyle.errorColor, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, label: step.label ? step.label : classifier.name, required: step.required, containerMargin: "0px", height: '31px', onBlur: onBlur, handleUpdate: function (event) {
|
|
57
|
-
onChange(event.target.value);
|
|
58
|
-
sizeChange();
|
|
59
|
-
}, helperText: errors[step.id]
|
|
60
|
-
? errors[step.id].message
|
|
61
|
-
: step.description, error: !!errors[step.id] }, { children: [_jsx(MenuItem, __assign({ value: '' }, { children: _jsx("em", { children: "Sin Seleccionar" }, void 0) }), 'EMPTY'), classifier.children
|
|
62
|
-
.filter(function (classifier) {
|
|
63
|
-
var _a;
|
|
64
|
-
return ((_a = step.options[classifier._id]) === null || _a === void 0 ? void 0 : _a.type) !==
|
|
65
|
-
ClassifierOptionTypes.HIDE;
|
|
66
|
-
})
|
|
67
|
-
.map(function (classifier) { return (_jsx(MenuItem, __assign({ value: classifier._id }, { children: classifier.name }), classifier._id)); })] }), void 0) }), void 0));
|
|
68
|
-
};
|
|
69
|
-
var mapNestedOption = function () {
|
|
70
|
-
if (value) {
|
|
71
|
-
var currentOption = step.options[value];
|
|
72
|
-
if ((currentOption === null || currentOption === void 0 ? void 0 : currentOption.type) === ClassifierOptionTypes.NESTED) {
|
|
73
|
-
return (_jsx(React.Fragment, { children: currentOption.steps.map(function (idStep, index) {
|
|
74
|
-
var subStep = form.steps[idStep];
|
|
75
|
-
return (_createElement(StepComponent, __assign({}, others, { postview: postview, widthStats: widthStats, getValues: getValues, formStyle: formStyle, errors: errors, form: form, control: control, step: subStep, key: index, level: level + 1, handleSizeChange: function () {
|
|
76
|
-
sizeChange();
|
|
77
|
-
} })));
|
|
78
|
-
}) }, void 0));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
if (level === 0 && step.maxSize < form.blockNum) {
|
|
83
|
-
return (_jsxs("div", __assign({ className: styles.firstLvlContainer, style: {
|
|
84
|
-
width: widthStats.currentBreakPoint <= step.size
|
|
85
|
-
? '100%'
|
|
86
|
-
: 'fit-content',
|
|
87
|
-
} }, { children: [renderSelect(), mapNestedOption(), level === 0 && step.maxSize < form.blockNum && (_jsx("div", { className: styles.smallSeparator, style: {
|
|
88
|
-
width: fillerSize,
|
|
89
|
-
} }, void 0))] }), void 0));
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
return (_jsxs(React.Fragment, { children: [renderSelect(), mapNestedOption(), level === 0 && _jsx("div", { className: styles.separator }, void 0)] }, void 0));
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
export default ClassifierSelectorStep;
|
|
96
|
-
function ClassifierSelectorStep(props) {
|
|
97
|
-
return (_jsx(Controller, { name: props.step.id, control: props.control, defaultValue: "", rules: {
|
|
98
|
-
required: props.step.required
|
|
99
|
-
? 'Este campo es obligatorio'
|
|
100
|
-
: undefined,
|
|
101
|
-
}, shouldUnregister: true, render: function (_a) {
|
|
102
|
-
var field = _a.field;
|
|
103
|
-
return (_jsx(ClassifierSelector, __assign({}, props, { value: field.value, onChange: field.onChange, onBlur: field.onBlur }), void 0));
|
|
104
|
-
} }, void 0));
|
|
105
|
-
}
|
|
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 { createElement as _createElement } from "react";
|
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
|
+
import React, { useState } from 'react';
|
|
26
|
+
import { ClassifierOptionTypes } from '../../../../constants/FormStepTypes';
|
|
27
|
+
import RoundedSelect from '../../../../shared/RoundedSelect/RoundedSelect';
|
|
28
|
+
import { MenuItem } from '@material-ui/core';
|
|
29
|
+
import styles from './MaterialClassifierSelectorStep.module.css';
|
|
30
|
+
import StepComponent from '../../Step';
|
|
31
|
+
import { Controller } from 'react-hook-form';
|
|
32
|
+
import { calcFillerSize, calcStepWidth } from '../../StepFunctions';
|
|
33
|
+
function ClassifierSelector(_a) {
|
|
34
|
+
var step = _a.step, form = _a.form, level = _a.level, errors = _a.errors, value = _a.value, onBlur = _a.onBlur, control = _a.control, onChange = _a.onChange, postview = _a.postview, formStyle = _a.formStyle, getValues = _a.getValues, widthStats = _a.widthStats, handleSizeChange = _a.handleSizeChange, others = __rest(_a, ["step", "form", "level", "errors", "value", "onBlur", "control", "onChange", "postview", "formStyle", "getValues", "widthStats", "handleSizeChange"]);
|
|
35
|
+
var _b = useState(level === 0 ? calcFillerSize(step, form.steps, getValues(), form) : 0), fillerSize = _b[0], setFillerSize = _b[1];
|
|
36
|
+
if (!step.idClassifier) {
|
|
37
|
+
return _jsx("div", {}, void 0);
|
|
38
|
+
}
|
|
39
|
+
var classifier = form.classifiers[step.idClassifier];
|
|
40
|
+
if (!classifier) {
|
|
41
|
+
return _jsx("div", {}, void 0);
|
|
42
|
+
}
|
|
43
|
+
var sizeChange = function () {
|
|
44
|
+
handleSizeChange();
|
|
45
|
+
if (level === 0) {
|
|
46
|
+
setFillerSize(calcFillerSize(step, form.steps, getValues(), form));
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var renderSelect = function () {
|
|
50
|
+
return (_jsx("div", __assign({ className: styles.container, style: {
|
|
51
|
+
width: widthStats.currentBreakPoint <= step.size
|
|
52
|
+
? '100%'
|
|
53
|
+
: calcStepWidth(step.size, form),
|
|
54
|
+
maxWidth: '100%',
|
|
55
|
+
minHeight: step.description || step.required ? '55px' : '43px',
|
|
56
|
+
} }, { children: _jsxs(RoundedSelect, __assign({ fullWidth: true, value: value, cantEdit: postview, errorColor: formStyle.errorColor, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, label: step.label ? step.label : classifier.name, required: step.required, containerMargin: "0px", height: '31px', onBlur: onBlur, handleUpdate: function (event) {
|
|
57
|
+
onChange(event.target.value);
|
|
58
|
+
sizeChange();
|
|
59
|
+
}, helperText: errors[step.id]
|
|
60
|
+
? errors[step.id].message
|
|
61
|
+
: step.description, error: !!errors[step.id] }, { children: [_jsx(MenuItem, __assign({ value: '' }, { children: _jsx("em", { children: "Sin Seleccionar" }, void 0) }), 'EMPTY'), classifier.children
|
|
62
|
+
.filter(function (classifier) {
|
|
63
|
+
var _a;
|
|
64
|
+
return ((_a = step.options[classifier._id]) === null || _a === void 0 ? void 0 : _a.type) !==
|
|
65
|
+
ClassifierOptionTypes.HIDE;
|
|
66
|
+
})
|
|
67
|
+
.map(function (classifier) { return (_jsx(MenuItem, __assign({ value: classifier._id }, { children: classifier.name }), classifier._id)); })] }), void 0) }), void 0));
|
|
68
|
+
};
|
|
69
|
+
var mapNestedOption = function () {
|
|
70
|
+
if (value) {
|
|
71
|
+
var currentOption = step.options[value];
|
|
72
|
+
if ((currentOption === null || currentOption === void 0 ? void 0 : currentOption.type) === ClassifierOptionTypes.NESTED) {
|
|
73
|
+
return (_jsx(React.Fragment, { children: currentOption.steps.map(function (idStep, index) {
|
|
74
|
+
var subStep = form.steps[idStep];
|
|
75
|
+
return (_createElement(StepComponent, __assign({}, others, { postview: postview, widthStats: widthStats, getValues: getValues, formStyle: formStyle, errors: errors, form: form, control: control, step: subStep, key: index, level: level + 1, handleSizeChange: function () {
|
|
76
|
+
sizeChange();
|
|
77
|
+
} })));
|
|
78
|
+
}) }, void 0));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
if (level === 0 && step.maxSize < form.blockNum) {
|
|
83
|
+
return (_jsxs("div", __assign({ className: styles.firstLvlContainer, style: {
|
|
84
|
+
width: widthStats.currentBreakPoint <= step.size
|
|
85
|
+
? '100%'
|
|
86
|
+
: 'fit-content',
|
|
87
|
+
} }, { children: [renderSelect(), mapNestedOption(), level === 0 && step.maxSize < form.blockNum && (_jsx("div", { className: styles.smallSeparator, style: {
|
|
88
|
+
width: fillerSize,
|
|
89
|
+
} }, void 0))] }), void 0));
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
return (_jsxs(React.Fragment, { children: [renderSelect(), mapNestedOption(), level === 0 && _jsx("div", { className: styles.separator }, void 0)] }, void 0));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
export default ClassifierSelectorStep;
|
|
96
|
+
function ClassifierSelectorStep(props) {
|
|
97
|
+
return (_jsx(Controller, { name: props.step.id, control: props.control, defaultValue: "", rules: {
|
|
98
|
+
required: props.step.required
|
|
99
|
+
? 'Este campo es obligatorio'
|
|
100
|
+
: undefined,
|
|
101
|
+
}, shouldUnregister: true, render: function (_a) {
|
|
102
|
+
var field = _a.field;
|
|
103
|
+
return (_jsx(ClassifierSelector, __assign({}, props, { value: field.value, onChange: field.onChange, onBlur: field.onBlur }), void 0));
|
|
104
|
+
} }, void 0));
|
|
105
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
width: fit-content;
|
|
3
|
+
max-width: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
padding: 10px;
|
|
6
|
+
padding-bottom: 0px;
|
|
7
|
+
padding-top: 5px;
|
|
8
|
+
margin-bottom: 0px;
|
|
9
|
+
}
|
|
10
|
+
.separator {
|
|
11
|
+
flex-basis: 100%;
|
|
12
|
+
height: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.firstLvlContainer {
|
|
16
|
+
max-width: 100%;
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-flow: row wrap;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.smallSeparator {
|
|
22
|
+
height: 0;
|
|
23
|
+
max-width: 100%;
|
|
24
|
+
flex-basis: 0;
|
|
25
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DatePicker } from '../../../@Types/FormStep';
|
|
3
|
-
import { StepProps } from '../Step';
|
|
4
|
-
export interface DatePickerStepProps extends StepProps {
|
|
5
|
-
/** The DatePickerStep to display */
|
|
6
|
-
step: DatePicker;
|
|
7
|
-
}
|
|
8
|
-
declare function DatePickerStep(props: DatePickerStepProps): JSX.Element;
|
|
9
|
-
export default DatePickerStep;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DatePicker } from '../../../@Types/FormStep';
|
|
3
|
+
import { StepProps } from '../Step';
|
|
4
|
+
export interface DatePickerStepProps extends StepProps {
|
|
5
|
+
/** The DatePickerStep to display */
|
|
6
|
+
step: DatePicker;
|
|
7
|
+
}
|
|
8
|
+
declare function DatePickerStep(props: DatePickerStepProps): JSX.Element;
|
|
9
|
+
export default DatePickerStep;
|
|
@@ -1,25 +1,25 @@
|
|
|
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 } from "react/jsx-runtime";
|
|
13
|
-
import { FormStyleTypes } from '../../../constants/FormStepTypes';
|
|
14
|
-
import MaterialDatePickerStep from './MaterialDatePickerStep/MaterialDatePickerStep';
|
|
15
|
-
function DatePickerStep(props) {
|
|
16
|
-
switch (props.formStyle.type) {
|
|
17
|
-
case FormStyleTypes.MATERIAL: {
|
|
18
|
-
return _jsx(MaterialDatePickerStep, __assign({}, props), void 0);
|
|
19
|
-
}
|
|
20
|
-
default: {
|
|
21
|
-
return _jsx(MaterialDatePickerStep, __assign({}, props), void 0);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
export default DatePickerStep;
|
|
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 } from "react/jsx-runtime";
|
|
13
|
+
import { FormStyleTypes } from '../../../constants/FormStepTypes';
|
|
14
|
+
import MaterialDatePickerStep from './MaterialDatePickerStep/MaterialDatePickerStep';
|
|
15
|
+
function DatePickerStep(props) {
|
|
16
|
+
switch (props.formStyle.type) {
|
|
17
|
+
case FormStyleTypes.MATERIAL: {
|
|
18
|
+
return _jsx(MaterialDatePickerStep, __assign({}, props), void 0);
|
|
19
|
+
}
|
|
20
|
+
default: {
|
|
21
|
+
return _jsx(MaterialDatePickerStep, __assign({}, props), void 0);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export default DatePickerStep;
|
package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DatePickerStepProps } from '../DatePickerStep';
|
|
3
|
-
declare function DatePickerStep({ step, form, errors, control, postview, formStyle, widthStats, }: DatePickerStepProps): JSX.Element;
|
|
4
|
-
export default DatePickerStep;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DatePickerStepProps } from '../DatePickerStep';
|
|
3
|
+
declare function DatePickerStep({ step, form, errors, control, postview, formStyle, widthStats, }: DatePickerStepProps): JSX.Element;
|
|
4
|
+
export default DatePickerStep;
|
package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
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 } from "react/jsx-runtime";
|
|
13
|
-
import styles from './MaterialDatePickerStep.module.css';
|
|
14
|
-
import { Controller } from 'react-hook-form';
|
|
15
|
-
import RoundedDatePicker from '../../../../shared/RoundedDatePicker/RoundedDatePicker';
|
|
16
|
-
import { calcStepWidth } from '../../StepFunctions';
|
|
17
|
-
function DatePickerStep(_a) {
|
|
18
|
-
var step = _a.step, form = _a.form, errors = _a.errors, control = _a.control, postview = _a.postview, formStyle = _a.formStyle, widthStats = _a.widthStats;
|
|
19
|
-
return (_jsx("div", __assign({ className: styles.container, style: {
|
|
20
|
-
width: widthStats.currentBreakPoint <= step.size
|
|
21
|
-
? '100%'
|
|
22
|
-
: calcStepWidth(step.size, form),
|
|
23
|
-
minHeight: step.description || step.required ? '55px' : '43px',
|
|
24
|
-
} }, { children: _jsx(Controller, { name: step.id, control: control, defaultValue: new Date(), rules: {
|
|
25
|
-
required: step.required
|
|
26
|
-
? 'Este campo es obligatorio'
|
|
27
|
-
: undefined,
|
|
28
|
-
}, shouldUnregister: true, render: function (_a) {
|
|
29
|
-
var field = _a.field;
|
|
30
|
-
return (_jsx(RoundedDatePicker, __assign({}, field, { showIcon: step.showIcon, cantEdit: postview, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, textColor: formStyle.textColor, errorColor: formStyle.errorColor, fontWeight: 400, label: step.label, helperText: errors[step.id]
|
|
31
|
-
? errors[step.id].message
|
|
32
|
-
: step.description, error: !!errors[step.id], required: step.required }), void 0));
|
|
33
|
-
} }, void 0) }), void 0));
|
|
34
|
-
}
|
|
35
|
-
export default DatePickerStep;
|
|
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 } from "react/jsx-runtime";
|
|
13
|
+
import styles from './MaterialDatePickerStep.module.css';
|
|
14
|
+
import { Controller } from 'react-hook-form';
|
|
15
|
+
import RoundedDatePicker from '../../../../shared/RoundedDatePicker/RoundedDatePicker';
|
|
16
|
+
import { calcStepWidth } from '../../StepFunctions';
|
|
17
|
+
function DatePickerStep(_a) {
|
|
18
|
+
var step = _a.step, form = _a.form, errors = _a.errors, control = _a.control, postview = _a.postview, formStyle = _a.formStyle, widthStats = _a.widthStats;
|
|
19
|
+
return (_jsx("div", __assign({ className: styles.container, style: {
|
|
20
|
+
width: widthStats.currentBreakPoint <= step.size
|
|
21
|
+
? '100%'
|
|
22
|
+
: calcStepWidth(step.size, form),
|
|
23
|
+
minHeight: step.description || step.required ? '55px' : '43px',
|
|
24
|
+
} }, { children: _jsx(Controller, { name: step.id, control: control, defaultValue: new Date(), rules: {
|
|
25
|
+
required: step.required
|
|
26
|
+
? 'Este campo es obligatorio'
|
|
27
|
+
: undefined,
|
|
28
|
+
}, shouldUnregister: true, render: function (_a) {
|
|
29
|
+
var field = _a.field;
|
|
30
|
+
return (_jsx(RoundedDatePicker, __assign({}, field, { showIcon: step.showIcon, cantEdit: postview, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, textColor: formStyle.textColor, errorColor: formStyle.errorColor, fontWeight: 400, label: step.label, helperText: errors[step.id]
|
|
31
|
+
? errors[step.id].message
|
|
32
|
+
: step.description, error: !!errors[step.id], required: step.required }), void 0));
|
|
33
|
+
} }, void 0) }), void 0));
|
|
34
|
+
}
|
|
35
|
+
export default DatePickerStep;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FileUpload } from '../../../@Types/FormStep';
|
|
3
|
-
import { StepProps } from '../Step';
|
|
4
|
-
export interface FileUploadStepProps extends StepProps {
|
|
5
|
-
/** The FileUploadStep to display */
|
|
6
|
-
step: FileUpload;
|
|
7
|
-
}
|
|
8
|
-
declare function FileUploadStep(props: FileUploadStepProps): JSX.Element;
|
|
9
|
-
export default FileUploadStep;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FileUpload } from '../../../@Types/FormStep';
|
|
3
|
+
import { StepProps } from '../Step';
|
|
4
|
+
export interface FileUploadStepProps extends StepProps {
|
|
5
|
+
/** The FileUploadStep to display */
|
|
6
|
+
step: FileUpload;
|
|
7
|
+
}
|
|
8
|
+
declare function FileUploadStep(props: FileUploadStepProps): JSX.Element;
|
|
9
|
+
export default FileUploadStep;
|
|
@@ -1,25 +1,25 @@
|
|
|
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 } from "react/jsx-runtime";
|
|
13
|
-
import { FormStyleTypes } from '../../../constants/FormStepTypes';
|
|
14
|
-
import MaterialFileUploadStep from './MaterialFileUploadStep/MaterialFileUploadStep';
|
|
15
|
-
function FileUploadStep(props) {
|
|
16
|
-
switch (props.formStyle.type) {
|
|
17
|
-
case FormStyleTypes.MATERIAL: {
|
|
18
|
-
return _jsx(MaterialFileUploadStep, __assign({}, props), void 0);
|
|
19
|
-
}
|
|
20
|
-
default: {
|
|
21
|
-
return _jsx(MaterialFileUploadStep, __assign({}, props), void 0);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
export default FileUploadStep;
|
|
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 } from "react/jsx-runtime";
|
|
13
|
+
import { FormStyleTypes } from '../../../constants/FormStepTypes';
|
|
14
|
+
import MaterialFileUploadStep from './MaterialFileUploadStep/MaterialFileUploadStep';
|
|
15
|
+
function FileUploadStep(props) {
|
|
16
|
+
switch (props.formStyle.type) {
|
|
17
|
+
case FormStyleTypes.MATERIAL: {
|
|
18
|
+
return _jsx(MaterialFileUploadStep, __assign({}, props), void 0);
|
|
19
|
+
}
|
|
20
|
+
default: {
|
|
21
|
+
return _jsx(MaterialFileUploadStep, __assign({}, props), void 0);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export default FileUploadStep;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FileObj } from '../MaterialFileUploadStep';
|
|
3
|
-
import { FormStyle } from '../../../../../@Types/Form';
|
|
4
|
-
interface FileComponentProps {
|
|
5
|
-
fileInfo: FileObj;
|
|
6
|
-
handleUploaded: Function;
|
|
7
|
-
handleRemoveUploaded: Function;
|
|
8
|
-
formStyle: FormStyle;
|
|
9
|
-
}
|
|
10
|
-
declare function FileUploadComponent({ fileInfo, formStyle, handleUploaded, handleRemoveUploaded, }: FileComponentProps): JSX.Element;
|
|
11
|
-
export default FileUploadComponent;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FileObj } from '../MaterialFileUploadStep';
|
|
3
|
+
import { FormStyle } from '../../../../../@Types/Form';
|
|
4
|
+
interface FileComponentProps {
|
|
5
|
+
fileInfo: FileObj;
|
|
6
|
+
handleUploaded: Function;
|
|
7
|
+
handleRemoveUploaded: Function;
|
|
8
|
+
formStyle: FormStyle;
|
|
9
|
+
}
|
|
10
|
+
declare function FileUploadComponent({ fileInfo, formStyle, handleUploaded, handleRemoveUploaded, }: FileComponentProps): JSX.Element;
|
|
11
|
+
export default FileUploadComponent;
|