eli-video-interview 1.2.41-alpha.16 → 1.2.41-alpha.17
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-ability/components/AddAbility/index.js +1 -1
- package/esm/modules/ai-report/components/ScoreReport/Failed.js +12 -3
- package/esm/modules/ai-report/components/ScoreReport/index.js +1 -1
- package/esm/modules/ai-report/components/ScoreReport/interface.d.ts +1 -0
- package/lib/modules/ai-ability/components/AddAbility/index.js +1 -1
- package/lib/modules/ai-report/components/ScoreReport/Failed.js +11 -2
- package/lib/modules/ai-report/components/ScoreReport/index.js +1 -1
- package/lib/modules/ai-report/components/ScoreReport/interface.d.ts +1 -0
- package/package.json +1 -1
|
@@ -228,6 +228,6 @@ var AddAbility = function (props) {
|
|
|
228
228
|
}
|
|
229
229
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
230
230
|
}, [open]);
|
|
231
|
-
return (_jsx(Drawer, __assign({ className: "abilityDrawer", title: '新增能力', open: open, footer: footer, onClose: onClose }, { children: _jsx(Form, __assign({}, formik, { children: step === 1 ? (_jsxs(Box, __assign({ style: { width: '556px' } }, { children: [_jsx(Typography, __assign({ variant: "body2", color: "secondary" }, { children: "\u4F7F\u7528\u901A\u7528\u7684\u80FD\u529B\u540D\u79F0\uFF08\u4F8B\u5982\uFF1A\u9886\u5BFC\u529B\u3001\u5E94\u53D8\u80FD\u529B\u7B49\u5E38\u89C1\u8003\u6838\u9879\uFF09\u547D\u540D\u6709\u52A9\u4E8E\u63D0\u9AD8 AI \u8BC4\u4EF7\u53CA\u8BC4\u5206\u51C6\u786E\u6027\u3002" })), _jsx(FormItem, { name: "name", label: "\u80FD\u529B\u540D\u79F0", sx: { height: '48px', width: '100%', marginTop: '16px' }, max: ablilityNameLength })] }))) : (_jsxs(Box, __assign({ style: { width: '556px' } }, { children: [_jsx(Typography, __assign({ variant: "body1", fontWeight: "medium", mb: 2 }, { children: "\u80FD\u529B\u6807\u51C6" })), _jsxs(Typography, __assign({ variant: "body2", color: "secondary", mb: 2 }, { children: ["\u6839\u636E\u60A8\u8F93\u5165\u7684\u80FD\u529B\u540D\u79F0\u300C", _jsx("span", __assign({ style: { color: '#4CAF50', fontWeight: '500' } }, { children: formik.values.name })), "\u300D\uFF0C\u5E2E\u60A8\u81EA\u52A8\u751F\u6210\u5173\u4E8E\u8BE5\u80FD\u529B\u7684\u5B9A\u4E49\u5185\u5BB9\u3001\u4F18\u6B21\u8868\u73B0\u4EE5\u53CA\u8003\u5BDF\u5EFA\u8BAE\u5185\u5BB9\uFF0C\u786E\u5B9A\u540E\u5C06\u4F1A\u6309\u7167\u8BE5\u6807\u51C6\u751F\u6210AI\u62A5\u544A\u3002"] })), _jsx(FieldArray, __assign({ name: "workPlaceItems" }, { children: function () { return (_jsx(Stack, { children: formik.values.workPlaceItems.map(function (item, index) { return (_jsx(Stack, { children: _jsx(AbilityFormItem, { token: token, name: formik.values.name, title: item.name, type: item.type, items: item.items, mode: "edit", index: index, item: item, maxTextLength: item.type === 4 || item.type === 5 ? 300 :
|
|
231
|
+
return (_jsx(Drawer, __assign({ className: "abilityDrawer", title: '新增能力', open: open, footer: footer, onClose: onClose }, { children: _jsx(Form, __assign({}, formik, { children: step === 1 ? (_jsxs(Box, __assign({ style: { width: '556px' } }, { children: [_jsx(Typography, __assign({ variant: "body2", color: "secondary" }, { children: "\u4F7F\u7528\u901A\u7528\u7684\u80FD\u529B\u540D\u79F0\uFF08\u4F8B\u5982\uFF1A\u9886\u5BFC\u529B\u3001\u5E94\u53D8\u80FD\u529B\u7B49\u5E38\u89C1\u8003\u6838\u9879\uFF09\u547D\u540D\u6709\u52A9\u4E8E\u63D0\u9AD8 AI \u8BC4\u4EF7\u53CA\u8BC4\u5206\u51C6\u786E\u6027\u3002" })), _jsx(FormItem, { name: "name", label: "\u80FD\u529B\u540D\u79F0", sx: { height: '48px', width: '100%', marginTop: '16px' }, max: ablilityNameLength })] }))) : (_jsxs(Box, __assign({ style: { width: '556px' } }, { children: [_jsx(Typography, __assign({ variant: "body1", fontWeight: "medium", mb: 2 }, { children: "\u80FD\u529B\u6807\u51C6" })), _jsxs(Typography, __assign({ variant: "body2", color: "secondary", mb: 2 }, { children: ["\u6839\u636E\u60A8\u8F93\u5165\u7684\u80FD\u529B\u540D\u79F0\u300C", _jsx("span", __assign({ style: { color: '#4CAF50', fontWeight: '500' } }, { children: formik.values.name })), "\u300D\uFF0C\u5E2E\u60A8\u81EA\u52A8\u751F\u6210\u5173\u4E8E\u8BE5\u80FD\u529B\u7684\u5B9A\u4E49\u5185\u5BB9\u3001\u4F18\u6B21\u8868\u73B0\u4EE5\u53CA\u8003\u5BDF\u5EFA\u8BAE\u5185\u5BB9\uFF0C\u786E\u5B9A\u540E\u5C06\u4F1A\u6309\u7167\u8BE5\u6807\u51C6\u751F\u6210AI\u62A5\u544A\u3002"] })), _jsx(FieldArray, __assign({ name: "workPlaceItems" }, { children: function () { return (_jsx(Stack, { children: formik.values.workPlaceItems.map(function (item, index) { return (_jsx(Stack, { children: _jsx(AbilityFormItem, { token: token, name: formik.values.name, title: item.name, type: item.type, items: item.items, mode: "edit", index: index, item: item, maxTextLength: item.type === 4 || item.type === 5 ? 300 : 100, canReplace: true, onChange: handleValue }, item.type) }, index)); }) })); } }))] }))) })) })));
|
|
232
232
|
};
|
|
233
233
|
export default AddAbility;
|
|
@@ -10,12 +10,14 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { BackgroundImage } from "../../../../enum/ai-report";
|
|
13
|
+
import { BackgroundImage, Colors, SwitchTitle } from "../../../../enum/ai-report";
|
|
14
14
|
import { INTERVIEW_STATUS } from "../../../../enum/ai-report";
|
|
15
|
+
import { SwitchIcon } from 'fbm-icons';
|
|
15
16
|
import { Box, Button, CancelIcon, RefreshIcon, Typography } from 'fbm-ui';
|
|
17
|
+
import { Stack } from 'fbm-ui/lib/mui';
|
|
16
18
|
var FAILED = INTERVIEW_STATUS.FAILED;
|
|
17
19
|
var Failed = function (_a) {
|
|
18
|
-
var loading = _a.loading, status = _a.status, onRefresh = _a.onRefresh, _b = _a.model, model = _b === void 0 ? 'standard' : _b;
|
|
20
|
+
var loading = _a.loading, status = _a.status, onRefresh = _a.onRefresh, _b = _a.model, model = _b === void 0 ? 'standard' : _b, onSwitchReportModel = _a.onSwitchReportModel;
|
|
19
21
|
return (_jsxs(Box, __assign({ loading: loading, display: "flex", alignItems: "center", padding: "32px 24px", sx: {
|
|
20
22
|
px: 3,
|
|
21
23
|
height: 280,
|
|
@@ -24,6 +26,13 @@ var Failed = function (_a) {
|
|
|
24
26
|
color: '#ff6c6c',
|
|
25
27
|
width: '24px',
|
|
26
28
|
height: '24px',
|
|
27
|
-
} })), _jsx(Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: status === FAILED ? '报告计算失败,请手动' : '报告正在计算中,请稍后查看或手动' })), _jsx(Button, __assign({ variant: "text", endIcon: _jsx(RefreshIcon, {}), size: "small", style: { color: '#576B95', padding: '0px 4px' }, onClick: onRefresh }, { children: "\u5237\u65B0\u62A5\u544A" }))] })
|
|
29
|
+
} })), _jsx(Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: status === FAILED ? '报告计算失败,请手动' : '报告正在计算中,请稍后查看或手动' })), _jsx(Button, __assign({ variant: "text", endIcon: _jsx(RefreshIcon, {}), size: "small", style: { color: '#576B95', padding: '0px 4px' }, onClick: onRefresh }, { children: "\u5237\u65B0\u62A5\u544A" })), model === 'pro' && (_jsx(Stack, __assign({ direction: "row", py: 2, justifyContent: "flex-end", spacing: 1, alignContent: "center", color: Colors[model] }, { children: _jsx(Button, __assign({ variant: "outlined", size: "small", loading: loading, icon: _jsx(SwitchIcon, {}), sx: {
|
|
30
|
+
ml: 1,
|
|
31
|
+
color: 'inherit',
|
|
32
|
+
borderColor: 'inherit',
|
|
33
|
+
'&:hover': {
|
|
34
|
+
borderColor: 'inherit',
|
|
35
|
+
},
|
|
36
|
+
}, onClick: onSwitchReportModel }, { children: SwitchTitle[model] })) })))] })));
|
|
28
37
|
};
|
|
29
38
|
export default Failed;
|
|
@@ -30,7 +30,7 @@ var ScoreReport = function (_a) {
|
|
|
30
30
|
},
|
|
31
31
|
}), run = _e.run, loading = _e.loading;
|
|
32
32
|
if ([FAILED, IN_CALCULATION].includes(status)) {
|
|
33
|
-
return (_jsx(Box, __assign({ id: "report-score" }, { children: _jsx(Failed, { status: status, loading: loading, onRefresh: run }) })));
|
|
33
|
+
return (_jsx(Box, __assign({ id: "report-score" }, { children: _jsx(Failed, { status: status, loading: loading, onRefresh: run, model: model, onSwitchReportModel: onSwitchReportModel }) })));
|
|
34
34
|
}
|
|
35
35
|
else {
|
|
36
36
|
return (_jsx(Box, { children: _jsx(Score, { model: model, customScore: customScore, loading: loading, onRefresh: run, onSwitchReportModel: onSwitchReportModel }) }));
|
|
@@ -256,6 +256,6 @@ var AddAbility = function (props) {
|
|
|
256
256
|
}
|
|
257
257
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
258
258
|
}, [open]);
|
|
259
|
-
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Drawer, __assign({ className: "abilityDrawer", title: '新增能力', open: open, footer: footer, onClose: onClose }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Form, __assign({}, formik, { children: step === 1 ? ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ style: { width: '556px' } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary" }, { children: "\u4F7F\u7528\u901A\u7528\u7684\u80FD\u529B\u540D\u79F0\uFF08\u4F8B\u5982\uFF1A\u9886\u5BFC\u529B\u3001\u5E94\u53D8\u80FD\u529B\u7B49\u5E38\u89C1\u8003\u6838\u9879\uFF09\u547D\u540D\u6709\u52A9\u4E8E\u63D0\u9AD8 AI \u8BC4\u4EF7\u53CA\u8BC4\u5206\u51C6\u786E\u6027\u3002" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.FormItem, { name: "name", label: "\u80FD\u529B\u540D\u79F0", sx: { height: '48px', width: '100%', marginTop: '16px' }, max: ablilityNameLength })] }))) : ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ style: { width: '556px' } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", fontWeight: "medium", mb: 2 }, { children: "\u80FD\u529B\u6807\u51C6" })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary", mb: 2 }, { children: ["\u6839\u636E\u60A8\u8F93\u5165\u7684\u80FD\u529B\u540D\u79F0\u300C", (0, jsx_runtime_1.jsx)("span", __assign({ style: { color: '#4CAF50', fontWeight: '500' } }, { children: formik.values.name })), "\u300D\uFF0C\u5E2E\u60A8\u81EA\u52A8\u751F\u6210\u5173\u4E8E\u8BE5\u80FD\u529B\u7684\u5B9A\u4E49\u5185\u5BB9\u3001\u4F18\u6B21\u8868\u73B0\u4EE5\u53CA\u8003\u5BDF\u5EFA\u8BAE\u5185\u5BB9\uFF0C\u786E\u5B9A\u540E\u5C06\u4F1A\u6309\u7167\u8BE5\u6807\u51C6\u751F\u6210AI\u62A5\u544A\u3002"] })), (0, jsx_runtime_1.jsx)(formik_1.FieldArray, __assign({ name: "workPlaceItems" }, { children: function () { return ((0, jsx_runtime_1.jsx)(mui_1.Stack, { children: formik.values.workPlaceItems.map(function (item, index) { return ((0, jsx_runtime_1.jsx)(mui_1.Stack, { children: (0, jsx_runtime_1.jsx)(AbilityFormItem_1.default, { token: token, name: formik.values.name, title: item.name, type: item.type, items: item.items, mode: "edit", index: index, item: item, maxTextLength: item.type === 4 || item.type === 5 ? 300 :
|
|
259
|
+
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Drawer, __assign({ className: "abilityDrawer", title: '新增能力', open: open, footer: footer, onClose: onClose }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Form, __assign({}, formik, { children: step === 1 ? ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ style: { width: '556px' } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary" }, { children: "\u4F7F\u7528\u901A\u7528\u7684\u80FD\u529B\u540D\u79F0\uFF08\u4F8B\u5982\uFF1A\u9886\u5BFC\u529B\u3001\u5E94\u53D8\u80FD\u529B\u7B49\u5E38\u89C1\u8003\u6838\u9879\uFF09\u547D\u540D\u6709\u52A9\u4E8E\u63D0\u9AD8 AI \u8BC4\u4EF7\u53CA\u8BC4\u5206\u51C6\u786E\u6027\u3002" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.FormItem, { name: "name", label: "\u80FD\u529B\u540D\u79F0", sx: { height: '48px', width: '100%', marginTop: '16px' }, max: ablilityNameLength })] }))) : ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ style: { width: '556px' } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", fontWeight: "medium", mb: 2 }, { children: "\u80FD\u529B\u6807\u51C6" })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary", mb: 2 }, { children: ["\u6839\u636E\u60A8\u8F93\u5165\u7684\u80FD\u529B\u540D\u79F0\u300C", (0, jsx_runtime_1.jsx)("span", __assign({ style: { color: '#4CAF50', fontWeight: '500' } }, { children: formik.values.name })), "\u300D\uFF0C\u5E2E\u60A8\u81EA\u52A8\u751F\u6210\u5173\u4E8E\u8BE5\u80FD\u529B\u7684\u5B9A\u4E49\u5185\u5BB9\u3001\u4F18\u6B21\u8868\u73B0\u4EE5\u53CA\u8003\u5BDF\u5EFA\u8BAE\u5185\u5BB9\uFF0C\u786E\u5B9A\u540E\u5C06\u4F1A\u6309\u7167\u8BE5\u6807\u51C6\u751F\u6210AI\u62A5\u544A\u3002"] })), (0, jsx_runtime_1.jsx)(formik_1.FieldArray, __assign({ name: "workPlaceItems" }, { children: function () { return ((0, jsx_runtime_1.jsx)(mui_1.Stack, { children: formik.values.workPlaceItems.map(function (item, index) { return ((0, jsx_runtime_1.jsx)(mui_1.Stack, { children: (0, jsx_runtime_1.jsx)(AbilityFormItem_1.default, { token: token, name: formik.values.name, title: item.name, type: item.type, items: item.items, mode: "edit", index: index, item: item, maxTextLength: item.type === 4 || item.type === 5 ? 300 : 100, canReplace: true, onChange: handleValue }, item.type) }, index)); }) })); } }))] }))) })) })));
|
|
260
260
|
};
|
|
261
261
|
exports.default = AddAbility;
|
|
@@ -14,10 +14,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
15
|
var ai_report_1 = require("../../../../enum/ai-report");
|
|
16
16
|
var ai_report_2 = require("../../../../enum/ai-report");
|
|
17
|
+
var fbm_icons_1 = require("fbm-icons");
|
|
17
18
|
var fbm_ui_1 = require("fbm-ui");
|
|
19
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
18
20
|
var FAILED = ai_report_2.INTERVIEW_STATUS.FAILED;
|
|
19
21
|
var Failed = function (_a) {
|
|
20
|
-
var loading = _a.loading, status = _a.status, onRefresh = _a.onRefresh, _b = _a.model, model = _b === void 0 ? 'standard' : _b;
|
|
22
|
+
var loading = _a.loading, status = _a.status, onRefresh = _a.onRefresh, _b = _a.model, model = _b === void 0 ? 'standard' : _b, onSwitchReportModel = _a.onSwitchReportModel;
|
|
21
23
|
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ loading: loading, display: "flex", alignItems: "center", padding: "32px 24px", sx: {
|
|
22
24
|
px: 3,
|
|
23
25
|
height: 280,
|
|
@@ -26,6 +28,13 @@ var Failed = function (_a) {
|
|
|
26
28
|
color: '#ff6c6c',
|
|
27
29
|
width: '24px',
|
|
28
30
|
height: '24px',
|
|
29
|
-
} })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: status === FAILED ? '报告计算失败,请手动' : '报告正在计算中,请稍后查看或手动' })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "text", endIcon: (0, jsx_runtime_1.jsx)(fbm_ui_1.RefreshIcon, {}), size: "small", style: { color: '#576B95', padding: '0px 4px' }, onClick: onRefresh }, { children: "\u5237\u65B0\u62A5\u544A" }))] })))
|
|
31
|
+
} })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: status === FAILED ? '报告计算失败,请手动' : '报告正在计算中,请稍后查看或手动' })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "text", endIcon: (0, jsx_runtime_1.jsx)(fbm_ui_1.RefreshIcon, {}), size: "small", style: { color: '#576B95', padding: '0px 4px' }, onClick: onRefresh }, { children: "\u5237\u65B0\u62A5\u544A" })), model === 'pro' && ((0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row", py: 2, justifyContent: "flex-end", spacing: 1, alignContent: "center", color: ai_report_1.Colors[model] }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", size: "small", loading: loading, icon: (0, jsx_runtime_1.jsx)(fbm_icons_1.SwitchIcon, {}), sx: {
|
|
32
|
+
ml: 1,
|
|
33
|
+
color: 'inherit',
|
|
34
|
+
borderColor: 'inherit',
|
|
35
|
+
'&:hover': {
|
|
36
|
+
borderColor: 'inherit',
|
|
37
|
+
},
|
|
38
|
+
}, onClick: onSwitchReportModel }, { children: ai_report_1.SwitchTitle[model] })) })))] })));
|
|
30
39
|
};
|
|
31
40
|
exports.default = Failed;
|
|
@@ -35,7 +35,7 @@ var ScoreReport = function (_a) {
|
|
|
35
35
|
},
|
|
36
36
|
}), run = _e.run, loading = _e.loading;
|
|
37
37
|
if ([FAILED, IN_CALCULATION].includes(status)) {
|
|
38
|
-
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ id: "report-score" }, { children: (0, jsx_runtime_1.jsx)(Failed_1.default, { status: status, loading: loading, onRefresh: run }) })));
|
|
38
|
+
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ id: "report-score" }, { children: (0, jsx_runtime_1.jsx)(Failed_1.default, { status: status, loading: loading, onRefresh: run, model: model, onSwitchReportModel: onSwitchReportModel }) })));
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
41
41
|
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, { children: (0, jsx_runtime_1.jsx)(Score_1.default, { model: model, customScore: customScore, loading: loading, onRefresh: run, onSwitchReportModel: onSwitchReportModel }) }));
|