eli-video-interview 1.2.40-alpha.3 → 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/Root.js +1 -1
- package/esm/modules/ai-report/components/VideoQuestion/SingleChoice.js +7 -1
- package/lib/modules/ai-question/components/QuestionUpdate/index.js +7 -1
- package/lib/modules/ai-report/Root.js +1 -1
- package/lib/modules/ai-report/components/VideoQuestion/SingleChoice.js +7 -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" })) }))] })));
|
|
@@ -70,7 +70,7 @@ var AiReportRoot = forwardRef(function (props, ref) {
|
|
|
70
70
|
else {
|
|
71
71
|
return (_jsxs(Box, { children: [_jsx(NotFinish, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && _jsx(ScoreReport, { customScore: customScore, onRefreshSuccess: handleRefreshSuccess }), (workplaces === null || workplaces === void 0 ? void 0 : workplaces.length) > 0 && _jsx(WorkPlaces, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && _jsx(AIEvaluate, {}), _jsx(Suggestion, {}), _jsx(VideoQuestion, {})] }));
|
|
72
72
|
}
|
|
73
|
-
}, [handleRefreshSuccess, onSendReminderClick, reminderSent, status, operableButtons, collection, workplaces]);
|
|
73
|
+
}, [handleRefreshSuccess, onSendReminderClick, customScore, reminderSent, status, operableButtons, collection, workplaces]);
|
|
74
74
|
return (_jsx(Box, __assign({ loading: firstLoad.current && loading, sx: { width: '100%', minHeight: '584px', height: '100%', margin: '0 auto', overflow: 'auto' } }, { children: aiReportResult })));
|
|
75
75
|
});
|
|
76
76
|
AiReportRoot.displayName = 'AiReportRoot';
|
|
@@ -19,7 +19,13 @@ var SingleChoice = function (_a) {
|
|
|
19
19
|
width: '100%',
|
|
20
20
|
},
|
|
21
21
|
} }, { children: options.map(function (v, i) {
|
|
22
|
-
return (_jsx(Radio
|
|
22
|
+
return (_jsx(Radio
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
, {
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
FormControlLabelProps: {
|
|
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", 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));
|
|
23
29
|
}) })) }));
|
|
24
30
|
};
|
|
25
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" })) }))] })));
|
|
@@ -75,7 +75,7 @@ var AiReportRoot = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
75
75
|
else {
|
|
76
76
|
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)(NotFinish_1.default, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && (0, jsx_runtime_1.jsx)(ScoreReport_1.default, { customScore: customScore, onRefreshSuccess: handleRefreshSuccess }), (workplaces === null || workplaces === void 0 ? void 0 : workplaces.length) > 0 && (0, jsx_runtime_1.jsx)(WorkPlaces_1.default, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && (0, jsx_runtime_1.jsx)(AIEvaluate_1.default, {}), (0, jsx_runtime_1.jsx)(Suggestion_1.default, {}), (0, jsx_runtime_1.jsx)(VideoQuestion_1.default, {})] }));
|
|
77
77
|
}
|
|
78
|
-
}, [handleRefreshSuccess, onSendReminderClick, reminderSent, status, operableButtons, collection, workplaces]);
|
|
78
|
+
}, [handleRefreshSuccess, onSendReminderClick, customScore, reminderSent, status, operableButtons, collection, workplaces]);
|
|
79
79
|
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ loading: firstLoad.current && loading, sx: { width: '100%', minHeight: '584px', height: '100%', margin: '0 auto', overflow: 'auto' } }, { children: aiReportResult })));
|
|
80
80
|
});
|
|
81
81
|
AiReportRoot.displayName = 'AiReportRoot';
|
|
@@ -21,7 +21,13 @@ var SingleChoice = function (_a) {
|
|
|
21
21
|
width: '100%',
|
|
22
22
|
},
|
|
23
23
|
} }, { children: options.map(function (v, i) {
|
|
24
|
-
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Radio
|
|
24
|
+
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Radio
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
, {
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
FormControlLabelProps: {
|
|
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", 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));
|
|
25
31
|
}) })) }));
|
|
26
32
|
};
|
|
27
33
|
exports.default = SingleChoice;
|