@elice/material-quiz 1.240718.0-trasncript.1 → 1.240718.0-trasncript.2
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/_virtual/_rollupPluginBabelHelpers.js +423 -0
- package/cjs/components/eb-sortable/EbDraggable.js +42 -33
- package/cjs/components/eb-sortable/EbDroppable.js +27 -20
- package/cjs/components/markdown-editor/index.d.ts +1 -2
- package/cjs/components/markdown-editor/index.js +19 -10
- package/cjs/components/material-quiz/MaterialQuiz.js +114 -83
- package/cjs/components/material-quiz/MaterialQuizAnswerExplanation.js +36 -29
- package/cjs/components/material-quiz/MaterialQuizInfo.js +151 -149
- package/cjs/components/material-quiz/MaterialQuizSelectMultiple.js +175 -127
- package/cjs/components/material-quiz/MaterialQuizSelectMultipleOrder.js +360 -286
- package/cjs/components/material-quiz/MaterialQuizSelectOne.js +172 -126
- package/cjs/components/material-quiz/MaterialQuizShimmer.js +46 -39
- package/cjs/components/material-quiz/MaterialQuizText.js +163 -115
- package/cjs/components/material-quiz/QuizResultBadge.js +32 -22
- package/cjs/components/material-quiz/QuizSubmitStatusText.js +21 -16
- package/cjs/components/material-quiz/constants/color.js +5 -5
- package/cjs/components/material-quiz/context/MaterialQuizContext.d.ts +1 -1
- package/cjs/components/material-quiz/context/MaterialQuizContext.js +156 -93
- package/cjs/components/material-quiz/index.js +9 -0
- package/cjs/components/material-quiz/locales/index.js +13 -0
- package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroup.js +259 -161
- package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupDesktop.js +134 -100
- package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupMobile.js +130 -101
- package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupOptionItem.js +64 -52
- package/cjs/components/material-quiz/material-quiz-group/context/context.js +5 -1
- package/cjs/components/material-quiz-edit/MaterialQuizEdit.js +47 -36
- package/cjs/components/material-quiz-edit/MaterialQuizEditContent.js +280 -232
- package/cjs/components/material-quiz-edit/context.js +8 -2
- package/cjs/components/material-quiz-edit/index.js +7 -0
- package/cjs/components/material-quiz-edit/locales/index.js +13 -0
- package/cjs/components/material-quiz-edit/options/OptionEditor.js +70 -46
- package/cjs/components/material-quiz-edit/options/OptionSelectMultiple.js +174 -148
- package/cjs/components/material-quiz-edit/options/OptionSelectMultipleOrder.js +175 -149
- package/cjs/components/material-quiz-edit/options/OptionSelectOne.js +164 -144
- package/cjs/components/material-quiz-edit/options/OptionText.js +90 -82
- package/cjs/components/material-quiz-edit/options/options-group/OptionGroup.js +9 -8
- package/cjs/components/material-quiz-edit/options/options-group/OptionGroupAnswerInfo.js +156 -112
- package/cjs/components/material-quiz-edit/options/options-group/OptionGroupAnswerListItem.js +288 -196
- package/cjs/components/material-quiz-edit/options/options-group/OptionGroupGroupInfo.js +88 -75
- package/cjs/components/material-quiz-edit/options/options-group/OptionGroupGroupListItem.js +108 -92
- package/cjs/components/material-quiz-edit/utils/checkTwoDimensionArray.js +5 -1
- package/cjs/components/material-quiz-edit/utils/editValue.js +21 -12
- package/cjs/components/shared/QuestionBox.js +198 -165
- package/cjs/components/shared/QuizDraggbleDroppedOption.js +11 -12
- package/cjs/components/shared/QuizDraggbleDummyOption.js +23 -16
- package/cjs/components/shared/QuizDraggbleOption.js +65 -59
- package/cjs/components/shared/StyledMarkdown.js +5 -1
- package/cjs/components/shared/index.js +19 -0
- package/cjs/components/shared/question-checkbox/QuestionCheckbox.js +13 -7
- package/cjs/components/shared/question-checkbox/QuestionCheckboxContext.d.ts +1 -1
- package/cjs/components/shared/question-checkbox/QuestionCheckboxContext.js +24 -17
- package/cjs/components/shared/question-checkbox/QuestionCheckboxOption.js +59 -68
- package/cjs/components/shared/question-radio/QuestionRadio.js +13 -7
- package/cjs/components/shared/question-radio/QuestionRadioContext.d.ts +1 -1
- package/cjs/components/shared/question-radio/QuestionRadioContext.js +24 -17
- package/cjs/components/shared/question-radio/QuestionRadioOption.js +52 -59
- package/cjs/components/shared/utils/getQuestionStatusStyle.js +7 -9
- package/cjs/components/shared/utils/mergeRefs.js +15 -6
- package/cjs/constant/element.js +3 -3
- package/cjs/constant/index.js +9 -0
- package/cjs/helpers/index.js +8 -10
- package/cjs/hooks/index.js +7 -0
- package/cjs/hooks/useCaculatePassage.js +21 -20
- package/es/_virtual/_rollupPluginBabelHelpers.js +408 -0
- package/es/components/eb-sortable/EbDraggable.js +37 -33
- package/es/components/eb-sortable/EbDroppable.js +22 -20
- package/es/components/markdown-editor/index.d.ts +1 -2
- package/es/components/markdown-editor/index.js +15 -10
- package/es/components/material-quiz/MaterialQuiz.js +109 -83
- package/es/components/material-quiz/MaterialQuizAnswerExplanation.js +32 -29
- package/es/components/material-quiz/MaterialQuizInfo.js +148 -150
- package/es/components/material-quiz/MaterialQuizSelectMultiple.js +171 -127
- package/es/components/material-quiz/MaterialQuizSelectMultipleOrder.js +356 -287
- package/es/components/material-quiz/MaterialQuizSelectOne.js +168 -126
- package/es/components/material-quiz/MaterialQuizShimmer.js +42 -39
- package/es/components/material-quiz/MaterialQuizText.js +158 -115
- package/es/components/material-quiz/QuizResultBadge.js +27 -22
- package/es/components/material-quiz/QuizSubmitStatusText.js +17 -16
- package/es/components/material-quiz/constants/color.js +5 -5
- package/es/components/material-quiz/context/MaterialQuizContext.d.ts +1 -1
- package/es/components/material-quiz/context/MaterialQuizContext.js +153 -94
- package/es/components/material-quiz/index.js +2 -0
- package/es/components/material-quiz/locales/index.js +4 -0
- package/es/components/material-quiz/material-quiz-group/MaterialQuizGroup.js +253 -161
- package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupDesktop.js +129 -100
- package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupMobile.js +125 -101
- package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupOptionItem.js +60 -52
- package/es/components/material-quiz/material-quiz-group/context/context.js +1 -1
- package/es/components/material-quiz-edit/MaterialQuizEdit.js +43 -36
- package/es/components/material-quiz-edit/MaterialQuizEditContent.js +272 -229
- package/es/components/material-quiz-edit/context.js +4 -2
- package/es/components/material-quiz-edit/index.js +1 -0
- package/es/components/material-quiz-edit/locales/index.js +4 -0
- package/es/components/material-quiz-edit/options/OptionEditor.js +64 -46
- package/es/components/material-quiz-edit/options/OptionSelectMultiple.js +170 -148
- package/es/components/material-quiz-edit/options/OptionSelectMultipleOrder.js +171 -149
- package/es/components/material-quiz-edit/options/OptionSelectOne.js +159 -144
- package/es/components/material-quiz-edit/options/OptionText.js +86 -82
- package/es/components/material-quiz-edit/options/options-group/OptionGroup.js +9 -8
- package/es/components/material-quiz-edit/options/options-group/OptionGroupAnswerInfo.js +151 -112
- package/es/components/material-quiz-edit/options/options-group/OptionGroupAnswerListItem.js +283 -197
- package/es/components/material-quiz-edit/options/options-group/OptionGroupGroupInfo.js +83 -75
- package/es/components/material-quiz-edit/options/options-group/OptionGroupGroupListItem.js +103 -92
- package/es/components/material-quiz-edit/utils/checkTwoDimensionArray.js +5 -1
- package/es/components/material-quiz-edit/utils/editValue.js +17 -12
- package/es/components/shared/QuestionBox.js +192 -165
- package/es/components/shared/QuizDraggbleDroppedOption.js +11 -12
- package/es/components/shared/QuizDraggbleDummyOption.js +19 -16
- package/es/components/shared/QuizDraggbleOption.js +61 -59
- package/es/components/shared/StyledMarkdown.js +1 -1
- package/es/components/shared/index.js +7 -0
- package/es/components/shared/question-checkbox/QuestionCheckbox.js +9 -7
- package/es/components/shared/question-checkbox/QuestionCheckboxContext.d.ts +1 -1
- package/es/components/shared/question-checkbox/QuestionCheckboxContext.js +20 -17
- package/es/components/shared/question-checkbox/QuestionCheckboxOption.js +54 -68
- package/es/components/shared/question-radio/QuestionRadio.js +9 -7
- package/es/components/shared/question-radio/QuestionRadioContext.d.ts +1 -1
- package/es/components/shared/question-radio/QuestionRadioContext.js +20 -17
- package/es/components/shared/question-radio/QuestionRadioOption.js +47 -59
- package/es/components/shared/utils/getQuestionStatusStyle.js +7 -9
- package/es/components/shared/utils/mergeRefs.js +15 -6
- package/es/constant/element.js +3 -3
- package/es/constant/index.js +1 -0
- package/es/helpers/index.js +8 -10
- package/es/hooks/index.js +1 -0
- package/es/hooks/useCaculatePassage.js +21 -20
- package/package.json +12 -15
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var reactHookForm = require('react-hook-form');
|
|
7
7
|
var reactSortableHoc = require('react-sortable-hoc');
|
|
8
8
|
var blocks = require('@elice/blocks');
|
|
@@ -15,63 +15,80 @@ var checkTwoDimensionArray = require('../../utils/checkTwoDimensionArray.js');
|
|
|
15
15
|
var randomId = require('../../utils/randomId.js');
|
|
16
16
|
var OptionGroupAnswerListItem = require('./OptionGroupAnswerListItem.js');
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
19
|
+
|
|
20
|
+
var cloneDeep__default = /*#__PURE__*/_interopDefaultCompat(cloneDeep);
|
|
21
|
+
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
22
|
+
|
|
23
|
+
var MAX_OPTION_INFO_COUNT = 20;
|
|
24
|
+
var StyledSortableList = styled__default.default.div.withConfig({
|
|
20
25
|
componentId: "sc-14yoda7-0"
|
|
21
26
|
})(["margin:1rem 0;padding:0;"]);
|
|
22
|
-
|
|
27
|
+
var StyledOptionTitle = styled__default.default.div.withConfig({
|
|
23
28
|
componentId: "sc-14yoda7-1"
|
|
24
29
|
})(["display:flex;width:calc(100% - 2rem - 1.5rem);"]);
|
|
25
30
|
//
|
|
26
31
|
//
|
|
27
32
|
//
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
setValue,
|
|
32
|
-
watch
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const watchedAnswerInfo = watch('answerInfoDefault');
|
|
46
|
-
const watchedOptions = watch('optionsDefault');
|
|
47
|
-
const isMaximumOptions = (watchedOptions === null || watchedOptions === void 0 ? void 0 : watchedOptions.length) >= MAX_OPTION_INFO_COUNT;
|
|
33
|
+
var OptionGroupAnswerInfo = function OptionGroupAnswerInfo() {
|
|
34
|
+
var intl$1 = intl.useRawEliceIntl();
|
|
35
|
+
var _useFormContext = reactHookForm.useFormContext(),
|
|
36
|
+
setValue = _useFormContext.setValue,
|
|
37
|
+
watch = _useFormContext.watch;
|
|
38
|
+
var _useMaterialQuizEditC = context.useMaterialQuizEditContext(),
|
|
39
|
+
disabled = _useMaterialQuizEditC.disabled;
|
|
40
|
+
var _useFieldArray = reactHookForm.useFieldArray({
|
|
41
|
+
name: 'optionsDefault',
|
|
42
|
+
keyName: 'id',
|
|
43
|
+
shouldUnregister: true
|
|
44
|
+
}),
|
|
45
|
+
appendOptionInfoFieldItem = _useFieldArray.append,
|
|
46
|
+
removeOptionInfoFieldItem = _useFieldArray.remove;
|
|
47
|
+
var watchedAnswerInfo = watch('answerInfoDefault');
|
|
48
|
+
var watchedOptions = watch('optionsDefault');
|
|
49
|
+
var isMaximumOptions = (watchedOptions === null || watchedOptions === void 0 ? void 0 : watchedOptions.length) >= MAX_OPTION_INFO_COUNT;
|
|
48
50
|
/**
|
|
49
51
|
*
|
|
50
52
|
*/
|
|
51
|
-
|
|
53
|
+
var handleRemoveItem = function handleRemoveItem(index) {
|
|
52
54
|
var _a;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
var cloneAnswerList = cloneDeep__default.default(watchedAnswerInfo);
|
|
56
|
+
var answerIndex = cloneAnswerList.findIndex(function (answers) {
|
|
57
|
+
return answers.includes(index);
|
|
58
|
+
});
|
|
55
59
|
if (!cloneAnswerList[answerIndex]) {
|
|
56
60
|
return removeOptionInfoFieldItem(index);
|
|
57
61
|
}
|
|
58
|
-
cloneAnswerList[answerIndex] = (_a = cloneAnswerList[answerIndex]) === null || _a === void 0 ? void 0 : _a.filter(
|
|
59
|
-
|
|
62
|
+
cloneAnswerList[answerIndex] = (_a = cloneAnswerList[answerIndex]) === null || _a === void 0 ? void 0 : _a.filter(function (answer) {
|
|
63
|
+
return answer !== index;
|
|
64
|
+
});
|
|
65
|
+
var recalculationAnswerList = cloneAnswerList.map(function (answers) {
|
|
66
|
+
return answers.map(function (answer) {
|
|
67
|
+
return answer > index ? answer - 1 : answer;
|
|
68
|
+
});
|
|
69
|
+
});
|
|
60
70
|
removeOptionInfoFieldItem(index);
|
|
61
71
|
setValue('answerInfoDefault', recalculationAnswerList);
|
|
62
72
|
};
|
|
63
73
|
/**
|
|
64
74
|
*
|
|
65
75
|
*/
|
|
66
|
-
|
|
67
|
-
oldIndex,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
76
|
+
var onSortEnd = function onSortEnd(_ref) {
|
|
77
|
+
var oldIndex = _ref.oldIndex,
|
|
78
|
+
newIndex = _ref.newIndex;
|
|
79
|
+
var prevOptions = cloneDeep__default.default(watchedOptions).map(function (option, index) {
|
|
80
|
+
return Object.assign(Object.assign({}, option), {
|
|
81
|
+
originIndex: index
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
var updatedOptions = reactSortableHoc.arrayMove(prevOptions, oldIndex, newIndex);
|
|
85
|
+
var updatedAnswerInfo = watchedAnswerInfo.map(function (answerList) {
|
|
86
|
+
return answerList.map(function (answer) {
|
|
87
|
+
return updatedOptions.findIndex(function (option) {
|
|
88
|
+
return option.originIndex === answer;
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
});
|
|
75
92
|
setValue('answerInfoDefault', updatedAnswerInfo);
|
|
76
93
|
setValue('optionsDefault', updatedOptions, {
|
|
77
94
|
shouldDirty: true
|
|
@@ -80,86 +97,112 @@ const OptionGroupAnswerInfo = () => {
|
|
|
80
97
|
/**
|
|
81
98
|
*
|
|
82
99
|
*/
|
|
83
|
-
|
|
84
|
-
return
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
100
|
+
var renderAnswerTitle = function renderAnswerTitle() {
|
|
101
|
+
return jsxRuntime.jsxs(StyledOptionTitle, {
|
|
102
|
+
children: [jsxRuntime.jsx(blocks.Flex, {
|
|
103
|
+
width: "33.3%",
|
|
104
|
+
auto: true,
|
|
105
|
+
children: jsxRuntime.jsx(blocks.Text, {
|
|
106
|
+
size: "small",
|
|
107
|
+
bold: true,
|
|
108
|
+
children: intl$1.formatMessage({
|
|
109
|
+
id: 'answer.option.title.text'
|
|
110
|
+
})
|
|
111
|
+
})
|
|
112
|
+
}), jsxRuntime.jsx(blocks.Flex, {
|
|
113
|
+
width: "33.3%",
|
|
114
|
+
children: jsxRuntime.jsx(blocks.Text, {
|
|
115
|
+
size: "small",
|
|
116
|
+
bold: true,
|
|
117
|
+
children: intl$1.formatMessage({
|
|
118
|
+
id: 'answer.option.title.file'
|
|
119
|
+
})
|
|
120
|
+
})
|
|
121
|
+
}), jsxRuntime.jsx(blocks.Flex, {
|
|
122
|
+
width: "calc(33.3% - 1.5rem)",
|
|
123
|
+
children: jsxRuntime.jsx(blocks.Text, {
|
|
124
|
+
size: "small",
|
|
125
|
+
bold: true,
|
|
126
|
+
children: intl$1.formatMessage({
|
|
127
|
+
id: 'answer.option.title.group'
|
|
128
|
+
})
|
|
129
|
+
})
|
|
130
|
+
})]
|
|
131
|
+
});
|
|
107
132
|
};
|
|
108
133
|
/**
|
|
109
134
|
*
|
|
110
135
|
*/
|
|
111
|
-
|
|
112
|
-
return
|
|
136
|
+
var renderAnswerOptionList = function renderAnswerOptionList() {
|
|
137
|
+
return jsxRuntime.jsx(blocks.SortableListGroup, {
|
|
113
138
|
onSortEnd: onSortEnd,
|
|
114
|
-
useDragHandle: true
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
139
|
+
useDragHandle: true,
|
|
140
|
+
children: jsxRuntime.jsx(StyledSortableList, {
|
|
141
|
+
children: watchedOptions === null || watchedOptions === void 0 ? void 0 : watchedOptions.map(function (option, index) {
|
|
142
|
+
return jsxRuntime.jsx(OptionGroupAnswerListItem.default, {
|
|
143
|
+
optionId: index,
|
|
144
|
+
disabled: disabled,
|
|
145
|
+
onRemoveItem: function onRemoveItem() {
|
|
146
|
+
return handleRemoveItem(index);
|
|
147
|
+
}
|
|
148
|
+
}, option.id);
|
|
149
|
+
})
|
|
150
|
+
})
|
|
151
|
+
});
|
|
121
152
|
};
|
|
122
153
|
/**
|
|
123
154
|
*
|
|
124
155
|
*/
|
|
125
|
-
|
|
126
|
-
return
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
156
|
+
var renderAnswerOptionAddButton = function renderAnswerOptionAddButton() {
|
|
157
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
158
|
+
children: [jsxRuntime.jsx(blocks.Tooltip, {
|
|
159
|
+
title: isMaximumOptions ? intl$1.formatMessage({
|
|
160
|
+
id: 'answer.option.tooltip.maxDisabled'
|
|
161
|
+
}) : undefined,
|
|
162
|
+
placement: "top",
|
|
163
|
+
children: jsxRuntime.jsx("span", {
|
|
164
|
+
children: jsxRuntime.jsx(blocks.Button, {
|
|
165
|
+
borderDashed: true,
|
|
166
|
+
block: true,
|
|
167
|
+
transparent: true,
|
|
168
|
+
disabled: isMaximumOptions || disabled,
|
|
169
|
+
icon: jsxRuntime.jsx(blocks.Icon, {
|
|
170
|
+
icon: icons.eilMathsignAddBasic
|
|
171
|
+
}),
|
|
172
|
+
onClick: function onClick() {
|
|
173
|
+
return appendOptionInfoFieldItem({
|
|
174
|
+
id: randomId.createRandomId(),
|
|
175
|
+
title: '',
|
|
176
|
+
content: ''
|
|
177
|
+
});
|
|
178
|
+
},
|
|
179
|
+
children: intl$1.formatMessage({
|
|
180
|
+
id: 'answer.option.addButton'
|
|
181
|
+
})
|
|
182
|
+
})
|
|
183
|
+
})
|
|
184
|
+
}), jsxRuntime.jsx(blocks.Vspace, {
|
|
185
|
+
height: 0.5
|
|
186
|
+
}), jsxRuntime.jsxs(blocks.Flex, {
|
|
187
|
+
column: true,
|
|
188
|
+
children: [jsxRuntime.jsx(blocks.StatusText, {
|
|
189
|
+
role: "description",
|
|
190
|
+
children: intl$1.formatMessage({
|
|
191
|
+
id: 'answer.option.file.description.imageSize'
|
|
192
|
+
})
|
|
193
|
+
}), jsxRuntime.jsx(blocks.StatusText, {
|
|
194
|
+
role: "description",
|
|
195
|
+
children: intl$1.formatMessage({
|
|
196
|
+
id: 'answer.option.file.description.fileSize'
|
|
197
|
+
})
|
|
198
|
+
}), jsxRuntime.jsx(blocks.StatusText, {
|
|
199
|
+
role: "description",
|
|
200
|
+
children: intl$1.formatMessage({
|
|
201
|
+
id: 'answer.option.file.description.extension'
|
|
202
|
+
})
|
|
203
|
+
})]
|
|
204
|
+
})]
|
|
205
|
+
});
|
|
163
206
|
};
|
|
164
207
|
//
|
|
165
208
|
//
|
|
@@ -167,9 +210,10 @@ const OptionGroupAnswerInfo = () => {
|
|
|
167
210
|
if (!checkTwoDimensionArray.checkTwoDimensionArray(watchedAnswerInfo)) {
|
|
168
211
|
return null;
|
|
169
212
|
}
|
|
170
|
-
return
|
|
171
|
-
column: true
|
|
172
|
-
|
|
213
|
+
return jsxRuntime.jsxs(blocks.Flex, {
|
|
214
|
+
column: true,
|
|
215
|
+
children: [renderAnswerTitle(), renderAnswerOptionList(), renderAnswerOptionAddButton()]
|
|
216
|
+
});
|
|
173
217
|
};
|
|
174
218
|
|
|
175
219
|
exports.default = OptionGroupAnswerInfo;
|