@sonhero/explanation-package 1.9.1 → 1.10.1
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/dist/assets/images/default_thumbnail_video.png +0 -0
- package/dist/assets/images/default_thumbnail_video_mobile.png +0 -0
- package/dist/assets/images/default_thumbnail_video_tablet.png +0 -0
- package/dist/index.cjs +8835 -0
- package/dist/index.css +1 -12
- package/dist/index.mjs +15828 -0
- package/package.json +37 -53
- package/dist/Quiz.d.ts +0 -7
- package/dist/QuizComponent.d.ts +0 -23
- package/dist/button/ButtonCancelSubmit.d.ts +0 -3
- package/dist/button/ErrorMessage.d.ts +0 -7
- package/dist/button/SappButton.d.ts +0 -4
- package/dist/button/YourAnswer.d.ts +0 -6
- package/dist/checkbox/HookFormCheckBox.d.ts +0 -19
- package/dist/checkbox/HookFormCheckBoxGroup.d.ts +0 -37
- package/dist/checkbox/SAPPCheckbox.d.ts +0 -14
- package/dist/common/ArrowIcon.d.ts +0 -9
- package/dist/common/CommentList.d.ts +0 -9
- package/dist/common/EssayRender.d.ts +0 -52
- package/dist/common/ExhibitMovableWindow.d.ts +0 -13
- package/dist/common/ExhibitRender.d.ts +0 -21
- package/dist/common/Explanation.d.ts +0 -12
- package/dist/common/FileDisplay.d.ts +0 -14
- package/dist/common/HookClick.d.ts +0 -7
- package/dist/common/Icon.d.ts +0 -8
- package/dist/common/MovableWindow.d.ts +0 -11
- package/dist/common/MoveQuestionBar.d.ts +0 -16
- package/dist/common/SappIcon.d.ts +0 -11
- package/dist/common/TopicDisplay.d.ts +0 -34
- package/dist/components/ArrowIcon.d.ts +0 -8
- package/dist/components/ExhibitMovableWindow.d.ts +0 -13
- package/dist/components/ExhibitMovableWindowV2.d.ts +0 -13
- package/dist/components/ExhibitRender.d.ts +0 -20
- package/dist/components/FileDisplay.d.ts +0 -15
- package/dist/components/HookClick.d.ts +0 -7
- package/dist/components/Icon.d.ts +0 -17
- package/dist/components/MovableWindow.d.ts +0 -11
- package/dist/components/SappIcon.d.ts +0 -11
- package/dist/components/comment-list/commentList.styles.d.ts +0 -1
- package/dist/components/comment-list/index.d.ts +0 -11
- package/dist/components/comment-list-v2/commentListV2.styles.d.ts +0 -1
- package/dist/components/comment-list-v2/index.d.ts +0 -14
- package/dist/components/comment-modal/CommentModal.d.ts +0 -9
- package/dist/components/comment-modal/commentModal.styles.d.ts +0 -1
- package/dist/components/comment-modal/index.d.ts +0 -2
- package/dist/components/common/button/ButtonCancelSubmit.d.ts +0 -3
- package/dist/components/common/button/ErrorMessage.d.ts +0 -7
- package/dist/components/common/button/SappButton.d.ts +0 -4
- package/dist/components/common/button/YourAnswer.d.ts +0 -6
- package/dist/components/common/button/YourAnswerV2.d.ts +0 -7
- package/dist/components/common/checkbox/HookFormCheckBoxGroup.d.ts +0 -37
- package/dist/components/common/checkbox/SAPPCheckbox.d.ts +0 -14
- package/dist/components/common/checkboxV2/HookFormCheckBoxGroupV2.d.ts +0 -37
- package/dist/components/common/checkboxV2/SAPPCheckboxV2.d.ts +0 -15
- package/dist/components/common/common.styles.d.ts +0 -1
- package/dist/components/common/divider/Divider.d.ts +0 -5
- package/dist/components/common/divider/styles.d.ts +0 -1
- package/dist/components/common/modal/PopupViewPdf.d.ts +0 -13
- package/dist/components/common/modal/SappModal.d.ts +0 -64
- package/dist/components/common/modal/SappModalImage.d.ts +0 -7
- package/dist/components/common/modal/SappModalVideo.d.ts +0 -7
- package/dist/components/common/pdf/pdf-viewer.d.ts +0 -5
- package/dist/components/common/pdf/popupViewPdf.d.ts +0 -8
- package/dist/components/common/radiobutton/HookFormRadioGroup.d.ts +0 -26
- package/dist/components/common/radiobutton/SAPPRadio.d.ts +0 -15
- package/dist/components/common/radiobuttonV2/HookFormRadioGroupV2.d.ts +0 -26
- package/dist/components/common/radiobuttonV2/SAPPRadioV2.d.ts +0 -15
- package/dist/components/common/video/Player.d.ts +0 -2
- package/dist/components/common/video/SAPPVideo.d.ts +0 -10
- package/dist/components/common/video/video.styles.d.ts +0 -1
- package/dist/components/editor/EditorReader.d.ts +0 -13
- package/dist/components/essay-render/essayRender.styles.d.ts +0 -1
- package/dist/components/essay-render/index.d.ts +0 -87
- package/dist/components/essay-render-v2/essayRenderV2.styles.d.ts +0 -1
- package/dist/components/essay-render-v2/index.d.ts +0 -96
- package/dist/components/explanation/explanation.styles.d.ts +0 -1
- package/dist/components/explanation/index.d.ts +0 -13
- package/dist/components/explanationV2/index.d.ts +0 -13
- package/dist/components/grading-file/GradingFileDisplay.d.ts +0 -10
- package/dist/components/grading-file/ListGradingFile.d.ts +0 -8
- package/dist/components/icons/CloseIcon.d.ts +0 -5
- package/dist/components/icons/ResizeIcon.d.ts +0 -5
- package/dist/components/icons/UploadIcon.d.ts +0 -2
- package/dist/components/icons/index.d.ts +0 -12
- package/dist/components/list-question/ListQuestion.d.ts +0 -13
- package/dist/components/list-question/QuestionGrid.d.ts +0 -21
- package/dist/components/list-question/types.d.ts +0 -14
- package/dist/components/move-question-bar/index.d.ts +0 -16
- package/dist/components/move-question-bar/moveQuestionBar.styles.d.ts +0 -1
- package/dist/components/questionType/ConstructedQuestion.d.ts +0 -19
- package/dist/components/questionType/DragNDrop.d.ts +0 -17
- package/dist/components/questionType/FillText.d.ts +0 -21
- package/dist/components/questionType/MatchingQuestion.d.ts +0 -18
- package/dist/components/questionType/MultipleChoiceQuestion.d.ts +0 -4
- package/dist/components/questionType/OneChoiceQuestion.d.ts +0 -19
- package/dist/components/questionType/SelectWordQuestion.d.ts +0 -28
- package/dist/components/questionType/questionTypes.styles.d.ts +0 -1
- package/dist/components/quiz-component/index.d.ts +0 -25
- package/dist/components/quiz-component/quizComponent.styles.d.ts +0 -1
- package/dist/components/quiz-component-v2/index.d.ts +0 -29
- package/dist/components/quiz-component-v2/questionTypeV2/ConstructedQuestionV2.d.ts +0 -22
- package/dist/components/quiz-component-v2/questionTypeV2/DragNDrop.d.ts +0 -18
- package/dist/components/quiz-component-v2/questionTypeV2/FillText.d.ts +0 -21
- package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/CustomEdge.d.ts +0 -4
- package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/CustomFlow.d.ts +0 -11
- package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/CustomNode.d.ts +0 -9
- package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/index.d.ts +0 -22
- package/dist/components/quiz-component-v2/questionTypeV2/MultipleChoiceQuestion.d.ts +0 -4
- package/dist/components/quiz-component-v2/questionTypeV2/OneChoiceQuestion.d.ts +0 -19
- package/dist/components/quiz-component-v2/questionTypeV2/SelectWordQuestion.d.ts +0 -21
- package/dist/components/quiz-component-v2/questionTypeV2/questionTypes.styles.d.ts +0 -1
- package/dist/components/quiz-component-v2/quizComponentV2.styles.d.ts +0 -1
- package/dist/components/render-view/AIComment.d.ts +0 -10
- package/dist/components/render-view/MarkdownRender.d.ts +0 -10
- package/dist/components/render-view/ModalPreviewFile.d.ts +0 -11
- package/dist/components/styles.d.ts +0 -1
- package/dist/components/topic-display/index.d.ts +0 -34
- package/dist/components/topic-display/topicDisplay.styles.d.ts +0 -1
- package/dist/constant/icon.d.ts +0 -3
- package/dist/constant/index.d.ts +0 -313
- package/dist/contexts/index.d.ts +0 -10
- package/dist/conts/index.d.ts +0 -273
- package/dist/editor/EditorReader.d.ts +0 -13
- package/dist/editor/HookFormEditor.d.ts +0 -22
- package/dist/editor/editor.d.ts +0 -18
- package/dist/hooks/HookClick.d.ts +0 -7
- package/dist/hooks/useCommentMobileView.d.ts +0 -3
- package/dist/hooks/useListQuestionColumnsPerRow.d.ts +0 -4
- package/dist/hooks/useMousePosition.d.ts +0 -5
- package/dist/hooks/useTailwindBreakpoint.d.ts +0 -17
- package/dist/icons/CloseIcon.d.ts +0 -4
- package/dist/icons/UploadIcon.d.ts +0 -2
- package/dist/index.d.ts +0 -19
- package/dist/index.js +0 -7685
- package/dist/index.js.map +0 -1
- package/dist/index.modern.js +0 -7681
- package/dist/index.modern.js.map +0 -1
- package/dist/index.test.d.ts +0 -1
- package/dist/modal/PopupViewPdf.d.ts +0 -8
- package/dist/modal/SappModal.d.ts +0 -64
- package/dist/modal/SappModalImage.d.ts +0 -7
- package/dist/modal/SappModalVideo.d.ts +0 -7
- package/dist/pdf/pdf-viewer.d.ts +0 -4
- package/dist/pdf/popupViewPdf.d.ts +0 -8
- package/dist/questionType/ConstructedQuestion.d.ts +0 -19
- package/dist/questionType/DragNDrop.d.ts +0 -17
- package/dist/questionType/FillText.d.ts +0 -21
- package/dist/questionType/MatchingQuestion.d.ts +0 -18
- package/dist/questionType/MultipleChoiceQuestion.d.ts +0 -4
- package/dist/questionType/OneChoiceQuestion.d.ts +0 -19
- package/dist/questionType/SelectWordQuestion.d.ts +0 -28
- package/dist/radiobutton/HookFormRadioGroup.d.ts +0 -26
- package/dist/radiobutton/SAPPRadio.d.ts +0 -15
- package/dist/style.d.ts +0 -1
- package/dist/styles/base/colors.d.ts +0 -1
- package/dist/styles/base/typography.d.ts +0 -1
- package/dist/styles/base/utils.d.ts +0 -1
- package/dist/styles/global-styles.d.ts +0 -1
- package/dist/styles/index.d.ts +0 -1
- package/dist/styles/legacy/button.d.ts +0 -1
- package/dist/styles/legacy/caret.d.ts +0 -1
- package/dist/styles/legacy/condition.d.ts +0 -1
- package/dist/styles/legacy/custom-style.d.ts +0 -1
- package/dist/styles/legacy/editor-wrap.d.ts +0 -1
- package/dist/styles/legacy/fortune.d.ts +0 -1
- package/dist/styles/legacy/lucky-sheet.d.ts +0 -1
- package/dist/styles/legacy/resizable.d.ts +0 -1
- package/dist/styles/legacy/sapp-custom.d.ts +0 -1
- package/dist/styles/legacy/stream-player.d.ts +0 -1
- package/dist/styles/legacy/tailwind.d.ts +0 -1
- package/dist/styles/legacy/tooltip.d.ts +0 -1
- package/dist/styles/list-question/listQuestion.styles.d.ts +0 -1
- package/dist/styles/react-flow-styled.d.ts +0 -1
- package/dist/utils/dragandresize.d.ts +0 -6
- package/dist/utils/graded.d.ts +0 -48
- package/dist/utils/icons.d.ts +0 -9
- package/dist/utils/index.d.ts +0 -24
- package/dist/video/Player.d.ts +0 -2
- package/dist/video/SAPPVideo.d.ts +0 -13
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React, { RefObject } from 'react';
|
|
2
|
-
import { ICommment } from 'constant';
|
|
3
|
-
interface IProps {
|
|
4
|
-
data?: ICommment;
|
|
5
|
-
editorRef?: RefObject<HTMLElement>;
|
|
6
|
-
commentRef?: RefObject<HTMLDivElement>;
|
|
7
|
-
className?: string;
|
|
8
|
-
overlayClassName?: string;
|
|
9
|
-
activeCommentId?: string | null;
|
|
10
|
-
setActiveCommentId: React.Dispatch<React.SetStateAction<string | null>>;
|
|
11
|
-
setOpenComment?: (status: boolean) => void;
|
|
12
|
-
}
|
|
13
|
-
declare const CommentListV2: ({ data, editorRef, commentRef, className, overlayClassName, activeCommentId, setActiveCommentId, setOpenComment, }: IProps) => React.JSX.Element;
|
|
14
|
-
export default CommentListV2;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { GradingDetail } from 'constant';
|
|
3
|
-
export interface CommentModalProps {
|
|
4
|
-
open: boolean;
|
|
5
|
-
detail: GradingDetail | null;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
}
|
|
8
|
-
declare const CommentModal: ({ open, detail }: CommentModalProps) => React.JSX.Element | null;
|
|
9
|
-
export default CommentModal;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const commentModalStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IButtonProps } from 'constant';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare const SappButton: ({ title, onClick, className, link, size, full, disabled, loading, type, color, isUnderLine, isPadding, childClass }: IButtonProps) => React.JSX.Element;
|
|
4
|
-
export default SappButton;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Control } from 'react-hook-form';
|
|
3
|
-
interface IHookFormCheckBoxProps {
|
|
4
|
-
name: string;
|
|
5
|
-
control: Control<any>;
|
|
6
|
-
defaultValue?: string | boolean;
|
|
7
|
-
title?: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
onChange?: (e: any) => void;
|
|
10
|
-
checked?: string | boolean;
|
|
11
|
-
isWrong?: boolean;
|
|
12
|
-
label?: string | undefined;
|
|
13
|
-
required?: boolean;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
classNameTitle?: string;
|
|
16
|
-
options: Array<{
|
|
17
|
-
label?: string;
|
|
18
|
-
value: string | boolean;
|
|
19
|
-
description?: string;
|
|
20
|
-
}>;
|
|
21
|
-
direction?: 'horizontal' | 'vertical';
|
|
22
|
-
gap?: string;
|
|
23
|
-
justify?: 'between' | 'start' | 'center' | 'end';
|
|
24
|
-
multiple?: boolean;
|
|
25
|
-
state?: 'default' | 'error' | 'success';
|
|
26
|
-
size?: 'small' | 'medium' | 'lager';
|
|
27
|
-
corrects?: {
|
|
28
|
-
[key: string]: boolean;
|
|
29
|
-
};
|
|
30
|
-
toggle?: boolean;
|
|
31
|
-
positionCheckBox?: 'start' | 'center' | 'bottom';
|
|
32
|
-
lowerOptions?: boolean;
|
|
33
|
-
seprateLine?: boolean;
|
|
34
|
-
widthOptions?: string;
|
|
35
|
-
}
|
|
36
|
-
declare const HookFormCheckBoxGroup: ({ name, control, defaultValue, title, className, onChange, checked, isWrong, disabled, classNameTitle, options, direction, gap, justify, multiple, size, state, corrects, toggle, positionCheckBox, lowerOptions, seprateLine, widthOptions }: IHookFormCheckBoxProps) => React.JSX.Element;
|
|
37
|
-
export default HookFormCheckBoxGroup;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
checked: boolean;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
6
|
-
className?: string;
|
|
7
|
-
name?: string;
|
|
8
|
-
value?: string | boolean;
|
|
9
|
-
state?: 'default' | 'error' | 'success' | 'primary';
|
|
10
|
-
size?: 'small' | 'medium' | 'lager';
|
|
11
|
-
lowerOptions?: boolean;
|
|
12
|
-
}
|
|
13
|
-
declare const SAPPCheckbox: ({ checked, disabled, onChange, className, value, state, size, lowerOptions }: IProps) => React.JSX.Element;
|
|
14
|
-
export default SAPPCheckbox;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Control } from 'react-hook-form';
|
|
3
|
-
interface IHookFormCheckBoxProps {
|
|
4
|
-
name: string;
|
|
5
|
-
control: Control<any>;
|
|
6
|
-
defaultValue?: string | boolean;
|
|
7
|
-
title?: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
onChange?: (e: any) => void;
|
|
10
|
-
checked?: string | boolean;
|
|
11
|
-
isWrong?: boolean;
|
|
12
|
-
label?: string | undefined;
|
|
13
|
-
required?: boolean;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
classNameTitle?: string;
|
|
16
|
-
options: Array<{
|
|
17
|
-
label?: string;
|
|
18
|
-
value: string | boolean;
|
|
19
|
-
description?: string;
|
|
20
|
-
}>;
|
|
21
|
-
direction?: 'horizontal' | 'vertical';
|
|
22
|
-
gap?: string;
|
|
23
|
-
justify?: 'between' | 'start' | 'center' | 'end';
|
|
24
|
-
multiple?: boolean;
|
|
25
|
-
state?: 'default' | 'error' | 'success';
|
|
26
|
-
size?: 'small' | 'medium' | 'lager';
|
|
27
|
-
corrects?: {
|
|
28
|
-
[key: string]: boolean;
|
|
29
|
-
};
|
|
30
|
-
toggle?: boolean;
|
|
31
|
-
positionCheckBox?: 'start' | 'center' | 'bottom';
|
|
32
|
-
lowerOptions?: boolean;
|
|
33
|
-
seprateLine?: boolean;
|
|
34
|
-
widthOptions?: string;
|
|
35
|
-
}
|
|
36
|
-
declare const HookFormCheckBoxGroup: ({ name, control, defaultValue, title, className, onChange, checked, isWrong, disabled, classNameTitle, options, direction, gap, justify, multiple, size, state, corrects, toggle, positionCheckBox, lowerOptions, seprateLine, widthOptions }: IHookFormCheckBoxProps) => React.JSX.Element;
|
|
37
|
-
export default HookFormCheckBoxGroup;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
checked: boolean;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
6
|
-
className?: string;
|
|
7
|
-
name?: string;
|
|
8
|
-
value?: string | boolean;
|
|
9
|
-
state?: 'default' | 'error' | 'success' | 'primary';
|
|
10
|
-
size?: 'small' | 'medium' | 'lager';
|
|
11
|
-
lowerOptions?: boolean;
|
|
12
|
-
inputStyle?: string;
|
|
13
|
-
}
|
|
14
|
-
declare const SAPPCheckboxV2: ({ checked, disabled, onChange, className, value, state, size, lowerOptions, inputStyle }: IProps) => React.JSX.Element;
|
|
15
|
-
export default SAPPCheckboxV2;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const commonComponentStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DividerStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
open: boolean;
|
|
4
|
-
setOpen: any;
|
|
5
|
-
url: string;
|
|
6
|
-
fileName?: string;
|
|
7
|
-
renderContent?: ({ url, fileName }: {
|
|
8
|
-
url: string;
|
|
9
|
-
fileName?: string;
|
|
10
|
-
}) => React.ReactNode;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: React.MemoExoticComponent<({ open, setOpen, url, fileName, renderContent }: IProps) => React.JSX.Element>;
|
|
13
|
-
export default _default;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, ReactNode, SetStateAction } from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
open?: boolean;
|
|
4
|
-
setOpen?: Dispatch<SetStateAction<boolean>>;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
cancelButtonCaption?: string;
|
|
7
|
-
okButtonCaption?: string;
|
|
8
|
-
okButtonClass?: string | undefined;
|
|
9
|
-
cancelButtonClass?: string | undefined;
|
|
10
|
-
buttonSize?: 'small' | 'medium' | 'lager' | 'extra';
|
|
11
|
-
handleCancel?: () => Promise<void> | void;
|
|
12
|
-
handleSubmit?: () => Promise<void> | void;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
title?: string;
|
|
15
|
-
customTitle?: ReactNode;
|
|
16
|
-
showHeader?: boolean;
|
|
17
|
-
customHeader?: ReactNode;
|
|
18
|
-
showFooter?: boolean;
|
|
19
|
-
customFooter?: ReactNode;
|
|
20
|
-
confirmOnclose?: boolean | string[];
|
|
21
|
-
size?: string;
|
|
22
|
-
modelClassname?: string;
|
|
23
|
-
refClass?: string;
|
|
24
|
-
childClass?: string;
|
|
25
|
-
parentChildClass?: string;
|
|
26
|
-
footerButtonClassName?: string;
|
|
27
|
-
overlayClass?: string;
|
|
28
|
-
color?: any;
|
|
29
|
-
colorCancel?: any;
|
|
30
|
-
position?: 'center' | 'start' | 'end';
|
|
31
|
-
fullWidthBtn?: boolean;
|
|
32
|
-
isFullScreen?: boolean;
|
|
33
|
-
isContentFull?: boolean;
|
|
34
|
-
isInner?: boolean;
|
|
35
|
-
isBordered?: boolean;
|
|
36
|
-
closeAfterSubmit?: boolean;
|
|
37
|
-
showOkButton?: boolean;
|
|
38
|
-
showCancelButton?: boolean;
|
|
39
|
-
zIndex?: string;
|
|
40
|
-
scrollbale?: boolean;
|
|
41
|
-
footerClassName?: string;
|
|
42
|
-
externalLoading?: boolean;
|
|
43
|
-
revertFunction?: boolean;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Hàm này tạo một modal component bằng React
|
|
47
|
-
* @param open: boolean - biến xác định modal có được mở hay không
|
|
48
|
-
* @param setOpen: function - hàm xác định modal có được mở hay không
|
|
49
|
-
* @param children: ReactNode - biến chứa các phần tử con của modal
|
|
50
|
-
* @param cancelButtonCaption: string - biến xác định nội dung của nút hủy
|
|
51
|
-
* @param okButtonCaption: string - biến xác định nội dung của nút xác nhận
|
|
52
|
-
* @param handleCancel: function - hàm xử lý khi người dùng nhấn nút hủy
|
|
53
|
-
* @param handleSubmit: function - hàm xử lý khi người dùng nhấn nút xác nhận
|
|
54
|
-
* @param disabled: boolean - biến xác định modal có bị vô hiệu hóa hay không
|
|
55
|
-
* @param title: string - biến xác định tiêu đề của modal
|
|
56
|
-
* @param showTitle: boolean - biến xác định modal có hiển thị tiêu đề hay không
|
|
57
|
-
* @param customTitle: ReactNode - biến chứa phần tử tùy chỉnh cho tiêu đề
|
|
58
|
-
* @param showFooter: boolean - biến xác định modal có hiển thị footer hay không
|
|
59
|
-
* @param customFooter: ReactNode - biến chứa phần tử tùy chỉnh cho footer
|
|
60
|
-
* @param confirmOnclose: boolean - biến xác định modal có yêu cầu xác nhận khi đóng hay không
|
|
61
|
-
* @param width: number - biến xác định modal width
|
|
62
|
-
*/
|
|
63
|
-
declare const SappModal: React.FC<IProps>;
|
|
64
|
-
export default SappModal;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Control } from 'react-hook-form';
|
|
3
|
-
interface IHookFormRadioGroupProps {
|
|
4
|
-
name: string;
|
|
5
|
-
control: Control<any>;
|
|
6
|
-
defaultValue?: unknown;
|
|
7
|
-
options: Array<{
|
|
8
|
-
label?: string;
|
|
9
|
-
value: string | boolean;
|
|
10
|
-
description?: string;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
}>;
|
|
13
|
-
direction?: 'horizontal' | 'vertical';
|
|
14
|
-
separator?: boolean;
|
|
15
|
-
justify?: 'between' | 'start' | 'center' | 'end';
|
|
16
|
-
gap?: string;
|
|
17
|
-
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
18
|
-
labelClass?: string;
|
|
19
|
-
labelClassChecked?: string;
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
corrects?: {
|
|
22
|
-
[key: string]: boolean;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
declare const HookFormRadioGroup: ({ name, control, defaultValue, options, direction, separator, gap, onChange, justify, labelClass, labelClassChecked, disabled, corrects }: IHookFormRadioGroupProps) => React.JSX.Element;
|
|
26
|
-
export default HookFormRadioGroup;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
name?: string;
|
|
4
|
-
value?: string | boolean;
|
|
5
|
-
ktCheck?: boolean;
|
|
6
|
-
checkTarget?: string;
|
|
7
|
-
checked: boolean;
|
|
8
|
-
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
9
|
-
className?: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
state?: 'default' | 'error' | 'success';
|
|
12
|
-
size?: 'small' | 'medium' | 'lager';
|
|
13
|
-
}
|
|
14
|
-
declare const SAPPRadio: ({ name, value, ktCheck, checkTarget, checked, onChange, className, disabled, state, size }: IProps) => React.JSX.Element;
|
|
15
|
-
export default SAPPRadio;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Control } from 'react-hook-form';
|
|
3
|
-
interface IHookFormRadioGroupV2Props {
|
|
4
|
-
name: string;
|
|
5
|
-
control: Control<any>;
|
|
6
|
-
defaultValue?: unknown;
|
|
7
|
-
options: Array<{
|
|
8
|
-
label?: string;
|
|
9
|
-
value: string | boolean;
|
|
10
|
-
description?: string;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
}>;
|
|
13
|
-
direction?: 'horizontal' | 'vertical';
|
|
14
|
-
separator?: boolean;
|
|
15
|
-
justify?: 'between' | 'start' | 'center' | 'end';
|
|
16
|
-
gap?: string;
|
|
17
|
-
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
18
|
-
labelClass?: string;
|
|
19
|
-
labelClassChecked?: string;
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
corrects?: {
|
|
22
|
-
[key: string]: boolean;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
declare const HookFormRadioGroupV2: ({ name, control, defaultValue, options, direction, separator, gap, onChange, justify, labelClass, labelClassChecked, disabled, corrects }: IHookFormRadioGroupV2Props) => React.JSX.Element;
|
|
26
|
-
export default HookFormRadioGroupV2;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
name?: string;
|
|
4
|
-
value?: string | boolean;
|
|
5
|
-
ktCheck?: boolean;
|
|
6
|
-
checkTarget?: string;
|
|
7
|
-
checked: boolean;
|
|
8
|
-
onChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
9
|
-
className?: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
state?: 'default' | 'error' | 'success';
|
|
12
|
-
size?: 'small' | 'medium' | 'lager';
|
|
13
|
-
}
|
|
14
|
-
declare const SAPPRadioV2: ({ name, value, ktCheck, checkTarget, checked, onChange, className, disabled, state, size }: IProps) => React.JSX.Element;
|
|
15
|
-
export default SAPPRadioV2;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { StreamPlayerApi, StreamProps } from '@cloudflare/stream-react';
|
|
2
|
-
import React, { MutableRefObject } from 'react';
|
|
3
|
-
interface IProp {
|
|
4
|
-
options: StreamProps;
|
|
5
|
-
streamRef?: MutableRefObject<StreamPlayerApi | undefined>;
|
|
6
|
-
videoAttribs?: Record<string, string>;
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const SAPPVideo: ({ options, streamRef, videoAttribs, className }: IProp) => React.JSX.Element;
|
|
10
|
-
export default SAPPVideo;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const videoStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type Props = {
|
|
3
|
-
text_editor_content: string | undefined;
|
|
4
|
-
className?: string;
|
|
5
|
-
extenalRef?: any;
|
|
6
|
-
id?: string;
|
|
7
|
-
onMouseUp?: any;
|
|
8
|
-
highlighted?: string;
|
|
9
|
-
options?: any;
|
|
10
|
-
highlighArea?: string;
|
|
11
|
-
};
|
|
12
|
-
declare const EditorReader: ({ text_editor_content, className, extenalRef, id, onMouseUp, highlighted, options, highlighArea }: Props) => React.JSX.Element;
|
|
13
|
-
export default EditorReader;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const essayRenderStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, RefObject, SetStateAction } from 'react';
|
|
2
|
-
import { ICommment, IFile, IFileAnswer, IRequirement, QUESTION_TYPES } from '../../constant';
|
|
3
|
-
export interface IGradeQuestion {
|
|
4
|
-
id: string;
|
|
5
|
-
question_grade: number;
|
|
6
|
-
answer_gradings: AnswerGrading[];
|
|
7
|
-
attempt_grading: AttemptGrading;
|
|
8
|
-
}
|
|
9
|
-
export interface AnswerGrading {
|
|
10
|
-
id: string;
|
|
11
|
-
requirement_id: string;
|
|
12
|
-
answer_grade: number;
|
|
13
|
-
grading_file: any;
|
|
14
|
-
details: Detail[];
|
|
15
|
-
file_grade: number;
|
|
16
|
-
}
|
|
17
|
-
export interface Detail {
|
|
18
|
-
begin: number;
|
|
19
|
-
end: number;
|
|
20
|
-
grade: number;
|
|
21
|
-
comment: string;
|
|
22
|
-
status: string;
|
|
23
|
-
}
|
|
24
|
-
export interface AttemptGrading {
|
|
25
|
-
id: string;
|
|
26
|
-
created_at: string;
|
|
27
|
-
}
|
|
28
|
-
interface IActiveQuestion {
|
|
29
|
-
question_topic: {
|
|
30
|
-
files: IFile[];
|
|
31
|
-
exhibits: {
|
|
32
|
-
id: string;
|
|
33
|
-
description: string;
|
|
34
|
-
name: string;
|
|
35
|
-
files: IFile[];
|
|
36
|
-
}[];
|
|
37
|
-
};
|
|
38
|
-
requirements: IRequirement[];
|
|
39
|
-
exhibits: {
|
|
40
|
-
id: string;
|
|
41
|
-
description: string;
|
|
42
|
-
name: string;
|
|
43
|
-
files: IFile[];
|
|
44
|
-
}[];
|
|
45
|
-
short_answer: string | any;
|
|
46
|
-
answer_file: IFileAnswer;
|
|
47
|
-
question_content: string;
|
|
48
|
-
requirement_answers?: Array<any>;
|
|
49
|
-
grading_method?: string;
|
|
50
|
-
grading_question: IGradeQuestion;
|
|
51
|
-
qType: QUESTION_TYPES;
|
|
52
|
-
solution?: string;
|
|
53
|
-
}
|
|
54
|
-
interface IProps {
|
|
55
|
-
activeQuestion: IActiveQuestion;
|
|
56
|
-
handleShowListRequirement: (e: any) => void;
|
|
57
|
-
showRequirement?: IRequirement | null;
|
|
58
|
-
showListRequirement: boolean;
|
|
59
|
-
handleShowRequirement: ({ description, index, name, files, explanation, answer_template_files }: {
|
|
60
|
-
description: string;
|
|
61
|
-
index: number;
|
|
62
|
-
name: string;
|
|
63
|
-
files: IFile[];
|
|
64
|
-
explanation: string;
|
|
65
|
-
answer_template_files?: string[];
|
|
66
|
-
}) => void;
|
|
67
|
-
setOpenPdf: Dispatch<SetStateAction<{
|
|
68
|
-
status: boolean;
|
|
69
|
-
url: string;
|
|
70
|
-
} | undefined>>;
|
|
71
|
-
handleShowExhibit: (data: {
|
|
72
|
-
id: string;
|
|
73
|
-
description: string;
|
|
74
|
-
index: number;
|
|
75
|
-
name: string;
|
|
76
|
-
files: IFile[];
|
|
77
|
-
}, e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
78
|
-
controlAnswer: any;
|
|
79
|
-
listRequirementRef: RefObject<HTMLDivElement>;
|
|
80
|
-
comment?: ICommment;
|
|
81
|
-
commentRef?: RefObject<HTMLDivElement>;
|
|
82
|
-
editorRef?: RefObject<HTMLDivElement>;
|
|
83
|
-
bodyRef?: RefObject<HTMLDivElement>;
|
|
84
|
-
submitted?: string;
|
|
85
|
-
}
|
|
86
|
-
declare const EssayRender: ({ activeQuestion, showRequirement, handleShowRequirement, setOpenPdf, handleShowExhibit, controlAnswer, comment, commentRef, editorRef, bodyRef }: IProps) => React.JSX.Element;
|
|
87
|
-
export default EssayRender;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const essayRenderStylesV2: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, RefObject, SetStateAction } from 'react';
|
|
2
|
-
import { ICommment, IFile, IFileAnswer, IRequirement, QUESTION_TYPES, IAiContext } from '../../constant';
|
|
3
|
-
export interface IGradeQuestion {
|
|
4
|
-
id: string;
|
|
5
|
-
question_grade: number;
|
|
6
|
-
answer_gradings: AnswerGrading[];
|
|
7
|
-
attempt_grading: AttemptGrading;
|
|
8
|
-
}
|
|
9
|
-
export interface AnswerGrading {
|
|
10
|
-
id: string;
|
|
11
|
-
requirement_id: string;
|
|
12
|
-
answer_grade: number;
|
|
13
|
-
grading_file: any;
|
|
14
|
-
details: Detail[];
|
|
15
|
-
file_grade: number;
|
|
16
|
-
comment?: string;
|
|
17
|
-
ai_grade?: number;
|
|
18
|
-
}
|
|
19
|
-
export interface Detail {
|
|
20
|
-
begin: number;
|
|
21
|
-
end: number;
|
|
22
|
-
grade: number;
|
|
23
|
-
comment: string;
|
|
24
|
-
status: string;
|
|
25
|
-
ai_contexts?: IAiContext[];
|
|
26
|
-
}
|
|
27
|
-
export interface AttemptGrading {
|
|
28
|
-
id: string;
|
|
29
|
-
created_at: string;
|
|
30
|
-
}
|
|
31
|
-
interface IActiveQuestion {
|
|
32
|
-
question_topic: {
|
|
33
|
-
files: IFile[];
|
|
34
|
-
exhibits: {
|
|
35
|
-
id: string;
|
|
36
|
-
description: string;
|
|
37
|
-
name: string;
|
|
38
|
-
files: IFile[];
|
|
39
|
-
}[];
|
|
40
|
-
description: string;
|
|
41
|
-
};
|
|
42
|
-
requirements: IRequirement[];
|
|
43
|
-
exhibits: {
|
|
44
|
-
id: string;
|
|
45
|
-
description: string;
|
|
46
|
-
name: string;
|
|
47
|
-
files: IFile[];
|
|
48
|
-
}[];
|
|
49
|
-
short_answer: string | any;
|
|
50
|
-
answer_file: IFileAnswer;
|
|
51
|
-
question_content: string;
|
|
52
|
-
requirement_answers?: Array<any>;
|
|
53
|
-
grading_method?: string;
|
|
54
|
-
grading_question: IGradeQuestion;
|
|
55
|
-
qType: QUESTION_TYPES;
|
|
56
|
-
solution?: string;
|
|
57
|
-
ai_contexts?: IAiContext[];
|
|
58
|
-
course_ai_contexts?: IAiContext[];
|
|
59
|
-
}
|
|
60
|
-
interface IProps {
|
|
61
|
-
activeQuestion: IActiveQuestion;
|
|
62
|
-
handleShowListRequirement: (e: any) => void;
|
|
63
|
-
showRequirement?: IRequirement | null;
|
|
64
|
-
showListRequirement: boolean;
|
|
65
|
-
handleShowRequirement: ({ description, index, name, files, explanation, answer_template_files }: {
|
|
66
|
-
description: string;
|
|
67
|
-
index: number;
|
|
68
|
-
name: string;
|
|
69
|
-
files: IFile[];
|
|
70
|
-
explanation: string;
|
|
71
|
-
answer_template_files?: string[];
|
|
72
|
-
}) => void;
|
|
73
|
-
setOpenPdf: Dispatch<SetStateAction<{
|
|
74
|
-
status: boolean;
|
|
75
|
-
url: string;
|
|
76
|
-
} | undefined>>;
|
|
77
|
-
handleShowExhibit: (data: {
|
|
78
|
-
id: string;
|
|
79
|
-
description: string;
|
|
80
|
-
index: number;
|
|
81
|
-
name: string;
|
|
82
|
-
files: IFile[];
|
|
83
|
-
}, e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
84
|
-
controlAnswer: any;
|
|
85
|
-
listRequirementRef: RefObject<HTMLDivElement>;
|
|
86
|
-
comment?: ICommment;
|
|
87
|
-
commentRef?: RefObject<HTMLDivElement>;
|
|
88
|
-
editorRef?: RefObject<HTMLDivElement>;
|
|
89
|
-
bodyRef?: RefObject<HTMLDivElement>;
|
|
90
|
-
submitted?: string;
|
|
91
|
-
activeCommentId?: string | null;
|
|
92
|
-
setActiveCommentId: React.Dispatch<React.SetStateAction<string | null>>;
|
|
93
|
-
setOpenComment?: (open: boolean) => void;
|
|
94
|
-
}
|
|
95
|
-
declare const EssayRenderV2: ({ activeQuestion, showRequirement, handleShowRequirement, setOpenPdf, handleShowExhibit, controlAnswer, comment, commentRef, editorRef, bodyRef, activeCommentId, setActiveCommentId, setOpenComment }: IProps) => React.JSX.Element;
|
|
96
|
-
export default EssayRenderV2;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const explanationStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IRequirement } from '../../constant';
|
|
3
|
-
interface IProps {
|
|
4
|
-
activeQuestion: {
|
|
5
|
-
solution?: string;
|
|
6
|
-
confirmed?: boolean;
|
|
7
|
-
qType?: string;
|
|
8
|
-
};
|
|
9
|
-
explanationTitle?: string;
|
|
10
|
-
showRequirement?: IRequirement | null;
|
|
11
|
-
}
|
|
12
|
-
declare const Explanation: ({ activeQuestion, explanationTitle, showRequirement }: IProps) => React.JSX.Element;
|
|
13
|
-
export default Explanation;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IRequirement } from '../../constant';
|
|
3
|
-
interface IProps {
|
|
4
|
-
activeQuestion: {
|
|
5
|
-
solution?: string;
|
|
6
|
-
confirmed?: boolean;
|
|
7
|
-
qType?: string;
|
|
8
|
-
};
|
|
9
|
-
explanationTitle?: string;
|
|
10
|
-
showRequirement?: IRequirement | null;
|
|
11
|
-
}
|
|
12
|
-
declare const ExplanationV2: ({ activeQuestion, explanationTitle, showRequirement }: IProps) => React.JSX.Element;
|
|
13
|
-
export default ExplanationV2;
|