@arquimedes.co/eureka-forms 3.0.43-test → 3.0.44-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.
|
@@ -58,7 +58,7 @@ function FileUploadStep({ step, editable }) {
|
|
|
58
58
|
postFile(pFile.file, pFile.postInfo),
|
|
59
59
|
new Promise((resolve) => setTimeout(resolve, 1000)),
|
|
60
60
|
]);
|
|
61
|
-
setFileChange(
|
|
61
|
+
setFileChange((prev) => prev.map((f) => (f.file === pFile.file ? { ...f, state: 'DONE', ...resp[0] } : f)));
|
|
62
62
|
}
|
|
63
63
|
catch (error) {
|
|
64
64
|
console.error(error);
|
|
@@ -144,7 +144,10 @@ const CustomTextField = forwardRef((props, ref) => {
|
|
|
144
144
|
pickerContext.setOpen((prev) => !prev);
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
|
-
return _jsx(StyledTextField, { ...props, inputRef: ref, onClick: handleClick
|
|
147
|
+
return (_jsx(StyledTextField, { ...props, inputRef: ref, onClick: handleClick, InputProps: {
|
|
148
|
+
...props.InputProps,
|
|
149
|
+
disabled: !!props.readOnly || !!props.disabled,
|
|
150
|
+
} }));
|
|
148
151
|
});
|
|
149
152
|
function CustomDatePicker({ error, required, disabled, readOnly, helperText, size = 'small', labelMargin = 5, pickTime = false,
|
|
150
153
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -192,6 +195,7 @@ orientation: _orientation, ...others }) {
|
|
|
192
195
|
textField: {
|
|
193
196
|
error,
|
|
194
197
|
size,
|
|
198
|
+
required,
|
|
195
199
|
disabled,
|
|
196
200
|
readOnly: !disabled && readOnly,
|
|
197
201
|
helperText,
|
|
@@ -247,6 +251,7 @@ orientation: _orientation, ...others }) {
|
|
|
247
251
|
textField: {
|
|
248
252
|
size,
|
|
249
253
|
error,
|
|
254
|
+
required,
|
|
250
255
|
disabled,
|
|
251
256
|
readOnly: !disabled && readOnly,
|
|
252
257
|
helperText,
|
|
@@ -93,7 +93,10 @@ const CustomTextField = React.forwardRef((props, ref) => {
|
|
|
93
93
|
pickerContext.setOpen((prev) => !prev);
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
|
-
return _jsx(StyledTextField, { ...props, inputRef: ref, onClick: handleClick
|
|
96
|
+
return (_jsx(StyledTextField, { ...props, inputRef: ref, onClick: handleClick, InputProps: {
|
|
97
|
+
...props.InputProps,
|
|
98
|
+
disabled: !!props.readOnly || !!props.disabled,
|
|
99
|
+
} }));
|
|
97
100
|
});
|
|
98
101
|
const formatDate = (date, showYear) => {
|
|
99
102
|
if (!date || !isValid(date))
|
|
@@ -157,6 +160,7 @@ function CustomDatePickerRange({ error, disabled, readOnly, helperText, size = '
|
|
|
157
160
|
textField: {
|
|
158
161
|
size,
|
|
159
162
|
error,
|
|
163
|
+
required: others.required,
|
|
160
164
|
disabled,
|
|
161
165
|
readOnly: !disabled && readOnly,
|
|
162
166
|
helperText,
|
package/package.json
CHANGED