eli-video-interview 1.1.0
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 +21 -0
- package/README.md +411 -0
- package/esm/assets/icons/free.svg +1 -0
- package/esm/assets/icons/video.svg +1 -0
- package/esm/components/BigBallSvg/index.d.ts +3 -0
- package/esm/components/BigBallSvg/index.js +17 -0
- package/esm/components/BigBallSvg/index.module.css +37 -0
- package/esm/components/Charts/Chart.d.ts +4 -0
- package/esm/components/Charts/Chart.js +38 -0
- package/esm/components/Charts/const.d.ts +382 -0
- package/esm/components/Charts/const.js +382 -0
- package/esm/components/Charts/interface.d.ts +3 -0
- package/esm/components/Charts/interface.js +1 -0
- package/esm/components/ScrollDialogContent/index.d.ts +5 -0
- package/esm/components/ScrollDialogContent/index.js +6 -0
- package/esm/components/SvgIcon/index.d.ts +4 -0
- package/esm/components/SvgIcon/index.js +31 -0
- package/esm/components/SvgIcon/interface.d.ts +3 -0
- package/esm/components/SvgIcon/interface.js +1 -0
- package/esm/components/VideoPreview/index.d.ts +4 -0
- package/esm/components/VideoPreview/index.js +20 -0
- package/esm/components/VideoPreview/interface.d.ts +15 -0
- package/esm/components/VideoPreview/interface.js +1 -0
- package/esm/components/VideoPreview/styled.d.ts +10 -0
- package/esm/components/VideoPreview/styled.js +24 -0
- package/esm/constants/ai-question.d.ts +27 -0
- package/esm/constants/ai-question.js +39 -0
- package/esm/constants/ai-report.d.ts +2 -0
- package/esm/constants/ai-report.js +12 -0
- package/esm/enum/ai-question.d.ts +38 -0
- package/esm/enum/ai-question.js +42 -0
- package/esm/enum/ai-report.d.ts +27 -0
- package/esm/enum/ai-report.js +30 -0
- package/esm/index.d.ts +6 -0
- package/esm/index.js +6 -0
- package/esm/modules/ai-question/Root.d.ts +4 -0
- package/esm/modules/ai-question/Root.js +141 -0
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +4 -0
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +39 -0
- package/esm/modules/ai-question/components/AiAnalysis/MainPoints.d.ts +4 -0
- package/esm/modules/ai-question/components/AiAnalysis/MainPoints.js +54 -0
- package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.d.ts +4 -0
- package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.js +62 -0
- package/esm/modules/ai-question/components/AiAnalysis/const.d.ts +5 -0
- package/esm/modules/ai-question/components/AiAnalysis/const.js +11 -0
- package/esm/modules/ai-question/components/AiAnalysis/index.d.ts +3 -0
- package/esm/modules/ai-question/components/AiAnalysis/index.js +35 -0
- package/esm/modules/ai-question/components/AiAnalysis/interface.d.ts +23 -0
- package/esm/modules/ai-question/components/AiAnalysis/interface.js +1 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +19 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/const.js +23 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +4 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +114 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +27 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.js +1 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +39 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.js +20 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +9 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.js +29 -0
- package/esm/modules/ai-question/components/BaseAccordion/const.d.ts +1 -0
- package/esm/modules/ai-question/components/BaseAccordion/const.js +1 -0
- package/esm/modules/ai-question/components/BaseAccordion/index.d.ts +4 -0
- package/esm/modules/ai-question/components/BaseAccordion/index.js +98 -0
- package/esm/modules/ai-question/components/BaseAccordion/interface.d.ts +9 -0
- package/esm/modules/ai-question/components/BaseAccordion/interface.js +1 -0
- package/esm/modules/ai-question/components/BaseAccordion/styled.d.ts +10 -0
- package/esm/modules/ai-question/components/BaseAccordion/styled.js +73 -0
- package/esm/modules/ai-question/components/BootVideo/index.d.ts +4 -0
- package/esm/modules/ai-question/components/BootVideo/index.js +100 -0
- package/esm/modules/ai-question/components/BootVideo/interface.d.ts +8 -0
- package/esm/modules/ai-question/components/BootVideo/interface.js +1 -0
- package/esm/modules/ai-question/components/BootVideo/styled.d.ts +33 -0
- package/esm/modules/ai-question/components/BootVideo/styled.js +49 -0
- package/esm/modules/ai-question/components/QuestionModel/Header.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionModel/Header.js +23 -0
- package/esm/modules/ai-question/components/QuestionModel/Item.d.ts +4 -0
- package/esm/modules/ai-question/components/QuestionModel/Item.js +74 -0
- package/esm/modules/ai-question/components/QuestionModel/List.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionModel/List.js +39 -0
- package/esm/modules/ai-question/components/QuestionModel/Skeleton.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionModel/Skeleton.js +17 -0
- package/esm/modules/ai-question/components/QuestionModel/index.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionModel/index.js +64 -0
- package/esm/modules/ai-question/components/QuestionModel/interface.d.ts +18 -0
- package/esm/modules/ai-question/components/QuestionModel/interface.js +1 -0
- package/esm/modules/ai-question/components/QuestionModel/styled.d.ts +9 -0
- package/esm/modules/ai-question/components/QuestionModel/styled.js +9 -0
- package/esm/modules/ai-question/components/QuestionPreview/index.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionPreview/index.js +31 -0
- package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +23 -0
- package/esm/modules/ai-question/components/QuestionPreview/styled.js +11 -0
- package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +47 -0
- package/esm/modules/ai-question/components/QuestionTemplate/HistoryPattern.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionTemplate/HistoryPattern.js +20 -0
- package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.js +17 -0
- package/esm/modules/ai-question/components/QuestionTemplate/index.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionTemplate/index.js +38 -0
- package/esm/modules/ai-question/components/QuestionTemplate/interface.d.ts +43 -0
- package/esm/modules/ai-question/components/QuestionTemplate/interface.js +1 -0
- package/esm/modules/ai-question/components/QuestionTemplate/styled.d.ts +87 -0
- package/esm/modules/ai-question/components/QuestionTemplate/styled.js +33 -0
- package/esm/modules/ai-question/components/QuestionUpdate/Form.d.ts +4 -0
- package/esm/modules/ai-question/components/QuestionUpdate/Form.js +91 -0
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +63 -0
- package/esm/modules/ai-question/components/QuestionUpdate/const.d.ts +14 -0
- package/esm/modules/ai-question/components/QuestionUpdate/const.js +53 -0
- package/esm/modules/ai-question/components/QuestionUpdate/index.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionUpdate/index.js +203 -0
- package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +57 -0
- package/esm/modules/ai-question/components/QuestionUpdate/interface.js +1 -0
- package/esm/modules/ai-question/index.d.ts +4 -0
- package/esm/modules/ai-question/index.js +22 -0
- package/esm/modules/ai-question/interface.d.ts +74 -0
- package/esm/modules/ai-question/interface.js +1 -0
- package/esm/modules/ai-question/useAiQuestion.d.ts +15 -0
- package/esm/modules/ai-question/useAiQuestion.js +18 -0
- package/esm/modules/ai-report/Root.d.ts +4 -0
- package/esm/modules/ai-report/Root.js +73 -0
- package/esm/modules/ai-report/components/NotFinish/index.d.ts +3 -0
- package/esm/modules/ai-report/components/NotFinish/index.js +25 -0
- package/esm/modules/ai-report/components/RankingRange/Item.d.ts +4 -0
- package/esm/modules/ai-report/components/RankingRange/Item.js +30 -0
- package/esm/modules/ai-report/components/RankingRange/index.d.ts +4 -0
- package/esm/modules/ai-report/components/RankingRange/index.js +171 -0
- package/esm/modules/ai-report/components/RankingRange/interface.d.ts +26 -0
- package/esm/modules/ai-report/components/RankingRange/interface.js +1 -0
- package/esm/modules/ai-report/components/RankingRange/styled.d.ts +7 -0
- package/esm/modules/ai-report/components/RankingRange/styled.js +11 -0
- package/esm/modules/ai-report/components/ScoreReport/Bar.d.ts +3 -0
- package/esm/modules/ai-report/components/ScoreReport/Bar.js +44 -0
- package/esm/modules/ai-report/components/ScoreReport/Failed.d.ts +4 -0
- package/esm/modules/ai-report/components/ScoreReport/Failed.js +25 -0
- package/esm/modules/ai-report/components/ScoreReport/Report.d.ts +3 -0
- package/esm/modules/ai-report/components/ScoreReport/Report.js +45 -0
- package/esm/modules/ai-report/components/ScoreReport/RosePie.d.ts +4 -0
- package/esm/modules/ai-report/components/ScoreReport/RosePie.js +19 -0
- package/esm/modules/ai-report/components/ScoreReport/Score.d.ts +4 -0
- package/esm/modules/ai-report/components/ScoreReport/Score.js +34 -0
- package/esm/modules/ai-report/components/ScoreReport/ScoreBigBall.d.ts +4 -0
- package/esm/modules/ai-report/components/ScoreReport/ScoreBigBall.js +26 -0
- package/esm/modules/ai-report/components/ScoreReport/ScoreLegend.d.ts +4 -0
- package/esm/modules/ai-report/components/ScoreReport/ScoreLegend.js +33 -0
- package/esm/modules/ai-report/components/ScoreReport/const.d.ts +34 -0
- package/esm/modules/ai-report/components/ScoreReport/const.js +77 -0
- package/esm/modules/ai-report/components/ScoreReport/index.d.ts +4 -0
- package/esm/modules/ai-report/components/ScoreReport/index.js +41 -0
- package/esm/modules/ai-report/components/ScoreReport/interface.d.ts +20 -0
- package/esm/modules/ai-report/components/ScoreReport/interface.js +1 -0
- package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +25 -0
- package/esm/modules/ai-report/components/ScoreReport/styled.js +36 -0
- package/esm/modules/ai-report/components/VideoQuestion/Abilities.d.ts +4 -0
- package/esm/modules/ai-report/components/VideoQuestion/Abilities.js +40 -0
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +4 -0
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +89 -0
- package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.d.ts +4 -0
- package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.js +34 -0
- package/esm/modules/ai-report/components/VideoQuestion/index.d.ts +3 -0
- package/esm/modules/ai-report/components/VideoQuestion/index.js +21 -0
- package/esm/modules/ai-report/components/VideoQuestion/interface.d.ts +14 -0
- package/esm/modules/ai-report/components/VideoQuestion/interface.js +1 -0
- package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +71 -0
- package/esm/modules/ai-report/components/VideoQuestion/styled.js +90 -0
- package/esm/modules/ai-report/index.d.ts +4 -0
- package/esm/modules/ai-report/index.js +22 -0
- package/esm/modules/ai-report/interface.d.ts +114 -0
- package/esm/modules/ai-report/interface.js +1 -0
- package/esm/modules/ai-report/useAiReport.d.ts +20 -0
- package/esm/modules/ai-report/useAiReport.js +16 -0
- package/esm/services/ai-question.d.ts +13 -0
- package/esm/services/ai-question.js +17 -0
- package/esm/services/ai-report.d.ts +2 -0
- package/esm/services/ai-report.js +5 -0
- package/esm/store/ai-question/ai-analysis-store.d.ts +29 -0
- package/esm/store/ai-question/ai-analysis-store.js +132 -0
- package/esm/store/ai-question/boot-video-store.d.ts +17 -0
- package/esm/store/ai-question/boot-video-store.js +21 -0
- package/esm/store/ai-question/global-store.d.ts +32 -0
- package/esm/store/ai-question/global-store.js +23 -0
- package/esm/store/ai-question/question-model-store.d.ts +24 -0
- package/esm/store/ai-question/question-model-store.js +130 -0
- package/esm/store/ai-question/question-preview-store.d.ts +14 -0
- package/esm/store/ai-question/question-preview-store.js +21 -0
- package/esm/store/ai-question/question-template-store.d.ts +12 -0
- package/esm/store/ai-question/question-template-store.js +10 -0
- package/esm/store/ai-question/question-update-store.d.ts +11 -0
- package/esm/store/ai-question/question-update-store.js +33 -0
- package/esm/store/ai-report/global-store.d.ts +57 -0
- package/esm/store/ai-report/global-store.js +28 -0
- package/esm/utils/config.d.ts +11 -0
- package/esm/utils/config.js +17 -0
- package/esm/utils/interceptor.d.ts +2 -0
- package/esm/utils/interceptor.js +119 -0
- package/esm/utils/request.d.ts +3 -0
- package/esm/utils/request.js +14 -0
- package/esm/utils/utils.d.ts +58 -0
- package/esm/utils/utils.js +115 -0
- package/lib/assets/icons/free.svg +1 -0
- package/lib/assets/icons/video.svg +1 -0
- package/lib/components/BigBallSvg/index.d.ts +3 -0
- package/lib/components/BigBallSvg/index.js +22 -0
- package/lib/components/BigBallSvg/index.module.css +37 -0
- package/lib/components/Charts/Chart.d.ts +4 -0
- package/lib/components/Charts/Chart.js +43 -0
- package/lib/components/Charts/const.d.ts +382 -0
- package/lib/components/Charts/const.js +385 -0
- package/lib/components/Charts/interface.d.ts +3 -0
- package/lib/components/Charts/interface.js +2 -0
- package/lib/components/ScrollDialogContent/index.d.ts +5 -0
- package/lib/components/ScrollDialogContent/index.js +8 -0
- package/lib/components/SvgIcon/index.d.ts +4 -0
- package/lib/components/SvgIcon/index.js +33 -0
- package/lib/components/SvgIcon/interface.d.ts +3 -0
- package/lib/components/SvgIcon/interface.js +2 -0
- package/lib/components/VideoPreview/index.d.ts +4 -0
- package/lib/components/VideoPreview/index.js +22 -0
- package/lib/components/VideoPreview/interface.d.ts +15 -0
- package/lib/components/VideoPreview/interface.js +2 -0
- package/lib/components/VideoPreview/styled.d.ts +10 -0
- package/lib/components/VideoPreview/styled.js +27 -0
- package/lib/constants/ai-question.d.ts +27 -0
- package/lib/constants/ai-question.js +43 -0
- package/lib/constants/ai-report.d.ts +2 -0
- package/lib/constants/ai-report.js +15 -0
- package/lib/enum/ai-question.d.ts +38 -0
- package/lib/enum/ai-question.js +45 -0
- package/lib/enum/ai-report.d.ts +27 -0
- package/lib/enum/ai-report.js +33 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +18 -0
- package/lib/modules/ai-question/Root.d.ts +4 -0
- package/lib/modules/ai-question/Root.js +146 -0
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +4 -0
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +44 -0
- package/lib/modules/ai-question/components/AiAnalysis/MainPoints.d.ts +4 -0
- package/lib/modules/ai-question/components/AiAnalysis/MainPoints.js +59 -0
- package/lib/modules/ai-question/components/AiAnalysis/MainPointsItem.d.ts +4 -0
- package/lib/modules/ai-question/components/AiAnalysis/MainPointsItem.js +64 -0
- package/lib/modules/ai-question/components/AiAnalysis/const.d.ts +5 -0
- package/lib/modules/ai-question/components/AiAnalysis/const.js +14 -0
- package/lib/modules/ai-question/components/AiAnalysis/index.d.ts +3 -0
- package/lib/modules/ai-question/components/AiAnalysis/index.js +40 -0
- package/lib/modules/ai-question/components/AiAnalysis/interface.d.ts +23 -0
- package/lib/modules/ai-question/components/AiAnalysis/interface.js +2 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +19 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/const.js +26 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +4 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +119 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +27 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.js +2 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +39 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.js +26 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +9 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.js +33 -0
- package/lib/modules/ai-question/components/BaseAccordion/const.d.ts +1 -0
- package/lib/modules/ai-question/components/BaseAccordion/const.js +4 -0
- package/lib/modules/ai-question/components/BaseAccordion/index.d.ts +4 -0
- package/lib/modules/ai-question/components/BaseAccordion/index.js +100 -0
- package/lib/modules/ai-question/components/BaseAccordion/interface.d.ts +9 -0
- package/lib/modules/ai-question/components/BaseAccordion/interface.js +2 -0
- package/lib/modules/ai-question/components/BaseAccordion/styled.d.ts +10 -0
- package/lib/modules/ai-question/components/BaseAccordion/styled.js +76 -0
- package/lib/modules/ai-question/components/BootVideo/index.d.ts +4 -0
- package/lib/modules/ai-question/components/BootVideo/index.js +105 -0
- package/lib/modules/ai-question/components/BootVideo/interface.d.ts +8 -0
- package/lib/modules/ai-question/components/BootVideo/interface.js +2 -0
- package/lib/modules/ai-question/components/BootVideo/styled.d.ts +33 -0
- package/lib/modules/ai-question/components/BootVideo/styled.js +55 -0
- package/lib/modules/ai-question/components/QuestionModel/Header.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionModel/Header.js +28 -0
- package/lib/modules/ai-question/components/QuestionModel/Item.d.ts +4 -0
- package/lib/modules/ai-question/components/QuestionModel/Item.js +76 -0
- package/lib/modules/ai-question/components/QuestionModel/List.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionModel/List.js +44 -0
- package/lib/modules/ai-question/components/QuestionModel/Skeleton.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionModel/Skeleton.js +19 -0
- package/lib/modules/ai-question/components/QuestionModel/index.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionModel/index.js +69 -0
- package/lib/modules/ai-question/components/QuestionModel/interface.d.ts +18 -0
- package/lib/modules/ai-question/components/QuestionModel/interface.js +2 -0
- package/lib/modules/ai-question/components/QuestionModel/styled.d.ts +9 -0
- package/lib/modules/ai-question/components/QuestionModel/styled.js +15 -0
- package/lib/modules/ai-question/components/QuestionPreview/index.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionPreview/index.js +36 -0
- package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +23 -0
- package/lib/modules/ai-question/components/QuestionPreview/styled.js +17 -0
- package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +52 -0
- package/lib/modules/ai-question/components/QuestionTemplate/HistoryPattern.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionTemplate/HistoryPattern.js +25 -0
- package/lib/modules/ai-question/components/QuestionTemplate/Skeleton.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionTemplate/Skeleton.js +19 -0
- package/lib/modules/ai-question/components/QuestionTemplate/index.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionTemplate/index.js +43 -0
- package/lib/modules/ai-question/components/QuestionTemplate/interface.d.ts +43 -0
- package/lib/modules/ai-question/components/QuestionTemplate/interface.js +2 -0
- package/lib/modules/ai-question/components/QuestionTemplate/styled.d.ts +87 -0
- package/lib/modules/ai-question/components/QuestionTemplate/styled.js +39 -0
- package/lib/modules/ai-question/components/QuestionUpdate/Form.d.ts +4 -0
- package/lib/modules/ai-question/components/QuestionUpdate/Form.js +96 -0
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +65 -0
- package/lib/modules/ai-question/components/QuestionUpdate/const.d.ts +14 -0
- package/lib/modules/ai-question/components/QuestionUpdate/const.js +56 -0
- package/lib/modules/ai-question/components/QuestionUpdate/index.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionUpdate/index.js +208 -0
- package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +57 -0
- package/lib/modules/ai-question/components/QuestionUpdate/interface.js +2 -0
- package/lib/modules/ai-question/index.d.ts +4 -0
- package/lib/modules/ai-question/index.js +27 -0
- package/lib/modules/ai-question/interface.d.ts +74 -0
- package/lib/modules/ai-question/interface.js +2 -0
- package/lib/modules/ai-question/useAiQuestion.d.ts +15 -0
- package/lib/modules/ai-question/useAiQuestion.js +22 -0
- package/lib/modules/ai-report/Root.d.ts +4 -0
- package/lib/modules/ai-report/Root.js +78 -0
- package/lib/modules/ai-report/components/NotFinish/index.d.ts +3 -0
- package/lib/modules/ai-report/components/NotFinish/index.js +27 -0
- package/lib/modules/ai-report/components/RankingRange/Item.d.ts +4 -0
- package/lib/modules/ai-report/components/RankingRange/Item.js +32 -0
- package/lib/modules/ai-report/components/RankingRange/index.d.ts +4 -0
- package/lib/modules/ai-report/components/RankingRange/index.js +176 -0
- package/lib/modules/ai-report/components/RankingRange/interface.d.ts +26 -0
- package/lib/modules/ai-report/components/RankingRange/interface.js +2 -0
- package/lib/modules/ai-report/components/RankingRange/styled.d.ts +7 -0
- package/lib/modules/ai-report/components/RankingRange/styled.js +14 -0
- package/lib/modules/ai-report/components/ScoreReport/Bar.d.ts +3 -0
- package/lib/modules/ai-report/components/ScoreReport/Bar.js +46 -0
- package/lib/modules/ai-report/components/ScoreReport/Failed.d.ts +4 -0
- package/lib/modules/ai-report/components/ScoreReport/Failed.js +27 -0
- package/lib/modules/ai-report/components/ScoreReport/Report.d.ts +3 -0
- package/lib/modules/ai-report/components/ScoreReport/Report.js +50 -0
- package/lib/modules/ai-report/components/ScoreReport/RosePie.d.ts +4 -0
- package/lib/modules/ai-report/components/ScoreReport/RosePie.js +24 -0
- package/lib/modules/ai-report/components/ScoreReport/Score.d.ts +4 -0
- package/lib/modules/ai-report/components/ScoreReport/Score.js +39 -0
- package/lib/modules/ai-report/components/ScoreReport/ScoreBigBall.d.ts +4 -0
- package/lib/modules/ai-report/components/ScoreReport/ScoreBigBall.js +31 -0
- package/lib/modules/ai-report/components/ScoreReport/ScoreLegend.d.ts +4 -0
- package/lib/modules/ai-report/components/ScoreReport/ScoreLegend.js +35 -0
- package/lib/modules/ai-report/components/ScoreReport/const.d.ts +34 -0
- package/lib/modules/ai-report/components/ScoreReport/const.js +80 -0
- package/lib/modules/ai-report/components/ScoreReport/index.d.ts +4 -0
- package/lib/modules/ai-report/components/ScoreReport/index.js +46 -0
- package/lib/modules/ai-report/components/ScoreReport/interface.d.ts +20 -0
- package/lib/modules/ai-report/components/ScoreReport/interface.js +2 -0
- package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +25 -0
- package/lib/modules/ai-report/components/ScoreReport/styled.js +39 -0
- package/lib/modules/ai-report/components/VideoQuestion/Abilities.d.ts +4 -0
- package/lib/modules/ai-report/components/VideoQuestion/Abilities.js +45 -0
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +4 -0
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +94 -0
- package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.d.ts +4 -0
- package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.js +36 -0
- package/lib/modules/ai-report/components/VideoQuestion/index.d.ts +3 -0
- package/lib/modules/ai-report/components/VideoQuestion/index.js +26 -0
- package/lib/modules/ai-report/components/VideoQuestion/interface.d.ts +14 -0
- package/lib/modules/ai-report/components/VideoQuestion/interface.js +2 -0
- package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +71 -0
- package/lib/modules/ai-report/components/VideoQuestion/styled.js +93 -0
- package/lib/modules/ai-report/index.d.ts +4 -0
- package/lib/modules/ai-report/index.js +27 -0
- package/lib/modules/ai-report/interface.d.ts +114 -0
- package/lib/modules/ai-report/interface.js +2 -0
- package/lib/modules/ai-report/useAiReport.d.ts +20 -0
- package/lib/modules/ai-report/useAiReport.js +20 -0
- package/lib/services/ai-question.d.ts +13 -0
- package/lib/services/ai-question.js +28 -0
- package/lib/services/ai-report.d.ts +2 -0
- package/lib/services/ai-report.js +10 -0
- package/lib/store/ai-question/ai-analysis-store.d.ts +29 -0
- package/lib/store/ai-question/ai-analysis-store.js +138 -0
- package/lib/store/ai-question/boot-video-store.d.ts +17 -0
- package/lib/store/ai-question/boot-video-store.js +24 -0
- package/lib/store/ai-question/global-store.d.ts +32 -0
- package/lib/store/ai-question/global-store.js +26 -0
- package/lib/store/ai-question/question-model-store.d.ts +24 -0
- package/lib/store/ai-question/question-model-store.js +136 -0
- package/lib/store/ai-question/question-preview-store.d.ts +14 -0
- package/lib/store/ai-question/question-preview-store.js +24 -0
- package/lib/store/ai-question/question-template-store.d.ts +12 -0
- package/lib/store/ai-question/question-template-store.js +13 -0
- package/lib/store/ai-question/question-update-store.d.ts +11 -0
- package/lib/store/ai-question/question-update-store.js +36 -0
- package/lib/store/ai-report/global-store.d.ts +57 -0
- package/lib/store/ai-report/global-store.js +31 -0
- package/lib/utils/config.d.ts +11 -0
- package/lib/utils/config.js +20 -0
- package/lib/utils/interceptor.d.ts +2 -0
- package/lib/utils/interceptor.js +124 -0
- package/lib/utils/request.d.ts +3 -0
- package/lib/utils/request.js +22 -0
- package/lib/utils/utils.d.ts +58 -0
- package/lib/utils/utils.js +129 -0
- package/package.json +153 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const CustomUploadCardRoot: import("@mui/styles/styled").StyledComponent<Omit<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
}, "className" | "classes"> & import("@mui/styles/withStyles").StyledComponentProps<"root"> & Omit<Pick<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
5
|
+
children?: import("react").ReactNode;
|
|
6
|
+
}, "onLoad" | "m" | "children" | "loading" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "width" | "display" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "order" | "overflow" | "visibility" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "displayPrint" | "textOverflow" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "maxWidth" | "minWidth" | "maxHeight" | "minHeight" | "boxSizing" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "lineHeight" | "textAlign" | "textTransform" | "component" | "sx" | "disabled" | "MaskProps">, "className" | "theme"> & {
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
theme?: import("@mui/private-theming").DefaultTheme | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const CustomUploadCardTitle: import("@mui/styles/styled").StyledComponent<Omit<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
11
|
+
children?: import("react").ReactNode;
|
|
12
|
+
}, "className" | "classes"> & import("@mui/styles/withStyles").StyledComponentProps<"root"> & Omit<Pick<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
13
|
+
children?: import("react").ReactNode;
|
|
14
|
+
}, "onLoad" | "m" | "children" | "loading" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "width" | "display" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "order" | "overflow" | "visibility" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "displayPrint" | "textOverflow" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "maxWidth" | "minWidth" | "maxHeight" | "minHeight" | "boxSizing" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "lineHeight" | "textAlign" | "textTransform" | "component" | "sx" | "disabled" | "MaskProps">, "className" | "theme"> & {
|
|
15
|
+
className?: string | undefined;
|
|
16
|
+
theme?: import("@mui/private-theming").DefaultTheme | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const CustomUploadButtonRoot: import("@mui/styles/styled").StyledComponent<Omit<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
19
|
+
children?: import("react").ReactNode;
|
|
20
|
+
}, "className" | "classes"> & import("@mui/styles/withStyles").StyledComponentProps<"root"> & Omit<Pick<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
21
|
+
children?: import("react").ReactNode;
|
|
22
|
+
}, "onLoad" | "m" | "children" | "loading" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "width" | "display" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "order" | "overflow" | "visibility" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "displayPrint" | "textOverflow" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "maxWidth" | "minWidth" | "maxHeight" | "minHeight" | "boxSizing" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "lineHeight" | "textAlign" | "textTransform" | "component" | "sx" | "disabled" | "MaskProps">, "className" | "theme"> & {
|
|
23
|
+
className?: string | undefined;
|
|
24
|
+
theme?: import("@mui/private-theming").DefaultTheme | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const CustomUploadedImgRoot: import("@mui/styles/styled").StyledComponent<Omit<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
27
|
+
children?: import("react").ReactNode;
|
|
28
|
+
}, "className" | "classes"> & import("@mui/styles/withStyles").StyledComponentProps<"root"> & Omit<Pick<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
29
|
+
children?: import("react").ReactNode;
|
|
30
|
+
}, "onLoad" | "m" | "children" | "loading" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "width" | "display" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "order" | "overflow" | "visibility" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "displayPrint" | "textOverflow" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "maxWidth" | "minWidth" | "maxHeight" | "minHeight" | "boxSizing" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "lineHeight" | "textAlign" | "textTransform" | "component" | "sx" | "disabled" | "MaskProps">, "className" | "theme"> & {
|
|
31
|
+
className?: string | undefined;
|
|
32
|
+
theme?: import("@mui/private-theming").DefaultTheme | undefined;
|
|
33
|
+
}>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Box } from 'fbm-ui';
|
|
2
|
+
import styled from '@mui/styles/styled';
|
|
3
|
+
export var CustomUploadCardRoot = styled(Box)({
|
|
4
|
+
backgroundColor: '#fff',
|
|
5
|
+
border: '1px dashed #e0e0e0',
|
|
6
|
+
borderRadius: 4,
|
|
7
|
+
cursor: 'pointer',
|
|
8
|
+
height: 330,
|
|
9
|
+
width: 180,
|
|
10
|
+
margin: '0 auto',
|
|
11
|
+
display: 'flex',
|
|
12
|
+
alignItems: 'center',
|
|
13
|
+
justifyContent: 'center',
|
|
14
|
+
flexDirection: 'column',
|
|
15
|
+
'&:hover': {
|
|
16
|
+
backgroundColor: 'rgba(75,176,81,.04)',
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
export var CustomUploadCardTitle = styled(Box)({
|
|
20
|
+
display: 'flex',
|
|
21
|
+
alignItems: 'center',
|
|
22
|
+
justifyContent: 'center',
|
|
23
|
+
'& .MuiTypography-root': {
|
|
24
|
+
marginLeft: 8,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
export var CustomUploadButtonRoot = styled(Box)({
|
|
28
|
+
display: 'flex',
|
|
29
|
+
alignItems: 'center',
|
|
30
|
+
justifyContent: 'center',
|
|
31
|
+
margin: '8px 0',
|
|
32
|
+
});
|
|
33
|
+
export var CustomUploadedImgRoot = styled(Box)({
|
|
34
|
+
minHeight: 70,
|
|
35
|
+
display: 'flex',
|
|
36
|
+
flexWrap: 'wrap',
|
|
37
|
+
alignItems: 'center',
|
|
38
|
+
padding: '8px 0',
|
|
39
|
+
boxSizing: 'content-box',
|
|
40
|
+
'& img': {
|
|
41
|
+
width: 36,
|
|
42
|
+
objectFit: 'cover',
|
|
43
|
+
transition: 'all 0.3s ease 0s',
|
|
44
|
+
cursor: 'pointer',
|
|
45
|
+
border: '1px solid rgb(237, 237, 237)',
|
|
46
|
+
borderRadius: 4,
|
|
47
|
+
marginRight: 4,
|
|
48
|
+
},
|
|
49
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
|
+
import { useState } from 'react';
|
|
14
|
+
import { Box, Button, Typography, VideocamOutlineIcon, Tooltip, InfoOutlineIcon } from 'fbm-ui';
|
|
15
|
+
import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
|
|
16
|
+
import { getSecondToTime } from "../../../../utils/utils";
|
|
17
|
+
import BootVideo from '../BootVideo';
|
|
18
|
+
var QuestionHeader = function () {
|
|
19
|
+
var questionModelData = useQuestionModelStore().questionModelData;
|
|
20
|
+
var _a = useState(false), bootVideoOpen = _a[0], setBootVideoOpen = _a[1];
|
|
21
|
+
return (_jsxs(Box, __assign({ width: "100%", display: "flex" }, { children: [_jsx(BootVideo, { open: bootVideoOpen, onClose: function () { return setBootVideoOpen(false); } }), questionModelData && (_jsxs(_Fragment, { children: [_jsxs(Box, __assign({ flex: "1 0" }, { children: [_jsxs(Typography, __assign({ variant: "body1", weight: "500", mb: 1 }, { children: [questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.name, _jsxs(Typography, __assign({ color: "secondary", variant: "caption", ml: 1 }, { children: ["\u9884\u8BA1\u9762\u8BD5\u65F6\u957F\uFF1A", getSecondToTime((questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.duration) || 0)] }))] })), _jsx(Typography, __assign({ variant: "caption", color: "secondary" }, { children: "\u62D6\u52A8\u8BD5\u9898\u5361\u7247\u53EF\u6539\u53D8\u8BD5\u9898\u987A\u5E8F" }))] })), _jsxs(Box, __assign({ width: 200, textAlign: "right" }, { children: [_jsx(Button, __assign({ icon: _jsx(VideocamOutlineIcon, {}), variant: "text", onClick: function () { return setBootVideoOpen(true); } }, { children: "\u5F15\u5BFC\u89C6\u9891" })), _jsxs(Box, __assign({ display: "flex", alignItems: "center", justifyContent: "end", sx: { mt: '6px' } }, { children: [_jsx(Typography, __assign({ variant: "caption", color: "secondary" }, { children: "AI\u6D4B\u8BC4\u6743\u91CD" })), _jsx(Tooltip, __assign({ title: "AI\u6D4B\u8BC4\u9898\u53EF\u4EE5\u8BBE\u7F6E\u6743\u91CD\uFF0C\u7CFB\u7EDF\u5BF9\u5019\u9009\u4EBA\u89C6\u9891\u9762\u8BD5\u7ED3\u679C\u4F1A\u52A0\u5165\u6743\u91CD\u8FDB\u884C\u8BA1\u7B97\uFF0C\u5F97\u51FAAI\u89C6\u9891\u9762\u8BD5\u5F97\u5206\u3002\u8BBE\u7F6E\u540E5\u5206\u949F\u8D77\u6548" }, { children: _jsx("span", __assign({ style: { display: 'flex', alignItems: 'center', marginLeft: '4px' } }, { children: _jsx(InfoOutlineIcon, { sx: { fontSize: 14, color: 'rgba(0, 0, 0, 0.56)' } }) })) }))] }))] }))] }))] })));
|
|
22
|
+
};
|
|
23
|
+
export default QuestionHeader;
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { useCallback, memo } from 'react';
|
|
25
|
+
import { Box, Chip, Input, Typography, IconButton, DragIndicatorIcon, EditIcon, DeleteIcon, confirm } from 'fbm-ui';
|
|
26
|
+
import { Paper, Switch, FormGroup, FormControlLabel } from '@mui/material';
|
|
27
|
+
import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
|
|
28
|
+
import { useUpdateQuestionStore } from "../../../../store/ai-question/question-update-store";
|
|
29
|
+
import { getSecondToTime } from "../../../../utils/utils";
|
|
30
|
+
import { TEST_TYPE_READONLY, DISABLED_REPEAT_TYPE, IS_AI_ANALYSIS } from "../../../../constants/ai-question";
|
|
31
|
+
var QuestionModelListItem = function (props) {
|
|
32
|
+
var index = props.index, steps = props.steps, step = __rest(props, ["index", "steps"]);
|
|
33
|
+
var token = step.token, name = step.name, desc = step.desc, duration = step.duration, weight = step.weight, type = step.type, aiShowType = step.aiShowType, answerStatus = step.answerStatus, category = step.category;
|
|
34
|
+
var aiTypeList = steps.filter(function (step) { return IS_AI_ANALYSIS(step); });
|
|
35
|
+
var lastAiTestToken = aiTypeList.length ? aiTypeList[aiTypeList.length - 1].token : '';
|
|
36
|
+
var isAiAnalysis = IS_AI_ANALYSIS(step);
|
|
37
|
+
var _a = useQuestionModelStore(), editModel = _a.editModel, removeModel = _a.removeModel, updateModelWeight = _a.updateModelWeight;
|
|
38
|
+
var updateQuestionState = useUpdateQuestionStore().updateQuestionState;
|
|
39
|
+
var handleEdit = useCallback(function () {
|
|
40
|
+
updateQuestionState({ open: true, token: token, index: index, aiShowType: aiShowType, item: step });
|
|
41
|
+
}, [aiShowType, step, token, index, updateQuestionState]);
|
|
42
|
+
var handleRemove = useCallback(function () {
|
|
43
|
+
confirm({
|
|
44
|
+
title: '删除题目',
|
|
45
|
+
content: '确认删除此试题?该操作无法被撤销。',
|
|
46
|
+
okText: '删除',
|
|
47
|
+
okProps: {
|
|
48
|
+
color: 'error',
|
|
49
|
+
variant: 'contained',
|
|
50
|
+
},
|
|
51
|
+
onOk: function (_a) {
|
|
52
|
+
var onClose = _a.onClose;
|
|
53
|
+
removeModel(index);
|
|
54
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
}, [index, removeModel]);
|
|
58
|
+
var handleWeightChange = useCallback(function (_a) {
|
|
59
|
+
var value = _a.target.value;
|
|
60
|
+
updateModelWeight(value, index);
|
|
61
|
+
}, [updateModelWeight, index]);
|
|
62
|
+
var handleWeightBlur = useCallback(function (_a) {
|
|
63
|
+
var value = _a.target.value;
|
|
64
|
+
if (value === '' || value === undefined) {
|
|
65
|
+
updateModelWeight('0', index);
|
|
66
|
+
}
|
|
67
|
+
}, [updateModelWeight, index]);
|
|
68
|
+
var handleAnswerStatus = useCallback(function () {
|
|
69
|
+
console.log(answerStatus);
|
|
70
|
+
editModel(__assign(__assign({}, step), { answerStatus: answerStatus === 2 ? 1 : 2 }), index);
|
|
71
|
+
}, [editModel, answerStatus, step, index]);
|
|
72
|
+
return (_jsxs(Paper, __assign({ variant: "outlined", sx: { display: 'block', mt: 2 } }, { children: [_jsxs(Box, __assign({ display: "flex", borderBottom: "1px solid rgba(0, 0, 0, 0.08)" }, { children: [_jsx(Box, __assign({ width: 40, display: "flex", alignItems: "center", justifyContent: "center", sx: { cursor: 'move' } }, { children: _jsx(DragIndicatorIcon, { className: "dragHandle" }) })), _jsxs(Box, __assign({ flex: "1 0", padding: "16px 0" }, { children: [_jsxs(Box, __assign({ display: "flex", justifyContent: "space-between" }, { children: [_jsxs(Box, __assign({ flex: "1 0", display: "flex", alignItems: "center" }, { children: [_jsx(Typography, __assign({ variant: "subtitle1" }, { children: name })), category === null || category === void 0 ? void 0 : category.map(function (label) { return label && _jsx(Chip, { color: "default", label: label, size: "medium", sx: { ml: 1 } }, label); }), _jsx(Typography, __assign({ sx: { ml: 2 }, variant: "body2", color: "secondary" }, { children: getSecondToTime(Number(duration)) }))] })), _jsxs(Box, __assign({ width: 62, mr: 1, textAlign: "right" }, { children: [!TEST_TYPE_READONLY.includes(type) && (_jsx(IconButton, __assign({ size: "small", onClick: handleEdit }, { children: _jsx(EditIcon, {}) }))), _jsx(IconButton, __assign({ size: "small", onClick: handleRemove }, { children: _jsx(DeleteIcon, {}) }))] }))] })), _jsxs(Box, __assign({ mt: 1, display: "flex", alignItems: "center", justifyContent: "space-between" }, { children: [_jsx(Typography, __assign({ variant: "body2", color: "secondary" }, { children: desc })), !DISABLED_REPEAT_TYPE.includes(type) && (_jsx(FormGroup, __assign({ sx: { flexShrink: 0, ml: 2 } }, { children: _jsx(FormControlLabel, { control: _jsx(Switch, { size: "small", checked: answerStatus === 1 }), label: _jsx(Typography, __assign({ fontSize: 12, lineHeight: 1.5, color: "rgba(0, 0, 0, 0.56)" }, { children: "\u5141\u8BB8\u91CD\u590D\u7B54\u9898" })), onChange: handleAnswerStatus }) })))] }))] }))] })), isAiAnalysis && (_jsxs(Box, __assign({ display: "flex", alignItems: "center", padding: "3px 0 3px 40px" }, { children: [_jsx(Typography, __assign({ variant: "body2" }, { children: "\u6743\u91CD\u5360\u6BD4\uFF1A" })), _jsx(Input, { sx: { width: 82 }, size: "small", value: weight, endAdornment: "%", disabled: lastAiTestToken === token, onChange: handleWeightChange, onBlur: handleWeightBlur })] })))] })));
|
|
73
|
+
};
|
|
74
|
+
export default memo(QuestionModelListItem);
|
|
@@ -0,0 +1,39 @@
|
|
|
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 } from "react/jsx-runtime";
|
|
13
|
+
import { useEffect, useRef } from 'react';
|
|
14
|
+
import { Box, Empty } from 'fbm-ui';
|
|
15
|
+
import Sortable from 'sortablejs';
|
|
16
|
+
import { arrayMoveImmutable } from 'array-move';
|
|
17
|
+
import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
|
|
18
|
+
import QuestionModelListItem from './Item';
|
|
19
|
+
var QuestionModelList = function () {
|
|
20
|
+
var ref = useRef();
|
|
21
|
+
var sortable = useRef();
|
|
22
|
+
var _a = useQuestionModelStore(), questionModelData = _a.questionModelData, updateModel = _a.updateModel;
|
|
23
|
+
var _b = (questionModelData || {}).steps, steps = _b === void 0 ? [] : _b;
|
|
24
|
+
useEffect(function () {
|
|
25
|
+
if (steps) {
|
|
26
|
+
sortable.current && sortable.current.destroy();
|
|
27
|
+
sortable.current = new Sortable(ref.current, {
|
|
28
|
+
handle: '.dragHandle',
|
|
29
|
+
animation: 150,
|
|
30
|
+
onEnd: function (_a) {
|
|
31
|
+
var oldIndex = _a.oldIndex, newIndex = _a.newIndex;
|
|
32
|
+
updateModel(__assign(__assign({}, questionModelData), { steps: arrayMoveImmutable(steps, oldIndex, newIndex) }));
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}, [questionModelData, updateModel, steps]);
|
|
37
|
+
return (_jsx(Box, __assign({ width: "100%", sx: steps.length > 0 ? {} : { height: 'calc(100% - 100px)', display: 'flex', alignItems: 'center', justifyContent: 'center' }, ref: ref }, { children: steps.length > 0 ? (steps.map(function (item, index) { return _jsx(QuestionModelListItem, __assign({ steps: steps, index: index }, item), item.uniqueId || item.token); })) : (_jsx(Empty, { desc: "\u6682\u65E0\u6570\u636E" })) })));
|
|
38
|
+
};
|
|
39
|
+
export default QuestionModelList;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { Box, Stack, Skeleton, Paper } from '@mui/material';
|
|
14
|
+
var QuestionModelSkeleton = function () {
|
|
15
|
+
return (_jsxs(Box, { children: [_jsxs(Stack, __assign({ direction: "row", alignItems: "center", spacing: 2, sx: { mb: 3 } }, { children: [_jsx(Skeleton, { variant: "text", width: 120, height: 28 }), _jsx(Skeleton, { variant: "text", width: 120, height: 18 })] })), _jsxs(Stack, __assign({ spacing: 3 }, { children: [_jsxs(Paper, __assign({ elevation: 2, sx: { height: 80, padding: 3 } }, { children: [_jsx(Skeleton, { variant: "text", width: 128, height: 8, sx: { mb: 3 } }), _jsx(Skeleton, { variant: "text", width: 360, height: 8 })] })), _jsxs(Paper, __assign({ elevation: 2, sx: { height: 80, padding: 3 } }, { children: [_jsx(Skeleton, { variant: "text", width: 128, height: 8, sx: { mb: 3 } }), _jsx(Skeleton, { variant: "text", width: 360, height: 8 })] }))] }))] }));
|
|
16
|
+
};
|
|
17
|
+
export default QuestionModelSkeleton;
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { useEffect, useRef } from 'react';
|
|
14
|
+
import { useRequest } from 'ahooks';
|
|
15
|
+
import { PostAiModelDetails } from "../../../../services/ai-question";
|
|
16
|
+
import { useAiQuestionStore } from "../../../../store/ai-question/global-store";
|
|
17
|
+
import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
|
|
18
|
+
import { useQuestionTemplateStore } from "../../../../store/ai-question/question-template-store";
|
|
19
|
+
import { defaultQuestionParams } from '../QuestionUpdate/const';
|
|
20
|
+
import { QuestionModelRoot } from './styled';
|
|
21
|
+
import QuestionModelHeader from './Header';
|
|
22
|
+
import QuestionModelList from './List';
|
|
23
|
+
import Skeleton from './Skeleton';
|
|
24
|
+
var Question = function () {
|
|
25
|
+
var isDefaultAdded = useRef(false);
|
|
26
|
+
var _a = useAiQuestionStore(), token = _a.token, name = _a.name, onLoad = _a.onLoad;
|
|
27
|
+
var aiEvaluationData = useQuestionTemplateStore().aiEvaluationData;
|
|
28
|
+
var _b = useQuestionModelStore(), questionModelData = _b.questionModelData, updateModel = _b.updateModel, addModel = _b.addModel;
|
|
29
|
+
var _c = useRequest(function () { return PostAiModelDetails(token); }, {
|
|
30
|
+
manual: true,
|
|
31
|
+
onSuccess: function (_a) {
|
|
32
|
+
var data = _a.data;
|
|
33
|
+
updateModel(data);
|
|
34
|
+
onLoad === null || onLoad === void 0 ? void 0 : onLoad(data.steps);
|
|
35
|
+
},
|
|
36
|
+
}), postAiModelDetails = _c.run, loading = _c.loading;
|
|
37
|
+
useEffect(function () {
|
|
38
|
+
if (token) {
|
|
39
|
+
postAiModelDetails();
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
updateModel({ name: name || '暂无名称', token: '', duration: 0, steps: [] });
|
|
43
|
+
}
|
|
44
|
+
}, [name, token, postAiModelDetails, updateModel]);
|
|
45
|
+
useEffect(function () {
|
|
46
|
+
if (!(questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.steps.length) && aiEvaluationData.length && !token && !isDefaultAdded.current) {
|
|
47
|
+
setTimeout(function () {
|
|
48
|
+
var defaultStep = [];
|
|
49
|
+
aiEvaluationData[0].list.forEach(function (_a) {
|
|
50
|
+
var list = _a.list;
|
|
51
|
+
list.forEach(function (item) {
|
|
52
|
+
if (item.isDefault) {
|
|
53
|
+
defaultStep.push(__assign(__assign(__assign({}, defaultQuestionParams), item), { originToken: item.token }));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
isDefaultAdded.current = true;
|
|
58
|
+
addModel(defaultStep);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}, [token, aiEvaluationData, questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.steps, addModel]);
|
|
62
|
+
return (_jsx(QuestionModelRoot, { children: loading ? (_jsx(Skeleton, {})) : (_jsxs(_Fragment, { children: [_jsx(QuestionModelHeader, {}), _jsx(QuestionModelList, {})] })) }));
|
|
63
|
+
};
|
|
64
|
+
export default Question;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { QuestionParams } from '../QuestionUpdate/interface';
|
|
2
|
+
export interface QuestionModelStep extends QuestionParams {
|
|
3
|
+
uniqueId?: string;
|
|
4
|
+
isNotCompute?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface QuestionModelData {
|
|
7
|
+
name?: string | undefined;
|
|
8
|
+
token?: string;
|
|
9
|
+
duration?: number;
|
|
10
|
+
steps: QuestionModelStep[];
|
|
11
|
+
}
|
|
12
|
+
export interface QuestionModelDataRes {
|
|
13
|
+
data: QuestionModelData;
|
|
14
|
+
}
|
|
15
|
+
export interface QuestionModelListItemProps extends QuestionModelStep {
|
|
16
|
+
steps: QuestionModelStep[];
|
|
17
|
+
index: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const QuestionModelRoot: import("@mui/styles/styled").StyledComponent<Omit<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
}, "className" | "classes"> & import("@mui/styles/withStyles").StyledComponentProps<"root"> & Omit<Pick<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
5
|
+
children?: import("react").ReactNode;
|
|
6
|
+
}, "onLoad" | "m" | "children" | "loading" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "width" | "display" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "order" | "overflow" | "visibility" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "displayPrint" | "textOverflow" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "maxWidth" | "minWidth" | "maxHeight" | "minHeight" | "boxSizing" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "lineHeight" | "textAlign" | "textTransform" | "component" | "sx" | "disabled" | "MaskProps">, "className" | "theme"> & {
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
theme?: import("@mui/private-theming").DefaultTheme | undefined;
|
|
9
|
+
}>;
|
|
@@ -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 { useEffect, useState } from 'react';
|
|
14
|
+
import { Box, Typography } from 'fbm-ui';
|
|
15
|
+
import { useQuestionPreviewStore } from "../../../../store/ai-question/question-preview-store";
|
|
16
|
+
import { QUESTION_TYPE_MAPPING_LABEL } from "../../../../constants/ai-question";
|
|
17
|
+
import { ADD_QUESTION_TYPE } from "../../../../enum/ai-question";
|
|
18
|
+
import Form from '../QuestionUpdate/Form';
|
|
19
|
+
import { PreviewRoot } from './styled';
|
|
20
|
+
var QuestionPreview = function () {
|
|
21
|
+
var _a = useQuestionPreviewStore(), visible = _a.visible, previewItem = _a.previewItem;
|
|
22
|
+
var _b = previewItem || {}, _c = _b.name, name = _c === void 0 ? '' : _c, _d = _b.type, type = _d === void 0 ? 1 : _d, _e = _b.broadcastType, broadcastType = _e === void 0 ? 1 : _e, _f = _b.desc, desc = _f === void 0 ? '' : _f, _g = _b.prepareTime, prepareTime = _g === void 0 ? 3 : _g, _h = _b.duration, duration = _h === void 0 ? 30 : _h, extra = _b.extra;
|
|
23
|
+
var _j = useState(), values = _j[0], setValues = _j[1];
|
|
24
|
+
var _k = useState('none'), display = _k[0], setDisplay = _k[1];
|
|
25
|
+
useEffect(function () {
|
|
26
|
+
setValues({ name: name, broadcastType: broadcastType, desc: desc, prepareTime: prepareTime, duration: duration });
|
|
27
|
+
setDisplay(visible ? 'block' : 'none');
|
|
28
|
+
}, [name, broadcastType, desc, prepareTime, duration, visible]);
|
|
29
|
+
return (_jsx(PreviewRoot, __assign({ style: { display: display } }, { children: (extra === null || extra === void 0 ? void 0 : extra.icon) ? (_jsx("img", { src: extra === null || extra === void 0 ? void 0 : extra.icon, alt: "", style: { width: 250 } })) : (_jsxs(Box, __assign({ width: 500 }, { children: [_jsxs(Typography, __assign({ variant: "h5", textAlign: "center", mb: 3 }, { children: [QUESTION_TYPE_MAPPING_LABEL[type], "\uFF08\u9884\u89C8\uFF09"] })), values && _jsx(Form, { preview: true, aiShowType: ADD_QUESTION_TYPE.FREE, initialValues: values, values: values })] }))) })));
|
|
30
|
+
};
|
|
31
|
+
export default QuestionPreview;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const PreviewRoot: import("@mui/styles/styled").StyledComponent<Omit<{
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
classes?: Partial<import("@mui/material").PaperClasses> | undefined;
|
|
5
|
+
elevation?: number | undefined;
|
|
6
|
+
square?: boolean | undefined;
|
|
7
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
8
|
+
variant?: "elevation" | "outlined" | undefined;
|
|
9
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
10
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
+
}, "children" | "elevation" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "variant" | "square">, "className" | "classes"> & import("@mui/styles/withStyles").StyledComponentProps<"root"> & Omit<Pick<{
|
|
12
|
+
children?: import("react").ReactNode;
|
|
13
|
+
classes?: Partial<import("@mui/material").PaperClasses> | undefined;
|
|
14
|
+
elevation?: number | undefined;
|
|
15
|
+
square?: boolean | undefined;
|
|
16
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
17
|
+
variant?: "elevation" | "outlined" | undefined;
|
|
18
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
19
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
20
|
+
}, "children" | "elevation" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "variant" | "square">, "onLoad" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "elevation" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "variant" | "square">, "className" | "theme"> & {
|
|
21
|
+
className?: string | undefined;
|
|
22
|
+
theme?: import("@mui/private-theming").DefaultTheme | undefined;
|
|
23
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paper } from '@mui/material';
|
|
2
|
+
import styled from '@mui/styles/styled';
|
|
3
|
+
export var PreviewRoot = styled(Paper)({
|
|
4
|
+
padding: 20,
|
|
5
|
+
position: 'absolute',
|
|
6
|
+
left: 300,
|
|
7
|
+
top: 24,
|
|
8
|
+
zIndex: 9,
|
|
9
|
+
display: 'none',
|
|
10
|
+
boxShadow: '0px 9px 28px rgba(0,0,0, 0.05), 0px 6px 16px rgba(0,0,0, 0.08), 0px 3px 6px rgba(0,0,0, 0.12)',
|
|
11
|
+
});
|