@arquimedes.co/eureka-forms 1.1.3-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,10 +195,7 @@ 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
|
-
console.log('idStep', idStep);
|
|
197
|
-
console.log('STEP:', step);
|
|
198
199
|
switch (step === null || step === void 0 ? void 0 : step.type) {
|
|
199
200
|
case Types.TEXTAREA: {
|
|
200
201
|
var value = values[step.id];
|
|
@@ -222,13 +223,7 @@ var updateValue = function (idStep, values, form, customSteps) {
|
|
|
222
223
|
break;
|
|
223
224
|
}
|
|
224
225
|
default:
|
|
225
|
-
// eslint-disable-next-line no-console
|
|
226
|
-
console.log(customSteps);
|
|
227
|
-
// eslint-disable-next-line no-console
|
|
228
|
-
console.log('TYPE', step === null || step === void 0 ? void 0 : step.type);
|
|
229
226
|
var custom = customSteps[step === null || step === void 0 ? void 0 : step.type];
|
|
230
|
-
// eslint-disable-next-line no-console
|
|
231
|
-
console.log('UPDATE:', custom);
|
|
232
227
|
if (custom !== undefined) {
|
|
233
228
|
custom.updateValue(idStep, values, form);
|
|
234
229
|
}
|
package/package.json
CHANGED