eli-video-interview 1.2.40-alpha.4 → 1.2.40-alpha.5
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/esm/modules/ai-question/components/QuestionUpdate/index.js +7 -1
- package/esm/modules/ai-report/components/VideoQuestion/SingleChoice.js +1 -1
- package/lib/modules/ai-question/components/QuestionUpdate/index.js +7 -1
- package/lib/modules/ai-report/components/VideoQuestion/SingleChoice.js +1 -1
- package/package.json +1 -1
|
@@ -60,6 +60,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
60
60
|
import { defaultQuestionParams } from './const';
|
|
61
61
|
import Form from './Form';
|
|
62
62
|
import { ADD_QUESTION_TYPE_SHOW_LIST, QUESTION_TYPE_TITLE_MAP } from "../../../../constants/ai-question";
|
|
63
|
+
import { ADD_QUESTION_TYPE, QUESTION_TYPE } from "../../../../enum/ai-question";
|
|
63
64
|
import { useQuestionCollectionListStore } from "../../../../store/ai-ability/question-ability-store";
|
|
64
65
|
import ScrollDialogContent from "../../../../components/ScrollDialogContent";
|
|
65
66
|
import { useAiAnalysisStore } from "../../../../store/ai-question/ai-analysis-store";
|
|
@@ -99,7 +100,12 @@ var QuestionUpdate = function () {
|
|
|
99
100
|
var _a;
|
|
100
101
|
setSwitchTypeOpen(false);
|
|
101
102
|
(_a = formRef === null || formRef === void 0 ? void 0 : formRef.current) === null || _a === void 0 ? void 0 : _a.setFormValues({ broadcastType: defaultQuestionParams.broadcastType });
|
|
102
|
-
|
|
103
|
+
if (type === ADD_QUESTION_TYPE.SINGLECHIOCE) {
|
|
104
|
+
updateQuestionState({ aiShowType: type, item: __assign(__assign({}, item), { type: QUESTION_TYPE.SINGLECHIOCE }) });
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
updateQuestionState({ aiShowType: type });
|
|
108
|
+
}
|
|
103
109
|
} }, { children: _jsx(Typography, __assign({ variant: "body2" }, { children: title })) }), "question_type_".concat(type)));
|
|
104
110
|
});
|
|
105
111
|
return (_jsxs(Box, __assign({ display: "flex", alignItems: "center", height: 56 }, { children: [_jsx(Typography, __assign({ ml: 3, variant: "subtitle1" }, { children: QUESTION_TYPE_TITLE_MAP[aiShowType] })), _jsx(Popover, __assign({ open: switchTypeOpen, content: content, onClickAway: function () { return setSwitchTypeOpen(false); } }, { children: _jsx(Button, __assign({ variant: "text", size: "small", sx: { fontSize: 12, color: 'rgb(87, 107, 149)' }, onClick: function () { return setSwitchTypeOpen(true); } }, { children: "\u5207\u6362\u9898\u578B" })) }))] })));
|
|
@@ -25,7 +25,7 @@ var SingleChoice = function (_a) {
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
FormControlLabelProps: {
|
|
27
27
|
sx: { pointerEvents: 'none' },
|
|
28
|
-
}, value: i, label: _jsxs(Stack, __assign({ color: "".concat(i === selected[0] ? '#4caf50' : 'rgba(0,0,0,.56)'), fontWeight: "".concat(i === selected[0] ? 'medium' : 'normal'), width: "100%", direction: "row", spacing: 1, alignItems: "center", justifyContent: "space-between" }, { children: [_jsx(Typography, __assign({ color: "inherit", fontWeight: "inherit", variant: "caption" }, { children: v.content })), _jsxs(Typography, __assign({ color: "inherit", fontWeight: "inherit", variant: "caption" }, { children: [v.score, "\u5206"] }))] })) }, i));
|
|
28
|
+
}, value: i, label: _jsxs(Stack, __assign({ color: "".concat(i === selected[0] ? '#4caf50' : 'rgba(0,0,0,.56)'), fontWeight: "".concat(i === selected[0] ? 'medium' : 'normal'), width: "100%", direction: "row", spacing: 1, alignItems: "center", justifyContent: "space-between" }, { children: [_jsx(Typography, __assign({ color: "inherit", fontWeight: "inherit", variant: "caption", flexWrap: "wrap", sx: { wordBreak: 'break-all' } }, { children: v.content })), _jsxs(Typography, __assign({ color: "inherit", fontWeight: "inherit", variant: "caption", flexShrink: 0 }, { children: [v.score, "\u5206"] }))] })) }, i));
|
|
29
29
|
}) })) }));
|
|
30
30
|
};
|
|
31
31
|
export default SingleChoice;
|
|
@@ -65,6 +65,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
65
65
|
var const_1 = require("./const");
|
|
66
66
|
var Form_1 = __importDefault(require("./Form"));
|
|
67
67
|
var ai_question_1 = require("../../../../constants/ai-question");
|
|
68
|
+
var ai_question_2 = require("../../../../enum/ai-question");
|
|
68
69
|
var question_ability_store_1 = require("../../../../store/ai-ability/question-ability-store");
|
|
69
70
|
var ScrollDialogContent_1 = __importDefault(require("../../../../components/ScrollDialogContent"));
|
|
70
71
|
var ai_analysis_store_1 = require("../../../../store/ai-question/ai-analysis-store");
|
|
@@ -104,7 +105,12 @@ var QuestionUpdate = function () {
|
|
|
104
105
|
var _a;
|
|
105
106
|
setSwitchTypeOpen(false);
|
|
106
107
|
(_a = formRef === null || formRef === void 0 ? void 0 : formRef.current) === null || _a === void 0 ? void 0 : _a.setFormValues({ broadcastType: const_1.defaultQuestionParams.broadcastType });
|
|
107
|
-
|
|
108
|
+
if (type === ai_question_2.ADD_QUESTION_TYPE.SINGLECHIOCE) {
|
|
109
|
+
updateQuestionState({ aiShowType: type, item: __assign(__assign({}, item), { type: ai_question_2.QUESTION_TYPE.SINGLECHIOCE }) });
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
updateQuestionState({ aiShowType: type });
|
|
113
|
+
}
|
|
108
114
|
} }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: title })) }), "question_type_".concat(type)));
|
|
109
115
|
});
|
|
110
116
|
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", height: 56 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ ml: 3, variant: "subtitle1" }, { children: ai_question_1.QUESTION_TYPE_TITLE_MAP[aiShowType] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Popover, __assign({ open: switchTypeOpen, content: content, onClickAway: function () { return setSwitchTypeOpen(false); } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "text", size: "small", sx: { fontSize: 12, color: 'rgb(87, 107, 149)' }, onClick: function () { return setSwitchTypeOpen(true); } }, { children: "\u5207\u6362\u9898\u578B" })) }))] })));
|
|
@@ -27,7 +27,7 @@ var SingleChoice = function (_a) {
|
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
FormControlLabelProps: {
|
|
29
29
|
sx: { pointerEvents: 'none' },
|
|
30
|
-
}, value: i, label: (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ color: "".concat(i === selected[0] ? '#4caf50' : 'rgba(0,0,0,.56)'), fontWeight: "".concat(i === selected[0] ? 'medium' : 'normal'), width: "100%", direction: "row", spacing: 1, alignItems: "center", justifyContent: "space-between" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ color: "inherit", fontWeight: "inherit", variant: "caption" }, { children: v.content })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ color: "inherit", fontWeight: "inherit", variant: "caption" }, { children: [v.score, "\u5206"] }))] })) }, i));
|
|
30
|
+
}, value: i, label: (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ color: "".concat(i === selected[0] ? '#4caf50' : 'rgba(0,0,0,.56)'), fontWeight: "".concat(i === selected[0] ? 'medium' : 'normal'), width: "100%", direction: "row", spacing: 1, alignItems: "center", justifyContent: "space-between" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ color: "inherit", fontWeight: "inherit", variant: "caption", flexWrap: "wrap", sx: { wordBreak: 'break-all' } }, { children: v.content })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ color: "inherit", fontWeight: "inherit", variant: "caption", flexShrink: 0 }, { children: [v.score, "\u5206"] }))] })) }, i));
|
|
31
31
|
}) })) }));
|
|
32
32
|
};
|
|
33
33
|
exports.default = SingleChoice;
|