eli-video-interview 1.1.6 → 1.1.7
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/LICENSE +1 -1
- package/esm/components/BigBallSvg/index.js +3 -3
- package/esm/components/BigBallSvg/styled.d.ts +3 -0
- package/esm/components/BigBallSvg/styled.js +28 -0
- package/esm/components/Charts/Chart.js +19 -25
- package/esm/components/Charts/ReportPie.d.ts +4 -0
- package/esm/components/Charts/ReportPie.js +135 -0
- package/esm/components/Charts/TemplatePie.d.ts +4 -0
- package/esm/components/Charts/TemplatePie.js +81 -0
- package/esm/components/Charts/const.d.ts +15 -380
- package/esm/components/Charts/const.js +15 -380
- package/esm/components/Charts/interface.d.ts +15 -0
- package/esm/components/RootProvider/index.d.ts +3 -0
- package/esm/components/RootProvider/index.js +27 -0
- package/esm/{modules/ai-report/components/ScoreReport/ScoreBigBall.d.ts → components/ScoreBigBall/index.d.ts} +0 -0
- package/esm/components/ScoreBigBall/index.js +26 -0
- package/esm/components/ScoreBigBall/interface.d.ts +7 -0
- package/esm/components/ScoreBigBall/interface.js +1 -0
- package/esm/components/ScoreBigBall/styled.d.ts +4 -0
- package/esm/components/ScoreBigBall/styled.js +12 -0
- package/esm/components/SvgIcon/index.d.ts +2 -2
- package/esm/components/SvgIcon/index.js +3 -2
- package/esm/components/SvgIcon/interface.d.ts +1 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/esm/modules/ai-ability/Root.d.ts +3 -0
- package/esm/modules/ai-ability/Root.js +135 -0
- package/esm/modules/ai-ability/components/UpdateAbility/index.d.ts +4 -0
- package/esm/modules/ai-ability/components/UpdateAbility/index.js +114 -0
- package/esm/modules/ai-ability/components/UpdateAbility/interface.d.ts +7 -0
- package/esm/modules/ai-ability/components/UpdateAbility/interface.js +1 -0
- package/esm/modules/ai-ability/index.d.ts +2 -0
- package/esm/modules/ai-ability/index.js +7 -0
- package/esm/modules/ai-ability/interface.d.ts +15 -0
- package/esm/modules/ai-ability/interface.js +1 -0
- package/esm/modules/ai-ability/styled.d.ts +4 -0
- package/esm/modules/ai-ability/styled.js +6 -0
- package/esm/modules/ai-question/Root.js +7 -4
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +1 -1
- package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.js +1 -1
- package/esm/modules/ai-question/components/AiAnalysis/index.js +3 -3
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +1 -1
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +5 -5
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.js +1 -1
- package/esm/modules/ai-question/components/BaseAccordion/index.js +2 -2
- package/esm/modules/ai-question/components/BaseAccordion/styled.js +7 -4
- package/esm/modules/ai-question/components/BootVideo/index.js +1 -1
- package/esm/modules/ai-question/components/QuestionModel/Item.js +4 -4
- package/esm/modules/ai-question/components/QuestionModel/Skeleton.js +1 -1
- package/esm/modules/ai-question/components/QuestionModel/index.js +23 -16
- package/esm/modules/ai-question/components/QuestionModel/styled.js +1 -1
- package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +3 -3
- package/esm/modules/ai-question/components/QuestionPreview/styled.js +2 -2
- package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +11 -8
- package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.js +1 -1
- package/esm/modules/ai-question/components/QuestionTemplate/index.js +2 -10
- package/esm/modules/ai-question/components/QuestionUpdate/Form.js +10 -3
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +1 -1
- package/esm/modules/ai-question/components/QuestionUpdate/const.js +1 -1
- package/esm/modules/ai-question/components/QuestionUpdate/index.js +5 -3
- package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +5 -1
- package/esm/modules/ai-question/index.d.ts +2 -2
- package/esm/modules/ai-question/index.js +2 -4
- package/esm/modules/ai-question/interface.d.ts +5 -3
- package/esm/modules/ai-question/useAiQuestion.d.ts +4 -2
- package/esm/modules/ai-question/useAiQuestion.js +3 -1
- package/esm/modules/ai-report/components/ScoreReport/Report.d.ts +2 -2
- package/esm/modules/ai-report/components/ScoreReport/Report.js +11 -29
- package/esm/modules/ai-report/components/ScoreReport/index.js +1 -1
- package/esm/modules/ai-report/components/ScoreReport/interface.d.ts +0 -7
- package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +1 -4
- package/esm/modules/ai-report/components/ScoreReport/styled.js +1 -14
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +10 -9
- package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +16 -16
- package/esm/modules/ai-report/components/VideoQuestion/styled.js +2 -1
- package/esm/modules/ai-report/index.d.ts +2 -2
- package/esm/modules/ai-report/index.js +2 -4
- package/esm/modules/ai-report/interface.d.ts +10 -1
- package/esm/modules/ai-report/useAiReport.d.ts +0 -1
- package/esm/modules/ai-template/Root.d.ts +4 -0
- package/esm/modules/ai-template/Root.js +48 -0
- package/esm/modules/ai-template/components/CapabilityModel/const.d.ts +47 -0
- package/esm/modules/ai-template/components/CapabilityModel/const.js +56 -0
- package/esm/modules/ai-template/components/CapabilityModel/index.d.ts +3 -0
- package/esm/modules/ai-template/components/CapabilityModel/index.js +27 -0
- package/esm/modules/ai-template/components/QuestionList/Item.d.ts +4 -0
- package/esm/modules/ai-template/components/QuestionList/Item.js +24 -0
- package/esm/modules/ai-template/components/QuestionList/index.d.ts +3 -0
- package/esm/modules/ai-template/components/QuestionList/index.js +20 -0
- package/esm/modules/ai-template/components/QuestionList/interface.d.ts +5 -0
- package/esm/modules/ai-template/components/QuestionList/interface.js +1 -0
- package/esm/modules/ai-template/components/TemplateHeader/index.d.ts +4 -0
- package/esm/modules/ai-template/components/TemplateHeader/index.js +18 -0
- package/esm/modules/ai-template/components/TemplateHeader/interface.d.ts +6 -0
- package/esm/modules/ai-template/components/TemplateHeader/interface.js +1 -0
- package/esm/modules/ai-template/components/TemplateList/index.d.ts +3 -0
- package/esm/modules/ai-template/components/TemplateList/index.js +96 -0
- package/esm/modules/ai-template/components/TemplateList/interface.d.ts +24 -0
- package/esm/modules/ai-template/components/TemplateList/interface.js +1 -0
- package/esm/modules/ai-template/components/TemplateList/styled.d.ts +37 -0
- package/esm/modules/ai-template/components/TemplateList/styled.js +77 -0
- package/esm/modules/ai-template/components/TemplateMenu/index.d.ts +3 -0
- package/esm/modules/ai-template/components/TemplateMenu/index.js +57 -0
- package/esm/modules/ai-template/components/TemplateMenu/interface.d.ts +12 -0
- package/esm/modules/ai-template/components/TemplateMenu/interface.js +1 -0
- package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +29 -0
- package/esm/modules/ai-template/components/TemplateMenu/styled.js +16 -0
- package/esm/modules/ai-template/index.d.ts +4 -0
- package/esm/modules/{ai-report/components/ScoreReport/RosePie.js → ai-template/index.js} +8 -7
- package/esm/modules/ai-template/interface.d.ts +24 -0
- package/esm/modules/ai-template/interface.js +1 -0
- package/esm/services/ai-ability.d.ts +12 -0
- package/esm/services/ai-ability.js +7 -0
- package/esm/services/ai-question.d.ts +0 -1
- package/esm/services/ai-question.js +1 -3
- package/esm/services/ai-template.d.ts +4 -0
- package/esm/services/ai-template.js +9 -0
- package/esm/store/ai-question/ai-analysis-store.js +2 -1
- package/esm/store/ai-question/global-store.d.ts +9 -6
- package/esm/store/ai-question/global-store.js +0 -1
- package/esm/store/ai-question/question-model-store.js +9 -7
- package/esm/store/ai-report/global-store.d.ts +3 -6
- package/esm/store/ai-report/global-store.js +4 -6
- package/esm/store/ai-template/global-store.d.ts +35 -0
- package/esm/store/ai-template/global-store.js +26 -0
- package/esm/utils/config.d.ts +1 -0
- package/esm/utils/interceptor.js +7 -2
- package/lib/components/BigBallSvg/index.js +2 -5
- package/lib/components/BigBallSvg/styled.d.ts +3 -0
- package/lib/components/BigBallSvg/styled.js +31 -0
- package/lib/components/Charts/Chart.js +41 -27
- package/lib/components/Charts/ReportPie.d.ts +4 -0
- package/lib/components/Charts/ReportPie.js +140 -0
- package/lib/components/Charts/TemplatePie.d.ts +4 -0
- package/lib/components/Charts/TemplatePie.js +86 -0
- package/lib/components/Charts/const.d.ts +15 -380
- package/lib/components/Charts/const.js +16 -381
- package/lib/components/Charts/interface.d.ts +15 -0
- package/lib/components/RootProvider/index.d.ts +3 -0
- package/lib/components/RootProvider/index.js +29 -0
- package/lib/{modules/ai-report/components/ScoreReport/ScoreBigBall.d.ts → components/ScoreBigBall/index.d.ts} +0 -0
- package/lib/components/ScoreBigBall/index.js +31 -0
- package/lib/components/ScoreBigBall/interface.d.ts +7 -0
- package/lib/components/ScoreBigBall/interface.js +2 -0
- package/lib/components/ScoreBigBall/styled.d.ts +4 -0
- package/lib/components/ScoreBigBall/styled.js +15 -0
- package/lib/components/SvgIcon/index.d.ts +2 -2
- package/lib/components/SvgIcon/index.js +26 -2
- package/lib/components/SvgIcon/interface.d.ts +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +5 -1
- package/lib/modules/ai-ability/Root.d.ts +3 -0
- package/lib/modules/ai-ability/Root.js +140 -0
- package/lib/modules/ai-ability/components/UpdateAbility/index.d.ts +4 -0
- package/lib/modules/ai-ability/components/UpdateAbility/index.js +116 -0
- package/lib/modules/ai-ability/components/UpdateAbility/interface.d.ts +7 -0
- package/lib/modules/ai-ability/components/UpdateAbility/interface.js +2 -0
- package/lib/modules/ai-ability/index.d.ts +2 -0
- package/lib/modules/ai-ability/index.js +12 -0
- package/lib/modules/ai-ability/interface.d.ts +15 -0
- package/lib/modules/ai-ability/interface.js +2 -0
- package/lib/modules/ai-ability/styled.d.ts +4 -0
- package/lib/modules/ai-ability/styled.js +9 -0
- package/lib/modules/ai-question/Root.js +7 -4
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +2 -2
- package/lib/modules/ai-question/components/AiAnalysis/MainPointsItem.js +2 -2
- package/lib/modules/ai-question/components/AiAnalysis/index.js +2 -2
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +7 -7
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +5 -5
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.js +2 -2
- package/lib/modules/ai-question/components/BaseAccordion/index.js +5 -5
- package/lib/modules/ai-question/components/BaseAccordion/styled.js +7 -4
- package/lib/modules/ai-question/components/BootVideo/index.js +3 -3
- package/lib/modules/ai-question/components/QuestionModel/Item.js +3 -3
- package/lib/modules/ai-question/components/QuestionModel/Skeleton.js +2 -2
- package/lib/modules/ai-question/components/QuestionModel/index.js +23 -16
- package/lib/modules/ai-question/components/QuestionModel/styled.js +1 -1
- package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +3 -3
- package/lib/modules/ai-question/components/QuestionPreview/styled.js +3 -3
- package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +11 -8
- package/lib/modules/ai-question/components/QuestionTemplate/Skeleton.js +2 -2
- package/lib/modules/ai-question/components/QuestionTemplate/index.js +1 -9
- package/lib/modules/ai-question/components/QuestionUpdate/Form.js +9 -2
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +2 -2
- package/lib/modules/ai-question/components/QuestionUpdate/const.js +1 -1
- package/lib/modules/ai-question/components/QuestionUpdate/index.js +7 -5
- package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +5 -1
- package/lib/modules/ai-question/index.d.ts +2 -2
- package/lib/modules/ai-question/index.js +2 -4
- package/lib/modules/ai-question/interface.d.ts +5 -3
- package/lib/modules/ai-question/useAiQuestion.d.ts +4 -2
- package/lib/modules/ai-question/useAiQuestion.js +3 -1
- package/lib/modules/ai-report/components/ScoreReport/Report.d.ts +2 -2
- package/lib/modules/ai-report/components/ScoreReport/Report.js +8 -26
- package/lib/modules/ai-report/components/ScoreReport/index.js +3 -3
- package/lib/modules/ai-report/components/ScoreReport/interface.d.ts +0 -7
- package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +1 -4
- package/lib/modules/ai-report/components/ScoreReport/styled.js +1 -14
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +10 -9
- package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +16 -16
- package/lib/modules/ai-report/components/VideoQuestion/styled.js +3 -2
- package/lib/modules/ai-report/index.d.ts +2 -2
- package/lib/modules/ai-report/index.js +2 -4
- package/lib/modules/ai-report/interface.d.ts +10 -1
- package/lib/modules/ai-report/useAiReport.d.ts +0 -1
- package/lib/modules/ai-template/Root.d.ts +4 -0
- package/lib/modules/ai-template/Root.js +53 -0
- package/lib/modules/ai-template/components/CapabilityModel/const.d.ts +47 -0
- package/lib/modules/ai-template/components/CapabilityModel/const.js +59 -0
- package/lib/modules/ai-template/components/CapabilityModel/index.d.ts +3 -0
- package/lib/modules/ai-template/components/CapabilityModel/index.js +32 -0
- package/lib/modules/ai-template/components/QuestionList/Item.d.ts +4 -0
- package/lib/modules/ai-template/components/QuestionList/Item.js +26 -0
- package/lib/modules/ai-template/components/QuestionList/index.d.ts +3 -0
- package/lib/modules/ai-template/components/QuestionList/index.js +25 -0
- package/lib/modules/ai-template/components/QuestionList/interface.d.ts +5 -0
- package/lib/modules/ai-template/components/QuestionList/interface.js +2 -0
- package/lib/modules/ai-template/components/TemplateHeader/index.d.ts +4 -0
- package/lib/modules/ai-template/components/TemplateHeader/index.js +20 -0
- package/lib/modules/ai-template/components/TemplateHeader/interface.d.ts +6 -0
- package/lib/modules/ai-template/components/TemplateHeader/interface.js +2 -0
- package/lib/modules/ai-template/components/TemplateList/index.d.ts +3 -0
- package/lib/modules/ai-template/components/TemplateList/index.js +101 -0
- package/lib/modules/ai-template/components/TemplateList/interface.d.ts +24 -0
- package/lib/modules/ai-template/components/TemplateList/interface.js +2 -0
- package/lib/modules/ai-template/components/TemplateList/styled.d.ts +37 -0
- package/lib/modules/ai-template/components/TemplateList/styled.js +80 -0
- package/lib/modules/ai-template/components/TemplateMenu/index.d.ts +3 -0
- package/lib/modules/ai-template/components/TemplateMenu/index.js +59 -0
- package/lib/modules/ai-template/components/TemplateMenu/interface.d.ts +12 -0
- package/lib/modules/ai-template/components/TemplateMenu/interface.js +2 -0
- package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +29 -0
- package/lib/modules/ai-template/components/TemplateMenu/styled.js +19 -0
- package/lib/modules/ai-template/index.d.ts +4 -0
- package/lib/modules/{ai-report/components/ScoreReport/RosePie.js → ai-template/index.js} +8 -7
- package/lib/modules/ai-template/interface.d.ts +24 -0
- package/lib/modules/ai-template/interface.js +2 -0
- package/lib/services/ai-ability.d.ts +12 -0
- package/lib/services/ai-ability.js +13 -0
- package/lib/services/ai-question.d.ts +0 -1
- package/lib/services/ai-question.js +1 -4
- package/lib/services/ai-template.d.ts +4 -0
- package/lib/services/ai-template.js +16 -0
- package/lib/store/ai-question/ai-analysis-store.js +2 -1
- package/lib/store/ai-question/global-store.d.ts +9 -6
- package/lib/store/ai-question/global-store.js +0 -1
- package/lib/store/ai-question/question-model-store.js +9 -7
- package/lib/store/ai-report/global-store.d.ts +3 -6
- package/lib/store/ai-report/global-store.js +3 -5
- package/lib/store/ai-template/global-store.d.ts +35 -0
- package/lib/store/ai-template/global-store.js +29 -0
- package/lib/utils/config.d.ts +1 -0
- package/lib/utils/interceptor.js +7 -2
- package/package.json +18 -111
- package/esm/components/BigBallSvg/index.module.css +0 -37
- package/esm/modules/ai-question/components/QuestionTemplate/HistoryPattern.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionTemplate/HistoryPattern.js +0 -20
- package/esm/modules/ai-question/components/QuestionTemplate/styled.d.ts +0 -87
- package/esm/modules/ai-question/components/QuestionTemplate/styled.js +0 -33
- package/esm/modules/ai-report/components/ScoreReport/RosePie.d.ts +0 -4
- package/esm/modules/ai-report/components/ScoreReport/ScoreBigBall.js +0 -26
- package/esm/modules/ai-report/components/ScoreReport/const.d.ts +0 -34
- package/esm/modules/ai-report/components/ScoreReport/const.js +0 -77
- package/lib/components/BigBallSvg/index.module.css +0 -37
- package/lib/modules/ai-question/components/QuestionTemplate/HistoryPattern.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionTemplate/HistoryPattern.js +0 -25
- package/lib/modules/ai-question/components/QuestionTemplate/styled.d.ts +0 -87
- package/lib/modules/ai-question/components/QuestionTemplate/styled.js +0 -39
- package/lib/modules/ai-report/components/ScoreReport/RosePie.d.ts +0 -4
- package/lib/modules/ai-report/components/ScoreReport/ScoreBigBall.js +0 -31
- package/lib/modules/ai-report/components/ScoreReport/const.d.ts +0 -34
- package/lib/modules/ai-report/components/ScoreReport/const.js +0 -80
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { styled } from 'fbm-ui';
|
|
2
|
-
import Tab from '@mui/material/Tab';
|
|
3
|
-
import TabList from '@mui/lab/TabList';
|
|
4
|
-
import TabPanel from '@mui/lab/TabPanel';
|
|
5
|
-
export var CardTabs = styled(TabList)(function (_a) {
|
|
6
|
-
var _b, _c;
|
|
7
|
-
var theme = _a.theme;
|
|
8
|
-
return ({
|
|
9
|
-
minHeight: 0,
|
|
10
|
-
'& .MuiTabs-indicator': {
|
|
11
|
-
display: 'none',
|
|
12
|
-
},
|
|
13
|
-
'& .Mui-selected': {
|
|
14
|
-
borderColor: (_c = (_b = theme.palette) === null || _b === void 0 ? void 0 : _b.primary) === null || _c === void 0 ? void 0 : _c.main,
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
export var CardTab = styled(Tab)({
|
|
19
|
-
width: '122px',
|
|
20
|
-
height: '30px',
|
|
21
|
-
border: '1px solid rgba(0, 0, 0, 0.08)',
|
|
22
|
-
padding: 0,
|
|
23
|
-
minHeight: 0,
|
|
24
|
-
'&:first-child': {
|
|
25
|
-
borderRadius: '3px 0 0 3px',
|
|
26
|
-
},
|
|
27
|
-
'&:last-child': {
|
|
28
|
-
borderRadius: '0 3px 3px 0',
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
export var CardTabPanel = styled(TabPanel)({
|
|
32
|
-
padding: 0,
|
|
33
|
-
});
|
|
@@ -1,26 +0,0 @@
|
|
|
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, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
|
-
import { formatScore } from "../../../../utils/utils";
|
|
14
|
-
import BigBallSvg from "../../../../components/BigBallSvg";
|
|
15
|
-
import { ScoreBigBallRoot } from './styled';
|
|
16
|
-
var ScoreBigBall = function (_a) {
|
|
17
|
-
var score = _a.score, status = _a.status;
|
|
18
|
-
return (_jsxs(_Fragment, { children: [_jsxs(ScoreBigBallRoot, __assign({ style: { backgroundColor: status === 1 ? '#fbfbfb' : 'rgba(59, 203, 120, 0.1)' } }, { children: [status !== 1 && _jsx(BigBallSvg, {}), status === 1 && (_jsx("div", __assign({ style: { color: 'rgba(0,0,0,0.26)', fontSize: '12px' } }, { children: _jsx("span", { children: "\u5019\u9009\u4EBA\u672A\u4F5C\u7B54" }) }))), status === 2 && (_jsx("div", __assign({ style: { color: '#40be47' } }, { children: _jsx("span", { children: "\u8BA1\u7B97\u4E2D..." }) }))), status === 3 && (_jsxs("div", __assign({ style: { color: '#40be47' } }, { children: [_jsx("span", __assign({ style: { fontFamily: 'DIN Alternate Bold', fontSize: 20, fontWeight: 'bold' } }, { children: formatScore(score) > 100 ? 100 : formatScore(score) })), _jsx("span", __assign({ style: { marginLeft: '2px', fontSize: '12px' } }, { children: "\u5206" }))] })))] })), status === 2 && (_jsx("div", { style: {
|
|
19
|
-
position: 'absolute',
|
|
20
|
-
top: 0,
|
|
21
|
-
right: 0,
|
|
22
|
-
bottom: 0,
|
|
23
|
-
left: 0,
|
|
24
|
-
} }))] }));
|
|
25
|
-
};
|
|
26
|
-
export default ScoreBigBall;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export declare const rosePieOptions: {
|
|
2
|
-
legend: {
|
|
3
|
-
show: boolean;
|
|
4
|
-
};
|
|
5
|
-
tooltip: {
|
|
6
|
-
position: string;
|
|
7
|
-
formatter: (params: any) => string;
|
|
8
|
-
};
|
|
9
|
-
series: {
|
|
10
|
-
type: string;
|
|
11
|
-
dimensions: string[];
|
|
12
|
-
radius: number[];
|
|
13
|
-
roseType: string;
|
|
14
|
-
label: {
|
|
15
|
-
formatter: (params: any) => any;
|
|
16
|
-
position: string;
|
|
17
|
-
fontWeight: string;
|
|
18
|
-
fontSize: number;
|
|
19
|
-
fontFamily: string;
|
|
20
|
-
};
|
|
21
|
-
minShowLabelAngle: number;
|
|
22
|
-
stillShowZeroSum: boolean;
|
|
23
|
-
hoverAnimation: boolean;
|
|
24
|
-
encode: {
|
|
25
|
-
value: string;
|
|
26
|
-
weight: string;
|
|
27
|
-
};
|
|
28
|
-
itemStyle: {
|
|
29
|
-
color: (params: any) => string;
|
|
30
|
-
borderColor: string;
|
|
31
|
-
borderWidth: number;
|
|
32
|
-
};
|
|
33
|
-
}[];
|
|
34
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { RosePieColors } from "../../../../constants/ai-report";
|
|
2
|
-
export var rosePieOptions = {
|
|
3
|
-
legend: {
|
|
4
|
-
show: false,
|
|
5
|
-
},
|
|
6
|
-
tooltip: {
|
|
7
|
-
position: 'bottom',
|
|
8
|
-
formatter: function (params) {
|
|
9
|
-
var data = params.data;
|
|
10
|
-
var title = data[1];
|
|
11
|
-
if (title.length > 15) {
|
|
12
|
-
title = title.split(/(.{15})/).filter(function (x) { return x; });
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
title = [title];
|
|
16
|
-
}
|
|
17
|
-
var scoreTxt = data[4] === -1 ? '候选人未作答' : "\u5F97\u5206: ".concat(data[4], "\u5206");
|
|
18
|
-
return "<div>\n <div>".concat(title.map(function (t) { return "".concat(t, "<br />"); }).join(''), "</div>\n <div style=\"margin-top: 4px; font-size: 12px; color: rgba(255,255,255,0.96)\">\n ").concat(scoreTxt, "\n </div>\n </div>");
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
series: [
|
|
22
|
-
{
|
|
23
|
-
type: 'pie',
|
|
24
|
-
dimensions: ['type', 'title', 'origin', 'weight', 'final', 'finalInt', 'processIndex'],
|
|
25
|
-
radius: [45, 100],
|
|
26
|
-
roseType: 'radius',
|
|
27
|
-
label: {
|
|
28
|
-
formatter: function (params) {
|
|
29
|
-
var final = params.data[4];
|
|
30
|
-
if (final <= 8)
|
|
31
|
-
return '';
|
|
32
|
-
return final.toString();
|
|
33
|
-
},
|
|
34
|
-
position: 'inside',
|
|
35
|
-
fontWeight: 'bold',
|
|
36
|
-
fontSize: 14,
|
|
37
|
-
fontFamily: 'DIN Alternate Bold',
|
|
38
|
-
},
|
|
39
|
-
minShowLabelAngle: 20,
|
|
40
|
-
stillShowZeroSum: false,
|
|
41
|
-
hoverAnimation: false,
|
|
42
|
-
encode: {
|
|
43
|
-
value: 'finalInt',
|
|
44
|
-
weight: 'weight',
|
|
45
|
-
},
|
|
46
|
-
itemStyle: {
|
|
47
|
-
color: function (params) {
|
|
48
|
-
var type = params.data[0];
|
|
49
|
-
var final = params.data[4];
|
|
50
|
-
if (final === -1) {
|
|
51
|
-
return '#fbfbfb';
|
|
52
|
-
}
|
|
53
|
-
if (type === 2) {
|
|
54
|
-
if (final < 8) {
|
|
55
|
-
return 'rgba(59, 203, 120, 0.2)';
|
|
56
|
-
}
|
|
57
|
-
if (final < 20) {
|
|
58
|
-
return 'rgba(59, 203, 120, 0.4)';
|
|
59
|
-
}
|
|
60
|
-
return 'rgba(59, 203, 120, 0.6)';
|
|
61
|
-
}
|
|
62
|
-
var processIndex = params.data[6];
|
|
63
|
-
var color = RosePieColors[processIndex] || RosePieColors[RosePieColors.length - 1];
|
|
64
|
-
if (final < 8) {
|
|
65
|
-
return color[0];
|
|
66
|
-
}
|
|
67
|
-
if (final < 20) {
|
|
68
|
-
return color[1];
|
|
69
|
-
}
|
|
70
|
-
return color[2];
|
|
71
|
-
},
|
|
72
|
-
borderColor: '#ffffff',
|
|
73
|
-
borderWidth: 1,
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
@keyframes move-forever {
|
|
2
|
-
0% {
|
|
3
|
-
transform: translate3d(-90px, 0, 0); }
|
|
4
|
-
100% {
|
|
5
|
-
transform: translate3d(85px, 0, 0); }
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.waves {
|
|
9
|
-
position: absolute;
|
|
10
|
-
bottom: 0;
|
|
11
|
-
width: 200%;
|
|
12
|
-
height: 50%;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.parallax > use {
|
|
16
|
-
animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.parallax > use:nth-child(1) {
|
|
20
|
-
animation-delay: -2s;
|
|
21
|
-
animation-duration: 7s;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.parallax > use:nth-child(2) {
|
|
25
|
-
animation-delay: -3s;
|
|
26
|
-
animation-duration: 10s;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.parallax > use:nth-child(3) {
|
|
30
|
-
animation-delay: -4s;
|
|
31
|
-
animation-duration: 13s;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.parallax > use:nth-child(4) {
|
|
35
|
-
animation-delay: -5s;
|
|
36
|
-
animation-duration: 20s;
|
|
37
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
var fbm_ui_1 = require("fbm-ui");
|
|
19
|
-
var global_store_1 = require("../../../../store/ai-question/global-store");
|
|
20
|
-
var BaseAccordion_1 = __importDefault(require("../BaseAccordion"));
|
|
21
|
-
var HistoryPattern = function () {
|
|
22
|
-
var historyPatterns = (0, global_store_1.useAiQuestionStore)().historyPatterns;
|
|
23
|
-
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: { mt: '12px' } }, { children: historyPatterns === null || historyPatterns === void 0 ? void 0 : historyPatterns.map(function (item, i) { return ((0, jsx_runtime_1.jsx)(BaseAccordion_1.default, __assign({ index: i, isShowDesc: true, isShowSummaryAction: true, isShowConfirm: true, isShowPreview: false }, item), item.positionName + i)); }) })));
|
|
24
|
-
};
|
|
25
|
-
exports.default = HistoryPattern;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const CardTabs: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
} & Omit<{
|
|
5
|
-
action?: import("react").Ref<import("@mui/material").TabsActions> | undefined;
|
|
6
|
-
allowScrollButtonsMobile?: boolean | undefined;
|
|
7
|
-
'aria-label'?: string | undefined;
|
|
8
|
-
'aria-labelledby'?: string | undefined;
|
|
9
|
-
centered?: boolean | undefined;
|
|
10
|
-
children?: import("react").ReactNode;
|
|
11
|
-
classes?: Partial<import("@mui/material").TabsClasses> | undefined;
|
|
12
|
-
indicatorColor?: "secondary" | "primary" | undefined;
|
|
13
|
-
onChange?: ((event: import("react").SyntheticEvent<Element, Event>, value: any) => void) | undefined;
|
|
14
|
-
orientation?: "vertical" | "horizontal" | undefined;
|
|
15
|
-
ScrollButtonComponent?: import("react").ElementType<any> | undefined;
|
|
16
|
-
scrollButtons?: boolean | "auto" | undefined;
|
|
17
|
-
selectionFollowsFocus?: boolean | undefined;
|
|
18
|
-
TabIndicatorProps?: Partial<import("react").HTMLAttributes<HTMLDivElement>> | undefined;
|
|
19
|
-
TabScrollButtonProps?: Partial<import("@mui/material").TabScrollButtonProps> | undefined;
|
|
20
|
-
textColor?: "inherit" | "secondary" | "primary" | undefined;
|
|
21
|
-
value?: any;
|
|
22
|
-
variant?: "fullWidth" | "standard" | "scrollable" | undefined;
|
|
23
|
-
visibleScrollbar?: boolean | undefined;
|
|
24
|
-
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
25
|
-
}, "children" | "value"> & import("@mui/material/OverridableComponent").CommonProps & Omit<{
|
|
26
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
27
|
-
centerRipple?: boolean | undefined;
|
|
28
|
-
children?: import("react").ReactNode;
|
|
29
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
30
|
-
disabled?: boolean | undefined;
|
|
31
|
-
disableRipple?: boolean | undefined;
|
|
32
|
-
disableTouchRipple?: boolean | undefined;
|
|
33
|
-
focusRipple?: boolean | undefined;
|
|
34
|
-
focusVisibleClassName?: string | undefined;
|
|
35
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
36
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
37
|
-
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
38
|
-
tabIndex?: number | undefined;
|
|
39
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
40
|
-
} & Omit<{
|
|
41
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
42
|
-
centerRipple?: boolean | undefined;
|
|
43
|
-
children?: import("react").ReactNode;
|
|
44
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
45
|
-
disabled?: boolean | undefined;
|
|
46
|
-
disableRipple?: boolean | undefined;
|
|
47
|
-
disableTouchRipple?: boolean | undefined;
|
|
48
|
-
focusRipple?: boolean | undefined;
|
|
49
|
-
focusVisibleClassName?: string | undefined;
|
|
50
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
51
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
52
|
-
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
53
|
-
tabIndex?: number | undefined;
|
|
54
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
55
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
56
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
57
|
-
}, "children" | "tabIndex" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps">, "children" | "aria-label" | "aria-labelledby" | "onChange" | "orientation" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "variant" | "action" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
58
|
-
export declare const CardTab: import("@emotion/styled").StyledComponent<{
|
|
59
|
-
children?: null | undefined;
|
|
60
|
-
classes?: Partial<import("@mui/material/Tab").TabClasses> | undefined;
|
|
61
|
-
disabled?: boolean | undefined;
|
|
62
|
-
disableFocusRipple?: boolean | undefined;
|
|
63
|
-
icon?: string | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
64
|
-
iconPosition?: "end" | "top" | "bottom" | "start" | undefined;
|
|
65
|
-
label?: import("react").ReactNode;
|
|
66
|
-
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
67
|
-
value?: any;
|
|
68
|
-
wrapped?: boolean | undefined;
|
|
69
|
-
} & Omit<{
|
|
70
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
71
|
-
centerRipple?: boolean | undefined;
|
|
72
|
-
children?: import("react").ReactNode;
|
|
73
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
74
|
-
disabled?: boolean | undefined;
|
|
75
|
-
disableRipple?: boolean | undefined;
|
|
76
|
-
disableTouchRipple?: boolean | undefined;
|
|
77
|
-
focusRipple?: boolean | undefined;
|
|
78
|
-
focusVisibleClassName?: string | undefined;
|
|
79
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
80
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
81
|
-
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
82
|
-
tabIndex?: number | undefined;
|
|
83
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
84
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
85
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
86
|
-
}, "children" | "tabIndex" | keyof import("@mui/material/OverridableComponent").CommonProps | "label" | "sx" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "value" | "disableFocusRipple" | "icon" | "iconPosition" | "wrapped"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
87
|
-
export declare const CardTabPanel: import("@emotion/styled").StyledComponent<import("@mui/lab/TabPanel").TabPanelProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CardTabPanel = exports.CardTab = exports.CardTabs = void 0;
|
|
7
|
-
var fbm_ui_1 = require("fbm-ui");
|
|
8
|
-
var Tab_1 = __importDefault(require("@mui/material/Tab"));
|
|
9
|
-
var TabList_1 = __importDefault(require("@mui/lab/TabList"));
|
|
10
|
-
var TabPanel_1 = __importDefault(require("@mui/lab/TabPanel"));
|
|
11
|
-
exports.CardTabs = (0, fbm_ui_1.styled)(TabList_1.default)(function (_a) {
|
|
12
|
-
var _b, _c;
|
|
13
|
-
var theme = _a.theme;
|
|
14
|
-
return ({
|
|
15
|
-
minHeight: 0,
|
|
16
|
-
'& .MuiTabs-indicator': {
|
|
17
|
-
display: 'none',
|
|
18
|
-
},
|
|
19
|
-
'& .Mui-selected': {
|
|
20
|
-
borderColor: (_c = (_b = theme.palette) === null || _b === void 0 ? void 0 : _b.primary) === null || _c === void 0 ? void 0 : _c.main,
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
exports.CardTab = (0, fbm_ui_1.styled)(Tab_1.default)({
|
|
25
|
-
width: '122px',
|
|
26
|
-
height: '30px',
|
|
27
|
-
border: '1px solid rgba(0, 0, 0, 0.08)',
|
|
28
|
-
padding: 0,
|
|
29
|
-
minHeight: 0,
|
|
30
|
-
'&:first-child': {
|
|
31
|
-
borderRadius: '3px 0 0 3px',
|
|
32
|
-
},
|
|
33
|
-
'&:last-child': {
|
|
34
|
-
borderRadius: '0 3px 3px 0',
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
exports.CardTabPanel = (0, fbm_ui_1.styled)(TabPanel_1.default)({
|
|
38
|
-
padding: 0,
|
|
39
|
-
});
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
var utils_1 = require("../../../../utils/utils");
|
|
19
|
-
var BigBallSvg_1 = __importDefault(require("../../../../components/BigBallSvg"));
|
|
20
|
-
var styled_1 = require("./styled");
|
|
21
|
-
var ScoreBigBall = function (_a) {
|
|
22
|
-
var score = _a.score, status = _a.status;
|
|
23
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(styled_1.ScoreBigBallRoot, __assign({ style: { backgroundColor: status === 1 ? '#fbfbfb' : 'rgba(59, 203, 120, 0.1)' } }, { children: [status !== 1 && (0, jsx_runtime_1.jsx)(BigBallSvg_1.default, {}), status === 1 && ((0, jsx_runtime_1.jsx)("div", __assign({ style: { color: 'rgba(0,0,0,0.26)', fontSize: '12px' } }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u5019\u9009\u4EBA\u672A\u4F5C\u7B54" }) }))), status === 2 && ((0, jsx_runtime_1.jsx)("div", __assign({ style: { color: '#40be47' } }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u8BA1\u7B97\u4E2D..." }) }))), status === 3 && ((0, jsx_runtime_1.jsxs)("div", __assign({ style: { color: '#40be47' } }, { children: [(0, jsx_runtime_1.jsx)("span", __assign({ style: { fontFamily: 'DIN Alternate Bold', fontSize: 20, fontWeight: 'bold' } }, { children: (0, utils_1.formatScore)(score) > 100 ? 100 : (0, utils_1.formatScore)(score) })), (0, jsx_runtime_1.jsx)("span", __assign({ style: { marginLeft: '2px', fontSize: '12px' } }, { children: "\u5206" }))] })))] })), status === 2 && ((0, jsx_runtime_1.jsx)("div", { style: {
|
|
24
|
-
position: 'absolute',
|
|
25
|
-
top: 0,
|
|
26
|
-
right: 0,
|
|
27
|
-
bottom: 0,
|
|
28
|
-
left: 0,
|
|
29
|
-
} }))] }));
|
|
30
|
-
};
|
|
31
|
-
exports.default = ScoreBigBall;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export declare const rosePieOptions: {
|
|
2
|
-
legend: {
|
|
3
|
-
show: boolean;
|
|
4
|
-
};
|
|
5
|
-
tooltip: {
|
|
6
|
-
position: string;
|
|
7
|
-
formatter: (params: any) => string;
|
|
8
|
-
};
|
|
9
|
-
series: {
|
|
10
|
-
type: string;
|
|
11
|
-
dimensions: string[];
|
|
12
|
-
radius: number[];
|
|
13
|
-
roseType: string;
|
|
14
|
-
label: {
|
|
15
|
-
formatter: (params: any) => any;
|
|
16
|
-
position: string;
|
|
17
|
-
fontWeight: string;
|
|
18
|
-
fontSize: number;
|
|
19
|
-
fontFamily: string;
|
|
20
|
-
};
|
|
21
|
-
minShowLabelAngle: number;
|
|
22
|
-
stillShowZeroSum: boolean;
|
|
23
|
-
hoverAnimation: boolean;
|
|
24
|
-
encode: {
|
|
25
|
-
value: string;
|
|
26
|
-
weight: string;
|
|
27
|
-
};
|
|
28
|
-
itemStyle: {
|
|
29
|
-
color: (params: any) => string;
|
|
30
|
-
borderColor: string;
|
|
31
|
-
borderWidth: number;
|
|
32
|
-
};
|
|
33
|
-
}[];
|
|
34
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rosePieOptions = void 0;
|
|
4
|
-
var ai_report_1 = require("../../../../constants/ai-report");
|
|
5
|
-
exports.rosePieOptions = {
|
|
6
|
-
legend: {
|
|
7
|
-
show: false,
|
|
8
|
-
},
|
|
9
|
-
tooltip: {
|
|
10
|
-
position: 'bottom',
|
|
11
|
-
formatter: function (params) {
|
|
12
|
-
var data = params.data;
|
|
13
|
-
var title = data[1];
|
|
14
|
-
if (title.length > 15) {
|
|
15
|
-
title = title.split(/(.{15})/).filter(function (x) { return x; });
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
title = [title];
|
|
19
|
-
}
|
|
20
|
-
var scoreTxt = data[4] === -1 ? '候选人未作答' : "\u5F97\u5206: ".concat(data[4], "\u5206");
|
|
21
|
-
return "<div>\n <div>".concat(title.map(function (t) { return "".concat(t, "<br />"); }).join(''), "</div>\n <div style=\"margin-top: 4px; font-size: 12px; color: rgba(255,255,255,0.96)\">\n ").concat(scoreTxt, "\n </div>\n </div>");
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
series: [
|
|
25
|
-
{
|
|
26
|
-
type: 'pie',
|
|
27
|
-
dimensions: ['type', 'title', 'origin', 'weight', 'final', 'finalInt', 'processIndex'],
|
|
28
|
-
radius: [45, 100],
|
|
29
|
-
roseType: 'radius',
|
|
30
|
-
label: {
|
|
31
|
-
formatter: function (params) {
|
|
32
|
-
var final = params.data[4];
|
|
33
|
-
if (final <= 8)
|
|
34
|
-
return '';
|
|
35
|
-
return final.toString();
|
|
36
|
-
},
|
|
37
|
-
position: 'inside',
|
|
38
|
-
fontWeight: 'bold',
|
|
39
|
-
fontSize: 14,
|
|
40
|
-
fontFamily: 'DIN Alternate Bold',
|
|
41
|
-
},
|
|
42
|
-
minShowLabelAngle: 20,
|
|
43
|
-
stillShowZeroSum: false,
|
|
44
|
-
hoverAnimation: false,
|
|
45
|
-
encode: {
|
|
46
|
-
value: 'finalInt',
|
|
47
|
-
weight: 'weight',
|
|
48
|
-
},
|
|
49
|
-
itemStyle: {
|
|
50
|
-
color: function (params) {
|
|
51
|
-
var type = params.data[0];
|
|
52
|
-
var final = params.data[4];
|
|
53
|
-
if (final === -1) {
|
|
54
|
-
return '#fbfbfb';
|
|
55
|
-
}
|
|
56
|
-
if (type === 2) {
|
|
57
|
-
if (final < 8) {
|
|
58
|
-
return 'rgba(59, 203, 120, 0.2)';
|
|
59
|
-
}
|
|
60
|
-
if (final < 20) {
|
|
61
|
-
return 'rgba(59, 203, 120, 0.4)';
|
|
62
|
-
}
|
|
63
|
-
return 'rgba(59, 203, 120, 0.6)';
|
|
64
|
-
}
|
|
65
|
-
var processIndex = params.data[6];
|
|
66
|
-
var color = ai_report_1.RosePieColors[processIndex] || ai_report_1.RosePieColors[ai_report_1.RosePieColors.length - 1];
|
|
67
|
-
if (final < 8) {
|
|
68
|
-
return color[0];
|
|
69
|
-
}
|
|
70
|
-
if (final < 20) {
|
|
71
|
-
return color[1];
|
|
72
|
-
}
|
|
73
|
-
return color[2];
|
|
74
|
-
},
|
|
75
|
-
borderColor: '#ffffff',
|
|
76
|
-
borderWidth: 1,
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
};
|