eli-video-interview 1.2.42-alpha.24 → 1.2.42-alpha.26
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/assets/icons/AI.svg +1 -1
- package/esm/components/AiHeaderTitle/index.js +3 -12
- package/esm/components/AiHeaderTitleV2/index.d.ts +4 -0
- package/esm/components/AiHeaderTitleV2/index.js +28 -0
- package/esm/components/AiHeaderTitleV2/interface.d.ts +4 -0
- package/esm/components/AiHeaderTitleV2/interface.js +1 -0
- package/esm/components/Charts/ReportPie.js +12 -2
- package/esm/modules/ai-report-v2/components/AIEvaluate/Evaluate.js +1 -1
- package/esm/modules/ai-report-v2/components/AIEvaluate/Graph.d.ts +12 -0
- package/esm/modules/ai-report-v2/components/AIEvaluate/Graph.js +1 -1
- package/esm/modules/ai-report-v2/components/Suggestion/index.js +1 -1
- package/esm/modules/ai-report-v2/components/VideoQuestion/index.js +1 -1
- package/esm/modules/ai-report-v2/components/WorkPlaces/index.js +1 -1
- package/lib/assets/icons/AI.svg +1 -1
- package/lib/components/AiHeaderTitle/index.js +6 -12
- package/lib/components/AiHeaderTitleV2/index.d.ts +4 -0
- package/lib/components/AiHeaderTitleV2/index.js +30 -0
- package/lib/components/AiHeaderTitleV2/interface.d.ts +4 -0
- package/lib/components/AiHeaderTitleV2/interface.js +2 -0
- package/lib/components/Charts/ReportPie.js +12 -2
- package/lib/modules/ai-report-v2/components/AIEvaluate/Evaluate.js +1 -1
- package/lib/modules/ai-report-v2/components/AIEvaluate/Graph.d.ts +12 -0
- package/lib/modules/ai-report-v2/components/AIEvaluate/Graph.js +2 -0
- package/lib/modules/ai-report-v2/components/Suggestion/index.js +2 -2
- package/lib/modules/ai-report-v2/components/VideoQuestion/index.js +2 -2
- package/lib/modules/ai-report-v2/components/WorkPlaces/index.js +2 -2
- package/package.json +1 -1
package/esm/assets/icons/AI.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><defs><linearGradient id="a" x1="36.62%" x2="71.052%" y1="76.01%" y2="4.425%"><stop offset="0%" stop-color="#00B768"/><stop offset="39%" stop-color="#00AF62"/><stop offset="100%" stop-color="#009953"/><stop offset="100%" stop-color="#009953"/></linearGradient></defs><g fill="none" transform="translate(3 7.16)"><rect width="3.109" height="8.176" x="18.116" y="4.824" fill="#00D97C" rx="1.554"/><path fill="#00D97C" d="M21.4330891 1.95993177 21.4367129 1.93267091C21.4403366 1.90483003 21.4433564 1.87466908 21.4457722 1.84798824L21.4457722 1.82072738C21.4457722 1.78476624 21.4500001 1.74822509 21.4500001 1.71168394L21.4500001 1.71168394C21.4502442 1.01957447 21.0163106.395484118 20.3505677.130462712 19.6848249-.134558695 18.9184003.0116886167 18.4087228.50100097 17.8990452.990313327 17.7465029 1.72631363 18.0222352 2.36576189 18.2979675 3.00521015 18.947665 3.42215785 19.6683358 3.42215789L19.6683358 3.42215789 19.6683358 4.1645813C19.8960264 4.05611788 21.1945274 3.17855021 21.4167824 2.03997429 21.4236272 2.01329345 21.4290628 1.98661261 21.4330891 1.95993177ZM15.4605889 10.719948 9.60706759.98260094C9.24145617.374932483 8.56614784.000646522375 7.83536873.000646522375 7.10458966.000646522375 6.42928134.374932483 6.06366994.98260094L5.39026133 2.1037763 5.39026133 2.1037763 4.64920987 3.33515515C4.92547127 2.86174873 5.4452855 2.56740188 6.01035444 2.56440169 6.57542336 2.5614015 7.09859463 2.8502107 7.3802895 3.32065469L7.3802895 3.32065469 12.7367568 12.2303157C13.0172603 12.6974945 13.5359784 12.9854694 14.0975151 12.9857635 14.6590517 12.9860566 15.178096 12.6986244 15.4591292 12.2317392 15.7401622 11.7648541 15.7404885 11.1894469 15.4599849 10.7222681L15.4605889 10.719948Z"/><path fill="url(#a)" d="M7.37968551,3.32065469 C7.09841787,2.85095068 6.57638695,2.56226386 6.01219476,2.56439864 C5.44800258,2.56658124 4.92838341,2.85925359 4.65102173,3.33109501 L1.83840835,8.01126263 C1.83808295,8.0127936 1.83808295,8.01437187 1.83840835,8.01590276 L0.210148599,10.719948 C-0.0703549557,11.1871269 -0.0700287417,11.762534 0.21100436,12.2294192 C0.49203746,12.6963044 1.01108183,12.9837366 1.57261848,12.9834434 C2.13415513,12.9831493 2.65287327,12.6951745 2.9333768,12.2279956 L7.83506677,4.07409845 L7.38089343,3.32007467 L7.37968551,3.32065469 Z"/></g></svg>
|
|
@@ -10,19 +10,10 @@ 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
|
|
14
|
-
import {
|
|
13
|
+
import SvgIcon from "../SvgIcon";
|
|
14
|
+
import { Box, Typography } from 'fbm-ui';
|
|
15
15
|
var AiHeaderTitle = function (_a) {
|
|
16
16
|
var name = _a.name;
|
|
17
|
-
return (_jsxs(
|
|
18
|
-
pl: 3,
|
|
19
|
-
height: 40,
|
|
20
|
-
color: '#009D56',
|
|
21
|
-
background: 'url(//webcdn.fbmms.cn/assets/yt-b/yf2BqqIlr8Xtb8N2o44t1) no-repeat center center',
|
|
22
|
-
backgroundSize: 'contain',
|
|
23
|
-
width: 24 + (56 / 4) * name.length + 84,
|
|
24
|
-
dispoly: 'flex',
|
|
25
|
-
alignItems: 'center',
|
|
26
|
-
} }, { children: [_jsx("img", { src: "//webcdn.fbmms.cn/assets/7Vj-/P5j2FTojTq7M3W7clK6tX", alt: "", style: { width: 32, height: 20 } }), _jsx(DinTypography, __assign({ variant: "h6", color: "inherit" }, { children: name }))] })));
|
|
17
|
+
return (_jsxs(Box, __assign({ display: "inline-flex" }, { children: [_jsx(SvgIcon, { name: "AI" }), _jsx(Typography, __assign({ variant: "h6", fontWeight: "medium", sx: { fontWeight: 500 }, ml: 1 }, { children: name }))] })));
|
|
27
18
|
};
|
|
28
19
|
export default AiHeaderTitle;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { DinTypography } from "../../modules/ai-report-v2/components/styled";
|
|
14
|
+
import { Stack } from 'fbm-ui/lib/mui';
|
|
15
|
+
var AiHeaderTitle = function (_a) {
|
|
16
|
+
var name = _a.name;
|
|
17
|
+
return (_jsxs(Stack, __assign({ display: "inline-flex", direction: "row", spacing: 1, sx: {
|
|
18
|
+
pl: 3,
|
|
19
|
+
height: 40,
|
|
20
|
+
color: '#009D56',
|
|
21
|
+
background: 'url(//webcdn.fbmms.cn/assets/yt-b/yf2BqqIlr8Xtb8N2o44t1) no-repeat center center',
|
|
22
|
+
backgroundSize: 'contain',
|
|
23
|
+
width: 24 + (56 / 4) * name.length + 84,
|
|
24
|
+
dispoly: 'flex',
|
|
25
|
+
alignItems: 'center',
|
|
26
|
+
} }, { children: [_jsx("img", { src: "//webcdn.fbmms.cn/assets/7Vj-/P5j2FTojTq7M3W7clK6tX", alt: "", style: { width: 32, height: 20 } }), _jsx(DinTypography, __assign({ variant: "h6", color: "inherit" }, { children: name }))] })));
|
|
27
|
+
};
|
|
28
|
+
export default AiHeaderTitle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -50,6 +50,16 @@ var formateTitle = function (originalTitle) {
|
|
|
50
50
|
var _a = __read(originalTitle.match(regex), 2), no = _a[1];
|
|
51
51
|
return "\u7B2C".concat(no, "\u9898");
|
|
52
52
|
};
|
|
53
|
+
var getLevel = function (score) {
|
|
54
|
+
switch (true) {
|
|
55
|
+
case score >= 80:
|
|
56
|
+
return 3;
|
|
57
|
+
case score >= 60:
|
|
58
|
+
return 2;
|
|
59
|
+
default:
|
|
60
|
+
return 1;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
53
63
|
var ReportPie = function (props) {
|
|
54
64
|
var id = props.id, _a = props.source, source = _a === void 0 ? [] : _a;
|
|
55
65
|
var scores = source.map(function (_a) {
|
|
@@ -132,8 +142,8 @@ var ReportPie = function (props) {
|
|
|
132
142
|
itemStyle: {
|
|
133
143
|
color: function (_a) {
|
|
134
144
|
var _b;
|
|
135
|
-
var
|
|
136
|
-
return (_b = levelMapping[
|
|
145
|
+
var avgScore = _a.data.avgScore;
|
|
146
|
+
return (_b = levelMapping[getLevel(avgScore)]) === null || _b === void 0 ? void 0 : _b.itemColor;
|
|
137
147
|
},
|
|
138
148
|
shadowBlur: 4,
|
|
139
149
|
shadowColor: 'rgba(0, 0, 0, 0.16)',
|
|
@@ -31,7 +31,7 @@ import { Button, confirm, EditIcon, FormItem, IconButton, Typography } from 'fbm
|
|
|
31
31
|
import { Box, Stack } from 'fbm-ui/lib/mui';
|
|
32
32
|
import { useCallback, useEffect, useState } from 'react';
|
|
33
33
|
var Evaluate = function (_a) {
|
|
34
|
-
var title = _a.title, evaluations = _a.evaluations, token = _a.token, field = _a.field, _b = _a.mode, mode = _b === void 0 ? 'show' : _b, _c = _a.canEdit, canEdit = _c === void 0 ? '
|
|
34
|
+
var title = _a.title, evaluations = _a.evaluations, token = _a.token, field = _a.field, _b = _a.mode, mode = _b === void 0 ? 'show' : _b, _c = _a.canEdit, canEdit = _c === void 0 ? 'false' : _c;
|
|
35
35
|
var _d = __read(useState(evaluations), 2), content = _d[0], setContent = _d[1];
|
|
36
36
|
var _e = __read(useState('show'), 2), internalMode = _e[0], setInternalMode = _e[1];
|
|
37
37
|
var handleChange = useCallback(function (e) {
|
|
@@ -3,6 +3,18 @@ interface Dimension {
|
|
|
3
3
|
name: string;
|
|
4
4
|
score: number;
|
|
5
5
|
}
|
|
6
|
+
export declare function getLevel(score: any): {
|
|
7
|
+
label: string;
|
|
8
|
+
width: number;
|
|
9
|
+
fontColor: string;
|
|
10
|
+
color: number[];
|
|
11
|
+
gradient: string[];
|
|
12
|
+
scoreGradient: string[];
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
shadowColor: string;
|
|
15
|
+
endScore: number;
|
|
16
|
+
pointColor: string[];
|
|
17
|
+
};
|
|
6
18
|
interface GraphProps {
|
|
7
19
|
items: Array<Dimension>;
|
|
8
20
|
}
|
|
@@ -12,7 +12,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import Suggestion from './Suggestion';
|
|
14
14
|
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
15
|
-
import AiHeaderTitle from "../../../../components/
|
|
15
|
+
import AiHeaderTitle from "../../../../components/AiHeaderTitleV2";
|
|
16
16
|
import { Typography } from 'fbm-ui';
|
|
17
17
|
import { Box, Collapse, Stack } from 'fbm-ui/lib/mui';
|
|
18
18
|
var Index = function () {
|
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import QuestionItem from './QuestionItem';
|
|
14
|
-
import AiHeaderTitle from "../../../../components/
|
|
14
|
+
import AiHeaderTitle from "../../../../components/AiHeaderTitleV2";
|
|
15
15
|
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
16
16
|
import { Box, Empty } from 'fbm-ui';
|
|
17
17
|
import { memo } from 'react';
|
|
@@ -13,7 +13,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
import ScoreSlider from './ScoreSlider';
|
|
14
14
|
import WorkPlace from './WorkPlace';
|
|
15
15
|
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
16
|
-
import AiHeaderTitle from "../../../../components/
|
|
16
|
+
import AiHeaderTitle from "../../../../components/AiHeaderTitleV2";
|
|
17
17
|
import { blue, orange, purple } from '@mui/material/colors';
|
|
18
18
|
import { Chip, InfoOutlineIcon, styled, Tooltip, Typography } from 'fbm-ui';
|
|
19
19
|
import { Box, Collapse, Stack } from 'fbm-ui/lib/mui';
|
package/lib/assets/icons/AI.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><defs><linearGradient id="a" x1="36.62%" x2="71.052%" y1="76.01%" y2="4.425%"><stop offset="0%" stop-color="#00B768"/><stop offset="39%" stop-color="#00AF62"/><stop offset="100%" stop-color="#009953"/><stop offset="100%" stop-color="#009953"/></linearGradient></defs><g fill="none" transform="translate(3 7.16)"><rect width="3.109" height="8.176" x="18.116" y="4.824" fill="#00D97C" rx="1.554"/><path fill="#00D97C" d="M21.4330891 1.95993177 21.4367129 1.93267091C21.4403366 1.90483003 21.4433564 1.87466908 21.4457722 1.84798824L21.4457722 1.82072738C21.4457722 1.78476624 21.4500001 1.74822509 21.4500001 1.71168394L21.4500001 1.71168394C21.4502442 1.01957447 21.0163106.395484118 20.3505677.130462712 19.6848249-.134558695 18.9184003.0116886167 18.4087228.50100097 17.8990452.990313327 17.7465029 1.72631363 18.0222352 2.36576189 18.2979675 3.00521015 18.947665 3.42215785 19.6683358 3.42215789L19.6683358 3.42215789 19.6683358 4.1645813C19.8960264 4.05611788 21.1945274 3.17855021 21.4167824 2.03997429 21.4236272 2.01329345 21.4290628 1.98661261 21.4330891 1.95993177ZM15.4605889 10.719948 9.60706759.98260094C9.24145617.374932483 8.56614784.000646522375 7.83536873.000646522375 7.10458966.000646522375 6.42928134.374932483 6.06366994.98260094L5.39026133 2.1037763 5.39026133 2.1037763 4.64920987 3.33515515C4.92547127 2.86174873 5.4452855 2.56740188 6.01035444 2.56440169 6.57542336 2.5614015 7.09859463 2.8502107 7.3802895 3.32065469L7.3802895 3.32065469 12.7367568 12.2303157C13.0172603 12.6974945 13.5359784 12.9854694 14.0975151 12.9857635 14.6590517 12.9860566 15.178096 12.6986244 15.4591292 12.2317392 15.7401622 11.7648541 15.7404885 11.1894469 15.4599849 10.7222681L15.4605889 10.719948Z"/><path fill="url(#a)" d="M7.37968551,3.32065469 C7.09841787,2.85095068 6.57638695,2.56226386 6.01219476,2.56439864 C5.44800258,2.56658124 4.92838341,2.85925359 4.65102173,3.33109501 L1.83840835,8.01126263 C1.83808295,8.0127936 1.83808295,8.01437187 1.83840835,8.01590276 L0.210148599,10.719948 C-0.0703549557,11.1871269 -0.0700287417,11.762534 0.21100436,12.2294192 C0.49203746,12.6963044 1.01108183,12.9837366 1.57261848,12.9834434 C2.13415513,12.9831493 2.65287327,12.6951745 2.9333768,12.2279956 L7.83506677,4.07409845 L7.38089343,3.32007467 L7.37968551,3.32065469 Z"/></g></svg>
|
|
@@ -10,21 +10,15 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
13
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
|
-
var
|
|
16
|
-
var
|
|
18
|
+
var SvgIcon_1 = __importDefault(require("../SvgIcon"));
|
|
19
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
17
20
|
var AiHeaderTitle = function (_a) {
|
|
18
21
|
var name = _a.name;
|
|
19
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
20
|
-
pl: 3,
|
|
21
|
-
height: 40,
|
|
22
|
-
color: '#009D56',
|
|
23
|
-
background: 'url(//webcdn.fbmms.cn/assets/yt-b/yf2BqqIlr8Xtb8N2o44t1) no-repeat center center',
|
|
24
|
-
backgroundSize: 'contain',
|
|
25
|
-
width: 24 + (56 / 4) * name.length + 84,
|
|
26
|
-
dispoly: 'flex',
|
|
27
|
-
alignItems: 'center',
|
|
28
|
-
} }, { children: [(0, jsx_runtime_1.jsx)("img", { src: "//webcdn.fbmms.cn/assets/7Vj-/P5j2FTojTq7M3W7clK6tX", alt: "", style: { width: 32, height: 20 } }), (0, jsx_runtime_1.jsx)(styled_1.DinTypography, __assign({ variant: "h6", color: "inherit" }, { children: name }))] })));
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "inline-flex" }, { children: [(0, jsx_runtime_1.jsx)(SvgIcon_1.default, { name: "AI" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "h6", fontWeight: "medium", sx: { fontWeight: 500 }, ml: 1 }, { children: name }))] })));
|
|
29
23
|
};
|
|
30
24
|
exports.default = AiHeaderTitle;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
|
+
var styled_1 = require("../../modules/ai-report-v2/components/styled");
|
|
16
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
17
|
+
var AiHeaderTitle = function (_a) {
|
|
18
|
+
var name = _a.name;
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ display: "inline-flex", direction: "row", spacing: 1, sx: {
|
|
20
|
+
pl: 3,
|
|
21
|
+
height: 40,
|
|
22
|
+
color: '#009D56',
|
|
23
|
+
background: 'url(//webcdn.fbmms.cn/assets/yt-b/yf2BqqIlr8Xtb8N2o44t1) no-repeat center center',
|
|
24
|
+
backgroundSize: 'contain',
|
|
25
|
+
width: 24 + (56 / 4) * name.length + 84,
|
|
26
|
+
dispoly: 'flex',
|
|
27
|
+
alignItems: 'center',
|
|
28
|
+
} }, { children: [(0, jsx_runtime_1.jsx)("img", { src: "//webcdn.fbmms.cn/assets/7Vj-/P5j2FTojTq7M3W7clK6tX", alt: "", style: { width: 32, height: 20 } }), (0, jsx_runtime_1.jsx)(styled_1.DinTypography, __assign({ variant: "h6", color: "inherit" }, { children: name }))] })));
|
|
29
|
+
};
|
|
30
|
+
exports.default = AiHeaderTitle;
|
|
@@ -55,6 +55,16 @@ var formateTitle = function (originalTitle) {
|
|
|
55
55
|
var _a = __read(originalTitle.match(regex), 2), no = _a[1];
|
|
56
56
|
return "\u7B2C".concat(no, "\u9898");
|
|
57
57
|
};
|
|
58
|
+
var getLevel = function (score) {
|
|
59
|
+
switch (true) {
|
|
60
|
+
case score >= 80:
|
|
61
|
+
return 3;
|
|
62
|
+
case score >= 60:
|
|
63
|
+
return 2;
|
|
64
|
+
default:
|
|
65
|
+
return 1;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
58
68
|
var ReportPie = function (props) {
|
|
59
69
|
var id = props.id, _a = props.source, source = _a === void 0 ? [] : _a;
|
|
60
70
|
var scores = source.map(function (_a) {
|
|
@@ -137,8 +147,8 @@ var ReportPie = function (props) {
|
|
|
137
147
|
itemStyle: {
|
|
138
148
|
color: function (_a) {
|
|
139
149
|
var _b;
|
|
140
|
-
var
|
|
141
|
-
return (_b = const_1.levelMapping[
|
|
150
|
+
var avgScore = _a.data.avgScore;
|
|
151
|
+
return (_b = const_1.levelMapping[getLevel(avgScore)]) === null || _b === void 0 ? void 0 : _b.itemColor;
|
|
142
152
|
},
|
|
143
153
|
shadowBlur: 4,
|
|
144
154
|
shadowColor: 'rgba(0, 0, 0, 0.16)',
|
|
@@ -33,7 +33,7 @@ var fbm_ui_1 = require("fbm-ui");
|
|
|
33
33
|
var mui_1 = require("fbm-ui/lib/mui");
|
|
34
34
|
var react_1 = require("react");
|
|
35
35
|
var Evaluate = function (_a) {
|
|
36
|
-
var title = _a.title, evaluations = _a.evaluations, token = _a.token, field = _a.field, _b = _a.mode, mode = _b === void 0 ? 'show' : _b, _c = _a.canEdit, canEdit = _c === void 0 ? '
|
|
36
|
+
var title = _a.title, evaluations = _a.evaluations, token = _a.token, field = _a.field, _b = _a.mode, mode = _b === void 0 ? 'show' : _b, _c = _a.canEdit, canEdit = _c === void 0 ? 'false' : _c;
|
|
37
37
|
var _d = __read((0, react_1.useState)(evaluations), 2), content = _d[0], setContent = _d[1];
|
|
38
38
|
var _e = __read((0, react_1.useState)('show'), 2), internalMode = _e[0], setInternalMode = _e[1];
|
|
39
39
|
var handleChange = (0, react_1.useCallback)(function (e) {
|
|
@@ -3,6 +3,18 @@ interface Dimension {
|
|
|
3
3
|
name: string;
|
|
4
4
|
score: number;
|
|
5
5
|
}
|
|
6
|
+
export declare function getLevel(score: any): {
|
|
7
|
+
label: string;
|
|
8
|
+
width: number;
|
|
9
|
+
fontColor: string;
|
|
10
|
+
color: number[];
|
|
11
|
+
gradient: string[];
|
|
12
|
+
scoreGradient: string[];
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
shadowColor: string;
|
|
15
|
+
endScore: number;
|
|
16
|
+
pointColor: string[];
|
|
17
|
+
};
|
|
6
18
|
interface GraphProps {
|
|
7
19
|
items: Array<Dimension>;
|
|
8
20
|
}
|
|
@@ -16,6 +16,7 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
16
16
|
return ar;
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.getLevel = void 0;
|
|
19
20
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
20
21
|
var react_1 = require("react");
|
|
21
22
|
function setupCanvas(canvas) {
|
|
@@ -154,6 +155,7 @@ function getLevel(score) {
|
|
|
154
155
|
return levelConf.Best;
|
|
155
156
|
}
|
|
156
157
|
}
|
|
158
|
+
exports.getLevel = getLevel;
|
|
157
159
|
var drawScore = function (layout, ctx, config, rect, score) {
|
|
158
160
|
var gradient = ctx.createLinearGradient(layout.leftLableWidth + rect.width, 30, layout.leftLableWidth, 30);
|
|
159
161
|
gradient.addColorStop(0, config.scoreGradient[0]);
|
|
@@ -17,7 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
18
|
var Suggestion_1 = __importDefault(require("./Suggestion"));
|
|
19
19
|
var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
20
|
-
var
|
|
20
|
+
var AiHeaderTitleV2_1 = __importDefault(require("../../../../components/AiHeaderTitleV2"));
|
|
21
21
|
var fbm_ui_1 = require("fbm-ui");
|
|
22
22
|
var mui_1 = require("fbm-ui/lib/mui");
|
|
23
23
|
var Index = function () {
|
|
@@ -25,7 +25,7 @@ var Index = function () {
|
|
|
25
25
|
var _e = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult]; }), reportResult = _e.reportResult, showAiDimension = _e.showAiDimension;
|
|
26
26
|
if (!showAiDimension || !((_a = reportResult === null || reportResult === void 0 ? void 0 : reportResult.suggestion) === null || _a === void 0 ? void 0 : _a.show))
|
|
27
27
|
return null;
|
|
28
|
-
return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ id: "report-suggestion", px: 2, mt: 2, pb: 2 }, { children: [(0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1 }, { children: (0, jsx_runtime_1.jsx)(
|
|
28
|
+
return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ id: "report-suggestion", px: 2, mt: 2, pb: 2 }, { children: [(0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1 }, { children: (0, jsx_runtime_1.jsx)(AiHeaderTitleV2_1.default, { name: "\u8003\u5BDF\u5EFA\u8BAE" }) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary", mt: 1 }, { children: (_b = reportResult === null || reportResult === void 0 ? void 0 : reportResult.suggestion) === null || _b === void 0 ? void 0 : _b.text })), (0, jsx_runtime_1.jsx)(mui_1.Collapse, __assign({ in: true }, { children: (_d = (_c = reportResult === null || reportResult === void 0 ? void 0 : reportResult.suggestion) === null || _c === void 0 ? void 0 : _c.abilitys) === null || _d === void 0 ? void 0 : _d.map(function (v) {
|
|
29
29
|
return (0, jsx_runtime_1.jsx)(Suggestion_1.default, { abilityName: v.abilityName, interviewQuestion: v.interviewQuestion, keyPoints: v.keyPoints }, v.abilityName);
|
|
30
30
|
}) }))] })));
|
|
31
31
|
};
|
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
18
|
var QuestionItem_1 = __importDefault(require("./QuestionItem"));
|
|
19
|
-
var
|
|
19
|
+
var AiHeaderTitleV2_1 = __importDefault(require("../../../../components/AiHeaderTitleV2"));
|
|
20
20
|
var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
21
21
|
var fbm_ui_1 = require("fbm-ui");
|
|
22
22
|
var react_1 = require("react");
|
|
@@ -24,6 +24,6 @@ var VideoQuestion = function (_a) {
|
|
|
24
24
|
var _b = _a.isExportPdf, isExportPdf = _b === void 0 ? false : _b;
|
|
25
25
|
var reportResult = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult, store.operableButtons]; }).reportResult;
|
|
26
26
|
var steps = (reportResult || {}).steps;
|
|
27
|
-
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ id: "report-question", mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(
|
|
27
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ id: "report-question", mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(AiHeaderTitleV2_1.default, { name: "\u89C6\u9891\u9898" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ mt: 3 }, { children: steps && steps.length > 0 ? (steps === null || steps === void 0 ? void 0 : steps.map(function (item, index) { return (0, jsx_runtime_1.jsx)(QuestionItem_1.default, __assign({ index: index }, item, { isExportPdf: isExportPdf }), item.token); })) : ((0, jsx_runtime_1.jsx)(fbm_ui_1.Empty, { src: "//public-static-assets.oss-cn-beijing.aliyuncs.com/img/empty.png", desc: "\u6682\u65E0\u9898\u76EE" })) }))] })));
|
|
28
28
|
};
|
|
29
29
|
exports.default = (0, react_1.memo)(VideoQuestion);
|
|
@@ -18,7 +18,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
18
18
|
var ScoreSlider_1 = __importDefault(require("./ScoreSlider"));
|
|
19
19
|
var WorkPlace_1 = __importDefault(require("./WorkPlace"));
|
|
20
20
|
var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
21
|
-
var
|
|
21
|
+
var AiHeaderTitleV2_1 = __importDefault(require("../../../../components/AiHeaderTitleV2"));
|
|
22
22
|
var colors_1 = require("@mui/material/colors");
|
|
23
23
|
var fbm_ui_1 = require("fbm-ui");
|
|
24
24
|
var mui_1 = require("fbm-ui/lib/mui");
|
|
@@ -68,7 +68,7 @@ var Index = function () {
|
|
|
68
68
|
var _c = (reportResult || {}).orderToken, orderToken = _c === void 0 ? '' : _c;
|
|
69
69
|
if (!showAiDimension)
|
|
70
70
|
return null;
|
|
71
|
-
return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ id: "report-workplace", px: 2, mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1, marginBottom: 1 }, { children: (0, jsx_runtime_1.jsx)(
|
|
71
|
+
return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ id: "report-workplace", px: 2, mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1, marginBottom: 1 }, { children: (0, jsx_runtime_1.jsx)(AiHeaderTitleV2_1.default, { name: "\u804C\u573A\u80FD\u529B\u8868\u73B0" }) })), (0, jsx_runtime_1.jsx)(mui_1.Collapse, __assign({ in: true }, { children: (_a = reportResult === null || reportResult === void 0 ? void 0 : reportResult.workplaces) === null || _a === void 0 ? void 0 : _a.map(function (v, idx) {
|
|
72
72
|
return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ mb: 2, pb: 2, pr: 2 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", mb: 2, mt: 1, justifyContent: "space-between", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", alignItems: "center", maxWidth: "calc(100% - 90px)" }, { children: [(0, jsx_runtime_1.jsx)(TagTitle, __assign({ bgcolor: ColorIndexMap[idx % 3][200] }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "subtitle1", fontWeight: "medium", style: { lineHeight: '32px', color: '#fff', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' } }, { children: v.dimensionName })) })), v.dimensionType === 3 && (0, jsx_runtime_1.jsx)(fbm_ui_1.Chip, { color: 'primary', label: '自定义', size: "small", sx: { ml: 1 } })] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Tooltip, __assign({ title: (0, jsx_runtime_1.jsxs)("span", { children: ["\u9AD8\u5206\u8868\u73B0\uFF1A", v.abilityExpression.good, (0, jsx_runtime_1.jsx)("br", {}), "\u4F4E\u5206\u8868\u73B0\uFF1A", v.abilityExpression.bad] }) }, { children: (0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", style: { lineHeight: '32px' }, mr: 1 }, { children: "\u4F18\u6B21\u8868\u73B0" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.InfoOutlineIcon, { sx: { fontSize: '16px' } })] })) }))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary", ml: 2, style: { background: '#F5F5F5', borderRadius: 4, padding: 8 } }, { children: v.define })), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ pl: 2 }, { children: [(0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ mt: 2 }, { children: (0, jsx_runtime_1.jsx)(ScoreSlider_1.default, { width: "100%", isShowLabel: true, score: v.score, scoreText: v.scoreText, scoreLevel: v.scoreLevel }) })), (0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ spacing: 2 }, { children: (0, jsx_runtime_1.jsx)(WorkPlace_1.default, { thirdOrderID: orderToken, token: v.token, canEdit: canEditAiDimension, answer: v.answer, mode: "show", bgcolor: ColorIndexMap[idx % 3][50] }) }))] }))] }), v.token));
|
|
73
73
|
}) }))] })));
|
|
74
74
|
};
|