eli-video-interview 1.2.35 → 1.2.36-alpha.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/esm/components/Charts/Chart.js +1 -1
- package/esm/components/react-photo-view/Photo.css +14 -0
- package/esm/components/react-photo-view/Photo.d.ts +18 -0
- package/esm/components/react-photo-view/Photo.js +54 -0
- package/esm/components/react-photo-view/PhotoBox.css +18 -0
- package/esm/components/react-photo-view/PhotoBox.d.ts +22 -0
- package/esm/components/react-photo-view/PhotoBox.js +302 -0
- package/esm/components/react-photo-view/PhotoPage.d.ts +9 -0
- package/esm/components/react-photo-view/PhotoPage.js +77 -0
- package/esm/components/react-photo-view/PhotoProvider.d.ts +14 -0
- package/esm/components/react-photo-view/PhotoProvider.js +98 -0
- package/esm/components/react-photo-view/PhotoSlider.css +125 -0
- package/esm/components/react-photo-view/PhotoSlider.d.ts +12 -0
- package/esm/components/react-photo-view/PhotoSlider.js +262 -0
- package/esm/components/react-photo-view/PhotoView.d.ts +30 -0
- package/esm/components/react-photo-view/PhotoView.js +48 -0
- package/esm/components/react-photo-view/components/ArrowLeft.d.ts +3 -0
- package/esm/components/react-photo-view/components/ArrowLeft.js +18 -0
- package/esm/components/react-photo-view/components/ArrowRight.d.ts +3 -0
- package/esm/components/react-photo-view/components/ArrowRight.js +18 -0
- package/esm/components/react-photo-view/components/CloseIcon.d.ts +3 -0
- package/esm/components/react-photo-view/components/CloseIcon.js +16 -0
- package/esm/components/react-photo-view/components/PreventScroll.d.ts +1 -0
- package/esm/components/react-photo-view/components/PreventScroll.js +12 -0
- package/esm/components/react-photo-view/components/SlidePortal.css +10 -0
- package/esm/components/react-photo-view/components/SlidePortal.d.ts +7 -0
- package/esm/components/react-photo-view/components/SlidePortal.js +30 -0
- package/esm/components/react-photo-view/components/Spinner.css +23 -0
- package/esm/components/react-photo-view/components/Spinner.d.ts +4 -0
- package/esm/components/react-photo-view/components/Spinner.js +29 -0
- package/esm/components/react-photo-view/hooks/useAdjacentImages.d.ts +5 -0
- package/esm/components/react-photo-view/hooks/useAdjacentImages.js +14 -0
- package/esm/components/react-photo-view/hooks/useAnimationOrigin.d.ts +6 -0
- package/esm/components/react-photo-view/hooks/useAnimationOrigin.js +72 -0
- package/esm/components/react-photo-view/hooks/useAnimationPosition.d.ts +2 -0
- package/esm/components/react-photo-view/hooks/useAnimationPosition.js +28 -0
- package/esm/components/react-photo-view/hooks/useAnimationVisible.d.ts +6 -0
- package/esm/components/react-photo-view/hooks/useAnimationVisible.js +49 -0
- package/esm/components/react-photo-view/hooks/useContinuousTap.d.ts +8 -0
- package/esm/components/react-photo-view/hooks/useContinuousTap.js +36 -0
- package/esm/components/react-photo-view/hooks/useDebounceCallback.d.ts +10 -0
- package/esm/components/react-photo-view/hooks/useDebounceCallback.js +48 -0
- package/esm/components/react-photo-view/hooks/useEventListener.d.ts +1 -0
- package/esm/components/react-photo-view/hooks/useEventListener.js +18 -0
- package/esm/components/react-photo-view/hooks/useForkedVariable.d.ts +5 -0
- package/esm/components/react-photo-view/hooks/useForkedVariable.js +17 -0
- package/esm/components/react-photo-view/hooks/useInitial.d.ts +1 -0
- package/esm/components/react-photo-view/hooks/useInitial.js +9 -0
- package/esm/components/react-photo-view/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/esm/components/react-photo-view/hooks/useIsomorphicLayoutEffect.js +3 -0
- package/esm/components/react-photo-view/hooks/useMethods.d.ts +4 -0
- package/esm/components/react-photo-view/hooks/useMethods.js +35 -0
- package/esm/components/react-photo-view/hooks/useMountedRef.d.ts +3 -0
- package/esm/components/react-photo-view/hooks/useMountedRef.js +12 -0
- package/esm/components/react-photo-view/hooks/useScrollPosition.d.ts +4 -0
- package/esm/components/react-photo-view/hooks/useScrollPosition.js +157 -0
- package/esm/components/react-photo-view/hooks/useSetState.d.ts +2 -0
- package/esm/components/react-photo-view/hooks/useSetState.js +15 -0
- package/esm/components/react-photo-view/hooks/useTargetScale.d.ts +4 -0
- package/esm/components/react-photo-view/hooks/useTargetScale.js +70 -0
- package/esm/components/react-photo-view/index.d.ts +4 -0
- package/esm/components/react-photo-view/index.js +4 -0
- package/esm/components/react-photo-view/photo-context.d.ts +11 -0
- package/esm/components/react-photo-view/photo-context.js +2 -0
- package/esm/components/react-photo-view/types.d.ts +196 -0
- package/esm/components/react-photo-view/types.js +1 -0
- package/esm/components/react-photo-view/utils/edgeHandle.d.ts +15 -0
- package/esm/components/react-photo-view/utils/edgeHandle.js +40 -0
- package/esm/components/react-photo-view/utils/getMultipleTouchPosition.d.ts +5 -0
- package/esm/components/react-photo-view/utils/getMultipleTouchPosition.js +11 -0
- package/esm/components/react-photo-view/utils/getPositionOnMoveOrScale.d.ts +9 -0
- package/esm/components/react-photo-view/utils/getPositionOnMoveOrScale.js +31 -0
- package/esm/components/react-photo-view/utils/getRotateSize.d.ts +4 -0
- package/esm/components/react-photo-view/utils/getRotateSize.js +11 -0
- package/esm/components/react-photo-view/utils/getSuitableImageSize.d.ts +10 -0
- package/esm/components/react-photo-view/utils/getSuitableImageSize.js +42 -0
- package/esm/components/react-photo-view/utils/isTouchDevice.d.ts +5 -0
- package/esm/components/react-photo-view/utils/isTouchDevice.js +5 -0
- package/esm/components/react-photo-view/utils/limitTarget.d.ts +5 -0
- package/esm/components/react-photo-view/utils/limitTarget.js +12 -0
- package/esm/components/react-photo-view/variables.d.ts +48 -0
- package/esm/components/react-photo-view/variables.js +48 -0
- package/esm/modules/ai-ability/Root.js +12 -3
- package/esm/modules/ai-ability/components/AddAbility/index.js +2 -2
- package/esm/modules/ai-ability/components/UpdateAbility/index.js +2 -2
- package/esm/modules/ai-ability/interface.d.ts +8 -1
- package/esm/modules/ai-ability-select/Root.d.ts +4 -0
- package/esm/modules/ai-ability-select/Root.js +47 -0
- package/esm/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.d.ts +4 -0
- package/esm/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.js +22 -0
- package/esm/modules/ai-ability-select/components/AiAbilityItem/index.d.ts +4 -0
- package/esm/modules/ai-ability-select/components/AiAbilityItem/index.js +42 -0
- package/esm/modules/ai-ability-select/components/AiAbilityItem/interface.d.ts +13 -0
- package/esm/modules/ai-ability-select/components/AiAbilityItem/interface.js +1 -0
- package/esm/modules/ai-ability-select/components/AiAbilityItem/styled.d.ts +2 -0
- package/esm/modules/ai-ability-select/components/AiAbilityItem/styled.js +8 -0
- package/esm/modules/ai-ability-select/components/AiAbilityList/index.d.ts +4 -0
- package/esm/modules/ai-ability-select/components/AiAbilityList/index.js +19 -0
- package/esm/modules/ai-ability-select/components/AiAbilityList/interface.d.ts +4 -0
- package/esm/modules/ai-ability-select/components/AiAbilityList/interface.js +1 -0
- package/esm/modules/ai-ability-select/index.d.ts +4 -0
- package/esm/modules/ai-ability-select/index.js +20 -0
- package/esm/modules/ai-ability-select/interface.d.ts +33 -0
- package/esm/modules/ai-ability-select/interface.js +1 -0
- package/esm/modules/ai-question/Root.d.ts +1 -1
- package/esm/modules/ai-question/Root.js +6 -6
- package/esm/modules/ai-question/components/QuestionModel/AutoCombine.d.ts +4 -0
- package/esm/modules/ai-question/components/QuestionModel/AutoCombine.js +19 -0
- package/esm/modules/ai-question/components/QuestionModel/Interactive.d.ts +3 -0
- package/esm/modules/ai-question/components/QuestionModel/Interactive.js +30 -0
- package/esm/modules/ai-question/components/QuestionUpdate/RandomQuestion.d.ts +4 -0
- package/esm/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +58 -0
- package/esm/modules/ai-question/components/QuestionUpdate/SelectQuestion.d.ts +8 -0
- package/esm/modules/ai-question/components/QuestionUpdate/SelectQuestion.js +62 -0
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoicePreview.d.ts +6 -0
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoicePreview.js +47 -0
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.d.ts +7 -0
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.js +60 -0
- package/esm/modules/ai-question/components/QuestionUpdate/styled.d.ts +6 -0
- package/esm/modules/ai-question/components/QuestionUpdate/styled.js +52 -0
- package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +1 -1
- package/esm/modules/ai-report/components/VideoQuestion/BodyImages.d.ts +7 -0
- package/esm/modules/ai-report/components/VideoQuestion/BodyImages.js +40 -0
- package/esm/modules/ai-template/Root.js +32 -10
- package/esm/modules/ai-template/components/CapabilityModel/index.js +1 -1
- package/esm/modules/ai-template/components/QuestionList/Item.d.ts +2 -2
- package/esm/modules/ai-template/components/QuestionList/Item.js +28 -7
- package/esm/modules/ai-template/components/QuestionList/index.d.ts +2 -1
- package/esm/modules/ai-template/components/QuestionList/index.js +15 -4
- package/esm/modules/ai-template/components/QuestionList/interface.d.ts +6 -1
- package/esm/modules/ai-template/components/TemplateList/index.js +4 -4
- package/esm/modules/ai-template/components/TemplateList/styled.d.ts +1 -1
- package/esm/modules/ai-template/index.js +2 -2
- package/esm/modules/ai-template/interface.d.ts +2 -0
- package/esm/store/ai-ability-select/question-ability-store.d.ts +21 -0
- package/esm/store/ai-ability-select/question-ability-store.js +21 -0
- package/esm/store/ai-question/interview-room-store.d.ts +20 -0
- package/esm/store/ai-question/interview-room-store.js +21 -0
- package/esm/store/ai-template/global-store.d.ts +3 -0
- package/esm/store/ai-template/global-store.js +3 -3
- package/esm/store/enterprise/enterprise-store.d.ts +29 -0
- package/esm/store/enterprise/enterprise-store.js +13 -0
- package/lib/components/Charts/Chart.js +1 -1
- package/lib/components/react-photo-view/Photo.css +14 -0
- package/lib/components/react-photo-view/Photo.d.ts +18 -0
- package/lib/components/react-photo-view/Photo.js +60 -0
- package/lib/components/react-photo-view/PhotoBox.css +18 -0
- package/lib/components/react-photo-view/PhotoBox.d.ts +22 -0
- package/lib/components/react-photo-view/PhotoBox.js +308 -0
- package/lib/components/react-photo-view/PhotoPage.d.ts +9 -0
- package/lib/components/react-photo-view/PhotoPage.js +79 -0
- package/lib/components/react-photo-view/PhotoProvider.d.ts +14 -0
- package/lib/components/react-photo-view/PhotoProvider.js +104 -0
- package/lib/components/react-photo-view/PhotoSlider.css +125 -0
- package/lib/components/react-photo-view/PhotoSlider.d.ts +12 -0
- package/lib/components/react-photo-view/PhotoSlider.js +268 -0
- package/lib/components/react-photo-view/PhotoView.d.ts +30 -0
- package/lib/components/react-photo-view/PhotoView.js +53 -0
- package/lib/components/react-photo-view/components/ArrowLeft.d.ts +3 -0
- package/lib/components/react-photo-view/components/ArrowLeft.js +20 -0
- package/lib/components/react-photo-view/components/ArrowRight.d.ts +3 -0
- package/lib/components/react-photo-view/components/ArrowRight.js +20 -0
- package/lib/components/react-photo-view/components/CloseIcon.d.ts +3 -0
- package/lib/components/react-photo-view/components/CloseIcon.js +18 -0
- package/lib/components/react-photo-view/components/PreventScroll.d.ts +1 -0
- package/lib/components/react-photo-view/components/PreventScroll.js +15 -0
- package/lib/components/react-photo-view/components/SlidePortal.css +10 -0
- package/lib/components/react-photo-view/components/SlidePortal.d.ts +7 -0
- package/lib/components/react-photo-view/components/SlidePortal.js +32 -0
- package/lib/components/react-photo-view/components/Spinner.css +23 -0
- package/lib/components/react-photo-view/components/Spinner.d.ts +4 -0
- package/lib/components/react-photo-view/components/Spinner.js +31 -0
- package/lib/components/react-photo-view/hooks/useAdjacentImages.d.ts +5 -0
- package/lib/components/react-photo-view/hooks/useAdjacentImages.js +17 -0
- package/lib/components/react-photo-view/hooks/useAnimationOrigin.d.ts +6 -0
- package/lib/components/react-photo-view/hooks/useAnimationOrigin.js +78 -0
- package/lib/components/react-photo-view/hooks/useAnimationPosition.d.ts +2 -0
- package/lib/components/react-photo-view/hooks/useAnimationPosition.js +34 -0
- package/lib/components/react-photo-view/hooks/useAnimationVisible.d.ts +6 -0
- package/lib/components/react-photo-view/hooks/useAnimationVisible.js +55 -0
- package/lib/components/react-photo-view/hooks/useContinuousTap.d.ts +8 -0
- package/lib/components/react-photo-view/hooks/useContinuousTap.js +42 -0
- package/lib/components/react-photo-view/hooks/useDebounceCallback.d.ts +10 -0
- package/lib/components/react-photo-view/hooks/useDebounceCallback.js +51 -0
- package/lib/components/react-photo-view/hooks/useEventListener.d.ts +1 -0
- package/lib/components/react-photo-view/hooks/useEventListener.js +21 -0
- package/lib/components/react-photo-view/hooks/useForkedVariable.d.ts +5 -0
- package/lib/components/react-photo-view/hooks/useForkedVariable.js +20 -0
- package/lib/components/react-photo-view/hooks/useInitial.d.ts +1 -0
- package/lib/components/react-photo-view/hooks/useInitial.js +12 -0
- package/lib/components/react-photo-view/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/lib/components/react-photo-view/hooks/useIsomorphicLayoutEffect.js +5 -0
- package/lib/components/react-photo-view/hooks/useMethods.d.ts +4 -0
- package/lib/components/react-photo-view/hooks/useMethods.js +38 -0
- package/lib/components/react-photo-view/hooks/useMountedRef.d.ts +3 -0
- package/lib/components/react-photo-view/hooks/useMountedRef.js +14 -0
- package/lib/components/react-photo-view/hooks/useScrollPosition.d.ts +4 -0
- package/lib/components/react-photo-view/hooks/useScrollPosition.js +163 -0
- package/lib/components/react-photo-view/hooks/useSetState.d.ts +2 -0
- package/lib/components/react-photo-view/hooks/useSetState.js +18 -0
- package/lib/components/react-photo-view/hooks/useTargetScale.d.ts +4 -0
- package/lib/components/react-photo-view/hooks/useTargetScale.js +76 -0
- package/lib/components/react-photo-view/index.d.ts +4 -0
- package/lib/components/react-photo-view/index.js +12 -0
- package/lib/components/react-photo-view/photo-context.d.ts +11 -0
- package/lib/components/react-photo-view/photo-context.js +4 -0
- package/lib/components/react-photo-view/types.d.ts +196 -0
- package/lib/components/react-photo-view/types.js +2 -0
- package/lib/components/react-photo-view/utils/edgeHandle.d.ts +15 -0
- package/lib/components/react-photo-view/utils/edgeHandle.js +45 -0
- package/lib/components/react-photo-view/utils/getMultipleTouchPosition.d.ts +5 -0
- package/lib/components/react-photo-view/utils/getMultipleTouchPosition.js +14 -0
- package/lib/components/react-photo-view/utils/getPositionOnMoveOrScale.d.ts +9 -0
- package/lib/components/react-photo-view/utils/getPositionOnMoveOrScale.js +34 -0
- package/lib/components/react-photo-view/utils/getRotateSize.d.ts +4 -0
- package/lib/components/react-photo-view/utils/getRotateSize.js +14 -0
- package/lib/components/react-photo-view/utils/getSuitableImageSize.d.ts +10 -0
- package/lib/components/react-photo-view/utils/getSuitableImageSize.js +48 -0
- package/lib/components/react-photo-view/utils/isTouchDevice.d.ts +5 -0
- package/lib/components/react-photo-view/utils/isTouchDevice.js +7 -0
- package/lib/components/react-photo-view/utils/limitTarget.d.ts +5 -0
- package/lib/components/react-photo-view/utils/limitTarget.js +17 -0
- package/lib/components/react-photo-view/variables.d.ts +48 -0
- package/lib/components/react-photo-view/variables.js +51 -0
- package/lib/modules/ai-ability/Root.js +12 -3
- package/lib/modules/ai-ability/components/AddAbility/index.js +2 -2
- package/lib/modules/ai-ability/components/UpdateAbility/index.js +2 -2
- package/lib/modules/ai-ability/interface.d.ts +8 -1
- package/lib/modules/ai-ability-select/Root.d.ts +4 -0
- package/lib/modules/ai-ability-select/Root.js +52 -0
- package/lib/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.d.ts +4 -0
- package/lib/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.js +24 -0
- package/lib/modules/ai-ability-select/components/AiAbilityItem/index.d.ts +4 -0
- package/lib/modules/ai-ability-select/components/AiAbilityItem/index.js +47 -0
- package/lib/modules/ai-ability-select/components/AiAbilityItem/interface.d.ts +13 -0
- package/lib/modules/ai-ability-select/components/AiAbilityItem/interface.js +2 -0
- package/lib/modules/ai-ability-select/components/AiAbilityItem/styled.d.ts +2 -0
- package/lib/modules/ai-ability-select/components/AiAbilityItem/styled.js +11 -0
- package/lib/modules/ai-ability-select/components/AiAbilityList/index.d.ts +4 -0
- package/lib/modules/ai-ability-select/components/AiAbilityList/index.js +24 -0
- package/lib/modules/ai-ability-select/components/AiAbilityList/interface.d.ts +4 -0
- package/lib/modules/ai-ability-select/components/AiAbilityList/interface.js +2 -0
- package/lib/modules/ai-ability-select/index.d.ts +4 -0
- package/lib/modules/ai-ability-select/index.js +25 -0
- package/lib/modules/ai-ability-select/interface.d.ts +33 -0
- package/lib/modules/ai-ability-select/interface.js +2 -0
- package/lib/modules/ai-question/Root.d.ts +1 -1
- package/lib/modules/ai-question/Root.js +6 -6
- package/lib/modules/ai-question/components/QuestionModel/AutoCombine.d.ts +4 -0
- package/lib/modules/ai-question/components/QuestionModel/AutoCombine.js +21 -0
- package/lib/modules/ai-question/components/QuestionModel/Interactive.d.ts +3 -0
- package/lib/modules/ai-question/components/QuestionModel/Interactive.js +35 -0
- package/lib/modules/ai-question/components/QuestionUpdate/RandomQuestion.d.ts +4 -0
- package/lib/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +63 -0
- package/lib/modules/ai-question/components/QuestionUpdate/SelectQuestion.d.ts +8 -0
- package/lib/modules/ai-question/components/QuestionUpdate/SelectQuestion.js +64 -0
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoicePreview.d.ts +6 -0
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoicePreview.js +49 -0
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.d.ts +7 -0
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.js +62 -0
- package/lib/modules/ai-question/components/QuestionUpdate/styled.d.ts +6 -0
- package/lib/modules/ai-question/components/QuestionUpdate/styled.js +55 -0
- package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +1 -1
- package/lib/modules/ai-report/components/VideoQuestion/BodyImages.d.ts +7 -0
- package/lib/modules/ai-report/components/VideoQuestion/BodyImages.js +45 -0
- package/lib/modules/ai-template/Root.js +32 -10
- package/lib/modules/ai-template/components/CapabilityModel/index.js +1 -1
- package/lib/modules/ai-template/components/QuestionList/Item.d.ts +2 -2
- package/lib/modules/ai-template/components/QuestionList/Item.js +27 -6
- package/lib/modules/ai-template/components/QuestionList/index.d.ts +2 -1
- package/lib/modules/ai-template/components/QuestionList/index.js +15 -4
- package/lib/modules/ai-template/components/QuestionList/interface.d.ts +6 -1
- package/lib/modules/ai-template/components/TemplateList/index.js +4 -4
- package/lib/modules/ai-template/components/TemplateList/styled.d.ts +1 -1
- package/lib/modules/ai-template/index.js +2 -2
- package/lib/modules/ai-template/interface.d.ts +2 -0
- package/lib/store/ai-ability-select/question-ability-store.d.ts +21 -0
- package/lib/store/ai-ability-select/question-ability-store.js +24 -0
- package/lib/store/ai-question/interview-room-store.d.ts +20 -0
- package/lib/store/ai-question/interview-room-store.js +24 -0
- package/lib/store/ai-template/global-store.d.ts +3 -0
- package/lib/store/ai-template/global-store.js +3 -3
- package/lib/store/enterprise/enterprise-store.d.ts +29 -0
- package/lib/store/enterprise/enterprise-store.js +16 -0
- package/package.json +2 -2
|
@@ -15,29 +15,45 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
var react_1 = require("react");
|
|
19
|
-
var fbm_ui_1 = require("fbm-ui");
|
|
20
|
-
var ScrollDialogContent_1 = __importDefault(require("../../components/ScrollDialogContent"));
|
|
21
|
-
var global_store_1 = require("../../store/ai-template/global-store");
|
|
22
18
|
var CapabilityModel_1 = __importDefault(require("./components/CapabilityModel"));
|
|
23
19
|
var QuestionList_1 = __importDefault(require("./components/QuestionList"));
|
|
24
20
|
var TemplateHeader_1 = __importDefault(require("./components/TemplateHeader"));
|
|
25
21
|
var TemplateList_1 = __importDefault(require("./components/TemplateList"));
|
|
26
22
|
var TemplateMenu_1 = __importDefault(require("./components/TemplateMenu"));
|
|
23
|
+
var ScrollDialogContent_1 = __importDefault(require("../../components/ScrollDialogContent"));
|
|
24
|
+
var global_store_1 = require("../../store/ai-template/global-store");
|
|
25
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
26
|
+
var react_1 = require("react");
|
|
27
27
|
var AiTemplateDialog = (0, fbm_ui_1.styled)(fbm_ui_1.Dialog)({
|
|
28
28
|
'& .MuiPaper-root>.MuiBox-root>.MuiBox-root': {
|
|
29
29
|
marginBottom: 0,
|
|
30
30
|
},
|
|
31
31
|
});
|
|
32
32
|
var AiTemplateRoot = (0, react_1.forwardRef)(function (props, ref) {
|
|
33
|
-
var _a = (0, global_store_1.useAiTemplateStore)(), open = _a.open, previewItem = _a.previewItem, updateProps = _a.updateProps, updateState = _a.updateState, handleIncrUse = _a.handleIncrUse;
|
|
33
|
+
var _a = (0, global_store_1.useAiTemplateStore)(), open = _a.open, previewItem = _a.previewItem, _b = _a.currentCheckedQuestions, currentCheckedQuestions = _b === void 0 ? [] : _b, updateProps = _a.updateProps, updateState = _a.updateState, handleIncrUse = _a.handleIncrUse;
|
|
34
|
+
var _c = (0, react_1.useState)([]), checkedQuestionList = _c[0], setCheckedQuestionList = _c[1];
|
|
35
|
+
var _d = (0, react_1.useState)(0), curCheckedQuestionListCount = _d[0], setCurCheckedQuestionListCount = _d[1];
|
|
34
36
|
var handleUseTemplate = (0, react_1.useCallback)(function () {
|
|
35
|
-
var _a;
|
|
36
|
-
(
|
|
37
|
+
var _a, _b;
|
|
38
|
+
if ((currentCheckedQuestions === null || currentCheckedQuestions === void 0 ? void 0 : currentCheckedQuestions.length) > 0) {
|
|
39
|
+
console.log('currentCheckedQuestions', currentCheckedQuestions);
|
|
40
|
+
(_a = props === null || props === void 0 ? void 0 : props.onUseTemplate) === null || _a === void 0 ? void 0 : _a.call(props, currentCheckedQuestions);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
(_b = props === null || props === void 0 ? void 0 : props.onUseTemplate) === null || _b === void 0 ? void 0 : _b.call(props, previewItem === null || previewItem === void 0 ? void 0 : previewItem.list);
|
|
37
44
|
if (previewItem === null || previewItem === void 0 ? void 0 : previewItem.token) {
|
|
38
45
|
handleIncrUse(previewItem === null || previewItem === void 0 ? void 0 : previewItem.token);
|
|
39
46
|
}
|
|
40
|
-
}, [handleIncrUse, previewItem, props]);
|
|
47
|
+
}, [handleIncrUse, previewItem, props, currentCheckedQuestions]);
|
|
48
|
+
var handleCheckedQuestionList = (0, react_1.useCallback)(function (list) {
|
|
49
|
+
setCheckedQuestionList(list);
|
|
50
|
+
var curList = list.filter(function (v) { return v && v.checked; });
|
|
51
|
+
setCurCheckedQuestionListCount(curList.length);
|
|
52
|
+
updateProps(__assign(__assign({}, props), { currentCheckedQuestions: curList }));
|
|
53
|
+
}, [props, updateProps, setCurCheckedQuestionListCount]);
|
|
54
|
+
var handleCheckChange = (0, react_1.useCallback)(function (list) {
|
|
55
|
+
handleCheckedQuestionList(list);
|
|
56
|
+
}, [handleCheckedQuestionList]);
|
|
41
57
|
(0, react_1.useEffect)(function () {
|
|
42
58
|
if (!props.open) {
|
|
43
59
|
updateState({ previewItem: undefined });
|
|
@@ -45,9 +61,15 @@ var AiTemplateRoot = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
45
61
|
updateProps(props);
|
|
46
62
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
47
63
|
}, [props]);
|
|
64
|
+
// 重置选择项
|
|
65
|
+
(0, react_1.useEffect)(function () {
|
|
66
|
+
if (!previewItem) {
|
|
67
|
+
handleCheckedQuestionList([]);
|
|
68
|
+
}
|
|
69
|
+
}, [previewItem, handleCheckedQuestionList]);
|
|
48
70
|
return ((0, jsx_runtime_1.jsx)(AiTemplateDialog, __assign({ open: open, size: "lg", header: function () { return ((0, jsx_runtime_1.jsx)(TemplateHeader_1.default, { name: (previewItem === null || previewItem === void 0 ? void 0 : previewItem.positionName) || (previewItem === null || previewItem === void 0 ? void 0 : previewItem.name), onClose: props.onClose, onBack: function () { return updateState({ previewItem: undefined }); }, onSearch: function () { } })); }, footer: function () {
|
|
49
|
-
return previewItem ? ((0, jsx_runtime_1.
|
|
50
|
-
}, onClose: props.onClose }, { children: (0, jsx_runtime_1.jsxs)(ScrollDialogContent_1.default, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: previewItem ? 'flex' : 'none', flexDirection: "column" }, { children: [(0, jsx_runtime_1.jsx)(CapabilityModel_1.default, {}), (0, jsx_runtime_1.jsx)(QuestionList_1.default, {})] })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: previewItem ? 'none' : 'flex' }, { children: [(0, jsx_runtime_1.jsx)(TemplateMenu_1.default, {}), (0, jsx_runtime_1.jsx)(TemplateList_1.default, {})] }))] }) })));
|
|
71
|
+
return previewItem ? ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", justifyContent: curCheckedQuestionListCount > 0 ? 'space-between' : 'flex-end', alignItems: "center", padding: "12px 0 12px" }, { children: [curCheckedQuestionListCount > 0 && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: ["\u5DF2\u9009\u62E9", (0, jsx_runtime_1.jsx)("span", __assign({ style: { color: '#4CAF50', margin: '0 3px', fontWeight: 500 } }, { children: curCheckedQuestionListCount })), "\u9898"] }))), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: [curCheckedQuestionListCount > 0 && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ color: "secondary", variant: "text", sx: { mr: 1, color: 'RGBA(0, 0, 0, 0.56)' }, onClick: function () { return handleCheckedQuestionList([]); } }, { children: "\u53D6\u6D88\u9009\u62E9" }))), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ onClick: handleUseTemplate }, { children: curCheckedQuestionListCount ? '使用选择题目' : '使用该模版' }))] }))] }))) : null;
|
|
72
|
+
}, onClose: props.onClose }, { children: (0, jsx_runtime_1.jsxs)(ScrollDialogContent_1.default, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: previewItem ? 'flex' : 'none', flexDirection: "column" }, { children: [(0, jsx_runtime_1.jsx)(CapabilityModel_1.default, {}), (0, jsx_runtime_1.jsx)(QuestionList_1.default, { checkedQuestionList: checkedQuestionList, onCheckChange: handleCheckChange })] })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: previewItem ? 'none' : 'flex' }, { children: [(0, jsx_runtime_1.jsx)(TemplateMenu_1.default, {}), (0, jsx_runtime_1.jsx)(TemplateList_1.default, {})] }))] }) })));
|
|
51
73
|
});
|
|
52
74
|
AiTemplateRoot.displayName = 'AiTemplateRoot';
|
|
53
75
|
exports.default = (0, react_1.memo)(AiTemplateRoot);
|
|
@@ -15,10 +15,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
var fbm_ui_1 = require("fbm-ui");
|
|
19
18
|
var TemplatePie_1 = __importDefault(require("../../../../components/Charts/TemplatePie"));
|
|
20
19
|
var ScoreBigBall_1 = __importDefault(require("../../../../components/ScoreBigBall"));
|
|
21
20
|
var global_store_1 = require("../../../../store/ai-template/global-store");
|
|
21
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
22
22
|
var CapabilityModel = function () {
|
|
23
23
|
var _a, _b;
|
|
24
24
|
var _c = (0, global_store_1.useAiTemplateStore)(function (store) { return [store.menuId, store.previewItem]; }), menuId = _c.menuId, previewItem = _c.previewItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
declare const QuestionItem: React.FC<
|
|
2
|
+
import { QuestionItemProps } from './interface';
|
|
3
|
+
declare const QuestionItem: React.FC<QuestionItemProps>;
|
|
4
4
|
export default QuestionItem;
|
|
@@ -12,15 +12,36 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
|
-
var fbm_ui_1 = require("fbm-ui");
|
|
16
|
-
var icons_material_1 = require("@mui/icons-material");
|
|
17
15
|
var global_store_1 = require("../../../../store/ai-template/global-store");
|
|
16
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
17
|
+
var react_1 = require("react");
|
|
18
18
|
var QuestionItem = function (_a) {
|
|
19
|
-
var item = _a.item, index = _a.index;
|
|
19
|
+
var item = _a.item, index = _a.index, onChange = _a.onChange;
|
|
20
20
|
var name = item.name, desc = item.desc, category = item.category, weight = item.weight, originToken = item.originToken;
|
|
21
|
-
var _b = (0, global_store_1.useAiTemplateStore)(function (store) { return [store.currentSteps, store.
|
|
22
|
-
console.log(currentSteps);
|
|
21
|
+
var _b = (0, global_store_1.useAiTemplateStore)(function (store) { return [store.currentSteps, store.currentCheckedQuestions]; }), currentSteps = _b.currentSteps, currentCheckedQuestions = _b.currentCheckedQuestions;
|
|
23
22
|
var isUsed = currentSteps === null || currentSteps === void 0 ? void 0 : currentSteps.find(function (step) { return step.originToken === originToken; });
|
|
24
|
-
|
|
23
|
+
var _c = (0, react_1.useState)(false), curChecked = _c[0], setChecked = _c[1];
|
|
24
|
+
var UsedTag = (0, fbm_ui_1.styled)(fbm_ui_1.Box)(function () { return ({
|
|
25
|
+
position: 'absolute',
|
|
26
|
+
right: -1,
|
|
27
|
+
top: -1,
|
|
28
|
+
borderRadius: '0px 4px 0px 12px',
|
|
29
|
+
backgroundColor: '#81C784',
|
|
30
|
+
width: 49,
|
|
31
|
+
height: 24,
|
|
32
|
+
textAlign: 'center',
|
|
33
|
+
color: '#fff',
|
|
34
|
+
fontFamily: 'AlibabaPuHuiTiR',
|
|
35
|
+
fontSize: 12,
|
|
36
|
+
lineHeight: '24px',
|
|
37
|
+
}); });
|
|
38
|
+
var handleChange = (0, react_1.useCallback)(function (e) {
|
|
39
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(e, index);
|
|
40
|
+
}, [index, onChange]);
|
|
41
|
+
(0, react_1.useEffect)(function () {
|
|
42
|
+
var checked = !!(currentCheckedQuestions === null || currentCheckedQuestions === void 0 ? void 0 : currentCheckedQuestions.find(function (step) { return step.token === item.token; }));
|
|
43
|
+
setChecked(checked);
|
|
44
|
+
}, [currentCheckedQuestions, item.token]);
|
|
45
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ border: '1px solid rgba(0,0,0, 0.08)', borderRadius: "6px", mt: 2 }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ borderBottom: "1px solid rgba(0,0,0, 0.08)", p: 2, display: "flex", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Checkbox, { checked: curChecked, value: originToken, onChange: handleChange }), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ ml: -1 }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body1", weight: "500" }, { children: [index + 1, ".", name] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary", mt: 1 }, { children: desc }))] })), isUsed && ((0, jsx_runtime_1.jsx)(UsedTag, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u5DF2\u4F7F\u7528" }) }))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", justifyContent: "space-between", padding: "8px 8px 8px 50px" }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: [category === null || category === void 0 ? void 0 : category.map(function (label) { return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Chip, { color: "default", label: label }, label)); }), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", ml: 2 }, { children: ["\u6743\u91CD\u5360\u6BD4\uFF1A", weight, "%"] }))] })) }))] })));
|
|
25
46
|
};
|
|
26
47
|
exports.default = QuestionItem;
|
|
@@ -15,11 +15,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
var fbm_ui_1 = require("fbm-ui");
|
|
19
|
-
var global_store_1 = require("../../../../store/ai-template/global-store");
|
|
20
18
|
var Item_1 = __importDefault(require("./Item"));
|
|
21
|
-
var
|
|
19
|
+
var global_store_1 = require("../../../../store/ai-template/global-store");
|
|
20
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
21
|
+
var react_1 = require("react");
|
|
22
|
+
var QuestionList = function (_a) {
|
|
23
|
+
var checkedQuestionList = _a.checkedQuestionList, onCheckChange = _a.onCheckChange;
|
|
22
24
|
var previewItem = (0, global_store_1.useAiTemplateStore)(function (store) { return [store.previewItem]; }).previewItem;
|
|
23
|
-
|
|
25
|
+
var handleChange = (0, react_1.useCallback)(function (e, index) {
|
|
26
|
+
var checked = e.target.checked;
|
|
27
|
+
var item = previewItem === null || previewItem === void 0 ? void 0 : previewItem.list[index];
|
|
28
|
+
if (!item)
|
|
29
|
+
return;
|
|
30
|
+
item.checked = checked;
|
|
31
|
+
checkedQuestionList[index] = item;
|
|
32
|
+
onCheckChange(checkedQuestionList);
|
|
33
|
+
}, [previewItem, onCheckChange, checkedQuestionList]);
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", flexDirection: "column", mt: 3, width: "760px" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", weight: "500" }, { children: "\u9898\u76EE\u5217\u8868" })) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, { children: previewItem === null || previewItem === void 0 ? void 0 : previewItem.list.map(function (item, index) { return ((0, jsx_runtime_1.jsx)(Item_1.default, { item: item, index: index, onChange: handleChange }, item.token)); }) })] })));
|
|
24
35
|
};
|
|
25
36
|
exports.default = QuestionList;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { QuestionList } from '@/modules/ai-template/interface';
|
|
2
|
-
export interface
|
|
2
|
+
export interface QuestionItemProps {
|
|
3
3
|
item: QuestionList;
|
|
4
4
|
index: number;
|
|
5
|
+
onChange?: (e: any, index: number) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface QuestionListProps {
|
|
8
|
+
checkedQuestionList: QuestionList[];
|
|
9
|
+
onCheckChange: (list: QuestionList[]) => void;
|
|
5
10
|
}
|
|
@@ -15,14 +15,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
var
|
|
19
|
-
var fbm_ui_1 = require("fbm-ui");
|
|
20
|
-
var ahooks_1 = require("ahooks");
|
|
18
|
+
var styled_1 = require("./styled");
|
|
21
19
|
var TemplatePie_1 = __importDefault(require("../../../../components/Charts/TemplatePie"));
|
|
22
20
|
var ScoreBigBall_1 = __importDefault(require("../../../../components/ScoreBigBall"));
|
|
23
21
|
var ai_template_1 = require("../../../../services/ai-template");
|
|
24
22
|
var global_store_1 = require("../../../../store/ai-template/global-store");
|
|
25
|
-
var
|
|
23
|
+
var ahooks_1 = require("ahooks");
|
|
24
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
25
|
+
var react_1 = require("react");
|
|
26
26
|
var TemplateList = function () {
|
|
27
27
|
var isPreview = (0, react_1.useRef)(false);
|
|
28
28
|
var _a = (0, react_1.useState)([]), list = _a[0], setList = _a[1];
|
|
@@ -9,7 +9,7 @@ export declare const AddIconRoot: import("@emotion/styled").StyledComponent<{
|
|
|
9
9
|
sx?: import("@mui/system/styleFunctionSx").SxProps<import("@mui/material").Theme> | undefined;
|
|
10
10
|
titleAccess?: string | undefined;
|
|
11
11
|
viewBox?: string | undefined;
|
|
12
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "
|
|
12
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "name" | "type" | "fill" | "values" | "className" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "end" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
|
|
13
13
|
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
14
14
|
}, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "sx" | "viewBox" | "htmlColor" | "titleAccess"> & {
|
|
15
15
|
children?: import("react").ReactNode;
|
|
@@ -15,9 +15,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
var react_1 = require("react");
|
|
19
|
-
var RootProvider_1 = __importDefault(require("../../components/RootProvider"));
|
|
20
18
|
var Root_1 = __importDefault(require("./Root"));
|
|
19
|
+
var RootProvider_1 = __importDefault(require("../../components/RootProvider"));
|
|
20
|
+
var react_1 = require("react");
|
|
21
21
|
var AiTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
22
22
|
return ((0, jsx_runtime_1.jsx)(RootProvider_1.default, { children: (0, jsx_runtime_1.jsx)(Root_1.default, __assign({ ref: ref }, props)) }));
|
|
23
23
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { QuestionModelStep } from '@/modules/ai-question/components/QuestionModel/interface';
|
|
2
2
|
import { AiTemplatesCollection, AiTemplatesList } from '@/modules/ai-template/components/TemplateList/interface';
|
|
3
3
|
export interface QuestionList extends QuestionModelStep {
|
|
4
|
+
checked?: boolean;
|
|
4
5
|
}
|
|
5
6
|
export interface HistoryPatterns {
|
|
6
7
|
token?: string;
|
|
@@ -13,6 +14,7 @@ export interface AiTemplateProps {
|
|
|
13
14
|
open: boolean;
|
|
14
15
|
historyPatterns?: HistoryPatterns[];
|
|
15
16
|
currentSteps?: QuestionList[];
|
|
17
|
+
currentCheckedQuestions?: QuestionList[];
|
|
16
18
|
onClose?: () => void;
|
|
17
19
|
onUseTemplate?: (list?: QuestionList[]) => void;
|
|
18
20
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AiAbility } from '@/modules/ai-ability-select/interface';
|
|
3
|
+
export declare const useAiAbilityListStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
4
|
+
selctedAbilitys: string[];
|
|
5
|
+
setSelctedAbilitys: import("react").Dispatch<import("react").SetStateAction<string[]>>;
|
|
6
|
+
setSpecialAiAbilityList: (list: AiAbility[]) => void;
|
|
7
|
+
aiAbilityList: AiAbility[];
|
|
8
|
+
setAiAbilityList: import("react").Dispatch<import("react").SetStateAction<AiAbility[]>>;
|
|
9
|
+
}> | undefined) => {
|
|
10
|
+
selctedAbilitys: string[];
|
|
11
|
+
setSelctedAbilitys: import("react").Dispatch<import("react").SetStateAction<string[]>>;
|
|
12
|
+
setSpecialAiAbilityList: (list: AiAbility[]) => void;
|
|
13
|
+
aiAbilityList: AiAbility[];
|
|
14
|
+
setAiAbilityList: import("react").Dispatch<import("react").SetStateAction<AiAbility[]>>;
|
|
15
|
+
}, getAiAbilityListStore: () => {
|
|
16
|
+
selctedAbilitys: string[];
|
|
17
|
+
setSelctedAbilitys: import("react").Dispatch<import("react").SetStateAction<string[]>>;
|
|
18
|
+
setSpecialAiAbilityList: (list: AiAbility[]) => void;
|
|
19
|
+
aiAbilityList: AiAbility[];
|
|
20
|
+
setAiAbilityList: import("react").Dispatch<import("react").SetStateAction<AiAbility[]>>;
|
|
21
|
+
} | undefined;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getAiAbilityListStore = exports.useAiAbilityListStore = void 0;
|
|
5
|
+
var question_model_store_1 = require("../ai-question/question-model-store");
|
|
6
|
+
var hox_1 = require("hox");
|
|
7
|
+
var react_1 = require("react");
|
|
8
|
+
exports.useAiAbilityListStore = (_a = (0, hox_1.createGlobalStore)(function () {
|
|
9
|
+
var isEdit = ((0, question_model_store_1.getQuestionModelStore)() || {}).isEdit;
|
|
10
|
+
var _a = (0, react_1.useState)([]), aiAbilityList = _a[0], setAiAbilityList = _a[1];
|
|
11
|
+
var _b = (0, react_1.useState)([]), selctedAbilitys = _b[0], setSelctedAbilitys = _b[1];
|
|
12
|
+
var setSpecialAiAbilityList = (0, react_1.useCallback)(function (list) {
|
|
13
|
+
setAiAbilityList((list === null || list === void 0 ? void 0 : list.filter(function (v) {
|
|
14
|
+
return !isEdit || !v.isNew || selctedAbilitys.includes(v.token);
|
|
15
|
+
})) || []);
|
|
16
|
+
}, [isEdit, selctedAbilitys]);
|
|
17
|
+
return {
|
|
18
|
+
selctedAbilitys: selctedAbilitys,
|
|
19
|
+
setSelctedAbilitys: setSelctedAbilitys,
|
|
20
|
+
setSpecialAiAbilityList: setSpecialAiAbilityList,
|
|
21
|
+
aiAbilityList: aiAbilityList,
|
|
22
|
+
setAiAbilityList: setAiAbilityList,
|
|
23
|
+
};
|
|
24
|
+
}), _a[0]), exports.getAiAbilityListStore = _a[1];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { InterviewRoomProps } from '@/modules/ai-question/interface';
|
|
2
|
+
export declare const useInterviewRoomStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
3
|
+
interviewRoomState: InterviewRoomProps;
|
|
4
|
+
updateInterviewRoom: import("ahooks/lib/useSetState").SetState<InterviewRoomProps>;
|
|
5
|
+
interactType: number;
|
|
6
|
+
aiVideoStatus?: number | undefined;
|
|
7
|
+
aiInterviewerProfile?: import("@/modules/ai-question/interface").AiInterviewerProfile | undefined;
|
|
8
|
+
}> | undefined) => {
|
|
9
|
+
interviewRoomState: InterviewRoomProps;
|
|
10
|
+
updateInterviewRoom: import("ahooks/lib/useSetState").SetState<InterviewRoomProps>;
|
|
11
|
+
interactType: number;
|
|
12
|
+
aiVideoStatus?: number | undefined;
|
|
13
|
+
aiInterviewerProfile?: import("@/modules/ai-question/interface").AiInterviewerProfile | undefined;
|
|
14
|
+
}, getInterviewRoomStore: () => {
|
|
15
|
+
interviewRoomState: InterviewRoomProps;
|
|
16
|
+
updateInterviewRoom: import("ahooks/lib/useSetState").SetState<InterviewRoomProps>;
|
|
17
|
+
interactType: number;
|
|
18
|
+
aiVideoStatus?: number | undefined;
|
|
19
|
+
aiInterviewerProfile?: import("@/modules/ai-question/interface").AiInterviewerProfile | undefined;
|
|
20
|
+
} | undefined;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var _a;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.getInterviewRoomStore = exports.useInterviewRoomStore = void 0;
|
|
16
|
+
var ahooks_1 = require("ahooks");
|
|
17
|
+
var hox_1 = require("hox");
|
|
18
|
+
exports.useInterviewRoomStore = (_a = (0, hox_1.createGlobalStore)(function () {
|
|
19
|
+
var _a = (0, ahooks_1.useSetState)({
|
|
20
|
+
interactType: 1,
|
|
21
|
+
aiVideoStatus: 0,
|
|
22
|
+
}), interviewRoomState = _a[0], updateInterviewRoom = _a[1];
|
|
23
|
+
return __assign(__assign({}, interviewRoomState), { interviewRoomState: interviewRoomState, updateInterviewRoom: updateInterviewRoom });
|
|
24
|
+
}), _a[0]), exports.getInterviewRoomStore = _a[1];
|
|
@@ -8,6 +8,7 @@ export declare const useAiTemplateStore: (depsFn?: import("hox/es/types").DepsFn
|
|
|
8
8
|
open: boolean;
|
|
9
9
|
historyPatterns?: import("@/modules/ai-template/interface").HistoryPatterns[] | undefined;
|
|
10
10
|
currentSteps?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
11
|
+
currentCheckedQuestions?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
11
12
|
onClose?: (() => void) | undefined;
|
|
12
13
|
onUseTemplate?: ((list?: import("@/modules/ai-template/interface").QuestionList[] | undefined) => void) | undefined;
|
|
13
14
|
}> | undefined) => {
|
|
@@ -19,6 +20,7 @@ export declare const useAiTemplateStore: (depsFn?: import("hox/es/types").DepsFn
|
|
|
19
20
|
open: boolean;
|
|
20
21
|
historyPatterns?: import("@/modules/ai-template/interface").HistoryPatterns[] | undefined;
|
|
21
22
|
currentSteps?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
23
|
+
currentCheckedQuestions?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
22
24
|
onClose?: (() => void) | undefined;
|
|
23
25
|
onUseTemplate?: ((list?: import("@/modules/ai-template/interface").QuestionList[] | undefined) => void) | undefined;
|
|
24
26
|
}, getAiTemplateStore: () => {
|
|
@@ -30,6 +32,7 @@ export declare const useAiTemplateStore: (depsFn?: import("hox/es/types").DepsFn
|
|
|
30
32
|
open: boolean;
|
|
31
33
|
historyPatterns?: import("@/modules/ai-template/interface").HistoryPatterns[] | undefined;
|
|
32
34
|
currentSteps?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
35
|
+
currentCheckedQuestions?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
33
36
|
onClose?: (() => void) | undefined;
|
|
34
37
|
onUseTemplate?: ((list?: import("@/modules/ai-template/interface").QuestionList[] | undefined) => void) | undefined;
|
|
35
38
|
} | undefined;
|
|
@@ -13,12 +13,12 @@ var __assign = (this && this.__assign) || function () {
|
|
|
13
13
|
var _a;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.getAiTemplateStore = exports.useAiTemplateStore = void 0;
|
|
16
|
-
var
|
|
16
|
+
var ai_template_1 = require("../../services/ai-template");
|
|
17
17
|
var ahooks_1 = require("ahooks");
|
|
18
18
|
var hox_1 = require("hox");
|
|
19
|
-
var
|
|
19
|
+
var react_1 = require("react");
|
|
20
20
|
exports.useAiTemplateStore = (_a = (0, hox_1.createGlobalStore)(function () {
|
|
21
|
-
var _a = (0, ahooks_1.useSetState)({ open: false, historyPatterns: [] }), props = _a[0], updateProps = _a[1];
|
|
21
|
+
var _a = (0, ahooks_1.useSetState)({ open: false, historyPatterns: [], currentCheckedQuestions: [] }), props = _a[0], updateProps = _a[1];
|
|
22
22
|
var _b = (0, ahooks_1.useSetState)({ menuId: '' }), state = _b[0], updateState = _b[1];
|
|
23
23
|
var handleIncrUse = (0, ahooks_1.useRequest)(ai_template_1.PostAiTemplatesIncrUse, { manual: true }).run;
|
|
24
24
|
(0, react_1.useEffect)(function () {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const useEnterpriseStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
3
|
+
enterprise: {
|
|
4
|
+
jobToken?: string | undefined;
|
|
5
|
+
thirdToken?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
setEnterprise: import("react").Dispatch<import("react").SetStateAction<{
|
|
8
|
+
jobToken?: string | undefined;
|
|
9
|
+
thirdToken?: string | undefined;
|
|
10
|
+
}>>;
|
|
11
|
+
}> | undefined) => {
|
|
12
|
+
enterprise: {
|
|
13
|
+
jobToken?: string | undefined;
|
|
14
|
+
thirdToken?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
setEnterprise: import("react").Dispatch<import("react").SetStateAction<{
|
|
17
|
+
jobToken?: string | undefined;
|
|
18
|
+
thirdToken?: string | undefined;
|
|
19
|
+
}>>;
|
|
20
|
+
}, getEnterpriseStore: () => {
|
|
21
|
+
enterprise: {
|
|
22
|
+
jobToken?: string | undefined;
|
|
23
|
+
thirdToken?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
setEnterprise: import("react").Dispatch<import("react").SetStateAction<{
|
|
26
|
+
jobToken?: string | undefined;
|
|
27
|
+
thirdToken?: string | undefined;
|
|
28
|
+
}>>;
|
|
29
|
+
} | undefined;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getEnterpriseStore = exports.useEnterpriseStore = void 0;
|
|
5
|
+
var hox_1 = require("hox");
|
|
6
|
+
var react_1 = require("react");
|
|
7
|
+
exports.useEnterpriseStore = (_a = (0, hox_1.createGlobalStore)(function () {
|
|
8
|
+
var _a = (0, react_1.useState)({
|
|
9
|
+
jobToken: 'vWqoOO3mWRh7JO2R5M2QRXO8WX',
|
|
10
|
+
thirdToken: '7nkaOm56MyljuO109r4sQXWWOS',
|
|
11
|
+
}), enterprise = _a[0], setEnterprise = _a[1];
|
|
12
|
+
return {
|
|
13
|
+
enterprise: enterprise,
|
|
14
|
+
setEnterprise: setEnterprise,
|
|
15
|
+
};
|
|
16
|
+
}), _a[0]), exports.getEnterpriseStore = _a[1];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eli-video-interview",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.36-alpha.0",
|
|
4
4
|
"description": "鳄梨科技 AI视频面试 React SDK",
|
|
5
5
|
"author": "鳄梨科技",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"array-move": "^4.0.0",
|
|
21
21
|
"axios": "^0.27.2",
|
|
22
22
|
"dayjs": "^1.11.4",
|
|
23
|
-
"echarts": "^
|
|
23
|
+
"@avocadoui/echarts": "^1.0.1",
|
|
24
24
|
"fbm-ui": "^1.4.161",
|
|
25
25
|
"hox": "^2.1.0",
|
|
26
26
|
"immutability-helper": "^3.1.1",
|