@arquimedes.co/eureka-forms 1.9.64-test → 1.9.65-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.
|
@@ -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,15 @@ 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
|
-
return _jsx("div", {});
|
|
53
|
-
return { value: classifier._id, label: classifier.name };
|
|
53
|
+
return { value: classifier === null || classifier === void 0 ? void 0 : classifier._id, label: classifier === null || classifier === void 0 ? void 0 : classifier.name };
|
|
54
54
|
});
|
|
55
55
|
var sizeChange = function () {
|
|
56
56
|
handleSizeChange === null || handleSizeChange === void 0 ? void 0 : handleSizeChange();
|
package/package.json
CHANGED