eli-video-interview 1.1.5 → 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 +4 -4
- 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 -0
- 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 -3
- 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 +4 -4
- 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 -0
- 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 -3
- 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
|
@@ -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 fbm_ui_1 = require("fbm-ui");
|
|
19
|
-
var
|
|
19
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
20
20
|
var ahooks_1 = require("ahooks");
|
|
21
21
|
var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
22
22
|
var ai_report_1 = require("../../../../services/ai-report");
|
|
@@ -37,10 +37,10 @@ var ScoreReport = function (_a) {
|
|
|
37
37
|
},
|
|
38
38
|
}), run = _d.run, loading = _d.loading;
|
|
39
39
|
if ([FAILED, IN_CALCULATION].includes(status)) {
|
|
40
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
40
|
+
return ((0, jsx_runtime_1.jsx)(mui_1.Paper, __assign({ variant: "outlined" }, { children: (0, jsx_runtime_1.jsx)(Failed_1.default, { status: status, loading: loading, onRefresh: run }) })));
|
|
41
41
|
}
|
|
42
42
|
else {
|
|
43
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
43
|
+
return ((0, jsx_runtime_1.jsxs)(mui_1.Paper, __assign({ variant: "outlined" }, { children: [(0, jsx_runtime_1.jsx)(Score_1.default, { loading: loading, onRefresh: run }), (0, jsx_runtime_1.jsx)(mui_1.Divider, {}), (0, jsx_runtime_1.jsx)(Report_1.default, {})] })));
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
exports.default = ScoreReport;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
export interface ScoreLegendProps {
|
|
2
2
|
color: string;
|
|
3
3
|
}
|
|
4
|
-
export interface ScoreBigBallProps {
|
|
5
|
-
score: number;
|
|
6
|
-
status?: number;
|
|
7
|
-
}
|
|
8
|
-
export interface RosePieProps {
|
|
9
|
-
source: any[];
|
|
10
|
-
}
|
|
11
4
|
export interface ScoreReportProps {
|
|
12
5
|
onRefreshSuccess: () => void;
|
|
13
6
|
}
|
|
@@ -15,11 +15,8 @@ export declare const RefreshIconRoot: import("@emotion/styled").StyledComponent<
|
|
|
15
15
|
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
16
16
|
titleAccess?: string | undefined;
|
|
17
17
|
viewBox?: string | undefined;
|
|
18
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "
|
|
18
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "onLoad" | "name" | "type" | "fill" | "values" | "d" | "y" | "key" | "className" | "id" | "lang" | "tabIndex" | "role" | "color" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "height" | "max" | "media" | "method" | "min" | "target" | "width" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
|
|
19
19
|
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
20
20
|
}, "children" | "color" | "fontSize" | "shapeRendering" | "viewBox" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "htmlColor" | "titleAccess"> & {
|
|
21
21
|
children?: import("react").ReactNode;
|
|
22
22
|
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
23
|
-
export declare const ScoreBigBallRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
24
|
-
children?: import("react").ReactNode;
|
|
25
|
-
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.RefreshIconRoot = exports.ScoreUnitTypography = exports.ScoreTypography = void 0;
|
|
4
4
|
var fbm_ui_1 = require("fbm-ui");
|
|
5
5
|
exports.ScoreTypography = (0, fbm_ui_1.styled)(fbm_ui_1.Typography)(function (_a) {
|
|
6
6
|
var theme = _a.theme;
|
|
@@ -24,16 +24,3 @@ exports.RefreshIconRoot = (0, fbm_ui_1.styled)(fbm_ui_1.RefreshIcon)({
|
|
|
24
24
|
top: 2,
|
|
25
25
|
cursor: 'pointer',
|
|
26
26
|
});
|
|
27
|
-
exports.ScoreBigBallRoot = (0, fbm_ui_1.styled)(fbm_ui_1.Box)({
|
|
28
|
-
display: 'flex',
|
|
29
|
-
justifyContent: 'center',
|
|
30
|
-
alignItems: 'center',
|
|
31
|
-
position: 'absolute',
|
|
32
|
-
top: '50%',
|
|
33
|
-
left: '50%',
|
|
34
|
-
transform: 'translate(-50%, -50%)',
|
|
35
|
-
width: 80,
|
|
36
|
-
height: 80,
|
|
37
|
-
borderRadius: '50%',
|
|
38
|
-
overflow: 'hidden',
|
|
39
|
-
});
|
|
@@ -18,7 +18,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
18
18
|
var react_1 = require("react");
|
|
19
19
|
var fbm_ui_1 = require("fbm-ui");
|
|
20
20
|
var ThemeProvider_1 = require("fbm-ui/lib/components/ThemeProvider");
|
|
21
|
-
var
|
|
21
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
22
22
|
var immutability_helper_1 = __importDefault(require("immutability-helper"));
|
|
23
23
|
var FormatQuote_1 = __importDefault(require("@mui/icons-material/FormatQuote"));
|
|
24
24
|
var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
@@ -30,7 +30,7 @@ var ScoreSlider_1 = __importDefault(require("./ScoreSlider"));
|
|
|
30
30
|
var Abilities_1 = __importDefault(require("./Abilities"));
|
|
31
31
|
var STEP_NO_ANSWER = ai_report_1.INTERVIEW_STEP_STATUS.STEP_NO_ANSWER, STEP_COMPLETED = ai_report_1.INTERVIEW_STEP_STATUS.STEP_COMPLETED, STEP_FAILED = ai_report_1.INTERVIEW_STEP_STATUS.STEP_FAILED, STEP_IN_CALCULATION = ai_report_1.INTERVIEW_STEP_STATUS.STEP_IN_CALCULATION;
|
|
32
32
|
var QuestionItem = function (props) {
|
|
33
|
-
var token = props.token, index = props.index, status = props.status, _a = props.answer, analysisResult = _a.analysisResult, videoUrl = _a.videoUrl, _b = props.question, name = _b.name, type = _b.type, _c = props.scoreInfo, score = _c.score, weight = _c.weight, originScore = _c.originScore, finalScore = _c.finalScore, abilities = _c.abilities;
|
|
33
|
+
var token = props.token, index = props.index, status = props.status, _a = props.answer, analysisResult = _a.analysisResult, videoUrl = _a.videoUrl, _b = props.question, name = _b.name, type = _b.type, category = _b.category, _c = props.scoreInfo, score = _c.score, weight = _c.weight, originScore = _c.originScore, finalScore = _c.finalScore, abilities = _c.abilities;
|
|
34
34
|
var _d = (0, react_1.useState)(false), showAbilities = _d[0], setShowAbilities = _d[1];
|
|
35
35
|
var _e = (0, global_store_1.useAiReportStore)(function (store) { return [
|
|
36
36
|
store.reportResult,
|
|
@@ -84,11 +84,11 @@ var QuestionItem = function (props) {
|
|
|
84
84
|
onStepChange === null || onStepChange === void 0 ? void 0 : onStepChange(token);
|
|
85
85
|
}
|
|
86
86
|
}, [token, videoUrl, onStepChange, updateState]);
|
|
87
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
87
|
+
return ((0, jsx_runtime_1.jsxs)(mui_1.Paper, __assign({ sx: {
|
|
88
88
|
padding: '16px 24px',
|
|
89
89
|
mt: 2,
|
|
90
90
|
cursor: videoUrl ? 'pointer' : 'inherit',
|
|
91
91
|
borderColor: token === stepToken ? ThemeProvider_1.theme.palette.primary.main : '',
|
|
92
|
-
}, variant: "outlined", onClick: handleClickItem }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ fontSize: 14, color: token === stepToken ? ThemeProvider_1.theme.palette.primary.main : ThemeProvider_1.theme.palette.text.primary }, { children: [index + 1, ".", name] })), (0, jsx_runtime_1.jsxs)(styled_1.QuestionDesc, { children: [(0, jsx_runtime_1.jsx)(FormatQuote_1.default, {}), status === STEP_IN_CALCULATION ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary" }, { children: "\u89C6\u9891\u5904\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u5019" }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, { variant: "caption", color: "secondary", dangerouslySetInnerHTML: { __html: renderText } }), type === ai_question_1.QUESTION_TYPE.COLOR_BLINDNESS && (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img) && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)("img", { style: { width: 100, height: 100 }, src: analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img, alt: "" }), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary", ml: 1 }, { children: ["\u56DE\u7B54\uFF1A", analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.answer] }))] }))] }))] }), isExistWeight && status === STEP_COMPLETED && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ mt: 2, display: "flex" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", mr: 4 }, { children: ["\u8BC4\u5206\uFF1A", finalScore.toFixed(0), "\u5206"] })), (abilities.length === 0 || showAbilities || isDisplayAbilities) && (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: ["\u5355\u9898\u6743\u91CD\uFF1A", weight, "%"] }))] }))), isExistWeight && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ flex: "1 0", display: "flex", alignItems: "center" }, { children: status === STEP_COMPLETED && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ScoreSlider_1.default, { originScore: originScore, finalScore: finalScore, isShowScoreRank: true, onChangeCommitted: handleChangeCommitted }), abilities.length > 0 && !isDisplayAbilities && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "text", onClick: function () { return setShowAbilities(!showAbilities); } }, { children: showAbilities ? '收起' : '详情' })))] })) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ width: 150, textAlign: "right" }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body1", fontSize: 16, fontWeight: 500 }, { children: ["\u7EFC\u5408\u8BC4\u5206\uFF1A", comprehensiveScore] })) }))] }))), abilities.length > 0 && (showAbilities || isDisplayAbilities) && (0, jsx_runtime_1.jsx)(Abilities_1.default, { stepIndex: index })] }), token));
|
|
92
|
+
}, variant: "outlined", onClick: handleClickItem }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ fontSize: 14, color: token === stepToken ? ThemeProvider_1.theme.palette.primary.main : ThemeProvider_1.theme.palette.text.primary }, { children: [index + 1, ".", name] })), (0, jsx_runtime_1.jsxs)(styled_1.QuestionDesc, { children: [(0, jsx_runtime_1.jsx)(FormatQuote_1.default, {}), status === STEP_IN_CALCULATION ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary" }, { children: "\u89C6\u9891\u5904\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u5019" }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, { variant: "caption", color: "secondary", dangerouslySetInnerHTML: { __html: renderText } }), type === ai_question_1.QUESTION_TYPE.COLOR_BLINDNESS && (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img) && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)("img", { style: { width: 100, height: 100 }, src: analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img, alt: "" }), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary", ml: 1 }, { children: ["\u56DE\u7B54\uFF1A", analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.answer] }))] }))] }))] }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", mt: 2 }, { children: category === null || category === void 0 ? void 0 : category.map(function (label) { return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Chip, { color: "default", label: label, size: "small" }, label)); }) })), isExistWeight && status === STEP_COMPLETED && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ mt: 2, display: "flex" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", mr: 4 }, { children: ["\u8BC4\u5206\uFF1A", finalScore.toFixed(0), "\u5206"] })), (abilities.length === 0 || showAbilities || isDisplayAbilities) && (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: ["\u5355\u9898\u6743\u91CD\uFF1A", weight, "%"] }))] }))), isExistWeight && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ flex: "1 0", display: "flex", alignItems: "center" }, { children: status === STEP_COMPLETED && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ScoreSlider_1.default, { originScore: originScore, finalScore: finalScore, isShowScoreRank: true, onChangeCommitted: handleChangeCommitted }), abilities.length > 0 && !isDisplayAbilities && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "text", onClick: function () { return setShowAbilities(!showAbilities); } }, { children: showAbilities ? '收起' : '详情' })))] })) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ width: 150, textAlign: "right" }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body1", fontSize: 16, fontWeight: 500 }, { children: ["\u7EFC\u5408\u8BC4\u5206\uFF1A", comprehensiveScore] })) }))] }))), abilities.length > 0 && (showAbilities || isDisplayAbilities) && (0, jsx_runtime_1.jsx)(Abilities_1.default, { stepIndex: index })] }), token));
|
|
93
93
|
};
|
|
94
94
|
exports.default = QuestionItem;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const StyledSlider: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
color?: "secondary" | "primary" | undefined;
|
|
4
|
-
classes?: (Partial<import("
|
|
4
|
+
classes?: (Partial<import("fbm-ui/lib/mui").SliderUnstyledClasses> & {
|
|
5
5
|
colorPrimary?: string | undefined;
|
|
6
6
|
colorSecondary?: string | undefined;
|
|
7
7
|
sizeSmall?: string | undefined;
|
|
@@ -10,12 +10,12 @@ export declare const StyledSlider: import("@emotion/styled").StyledComponent<{
|
|
|
10
10
|
thumbSizeSmall?: string | undefined;
|
|
11
11
|
}) | undefined;
|
|
12
12
|
size?: "small" | "medium" | undefined;
|
|
13
|
-
sx?: import("@mui/system").SxProps<import("
|
|
13
|
+
sx?: import("@mui/system").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
|
|
14
14
|
} & {
|
|
15
15
|
'aria-label'?: string | undefined;
|
|
16
16
|
'aria-labelledby'?: string | undefined;
|
|
17
17
|
'aria-valuetext'?: string | undefined;
|
|
18
|
-
classes?: Partial<import("
|
|
18
|
+
classes?: Partial<import("fbm-ui/lib/mui").SliderUnstyledClasses> | undefined;
|
|
19
19
|
components?: {
|
|
20
20
|
Root?: import("react").ElementType<any> | undefined;
|
|
21
21
|
Track?: import("react").ElementType<any> | undefined;
|
|
@@ -26,13 +26,13 @@ export declare const StyledSlider: import("@emotion/styled").StyledComponent<{
|
|
|
26
26
|
ValueLabel?: import("react").ElementType<any> | undefined;
|
|
27
27
|
} | undefined;
|
|
28
28
|
componentsProps?: {
|
|
29
|
-
root?: (import("react").HTMLAttributes<HTMLSpanElement> & import("
|
|
30
|
-
track?: (import("react").HTMLAttributes<HTMLSpanElement> & import("
|
|
31
|
-
rail?: (import("react").HTMLAttributes<HTMLSpanElement> & import("
|
|
32
|
-
thumb?: (import("react").HTMLAttributes<HTMLSpanElement> & import("
|
|
33
|
-
mark?: (import("react").HTMLAttributes<HTMLSpanElement> & import("
|
|
34
|
-
markLabel?: (import("react").HTMLAttributes<HTMLSpanElement> & import("
|
|
35
|
-
valueLabel?: (import("
|
|
29
|
+
root?: (import("react").HTMLAttributes<HTMLSpanElement> & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
30
|
+
track?: (import("react").HTMLAttributes<HTMLSpanElement> & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
31
|
+
rail?: (import("react").HTMLAttributes<HTMLSpanElement> & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
32
|
+
thumb?: (import("react").HTMLAttributes<HTMLSpanElement> & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
33
|
+
mark?: (import("react").HTMLAttributes<HTMLSpanElement> & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
34
|
+
markLabel?: (import("react").HTMLAttributes<HTMLSpanElement> & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
35
|
+
valueLabel?: (import("fbm-ui/lib/mui").ValueLabelUnstyledProps & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
36
36
|
} | undefined;
|
|
37
37
|
defaultValue?: number | number[] | undefined;
|
|
38
38
|
disabled?: boolean | undefined;
|
|
@@ -40,7 +40,7 @@ export declare const StyledSlider: import("@emotion/styled").StyledComponent<{
|
|
|
40
40
|
getAriaLabel?: ((index: number) => string) | undefined;
|
|
41
41
|
getAriaValueText?: ((value: number, index: number) => string) | undefined;
|
|
42
42
|
isRtl?: boolean | undefined;
|
|
43
|
-
marks?: boolean | import("
|
|
43
|
+
marks?: boolean | import("fbm-ui/lib/mui").Mark[] | undefined;
|
|
44
44
|
max?: number | undefined;
|
|
45
45
|
min?: number | undefined;
|
|
46
46
|
name?: string | undefined;
|
|
@@ -56,16 +56,16 @@ export declare const StyledSlider: import("@emotion/styled").StyledComponent<{
|
|
|
56
56
|
valueLabelFormat?: string | ((value: number, index: number) => import("react").ReactNode) | undefined;
|
|
57
57
|
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
|
|
58
58
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
59
|
-
}, "name" | "defaultValue" | "tabIndex" | "color" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "max" | "min" | "orientation" | "scale" | "classes" | "
|
|
59
|
+
}, "track" | "name" | "defaultValue" | "tabIndex" | "color" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "max" | "min" | "orientation" | "scale" | "classes" | "sx" | "disabled" | "value" | "size" | "step" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "isRtl" | "marks" | "onChangeCommitted" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
60
60
|
export declare const ScoreSliderRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
61
61
|
children?: import("react").ReactNode;
|
|
62
|
-
} & import("@mui/system").MUIStyledCommonProps<import("
|
|
62
|
+
} & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
63
63
|
export declare const QuestionDesc: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
64
64
|
children?: import("react").ReactNode;
|
|
65
|
-
} & import("@mui/system").MUIStyledCommonProps<import("
|
|
65
|
+
} & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
66
66
|
export declare const AiScoreRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
67
67
|
children?: import("react").ReactNode;
|
|
68
|
-
} & import("@mui/system").MUIStyledCommonProps<import("
|
|
68
|
+
} & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
69
69
|
export declare const RankingRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
70
70
|
children?: import("react").ReactNode;
|
|
71
|
-
} & import("@mui/system").MUIStyledCommonProps<import("
|
|
71
|
+
} & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RankingRoot = exports.AiScoreRoot = exports.QuestionDesc = exports.ScoreSliderRoot = exports.StyledSlider = void 0;
|
|
4
4
|
var fbm_ui_1 = require("fbm-ui");
|
|
5
|
-
var
|
|
6
|
-
exports.StyledSlider = (0, fbm_ui_1.styled)(
|
|
5
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
6
|
+
exports.StyledSlider = (0, fbm_ui_1.styled)(mui_1.Slider)(function (_a) {
|
|
7
7
|
var theme = _a.theme;
|
|
8
8
|
return ({
|
|
9
9
|
color: theme.palette.primary.main,
|
|
@@ -13,6 +13,7 @@ exports.StyledSlider = (0, fbm_ui_1.styled)(material_1.Slider)(function (_a) {
|
|
|
13
13
|
},
|
|
14
14
|
'& .MuiSlider-track': {
|
|
15
15
|
border: 'none',
|
|
16
|
+
backgroundColor: theme.palette.primary.main,
|
|
16
17
|
},
|
|
17
18
|
'& .MuiSlider-thumb': {
|
|
18
19
|
height: 24,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { AiReportProps } from './interface';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<AiReportProps & import("react").RefAttributes<any>>>;
|
|
4
4
|
export default _default;
|
|
@@ -16,12 +16,10 @@ 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 react_1 = require("react");
|
|
19
|
-
var
|
|
20
|
-
var fbm_ui_1 = require("fbm-ui");
|
|
21
|
-
var styles_1 = require("@mui/material/styles");
|
|
19
|
+
var RootProvider_1 = __importDefault(require("../../components/RootProvider"));
|
|
22
20
|
var Root_1 = __importDefault(require("./Root"));
|
|
23
21
|
var AiReport = (0, react_1.forwardRef)(function (props, ref) {
|
|
24
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)(RootProvider_1.default, { children: (0, jsx_runtime_1.jsx)(Root_1.default, __assign({ ref: ref }, props)) }));
|
|
25
23
|
});
|
|
26
24
|
AiReport.displayName = 'AiReport';
|
|
27
25
|
exports.default = (0, react_1.memo)(AiReport);
|
|
@@ -9,6 +9,15 @@ export interface Question {
|
|
|
9
9
|
desc: string;
|
|
10
10
|
duration: number;
|
|
11
11
|
type: number;
|
|
12
|
+
category: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface Collection {
|
|
15
|
+
name: string;
|
|
16
|
+
weight: number;
|
|
17
|
+
score: number;
|
|
18
|
+
level: number;
|
|
19
|
+
rank: number;
|
|
20
|
+
total: number;
|
|
12
21
|
}
|
|
13
22
|
export interface AnalysisResult {
|
|
14
23
|
text: string;
|
|
@@ -64,6 +73,7 @@ export interface FaceAnalysis {
|
|
|
64
73
|
export interface AiInterviewReportList {
|
|
65
74
|
orderToken: string;
|
|
66
75
|
aiModel: AiModel;
|
|
76
|
+
collection: Collection[];
|
|
67
77
|
faceUrl: string;
|
|
68
78
|
faceAnalysis: FaceAnalysis;
|
|
69
79
|
score: number;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 react_1 = require("react");
|
|
19
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
20
|
+
var ScrollDialogContent_1 = __importDefault(require("../../components/ScrollDialogContent"));
|
|
21
|
+
var global_store_1 = require("../../store/ai-template/global-store");
|
|
22
|
+
var TemplateHeader_1 = __importDefault(require("./components/TemplateHeader"));
|
|
23
|
+
var TemplateMenu_1 = __importDefault(require("./components/TemplateMenu"));
|
|
24
|
+
var TemplateList_1 = __importDefault(require("./components/TemplateList"));
|
|
25
|
+
var CapabilityModel_1 = __importDefault(require("./components/CapabilityModel"));
|
|
26
|
+
var QuestionList_1 = __importDefault(require("./components/QuestionList"));
|
|
27
|
+
var AiTemplateDialog = (0, fbm_ui_1.styled)(fbm_ui_1.Dialog)({
|
|
28
|
+
'& .MuiPaper-root>.MuiBox-root>.MuiBox-root': {
|
|
29
|
+
marginBottom: 0,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
var AiTemplateRoot = (0, react_1.forwardRef)(function (props, ref) {
|
|
33
|
+
var _a = (0, global_store_1.useAiTemplateStore)(), open = _a.open, previewItem = _a.previewItem, updateProps = _a.updateProps, updateState = _a.updateState, handleIncrUse = _a.handleIncrUse;
|
|
34
|
+
var handleUseTemplate = (0, react_1.useCallback)(function () {
|
|
35
|
+
var _a;
|
|
36
|
+
(_a = props === null || props === void 0 ? void 0 : props.onUseTemplate) === null || _a === void 0 ? void 0 : _a.call(props, previewItem === null || previewItem === void 0 ? void 0 : previewItem.list);
|
|
37
|
+
if (previewItem === null || previewItem === void 0 ? void 0 : previewItem.token) {
|
|
38
|
+
handleIncrUse(previewItem === null || previewItem === void 0 ? void 0 : previewItem.token);
|
|
39
|
+
}
|
|
40
|
+
}, [handleIncrUse, previewItem, props]);
|
|
41
|
+
(0, react_1.useEffect)(function () {
|
|
42
|
+
if (!props.open) {
|
|
43
|
+
updateState({ previewItem: undefined });
|
|
44
|
+
}
|
|
45
|
+
updateProps(props);
|
|
46
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
47
|
+
}, [props]);
|
|
48
|
+
return ((0, jsx_runtime_1.jsx)(AiTemplateDialog, __assign({ open: open, size: "lg", header: function () { return ((0, jsx_runtime_1.jsx)(TemplateHeader_1.default, { name: (previewItem === null || previewItem === void 0 ? void 0 : previewItem.positionName) || (previewItem === null || previewItem === void 0 ? void 0 : previewItem.name), onClose: props.onClose, onBack: function () { return updateState({ previewItem: undefined }); }, onSearch: function () { } })); }, footer: function () {
|
|
49
|
+
return previewItem ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", justifyContent: "flex-end", padding: "12px 0" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ onClick: handleUseTemplate }, { children: "\u4F7F\u7528\u8BE5\u6A21\u7248" })) }))) : null;
|
|
50
|
+
}, onClose: props.onClose }, { children: (0, jsx_runtime_1.jsxs)(ScrollDialogContent_1.default, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: previewItem ? 'flex' : 'none', flexDirection: "column" }, { children: [(0, jsx_runtime_1.jsx)(CapabilityModel_1.default, {}), (0, jsx_runtime_1.jsx)(QuestionList_1.default, {})] })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: previewItem ? 'none' : 'flex' }, { children: [(0, jsx_runtime_1.jsx)(TemplateMenu_1.default, {}), (0, jsx_runtime_1.jsx)(TemplateList_1.default, {})] }))] }) })));
|
|
51
|
+
});
|
|
52
|
+
AiTemplateRoot.displayName = 'AiTemplateRoot';
|
|
53
|
+
exports.default = (0, react_1.memo)(AiTemplateRoot);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const rosePieOptions: {
|
|
2
|
+
tooltip: {
|
|
3
|
+
trigger: string;
|
|
4
|
+
formatter: string;
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
textStyle: {
|
|
7
|
+
color: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
visualMap: {
|
|
11
|
+
show: boolean;
|
|
12
|
+
min: number;
|
|
13
|
+
max: number;
|
|
14
|
+
inRange: {
|
|
15
|
+
color: string[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
series: {
|
|
19
|
+
type: string;
|
|
20
|
+
radius: string[];
|
|
21
|
+
center: string[];
|
|
22
|
+
data: {
|
|
23
|
+
value: number;
|
|
24
|
+
name: string;
|
|
25
|
+
}[];
|
|
26
|
+
roseType: string;
|
|
27
|
+
label: {
|
|
28
|
+
color: string;
|
|
29
|
+
};
|
|
30
|
+
labelLine: {
|
|
31
|
+
lineStyle: {
|
|
32
|
+
color: string;
|
|
33
|
+
cap: string;
|
|
34
|
+
};
|
|
35
|
+
smooth: number;
|
|
36
|
+
length: number;
|
|
37
|
+
length2: number;
|
|
38
|
+
};
|
|
39
|
+
itemStyle: {
|
|
40
|
+
shadowBlur: number;
|
|
41
|
+
shadowColor: string;
|
|
42
|
+
};
|
|
43
|
+
animationType: string;
|
|
44
|
+
animationEasing: string;
|
|
45
|
+
animationDelay: (idx: any) => number;
|
|
46
|
+
}[];
|
|
47
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.rosePieOptions = void 0;
|
|
4
|
+
exports.rosePieOptions = {
|
|
5
|
+
tooltip: {
|
|
6
|
+
trigger: 'item',
|
|
7
|
+
formatter: '{b}: {c}',
|
|
8
|
+
backgroundColor: 'rgba(0, 0, 0, 0.86)',
|
|
9
|
+
textStyle: {
|
|
10
|
+
color: '#fff',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
visualMap: {
|
|
14
|
+
show: false,
|
|
15
|
+
min: 235,
|
|
16
|
+
max: 410,
|
|
17
|
+
inRange: {
|
|
18
|
+
color: ['rgba(0, 217, 157, 0.2)', 'rgba(0, 217, 157, 0.4)', 'rgba(0, 217, 157, 0.6)', 'rgba(0, 217, 157, 0.8)', 'rgba(0, 217, 157, 1)'],
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
series: [
|
|
22
|
+
{
|
|
23
|
+
type: 'pie',
|
|
24
|
+
radius: ['30%', '70%'],
|
|
25
|
+
center: ['50%', '50%'],
|
|
26
|
+
data: [
|
|
27
|
+
{ value: 335, name: 'Direct' },
|
|
28
|
+
{ value: 310, name: 'Email' },
|
|
29
|
+
{ value: 274, name: 'Union Ads' },
|
|
30
|
+
{ value: 235, name: 'Video Ads' },
|
|
31
|
+
{ value: 410, name: 'Search Engine' },
|
|
32
|
+
].sort(function (a, b) {
|
|
33
|
+
return a.value - b.value;
|
|
34
|
+
}),
|
|
35
|
+
roseType: 'radius',
|
|
36
|
+
label: {
|
|
37
|
+
color: 'rgba(0, 0, 0, 0.86)',
|
|
38
|
+
},
|
|
39
|
+
labelLine: {
|
|
40
|
+
lineStyle: {
|
|
41
|
+
color: 'rgba(76, 175, 80, 0.3)',
|
|
42
|
+
cap: 'square',
|
|
43
|
+
},
|
|
44
|
+
smooth: 0.2,
|
|
45
|
+
length: 10,
|
|
46
|
+
length2: 20,
|
|
47
|
+
},
|
|
48
|
+
itemStyle: {
|
|
49
|
+
shadowBlur: 4,
|
|
50
|
+
shadowColor: 'rgb(26, 180, 138)',
|
|
51
|
+
},
|
|
52
|
+
animationType: 'scale',
|
|
53
|
+
animationEasing: 'elasticOut',
|
|
54
|
+
animationDelay: function (idx) {
|
|
55
|
+
return Math.random() * 200;
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
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-template/global-store");
|
|
20
|
+
var TemplatePie_1 = __importDefault(require("../../../../components/Charts/TemplatePie"));
|
|
21
|
+
var ScoreBigBall_1 = __importDefault(require("../../../../components/ScoreBigBall"));
|
|
22
|
+
var CapabilityModel = function () {
|
|
23
|
+
var _a, _b;
|
|
24
|
+
var _c = (0, global_store_1.useAiTemplateStore)(function (store) { return [store.menuId, store.previewItem]; }), menuId = _c.menuId, previewItem = _c.previewItem;
|
|
25
|
+
var totalScore = ((_a = previewItem === null || previewItem === void 0 ? void 0 : previewItem.collection) === null || _a === void 0 ? void 0 : _a.map(function (_a) {
|
|
26
|
+
var weight = _a.weight;
|
|
27
|
+
return weight;
|
|
28
|
+
}).reduce(function (p, c) { return p + c; }, 0)) || 0;
|
|
29
|
+
var isHistoryPatterns = menuId === 'historyPatterns';
|
|
30
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ width: "100%", display: "flex", flexDirection: "column" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", weight: "500" }, { children: isHistoryPatterns ? '能力模型' : '岗位能力模型' })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", bgcolor: "rgb(255, 152, 0)", color: "#fff", borderRadius: "9px", pl: 1, pr: 1, ml: 0.5 }, { children: previewItem === null || previewItem === void 0 ? void 0 : previewItem.recom_reason }))] })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ height: 300 }, { children: [(0, jsx_runtime_1.jsx)(TemplatePie_1.default, { id: new Date().getTime().toString(), source: (previewItem === null || previewItem === void 0 ? void 0 : previewItem.collection) || [] }), ((_b = previewItem === null || previewItem === void 0 ? void 0 : previewItem.collection) === null || _b === void 0 ? void 0 : _b.length) && (0, jsx_runtime_1.jsx)(ScoreBigBall_1.default, { width: 95, height: 95, score: totalScore, status: 3 })] })), !isHistoryPatterns && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ width: 588, p: 2, borderRadius: "8px", bgcolor: "rgba(76, 175, 80, 0.06)", margin: "0 auto" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "rgba(0, 0, 0, 0.56)", sx: { wordBreak: 'break-all' } }, { children: previewItem === null || previewItem === void 0 ? void 0 : previewItem.intro })) })))] })));
|
|
31
|
+
};
|
|
32
|
+
exports.default = CapabilityModel;
|
|
@@ -0,0 +1,26 @@
|
|
|
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 fbm_ui_1 = require("fbm-ui");
|
|
16
|
+
var icons_material_1 = require("@mui/icons-material");
|
|
17
|
+
var global_store_1 = require("../../../../store/ai-template/global-store");
|
|
18
|
+
var QuestionItem = function (_a) {
|
|
19
|
+
var item = _a.item, index = _a.index;
|
|
20
|
+
var name = item.name, desc = item.desc, category = item.category, weight = item.weight, originToken = item.originToken;
|
|
21
|
+
var _b = (0, global_store_1.useAiTemplateStore)(function (store) { return [store.currentSteps, store.onUseTemplate]; }), currentSteps = _b.currentSteps, onUseTemplate = _b.onUseTemplate;
|
|
22
|
+
console.log(currentSteps);
|
|
23
|
+
var isUsed = currentSteps === null || currentSteps === void 0 ? void 0 : currentSteps.find(function (step) { return step.originToken === originToken; });
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ border: isUsed ? '1px solid rgb(76, 175, 80)' : '1px solid rgba(0,0,0, 0.08)', borderRadius: "6px", mt: 2 }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ borderBottom: "1px solid rgba(0,0,0, 0.08)", p: 2, display: "flex", justifyContent: "space-between" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body1", weight: "500" }, { children: [index + 1, ".", name] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary", mt: 1 }, { children: desc }))] }), isUsed && (0, jsx_runtime_1.jsx)(icons_material_1.Done, { color: "primary" }, "icon")] })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", justifyContent: "space-between", padding: "8px 8px 8px 16px" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: [category === null || category === void 0 ? void 0 : category.map(function (label) { return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Chip, { color: "default", label: label }, label)); }), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", ml: 2 }, { children: ["\u6743\u91CD\u5360\u6BD4\uFF1A", weight, "%"] }))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", color: "inherit", onClick: function () { return onUseTemplate === null || onUseTemplate === void 0 ? void 0 : onUseTemplate([item]); } }, { children: "\u4F7F\u7528" }))] }))] })));
|
|
25
|
+
};
|
|
26
|
+
exports.default = QuestionItem;
|
|
@@ -0,0 +1,25 @@
|
|
|
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-template/global-store");
|
|
20
|
+
var Item_1 = __importDefault(require("./Item"));
|
|
21
|
+
var QuestionList = function () {
|
|
22
|
+
var previewItem = (0, global_store_1.useAiTemplateStore)(function (store) { return [store.previewItem]; }).previewItem;
|
|
23
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", flexDirection: "column", mt: 3 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", weight: "500" }, { children: "\u9898\u76EE\u5217\u8868" })) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, { children: previewItem === null || previewItem === void 0 ? void 0 : previewItem.list.map(function (item, index) { return ((0, jsx_runtime_1.jsx)(Item_1.default, { item: item, index: index }, item.token)); }) })] })));
|
|
24
|
+
};
|
|
25
|
+
exports.default = QuestionList;
|