@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.
Files changed (179) hide show
  1. package/dist/assets/images/default_thumbnail_video.png +0 -0
  2. package/dist/assets/images/default_thumbnail_video_mobile.png +0 -0
  3. package/dist/assets/images/default_thumbnail_video_tablet.png +0 -0
  4. package/dist/index.cjs +8835 -0
  5. package/dist/index.css +1 -12
  6. package/dist/index.mjs +15828 -0
  7. package/package.json +37 -53
  8. package/dist/Quiz.d.ts +0 -7
  9. package/dist/QuizComponent.d.ts +0 -23
  10. package/dist/button/ButtonCancelSubmit.d.ts +0 -3
  11. package/dist/button/ErrorMessage.d.ts +0 -7
  12. package/dist/button/SappButton.d.ts +0 -4
  13. package/dist/button/YourAnswer.d.ts +0 -6
  14. package/dist/checkbox/HookFormCheckBox.d.ts +0 -19
  15. package/dist/checkbox/HookFormCheckBoxGroup.d.ts +0 -37
  16. package/dist/checkbox/SAPPCheckbox.d.ts +0 -14
  17. package/dist/common/ArrowIcon.d.ts +0 -9
  18. package/dist/common/CommentList.d.ts +0 -9
  19. package/dist/common/EssayRender.d.ts +0 -52
  20. package/dist/common/ExhibitMovableWindow.d.ts +0 -13
  21. package/dist/common/ExhibitRender.d.ts +0 -21
  22. package/dist/common/Explanation.d.ts +0 -12
  23. package/dist/common/FileDisplay.d.ts +0 -14
  24. package/dist/common/HookClick.d.ts +0 -7
  25. package/dist/common/Icon.d.ts +0 -8
  26. package/dist/common/MovableWindow.d.ts +0 -11
  27. package/dist/common/MoveQuestionBar.d.ts +0 -16
  28. package/dist/common/SappIcon.d.ts +0 -11
  29. package/dist/common/TopicDisplay.d.ts +0 -34
  30. package/dist/components/ArrowIcon.d.ts +0 -8
  31. package/dist/components/ExhibitMovableWindow.d.ts +0 -13
  32. package/dist/components/ExhibitMovableWindowV2.d.ts +0 -13
  33. package/dist/components/ExhibitRender.d.ts +0 -20
  34. package/dist/components/FileDisplay.d.ts +0 -15
  35. package/dist/components/HookClick.d.ts +0 -7
  36. package/dist/components/Icon.d.ts +0 -17
  37. package/dist/components/MovableWindow.d.ts +0 -11
  38. package/dist/components/SappIcon.d.ts +0 -11
  39. package/dist/components/comment-list/commentList.styles.d.ts +0 -1
  40. package/dist/components/comment-list/index.d.ts +0 -11
  41. package/dist/components/comment-list-v2/commentListV2.styles.d.ts +0 -1
  42. package/dist/components/comment-list-v2/index.d.ts +0 -14
  43. package/dist/components/comment-modal/CommentModal.d.ts +0 -9
  44. package/dist/components/comment-modal/commentModal.styles.d.ts +0 -1
  45. package/dist/components/comment-modal/index.d.ts +0 -2
  46. package/dist/components/common/button/ButtonCancelSubmit.d.ts +0 -3
  47. package/dist/components/common/button/ErrorMessage.d.ts +0 -7
  48. package/dist/components/common/button/SappButton.d.ts +0 -4
  49. package/dist/components/common/button/YourAnswer.d.ts +0 -6
  50. package/dist/components/common/button/YourAnswerV2.d.ts +0 -7
  51. package/dist/components/common/checkbox/HookFormCheckBoxGroup.d.ts +0 -37
  52. package/dist/components/common/checkbox/SAPPCheckbox.d.ts +0 -14
  53. package/dist/components/common/checkboxV2/HookFormCheckBoxGroupV2.d.ts +0 -37
  54. package/dist/components/common/checkboxV2/SAPPCheckboxV2.d.ts +0 -15
  55. package/dist/components/common/common.styles.d.ts +0 -1
  56. package/dist/components/common/divider/Divider.d.ts +0 -5
  57. package/dist/components/common/divider/styles.d.ts +0 -1
  58. package/dist/components/common/modal/PopupViewPdf.d.ts +0 -13
  59. package/dist/components/common/modal/SappModal.d.ts +0 -64
  60. package/dist/components/common/modal/SappModalImage.d.ts +0 -7
  61. package/dist/components/common/modal/SappModalVideo.d.ts +0 -7
  62. package/dist/components/common/pdf/pdf-viewer.d.ts +0 -5
  63. package/dist/components/common/pdf/popupViewPdf.d.ts +0 -8
  64. package/dist/components/common/radiobutton/HookFormRadioGroup.d.ts +0 -26
  65. package/dist/components/common/radiobutton/SAPPRadio.d.ts +0 -15
  66. package/dist/components/common/radiobuttonV2/HookFormRadioGroupV2.d.ts +0 -26
  67. package/dist/components/common/radiobuttonV2/SAPPRadioV2.d.ts +0 -15
  68. package/dist/components/common/video/Player.d.ts +0 -2
  69. package/dist/components/common/video/SAPPVideo.d.ts +0 -10
  70. package/dist/components/common/video/video.styles.d.ts +0 -1
  71. package/dist/components/editor/EditorReader.d.ts +0 -13
  72. package/dist/components/essay-render/essayRender.styles.d.ts +0 -1
  73. package/dist/components/essay-render/index.d.ts +0 -87
  74. package/dist/components/essay-render-v2/essayRenderV2.styles.d.ts +0 -1
  75. package/dist/components/essay-render-v2/index.d.ts +0 -96
  76. package/dist/components/explanation/explanation.styles.d.ts +0 -1
  77. package/dist/components/explanation/index.d.ts +0 -13
  78. package/dist/components/explanationV2/index.d.ts +0 -13
  79. package/dist/components/grading-file/GradingFileDisplay.d.ts +0 -10
  80. package/dist/components/grading-file/ListGradingFile.d.ts +0 -8
  81. package/dist/components/icons/CloseIcon.d.ts +0 -5
  82. package/dist/components/icons/ResizeIcon.d.ts +0 -5
  83. package/dist/components/icons/UploadIcon.d.ts +0 -2
  84. package/dist/components/icons/index.d.ts +0 -12
  85. package/dist/components/list-question/ListQuestion.d.ts +0 -13
  86. package/dist/components/list-question/QuestionGrid.d.ts +0 -21
  87. package/dist/components/list-question/types.d.ts +0 -14
  88. package/dist/components/move-question-bar/index.d.ts +0 -16
  89. package/dist/components/move-question-bar/moveQuestionBar.styles.d.ts +0 -1
  90. package/dist/components/questionType/ConstructedQuestion.d.ts +0 -19
  91. package/dist/components/questionType/DragNDrop.d.ts +0 -17
  92. package/dist/components/questionType/FillText.d.ts +0 -21
  93. package/dist/components/questionType/MatchingQuestion.d.ts +0 -18
  94. package/dist/components/questionType/MultipleChoiceQuestion.d.ts +0 -4
  95. package/dist/components/questionType/OneChoiceQuestion.d.ts +0 -19
  96. package/dist/components/questionType/SelectWordQuestion.d.ts +0 -28
  97. package/dist/components/questionType/questionTypes.styles.d.ts +0 -1
  98. package/dist/components/quiz-component/index.d.ts +0 -25
  99. package/dist/components/quiz-component/quizComponent.styles.d.ts +0 -1
  100. package/dist/components/quiz-component-v2/index.d.ts +0 -29
  101. package/dist/components/quiz-component-v2/questionTypeV2/ConstructedQuestionV2.d.ts +0 -22
  102. package/dist/components/quiz-component-v2/questionTypeV2/DragNDrop.d.ts +0 -18
  103. package/dist/components/quiz-component-v2/questionTypeV2/FillText.d.ts +0 -21
  104. package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/CustomEdge.d.ts +0 -4
  105. package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/CustomFlow.d.ts +0 -11
  106. package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/CustomNode.d.ts +0 -9
  107. package/dist/components/quiz-component-v2/questionTypeV2/MatchQuiz/index.d.ts +0 -22
  108. package/dist/components/quiz-component-v2/questionTypeV2/MultipleChoiceQuestion.d.ts +0 -4
  109. package/dist/components/quiz-component-v2/questionTypeV2/OneChoiceQuestion.d.ts +0 -19
  110. package/dist/components/quiz-component-v2/questionTypeV2/SelectWordQuestion.d.ts +0 -21
  111. package/dist/components/quiz-component-v2/questionTypeV2/questionTypes.styles.d.ts +0 -1
  112. package/dist/components/quiz-component-v2/quizComponentV2.styles.d.ts +0 -1
  113. package/dist/components/render-view/AIComment.d.ts +0 -10
  114. package/dist/components/render-view/MarkdownRender.d.ts +0 -10
  115. package/dist/components/render-view/ModalPreviewFile.d.ts +0 -11
  116. package/dist/components/styles.d.ts +0 -1
  117. package/dist/components/topic-display/index.d.ts +0 -34
  118. package/dist/components/topic-display/topicDisplay.styles.d.ts +0 -1
  119. package/dist/constant/icon.d.ts +0 -3
  120. package/dist/constant/index.d.ts +0 -313
  121. package/dist/contexts/index.d.ts +0 -10
  122. package/dist/conts/index.d.ts +0 -273
  123. package/dist/editor/EditorReader.d.ts +0 -13
  124. package/dist/editor/HookFormEditor.d.ts +0 -22
  125. package/dist/editor/editor.d.ts +0 -18
  126. package/dist/hooks/HookClick.d.ts +0 -7
  127. package/dist/hooks/useCommentMobileView.d.ts +0 -3
  128. package/dist/hooks/useListQuestionColumnsPerRow.d.ts +0 -4
  129. package/dist/hooks/useMousePosition.d.ts +0 -5
  130. package/dist/hooks/useTailwindBreakpoint.d.ts +0 -17
  131. package/dist/icons/CloseIcon.d.ts +0 -4
  132. package/dist/icons/UploadIcon.d.ts +0 -2
  133. package/dist/index.d.ts +0 -19
  134. package/dist/index.js +0 -7685
  135. package/dist/index.js.map +0 -1
  136. package/dist/index.modern.js +0 -7681
  137. package/dist/index.modern.js.map +0 -1
  138. package/dist/index.test.d.ts +0 -1
  139. package/dist/modal/PopupViewPdf.d.ts +0 -8
  140. package/dist/modal/SappModal.d.ts +0 -64
  141. package/dist/modal/SappModalImage.d.ts +0 -7
  142. package/dist/modal/SappModalVideo.d.ts +0 -7
  143. package/dist/pdf/pdf-viewer.d.ts +0 -4
  144. package/dist/pdf/popupViewPdf.d.ts +0 -8
  145. package/dist/questionType/ConstructedQuestion.d.ts +0 -19
  146. package/dist/questionType/DragNDrop.d.ts +0 -17
  147. package/dist/questionType/FillText.d.ts +0 -21
  148. package/dist/questionType/MatchingQuestion.d.ts +0 -18
  149. package/dist/questionType/MultipleChoiceQuestion.d.ts +0 -4
  150. package/dist/questionType/OneChoiceQuestion.d.ts +0 -19
  151. package/dist/questionType/SelectWordQuestion.d.ts +0 -28
  152. package/dist/radiobutton/HookFormRadioGroup.d.ts +0 -26
  153. package/dist/radiobutton/SAPPRadio.d.ts +0 -15
  154. package/dist/style.d.ts +0 -1
  155. package/dist/styles/base/colors.d.ts +0 -1
  156. package/dist/styles/base/typography.d.ts +0 -1
  157. package/dist/styles/base/utils.d.ts +0 -1
  158. package/dist/styles/global-styles.d.ts +0 -1
  159. package/dist/styles/index.d.ts +0 -1
  160. package/dist/styles/legacy/button.d.ts +0 -1
  161. package/dist/styles/legacy/caret.d.ts +0 -1
  162. package/dist/styles/legacy/condition.d.ts +0 -1
  163. package/dist/styles/legacy/custom-style.d.ts +0 -1
  164. package/dist/styles/legacy/editor-wrap.d.ts +0 -1
  165. package/dist/styles/legacy/fortune.d.ts +0 -1
  166. package/dist/styles/legacy/lucky-sheet.d.ts +0 -1
  167. package/dist/styles/legacy/resizable.d.ts +0 -1
  168. package/dist/styles/legacy/sapp-custom.d.ts +0 -1
  169. package/dist/styles/legacy/stream-player.d.ts +0 -1
  170. package/dist/styles/legacy/tailwind.d.ts +0 -1
  171. package/dist/styles/legacy/tooltip.d.ts +0 -1
  172. package/dist/styles/list-question/listQuestion.styles.d.ts +0 -1
  173. package/dist/styles/react-flow-styled.d.ts +0 -1
  174. package/dist/utils/dragandresize.d.ts +0 -6
  175. package/dist/utils/graded.d.ts +0 -48
  176. package/dist/utils/icons.d.ts +0 -9
  177. package/dist/utils/index.d.ts +0 -24
  178. package/dist/video/Player.d.ts +0 -2
  179. package/dist/video/SAPPVideo.d.ts +0 -13
