@arquimedes.co/eureka-forms 1.1.0-test → 1.1.4-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.
|
@@ -112,6 +112,10 @@ function ColumnForm(_a) {
|
|
|
112
112
|
idStep = _a[_i];
|
|
113
113
|
updateValue(idStep, values, form, customSteps);
|
|
114
114
|
}
|
|
115
|
+
if (internal) {
|
|
116
|
+
// eslint-disable-next-line no-console
|
|
117
|
+
console.log('UPDATED:', values);
|
|
118
|
+
}
|
|
115
119
|
payload = {
|
|
116
120
|
formValues: { steps: values },
|
|
117
121
|
};
|
|
@@ -191,7 +195,6 @@ var mapOriginal = function (values, form) {
|
|
|
191
195
|
return newValues;
|
|
192
196
|
};
|
|
193
197
|
var updateValue = function (idStep, values, form, customSteps) {
|
|
194
|
-
console.log('FORM', form);
|
|
195
198
|
var step = form.steps[idStep];
|
|
196
199
|
switch (step === null || step === void 0 ? void 0 : step.type) {
|
|
197
200
|
case Types.TEXTAREA: {
|
|
@@ -220,13 +223,7 @@ var updateValue = function (idStep, values, form, customSteps) {
|
|
|
220
223
|
break;
|
|
221
224
|
}
|
|
222
225
|
default:
|
|
223
|
-
|
|
224
|
-
console.log(customSteps);
|
|
225
|
-
// eslint-disable-next-line no-console
|
|
226
|
-
console.log('idStep', idStep);
|
|
227
|
-
var custom = customSteps[idStep];
|
|
228
|
-
// eslint-disable-next-line no-console
|
|
229
|
-
console.log('UPDATE:', custom);
|
|
226
|
+
var custom = customSteps[step === null || step === void 0 ? void 0 : step.type];
|
|
230
227
|
if (custom !== undefined) {
|
|
231
228
|
custom.updateValue(idStep, values, form);
|
|
232
229
|
}
|
package/package.json
CHANGED