@elice/material-quiz 1.241007.0-aidt.8 → 1.241007.0
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/cjs/components/material-quiz/MaterialQuizAnswerExplanation.js +0 -1
- package/cjs/components/material-quiz/MaterialQuizSelectMultiple.js +1 -3
- package/cjs/components/material-quiz/MaterialQuizSelectMultipleOrder.d.ts +0 -11
- package/cjs/components/material-quiz/MaterialQuizSelectMultipleOrder.js +1 -2
- package/cjs/components/material-quiz/MaterialQuizSelectOne.js +0 -1
- package/cjs/components/material-quiz/locales/ko.json.js +1 -1
- package/cjs/components/material-quiz/locales/th.json.js +1 -1
- package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroup.js +16 -29
- package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupDesktop.d.ts +1 -6
- package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupDesktop.js +3 -8
- package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupMobile.d.ts +1 -6
- package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupMobile.js +6 -14
- package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupOptionItem.d.ts +0 -2
- package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupOptionItem.js +41 -91
- package/cjs/components/material-quiz-edit/MaterialQuizEdit.d.ts +1 -2
- package/cjs/components/material-quiz-edit/MaterialQuizEdit.js +13 -25
- package/cjs/components/material-quiz-edit/MaterialQuizEditContent.js +6 -71
- package/cjs/components/material-quiz-edit/locales/en.json.js +1 -1
- package/cjs/components/material-quiz-edit/locales/ja.json.js +1 -1
- package/cjs/components/material-quiz-edit/locales/ko.json.js +1 -1
- package/cjs/components/material-quiz-edit/locales/th.json.js +1 -1
- package/cjs/components/shared/QuestionBox.js +6 -14
- package/cjs/components/shared/StyledMarkdown.js +1 -1
- package/cjs/components/shared/index.d.ts +0 -1
- package/cjs/components/shared/index.js +0 -4
- package/cjs/helpers/index.d.ts +0 -5
- package/cjs/helpers/index.js +0 -34
- package/cjs/hooks/useCaculatePassage.js +1 -1
- package/cjs/index.js +0 -4
- package/es/components/material-quiz/MaterialQuizAnswerExplanation.js +0 -1
- package/es/components/material-quiz/MaterialQuizSelectMultiple.js +2 -4
- package/es/components/material-quiz/MaterialQuizSelectMultipleOrder.d.ts +0 -11
- package/es/components/material-quiz/MaterialQuizSelectMultipleOrder.js +2 -3
- package/es/components/material-quiz/MaterialQuizSelectOne.js +0 -1
- package/es/components/material-quiz/locales/ko.json.js +1 -1
- package/es/components/material-quiz/locales/th.json.js +1 -1
- package/es/components/material-quiz/material-quiz-group/MaterialQuizGroup.js +16 -29
- package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupDesktop.d.ts +1 -6
- package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupDesktop.js +1 -6
- package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupMobile.d.ts +1 -6
- package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupMobile.js +2 -10
- package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupOptionItem.d.ts +0 -2
- package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupOptionItem.js +40 -90
- package/es/components/material-quiz-edit/MaterialQuizEdit.d.ts +1 -2
- package/es/components/material-quiz-edit/MaterialQuizEdit.js +13 -25
- package/es/components/material-quiz-edit/MaterialQuizEditContent.js +7 -71
- package/es/components/material-quiz-edit/locales/en.json.js +1 -1
- package/es/components/material-quiz-edit/locales/ja.json.js +1 -1
- package/es/components/material-quiz-edit/locales/ko.json.js +1 -1
- package/es/components/material-quiz-edit/locales/th.json.js +1 -1
- package/es/components/shared/QuestionBox.js +7 -15
- package/es/components/shared/StyledMarkdown.js +1 -1
- package/es/components/shared/index.d.ts +0 -1
- package/es/components/shared/index.js +0 -1
- package/es/helpers/index.d.ts +0 -5
- package/es/helpers/index.js +1 -32
- package/es/hooks/useCaculatePassage.js +1 -1
- package/es/index.js +0 -1
- package/package.json +8 -11
- package/cjs/components/material-quiz-edit/hooks/index.d.ts +0 -1
- package/cjs/components/material-quiz-edit/hooks/index.js +0 -7
- package/cjs/components/material-quiz-edit/hooks/useMaterialQuizCourse.d.ts +0 -9
- package/cjs/components/material-quiz-edit/hooks/useMaterialQuizCourse.js +0 -81
- package/cjs/components/shared/contexts/MaterialQuizApiContext.d.ts +0 -16
- package/cjs/components/shared/contexts/MaterialQuizApiContext.js +0 -47
- package/es/components/material-quiz-edit/hooks/index.d.ts +0 -1
- package/es/components/material-quiz-edit/hooks/index.js +0 -1
- package/es/components/material-quiz-edit/hooks/useMaterialQuizCourse.d.ts +0 -9
- package/es/components/material-quiz-edit/hooks/useMaterialQuizCourse.js +0 -79
- package/es/components/shared/contexts/MaterialQuizApiContext.d.ts +0 -16
- package/es/components/shared/contexts/MaterialQuizApiContext.js +0 -39
|
@@ -35,7 +35,6 @@ var MaterialQuizAnswerExplanation = function MaterialQuizAnswerExplanation() {
|
|
|
35
35
|
margintop: "1rem",
|
|
36
36
|
children: jsxRuntime.jsx(StyledAccordion, {
|
|
37
37
|
dark: true,
|
|
38
|
-
defaultExpanded: true,
|
|
39
38
|
header: jsxRuntime.jsx(blocks.Text, {
|
|
40
39
|
bold: true,
|
|
41
40
|
role: "navy0",
|
|
@@ -19,7 +19,6 @@ require('../shared/question-radio/QuestionRadio.js');
|
|
|
19
19
|
require('../shared/question-radio/QuestionRadioOption.js');
|
|
20
20
|
var QuestionCheckbox = require('../shared/question-checkbox/QuestionCheckbox.js');
|
|
21
21
|
var QuestionCheckboxOption = require('../shared/question-checkbox/QuestionCheckboxOption.js');
|
|
22
|
-
require('../shared/contexts/MaterialQuizApiContext.js');
|
|
23
22
|
var QuestionBox = require('../shared/QuestionBox.js');
|
|
24
23
|
var StyledMarkdown = require('../shared/StyledMarkdown.js');
|
|
25
24
|
var MaterialQuizContext = require('./context/MaterialQuizContext.js');
|
|
@@ -250,8 +249,7 @@ var MaterialQuizSelectMultiple = function MaterialQuizSelectMultiple(_ref) {
|
|
|
250
249
|
var materialQuizResponseAnswer = materialQuizResponse.answer;
|
|
251
250
|
return (_a = materialQuizResponseAnswer.includes(index)) !== null && _a !== void 0 ? _a : false;
|
|
252
251
|
};
|
|
253
|
-
var
|
|
254
|
-
var status = !checked ? undefined : index.getQuizSelectMultipleOptionResultStatus(index$1, materialQuizResponse) || index.getOptionStatus({
|
|
252
|
+
var status = index.getOptionStatus({
|
|
255
253
|
materialQuizResponse: materialQuizResponse,
|
|
256
254
|
isSelected: getIsSelected(index$1, materialQuizResponse),
|
|
257
255
|
isActive: isActive
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface Option {
|
|
3
|
-
initialOrder: number;
|
|
4
|
-
order: number;
|
|
5
|
-
value: string;
|
|
6
|
-
}
|
|
7
|
-
interface Dummy {
|
|
8
|
-
initialOrder: null;
|
|
9
|
-
order: null;
|
|
10
|
-
value: null;
|
|
11
|
-
}
|
|
12
|
-
export type Answer = Option | Dummy;
|
|
13
2
|
declare const MaterialQuizSelectMultipleOrder: React.FC<{
|
|
14
3
|
hasInlinePassage: boolean;
|
|
15
4
|
}>;
|
|
@@ -505,11 +505,10 @@ var MaterialQuizSelectMultipleOrder = function MaterialQuizSelectMultipleOrder(_
|
|
|
505
505
|
return jsxRuntime.jsx(StyledQuizAnswersDropZone, {
|
|
506
506
|
children: answerList.map(function (option, index$1) {
|
|
507
507
|
var getRole = function getRole() {
|
|
508
|
-
var _a;
|
|
509
508
|
if (isActive) {
|
|
510
509
|
return 'default';
|
|
511
510
|
}
|
|
512
|
-
var status =
|
|
511
|
+
var status = index.getQuizResultStatus(materialQuizResponse);
|
|
513
512
|
switch (status) {
|
|
514
513
|
case index.QuizResultStatus.Correct:
|
|
515
514
|
return 'correct';
|
|
@@ -19,7 +19,6 @@ var QuestionRadio = require('../shared/question-radio/QuestionRadio.js');
|
|
|
19
19
|
var QuestionRadioOption = require('../shared/question-radio/QuestionRadioOption.js');
|
|
20
20
|
require('../shared/question-checkbox/QuestionCheckbox.js');
|
|
21
21
|
require('../shared/question-checkbox/QuestionCheckboxOption.js');
|
|
22
|
-
require('../shared/contexts/MaterialQuizApiContext.js');
|
|
23
22
|
var QuestionBox = require('../shared/QuestionBox.js');
|
|
24
23
|
var StyledMarkdown = require('../shared/StyledMarkdown.js');
|
|
25
24
|
var MaterialQuizContext = require('./context/MaterialQuizContext.js');
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var messageKo = {"materialQuiz.anchorLabel.question":"지문","materialQuiz.anchorLabel.answer":"답안","materialQuiz.error":"퀴즈를 불러오는데 실패했습니다.\n잠시 후 다시 시도해주세요.","materialQuiz.submit":"제출","materialQuiz.resubmit":"다시 제출","materialQuiz.submittedAnswer":"제출한 답","materialQuiz.answer":"정답","materialQuiz.next":"다음 문제로 이동 >","materialQuiz.selectOne.answer.title":"아래 보기에서 골라주세요.","materialQuiz.selectMultiple.answer.title":"아래 보기에서 골라주세요. (중복 선택 가능)","materialQuiz.selectMultipleOrder.answer.title":"답안을 드래그 앤 드롭하세요.","materialQuiz.text.answer.title":"답안을 작성해 주세요.","materialQuiz.empty.title":"퀴즈가 준비 중 입니다.","materialQuiz.empty.description":"퀴즈 게시 후 다시 확인해주세요!","materialQuiz.survey.empty.title":"설문조사 준비 중 입니다.","materialQuiz.survey.empty.description":"설문지 게시 후 다시 확인해주세요!","materialQuiz.submitStatus.success":"제출되었습니다.","materialQuiz.submitStatus.failure":"제출에 실패하였습니다.","materialQuiz.resultStatus.correct":"정답","materialQuiz.resultStatus.wrong":"다시 한번 풀어보세요.","materialQuiz.resultStatus.submitted":"제출완료","materialQuiz.explanation.close":"퀴즈해설 닫기","materialQuiz.explanation.show":"퀴즈 해설 보기","materialQuiz.explanation.empty":"작성된 해설이 없습니다.","materialQuiz.text.placeholder":"답안을 작성해 주세요.","materialQuiz.text.correct":"정답입니다.","materialQuiz.text.wrong":"오답입니다. 다시 답안을 제출해보세요.","materialQuiz.order.answerEmpty":"항목을 다시 이곳으로 옮길 수 있습니다.","materialQuiz.bottomSheet.title":"보기","materialQuiz.bottomSheet.optionEmpty":"모든 보기를 그룹에 배치하였습니다.","materialQuiz.dropzone.desktop.answerEmpty":"보기를 영역에 끌어
|
|
5
|
+
var messageKo = {"materialQuiz.anchorLabel.question":"지문","materialQuiz.anchorLabel.answer":"답안","materialQuiz.error":"퀴즈를 불러오는데 실패했습니다.\n잠시 후 다시 시도해주세요.","materialQuiz.submit":"제출","materialQuiz.resubmit":"다시 제출","materialQuiz.submittedAnswer":"제출한 답","materialQuiz.answer":"정답","materialQuiz.next":"다음 문제로 이동 >","materialQuiz.selectOne.answer.title":"아래 보기에서 골라주세요.","materialQuiz.selectMultiple.answer.title":"아래 보기에서 골라주세요. (중복 선택 가능)","materialQuiz.selectMultipleOrder.answer.title":"답안을 드래그 앤 드롭하세요.","materialQuiz.text.answer.title":"답안을 작성해 주세요.","materialQuiz.empty.title":"퀴즈가 준비 중 입니다.","materialQuiz.empty.description":"퀴즈 게시 후 다시 확인해주세요!","materialQuiz.survey.empty.title":"설문조사 준비 중 입니다.","materialQuiz.survey.empty.description":"설문지 게시 후 다시 확인해주세요!","materialQuiz.submitStatus.success":"제출되었습니다.","materialQuiz.submitStatus.failure":"제출에 실패하였습니다.","materialQuiz.resultStatus.correct":"정답","materialQuiz.resultStatus.wrong":"다시 한번 풀어보세요.","materialQuiz.resultStatus.submitted":"제출완료","materialQuiz.explanation.close":"퀴즈해설 닫기","materialQuiz.explanation.show":"퀴즈 해설 보기","materialQuiz.explanation.empty":"작성된 해설이 없습니다.","materialQuiz.text.placeholder":"답안을 작성해 주세요.","materialQuiz.text.correct":"정답입니다.","materialQuiz.text.wrong":"오답입니다. 다시 답안을 제출해보세요.","materialQuiz.order.answerEmpty":"항목을 다시 이곳으로 옮길 수 있습니다.","materialQuiz.bottomSheet.title":"보기","materialQuiz.bottomSheet.optionEmpty":"모든 보기를 그룹에 배치하였습니다.","materialQuiz.dropzone.desktop.answerEmpty":"보기를 영역에 끌어 넣어주세요.","materialQuiz.dropzone.mobile.answerEmpty":"이곳을 클릭하여 보기를 넣어주세요.","materialQuiz.dropzone.optionEmpty":"보기","materialQuiz.dropzone.optionReset":"답안 초기화"};
|
|
6
6
|
|
|
7
7
|
exports.default = messageKo;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var th = {"materialQuiz.anchorLabel.question":"ทางเดิน","materialQuiz.anchorLabel.answer":"ดคำตอบ","materialQuiz.error":"
|
|
5
|
+
var th = {"materialQuiz.anchorLabel.question":"ทางเดิน","materialQuiz.anchorLabel.answer":"ดคำตอบ","materialQuiz.error":"เกิดข้อผิดพลาดในการโหลดข้อสอบ กรุณาลองอีกครั้งในภายหลัง","materialQuiz.submit":"ส่ง","materialQuiz.resubmit":"ส่งอีกครั้ง","materialQuiz.submittedAnswer":"คำตอบที่ส่ง","materialQuiz.answer":"ตอบ","materialQuiz.next":"ไปยังข้อถัดไป >","materialQuiz.selectOne.answer.title":"เลือกคำตอบจากตัวเลือกด้านล่าง","materialQuiz.selectMultiple.answer.title":"เลือกคำตอบจากตัวเลือกด้านล่าง (สามารถเลือกได้หลายข้อ)","materialQuiz.selectMultipleOrder.answer.title":"ลากและวางคำตอบของคุณ","materialQuiz.text.answer.title":"กรุณาเขียนคำตอบของคุณ","materialQuiz.empty.title":"ข้อสอบยังไม่พร้อมใช้งาน","materialQuiz.empty.description":"กรุณาลองอีกครั้งหลังจากเผยแพร่ข้อสอบ!","materialQuiz.survey.empty.title":"แบบสำรวจยังไม่พร้อมใช้งาน","materialQuiz.survey.empty.description":"โปรดตรวจสอบอีกครั้งหลังจากโพสต์แบบสำรวจ!","materialQuiz.submitStatus.success":"ส่งเรียบร้อยแล้ว","materialQuiz.submitStatus.failure":"ส่งล้มเหลว","materialQuiz.resultStatus.correct":"ถูกต้อง","materialQuiz.resultStatus.wrong":"กรุณาลองแก้ปัญหาอีกครั้ง","materialQuiz.resultStatus.submitted":"ส่งคำตอบแล้ว","materialQuiz.explanation.close":"ปิดคำอธิบาย","materialQuiz.explanation.show":"ดูคำอธิบาย","materialQuiz.explanation.empty":"ไม่มีคำอธิบาย","materialQuiz.text.placeholder":"กรุณากรอกคำตอบ","materialQuiz.text.correct":"ถูกต้อง!","materialQuiz.text.wrong":"นั่นผิด ลองอีกครั้ง!","materialQuiz.order.answerEmpty":"คุณสามารถย้ายตัวเลือกกลับมาที่นี่ได้","materialQuiz.bottomSheet.title":"ตัวเลือก","materialQuiz.bottomSheet.optionEmpty":"คุณได้จัดเรียงตัวเลือกทั้งหมดลงในกลุ่มแล้ว","materialQuiz.dropzone.desktop.answerEmpty":"ลากและวางตัวเลือกของคุณลงในพื้นที่นี้","materialQuiz.dropzone.mobile.answerEmpty":"แตะที่นี่เพื่อใส่ตัวเลือก","materialQuiz.dropzone.optionEmpty":"ตัวเลือก","materialQuiz.dropzone.optionReset":"รีเซ็ตคำตอบ"};
|
|
6
6
|
|
|
7
7
|
exports.default = th;
|
|
@@ -64,22 +64,18 @@ var MaterialQuizGroup = function MaterialQuizGroup() {
|
|
|
64
64
|
_React$useState8 = _rollupPluginBabelHelpers.slicedToArray(_React$useState7, 2),
|
|
65
65
|
currentOptionList = _React$useState8[0],
|
|
66
66
|
setCurrentOptionList = _React$useState8[1];
|
|
67
|
-
var _React$useState9 = React__default.default.useState(
|
|
67
|
+
var _React$useState9 = React__default.default.useState(),
|
|
68
68
|
_React$useState10 = _rollupPluginBabelHelpers.slicedToArray(_React$useState9, 2),
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
var _React$useState11 = React__default.default.useState(),
|
|
69
|
+
materialQuizResponse = _React$useState10[0],
|
|
70
|
+
setMaterialQuizResponse = _React$useState10[1];
|
|
71
|
+
var _React$useState11 = React__default.default.useState('idle'),
|
|
72
72
|
_React$useState12 = _rollupPluginBabelHelpers.slicedToArray(_React$useState11, 2),
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
var _React$useState13 = React__default.default.useState(
|
|
73
|
+
submitStatus = _React$useState12[0],
|
|
74
|
+
setSubmitStatus = _React$useState12[1];
|
|
75
|
+
var _React$useState13 = React__default.default.useState(false),
|
|
76
76
|
_React$useState14 = _rollupPluginBabelHelpers.slicedToArray(_React$useState13, 2),
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
var _React$useState15 = React__default.default.useState(false),
|
|
80
|
-
_React$useState16 = _rollupPluginBabelHelpers.slicedToArray(_React$useState15, 2),
|
|
81
|
-
hasSubmitted = _React$useState16[0],
|
|
82
|
-
setHasSubmitted = _React$useState16[1];
|
|
77
|
+
hasSubmitted = _React$useState14[0],
|
|
78
|
+
setHasSubmitted = _React$useState14[1];
|
|
83
79
|
var isNextActive = hasSubmitted && typeof onNext === 'function';
|
|
84
80
|
var isDisabled = !flattenDeep__default.default(currentAnswerList).length || !!userId;
|
|
85
81
|
var _useCaculatePassage = useCaculatePassage.useCaculatePassage(),
|
|
@@ -186,20 +182,19 @@ var MaterialQuizGroup = function MaterialQuizGroup() {
|
|
|
186
182
|
onSubmit(true, index.getQuizResult(quizResponse));
|
|
187
183
|
setSubmitStatus('resolved');
|
|
188
184
|
onDirty(false);
|
|
189
|
-
|
|
190
|
-
_context.next = 26;
|
|
185
|
+
_context.next = 25;
|
|
191
186
|
break;
|
|
192
|
-
case
|
|
193
|
-
_context.prev =
|
|
187
|
+
case 20:
|
|
188
|
+
_context.prev = 20;
|
|
194
189
|
_context.t0 = _context["catch"](3);
|
|
195
190
|
console.error(_context.t0);
|
|
196
191
|
onSubmit(false);
|
|
197
192
|
setSubmitStatus('rejected');
|
|
198
|
-
case
|
|
193
|
+
case 25:
|
|
199
194
|
case "end":
|
|
200
195
|
return _context.stop();
|
|
201
196
|
}
|
|
202
|
-
}, _callee, null, [[3,
|
|
197
|
+
}, _callee, null, [[3, 20]]);
|
|
203
198
|
}));
|
|
204
199
|
return function handleSubmit() {
|
|
205
200
|
return _ref.apply(this, arguments);
|
|
@@ -248,7 +243,6 @@ var MaterialQuizGroup = function MaterialQuizGroup() {
|
|
|
248
243
|
});
|
|
249
244
|
onDirty(true);
|
|
250
245
|
setHasSubmitted(false);
|
|
251
|
-
setIsActive(true);
|
|
252
246
|
};
|
|
253
247
|
/**
|
|
254
248
|
*
|
|
@@ -277,7 +271,6 @@ var MaterialQuizGroup = function MaterialQuizGroup() {
|
|
|
277
271
|
return [].concat(_rollupPluginBabelHelpers.toConsumableArray(prevOptionList), [selectedOption]);
|
|
278
272
|
});
|
|
279
273
|
onDirty(true);
|
|
280
|
-
setIsActive(true);
|
|
281
274
|
};
|
|
282
275
|
//
|
|
283
276
|
//
|
|
@@ -395,15 +388,9 @@ var MaterialQuizGroup = function MaterialQuizGroup() {
|
|
|
395
388
|
}],
|
|
396
389
|
children: [renderQuizInfo(), vertical || isVisibleSideBySide ? jsxRuntime.jsx("div", {
|
|
397
390
|
id: element.MATERIAL_QUIZ_ANSWER_ID,
|
|
398
|
-
children: jsxRuntime.jsx(MaterialQuizGroupMobile.default, {
|
|
399
|
-
isActive: isActive,
|
|
400
|
-
materialQuizResponse: materialQuizResponse
|
|
401
|
-
})
|
|
391
|
+
children: jsxRuntime.jsx(MaterialQuizGroupMobile.default, {})
|
|
402
392
|
}) : jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
403
|
-
children: jsxRuntime.jsx(MaterialQuizGroupDesktop.default, {
|
|
404
|
-
isActive: isActive,
|
|
405
|
-
materialQuizResponse: materialQuizResponse
|
|
406
|
-
})
|
|
393
|
+
children: jsxRuntime.jsx(MaterialQuizGroupDesktop.default, {})
|
|
407
394
|
}), jsxRuntime.jsx(MaterialQuizAnswerExplanation.default, {})]
|
|
408
395
|
})
|
|
409
396
|
});
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
interface MaterialQuizGroupDesktopProps {
|
|
4
|
-
isActive: boolean;
|
|
5
|
-
materialQuizResponse?: GetOrgMaterialQuizResponseGetResponses['quizResponse'];
|
|
6
|
-
}
|
|
7
|
-
declare const MaterialQuizGroupDesktop: React.FC<MaterialQuizGroupDesktopProps>;
|
|
2
|
+
declare const MaterialQuizGroupDesktop: React.FC;
|
|
8
3
|
export default MaterialQuizGroupDesktop;
|
|
@@ -10,7 +10,6 @@ var designTokens = require('@elice/design-tokens');
|
|
|
10
10
|
var icons = require('@elice/icons');
|
|
11
11
|
var intl = require('@elice/intl');
|
|
12
12
|
var styled = require('styled-components');
|
|
13
|
-
var index = require('../../../helpers/index.js');
|
|
14
13
|
var EbDroppable = require('../../eb-sortable/EbDroppable.js');
|
|
15
14
|
var MaterialQuizContext = require('../context/MaterialQuizContext.js');
|
|
16
15
|
var context = require('./context/context.js');
|
|
@@ -52,9 +51,7 @@ var StyledQuizOptionsDropzone = styled__default.default(EbDroppable.default).wit
|
|
|
52
51
|
//
|
|
53
52
|
//
|
|
54
53
|
//
|
|
55
|
-
var MaterialQuizGroupDesktop = function MaterialQuizGroupDesktop(
|
|
56
|
-
var isActive = _ref3.isActive,
|
|
57
|
-
materialQuizResponse = _ref3.materialQuizResponse;
|
|
54
|
+
var MaterialQuizGroupDesktop = function MaterialQuizGroupDesktop() {
|
|
58
55
|
var intl$1 = intl.useRawEliceIntl();
|
|
59
56
|
var _useMaterialQuizState = MaterialQuizContext.useMaterialQuizState(),
|
|
60
57
|
userId = _useMaterialQuizState.userId;
|
|
@@ -121,12 +118,10 @@ var MaterialQuizGroupDesktop = function MaterialQuizGroupDesktop(_ref3) {
|
|
|
121
118
|
accept: ".quiz-answer",
|
|
122
119
|
disabled: !!userId,
|
|
123
120
|
isGroupAnswer: isGroupAnswer,
|
|
124
|
-
children: isGroupAnswer ? (_b = currentAnswerList[dropzoneIndex]) === null || _b === void 0 ? void 0 : _b.map(function (answer, index
|
|
125
|
-
var status = isActive ? undefined : index.getQuizGroupOptionResultStatus(dropzoneIndex, index$1, materialQuizResponse);
|
|
121
|
+
children: isGroupAnswer ? (_b = currentAnswerList[dropzoneIndex]) === null || _b === void 0 ? void 0 : _b.map(function (answer, index) {
|
|
126
122
|
return jsxRuntime.jsx(MaterialQuizGroupOptionItem.default, {
|
|
127
|
-
status: status,
|
|
128
123
|
option: answer
|
|
129
|
-
}, index
|
|
124
|
+
}, index);
|
|
130
125
|
}) : jsxRuntime.jsx(blocks.Text, {
|
|
131
126
|
role: "gray5",
|
|
132
127
|
bold: true,
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
interface MaterialQuizGroupMobileProps {
|
|
4
|
-
isActive: boolean;
|
|
5
|
-
materialQuizResponse?: GetOrgMaterialQuizResponseGetResponses['quizResponse'];
|
|
6
|
-
}
|
|
7
|
-
declare const MaterialQuizGroupMobile: React.FC<MaterialQuizGroupMobileProps>;
|
|
2
|
+
declare const MaterialQuizGroupMobile: React.FC;
|
|
8
3
|
export default MaterialQuizGroupMobile;
|
|
@@ -9,7 +9,6 @@ var blocks = require('@elice/blocks');
|
|
|
9
9
|
var designTokens = require('@elice/design-tokens');
|
|
10
10
|
var intl = require('@elice/intl');
|
|
11
11
|
var styled = require('styled-components');
|
|
12
|
-
var index = require('../../../helpers/index.js');
|
|
13
12
|
var MaterialQuizContext = require('../context/MaterialQuizContext.js');
|
|
14
13
|
var context = require('./context/context.js');
|
|
15
14
|
var MaterialQuizGroupOptionItem = require('./MaterialQuizGroupOptionItem.js');
|
|
@@ -19,9 +18,6 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
19
18
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
20
19
|
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
21
20
|
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
21
|
var StyledQuizGroupWrapper = styled__default.default.div.withConfig({
|
|
26
22
|
componentId: "sc-bftjpj-0"
|
|
27
23
|
})(["display:flex;flex-direction:column;overflow:hidden;width:100%;padding:1rem;background:", ";border-radius:0.5rem;&:hover{cursor:pointer;}&:not(:last-child){margin-bottom:1rem;}"], designTokens.base.color.white);
|
|
@@ -41,9 +37,7 @@ var StyledBottomSheetWrapper = styled__default.default(StyledQuizOptionList).wit
|
|
|
41
37
|
isCurrentOptionList = _ref2.isCurrentOptionList;
|
|
42
38
|
return vertical && isCurrentOptionList ? 'flex-start' : 'center';
|
|
43
39
|
});
|
|
44
|
-
var MaterialQuizGroupMobile = function MaterialQuizGroupMobile(
|
|
45
|
-
var isActive = _ref3.isActive,
|
|
46
|
-
materialQuizResponse = _ref3.materialQuizResponse;
|
|
40
|
+
var MaterialQuizGroupMobile = function MaterialQuizGroupMobile() {
|
|
47
41
|
var intl$1 = intl.useRawEliceIntl();
|
|
48
42
|
// context
|
|
49
43
|
var _useMaterialQuizState = MaterialQuizContext.useMaterialQuizState(),
|
|
@@ -85,12 +79,12 @@ var MaterialQuizGroupMobile = function MaterialQuizGroupMobile(_ref3) {
|
|
|
85
79
|
var renderGroupList = function renderGroupList() {
|
|
86
80
|
var _a;
|
|
87
81
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
88
|
-
children: (_a = materialQuiz === null || materialQuiz === void 0 ? void 0 : materialQuiz.groups) === null || _a === void 0 ? void 0 : _a.map(function (group, index
|
|
82
|
+
children: (_a = materialQuiz === null || materialQuiz === void 0 ? void 0 : materialQuiz.groups) === null || _a === void 0 ? void 0 : _a.map(function (group, index) {
|
|
89
83
|
var _a;
|
|
90
|
-
var isCurrentOptionList = Boolean((_a = currentAnswerList === null || currentAnswerList === void 0 ? void 0 : currentAnswerList[index
|
|
84
|
+
var isCurrentOptionList = Boolean((_a = currentAnswerList === null || currentAnswerList === void 0 ? void 0 : currentAnswerList[index]) === null || _a === void 0 ? void 0 : _a.length);
|
|
91
85
|
return jsxRuntime.jsxs(StyledQuizGroupWrapper, {
|
|
92
86
|
onClick: function onClick() {
|
|
93
|
-
return setDropzoneIndex(index
|
|
87
|
+
return setDropzoneIndex(index);
|
|
94
88
|
},
|
|
95
89
|
children: [jsxRuntime.jsx(blocks.Text, {
|
|
96
90
|
size: "small",
|
|
@@ -100,11 +94,9 @@ var MaterialQuizGroupMobile = function MaterialQuizGroupMobile(_ref3) {
|
|
|
100
94
|
height: 0.5
|
|
101
95
|
}), jsxRuntime.jsx(StyledQuizOptionList, {
|
|
102
96
|
isCurrentOptionList: isCurrentOptionList,
|
|
103
|
-
children: isCurrentOptionList ? currentAnswerList[index
|
|
104
|
-
var status = isActive ? undefined : index.getQuizGroupOptionResultStatus(index$1, answerIndex, materialQuizResponse);
|
|
97
|
+
children: isCurrentOptionList ? currentAnswerList[index].map(function (answer) {
|
|
105
98
|
return jsxRuntime.jsx(MaterialQuizGroupOptionItem.default, {
|
|
106
99
|
option: answer,
|
|
107
|
-
status: status,
|
|
108
100
|
onClose: function onClose() {
|
|
109
101
|
var targetId = answer.order;
|
|
110
102
|
updateCurrentOption(targetId);
|
|
@@ -121,7 +113,7 @@ var MaterialQuizGroupMobile = function MaterialQuizGroupMobile(_ref3) {
|
|
|
121
113
|
})
|
|
122
114
|
})
|
|
123
115
|
})]
|
|
124
|
-
}, index
|
|
116
|
+
}, index);
|
|
125
117
|
})
|
|
126
118
|
});
|
|
127
119
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { QuizGroupOption } from './context/context';
|
|
3
|
-
type Status = 'correct' | 'wrong' | 'answer';
|
|
4
3
|
interface MaterialQuizGroupOptionProps {
|
|
5
4
|
option: QuizGroupOption;
|
|
6
|
-
status?: Status;
|
|
7
5
|
onClose?: () => void;
|
|
8
6
|
}
|
|
9
7
|
declare const MaterialQuizGroupOptionItem: React.FC<MaterialQuizGroupOptionProps>;
|
|
@@ -2,92 +2,55 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _styled = require('@emotion/styled/base');
|
|
6
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var blocks = require('@elice/blocks');
|
|
7
7
|
var designTokens = require('@elice/design-tokens');
|
|
8
|
+
var icons = require('@elice/icons');
|
|
8
9
|
var markdown = require('@elice/markdown');
|
|
9
|
-
var
|
|
10
|
-
var muiSystem = require('@elice/mui-system');
|
|
11
|
-
var proSolidSvgIcons = require('@fortawesome/pro-solid-svg-icons');
|
|
12
|
-
var material = require('@mui/material');
|
|
10
|
+
var styled = require('styled-components');
|
|
13
11
|
var index = require('../../../helpers/index.js');
|
|
14
12
|
var EbDraggable = require('../../eb-sortable/EbDraggable.js');
|
|
15
13
|
var MaterialQuizContext = require('../context/MaterialQuizContext.js');
|
|
16
14
|
|
|
17
15
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
18
16
|
|
|
19
|
-
var
|
|
17
|
+
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
var StyledDraggbleOption = /*#__PURE__*/_styled__default.default(EbDraggable.default, {
|
|
25
|
-
target: "ex64yhy3"
|
|
26
|
-
})("display:flex;flex-direction:column;flex-shrink:", function (_ref) {
|
|
19
|
+
var StyledDraggbleOption = styled__default.default(EbDraggable.default).withConfig({
|
|
20
|
+
componentId: "sc-1b3vxse-0"
|
|
21
|
+
})(["display:flex;flex-direction:column;flex-shrink:", ";overflow:hidden;max-width:", ";height:fit-content;border-radius:0.5rem;background:", ";"], function (_ref) {
|
|
27
22
|
var vertical = _ref.vertical;
|
|
28
23
|
return vertical ? 0 : 1;
|
|
29
|
-
},
|
|
24
|
+
}, function (_ref2) {
|
|
30
25
|
var vertical = _ref2.vertical;
|
|
31
26
|
return vertical ? '10.25rem' : '11.5rem';
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
default:
|
|
41
|
-
return '3px solid transparent';
|
|
42
|
-
}
|
|
43
|
-
}, ";");
|
|
44
|
-
var StyledOptionTitle = /*#__PURE__*/_styled__default.default("div", {
|
|
45
|
-
target: "ex64yhy2"
|
|
46
|
-
})("display:flex;justify-content:center;align-items:center;width:", function (_ref4) {
|
|
27
|
+
}, designTokens.base.color.navy8);
|
|
28
|
+
var StyledOptionTitle = styled__default.default.div.withConfig({
|
|
29
|
+
componentId: "sc-1b3vxse-1"
|
|
30
|
+
})(["display:flex;justify-content:center;align-items:center;width:", ";height:", ";padding:0.5rem;background:", ";"], function (_ref3) {
|
|
31
|
+
var vertical = _ref3.vertical,
|
|
32
|
+
isOptionContent = _ref3.isOptionContent;
|
|
33
|
+
return isOptionContent ? '100%' : vertical ? '10.25rem' : '11.5rem';
|
|
34
|
+
}, function (_ref4) {
|
|
47
35
|
var vertical = _ref4.vertical,
|
|
48
36
|
isOptionContent = _ref4.isOptionContent;
|
|
49
|
-
return isOptionContent ? '100%' : vertical ? '10.25rem' : '11.5rem';
|
|
50
|
-
}, ";height:", function (_ref5) {
|
|
51
|
-
var vertical = _ref5.vertical,
|
|
52
|
-
isOptionContent = _ref5.isOptionContent;
|
|
53
37
|
return isOptionContent ? 'auto' : vertical ? '10.25rem' : '11.5rem';
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
switch (status) {
|
|
61
|
-
case 'correct':
|
|
62
|
-
return muiSystem.colors.green[50];
|
|
63
|
-
case 'wrong':
|
|
64
|
-
return muiSystem.colors.red[50];
|
|
65
|
-
default:
|
|
66
|
-
return 'auto';
|
|
67
|
-
}
|
|
68
|
-
}, ";");
|
|
69
|
-
var StyledOptionContent = /*#__PURE__*/_styled__default.default("div", {
|
|
70
|
-
target: "ex64yhy1"
|
|
71
|
-
})("display:flex;align-items:center;width:", function (_ref7) {
|
|
72
|
-
var vertical = _ref7.vertical;
|
|
38
|
+
}, designTokens.base.color.white);
|
|
39
|
+
var StyledOptionContent = styled__default.default.div.withConfig({
|
|
40
|
+
componentId: "sc-1b3vxse-2"
|
|
41
|
+
})(["display:flex;align-items:center;width:", ";height:", ";background:", ";& p{line-height:1;}"], function (_ref5) {
|
|
42
|
+
var vertical = _ref5.vertical;
|
|
73
43
|
return vertical ? '10.25rem' : '11.5rem';
|
|
74
|
-
},
|
|
75
|
-
var vertical =
|
|
44
|
+
}, function (_ref6) {
|
|
45
|
+
var vertical = _ref6.vertical;
|
|
76
46
|
return vertical ? '10.25rem' : '11.5rem';
|
|
77
|
-
},
|
|
78
|
-
var
|
|
79
|
-
|
|
80
|
-
})("
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
//
|
|
85
|
-
//
|
|
86
|
-
//
|
|
87
|
-
var MaterialQuizGroupOptionItem = function MaterialQuizGroupOptionItem(_ref10) {
|
|
88
|
-
var option = _ref10.option,
|
|
89
|
-
status = _ref10.status,
|
|
90
|
-
onClose = _ref10.onClose;
|
|
47
|
+
}, designTokens.base.color.navy8);
|
|
48
|
+
var StyledOptionRemoveIcon = styled__default.default(blocks.IconButton).withConfig({
|
|
49
|
+
componentId: "sc-1b3vxse-3"
|
|
50
|
+
})(["position:absolute;top:0.5rem;right:0.5rem;border-radius:1rem;"]);
|
|
51
|
+
var MaterialQuizGroupOptionItem = function MaterialQuizGroupOptionItem(_ref7) {
|
|
52
|
+
var option = _ref7.option,
|
|
53
|
+
onClose = _ref7.onClose;
|
|
91
54
|
var _a;
|
|
92
55
|
var _useMaterialQuizState = MaterialQuizContext.useMaterialQuizState(),
|
|
93
56
|
vertical = _useMaterialQuizState.vertical,
|
|
@@ -101,17 +64,14 @@ var MaterialQuizGroupOptionItem = function MaterialQuizGroupOptionItem(_ref10) {
|
|
|
101
64
|
if (!!userId) {
|
|
102
65
|
return null;
|
|
103
66
|
}
|
|
104
|
-
return jsxRuntime.jsx(
|
|
105
|
-
|
|
106
|
-
|
|
67
|
+
return jsxRuntime.jsx(StyledOptionRemoveIcon, {
|
|
68
|
+
icon: icons.eilMathsignMultiplyBasic,
|
|
69
|
+
role: "gray1",
|
|
70
|
+
size: "micro",
|
|
107
71
|
onClick: function onClick(e) {
|
|
108
72
|
e.stopPropagation();
|
|
109
73
|
onClose();
|
|
110
|
-
}
|
|
111
|
-
children: jsxRuntime.jsx(muiElements.EliceIcon, {
|
|
112
|
-
icon: proSolidSvgIcons.faXmark,
|
|
113
|
-
fontSize: "inherit"
|
|
114
|
-
})
|
|
74
|
+
}
|
|
115
75
|
});
|
|
116
76
|
};
|
|
117
77
|
//
|
|
@@ -122,13 +82,7 @@ var MaterialQuizGroupOptionItem = function MaterialQuizGroupOptionItem(_ref10) {
|
|
|
122
82
|
id: option.order.toString(),
|
|
123
83
|
className: "quiz-answer",
|
|
124
84
|
vertical: vertical,
|
|
125
|
-
|
|
126
|
-
children: [jsxRuntime.jsx(material.Stack, {
|
|
127
|
-
width: "100%",
|
|
128
|
-
direction: "row",
|
|
129
|
-
justifyContent: "flex-end",
|
|
130
|
-
children: renderRemoveItem()
|
|
131
|
-
}), isOptionContent ? jsxRuntime.jsx(StyledOptionContent, {
|
|
85
|
+
children: [isOptionContent ? jsxRuntime.jsx(StyledOptionContent, {
|
|
132
86
|
vertical: vertical,
|
|
133
87
|
children: jsxRuntime.jsx(markdown.MarkdownSSR, {
|
|
134
88
|
children: (_a = index.addAltTextToImage(option.options)) !== null && _a !== void 0 ? _a : '',
|
|
@@ -138,19 +92,15 @@ var MaterialQuizGroupOptionItem = function MaterialQuizGroupOptionItem(_ref10) {
|
|
|
138
92
|
})
|
|
139
93
|
}) : null, isOptionTitle ? jsxRuntime.jsx(StyledOptionTitle, {
|
|
140
94
|
vertical: vertical,
|
|
141
|
-
status: status,
|
|
142
95
|
isOptionContent: isOptionContent,
|
|
143
|
-
children: jsxRuntime.jsx(
|
|
144
|
-
|
|
96
|
+
children: jsxRuntime.jsx(blocks.Text, {
|
|
97
|
+
size: vertical ? 'small' : 'default',
|
|
145
98
|
textAlign: "center",
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
sx: {
|
|
149
|
-
wordBreak: 'break-all'
|
|
150
|
-
},
|
|
99
|
+
wordBreak: "break-all",
|
|
100
|
+
bold: true,
|
|
151
101
|
children: option.options.title
|
|
152
102
|
})
|
|
153
|
-
}) : null]
|
|
103
|
+
}) : null, renderRemoveItem()]
|
|
154
104
|
});
|
|
155
105
|
};
|
|
156
106
|
|
|
@@ -2,10 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import type { MarkdownEditorFileUploadReqFn } from '@elice/markdown';
|
|
3
3
|
import type { GetOrgMaterialQuizGetResponses } from '@elice/types';
|
|
4
4
|
import type { FormState } from 'react-hook-form';
|
|
5
|
-
import type { MaterialQuizApiProviderProps } from '../shared';
|
|
6
5
|
export type MaterialQuizEditValue = Pick<GetOrgMaterialQuizGetResponses['materialQuiz'], 'id' | 'questionTitle' | 'questionDescription' | 'optionType' | 'optionsDefault' | 'answerInfoDefault' | 'answerHint' | 'isAutoGrade' | 'explanationInfo' | 'groups' | 'optionsSetEnabled'>;
|
|
7
6
|
export type MaterialQuizEditFormState = Pick<FormState<Record<string, any>>, 'isDirty' | 'isValid'>;
|
|
8
|
-
export interface MaterialQuizEditProps
|
|
7
|
+
export interface MaterialQuizEditProps {
|
|
9
8
|
/** Value of material quiz edit form. */
|
|
10
9
|
value: MaterialQuizEditValue;
|
|
11
10
|
/**
|
|
@@ -7,14 +7,6 @@ var React = require('react');
|
|
|
7
7
|
var reactHookForm = require('react-hook-form');
|
|
8
8
|
var intl = require('@elice/intl');
|
|
9
9
|
var materialSharedUtils = require('@elice/material-shared-utils');
|
|
10
|
-
require('../shared/QuizDraggbleDroppedOption.js');
|
|
11
|
-
require('../shared/QuizDraggbleDummyOption.js');
|
|
12
|
-
require('../shared/QuizDraggbleOption.js');
|
|
13
|
-
require('../shared/question-radio/QuestionRadio.js');
|
|
14
|
-
require('../shared/question-radio/QuestionRadioOption.js');
|
|
15
|
-
require('../shared/question-checkbox/QuestionCheckbox.js');
|
|
16
|
-
require('../shared/question-checkbox/QuestionCheckboxOption.js');
|
|
17
|
-
var MaterialQuizApiContext = require('../shared/contexts/MaterialQuizApiContext.js');
|
|
18
10
|
var editValue = require('./utils/editValue.js');
|
|
19
11
|
var context = require('./context.js');
|
|
20
12
|
var en = require('./locales/en.json.js');
|
|
@@ -26,8 +18,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
26
18
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
27
19
|
|
|
28
20
|
var MaterialQuizEdit = React.forwardRef(function (_ref, ref) {
|
|
29
|
-
var
|
|
30
|
-
value = _ref.value,
|
|
21
|
+
var value = _ref.value,
|
|
31
22
|
_ref$disabled = _ref.disabled,
|
|
32
23
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
33
24
|
onChange = _ref.onChange,
|
|
@@ -91,21 +82,18 @@ var MaterialQuizEdit = React.forwardRef(function (_ref, ref) {
|
|
|
91
82
|
//
|
|
92
83
|
//
|
|
93
84
|
//
|
|
94
|
-
return jsxRuntime.jsx(
|
|
95
|
-
|
|
96
|
-
children: jsxRuntime.jsx(
|
|
97
|
-
|
|
98
|
-
children: jsxRuntime.jsx(
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
children: jsxRuntime.jsx(MaterialQuizEditContent.default, {})
|
|
107
|
-
}))
|
|
108
|
-
})
|
|
85
|
+
return jsxRuntime.jsx(intl.RawEliceIntlProvider, {
|
|
86
|
+
value: __intl,
|
|
87
|
+
children: jsxRuntime.jsx("form", {
|
|
88
|
+
ref: formElRef,
|
|
89
|
+
children: jsxRuntime.jsx(context.default.Provider, {
|
|
90
|
+
value: {
|
|
91
|
+
disabled: disabled,
|
|
92
|
+
onFileUploadRequest: onFileUploadRequest
|
|
93
|
+
},
|
|
94
|
+
children: jsxRuntime.jsx(reactHookForm.FormProvider, Object.assign({}, useFormMethods, {
|
|
95
|
+
children: jsxRuntime.jsx(MaterialQuizEditContent.default, {})
|
|
96
|
+
}))
|
|
109
97
|
})
|
|
110
98
|
})
|
|
111
99
|
});
|