touchstudy-core 0.1.134 → 0.1.135
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/index.modern.js
CHANGED
@@ -28044,7 +28044,8 @@ var QuestionBlock = function QuestionBlock(_ref2) {
|
|
28044
28044
|
return React__default.createElement(FormGroup, {
|
28045
28045
|
sx: {
|
28046
28046
|
width: "100%",
|
28047
|
-
maxWidth: "240px"
|
28047
|
+
maxWidth: "240px",
|
28048
|
+
pl: "24px"
|
28048
28049
|
}
|
28049
28050
|
}, React__default.createElement(FormLabel, {
|
28050
28051
|
htmlFor: "textual_answer",
|
@@ -29172,11 +29173,14 @@ var QuestionTypeFilter = function QuestionTypeFilter(_ref) {
|
|
29172
29173
|
alignItems: "center"
|
29173
29174
|
}
|
29174
29175
|
}, React__default.createElement(Checkbox, {
|
29176
|
+
id: "fix",
|
29175
29177
|
inputRef: fixedRef
|
29176
29178
|
})), React__default.createElement(FormLabel, {
|
29179
|
+
htmlFor: "fix",
|
29177
29180
|
sx: {
|
29178
29181
|
display: "flex",
|
29179
|
-
alignItems: "center"
|
29182
|
+
alignItems: "center",
|
29183
|
+
cursor: "pointer"
|
29180
29184
|
}
|
29181
29185
|
}, t("fix_this_information_for_this_book")))));
|
29182
29186
|
};
|
@@ -30165,7 +30169,7 @@ var _reduceToMathArticles = function reduceToMathArticles(textbook, isMath) {
|
|
30165
30169
|
}
|
30166
30170
|
return values;
|
30167
30171
|
};
|
30168
|
-
var
|
30172
|
+
var _resetAllCategoriesAndQuestionTypesBySubject = function resetAllCategoriesAndQuestionTypesBySubject(textbook, subject) {
|
30169
30173
|
var values = subject ? _$5.cloneDeep(textbook) : textbook;
|
30170
30174
|
if (subject) {
|
30171
30175
|
values.subjectId = subject === null || subject === void 0 ? void 0 : subject.value;
|
@@ -30178,7 +30182,7 @@ var _resetAllCrategoriesAndQuestionTypesBySubject = function resetAllCrategories
|
|
30178
30182
|
} else if (key === "questionType" || key === "questionTypeId") {
|
30179
30183
|
values[key] = null;
|
30180
30184
|
} else if (typeof values[key] === "object" && values[key] !== null) {
|
30181
|
-
|
30185
|
+
_resetAllCategoriesAndQuestionTypesBySubject(values[key]);
|
30182
30186
|
}
|
30183
30187
|
}
|
30184
30188
|
}
|
@@ -30325,7 +30329,7 @@ var PreparedTextbookForm = function PreparedTextbookForm(_ref) {
|
|
30325
30329
|
setValues(newValues);
|
30326
30330
|
};
|
30327
30331
|
var handleChangeSubject = function handleChangeSubject(val) {
|
30328
|
-
var newValues =
|
30332
|
+
var newValues = _resetAllCategoriesAndQuestionTypesBySubject(values, val);
|
30329
30333
|
setValues(newValues);
|
30330
30334
|
};
|
30331
30335
|
var inforErrors = errors.coverImage || errors.grade || errors.isbn || errors.preparedType || errors.publicationDate || errors.publisher;
|