touchstudy-core 0.1.157 → 0.1.158
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
@@ -7641,10 +7641,22 @@ var QuestionCountSelector = function QuestionCountSelector(_ref) {
|
|
7641
7641
|
value = _ref.value,
|
7642
7642
|
onChange = _ref.onChange,
|
7643
7643
|
isDisabled = _ref.isDisabled,
|
7644
|
-
rest = _ref.rest
|
7644
|
+
rest = _ref.rest,
|
7645
|
+
totalQuestions = _ref.totalQuestions;
|
7645
7646
|
var _useTranslation = useTranslation(),
|
7646
7647
|
t = _useTranslation.t;
|
7647
|
-
var questionOptions =
|
7648
|
+
var questionOptions = totalQuestions && totalQuestions > 1 ? Array.from({
|
7649
|
+
length: totalQuestions
|
7650
|
+
}, function (_, i) {
|
7651
|
+
return i + 1;
|
7652
|
+
}).map(function (i) {
|
7653
|
+
return {
|
7654
|
+
label: t("question_count_format", {
|
7655
|
+
number: i
|
7656
|
+
}),
|
7657
|
+
value: i
|
7658
|
+
};
|
7659
|
+
}) : QUESTION_OPTIONS.map(function (i) {
|
7648
7660
|
return {
|
7649
7661
|
label: t("question_count_format", {
|
7650
7662
|
number: i
|
@@ -33579,6 +33591,7 @@ var CompareTypeOptions = [{
|
|
33579
33591
|
label: "synonym_processing",
|
33580
33592
|
value: QuestionAnswerType.SynonymProcessing
|
33581
33593
|
}];
|
33594
|
+
var MAX_QUESTIONS_IN_QUESTION_GROUP = 20;
|
33582
33595
|
|
33583
33596
|
var CustomTextbookTab = function CustomTextbookTab(props) {
|
33584
33597
|
var children = props.children,
|
@@ -34913,7 +34926,8 @@ var QuestionGroupBlock = function QuestionGroupBlock(_ref) {
|
|
34913
34926
|
var field = _ref2.field;
|
34914
34927
|
return React__default.createElement(QuestionCountSelector, Object.assign({}, field, {
|
34915
34928
|
onChange: handleChangeQuestionCount,
|
34916
|
-
isDisabled: disabled
|
34929
|
+
isDisabled: disabled,
|
34930
|
+
totalQuestions: MAX_QUESTIONS_IN_QUESTION_GROUP
|
34917
34931
|
}));
|
34918
34932
|
}
|
34919
34933
|
}))), isMath && React__default.createElement(Grid, {
|
@@ -36229,6 +36243,7 @@ var TextbookInfoTab = function TextbookInfoTab(_ref) {
|
|
36229
36243
|
onChange: function onChange(event) {
|
36230
36244
|
return !disabled && handleUploadImage(event);
|
36231
36245
|
},
|
36246
|
+
disabled: disabled,
|
36232
36247
|
onClick: function onClick(e) {
|
36233
36248
|
if (!disabled) {
|
36234
36249
|
e.target.value = "";
|
@@ -36868,7 +36883,7 @@ var PreparedTextbookForm = function PreparedTextbookForm(_ref) {
|
|
36868
36883
|
}, React__default.createElement(FormLabel, {
|
36869
36884
|
htmlFor: "type",
|
36870
36885
|
className: "text-center"
|
36871
|
-
}, t$1("
|
36886
|
+
}, t$1("korean_language")), React__default.createElement(Field, {
|
36872
36887
|
name: "type",
|
36873
36888
|
render: function render(_ref4) {
|
36874
36889
|
var field = _ref4.field;
|