@arquimedes.co/eureka-forms 1.9.24-test → 1.9.25-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.
|
@@ -72,19 +72,19 @@ import widgetInstance from '../../../AxiosWidget';
|
|
|
72
72
|
import React from 'react';
|
|
73
73
|
function ColumnForm(_a) {
|
|
74
74
|
var _this = this;
|
|
75
|
-
var _b
|
|
75
|
+
var _b;
|
|
76
76
|
var form = _a.form, apiKey = _a.apiKey, reload = _a.reload, domain = _a.domain, postview = _a.postview, internal = _a.internal, formStyle = _a.formStyle, sendLabel = _a.sendLabel, widthStats = _a.widthStats, customSteps = _a.customSteps, customSend = _a.customSend, customForm = _a.customForm, handleLoaded = _a.handleLoaded, originalValues = _a.originalValues, others = __rest(_a, ["form", "apiKey", "reload", "domain", "postview", "internal", "formStyle", "sendLabel", "widthStats", "customSteps", "customSend", "customForm", "handleLoaded", "originalValues"]);
|
|
77
|
-
var
|
|
78
|
-
var
|
|
79
|
-
var
|
|
77
|
+
var _c = useState(false), tempError = _c[0], setTempError = _c[1];
|
|
78
|
+
var _d = useState(calcDependencies(form.steps, originalValues)), dependencyStore = _d[0], setDependencyStore = _d[1];
|
|
79
|
+
var _e = (_b = customForm === null || customForm === void 0 ? void 0 : customForm.form) !== null && _b !== void 0 ? _b : useForm({
|
|
80
80
|
defaultValues: mapOriginalValues(originalValues, form),
|
|
81
81
|
mode: 'onTouched',
|
|
82
82
|
shouldFocusError: true,
|
|
83
|
-
}), getValues =
|
|
83
|
+
}), getValues = _e.getValues, setValue = _e.setValue, clearErrors = _e.clearErrors, control = _e.control, errors = _e.formState.errors, trigger = _e.trigger;
|
|
84
84
|
var recaptchaRef = useRef();
|
|
85
|
-
var
|
|
86
|
-
var
|
|
87
|
-
var
|
|
85
|
+
var _f = useState(undefined), sections = _f[0], setSections = _f[1];
|
|
86
|
+
var _g = useState(false), loading = _g[0], setLoading = _g[1];
|
|
87
|
+
var _h = useState(), showConfirmation = _h[0], setShowConfirmation = _h[1];
|
|
88
88
|
useEffect(function () {
|
|
89
89
|
var tempSections = [];
|
|
90
90
|
calcNextSection(form, form.firstSection, tempSections);
|
|
@@ -15,7 +15,7 @@ export interface FormComponentProps {
|
|
|
15
15
|
customSteps: Record<string, CustomStep>;
|
|
16
16
|
customSend?: (values: any, reload: Function) => Promise<void>;
|
|
17
17
|
customForm?: {
|
|
18
|
-
|
|
18
|
+
form?: any;
|
|
19
19
|
submit?: JSX.Element;
|
|
20
20
|
};
|
|
21
21
|
widthStats: WidthStats;
|
package/dist/index.lib.d.ts
CHANGED
package/dist/index.lib.js
CHANGED
package/package.json
CHANGED