eli-video-interview 1.1.6 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/esm/components/BigBallSvg/index.js +3 -3
- package/esm/components/BigBallSvg/styled.d.ts +3 -0
- package/esm/components/BigBallSvg/styled.js +28 -0
- package/esm/components/Charts/Chart.js +19 -25
- package/esm/components/Charts/ReportPie.d.ts +4 -0
- package/esm/components/Charts/ReportPie.js +135 -0
- package/esm/components/Charts/TemplatePie.d.ts +4 -0
- package/esm/components/Charts/TemplatePie.js +81 -0
- package/esm/components/Charts/const.d.ts +15 -380
- package/esm/components/Charts/const.js +15 -380
- package/esm/components/Charts/interface.d.ts +15 -0
- package/esm/components/RootProvider/index.d.ts +3 -0
- package/esm/components/RootProvider/index.js +27 -0
- package/esm/{modules/ai-report/components/ScoreReport/ScoreBigBall.d.ts → components/ScoreBigBall/index.d.ts} +0 -0
- package/esm/components/ScoreBigBall/index.js +26 -0
- package/esm/components/ScoreBigBall/interface.d.ts +7 -0
- package/esm/components/ScoreBigBall/interface.js +1 -0
- package/esm/components/ScoreBigBall/styled.d.ts +4 -0
- package/esm/components/ScoreBigBall/styled.js +12 -0
- package/esm/components/SvgIcon/index.d.ts +2 -2
- package/esm/components/SvgIcon/index.js +3 -2
- package/esm/components/SvgIcon/interface.d.ts +1 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/esm/modules/ai-ability/Root.d.ts +3 -0
- package/esm/modules/ai-ability/Root.js +135 -0
- package/esm/modules/ai-ability/components/UpdateAbility/index.d.ts +4 -0
- package/esm/modules/ai-ability/components/UpdateAbility/index.js +114 -0
- package/esm/modules/ai-ability/components/UpdateAbility/interface.d.ts +7 -0
- package/esm/modules/ai-ability/components/UpdateAbility/interface.js +1 -0
- package/esm/modules/ai-ability/index.d.ts +2 -0
- package/esm/modules/ai-ability/index.js +7 -0
- package/esm/modules/ai-ability/interface.d.ts +15 -0
- package/esm/modules/ai-ability/interface.js +1 -0
- package/esm/modules/ai-ability/styled.d.ts +4 -0
- package/esm/modules/ai-ability/styled.js +6 -0
- package/esm/modules/ai-question/Root.js +7 -4
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +1 -1
- package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.js +1 -1
- package/esm/modules/ai-question/components/AiAnalysis/index.js +3 -3
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +1 -1
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +5 -5
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.js +1 -1
- package/esm/modules/ai-question/components/BaseAccordion/index.js +2 -2
- package/esm/modules/ai-question/components/BaseAccordion/styled.js +7 -4
- package/esm/modules/ai-question/components/BootVideo/index.js +1 -1
- package/esm/modules/ai-question/components/QuestionModel/Item.js +4 -4
- package/esm/modules/ai-question/components/QuestionModel/Skeleton.js +1 -1
- package/esm/modules/ai-question/components/QuestionModel/index.js +23 -16
- package/esm/modules/ai-question/components/QuestionModel/styled.js +1 -1
- package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +3 -3
- package/esm/modules/ai-question/components/QuestionPreview/styled.js +2 -2
- package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +11 -8
- package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.js +1 -1
- package/esm/modules/ai-question/components/QuestionTemplate/index.js +2 -10
- package/esm/modules/ai-question/components/QuestionUpdate/Form.js +10 -3
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +1 -1
- package/esm/modules/ai-question/components/QuestionUpdate/const.js +1 -1
- package/esm/modules/ai-question/components/QuestionUpdate/index.js +5 -3
- package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +5 -1
- package/esm/modules/ai-question/index.d.ts +2 -2
- package/esm/modules/ai-question/index.js +2 -4
- package/esm/modules/ai-question/interface.d.ts +5 -3
- package/esm/modules/ai-question/useAiQuestion.d.ts +4 -2
- package/esm/modules/ai-question/useAiQuestion.js +3 -1
- package/esm/modules/ai-report/components/ScoreReport/Report.d.ts +2 -2
- package/esm/modules/ai-report/components/ScoreReport/Report.js +11 -29
- package/esm/modules/ai-report/components/ScoreReport/index.js +1 -1
- package/esm/modules/ai-report/components/ScoreReport/interface.d.ts +0 -7
- package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +1 -4
- package/esm/modules/ai-report/components/ScoreReport/styled.js +1 -14
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +10 -9
- package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +16 -16
- package/esm/modules/ai-report/components/VideoQuestion/styled.js +2 -1
- package/esm/modules/ai-report/index.d.ts +2 -2
- package/esm/modules/ai-report/index.js +2 -4
- package/esm/modules/ai-report/interface.d.ts +10 -1
- package/esm/modules/ai-report/useAiReport.d.ts +0 -1
- package/esm/modules/ai-template/Root.d.ts +4 -0
- package/esm/modules/ai-template/Root.js +48 -0
- package/esm/modules/ai-template/components/CapabilityModel/const.d.ts +47 -0
- package/esm/modules/ai-template/components/CapabilityModel/const.js +56 -0
- package/esm/modules/ai-template/components/CapabilityModel/index.d.ts +3 -0
- package/esm/modules/ai-template/components/CapabilityModel/index.js +27 -0
- package/esm/modules/ai-template/components/QuestionList/Item.d.ts +4 -0
- package/esm/modules/ai-template/components/QuestionList/Item.js +24 -0
- package/esm/modules/ai-template/components/QuestionList/index.d.ts +3 -0
- package/esm/modules/ai-template/components/QuestionList/index.js +20 -0
- package/esm/modules/ai-template/components/QuestionList/interface.d.ts +5 -0
- package/esm/modules/ai-template/components/QuestionList/interface.js +1 -0
- package/esm/modules/ai-template/components/TemplateHeader/index.d.ts +4 -0
- package/esm/modules/ai-template/components/TemplateHeader/index.js +18 -0
- package/esm/modules/ai-template/components/TemplateHeader/interface.d.ts +6 -0
- package/esm/modules/ai-template/components/TemplateHeader/interface.js +1 -0
- package/esm/modules/ai-template/components/TemplateList/index.d.ts +3 -0
- package/esm/modules/ai-template/components/TemplateList/index.js +96 -0
- package/esm/modules/ai-template/components/TemplateList/interface.d.ts +24 -0
- package/esm/modules/ai-template/components/TemplateList/interface.js +1 -0
- package/esm/modules/ai-template/components/TemplateList/styled.d.ts +37 -0
- package/esm/modules/ai-template/components/TemplateList/styled.js +77 -0
- package/esm/modules/ai-template/components/TemplateMenu/index.d.ts +3 -0
- package/esm/modules/ai-template/components/TemplateMenu/index.js +57 -0
- package/esm/modules/ai-template/components/TemplateMenu/interface.d.ts +12 -0
- package/esm/modules/ai-template/components/TemplateMenu/interface.js +1 -0
- package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +29 -0
- package/esm/modules/ai-template/components/TemplateMenu/styled.js +16 -0
- package/esm/modules/ai-template/index.d.ts +4 -0
- package/esm/modules/{ai-report/components/ScoreReport/RosePie.js → ai-template/index.js} +8 -7
- package/esm/modules/ai-template/interface.d.ts +24 -0
- package/esm/modules/ai-template/interface.js +1 -0
- package/esm/services/ai-ability.d.ts +12 -0
- package/esm/services/ai-ability.js +7 -0
- package/esm/services/ai-question.d.ts +0 -1
- package/esm/services/ai-question.js +1 -3
- package/esm/services/ai-template.d.ts +4 -0
- package/esm/services/ai-template.js +9 -0
- package/esm/store/ai-question/ai-analysis-store.js +2 -1
- package/esm/store/ai-question/global-store.d.ts +9 -6
- package/esm/store/ai-question/global-store.js +0 -1
- package/esm/store/ai-question/question-model-store.js +9 -7
- package/esm/store/ai-report/global-store.d.ts +3 -6
- package/esm/store/ai-report/global-store.js +4 -6
- package/esm/store/ai-template/global-store.d.ts +35 -0
- package/esm/store/ai-template/global-store.js +26 -0
- package/esm/utils/config.d.ts +1 -0
- package/esm/utils/interceptor.js +7 -2
- package/lib/components/BigBallSvg/index.js +2 -5
- package/lib/components/BigBallSvg/styled.d.ts +3 -0
- package/lib/components/BigBallSvg/styled.js +31 -0
- package/lib/components/Charts/Chart.js +41 -27
- package/lib/components/Charts/ReportPie.d.ts +4 -0
- package/lib/components/Charts/ReportPie.js +140 -0
- package/lib/components/Charts/TemplatePie.d.ts +4 -0
- package/lib/components/Charts/TemplatePie.js +86 -0
- package/lib/components/Charts/const.d.ts +15 -380
- package/lib/components/Charts/const.js +16 -381
- package/lib/components/Charts/interface.d.ts +15 -0
- package/lib/components/RootProvider/index.d.ts +3 -0
- package/lib/components/RootProvider/index.js +29 -0
- package/lib/{modules/ai-report/components/ScoreReport/ScoreBigBall.d.ts → components/ScoreBigBall/index.d.ts} +0 -0
- package/lib/components/ScoreBigBall/index.js +31 -0
- package/lib/components/ScoreBigBall/interface.d.ts +7 -0
- package/lib/components/ScoreBigBall/interface.js +2 -0
- package/lib/components/ScoreBigBall/styled.d.ts +4 -0
- package/lib/components/ScoreBigBall/styled.js +15 -0
- package/lib/components/SvgIcon/index.d.ts +2 -2
- package/lib/components/SvgIcon/index.js +26 -2
- package/lib/components/SvgIcon/interface.d.ts +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +5 -1
- package/lib/modules/ai-ability/Root.d.ts +3 -0
- package/lib/modules/ai-ability/Root.js +140 -0
- package/lib/modules/ai-ability/components/UpdateAbility/index.d.ts +4 -0
- package/lib/modules/ai-ability/components/UpdateAbility/index.js +116 -0
- package/lib/modules/ai-ability/components/UpdateAbility/interface.d.ts +7 -0
- package/lib/modules/ai-ability/components/UpdateAbility/interface.js +2 -0
- package/lib/modules/ai-ability/index.d.ts +2 -0
- package/lib/modules/ai-ability/index.js +12 -0
- package/lib/modules/ai-ability/interface.d.ts +15 -0
- package/lib/modules/ai-ability/interface.js +2 -0
- package/lib/modules/ai-ability/styled.d.ts +4 -0
- package/lib/modules/ai-ability/styled.js +9 -0
- package/lib/modules/ai-question/Root.js +7 -4
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +2 -2
- package/lib/modules/ai-question/components/AiAnalysis/MainPointsItem.js +2 -2
- package/lib/modules/ai-question/components/AiAnalysis/index.js +2 -2
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +7 -7
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +5 -5
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.js +2 -2
- package/lib/modules/ai-question/components/BaseAccordion/index.js +5 -5
- package/lib/modules/ai-question/components/BaseAccordion/styled.js +7 -4
- package/lib/modules/ai-question/components/BootVideo/index.js +3 -3
- package/lib/modules/ai-question/components/QuestionModel/Item.js +3 -3
- package/lib/modules/ai-question/components/QuestionModel/Skeleton.js +2 -2
- package/lib/modules/ai-question/components/QuestionModel/index.js +23 -16
- package/lib/modules/ai-question/components/QuestionModel/styled.js +1 -1
- package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +3 -3
- package/lib/modules/ai-question/components/QuestionPreview/styled.js +3 -3
- package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +11 -8
- package/lib/modules/ai-question/components/QuestionTemplate/Skeleton.js +2 -2
- package/lib/modules/ai-question/components/QuestionTemplate/index.js +1 -9
- package/lib/modules/ai-question/components/QuestionUpdate/Form.js +9 -2
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +2 -2
- package/lib/modules/ai-question/components/QuestionUpdate/const.js +1 -1
- package/lib/modules/ai-question/components/QuestionUpdate/index.js +7 -5
- package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +5 -1
- package/lib/modules/ai-question/index.d.ts +2 -2
- package/lib/modules/ai-question/index.js +2 -4
- package/lib/modules/ai-question/interface.d.ts +5 -3
- package/lib/modules/ai-question/useAiQuestion.d.ts +4 -2
- package/lib/modules/ai-question/useAiQuestion.js +3 -1
- package/lib/modules/ai-report/components/ScoreReport/Report.d.ts +2 -2
- package/lib/modules/ai-report/components/ScoreReport/Report.js +8 -26
- package/lib/modules/ai-report/components/ScoreReport/index.js +3 -3
- package/lib/modules/ai-report/components/ScoreReport/interface.d.ts +0 -7
- package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +1 -4
- package/lib/modules/ai-report/components/ScoreReport/styled.js +1 -14
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +10 -9
- package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +16 -16
- package/lib/modules/ai-report/components/VideoQuestion/styled.js +3 -2
- package/lib/modules/ai-report/index.d.ts +2 -2
- package/lib/modules/ai-report/index.js +2 -4
- package/lib/modules/ai-report/interface.d.ts +10 -1
- package/lib/modules/ai-report/useAiReport.d.ts +0 -1
- package/lib/modules/ai-template/Root.d.ts +4 -0
- package/lib/modules/ai-template/Root.js +53 -0
- package/lib/modules/ai-template/components/CapabilityModel/const.d.ts +47 -0
- package/lib/modules/ai-template/components/CapabilityModel/const.js +59 -0
- package/lib/modules/ai-template/components/CapabilityModel/index.d.ts +3 -0
- package/lib/modules/ai-template/components/CapabilityModel/index.js +32 -0
- package/lib/modules/ai-template/components/QuestionList/Item.d.ts +4 -0
- package/lib/modules/ai-template/components/QuestionList/Item.js +26 -0
- package/lib/modules/ai-template/components/QuestionList/index.d.ts +3 -0
- package/lib/modules/ai-template/components/QuestionList/index.js +25 -0
- package/lib/modules/ai-template/components/QuestionList/interface.d.ts +5 -0
- package/lib/modules/ai-template/components/QuestionList/interface.js +2 -0
- package/lib/modules/ai-template/components/TemplateHeader/index.d.ts +4 -0
- package/lib/modules/ai-template/components/TemplateHeader/index.js +20 -0
- package/lib/modules/ai-template/components/TemplateHeader/interface.d.ts +6 -0
- package/lib/modules/ai-template/components/TemplateHeader/interface.js +2 -0
- package/lib/modules/ai-template/components/TemplateList/index.d.ts +3 -0
- package/lib/modules/ai-template/components/TemplateList/index.js +101 -0
- package/lib/modules/ai-template/components/TemplateList/interface.d.ts +24 -0
- package/lib/modules/ai-template/components/TemplateList/interface.js +2 -0
- package/lib/modules/ai-template/components/TemplateList/styled.d.ts +37 -0
- package/lib/modules/ai-template/components/TemplateList/styled.js +80 -0
- package/lib/modules/ai-template/components/TemplateMenu/index.d.ts +3 -0
- package/lib/modules/ai-template/components/TemplateMenu/index.js +59 -0
- package/lib/modules/ai-template/components/TemplateMenu/interface.d.ts +12 -0
- package/lib/modules/ai-template/components/TemplateMenu/interface.js +2 -0
- package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +29 -0
- package/lib/modules/ai-template/components/TemplateMenu/styled.js +19 -0
- package/lib/modules/ai-template/index.d.ts +4 -0
- package/lib/modules/{ai-report/components/ScoreReport/RosePie.js → ai-template/index.js} +8 -7
- package/lib/modules/ai-template/interface.d.ts +24 -0
- package/lib/modules/ai-template/interface.js +2 -0
- package/lib/services/ai-ability.d.ts +12 -0
- package/lib/services/ai-ability.js +13 -0
- package/lib/services/ai-question.d.ts +0 -1
- package/lib/services/ai-question.js +1 -4
- package/lib/services/ai-template.d.ts +4 -0
- package/lib/services/ai-template.js +16 -0
- package/lib/store/ai-question/ai-analysis-store.js +2 -1
- package/lib/store/ai-question/global-store.d.ts +9 -6
- package/lib/store/ai-question/global-store.js +0 -1
- package/lib/store/ai-question/question-model-store.js +9 -7
- package/lib/store/ai-report/global-store.d.ts +3 -6
- package/lib/store/ai-report/global-store.js +3 -5
- package/lib/store/ai-template/global-store.d.ts +35 -0
- package/lib/store/ai-template/global-store.js +29 -0
- package/lib/utils/config.d.ts +1 -0
- package/lib/utils/interceptor.js +7 -2
- package/package.json +18 -111
- package/esm/components/BigBallSvg/index.module.css +0 -37
- package/esm/modules/ai-question/components/QuestionTemplate/HistoryPattern.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionTemplate/HistoryPattern.js +0 -20
- package/esm/modules/ai-question/components/QuestionTemplate/styled.d.ts +0 -87
- package/esm/modules/ai-question/components/QuestionTemplate/styled.js +0 -33
- package/esm/modules/ai-report/components/ScoreReport/RosePie.d.ts +0 -4
- package/esm/modules/ai-report/components/ScoreReport/ScoreBigBall.js +0 -26
- package/esm/modules/ai-report/components/ScoreReport/const.d.ts +0 -34
- package/esm/modules/ai-report/components/ScoreReport/const.js +0 -77
- package/lib/components/BigBallSvg/index.module.css +0 -37
- package/lib/modules/ai-question/components/QuestionTemplate/HistoryPattern.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionTemplate/HistoryPattern.js +0 -25
- package/lib/modules/ai-question/components/QuestionTemplate/styled.d.ts +0 -87
- package/lib/modules/ai-question/components/QuestionTemplate/styled.js +0 -39
- package/lib/modules/ai-report/components/ScoreReport/RosePie.d.ts +0 -4
- package/lib/modules/ai-report/components/ScoreReport/ScoreBigBall.js +0 -31
- package/lib/modules/ai-report/components/ScoreReport/const.d.ts +0 -34
- package/lib/modules/ai-report/components/ScoreReport/const.js +0 -80
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const AddIconRoot: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
|
|
5
|
+
color?: "inherit" | "disabled" | "error" | "warning" | "success" | "info" | "secondary" | "action" | "primary" | undefined;
|
|
6
|
+
fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
|
|
7
|
+
htmlColor?: string | undefined;
|
|
8
|
+
shapeRendering?: string | undefined;
|
|
9
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
10
|
+
titleAccess?: string | undefined;
|
|
11
|
+
viewBox?: string | undefined;
|
|
12
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "onLoad" | "name" | "type" | "fill" | "values" | "d" | "y" | "key" | "className" | "id" | "lang" | "tabIndex" | "role" | "color" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "height" | "max" | "media" | "method" | "min" | "target" | "width" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
|
|
13
|
+
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
14
|
+
}, "children" | "color" | "fontSize" | "shapeRendering" | "viewBox" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "htmlColor" | "titleAccess"> & {
|
|
15
|
+
children?: import("react").ReactNode;
|
|
16
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
17
|
+
export declare const ListRow: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
18
|
+
children?: import("react").ReactNode;
|
|
19
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
20
|
+
export declare const ListCol: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
21
|
+
children?: import("react").ReactNode;
|
|
22
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
23
|
+
export declare const ListItem: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
24
|
+
children?: import("react").ReactNode;
|
|
25
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
26
|
+
export declare const ListItemTitle: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
|
|
27
|
+
children?: import("react").ReactNode;
|
|
28
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
29
|
+
export declare const ListItemSubTitle: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
|
|
30
|
+
children?: import("react").ReactNode;
|
|
31
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
32
|
+
export declare const ListItemBody: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
33
|
+
children?: import("react").ReactNode;
|
|
34
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
35
|
+
export declare const ListItemOperation: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
36
|
+
children?: import("react").ReactNode;
|
|
37
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Box, Typography, AddIcon, styled } from 'fbm-ui';
|
|
2
|
+
export var AddIconRoot = styled(AddIcon)(function (_a) {
|
|
3
|
+
var theme = _a.theme;
|
|
4
|
+
return ({
|
|
5
|
+
color: theme.palette.primary.main,
|
|
6
|
+
fontSize: 36,
|
|
7
|
+
marginBottom: 8,
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
export var ListRow = styled(Box)({
|
|
11
|
+
height: 500,
|
|
12
|
+
minHeight: 216,
|
|
13
|
+
flex: '1 0',
|
|
14
|
+
display: 'flex',
|
|
15
|
+
flexWrap: 'wrap',
|
|
16
|
+
overflow: 'auto',
|
|
17
|
+
});
|
|
18
|
+
export var ListCol = styled(Box)({
|
|
19
|
+
width: '25%',
|
|
20
|
+
height: 200,
|
|
21
|
+
boxSizing: 'border-box',
|
|
22
|
+
padding: '0 8px',
|
|
23
|
+
marginBottom: 16,
|
|
24
|
+
});
|
|
25
|
+
export var ListItem = styled(Box)({
|
|
26
|
+
width: '100%',
|
|
27
|
+
height: '100%',
|
|
28
|
+
borderRadius: 8,
|
|
29
|
+
border: '1px solid rgba(0,0,0, 0.08)',
|
|
30
|
+
backgroundColor: 'rgba(255,255,255, 1)',
|
|
31
|
+
padding: '8px 8px 4px 8px',
|
|
32
|
+
display: 'flex',
|
|
33
|
+
flexDirection: 'column',
|
|
34
|
+
justifyContent: 'center',
|
|
35
|
+
overflow: 'hidden',
|
|
36
|
+
'&:hover': {
|
|
37
|
+
'& .list-item-operation': {
|
|
38
|
+
bottom: 0,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
export var ListItemTitle = styled(Typography)({
|
|
43
|
+
width: '100%',
|
|
44
|
+
overflow: 'hidden',
|
|
45
|
+
textOverflow: 'ellipsis',
|
|
46
|
+
whiteSpace: 'nowrap',
|
|
47
|
+
});
|
|
48
|
+
export var ListItemSubTitle = styled(Typography)(function (_a) {
|
|
49
|
+
var theme = _a.theme;
|
|
50
|
+
return ({
|
|
51
|
+
maxWidth: '100%',
|
|
52
|
+
overflow: 'hidden',
|
|
53
|
+
textOverflow: 'ellipsis',
|
|
54
|
+
whiteSpace: 'nowrap',
|
|
55
|
+
color: theme.palette.primary.main,
|
|
56
|
+
borderRadius: 1,
|
|
57
|
+
padding: '0 4px',
|
|
58
|
+
marginTop: 4,
|
|
59
|
+
backgroundColor: 'rgba(76,175,80, 0.1)',
|
|
60
|
+
alignSelf: 'baseline',
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
export var ListItemBody = styled(Box)({
|
|
64
|
+
flex: '1 0',
|
|
65
|
+
});
|
|
66
|
+
export var ListItemOperation = styled(Box)({
|
|
67
|
+
width: '100%',
|
|
68
|
+
backgroundColor: '#fff',
|
|
69
|
+
display: 'flex',
|
|
70
|
+
justifyContent: 'center',
|
|
71
|
+
padding: 8,
|
|
72
|
+
boxShadow: '0px 0px 8px rgba(0,0,0, 0.04)',
|
|
73
|
+
position: 'absolute',
|
|
74
|
+
left: 0,
|
|
75
|
+
bottom: -40,
|
|
76
|
+
transition: 'bottom 0.3s ease',
|
|
77
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
|
+
if (ar || !(i in from)) {
|
|
15
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
16
|
+
ar[i] = from[i];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
|
+
};
|
|
21
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
+
import { useState, useCallback, useEffect } from 'react';
|
|
23
|
+
import { Box } from 'fbm-ui';
|
|
24
|
+
import { useRequest } from 'ahooks';
|
|
25
|
+
import { useAiTemplateStore } from "../../../../store/ai-template/global-store";
|
|
26
|
+
import { PostAiTemplatesCollectionList } from "../../../../services/ai-template";
|
|
27
|
+
import { TemplateMenuList, TemplateMenuItem } from './styled';
|
|
28
|
+
var defaultHistoryPatterns = { token: 'historyPatterns', name: '我的岗位模型', selected: false };
|
|
29
|
+
var TemplateMenu = function () {
|
|
30
|
+
var _a = useState([]), list = _a[0], setList = _a[1];
|
|
31
|
+
var _b = useAiTemplateStore(function (store) { return [store.historyPatterns, store.menuId]; }), menuId = _b.menuId, historyPatterns = _b.historyPatterns, updateState = _b.updateState;
|
|
32
|
+
useRequest(PostAiTemplatesCollectionList, {
|
|
33
|
+
onSuccess: function (_a) {
|
|
34
|
+
var list = _a.data.list;
|
|
35
|
+
var token = (list.find(function (_a) {
|
|
36
|
+
var selected = _a.selected;
|
|
37
|
+
return selected;
|
|
38
|
+
}) || {}).token;
|
|
39
|
+
updateState({ menuId: token || 'historyPatterns' });
|
|
40
|
+
setList(historyPatterns ? __spreadArray([defaultHistoryPatterns], list, true) : list);
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
var handleSwitchTemplate = useCallback(function (index) {
|
|
44
|
+
var token = list[index].token;
|
|
45
|
+
updateState({ menuId: token });
|
|
46
|
+
}, [list, updateState]);
|
|
47
|
+
useEffect(function () {
|
|
48
|
+
if (list.length && list[0].token !== defaultHistoryPatterns.token) {
|
|
49
|
+
setList(__spreadArray([defaultHistoryPatterns], list, true));
|
|
50
|
+
}
|
|
51
|
+
}, [list, historyPatterns]);
|
|
52
|
+
return (_jsx(Box, __assign({ width: 140, height: 500, overflow: "auto" }, { children: _jsx(TemplateMenuList, { children: list.map(function (_a, index) {
|
|
53
|
+
var token = _a.token, name = _a.name, selected = _a.selected;
|
|
54
|
+
return (_jsx(TemplateMenuItem, __assign({ className: menuId === token ? 'active-item' : '', onClick: function () { return handleSwitchTemplate(index); } }, { children: name }), token));
|
|
55
|
+
}) }) })));
|
|
56
|
+
};
|
|
57
|
+
export default TemplateMenu;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface AiTemplatesCollectionList {
|
|
2
|
+
name: string;
|
|
3
|
+
token: string;
|
|
4
|
+
selected: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface AiTemplatesCollectionData {
|
|
7
|
+
list: AiTemplatesCollectionList[];
|
|
8
|
+
title: string;
|
|
9
|
+
}
|
|
10
|
+
export interface AiTemplatesCollectionRes {
|
|
11
|
+
data: AiTemplatesCollectionData;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const TemplateMenuList: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/mui").MenuListProps & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
3
|
+
export declare const TemplateMenuItem: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
autoFocus?: boolean | undefined;
|
|
5
|
+
classes?: Partial<import("fbm-ui/lib/mui").MenuItemClasses> | undefined;
|
|
6
|
+
dense?: boolean | undefined;
|
|
7
|
+
disabled?: boolean | undefined;
|
|
8
|
+
disableGutters?: boolean | undefined;
|
|
9
|
+
divider?: boolean | undefined;
|
|
10
|
+
selected?: boolean | undefined;
|
|
11
|
+
sx?: import("@mui/system").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
|
|
12
|
+
} & Omit<{
|
|
13
|
+
action?: import("react").Ref<import("fbm-ui/lib/mui").ButtonBaseActions> | undefined;
|
|
14
|
+
centerRipple?: boolean | undefined;
|
|
15
|
+
children?: import("react").ReactNode;
|
|
16
|
+
classes?: Partial<import("fbm-ui/lib/mui").ButtonBaseClasses> | undefined;
|
|
17
|
+
disabled?: boolean | undefined;
|
|
18
|
+
disableRipple?: boolean | undefined;
|
|
19
|
+
disableTouchRipple?: boolean | undefined;
|
|
20
|
+
focusRipple?: boolean | undefined;
|
|
21
|
+
focusVisibleClassName?: string | undefined;
|
|
22
|
+
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
23
|
+
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
24
|
+
sx?: import("@mui/system").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
|
|
25
|
+
tabIndex?: number | undefined;
|
|
26
|
+
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
27
|
+
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "key" | keyof import("react").LiHTMLAttributes<HTMLLIElement>> & {
|
|
28
|
+
ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
29
|
+
}, "children" | "tabIndex" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "autoFocus" | "selected" | "dense" | "disableGutters" | "divider"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { styled } from 'fbm-ui';
|
|
2
|
+
import { MenuList, MenuItem } from 'fbm-ui/lib/mui';
|
|
3
|
+
export var TemplateMenuList = styled(MenuList)(function (_a) {
|
|
4
|
+
var theme = _a.theme;
|
|
5
|
+
return ({
|
|
6
|
+
padding: 0,
|
|
7
|
+
'& .active-item': {
|
|
8
|
+
color: theme.palette.primary.main,
|
|
9
|
+
},
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
export var TemplateMenuItem = styled(MenuItem)({
|
|
13
|
+
fontSize: 14,
|
|
14
|
+
fontWeight: 500,
|
|
15
|
+
paddingLeft: 8,
|
|
16
|
+
});
|
|
@@ -10,10 +10,11 @@ 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
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return _jsx(
|
|
18
|
-
};
|
|
19
|
-
|
|
13
|
+
import { forwardRef, memo } from 'react';
|
|
14
|
+
import RootProvider from "../../components/RootProvider";
|
|
15
|
+
import TemplateRoot from './Root';
|
|
16
|
+
var AiTemplate = forwardRef(function (props, ref) {
|
|
17
|
+
return (_jsx(RootProvider, { children: _jsx(TemplateRoot, __assign({ ref: ref }, props)) }));
|
|
18
|
+
});
|
|
19
|
+
AiTemplate.displayName = 'AiTemplate';
|
|
20
|
+
export default memo(AiTemplate);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { QuestionModelStep } from '@/modules/ai-question/components/QuestionModel/interface';
|
|
2
|
+
import { AiTemplatesList, AiTemplatesCollection } from '@/modules/ai-template/components/TemplateList/interface';
|
|
3
|
+
export interface QuestionList extends QuestionModelStep {
|
|
4
|
+
}
|
|
5
|
+
export interface HistoryPatterns {
|
|
6
|
+
token?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
positionName?: string;
|
|
9
|
+
list: QuestionList[];
|
|
10
|
+
collection?: AiTemplatesCollection[];
|
|
11
|
+
}
|
|
12
|
+
export interface AiTemplateProps {
|
|
13
|
+
open: boolean;
|
|
14
|
+
historyPatterns?: HistoryPatterns[];
|
|
15
|
+
currentSteps?: QuestionList[];
|
|
16
|
+
onClose?: () => void;
|
|
17
|
+
onUseTemplate?: (list?: QuestionList[]) => void;
|
|
18
|
+
}
|
|
19
|
+
export interface PreviewItem extends HistoryPatterns, Partial<AiTemplatesList> {
|
|
20
|
+
}
|
|
21
|
+
export interface AiTemplateState {
|
|
22
|
+
menuId: string;
|
|
23
|
+
previewItem?: PreviewItem;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const PostQuestionCollectionList: <R>() => import("axios").AxiosPromise<R>;
|
|
2
|
+
interface UpsertData {
|
|
3
|
+
token?: string;
|
|
4
|
+
name: string;
|
|
5
|
+
tag: string;
|
|
6
|
+
mateData: {
|
|
7
|
+
account: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare const PostQuestionCollectionUpsert: <R>(data: UpsertData) => import("axios").AxiosPromise<R>;
|
|
11
|
+
export declare const PostQuestionCollectionDelete: <R>(token: string) => import("axios").AxiosPromise<R>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { POST } from "../utils/request";
|
|
2
|
+
// 考察能力列表
|
|
3
|
+
export var PostQuestionCollectionList = function () { return POST({ url: '/standard/b/questionCollection/list' }); };
|
|
4
|
+
// 更新考察能力
|
|
5
|
+
export var PostQuestionCollectionUpsert = function (data) { return POST({ url: 'standard/b/questionCollection/upsert', data: data }); };
|
|
6
|
+
// 删除考察能力
|
|
7
|
+
export var PostQuestionCollectionDelete = function (token) { return POST({ url: 'standard/b/questionCollection/delete', data: { token: token } }); };
|
|
@@ -4,7 +4,6 @@ export declare const PostAiModels: <R>() => import("axios").AxiosPromise<R>;
|
|
|
4
4
|
export declare const PostAiModelDetails: <R>(token: string) => import("axios").AxiosPromise<R>;
|
|
5
5
|
export declare const PostAiAbilities: <R>() => import("axios").AxiosPromise<R>;
|
|
6
6
|
export declare const PostAiModelUpsert: <R>(data: any) => import("axios").AxiosPromise<R>;
|
|
7
|
-
export declare const GetHistoryPatterns: <R>() => import("axios").AxiosPromise<R>;
|
|
8
7
|
interface PostAiInterviewData {
|
|
9
8
|
aiModelToken: string;
|
|
10
9
|
orderTokens: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { POST } from "../utils/request";
|
|
2
2
|
// 公共上传
|
|
3
3
|
export var PostCommonUpload = function (data) { return POST({ url: '/common/upload', data: data }); };
|
|
4
4
|
// 题库模版列表
|
|
@@ -11,7 +11,5 @@ export var PostAiModelDetails = function (token) { return POST({ url: "/standard
|
|
|
11
11
|
export var PostAiAbilities = function () { return POST({ url: "/standard/b/aiAbilities" }); };
|
|
12
12
|
// 创建或修改AI模型
|
|
13
13
|
export var PostAiModelUpsert = function (data) { return POST({ url: '/standard/b/aiModel/upsert', data: data }); };
|
|
14
|
-
// 已有岗位模型
|
|
15
|
-
export var GetHistoryPatterns = function () { return GET({ url: '/aiProcess/historyPatterns' }); };
|
|
16
14
|
// 创建面试
|
|
17
15
|
export var PostAiInterview = function (data) { return POST({ url: '/standard/b/aiInterview', data: data }); };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const PostAiTemplatesCollectionList: <R>() => import("axios").AxiosPromise<R>;
|
|
2
|
+
export declare const PostAiTemplatesList: <R>(token: string) => import("axios").AxiosPromise<R>;
|
|
3
|
+
export declare const PostAiTemplatesDetail: <R>(token: string) => import("axios").AxiosPromise<R>;
|
|
4
|
+
export declare const PostAiTemplatesIncrUse: <R>(token: string) => import("axios").AxiosPromise<R>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { POST } from "../utils/request";
|
|
2
|
+
// 岗位模版分类列表
|
|
3
|
+
export var PostAiTemplatesCollectionList = function () { return POST({ url: '/standard/b/aiTemplatesCollection/list' }); };
|
|
4
|
+
// 岗位模版列表
|
|
5
|
+
export var PostAiTemplatesList = function (token) { return POST({ url: '/standard/b/aiTemplates/list', data: { token: token } }); };
|
|
6
|
+
// 岗位模版详情
|
|
7
|
+
export var PostAiTemplatesDetail = function (token) { return POST({ url: '/standard/b/aiTemplates/detail', data: { token: token } }); };
|
|
8
|
+
// 增加模版使用次数
|
|
9
|
+
export var PostAiTemplatesIncrUse = function (token) { return POST({ url: '/standard/b/aiTemplates/IncrUse', data: { token: token } }); };
|
|
@@ -46,11 +46,12 @@ export var useAiAnalysisStore = (_a = createStore(function () {
|
|
|
46
46
|
var token = _a.token, weight = _a.weight;
|
|
47
47
|
if (weightsLen <= 1 && !inInit) {
|
|
48
48
|
var dataLength = data.length;
|
|
49
|
-
var averageWeight = 100 / dataLength;
|
|
49
|
+
var averageWeight = Math.floor((100 / dataLength) * 100) / 100;
|
|
50
50
|
var disableWeight = 100 - Math.floor(averageWeight * (dataLength - 1) * 100) / 100;
|
|
51
51
|
return token === data[dataLength - 1].token ? computeDecimalValue(disableWeight.toString()) : computeDecimalValue(averageWeight.toString());
|
|
52
52
|
}
|
|
53
53
|
else {
|
|
54
|
+
console.log(beforeTotalWeight);
|
|
54
55
|
return lastToken !== token ? weight : computeDecimalValue((100 - beforeTotalWeight).toString());
|
|
55
56
|
}
|
|
56
57
|
};
|
|
@@ -3,30 +3,33 @@ export declare const useAiQuestionStore: (depsFn?: import("hox/es/types").DepsFn
|
|
|
3
3
|
updateState: import("ahooks/lib/useSetState").SetState<AiQuestionProps>;
|
|
4
4
|
token: string;
|
|
5
5
|
name?: string | undefined;
|
|
6
|
-
|
|
6
|
+
templateList?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined;
|
|
7
7
|
mediaList?: {
|
|
8
8
|
url: string;
|
|
9
9
|
thumbUrl: string;
|
|
10
10
|
}[] | undefined;
|
|
11
|
-
onLoad?: ((steps
|
|
11
|
+
onLoad?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
12
|
+
onOpenTemplate?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
12
13
|
}> | undefined) => {
|
|
13
14
|
updateState: import("ahooks/lib/useSetState").SetState<AiQuestionProps>;
|
|
14
15
|
token: string;
|
|
15
16
|
name?: string | undefined;
|
|
16
|
-
|
|
17
|
+
templateList?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined;
|
|
17
18
|
mediaList?: {
|
|
18
19
|
url: string;
|
|
19
20
|
thumbUrl: string;
|
|
20
21
|
}[] | undefined;
|
|
21
|
-
onLoad?: ((steps
|
|
22
|
+
onLoad?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
23
|
+
onOpenTemplate?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
22
24
|
}, getAiQuestionStore: () => {
|
|
23
25
|
updateState: import("ahooks/lib/useSetState").SetState<AiQuestionProps>;
|
|
24
26
|
token: string;
|
|
25
27
|
name?: string | undefined;
|
|
26
|
-
|
|
28
|
+
templateList?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined;
|
|
27
29
|
mediaList?: {
|
|
28
30
|
url: string;
|
|
29
31
|
thumbUrl: string;
|
|
30
32
|
}[] | undefined;
|
|
31
|
-
onLoad?: ((steps
|
|
33
|
+
onLoad?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
34
|
+
onOpenTemplate?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
32
35
|
} | undefined;
|
|
@@ -16,7 +16,6 @@ export var useAiQuestionStore = (_a = createGlobalStore(function () {
|
|
|
16
16
|
var _a = useSetState({
|
|
17
17
|
token: '',
|
|
18
18
|
name: '',
|
|
19
|
-
historyPatterns: [],
|
|
20
19
|
mediaList: [],
|
|
21
20
|
}), state = _a[0], updateState = _a[1];
|
|
22
21
|
return __assign(__assign({}, state), { updateState: updateState });
|
|
@@ -22,7 +22,8 @@ export var useQuestionModelStore = (_a = createGlobalStore(function () {
|
|
|
22
22
|
* 权重值计算
|
|
23
23
|
* @param steps 模型数据
|
|
24
24
|
*/
|
|
25
|
-
var computeWeight = useCallback(function (steps) {
|
|
25
|
+
var computeWeight = useCallback(function (steps, isManualUpdate) {
|
|
26
|
+
if (isManualUpdate === void 0) { isManualUpdate = false; }
|
|
26
27
|
var lastAiTestIndex = 0;
|
|
27
28
|
// AI评分题
|
|
28
29
|
var aiTypeList = steps.filter(function (step, index) {
|
|
@@ -50,8 +51,8 @@ export var useQuestionModelStore = (_a = createGlobalStore(function () {
|
|
|
50
51
|
var totalDuration = 0;
|
|
51
52
|
var getWeight = function (_a, i) {
|
|
52
53
|
var weight = _a.weight;
|
|
53
|
-
if (weightsLen <= 1) {
|
|
54
|
-
var averageWeight = 100 / aiTypeListLength;
|
|
54
|
+
if (weightsLen <= 1 && !isManualUpdate) {
|
|
55
|
+
var averageWeight = Math.floor((100 / aiTypeListLength) * 100) / 100;
|
|
55
56
|
var disableWeight = 100 - Math.floor(averageWeight * (aiTypeListLength - 1) * 100) / 100;
|
|
56
57
|
return i === lastAiTestIndex ? computeDecimalValue(disableWeight.toString()) : computeDecimalValue(averageWeight.toString());
|
|
57
58
|
}
|
|
@@ -84,7 +85,7 @@ export var useQuestionModelStore = (_a = createGlobalStore(function () {
|
|
|
84
85
|
var maxInputValue = computeDecimalValue((curOriginalWeight + ((disabledStep === null || disabledStep === void 0 ? void 0 : disabledStep.weight) ? Number(disabledStep === null || disabledStep === void 0 ? void 0 : disabledStep.weight) : 0)).toString());
|
|
85
86
|
if (Number(formatValue) <= maxInputValue) {
|
|
86
87
|
var newSteps = update(steps, (_a = {}, _a[index] = { weight: { $set: formatValue } }, _a));
|
|
87
|
-
computeWeight(newSteps);
|
|
88
|
+
computeWeight(newSteps, true);
|
|
88
89
|
}
|
|
89
90
|
}, [steps, computeWeight]);
|
|
90
91
|
/**
|
|
@@ -92,11 +93,12 @@ export var useQuestionModelStore = (_a = createGlobalStore(function () {
|
|
|
92
93
|
* @param modelStep 新增数据项
|
|
93
94
|
*/
|
|
94
95
|
var addModel = useCallback(function (modelStep) {
|
|
96
|
+
var isManualUpdate = !steps.length;
|
|
95
97
|
var stepArr = Array.isArray(modelStep)
|
|
96
|
-
? modelStep.map(function (item) { return (__assign(__assign({}, item), { isNotCompute: true, uniqueId: uniqueId() })); })
|
|
97
|
-
: [__assign(__assign({}, modelStep), { isNotCompute: true, uniqueId: uniqueId() })];
|
|
98
|
+
? modelStep.map(function (item) { return (__assign(__assign({}, item), { weight: isManualUpdate ? item.weight : 0, isNotCompute: true, uniqueId: uniqueId() })); })
|
|
99
|
+
: [__assign(__assign({}, modelStep), { weight: isManualUpdate ? modelStep.weight : 0, isNotCompute: true, uniqueId: uniqueId() })];
|
|
98
100
|
var newSteps = update(steps, { $push: stepArr });
|
|
99
|
-
computeWeight(newSteps);
|
|
101
|
+
computeWeight(newSteps, isManualUpdate);
|
|
100
102
|
}, [computeWeight, steps]);
|
|
101
103
|
/**
|
|
102
104
|
* 编辑模型数据
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
import { AiInterviewReportList, AiReportProps } from '@/modules/ai-report/interface';
|
|
3
3
|
export declare const useAiReportStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
4
4
|
reportResult: Partial<AiInterviewReportList> | undefined;
|
|
5
|
-
updateState: (
|
|
5
|
+
updateState: import("ahooks/lib/useSetState").SetState<AiReportProps>;
|
|
6
6
|
updateReportResult: import("react").Dispatch<import("react").SetStateAction<Partial<AiInterviewReportList> | undefined>>;
|
|
7
7
|
token: string;
|
|
8
8
|
scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankInterval[] | undefined;
|
|
9
9
|
disabledScore?: boolean | undefined;
|
|
10
10
|
reminderSent?: boolean | undefined;
|
|
11
|
-
showAbilitiesDetails?: boolean | undefined;
|
|
12
11
|
operableButtons?: ("export" | "refresh" | "scoreRank" | "abilities" | "sendReminder")[] | undefined;
|
|
13
12
|
stepToken?: string | undefined;
|
|
14
13
|
interviewCheat?: import("@/modules/ai-report/interface").InterviewCheat | undefined;
|
|
@@ -21,13 +20,12 @@ export declare const useAiReportStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
|
21
20
|
onScoreRankIntervalsSubmit?: ((scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankIntervals[] | undefined) => Promise<any>) | undefined;
|
|
22
21
|
}> | undefined) => {
|
|
23
22
|
reportResult: Partial<AiInterviewReportList> | undefined;
|
|
24
|
-
updateState: (
|
|
23
|
+
updateState: import("ahooks/lib/useSetState").SetState<AiReportProps>;
|
|
25
24
|
updateReportResult: import("react").Dispatch<import("react").SetStateAction<Partial<AiInterviewReportList> | undefined>>;
|
|
26
25
|
token: string;
|
|
27
26
|
scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankInterval[] | undefined;
|
|
28
27
|
disabledScore?: boolean | undefined;
|
|
29
28
|
reminderSent?: boolean | undefined;
|
|
30
|
-
showAbilitiesDetails?: boolean | undefined;
|
|
31
29
|
operableButtons?: ("export" | "refresh" | "scoreRank" | "abilities" | "sendReminder")[] | undefined;
|
|
32
30
|
stepToken?: string | undefined;
|
|
33
31
|
interviewCheat?: import("@/modules/ai-report/interface").InterviewCheat | undefined;
|
|
@@ -40,13 +38,12 @@ export declare const useAiReportStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
|
40
38
|
onScoreRankIntervalsSubmit?: ((scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankIntervals[] | undefined) => Promise<any>) | undefined;
|
|
41
39
|
}, getAiReportStore: () => {
|
|
42
40
|
reportResult: Partial<AiInterviewReportList> | undefined;
|
|
43
|
-
updateState: (
|
|
41
|
+
updateState: import("ahooks/lib/useSetState").SetState<AiReportProps>;
|
|
44
42
|
updateReportResult: import("react").Dispatch<import("react").SetStateAction<Partial<AiInterviewReportList> | undefined>>;
|
|
45
43
|
token: string;
|
|
46
44
|
scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankInterval[] | undefined;
|
|
47
45
|
disabledScore?: boolean | undefined;
|
|
48
46
|
reminderSent?: boolean | undefined;
|
|
49
|
-
showAbilitiesDetails?: boolean | undefined;
|
|
50
47
|
operableButtons?: ("export" | "refresh" | "scoreRank" | "abilities" | "sendReminder")[] | undefined;
|
|
51
48
|
stepToken?: string | undefined;
|
|
52
49
|
interviewCheat?: import("@/modules/ai-report/interface").InterviewCheat | undefined;
|
|
@@ -10,19 +10,17 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
var _a;
|
|
13
|
-
import { useState
|
|
13
|
+
import { useState } from 'react';
|
|
14
|
+
import { useSetState } from 'ahooks';
|
|
14
15
|
import { createGlobalStore } from 'hox';
|
|
15
16
|
export var useAiReportStore = (_a = createGlobalStore(function () {
|
|
16
|
-
var _a =
|
|
17
|
+
var _a = useSetState({
|
|
17
18
|
token: '',
|
|
18
19
|
stepToken: '',
|
|
19
20
|
disabledScore: true,
|
|
20
21
|
scoreRankIntervals: [],
|
|
21
22
|
operableButtons: [],
|
|
22
|
-
}), state = _a[0],
|
|
23
|
+
}), state = _a[0], updateState = _a[1];
|
|
23
24
|
var _b = useState(), reportResult = _b[0], updateReportResult = _b[1];
|
|
24
|
-
var updateState = useCallback(function (params) {
|
|
25
|
-
setState(__assign(__assign({}, state), params));
|
|
26
|
-
}, [state]);
|
|
27
25
|
return __assign(__assign({}, state), { reportResult: reportResult, updateState: updateState, updateReportResult: updateReportResult });
|
|
28
26
|
}), _a[0]), getAiReportStore = _a[1];
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AiTemplateProps, AiTemplateState } from '@/modules/ai-template/interface';
|
|
2
|
+
export declare const useAiTemplateStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
3
|
+
updateProps: import("ahooks/lib/useSetState").SetState<AiTemplateProps>;
|
|
4
|
+
updateState: import("ahooks/lib/useSetState").SetState<AiTemplateState>;
|
|
5
|
+
handleIncrUse: (token: string) => void;
|
|
6
|
+
menuId: string;
|
|
7
|
+
previewItem?: import("@/modules/ai-template/interface").PreviewItem | undefined;
|
|
8
|
+
open: boolean;
|
|
9
|
+
historyPatterns?: import("@/modules/ai-template/interface").HistoryPatterns[] | undefined;
|
|
10
|
+
currentSteps?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
11
|
+
onClose?: (() => void) | undefined;
|
|
12
|
+
onUseTemplate?: ((list?: import("@/modules/ai-template/interface").QuestionList[] | undefined) => void) | undefined;
|
|
13
|
+
}> | undefined) => {
|
|
14
|
+
updateProps: import("ahooks/lib/useSetState").SetState<AiTemplateProps>;
|
|
15
|
+
updateState: import("ahooks/lib/useSetState").SetState<AiTemplateState>;
|
|
16
|
+
handleIncrUse: (token: string) => void;
|
|
17
|
+
menuId: string;
|
|
18
|
+
previewItem?: import("@/modules/ai-template/interface").PreviewItem | undefined;
|
|
19
|
+
open: boolean;
|
|
20
|
+
historyPatterns?: import("@/modules/ai-template/interface").HistoryPatterns[] | undefined;
|
|
21
|
+
currentSteps?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
22
|
+
onClose?: (() => void) | undefined;
|
|
23
|
+
onUseTemplate?: ((list?: import("@/modules/ai-template/interface").QuestionList[] | undefined) => void) | undefined;
|
|
24
|
+
}, getAiTemplateStore: () => {
|
|
25
|
+
updateProps: import("ahooks/lib/useSetState").SetState<AiTemplateProps>;
|
|
26
|
+
updateState: import("ahooks/lib/useSetState").SetState<AiTemplateState>;
|
|
27
|
+
handleIncrUse: (token: string) => void;
|
|
28
|
+
menuId: string;
|
|
29
|
+
previewItem?: import("@/modules/ai-template/interface").PreviewItem | undefined;
|
|
30
|
+
open: boolean;
|
|
31
|
+
historyPatterns?: import("@/modules/ai-template/interface").HistoryPatterns[] | undefined;
|
|
32
|
+
currentSteps?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
33
|
+
onClose?: (() => void) | undefined;
|
|
34
|
+
onUseTemplate?: ((list?: import("@/modules/ai-template/interface").QuestionList[] | undefined) => void) | undefined;
|
|
35
|
+
} | undefined;
|