@arquimedes.co/eureka-forms 1.9.64-test → 1.9.66-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.
- package/dist/@Types/Form.d.ts +1 -0
- package/dist/App.js +1 -1
- package/dist/FormComponents/Form/ColumnForm/ColumnForm.js +3 -0
- package/dist/FormComponents/Form/Form.d.ts +1 -0
- package/dist/FormComponents/Section/Section.d.ts +1 -0
- package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +15 -10
- package/package.json +1 -1
package/dist/@Types/Form.d.ts
CHANGED
package/dist/App.js
CHANGED
|
@@ -273,7 +273,7 @@ function App(_a) {
|
|
|
273
273
|
if (handleConfirmed) {
|
|
274
274
|
handleConfirmed();
|
|
275
275
|
}
|
|
276
|
-
}, editable: editable, postview: postview === true, partial: partial === true, internal: internal === true, apiKey: apiKey, domain: domain, customSend: customSend, originalValues: originalValues, containerRef: containerRef, organization: organizationInfo !== null && organizationInfo !== void 0 ? organizationInfo : { idOrganization: domain }, customSteps: customSteps !== null && customSteps !== void 0 ? customSteps : {}, isWidget: isWidget === true })) })));
|
|
276
|
+
}, editable: editable, postview: postview === true, preview: preview === true, partial: partial === true, internal: internal === true, apiKey: apiKey, domain: domain, customSend: customSend, originalValues: originalValues, containerRef: containerRef, organization: organizationInfo !== null && organizationInfo !== void 0 ? organizationInfo : { idOrganization: domain }, customSteps: customSteps !== null && customSteps !== void 0 ? customSteps : {}, isWidget: isWidget === true })) })));
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
export default App;
|
|
@@ -324,6 +324,9 @@ function calcDependencies(steps, originalValues, allSteps, dependencies) {
|
|
|
324
324
|
if (depStep && dependencies[idDep] === undefined) {
|
|
325
325
|
dependencies[idDep] = calcStepDependencyValue(depStep, originalValues);
|
|
326
326
|
}
|
|
327
|
+
else if (dependencies[idDep] === undefined) {
|
|
328
|
+
dependencies[idDep] = originalValues[idDep];
|
|
329
|
+
}
|
|
327
330
|
}
|
|
328
331
|
}
|
|
329
332
|
if (step.type === Types.MAPPER) {
|
|
@@ -30,11 +30,11 @@ import { Controller } from 'react-hook-form';
|
|
|
30
30
|
import { calcFillerSize, calcStepWidth } from '../../StepFunctions';
|
|
31
31
|
import RoundedSmartSelect from '../../../../shared/RoundedSmartSelect/RoundedSmartSelect';
|
|
32
32
|
function ClassifierSelector(_a) {
|
|
33
|
-
var _b;
|
|
33
|
+
var _b, _c;
|
|
34
34
|
var step = _a.step, form = _a.form, level = _a.level, errors = _a.errors, value = _a.value, onBlur = _a.onBlur, control = _a.control, editable = _a.editable, onChange = _a.onChange, postview = _a.postview, inputRef = _a.inputRef, formStyle = _a.formStyle, getValues = _a.getValues, widthStats = _a.widthStats, handleSizeChange = _a.handleSizeChange, others = __rest(_a, ["step", "form", "level", "errors", "value", "onBlur", "control", "editable", "onChange", "postview", "inputRef", "formStyle", "getValues", "widthStats", "handleSizeChange"]);
|
|
35
|
-
var
|
|
35
|
+
var _d = useState(level === 0
|
|
36
36
|
? calcFillerSize(step, form.steps, getValues(), form.size)
|
|
37
|
-
: 0), fillerSize =
|
|
37
|
+
: 0), fillerSize = _d[0], setFillerSize = _d[1];
|
|
38
38
|
if (!step.idClassifier) {
|
|
39
39
|
return _jsx("div", {});
|
|
40
40
|
}
|
|
@@ -42,15 +42,20 @@ function ClassifierSelector(_a) {
|
|
|
42
42
|
if (!classifier) {
|
|
43
43
|
return _jsx("div", {});
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
var options = (_c = classifier.children) === null || _c === void 0 ? void 0 : _c.filter(function (idClassifier) {
|
|
46
|
+
var _a, _b;
|
|
47
|
+
return ((_a = step.options[idClassifier]) === null || _a === void 0 ? void 0 : _a.type) !==
|
|
48
|
+
ClassifierOptionTypes.HIDE &&
|
|
49
|
+
((_b = form.classifiers) === null || _b === void 0 ? void 0 : _b[idClassifier]);
|
|
50
|
+
}).map(function (idClassifier) {
|
|
49
51
|
var _a;
|
|
50
52
|
var classifier = (_a = form.classifiers) === null || _a === void 0 ? void 0 : _a[idClassifier];
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
return {
|
|
54
|
+
value: classifier === null || classifier === void 0 ? void 0 : classifier._id,
|
|
55
|
+
label: (classifier === null || classifier === void 0 ? void 0 : classifier.clientName) && others.preview
|
|
56
|
+
? classifier.clientName
|
|
57
|
+
: classifier === null || classifier === void 0 ? void 0 : classifier.name,
|
|
58
|
+
};
|
|
54
59
|
});
|
|
55
60
|
var sizeChange = function () {
|
|
56
61
|
handleSizeChange === null || handleSizeChange === void 0 ? void 0 : handleSizeChange();
|
package/package.json
CHANGED