@@ -1,313 +0,0 @@
1
- export declare const EXPLANATION_TITLE = "Explanation";
2
- export declare const SOLUTION_TITLE = "Solution";
3
- export declare const video_url: string | undefined;
4
- export declare const GRADING_METHOD: {
5
- MANUAL: string;
6
- AUTO: string;
7
- };
8
- export interface IFile {
9
- id: string;
10
- created_at: string;
11
- updated_at: string;
12
- deleted_at: string;
13
- dom_id: string;
14
- type: string;
15
- object_id: string;
16
- resource_id: string;
17
- resource: {
18
- id: string;
19
- name: string;
20
- file_key: string;
21
- stream_url: string;
22
- cloudflare_video_id: string;
23
- time_line: any[];
24
- status: string;
25
- url: string;
26
- url_expired_in: string;
27
- sub_url: string;
28
- };
29
- }
30
- export interface IVideo {
31
- file: IFile;
32
- quiz?: {
33
- id: string;
34
- constructed_questions: IQuestion[];
35
- multiple_choice_questions: IQuestion[];
36
- };
37
- }
38
- export declare enum QUESTION_LEVELS {
39
- FUNDAMENTAL = "FUNDAMENTAL",
40
- ADVANCED = "ADVANCED"
41
- }
42
- export declare enum QUESTION_ASSIGNMENT_TYPE {
43
- FILE = "FILE",
44
- TEXT = "TEXT",
45
- ALL = "ALL"
46
- }
47
- export declare enum QUESTION_RESPONSE_OPTION {
48
- WORD = "WORD",
49
- SHEET = "SHEET",
50
- NONE = "NONE"
51
- }
52
- export interface IQuestionAnswer {
53
- id: any;
54
- is_correct: boolean;
55
- answer: string;
56
- answer_position: number;
57
- }
58
- export interface IQuestion {
59
- id?: string;
60
- qType?: QUESTION_TYPES;
61
- assignment_type: string;
62
- response_option?: string | null;
63
- level: QUESTION_LEVELS;
64
- display_type: string;
65
- question_content: string;
66
- solution?: string;
67
- hint?: string;
68
- tags?: IQuestionTag[];
69
- answers?: any[];
70
- question_matchings?: {
71
- content: string;
72
- answer: any;
73
- }[];
74
- question_filter?: {
75
- course_id: string;
76
- chapter_id: string;
77
- unit_id: string;
78
- activity_id: string;
79
- part_id: string;
80
- };
81
- question_category_id?: string;
82
- question_topic_id?: string;
83
- requirements?: {
84
- name: string;
85
- type?: 'TEXT' | 'FILE';
86
- description: string;
87
- files?: IFile[];
88
- }[];
89
- exhibits?: {
90
- name: string;
91
- type?: 'TEXT' | 'FILE';
92
- description: string;
93
- files?: IFile[];
94
- }[];
95
- files?: IFile[];
96
- setting_grade?: string;
97
- time?: string;
98
- }
99
- export declare enum ANSWER_CORRECT_TYPE {
100
- T = "T",
101
- F = "F"
102
- }
103
- export interface IQuestionTag {
104
- id?: string;
105
- name?: string;
106
- description?: string;
107
- }
108
- export interface IQuestionCategory {
109
- id?: string;
110
- name?: string;
111
- description?: string;
112
- }
113
- export declare const PageLink: {
114
- DASHBOARD: string;
115
- COURSES: string;
116
- COURSE_NEW: string;
117
- TOPICS: string;
118
- CASE_STUDY: string;
119
- TEACHER: string;
120
- AUTH_LOGIN: string;
121
- AUTH_FORGOT_PASSWORD: string;
122
- AUTH_FORGOT_PASSWORD_RECOVER: string;
123
- AUTH_CHANGE_PASSWORD: string;
124
- AUTH_CHANGE_PASSWORD_SUCCESS: string;
125
- NOTIFICATION: string;
126
- ENTRANCE_TEST: string;
127
- };
128
- export declare const TitleSidebar: {
129
- DASHBOARD: string;
130
- COURSES: string;
131
- COURSE_NEW: string;
132
- COURSE_LIST: string;
133
- CASE_STUDY: string;
134
- TOPICS: string;
135
- TOPICS_LIST: string;
136
- TEACHER: string;
137
- };
138
- export declare const GUIDELINE_PASSWORD: string[];
139
- export declare const PUBLIC_PATHS: {
140
- [key: string]: boolean;
141
- };
142
- export declare enum QUESTION_TYPES {
143
- TRUE_FALSE = "TRUE_FALSE",
144
- ONE_CHOICE = "ONE_CHOICE",
145
- MULTIPLE_CHOICE = "MULTIPLE_CHOICE",
146
- MATCHING = "MATCHING",
147
- SELECT_WORD = "SELECT_WORD",
148
- FILL_WORD = "FILL_WORD",
149
- DRAG_DROP = "DRAG_DROP",
150
- ESSAY = "ESSAY"
151
- }
152
- export declare enum DISPLAY_TYPE {
153
- VERTICAL = "VERTICAL",
154
- HORIZONTAL = "HORIZONTAL"
155
- }
156
- export declare enum RESPONSE_OPTION {
157
- WORD = "WORD",
158
- SHEET = "SHEET"
159
- }
160
- export declare const MAX_UPLOAD_SIZE: number;
161
- export declare const MAX_UPLOAD_VIDEO_SIZE: number;
162
- export declare const VALID_UPLOAD_EDITOR: {
163
- type: string;
164
- size: number;
165
- }[];
166
- export declare const UserGuide: {
167
- TITLE_WELCOME: string;
168
- CONTENT_WELCOME: string;
169
- CONTENT_BUTTON: string;
170
- CONTENT_STEP_1: string;
171
- CONTENT_STEP_2: string;
172
- CONTENT_STEP_3: string;
173
- CONTENT_STEP_4: string;
174
- CONTENT_STEP_5: string;
175
- CONTENT_STEP_6: string;
176
- };
177
- export declare enum EXHIBIT_TEXT_REPLACE {
178
- EXHIBIT = "Exhibit",
179
- EXHIBIT_REPLACE = "Time Value Table"
180
- }
181
- export declare enum PROGRAM {
182
- ACCA = "ACCA",
183
- CFA = "CFA",
184
- CMA = "CMA"
185
- }
186
- export declare const defaultStatusDetail: {
187
- label: string;
188
- value: string;
189
- }[];
190
- export declare type IButtonColors = 'primary' | 'info' | 'success' | 'secondary' | 'danger' | 'warning' | 'light' | 'dark' | 'white' | 'outline' | 'text' | 'quizActivity';
191
- export interface IButtonProps {
192
- title: string;
193
- onClick?: (e: any) => void;
194
- className?: string;
195
- link?: string;
196
- disabled?: boolean;
197
- loading?: boolean;
198
- size?: 'small' | 'medium' | 'lager' | 'extra';
199
- full?: boolean;
200
- name?: string;
201
- type?: 'button' | 'reset' | 'submit';
202
- isPadding?: boolean;
203
- isPaddingHorizontal?: boolean;
204
- color?: IButtonColors;
205
- isUnderLine?: boolean;
206
- childClass?: string;
207
- }
208
- export interface ITabs {
209
- link: string;
210
- title: string;
211
- }
212
- export declare type IButtonCancelSubmitProps = {
213
- submit: IButtonProps;
214
- cancel: IButtonProps;
215
- className?: string;
216
- color?: IButtonColors;
217
- colorCancel?: IButtonColors;
218
- showOkButton?: boolean;
219
- showCancelButton?: boolean;
220
- size?: 'small' | 'medium' | 'lager' | 'extra';
221
- revertFunction?: boolean;
222
- };
223
- declare global {
224
- interface Window {
225
- luckysheet: any;
226
- }
227
- }
228
- export interface GradingDetail {
229
- begin?: number | null | undefined;
230
- end?: number | null | undefined;
231
- comment?: string;
232
- grade?: number | null | undefined;
233
- validate?: string;
234
- grading_file?: {
235
- file_key?: string;
236
- file_name?: string;
237
- name?: string;
238
- };
239
- }
240
- export interface IAiContextResource {
241
- id?: string;
242
- name?: string;
243
- file_key?: string;
244
- resource_type?: string;
245
- suffix_type?: string;
246
- size?: number;
247
- cloudflare_video_token?: string | null;
248
- url_expired_in?: string | null;
249
- url?: string;
250
- sub_url?: string | null;
251
- }
252
- export interface IAiContextBase {
253
- id?: string;
254
- name?: string;
255
- description?: string;
256
- category?: string;
257
- target_id?: string;
258
- show_to_student?: boolean;
259
- }
260
- export interface IAiContextText extends IAiContextBase {
261
- type?: string;
262
- text?: string;
263
- }
264
- export interface IAiContextFile extends IAiContextBase {
265
- type?: string;
266
- resource_id?: string;
267
- resource?: IAiContextResource;
268
- }
269
- export declare type IAiContext = IAiContextText | IAiContextFile;
270
- export interface IRequirement {
271
- id?: string;
272
- description?: string;
273
- index?: number;
274
- name?: string;
275
- files?: any;
276
- explanation?: string;
277
- answer_file?: IFileAnswer;
278
- short_answer?: string;
279
- active?: string;
280
- answer_template_files?: string[];
281
- ai_contexts?: IAiContext[];
282
- }
283
- export interface IRequirementAnswer {
284
- short_answer: string;
285
- requirement_id: string;
286
- active?: string;
287
- }
288
- export interface IFileAnswer {
289
- file_key: string;
290
- file_name: string;
291
- url?: string;
292
- file_url?: string;
293
- }
294
- export interface ICommment {
295
- ai_grade?: number;
296
- answer_grade: number;
297
- details?: GradingDetail[];
298
- file_grade: number;
299
- grading_file?: IFileAnswer;
300
- id: string;
301
- requirement_id: string;
302
- comment?: string;
303
- }
304
- export interface IShowExhibit {
305
- id?: string;
306
- index?: number;
307
- name?: string;
308
- setShowExhibit?: any;
309
- description?: string;
310
- left?: string;
311
- top?: string;
312
- files?: IFile[];
313
- }
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- declare type Context = {
3
- activeOverlayCommentSidebar: boolean;
4
- setActiveOverlayCommentSidebar: React.Dispatch<React.SetStateAction<boolean>>;
5
- requirementIndex: number | null;
6
- setRequirementIndex: React.Dispatch<React.SetStateAction<number | null>>;
7
- };
8
- export declare function ExplainationProvider(props: React.PropsWithChildren<{}>): React.JSX.Element;
9
- export declare function useExplainationContext(): Context;
10
- export {};
@@ -1,273 +0,0 @@
1
- export interface IFile {
2
- id: string;
3
- created_at: string;
4
- updated_at: string;
5
- deleted_at: string;
6
- dom_id: string;
7
- type: string;
8
- object_id: string;
9
- resource_id: string;
10
- resource: {
11
- id: string;
12
- name: string;
13
- file_key: string;
14
- stream_url: string;
15
- cloudflare_video_id: string;
16
- time_line: any[];
17
- status: string;
18
- url: string;
19
- url_expired_in: string;
20
- sub_url: string;
21
- };
22
- }
23
- export interface IVideo {
24
- file: IFile;
25
- quiz?: {
26
- id: string;
27
- constructed_questions: IQuestion[];
28
- multiple_choice_questions: IQuestion[];
29
- };
30
- }
31
- export declare enum QUESTION_LEVELS {
32
- FUNDAMENTAL = "FUNDAMENTAL",
33
- ADVANCED = "ADVANCED"
34
- }
35
- export declare enum QUESTION_ASSIGNMENT_TYPE {
36
- FILE = "FILE",
37
- TEXT = "TEXT",
38
- ALL = "ALL"
39
- }
40
- export declare enum QUESTION_RESPONSE_OPTION {
41
- WORD = "WORD",
42
- SHEET = "SHEET",
43
- NONE = "NONE"
44
- }
45
- export interface IQuestionAnswer {
46
- id: any;
47
- is_correct: boolean;
48
- answer: string;
49
- answer_position: number;
50
- }
51
- export interface IQuestion {
52
- id?: string;
53
- qType?: QUESTION_TYPES;
54
- assignment_type: string;
55
- response_option?: string | null;
56
- level: QUESTION_LEVELS;
57
- display_type: string;
58
- question_content: string;
59
- solution?: string;
60
- hint?: string;
61
- tags?: IQuestionTag[];
62
- answers?: any[];
63
- question_matchings?: {
64
- content: string;
65
- answer: any;
66
- }[];
67
- question_filter?: {
68
- course_id: string;
69
- chapter_id: string;
70
- unit_id: string;
71
- activity_id: string;
72
- part_id: string;
73
- };
74
- question_category_id?: string;
75
- question_topic_id?: string;
76
- requirements?: {
77
- name: string;
78
- type?: 'TEXT' | 'FILE';
79
- description: string;
80
- files?: IFile[];
81
- }[];
82
- exhibits?: {
83
- name: string;
84
- type?: 'TEXT' | 'FILE';
85
- description: string;
86
- files?: IFile[];
87
- }[];
88
- files?: IFile[];
89
- setting_grade?: string;
90
- time?: string;
91
- }
92
- export declare enum ANSWER_CORRECT_TYPE {
93
- T = "T",
94
- F = "F"
95
- }
96
- export interface IQuestionTag {
97
- id?: string;
98
- name?: string;
99
- description?: string;
100
- }
101
- export interface IQuestionCategory {
102
- id?: string;
103
- name?: string;
104
- description?: string;
105
- }
106
- export declare const PageLink: {
107
- DASHBOARD: string;
108
- COURSES: string;
109
- COURSE_NEW: string;
110
- TOPICS: string;
111
- CASE_STUDY: string;
112
- TEACHER: string;
113
- AUTH_LOGIN: string;
114
- AUTH_FORGOT_PASSWORD: string;
115
- AUTH_FORGOT_PASSWORD_RECOVER: string;
116
- AUTH_CHANGE_PASSWORD: string;
117
- AUTH_CHANGE_PASSWORD_SUCCESS: string;
118
- NOTIFICATION: string;
119
- ENTRANCE_TEST: string;
120
- };
121
- export declare const TitleSidebar: {
122
- DASHBOARD: string;
123
- COURSES: string;
124
- COURSE_NEW: string;
125
- COURSE_LIST: string;
126
- CASE_STUDY: string;
127
- TOPICS: string;
128
- TOPICS_LIST: string;
129
- TEACHER: string;
130
- };
131
- export declare const GUIDELINE_PASSWORD: string[];
132
- export declare const PUBLIC_PATHS: {
133
- [key: string]: boolean;
134
- };
135
- export declare enum QUESTION_TYPES {
136
- TRUE_FALSE = "TRUE_FALSE",
137
- ONE_CHOICE = "ONE_CHOICE",
138
- MULTIPLE_CHOICE = "MULTIPLE_CHOICE",
139
- MATCHING = "MATCHING",
140
- SELECT_WORD = "SELECT_WORD",
141
- FILL_WORD = "FILL_WORD",
142
- DRAG_DROP = "DRAG_DROP",
143
- ESSAY = "ESSAY"
144
- }
145
- export declare enum DISPLAY_TYPE {
146
- VERTICAL = "VERTICAL",
147
- HORIZONTAL = "HORIZONTAL"
148
- }
149
- export declare enum RESPONSE_OPTION {
150
- WORD = "WORD",
151
- SHEET = "SHEET"
152
- }
153
- export declare const MAX_UPLOAD_SIZE: number;
154
- export declare const MAX_UPLOAD_VIDEO_SIZE: number;
155
- export declare const VALID_UPLOAD_EDITOR: {
156
- type: string;
157
- size: number;
158
- }[];
159
- export declare const UserGuide: {
160
- TITLE_WELCOME: string;
161
- CONTENT_WELCOME: string;
162
- CONTENT_BUTTON: string;
163
- CONTENT_STEP_1: string;
164
- CONTENT_STEP_2: string;
165
- CONTENT_STEP_3: string;
166
- CONTENT_STEP_4: string;
167
- CONTENT_STEP_5: string;
168
- CONTENT_STEP_6: string;
169
- };
170
- export declare enum EXHIBIT_TEXT_REPLACE {
171
- EXHIBIT = "Exhibit",
172
- EXHIBIT_REPLACE = "Time Value Table"
173
- }
174
- export declare enum PROGRAM {
175
- ACCA = "ACCA",
176
- CFA = "CFA",
177
- CMA = "CMA"
178
- }
179
- export declare const defaultStatusDetail: {
180
- label: string;
181
- value: string;
182
- }[];
183
- export declare type IButtonColors = 'primary' | 'info' | 'success' | 'secondary' | 'danger' | 'warning' | 'light' | 'dark' | 'white' | 'outline' | 'text' | 'quizActivity';
184
- export interface IButtonProps {
185
- title: string;
186
- onClick?: (e: any) => void;
187
- className?: string;
188
- link?: string;
189
- disabled?: boolean;
190
- loading?: boolean;
191
- size?: 'small' | 'medium' | 'lager' | 'extra';
192
- full?: boolean;
193
- name?: string;
194
- type?: 'button' | 'reset' | 'submit';
195
- isPadding?: boolean;
196
- isPaddingHorizontal?: boolean;
197
- color?: IButtonColors;
198
- isUnderLine?: boolean;
199
- childClass?: string;
200
- }
201
- export interface ITabs {
202
- link: string;
203
- title: string;
204
- }
205
- export declare type IButtonCancelSubmitProps = {
206
- submit: IButtonProps;
207
- cancel: IButtonProps;
208
- className?: string;
209
- color?: IButtonColors;
210
- colorCancel?: IButtonColors;
211
- showOkButton?: boolean;
212
- showCancelButton?: boolean;
213
- size?: 'small' | 'medium' | 'lager' | 'extra';
214
- revertFunction?: boolean;
215
- };
216
- declare global {
217
- interface Window {
218
- luckysheet: any;
219
- }
220
- }
221
- export interface GradingDetail {
222
- begin?: number | null | undefined;
223
- end?: number | null | undefined;
224
- comment?: string;
225
- grade?: number | null | undefined;
226
- validate?: string;
227
- grading_file?: {
228
- file_key?: string;
229
- file_name?: string;
230
- name?: string;
231
- };
232
- }
233
- export interface IRequirement {
234
- id?: string;
235
- description?: string;
236
- index?: number;
237
- name?: string;
238
- files?: any;
239
- explanation?: string;
240
- answer_file?: IFileAnswer;
241
- short_answer?: string;
242
- active?: string;
243
- answer_template_files?: string[];
244
- }
245
- export interface IRequirementAnswer {
246
- short_answer: string;
247
- requirement_id: string;
248
- active?: string;
249
- }
250
- export interface IFileAnswer {
251
- file_key: string;
252
- file_name: string;
253
- url?: string;
254
- file_url?: string;
255
- }
256
- export interface ICommment {
257
- answer_grade: number;
258
- details?: GradingDetail[];
259
- file_grade: number;
260
- grading_file?: IFileAnswer;
261
- id: string;
262
- requirement_id: string;
263
- }
264
- export interface IShowExhibit {
265
- id?: string;
266
- index?: number;
267
- name?: string;
268
- setShowExhibit?: any;
269
- description?: string;
270
- left?: string;
271
- top?: string;
272
- files?: IFile[];
273
- }
@@ -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,22 +0,0 @@
1
- import React from 'react';
2
- import { Control } from 'react-hook-form';
3
- export declare const DEFAULT_EDITOR_VALUE = "";
4
- interface Props {
5
- name: string;
6
- control: Control<any>;
7
- defaultValue?: any;
8
- className?: string;
9
- height?: number;
10
- skeleton?: boolean;
11
- math?: boolean;
12
- placeholder?: string;
13
- required?: boolean;
14
- label?: string;
15
- labelClass?: string;
16
- guideline?: string[];
17
- handleChange?: any;
18
- disabled?: boolean;
19
- key?: number | string;
20
- }
21
- declare const HookFormEditor: ({ name, control, defaultValue, className, height, skeleton, math, placeholder, label, required, guideline, handleChange, disabled, key }: Props) => React.JSX.Element;
22
- export default HookFormEditor;
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- onChange: (...event: any[]) => void;
4
- valueText?: string;
5
- className?: string;
6
- height?: number;
7
- math?: boolean;
8
- placeholder?: string;
9
- getContent?: (e: string) => void;
10
- acceptFiles?: {
11
- type: string;
12
- size: number;
13
- }[];
14
- disabled?: boolean;
15
- key?: number | string;
16
- }
17
- declare const TinyEditor: ({ onChange, valueText, className, height, math, placeholder, getContent, acceptFiles, disabled, key }: IProps) => React.JSX.Element;
18
- export default TinyEditor;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- interface ClickOutsideProps {
3
- ref: React.RefObject<HTMLElement>;
4
- callback: () => void;
5
- }
6
- declare const useClickOutside: ({ ref, callback }: ClickOutsideProps) => void;
7
- export default useClickOutside;
@@ -1,3 +0,0 @@
1
- /** Khớp breakpoint mobile của comment-list-v2 (max-width: 768px) */
2
- export declare const COMMENT_MOBILE_MEDIA = "(max-width: 767px)";
3
- export declare const useCommentMobileView: () => boolean;
@@ -1,4 +0,0 @@
1
- export declare const MAX_LIST_QUESTION_COLUMNS = 25;
2
- /** Số ô câu hỏi mỗi hàng theo viewport; màn lớn nhất tối đa 25. */
3
- export declare const getListQuestionColumnsPerRow: (width: number) => number;
4
- export declare const useListQuestionColumnsPerRow: () => number;
@@ -1,5 +0,0 @@
1
- declare const useMousePosition: () => {
2
- x: null;
3
- y: null;
4
- };
5
- export default useMousePosition;
@@ -1,17 +0,0 @@
1
- export declare const useTailwindBreakpoint: ({ isMktInApp }?: {
2
- isMktInApp?: boolean | undefined;
3
- }) => {
4
- isAlwaysShowSidebar: boolean;
5
- isShowMenuContent: boolean;
6
- breakpoint: "base" | "xl" | "lg" | "md" | "sm" | "2xl" | "3xl" | "4xl" | "xl-middle" | "md-middle";
7
- isMobileView: boolean;
8
- isTabletView: boolean;
9
- isLargeDesktopView: boolean;
10
- is4XLView: boolean;
11
- is3XLView: boolean;
12
- is2XLView: boolean;
13
- isXLMiddleView: boolean;
14
- isMDMiddleView: boolean;
15
- isDesktopView: boolean;
16
- isShortScreen: boolean;
17
- };
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export declare const CloseIcon: ({ className }: {
3
- className?: string | undefined;
4
- }) => React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const UploadIcon: () => React.JSX.Element;