eli-video-interview 1.2.2 → 1.2.3-5.alpha
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/README.md +1 -1
- package/esm/assets/icons/AI.svg +1 -0
- package/esm/components/AiHeaderTitle/index.d.ts +4 -0
- package/esm/components/AiHeaderTitle/index.js +19 -0
- package/esm/components/AiHeaderTitle/interface.d.ts +4 -0
- package/esm/components/BigBallSvg/index.js +1 -1
- package/esm/components/Charts/Chart.d.ts +1 -1
- package/esm/components/Charts/Chart.js +8 -8
- package/esm/components/Charts/ReportPie.js +15 -4
- package/esm/components/RootProvider/index.js +2 -2
- package/esm/components/ScoreBigBall/index.js +1 -1
- package/esm/components/ScrollDialogContent/index.js +1 -1
- package/esm/components/VideoPreview/index.js +2 -3
- package/esm/constants/ai-question.d.ts +1 -1
- package/esm/constants/ai-report.d.ts +27 -0
- package/esm/constants/ai-report.js +27 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/modules/ai-ability/Root.d.ts +3 -2
- package/esm/modules/ai-ability/Root.js +32 -19
- package/esm/modules/ai-ability/components/AbilityFormItem/index.d.ts +14 -0
- package/esm/modules/ai-ability/components/AbilityFormItem/index.js +129 -0
- package/esm/modules/ai-ability/components/AddAbility/index.d.ts +4 -0
- package/esm/modules/ai-ability/components/AddAbility/index.js +191 -0
- package/esm/modules/ai-ability/components/UpdateAbility/index.d.ts +2 -2
- package/esm/modules/ai-ability/components/UpdateAbility/index.js +98 -23
- package/esm/modules/ai-ability/const.d.ts +8 -0
- package/esm/modules/ai-ability/const.js +34 -0
- package/esm/modules/ai-ability/index.d.ts +3 -1
- package/esm/modules/ai-ability/index.js +14 -3
- package/esm/modules/ai-ability/interface.d.ts +38 -0
- package/esm/modules/ai-ability/styled.d.ts +3 -0
- package/esm/modules/ai-ability/styled.js +5 -1
- package/esm/modules/ai-ability-select/Root.d.ts +4 -0
- package/esm/modules/ai-ability-select/Root.js +40 -0
- package/esm/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.d.ts +4 -0
- package/esm/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.js +22 -0
- package/esm/modules/ai-ability-select/components/AiAbilityItem/index.d.ts +4 -0
- package/esm/modules/ai-ability-select/components/AiAbilityItem/index.js +40 -0
- package/esm/modules/ai-ability-select/components/AiAbilityItem/interface.d.ts +13 -0
- package/esm/modules/ai-ability-select/components/AiAbilityItem/interface.js +1 -0
- package/esm/modules/ai-ability-select/components/AiAbilityItem/styled.d.ts +2 -0
- package/esm/modules/ai-ability-select/components/AiAbilityItem/styled.js +8 -0
- package/esm/modules/ai-ability-select/components/AiAbilityList/index.d.ts +4 -0
- package/esm/modules/ai-ability-select/components/AiAbilityList/index.js +19 -0
- package/esm/modules/ai-ability-select/components/AiAbilityList/interface.d.ts +4 -0
- package/esm/modules/ai-ability-select/components/AiAbilityList/interface.js +1 -0
- package/esm/modules/ai-ability-select/index.d.ts +4 -0
- package/esm/modules/ai-ability-select/index.js +20 -0
- package/esm/modules/ai-ability-select/interface.d.ts +27 -0
- package/esm/modules/ai-ability-select/interface.js +1 -0
- package/esm/modules/ai-question/Root.d.ts +1 -1
- package/esm/modules/ai-question/Root.js +22 -11
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +1 -1
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +14 -9
- package/esm/modules/ai-question/components/AiAnalysis/MainPoints.js +2 -2
- package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.js +1 -1
- package/esm/modules/ai-question/components/AiAnalysis/index.js +10 -18
- package/esm/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +6 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/const.js +7 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +1 -1
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +40 -28
- package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +6 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +1 -1
- package/esm/modules/ai-question/components/BaseAccordion/index.js +8 -8
- package/esm/modules/ai-question/components/BaseAccordion/styled.js +1 -1
- package/esm/modules/ai-question/components/BootVideo/index.d.ts +1 -1
- package/esm/modules/ai-question/components/BootVideo/index.js +27 -14
- package/esm/modules/ai-question/components/BootVideo/styled.js +6 -5
- package/esm/modules/ai-question/components/QuestionModel/AutoCombine.d.ts +4 -0
- package/esm/modules/ai-question/components/QuestionModel/AutoCombine.js +19 -0
- package/esm/modules/ai-question/components/QuestionModel/Header.js +6 -6
- package/esm/modules/ai-question/components/QuestionModel/Interactive.d.ts +6 -0
- package/esm/modules/ai-question/components/QuestionModel/Interactive.js +26 -0
- package/esm/modules/ai-question/components/QuestionModel/Item.d.ts +2 -2
- package/esm/modules/ai-question/components/QuestionModel/Item.js +14 -7
- package/esm/modules/ai-question/components/QuestionModel/List.js +28 -8
- package/esm/modules/ai-question/components/QuestionModel/Skeleton.js +1 -1
- package/esm/modules/ai-question/components/QuestionModel/index.js +12 -8
- package/esm/modules/ai-question/components/QuestionModel/interface.d.ts +5 -0
- package/esm/modules/ai-question/components/QuestionModel/styled.js +1 -1
- package/esm/modules/ai-question/components/QuestionPreview/index.js +6 -6
- package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +1 -1
- package/esm/modules/ai-question/components/QuestionPreview/styled.js +1 -1
- package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +10 -10
- package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.js +1 -1
- package/esm/modules/ai-question/components/QuestionTemplate/index.d.ts +2 -1
- package/esm/modules/ai-question/components/QuestionTemplate/index.js +7 -6
- package/esm/modules/ai-question/components/QuestionTemplate/interface.d.ts +10 -0
- package/esm/modules/ai-question/components/QuestionUpdate/Form.d.ts +2 -2
- package/esm/modules/ai-question/components/QuestionUpdate/Form.js +49 -13
- package/esm/modules/ai-question/components/QuestionUpdate/RandomQuestion.d.ts +4 -0
- package/esm/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +60 -0
- package/esm/modules/ai-question/components/QuestionUpdate/SelectQuestion.d.ts +8 -0
- package/esm/modules/ai-question/components/QuestionUpdate/SelectQuestion.js +52 -0
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.d.ts +2 -2
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +45 -49
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoicePreview.d.ts +6 -0
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoicePreview.js +47 -0
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.d.ts +5 -0
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.js +65 -0
- package/esm/modules/ai-question/components/QuestionUpdate/const.js +1 -0
- package/esm/modules/ai-question/components/QuestionUpdate/index.js +84 -23
- package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +13 -0
- package/esm/modules/ai-question/components/QuestionUpdate/styled.d.ts +6 -0
- package/esm/modules/ai-question/components/QuestionUpdate/styled.js +52 -0
- package/esm/modules/ai-question/index.js +3 -5
- package/esm/modules/ai-question/interface.d.ts +4 -0
- package/esm/modules/ai-question/useAiQuestion.d.ts +1 -0
- package/esm/modules/ai-report/Root.js +11 -8
- package/esm/modules/ai-report/components/AIEvaluate/Evaluate.js +28 -13
- package/esm/modules/ai-report/components/AIEvaluate/Graph.d.ts +1 -0
- package/esm/modules/ai-report/components/AIEvaluate/Graph.js +55 -25
- package/esm/modules/ai-report/components/AIEvaluate/index.d.ts +1 -0
- package/esm/modules/ai-report/components/AIEvaluate/index.js +20 -14
- package/esm/modules/ai-report/components/MenuAnchor/index.d.ts +4 -0
- package/esm/modules/ai-report/components/MenuAnchor/index.js +115 -0
- package/esm/modules/ai-report/components/NotFinish/index.js +2 -2
- package/esm/modules/ai-report/components/RankingRange/Item.js +2 -2
- package/esm/modules/ai-report/components/RankingRange/index.js +1 -1
- package/esm/modules/ai-report/components/RankingRange/styled.js +1 -1
- package/esm/modules/ai-report/components/ScoreReport/Bar.js +16 -10
- package/esm/modules/ai-report/components/ScoreReport/Failed.js +1 -1
- package/esm/modules/ai-report/components/ScoreReport/Report.js +14 -6
- package/esm/modules/ai-report/components/ScoreReport/Score.d.ts +1 -1
- package/esm/modules/ai-report/components/ScoreReport/Score.js +13 -9
- package/esm/modules/ai-report/components/ScoreReport/ScoreLegend.js +2 -2
- package/esm/modules/ai-report/components/ScoreReport/index.d.ts +1 -1
- package/esm/modules/ai-report/components/ScoreReport/index.js +11 -11
- package/esm/modules/ai-report/components/ScoreReport/interface.d.ts +2 -0
- package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +3 -3
- package/esm/modules/ai-report/components/ScoreReport/styled.js +1 -1
- package/esm/modules/ai-report/components/Suggestion/Suggestion.d.ts +4 -0
- package/esm/modules/ai-report/components/Suggestion/Suggestion.js +31 -0
- package/esm/modules/ai-report/components/Suggestion/index.d.ts +3 -0
- package/esm/modules/ai-report/components/Suggestion/index.js +27 -0
- package/esm/modules/ai-report/components/VideoQuestion/Abilities.d.ts +1 -1
- package/esm/modules/ai-report/components/VideoQuestion/Abilities.js +5 -5
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +1 -1
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +15 -12
- package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.d.ts +1 -1
- package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.js +6 -9
- package/esm/modules/ai-report/components/VideoQuestion/index.js +4 -3
- package/esm/modules/ai-report/components/VideoQuestion/interface.d.ts +1 -1
- package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +2 -2
- package/esm/modules/ai-report/components/WorkPlaces/ScoreSlider.d.ts +4 -0
- package/esm/modules/ai-report/components/WorkPlaces/ScoreSlider.js +24 -0
- package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +11 -0
- package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.js +55 -0
- package/esm/modules/ai-report/components/WorkPlaces/index.d.ts +3 -0
- package/esm/modules/ai-report/components/WorkPlaces/index.js +69 -0
- package/esm/modules/ai-report/components/WorkPlaces/interface.d.ts +7 -0
- package/esm/modules/ai-report/components/WorkPlaces/interface.js +1 -0
- package/esm/modules/ai-report/components/WorkPlaces/styled.d.ts +62 -0
- package/esm/modules/ai-report/components/WorkPlaces/styled.js +27 -0
- package/esm/modules/ai-report/index.js +1 -0
- package/esm/modules/ai-report/interface.d.ts +60 -0
- package/esm/modules/ai-report/useAiReport.d.ts +6 -0
- package/esm/modules/ai-report/utils.d.ts +1 -0
- package/esm/modules/ai-report/utils.js +1 -0
- package/esm/modules/ai-template/Root.js +5 -5
- package/esm/modules/ai-template/components/CapabilityModel/index.js +1 -1
- package/esm/modules/ai-template/components/QuestionList/Item.js +1 -1
- package/esm/modules/ai-template/components/TemplateHeader/index.js +2 -2
- package/esm/modules/ai-template/components/TemplateList/index.js +4 -4
- package/esm/modules/ai-template/components/TemplateList/styled.d.ts +3 -3
- package/esm/modules/ai-template/components/TemplateList/styled.js +1 -1
- package/esm/modules/ai-template/components/TemplateMenu/index.js +3 -3
- package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +1 -1
- package/esm/modules/ai-template/components/TemplateMenu/styled.js +1 -1
- package/esm/modules/ai-template/interface.d.ts +1 -1
- package/esm/services/ai-ability.d.ts +15 -3
- package/esm/services/ai-ability.js +23 -3
- package/esm/services/ai-question.d.ts +1 -1
- package/esm/services/ai-question.js +1 -1
- package/esm/services/ai-report.d.ts +5 -0
- package/esm/services/ai-report.js +4 -0
- package/esm/store/ai-ability/question-ability-store.d.ts +12 -0
- package/esm/store/ai-ability/question-ability-store.js +10 -0
- package/esm/store/ai-ability-select/question-ability-store.d.ts +18 -0
- package/esm/store/ai-ability-select/question-ability-store.js +13 -0
- package/esm/store/ai-question/ai-analysis-store.d.ts +7 -3
- package/esm/store/ai-question/ai-analysis-store.js +39 -14
- package/esm/store/ai-question/boot-video-store.js +7 -2
- package/esm/store/ai-question/global-store.d.ts +3 -0
- package/esm/store/ai-question/global-store.js +1 -0
- package/esm/store/ai-question/question-model-store.js +2 -2
- package/esm/store/ai-question/question-preview-store.js +1 -1
- package/esm/store/ai-question/question-template-store.js +1 -1
- package/esm/store/ai-question/question-update-store.js +1 -1
- package/esm/store/ai-report/global-store.d.ts +18 -0
- package/esm/store/ai-report/global-store.js +2 -0
- package/esm/store/ai-template/global-store.js +1 -1
- package/esm/utils/interceptor.js +2 -2
- package/lib/assets/icons/AI.svg +1 -0
- package/lib/components/AiHeaderTitle/index.d.ts +4 -0
- package/lib/components/AiHeaderTitle/index.js +24 -0
- package/lib/components/AiHeaderTitle/interface.d.ts +4 -0
- package/lib/components/Charts/Chart.d.ts +1 -1
- package/lib/components/Charts/Chart.js +8 -8
- package/lib/components/Charts/ReportPie.js +15 -4
- package/lib/components/RootProvider/index.js +1 -1
- package/lib/components/ScoreBigBall/index.js +1 -1
- package/lib/components/ScrollDialogContent/index.js +1 -1
- package/lib/components/VideoPreview/index.js +1 -2
- package/lib/constants/ai-question.d.ts +1 -1
- package/lib/constants/ai-report.d.ts +27 -0
- package/lib/constants/ai-report.js +28 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -1
- package/lib/modules/ai-ability/Root.d.ts +3 -2
- package/lib/modules/ai-ability/Root.js +32 -19
- package/lib/modules/ai-ability/components/AbilityFormItem/index.d.ts +14 -0
- package/lib/modules/ai-ability/components/AbilityFormItem/index.js +131 -0
- package/lib/modules/ai-ability/components/AddAbility/index.d.ts +4 -0
- package/lib/modules/ai-ability/components/AddAbility/index.js +196 -0
- package/lib/modules/ai-ability/components/UpdateAbility/index.d.ts +2 -2
- package/lib/modules/ai-ability/components/UpdateAbility/index.js +100 -22
- package/lib/modules/ai-ability/const.d.ts +8 -0
- package/lib/modules/ai-ability/const.js +37 -0
- package/lib/modules/ai-ability/index.d.ts +3 -1
- package/lib/modules/ai-ability/index.js +14 -3
- package/lib/modules/ai-ability/interface.d.ts +38 -0
- package/lib/modules/ai-ability/styled.d.ts +3 -0
- package/lib/modules/ai-ability/styled.js +5 -1
- package/lib/modules/ai-ability-select/Root.d.ts +4 -0
- package/lib/modules/ai-ability-select/Root.js +45 -0
- package/lib/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.d.ts +4 -0
- package/lib/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.js +24 -0
- package/lib/modules/ai-ability-select/components/AiAbilityItem/index.d.ts +4 -0
- package/lib/modules/ai-ability-select/components/AiAbilityItem/index.js +45 -0
- package/lib/modules/ai-ability-select/components/AiAbilityItem/interface.d.ts +13 -0
- package/lib/modules/ai-ability-select/components/AiAbilityItem/interface.js +2 -0
- package/lib/modules/ai-ability-select/components/AiAbilityItem/styled.d.ts +2 -0
- package/lib/modules/ai-ability-select/components/AiAbilityItem/styled.js +11 -0
- package/lib/modules/ai-ability-select/components/AiAbilityList/index.d.ts +4 -0
- package/lib/modules/ai-ability-select/components/AiAbilityList/index.js +24 -0
- package/lib/modules/ai-ability-select/components/AiAbilityList/interface.d.ts +4 -0
- package/lib/modules/ai-ability-select/components/AiAbilityList/interface.js +2 -0
- package/lib/modules/ai-ability-select/components/AiAbilityList/styled.d.ts +0 -0
- package/lib/modules/ai-ability-select/components/AiAbilityList/styled.js +1 -0
- package/lib/modules/ai-ability-select/index.d.ts +4 -0
- package/lib/modules/ai-ability-select/index.js +25 -0
- package/lib/modules/ai-ability-select/interface.d.ts +27 -0
- package/lib/modules/ai-ability-select/interface.js +2 -0
- package/lib/modules/ai-question/Root.d.ts +1 -1
- package/lib/modules/ai-question/Root.js +22 -11
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +1 -1
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +13 -8
- package/lib/modules/ai-question/components/AiAnalysis/MainPoints.js +1 -1
- package/lib/modules/ai-question/components/AiAnalysis/index.js +9 -17
- package/lib/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +6 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/const.js +8 -1
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +1 -1
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +40 -28
- package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +6 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +1 -1
- package/lib/modules/ai-question/components/BaseAccordion/index.js +3 -3
- package/lib/modules/ai-question/components/BootVideo/index.d.ts +1 -1
- package/lib/modules/ai-question/components/BootVideo/index.js +31 -18
- package/lib/modules/ai-question/components/BootVideo/styled.js +5 -4
- package/lib/modules/ai-question/components/QuestionModel/AutoCombine.d.ts +4 -0
- package/lib/modules/ai-question/components/QuestionModel/AutoCombine.js +21 -0
- package/lib/modules/ai-question/components/QuestionModel/Header.js +5 -8
- package/lib/modules/ai-question/components/QuestionModel/Interactive.d.ts +6 -0
- package/lib/modules/ai-question/components/QuestionModel/Interactive.js +31 -0
- package/lib/modules/ai-question/components/QuestionModel/Item.d.ts +2 -2
- package/lib/modules/ai-question/components/QuestionModel/Item.js +14 -7
- package/lib/modules/ai-question/components/QuestionModel/List.js +27 -7
- package/lib/modules/ai-question/components/QuestionModel/index.js +12 -8
- package/lib/modules/ai-question/components/QuestionModel/interface.d.ts +5 -0
- package/lib/modules/ai-question/components/QuestionPreview/index.js +6 -6
- package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +1 -1
- package/lib/modules/ai-question/components/QuestionPreview/styled.js +1 -1
- package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +10 -10
- package/lib/modules/ai-question/components/QuestionTemplate/index.d.ts +2 -1
- package/lib/modules/ai-question/components/QuestionTemplate/index.js +7 -6
- package/lib/modules/ai-question/components/QuestionTemplate/interface.d.ts +10 -0
- package/lib/modules/ai-question/components/QuestionUpdate/Form.d.ts +2 -2
- package/lib/modules/ai-question/components/QuestionUpdate/Form.js +49 -13
- package/lib/modules/ai-question/components/QuestionUpdate/RandomQuestion.d.ts +4 -0
- package/lib/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +65 -0
- package/lib/modules/ai-question/components/QuestionUpdate/SelectQuestion.d.ts +8 -0
- package/lib/modules/ai-question/components/QuestionUpdate/SelectQuestion.js +54 -0
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.d.ts +2 -2
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +46 -47
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoicePreview.d.ts +6 -0
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoicePreview.js +49 -0
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.d.ts +5 -0
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.js +67 -0
- package/lib/modules/ai-question/components/QuestionUpdate/const.js +1 -0
- package/lib/modules/ai-question/components/QuestionUpdate/index.js +84 -23
- package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +13 -0
- package/lib/modules/ai-question/components/QuestionUpdate/styled.d.ts +6 -0
- package/lib/modules/ai-question/components/QuestionUpdate/styled.js +55 -0
- package/lib/modules/ai-question/index.js +3 -5
- package/lib/modules/ai-question/interface.d.ts +4 -0
- package/lib/modules/ai-question/useAiQuestion.d.ts +1 -0
- package/lib/modules/ai-report/Root.js +9 -6
- package/lib/modules/ai-report/components/AIEvaluate/Evaluate.js +26 -11
- package/lib/modules/ai-report/components/AIEvaluate/Graph.d.ts +1 -0
- package/lib/modules/ai-report/components/AIEvaluate/Graph.js +55 -25
- package/lib/modules/ai-report/components/AIEvaluate/index.d.ts +1 -0
- package/lib/modules/ai-report/components/AIEvaluate/index.js +17 -11
- package/lib/modules/ai-report/components/MenuAnchor/index.d.ts +4 -0
- package/lib/modules/ai-report/components/MenuAnchor/index.js +117 -0
- package/lib/modules/ai-report/components/NotFinish/index.js +1 -1
- package/lib/modules/ai-report/components/ScoreReport/Bar.js +15 -9
- package/lib/modules/ai-report/components/ScoreReport/Report.js +14 -6
- package/lib/modules/ai-report/components/ScoreReport/Score.d.ts +1 -1
- package/lib/modules/ai-report/components/ScoreReport/Score.js +13 -9
- package/lib/modules/ai-report/components/ScoreReport/ScoreLegend.js +1 -1
- package/lib/modules/ai-report/components/ScoreReport/index.d.ts +1 -1
- package/lib/modules/ai-report/components/ScoreReport/index.js +12 -12
- package/lib/modules/ai-report/components/ScoreReport/interface.d.ts +2 -0
- package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +3 -3
- package/lib/modules/ai-report/components/Suggestion/Suggestion.d.ts +4 -0
- package/lib/modules/ai-report/components/Suggestion/Suggestion.js +33 -0
- package/lib/modules/ai-report/components/Suggestion/index.d.ts +3 -0
- package/lib/modules/ai-report/components/Suggestion/index.js +32 -0
- package/lib/modules/ai-report/components/VideoQuestion/Abilities.d.ts +1 -1
- package/lib/modules/ai-report/components/VideoQuestion/Abilities.js +5 -5
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +1 -1
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +14 -11
- package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.d.ts +1 -1
- package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.js +6 -9
- package/lib/modules/ai-report/components/VideoQuestion/index.js +4 -3
- package/lib/modules/ai-report/components/VideoQuestion/interface.d.ts +1 -1
- package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +2 -2
- package/lib/modules/ai-report/components/WorkPlaces/ScoreSlider.d.ts +4 -0
- package/lib/modules/ai-report/components/WorkPlaces/ScoreSlider.js +26 -0
- package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +11 -0
- package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.js +57 -0
- package/lib/modules/ai-report/components/WorkPlaces/index.d.ts +3 -0
- package/lib/modules/ai-report/components/WorkPlaces/index.js +74 -0
- package/lib/modules/ai-report/components/WorkPlaces/interface.d.ts +7 -0
- package/lib/modules/ai-report/components/WorkPlaces/interface.js +2 -0
- package/lib/modules/ai-report/components/WorkPlaces/styled.d.ts +62 -0
- package/lib/modules/ai-report/components/WorkPlaces/styled.js +30 -0
- package/lib/modules/ai-report/index.js +1 -0
- package/lib/modules/ai-report/interface.d.ts +60 -0
- package/lib/modules/ai-report/useAiReport.d.ts +6 -0
- package/lib/modules/ai-report/utils.d.ts +1 -0
- package/lib/modules/ai-report/utils.js +5 -0
- package/lib/modules/ai-template/Root.js +3 -3
- package/lib/modules/ai-template/components/CapabilityModel/index.js +1 -1
- package/lib/modules/ai-template/components/TemplateHeader/index.js +1 -1
- package/lib/modules/ai-template/components/TemplateList/index.js +2 -2
- package/lib/modules/ai-template/components/TemplateList/styled.d.ts +3 -3
- package/lib/modules/ai-template/components/TemplateMenu/index.js +1 -1
- package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +1 -1
- package/lib/modules/ai-template/interface.d.ts +1 -1
- package/lib/services/ai-ability.d.ts +15 -3
- package/lib/services/ai-ability.js +28 -4
- package/lib/services/ai-question.d.ts +1 -1
- package/lib/services/ai-question.js +1 -1
- package/lib/services/ai-report.d.ts +5 -0
- package/lib/services/ai-report.js +6 -1
- package/lib/store/ai-ability/question-ability-store.d.ts +12 -0
- package/lib/store/ai-ability/question-ability-store.js +13 -0
- package/lib/store/ai-ability-select/question-ability-store.d.ts +18 -0
- package/lib/store/ai-ability-select/question-ability-store.js +16 -0
- package/lib/store/ai-question/ai-analysis-store.d.ts +7 -3
- package/lib/store/ai-question/ai-analysis-store.js +39 -14
- package/lib/store/ai-question/boot-video-store.js +7 -2
- package/lib/store/ai-question/global-store.d.ts +3 -0
- package/lib/store/ai-question/global-store.js +1 -0
- package/lib/store/ai-question/question-template-store.js +1 -1
- package/lib/store/ai-question/question-update-store.js +1 -1
- package/lib/store/ai-report/global-store.d.ts +18 -0
- package/lib/store/ai-report/global-store.js +2 -0
- package/lib/utils/interceptor.js +2 -2
- package/package.json +8 -2
- package/esm/modules/ai-ability/components/UpdateAbility/interface.d.ts +0 -7
- package/lib/modules/ai-ability/components/UpdateAbility/interface.d.ts +0 -7
- /package/esm/{modules/ai-ability/components/UpdateAbility → components/AiHeaderTitle}/interface.js +0 -0
- /package/lib/{modules/ai-ability/components/UpdateAbility → components/AiHeaderTitle}/interface.js +0 -0
|
@@ -10,25 +10,31 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { rankPercent } from '../../utils';
|
|
13
14
|
import Evaluate from './Evaluate';
|
|
14
15
|
import Graph from './Graph';
|
|
15
16
|
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
17
|
+
import AiHeaderTitle from "../../../../components/AiHeaderTitle";
|
|
18
|
+
import { InfoOutlineIcon, Tooltip, Typography } from 'fbm-ui';
|
|
19
|
+
import { Box, Collapse, Divider, Paper, Stack } from 'fbm-ui/lib/mui';
|
|
20
|
+
import { useState } from 'react';
|
|
19
21
|
var Index = function () {
|
|
20
|
-
var _a;
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
var _a, _b;
|
|
23
|
+
var _c = useAiReportStore(function (store) { return [
|
|
24
|
+
store.reportResult,
|
|
25
|
+
store.operableButtons,
|
|
26
|
+
]; }), reportResult = _c.reportResult, showAiDimension = _c.showAiDimension, canEditAiDimension = _c.canEditAiDimension, customInterviewDimRankMap = _c.customInterviewDimRankMap;
|
|
27
|
+
var expand = useState(true)[0];
|
|
28
|
+
// const handleExpandChange = useCallback(() => {
|
|
29
|
+
// setExpand(!expand);
|
|
30
|
+
// }, [expand]);
|
|
31
|
+
if (!showAiDimension || ((_a = reportResult === null || reportResult === void 0 ? void 0 : reportResult.evaluations) === null || _a === void 0 ? void 0 : _a.length) === 0)
|
|
27
32
|
return null;
|
|
28
|
-
return (_jsxs(Box, __assign({ component: Paper, variant: "outlined", px: 2, mt: 2 }, { children: [_jsxs(Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1 }, { children: [_jsx(
|
|
33
|
+
return (_jsxs(Box, __assign({ id: "report-evaluate", component: Paper, variant: "outlined", px: 2, mt: 2 }, { children: [_jsxs(Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1, marginBottom: 1 }, { children: [_jsx(AiHeaderTitle, { name: "AI\u57FA\u7840\u80FD\u529B" }), _jsx(Tooltip, __assign({ title: _jsxs("span", { children: ["\u7ED3\u679C\u8BF4\u660E\uFF1A", _jsx("br", {}), "AI\u57FA\u7840\u80FD\u529B\u4ECE\u8BED\u901F\u3001\u666E\u901A\u8BDD\u3001\u8BED\u8A00\u6D41\u7545\u5EA6\u3001\u8981\u70B9\u5206\u6790\u5339\u914D\u5EA6\u3001\u8BED\u8A00\u4E30\u5BCC\u5EA6\u3001\u5F62\u8C61\u516D\u4E2A\u7EF4\u5EA6\u5BF9\u5019\u9009\u4EBA\u5728\u9762\u8BD5\u4E2D\u7684\u56DE\u7B54\u8868\u73B0\u8FDB\u884C\u8BC4\u4EF7\uFF0C\u6BCF\u4E2A\u7EF4\u5EA6\u5206\u4E3A\u4E09\u4E2A\u6863\uFF0C\u5206\u522B\u4E3A\uFF1A\u524D30%\u4EE3\u8868\u4F18\u79C0\u3001\u4E2D\u95F430%~70%\u4EE3\u8868\u9002\u4E2D\u3001\u540E30%\u4EE3\u8868\u6B20\u4F73\u3002", _jsx("br", {}), "\u6BCF\u4E2A\u80FD\u529B\u7684\u4E09\u6863\u7684\u5206\u6570\u503C\u4F9D\u636E\u5168\u56FD\u5927\u6570\u636E\u7EDF\u8BA1\u800C\u5B9A\u3002\u6839\u636E\u5019\u9009\u4EBA\u5F53\u524DAI\u89C6\u9891\u6B65\u9AA4\u4E0B\u7684\u6BCF\u4E2A\u80FD\u529B\u7684\u5E73\u5747\u5206\u6765\u786E\u5B9A\u6BCF\u4E2A\u80FD\u529B\u7684\u8BC4\u4EF7\u3002\u76F8\u540C\u7684\u5F97\u5206\uFF0C\u6210\u7EE9\u5148\u51FA\u7684\u6392\u540D\u9760\u524D\u3002"] }) }, { children: _jsx(Box, __assign({ display: "flex", alignItems: "center" }, { children: _jsx(InfoOutlineIcon, { sx: { fontSize: '16px' } }) })) }))] })), _jsxs(Collapse, __assign({ in: expand }, { children: [(_b = reportResult === null || reportResult === void 0 ? void 0 : reportResult.evaluations) === null || _b === void 0 ? void 0 : _b.map(function (v) {
|
|
29
34
|
var _a;
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
var c = customInterviewDimRankMap === null || customInterviewDimRankMap === void 0 ? void 0 : customInterviewDimRankMap[v.evaluationToken];
|
|
36
|
+
var rank = rankPercent((c === null || c === void 0 ? void 0 : c.rank) || (v === null || v === void 0 ? void 0 : v.rank), (c === null || c === void 0 ? void 0 : c.total) || (v === null || v === void 0 ? void 0 : v.total));
|
|
37
|
+
return (_jsxs(Box, __assign({ component: Paper, elevation: 0, bgcolor: "#f9f9f9", mb: 2, pb: 2 }, { children: [_jsxs(Stack, __assign({ px: 2, pt: 2 }, { children: [_jsxs(Stack, __assign({ direction: "row", alignItems: "center", spacing: 2 }, { children: [_jsx(Typography, __assign({ variant: "h6", fontWeight: "medium", sx: { fontWeight: 500 } }, { children: v.evaluationDimensionName })), !isNaN(rank) && (_jsxs(Typography, __assign({ variant: "body2" }, { children: ["\u51FB\u8D25\u4E86", _jsxs(Typography, __assign({ variant: "body2", fontWeight: "medium", display: "inline", color: "#4caf50" }, { children: [rank.toFixed(2), "%"] })), "\u7684\u5019\u9009\u4EBA"] })))] })), _jsx(Typography, __assign({ mt: 1, mb: 2, variant: "body2", fontWeight: "medium", color: "#4caf50" }, { children: v.impressions.join('、') }))] })), _jsx(Divider, { sx: { borderColor: 'rgba(0,0,0,0.08)' } }), _jsxs(Stack, __assign({ px: 2 }, { children: [((_a = v.items) === null || _a === void 0 ? void 0 : _a.length) > 0 && (_jsx(Box, __assign({ mt: 2 }, { children: _jsx(Graph, { items: v.items }) }))), _jsxs(Stack, __assign({ spacing: 2, mt: 2 }, { children: [_jsx(Evaluate, { canEdit: canEditAiDimension, token: v.evaluationToken, evaluations: v.evaluations, title: "\u8BC4\u4EF7\u5185\u5BB9", field: "evaluations", mode: "show" }), _jsx(Evaluate, { canEdit: canEditAiDimension, token: v.evaluationToken, evaluations: v.suggestions, title: "\u63D0\u9AD8\u5EFA\u8BAE", field: "suggestions", mode: "show" })] }))] }))] }), v.evaluationToken));
|
|
38
|
+
}), _jsxs(Stack, __assign({ spacing: 1, mt: 4, pb: 2 }, { children: [_jsx(Typography, __assign({ variant: "body2", fontWeight: "medium", color: "textSecondary" }, { children: "\u7ED3\u679C\u8BF4\u660E" })), _jsxs(Typography, __assign({ variant: "caption", color: "rgba(0,0,0,0.26)" }, { children: ["AI\u57FA\u7840\u80FD\u529B\u4ECE\u8BED\u901F\u3001\u666E\u901A\u8BDD\u3001\u8BED\u8A00\u6D41\u7545\u5EA6\u3001\u8981\u70B9\u5206\u6790\u5339\u914D\u5EA6\u3001\u8BED\u8A00\u4E30\u5BCC\u5EA6\u3001\u5F62\u8C61\u516D\u4E2A\u7EF4\u5EA6\u5BF9\u5019\u9009\u4EBA\u5728\u9762\u8BD5\u4E2D\u7684\u56DE\u7B54\u8868\u73B0\u8FDB\u884C\u8BC4\u4EF7\uFF0C\u6BCF\u4E2A\u7EF4\u5EA6\u5206\u4E3A\u4E09\u4E2A\u6863\uFF0C\u5206\u522B\u4E3A\uFF1A\u524D30%\u4EE3\u8868\u4F18\u79C0\u3001\u4E2D\u95F430%~70%\u4EE3\u8868\u9002\u4E2D\u3001\u540E30%\u4EE3\u8868\u6B20\u4F73\u3002", _jsx("br", {}), "\u6BCF\u4E2A\u80FD\u529B\u7684\u4E09\u6863\u7684\u5206\u6570\u503C\u4F9D\u636E\u5168\u56FD\u5927\u6570\u636E\u7EDF\u8BA1\u800C\u5B9A\u3002\u6839\u636E\u5019\u9009\u4EBA\u5F53\u524DAI\u89C6\u9891\u6B65\u9AA4\u4E0B\u7684\u6BCF\u4E2A\u80FD\u529B\u7684\u5E73\u5747\u5206\u6765\u786E\u5B9A\u6BCF\u4E2A\u80FD\u529B\u7684\u8BC4\u4EF7\u3002\u76F8\u540C\u7684\u5F97\u5206\uFF0C\u6210\u7EE9\u5148\u51FA\u7684\u6392\u540D\u9760\u524D\u3002"] }))] }))] }))] })));
|
|
33
39
|
};
|
|
34
40
|
export default Index;
|
|
@@ -0,0 +1,115 @@
|
|
|
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, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { REPORT_MODULE_MAP } from "../../../../constants/ai-report";
|
|
14
|
+
import { PostAiInterviewResult } from "../../../../services/ai-report";
|
|
15
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
16
|
+
import { useRequest } from 'ahooks';
|
|
17
|
+
import { Box, MenuIcon } from 'fbm-ui';
|
|
18
|
+
import { List, ListItem, ListItemButton, ListItemText, Popover } from 'fbm-ui/lib/mui';
|
|
19
|
+
import { forwardRef, memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
20
|
+
var MenuAnchor = forwardRef(function (props) {
|
|
21
|
+
var _a = useState(null), anchorEl = _a[0], setAnchorEl = _a[1];
|
|
22
|
+
var open = Boolean(anchorEl);
|
|
23
|
+
// 接口请求
|
|
24
|
+
var token = props.token, showAiDimension = props.showAiDimension;
|
|
25
|
+
var firstLoad = useRef(true);
|
|
26
|
+
var _b = useState([]), list = _b[0], setList = _b[1];
|
|
27
|
+
var _c = useAiReportStore(), reportResult = _c.reportResult, updateState = _c.updateState, updateReportResult = _c.updateReportResult;
|
|
28
|
+
var postAiInterviewResult = useRequest(function () { return PostAiInterviewResult([token]); }, {
|
|
29
|
+
manual: true,
|
|
30
|
+
onSuccess: function (_a) {
|
|
31
|
+
var list = _a.data.list;
|
|
32
|
+
var result = list[0];
|
|
33
|
+
updateReportResult(result);
|
|
34
|
+
if (firstLoad.current) {
|
|
35
|
+
firstLoad.current = false;
|
|
36
|
+
handleMenuList(result);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
}).run;
|
|
40
|
+
useEffect(function () {
|
|
41
|
+
firstLoad.current = true;
|
|
42
|
+
postAiInterviewResult();
|
|
43
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
44
|
+
}, [token]);
|
|
45
|
+
useEffect(function () {
|
|
46
|
+
updateState(props);
|
|
47
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
48
|
+
}, [props]);
|
|
49
|
+
// 处理菜单数据
|
|
50
|
+
var handleMenuList = function (reportResult) {
|
|
51
|
+
if (!reportResult.status) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
var resList = [REPORT_MODULE_MAP['videoQuestion']];
|
|
55
|
+
var _a = reportResult.collection, collection = _a === void 0 ? [] : _a, _b = reportResult.workplaces, workplaces = _b === void 0 ? [] : _b, _c = reportResult.suggestion, suggestion = _c === void 0 ? { show: false } : _c, _d = reportResult.evaluations, evaluations = _d === void 0 ? [] : _d;
|
|
56
|
+
if (showAiDimension) {
|
|
57
|
+
if (suggestion === null || suggestion === void 0 ? void 0 : suggestion.show) {
|
|
58
|
+
resList.unshift(REPORT_MODULE_MAP['suggestion']);
|
|
59
|
+
}
|
|
60
|
+
if (collection.length > 0 && evaluations.length > 0) {
|
|
61
|
+
resList.unshift(REPORT_MODULE_MAP['evaluate']);
|
|
62
|
+
}
|
|
63
|
+
if (workplaces.length > 0) {
|
|
64
|
+
resList.unshift(REPORT_MODULE_MAP['workplace']);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (collection.length > 0) {
|
|
68
|
+
resList.unshift(REPORT_MODULE_MAP['score']);
|
|
69
|
+
}
|
|
70
|
+
console.log(resList);
|
|
71
|
+
setList(resList);
|
|
72
|
+
};
|
|
73
|
+
var handlePopoverOpen = function (event) {
|
|
74
|
+
setAnchorEl(event.currentTarget);
|
|
75
|
+
};
|
|
76
|
+
var handlePopoverClose = function () {
|
|
77
|
+
setAnchorEl(null);
|
|
78
|
+
};
|
|
79
|
+
var scrollToAnchor = useCallback(function (id) {
|
|
80
|
+
if (id) {
|
|
81
|
+
var anchorEle = document.getElementById(id);
|
|
82
|
+
if (anchorEle) {
|
|
83
|
+
anchorEle.scrollIntoView({ block: 'start', behavior: 'smooth' });
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}, []);
|
|
87
|
+
var content = useMemo(function () {
|
|
88
|
+
return (_jsx(List, __assign({ style: { minWidth: 150 }, onMouseLeave: handlePopoverClose }, { children: list.map(function (_a) {
|
|
89
|
+
var name = _a.name, id = _a.id;
|
|
90
|
+
return (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsx(ListItemButton, __assign({ onClick: function () { return scrollToAnchor(id); } }, { children: _jsx(ListItemText, { primary: name }) })) }), id));
|
|
91
|
+
}) })));
|
|
92
|
+
}, [scrollToAnchor, list]);
|
|
93
|
+
return (_jsxs(_Fragment, { children: [(reportResult === null || reportResult === void 0 ? void 0 : reportResult.status) && (_jsx(Box, __assign({ style: {
|
|
94
|
+
display: 'flex',
|
|
95
|
+
alignItems: 'center',
|
|
96
|
+
justifyContent: 'center',
|
|
97
|
+
position: 'absolute',
|
|
98
|
+
top: 20,
|
|
99
|
+
right: -10,
|
|
100
|
+
zIndex: 999,
|
|
101
|
+
height: 32,
|
|
102
|
+
width: 32,
|
|
103
|
+
backgroundColor: '#fff',
|
|
104
|
+
borderRadius: 4,
|
|
105
|
+
boxShadow: '0px 2px 4px rgba(0,0,0, 0.08)',
|
|
106
|
+
}, "aria-owns": open ? 'menu-anchor-popover' : undefined, "aria-haspopup": "true", onClick: handlePopoverOpen, onMouseEnter: handlePopoverOpen }, { children: _jsx(MenuIcon, {}) }))), _jsx(Popover, __assign({ id: "menu-anchor-popover", open: open, anchorEl: anchorEl, anchorOrigin: {
|
|
107
|
+
vertical: 'bottom',
|
|
108
|
+
horizontal: 'right',
|
|
109
|
+
}, transformOrigin: {
|
|
110
|
+
vertical: -8,
|
|
111
|
+
horizontal: 'right',
|
|
112
|
+
}, onClose: handlePopoverClose }, { children: content }))] }));
|
|
113
|
+
});
|
|
114
|
+
MenuAnchor.displayName = 'MenuAnchor';
|
|
115
|
+
export default memo(MenuAnchor);
|
|
@@ -10,9 +10,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { Box, Typography
|
|
14
|
-
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
13
|
+
import { Alert, Box, Typography } from 'fbm-ui';
|
|
15
14
|
import { COMPLETED_STATUS } from "../../../../enum/ai-report";
|
|
15
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
16
16
|
var NotFinish = function () {
|
|
17
17
|
var _a = useAiReportStore(function (store) { return [store.reportResult, store.interviewCheat]; }), reportResult = _a.reportResult, interviewCheat = _a.interviewCheat;
|
|
18
18
|
var _b = (reportResult || {}).completedStatus, completedStatus = _b === void 0 ? 1 : _b;
|
|
@@ -10,8 +10,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import {
|
|
14
|
-
import { Box,
|
|
13
|
+
import { memo, useCallback, useEffect, useState } from 'react';
|
|
14
|
+
import { Box, CloseIcon, IconButton, Typography } from 'fbm-ui';
|
|
15
15
|
import { RangeInput, RangeTypography } from './styled';
|
|
16
16
|
var RankingRangeItem = function (props) {
|
|
17
17
|
var item = props.item, disabled = props.disabled, index = props.index, onChange = props.onChange, onDelete = props.onDelete;
|
|
@@ -47,7 +47,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
49
49
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
50
|
-
import {
|
|
50
|
+
import { AddIcon, Box, Button, Dialog, Message, Typography } from 'fbm-ui';
|
|
51
51
|
import { useImmer } from 'use-immer';
|
|
52
52
|
import ScrollDialogContent from "../../../../components/ScrollDialogContent";
|
|
53
53
|
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
@@ -9,27 +9,33 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { Box, Typography } from 'fbm-ui';
|
|
15
|
-
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
12
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { rankPercent } from '../../utils';
|
|
16
14
|
import { scoreRankIntervalColors } from "../../../../constants/ai-report";
|
|
15
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
16
|
+
import { Box, Typography } from 'fbm-ui';
|
|
17
|
+
import { useEffect, useState } from 'react';
|
|
17
18
|
var Bar = function () {
|
|
18
19
|
var _a = useState(1), currentRank = _a[0], setCurrentRank = _a[1];
|
|
19
|
-
var _b = useState('
|
|
20
|
-
var _c = useAiReportStore(function (store) { return [store.reportResult, store.scoreRankIntervals]; }), reportResult = _c.reportResult, scoreRankIntervals = _c.scoreRankIntervals;
|
|
20
|
+
var _b = useState(''), text = _b[0], setText = _b[1];
|
|
21
|
+
var _c = useAiReportStore(function (store) { return [store.reportResult, store.scoreRankIntervals]; }), reportResult = _c.reportResult, scoreRankIntervals = _c.scoreRankIntervals, reportRank = _c.reportRank;
|
|
21
22
|
var _d = (reportResult || {}).score, score = _d === void 0 ? 0 : _d;
|
|
22
23
|
useEffect(function () {
|
|
23
24
|
var floatInterval = scoreRankIntervals === null || scoreRankIntervals === void 0 ? void 0 : scoreRankIntervals.find(function (interval) { return score >= interval.score.startScore && score <= interval.score.endScore; });
|
|
24
25
|
if (floatInterval) {
|
|
25
|
-
var rank = floatInterval.rank
|
|
26
|
+
var rank = floatInterval.rank;
|
|
26
27
|
setCurrentRank(rank);
|
|
27
|
-
setText("\u524D".concat(startRankProportion * 100, "% ~ ").concat(endRankProportion * 100, "%"));
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
if (reportRank === null || reportRank === void 0 ? void 0 : reportRank.total) {
|
|
30
|
+
setText("\u51FB\u8D25\u4E86".concat(rankPercent((reportRank === null || reportRank === void 0 ? void 0 : reportRank.rank) || 0, (reportRank === null || reportRank === void 0 ? void 0 : reportRank.total) || 0).toFixed(0), "%\u5019\u9009\u4EBA"));
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
setText('');
|
|
34
|
+
}
|
|
35
|
+
}, [score, reportRank, scoreRankIntervals]);
|
|
30
36
|
if (!scoreRankIntervals || (scoreRankIntervals === null || scoreRankIntervals === void 0 ? void 0 : scoreRankIntervals.length) === 0)
|
|
31
37
|
return null;
|
|
32
|
-
return (_jsxs(Box, { children: [
|
|
38
|
+
return (_jsxs(Box, { children: [_jsxs(Typography, __assign({ variant: "body2", flexShrink: 0 }, { children: [text, "\u00A0"] })), _jsx(Box, __assign({ display: "flex", alignItems: "center", sx: { height: 12, mt: 0.5 } }, { children: scoreRankIntervals === null || scoreRankIntervals === void 0 ? void 0 : scoreRankIntervals.map(function (_a, index) {
|
|
33
39
|
var rank = _a.rank, _b = _a.scoreRankIntervals, startRankProportion = _b.startRankProportion, endRankProportion = _b.endRankProportion;
|
|
34
40
|
return [
|
|
35
41
|
_jsx(Box, { sx: {
|
|
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { Box,
|
|
13
|
+
import { Box, Button, CancelIcon, RefreshIcon, Typography } from 'fbm-ui';
|
|
14
14
|
import { INTERVIEW_STATUS } from "../../../../enum/ai-report";
|
|
15
15
|
var FAILED = INTERVIEW_STATUS.FAILED;
|
|
16
16
|
var Failed = function (_a) {
|
|
@@ -10,18 +10,26 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import
|
|
14
|
-
import { Box, Typography, Tooltip, InfoOutlineIcon } from 'fbm-ui';
|
|
15
|
-
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
13
|
+
import AiHeaderTitle from "../../../../components/AiHeaderTitle";
|
|
16
14
|
import ReportPie from "../../../../components/Charts/ReportPie";
|
|
17
15
|
// import ScoreLegend from './ScoreLegend';
|
|
18
16
|
import ScoreBigBall from "../../../../components/ScoreBigBall";
|
|
17
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
18
|
+
import { Box, InfoOutlineIcon, Tooltip, Typography } from 'fbm-ui';
|
|
19
|
+
import { useMemo } from 'react';
|
|
19
20
|
var Report = function () {
|
|
20
21
|
var reportResult = useAiReportStore(function (store) { return [store.reportResult]; }).reportResult;
|
|
21
|
-
var _a = reportResult || {}, orderToken = _a.orderToken, score = _a.score, status = _a.status, _b = _a.collection, collection = _b === void 0 ? [] : _b;
|
|
22
|
+
var _a = reportResult || {}, orderToken = _a.orderToken, score = _a.score, status = _a.status, _b = _a.collection, collection = _b === void 0 ? [] : _b, _c = _a.summaryText, summaryText = _c === void 0 ? { sprintf: '', variables: [] } : _c;
|
|
22
23
|
var title = useMemo(function () {
|
|
23
|
-
return (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\
|
|
24
|
+
return (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u804C\u573A\u80FD\u529B\u4EE5\u53CA\u82F1\u6587\u8868\u8FBE\u80FD\u529B\u7684\u8BC4\u4EF7\u6807\u51C6\uFF1A" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff", style: { textIndent: '2em' } }, { children: "\u5F53\u5019\u9009\u4EBA\u7684\u8BE5\u9879\u80FD\u529B\u7EFC\u5408\u5F97\u5206\u5927\u4E8E\u7B49\u4E8E80\u65F6\u4E3A\u4F18\u79C0\uFF1B" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff", style: { textIndent: '2em' } }, { children: "\u5F53\u5019\u9009\u4EBA\u7684\u8BE5\u9879\u80FD\u529B\u7EFC\u5408\u5F97\u5206\u5927\u4E8E\u7B49\u4E8E60\u5C0F\u4E8E80\u65F6\u4E3A\u9002\u4E2D\uFF1B" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff", style: { textIndent: '2em' } }, { children: "\u5F53\u5019\u9009\u4EBA\u7684\u8BE5\u9879\u80FD\u529B\u7EFC\u5408\u5F97\u5206\u5C0F\u4E8E60\u65F6\u4E3A\u6B20\u4F73\uFF1B" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u5176\u4ED6AI\u57FA\u7840\u80FD\u529B\u7684\u8BC4\u4EF7\u6807\u51C6\uFF1A" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff", style: { textIndent: '2em' } }, { children: "AI\u57FA\u7840\u80FD\u529B\u7684\u8BC4\u4EF7\u6807\u51C6\u4E3A\uFF1A\u6BCF\u4E2A\u80FD\u529B\u7684\u4E09\u6863\u7684\u5206\u6570\u503C\u4F9D\u636E\u5168\u56FD\u5927\u6570\u636E\u7EDF\u8BA1\u800C\u5B9A\u3002\u4EE5\u5168\u56FD\u6570\u636E\u7684\u524D30%\u4EE3\u8868\u4F18\u79C0\u3001\u4E2D\u95F430%~70%\u4EE3\u8868\u9002\u4E2D\u3001\u540E30%\u4EE3\u8868\u6B20\u4F73\u3002\u6839\u636E\u5019\u9009\u4EBA\u5F53\u524DAI\u89C6\u9891\u6B65\u9AA4\u4E0B\u7684\u6BCF\u4E2AAI\u57FA\u7840\u80FD\u529B\u7684\u6700\u7EC8\u5F97\u5206\u6765\u786E\u5B9A\u6BCF\u4E2A\u80FD\u529B\u7684\u8BC4\u4EF7\u3002" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u76F8\u540C\u7684\u5F97\u5206\uFF0C\u6210\u7EE9\u5148\u51FA\u7684\u6392\u540D\u9760\u524D\u3002" }))] }));
|
|
24
25
|
}, []);
|
|
25
|
-
|
|
26
|
+
var showSummaryText = useMemo(function () {
|
|
27
|
+
var _a = summaryText.sprintf, sprintf = _a === void 0 ? '' : _a, _b = summaryText.variables, variables = _b === void 0 ? [] : _b;
|
|
28
|
+
var textList = (sprintf === null || sprintf === void 0 ? void 0 : sprintf.split('%s')) || [];
|
|
29
|
+
return textList.map(function (text, index) {
|
|
30
|
+
return (_jsxs(_Fragment, { children: [_jsx("span", __assign({ style: { fontSize: 14, color: 'RGBA(0, 0, 0, 0.56)' } }, { children: text })), _jsx("span", __assign({ style: { fontSize: 14, color: '#4CAF50', fontWeight: 500 } }, { children: variables[index] || '' }))] }));
|
|
31
|
+
});
|
|
32
|
+
}, [summaryText]);
|
|
33
|
+
return (_jsxs(Box, __assign({ width: "100%" }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center", justifyContent: "space-between", pl: 2, pt: 2, pr: 2 }, { children: [_jsx(AiHeaderTitle, { name: "\u7EFC\u5408\u8868\u73B0" }), _jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [_jsx(Typography, __assign({ variant: "body2" }, { children: "\u80FD\u529B\u6807\u51C6" })), _jsx(Tooltip, __assign({ title: title }, { children: _jsx("span", __assign({ style: { display: 'flex', alignItems: 'center', marginLeft: '4px' } }, { children: _jsx(InfoOutlineIcon, { sx: { fontSize: 14, color: 'RGBA(0, 0, 0, 0.86)' } }) })) }))] }))] })), _jsxs(Box, __assign({ height: 300, sx: { position: 'relative' } }, { children: [_jsx(ReportPie, { id: orderToken || '', source: collection }), _jsx(ScoreBigBall, { score: score || 0, status: status })] })), showSummaryText.length > 0 && (_jsx(Box, __assign({ display: "block", width: 498, style: { backgroundColor: '#FAFAFA', padding: 8, margin: '0 auto 16px' } }, { children: showSummaryText })))] })));
|
|
26
34
|
};
|
|
27
35
|
export default Report;
|
|
@@ -10,25 +10,29 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { useEffect, useState } from 'react';
|
|
14
|
-
import dayjs from 'dayjs';
|
|
15
|
-
import { Box, Popover, Typography, Button, DownloadIcon } from 'fbm-ui';
|
|
16
|
-
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
17
|
-
import { formatScore } from "../../../../utils/utils";
|
|
18
|
-
import { ScoreTypography, ScoreUnitTypography, RefreshIconRoot } from './styled';
|
|
19
13
|
import RankingRange from '../RankingRange';
|
|
20
14
|
import Bar from './Bar';
|
|
15
|
+
import { RefreshIconRoot, ScoreTypography, ScoreUnitTypography } from './styled';
|
|
16
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
17
|
+
import { formatScore } from "../../../../utils/utils";
|
|
18
|
+
import dayjs from 'dayjs';
|
|
19
|
+
import { Box, Button, DownloadIcon, Popover, Typography } from 'fbm-ui';
|
|
20
|
+
import { useEffect, useState } from 'react';
|
|
21
21
|
var Score = function (_a) {
|
|
22
|
-
var loading = _a.loading, onRefresh = _a.onRefresh;
|
|
22
|
+
var customScore = _a.customScore, loading = _a.loading, onRefresh = _a.onRefresh;
|
|
23
23
|
var _b = useState(false), openRankingRange = _b[0], setOpenRankingRange = _b[1];
|
|
24
24
|
var _c = useState(false), openRefresh = _c[0], setOpenRefresh = _c[1];
|
|
25
25
|
var _d = useAiReportStore(function (store) { return [store.reportResult, store.operableButtons]; }), reportResult = _d.reportResult, operableButtons = _d.operableButtons, onExportReportClick = _d.onExportReportClick;
|
|
26
26
|
var _e = reportResult || {}, score = _e.score, createTime = _e.createTime;
|
|
27
|
+
var _f = useState(score || 0), feScore = _f[0], setScore = _f[1];
|
|
27
28
|
useEffect(function () {
|
|
29
|
+
if (typeof customScore === 'number' && customScore > -1) {
|
|
30
|
+
setScore(customScore);
|
|
31
|
+
}
|
|
28
32
|
if (!loading)
|
|
29
33
|
setOpenRefresh(false);
|
|
30
|
-
}, [loading]);
|
|
34
|
+
}, [loading, customScore]);
|
|
31
35
|
var content = (_jsxs(Box, __assign({ padding: 2 }, { children: [_jsx(Typography, __assign({ variant: "body1", color: "secondary" }, { children: "\u5237\u65B0\u540E\u5C06\u6309\u6700\u65B0\u7B97\u5206\u89C4\u5219\u8BA1\u7B97\uFF0C\u662F\u5426\u786E\u8BA4\u5237\u65B0" })), _jsx(Box, __assign({ paddingTop: 1, textAlign: "right" }, { children: _jsx(Button, __assign({ loading: loading, onClick: onRefresh }, { children: "\u5237\u65B0" })) }))] })));
|
|
32
|
-
return (_jsxs(Box, __assign({ display: "flex", sx: { padding: '24px' } }, { children: [_jsx(RankingRange, { open: openRankingRange, onClose: function () { return setOpenRankingRange(false); } }), _jsxs(Box, __assign({ flex: "1 0" }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [_jsxs(ScoreTypography, { children: [formatScore(
|
|
36
|
+
return (_jsxs(Box, __assign({ display: "flex", sx: { padding: '24px' } }, { children: [_jsx(RankingRange, { open: openRankingRange, onClose: function () { return setOpenRankingRange(false); } }), _jsxs(Box, __assign({ flex: "1 0" }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [_jsxs(ScoreTypography, { children: [formatScore(feScore || 0), _jsx(ScoreUnitTypography, __assign({ variant: "caption" }, { children: "\u5206" }))] }), _jsx(Box, __assign({ width: 50, height: 50 }, { children: !!feScore && feScore >= 80 && _jsx("img", { src: "//webcdn.fbmms.cn/web/saas/asset/image/recommended.svg", alt: "" }) })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) && (_jsx(Button, __assign({ variant: "outlined", size: "small", icon: _jsx(DownloadIcon, {}), sx: { ml: 1 }, onClick: onExportReportClick }, { children: "\u5BFC\u51FA\u62A5\u544A" })))] })), _jsxs(Box, __assign({ display: "flex", alignItems: "center", mt: 1 }, { children: [(operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('refresh')) && (_jsx(Popover, __assign({ open: openRefresh, content: content, onClickAway: function () { return setOpenRefresh(false); } }, { children: _jsx(RefreshIconRoot, { onClick: function () { return setOpenRefresh(true); } }) }))), _jsxs(Typography, __assign({ variant: "caption", color: "secondary", ml: 0.5 }, { children: ["\u62A5\u544A\u751F\u6210\u4E8E ", dayjs(createTime && createTime * 1000).format('YYYY-MM-DD HH:mm')] })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('scoreRank')) && (_jsx(Button, __assign({ variant: "text", size: "small", sx: { textDecoration: 'underline' }, onClick: function () { return setOpenRankingRange(true); } }, { children: "\u6392\u540D\u533A\u95F4\u8BBE\u7F6E" })))] }))] })), _jsx(Box, __assign({ width: 200 }, { children: _jsx(Bar, {}) }))] })));
|
|
33
37
|
};
|
|
34
38
|
export default Score;
|
|
@@ -11,9 +11,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useMemo } from 'react';
|
|
14
|
-
import { Box,
|
|
15
|
-
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
14
|
+
import { Box, InfoIcon, Tooltip, Typography } from 'fbm-ui';
|
|
16
15
|
import { INTERVIEW_STEP_STATUS } from "../../../../enum/ai-report";
|
|
16
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
17
17
|
import { formatScore } from "../../../../utils/utils";
|
|
18
18
|
var STEP_COMPLETED = INTERVIEW_STEP_STATUS.STEP_COMPLETED;
|
|
19
19
|
var ScoreLegend = function (props) {
|
|
@@ -10,18 +10,18 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { Message } from 'fbm-ui';
|
|
14
|
-
import { Paper, Divider } from 'fbm-ui/lib/mui';
|
|
15
|
-
import { useRequest } from 'ahooks';
|
|
16
|
-
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
17
|
-
import { PostAiInterviewRefresh } from "../../../../services/ai-report";
|
|
18
|
-
import { INTERVIEW_STATUS } from "../../../../enum/ai-report";
|
|
19
|
-
import Score from './Score';
|
|
20
|
-
import Report from './Report';
|
|
21
13
|
import Failed from './Failed';
|
|
14
|
+
import Report from './Report';
|
|
15
|
+
import Score from './Score';
|
|
16
|
+
import { INTERVIEW_STATUS } from "../../../../enum/ai-report";
|
|
17
|
+
import { PostAiInterviewRefresh } from "../../../../services/ai-report";
|
|
18
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
19
|
+
import { useRequest } from 'ahooks';
|
|
20
|
+
import { Message } from 'fbm-ui';
|
|
21
|
+
import { Divider, Paper } from 'fbm-ui/lib/mui';
|
|
22
22
|
var FAILED = INTERVIEW_STATUS.FAILED, IN_CALCULATION = INTERVIEW_STATUS.IN_CALCULATION;
|
|
23
23
|
var ScoreReport = function (_a) {
|
|
24
|
-
var onRefreshSuccess = _a.onRefreshSuccess;
|
|
24
|
+
var customScore = _a.customScore, onRefreshSuccess = _a.onRefreshSuccess;
|
|
25
25
|
var _b = useAiReportStore(function (store) { return [store.token, store.reportResult]; }), token = _b.token, reportResult = _b.reportResult;
|
|
26
26
|
var _c = (reportResult || {}).status, status = _c === void 0 ? 0 : _c;
|
|
27
27
|
var _d = useRequest(function () { return PostAiInterviewRefresh(token); }, {
|
|
@@ -32,10 +32,10 @@ var ScoreReport = function (_a) {
|
|
|
32
32
|
},
|
|
33
33
|
}), run = _d.run, loading = _d.loading;
|
|
34
34
|
if ([FAILED, IN_CALCULATION].includes(status)) {
|
|
35
|
-
return (_jsx(Paper, __assign({ variant: "outlined" }, { children: _jsx(Failed, { status: status, loading: loading, onRefresh: run }) })));
|
|
35
|
+
return (_jsx(Paper, __assign({ id: "report-score", variant: "outlined" }, { children: _jsx(Failed, { status: status, loading: loading, onRefresh: run }) })));
|
|
36
36
|
}
|
|
37
37
|
else {
|
|
38
|
-
return (_jsxs(Paper, __assign({ variant: "outlined" }, { children: [_jsx(Score, { loading: loading, onRefresh: run }), _jsx(Divider, {}), _jsx(Report, {})] })));
|
|
38
|
+
return (_jsxs(Paper, __assign({ id: "report-score", variant: "outlined" }, { children: [_jsx(Score, { customScore: customScore, loading: loading, onRefresh: run }), _jsx(Divider, {}), _jsx(Report, {})] })));
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
export default ScoreReport;
|
|
@@ -2,9 +2,11 @@ export interface ScoreLegendProps {
|
|
|
2
2
|
color: string;
|
|
3
3
|
}
|
|
4
4
|
export interface ScoreReportProps {
|
|
5
|
+
customScore?: number;
|
|
5
6
|
onRefreshSuccess: () => void;
|
|
6
7
|
}
|
|
7
8
|
export interface ScoreProps {
|
|
9
|
+
customScore?: number;
|
|
8
10
|
loading?: boolean;
|
|
9
11
|
onRefresh: () => void;
|
|
10
12
|
}
|
|
@@ -8,15 +8,15 @@ export declare const ScoreUnitTypography: import("@emotion/styled").StyledCompon
|
|
|
8
8
|
export declare const RefreshIconRoot: import("@emotion/styled").StyledComponent<{
|
|
9
9
|
children?: import("react").ReactNode;
|
|
10
10
|
classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
|
|
11
|
-
color?: "inherit" | "disabled" | "
|
|
11
|
+
color?: "inherit" | "disabled" | "action" | "secondary" | "error" | "warning" | "success" | "info" | "primary" | undefined;
|
|
12
12
|
fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
|
|
13
13
|
htmlColor?: string | undefined;
|
|
14
14
|
shapeRendering?: string | undefined;
|
|
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" | "name" | "type" | "filter" | "fill" | "values" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "children" | "spacing" | "path" | "key" | "id" | "lang" | "tabIndex" | "role" | "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" | "onLoad" | "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" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
|
|
19
19
|
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
20
|
-
}, "
|
|
20
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "viewBox" | "htmlColor" | "titleAccess"> & {
|
|
21
21
|
children?: import("react").ReactNode;
|
|
22
22
|
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { BulbFilledIcon, CopyIcon, LayerIcon, styled, Typography } from 'fbm-ui';
|
|
14
|
+
import { Box, Stack } from 'fbm-ui/lib/mui';
|
|
15
|
+
var TagTitle = styled(Box)(function () { return ({
|
|
16
|
+
boxSizing: 'border-box',
|
|
17
|
+
padding: '0 16px',
|
|
18
|
+
minWidth: 100,
|
|
19
|
+
height: 32,
|
|
20
|
+
display: 'inline-block',
|
|
21
|
+
textAlign: 'center',
|
|
22
|
+
color: 'RGBA(0, 0, 0, 0.86)',
|
|
23
|
+
borderLeft: '4px solid #4CAF50',
|
|
24
|
+
backgroundColor: '#E8F5E9',
|
|
25
|
+
margin: '24px 0 16px',
|
|
26
|
+
}); });
|
|
27
|
+
var Suggestion = function (_a) {
|
|
28
|
+
var abilityName = _a.abilityName, interviewQuestion = _a.interviewQuestion, keyPoints = _a.keyPoints;
|
|
29
|
+
return (_jsxs(Stack, { children: [_jsx(Box, __assign({ display: "flex", alignItems: "center" }, { children: _jsx(TagTitle, { children: _jsx(Typography, __assign({ variant: "subtitle1", fontWeight: "medium", style: { lineHeight: '32px' } }, { children: abilityName })) }) })), _jsxs(Box, __assign({ display: "flex", justifyContent: "space-between" }, { children: [_jsxs(Box, __assign({ display: "flex", flexDirection: "column", style: { background: '#FAFAFA', borderRadius: 8, padding: 16, flex: 1 }, mr: 2 }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center", mb: 2 }, { children: [_jsx(BulbFilledIcon, { style: { color: '#4CAF50', fontSize: 16 } }), _jsx(Typography, __assign({ variant: "body2", style: { marginLeft: 4 } }, { children: "\u9762\u8BD5\u95EE\u9898" }))] })), interviewQuestion.map(function (v, index) { return (_jsxs(Box, __assign({ display: "flex", mb: 2 }, { children: [_jsx(CopyIcon, { style: { color: '#81C784', fontSize: 16, marginTop: 4 } }), _jsx(Typography, __assign({ variant: "body2", style: { marginLeft: 4 }, color: "secondary" }, { children: v }))] }), index)); })] })), _jsxs(Box, __assign({ display: "flex", flexDirection: "column", style: { background: '#FFF3E0', borderRadius: 8, padding: 16, flex: 1 } }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center", mb: 2 }, { children: [_jsx(LayerIcon, { style: { color: '#FF9800', fontSize: 16 } }), _jsx(Typography, __assign({ variant: "body2", style: { marginLeft: 4 } }, { children: "\u8BC4\u5206\u5173\u952E\u70B9" }))] })), keyPoints.map(function (v, index) { return (_jsxs(Box, __assign({ display: "flex", mb: 2 }, { children: [_jsx(CopyIcon, { style: { color: '#FFB74D', fontSize: 16, marginTop: 4 } }), _jsx(Typography, __assign({ variant: "body2", style: { marginLeft: 4 }, color: "secondary" }, { children: v }))] }), index)); })] }))] }))] }));
|
|
30
|
+
};
|
|
31
|
+
export default Suggestion;
|