touchstudy-core 0.1.195 → 0.1.196

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 (115) hide show
  1. package/dist/add-ts-nocheck.js +33 -0
  2. package/dist/alert-circle-fill~CSSkoNUz.svg +3 -0
  3. package/dist/calendar_fill~zEgxFwDs.svg +4 -0
  4. package/dist/check-circle_fill~bbGHfKpz.svg +3 -0
  5. package/dist/checked-circle_fill~KLGxfRpW.svg +3 -0
  6. package/dist/clock_fill~mcRclYYO.svg +3 -0
  7. package/dist/close-circle_fill~PRVaHJUQ.svg +3 -0
  8. package/dist/components/Chats/ChatContainer.d.ts +5 -1
  9. package/dist/components/Chats/components/CanvasOverlay.d.ts +11 -0
  10. package/dist/components/Chats/components/InputChat.d.ts +8 -2
  11. package/dist/components/Chats/components/SketchDialog/BgColorTool.d.ts +8 -0
  12. package/dist/components/Chats/components/SketchDialog/BgImgAlignTool.d.ts +10 -0
  13. package/dist/components/Chats/components/SketchDialog/BgImgAlignToolList.d.ts +9 -0
  14. package/dist/components/Chats/components/SketchDialog/BgImgTool.d.ts +13 -0
  15. package/dist/components/Chats/components/SketchDialog/CanvasOverlay.d.ts +11 -0
  16. package/dist/components/Chats/components/SketchDialog/ColorPicker.d.ts +8 -0
  17. package/dist/components/Chats/components/SketchDialog/EraserTool.d.ts +9 -0
  18. package/dist/components/Chats/components/SketchDialog/PencilTool.d.ts +11 -0
  19. package/dist/components/Chats/components/SketchDialog/WidthSlider.d.ts +7 -0
  20. package/dist/components/Chats/components/SketchDialog/index.d.ts +9 -0
  21. package/dist/components/Chats/components/SketchDialog.d.ts +7 -0
  22. package/dist/components/Chats/configs/constants.d.ts +8 -1
  23. package/dist/components/Chats/configs/types.d.ts +2 -0
  24. package/dist/components/Chats/hooks/useChatContainer.d.ts +6 -2
  25. package/dist/components/Chats/styles/styles.d.ts +42 -0
  26. package/dist/components/CkEditor/CkEditor.d.ts +10 -0
  27. package/dist/components/CkEditor/config.d.ts +19 -0
  28. package/dist/components/CkEditor/index.d.ts +2 -0
  29. package/dist/components/Print/hooks/useDeviceType.d.ts +4 -0
  30. package/dist/containers/ExamResult/components/GradesByTerritory/Textbook.d.ts +12 -0
  31. package/dist/containers/ExamResult/components/GradesByTerritory/index.d.ts +12 -0
  32. package/dist/containers/ExamResult/components/ProtractedProblem/index.d.ts +10 -0
  33. package/dist/containers/ExamResult/components/TrickyProblem/Textbook.d.ts +10 -0
  34. package/dist/containers/ExamResult/components/TrickyProblem/index.d.ts +11 -0
  35. package/dist/containers/ExamResult/components/Vulnerable/Textbook.d.ts +11 -0
  36. package/dist/containers/ExamResult/components/Vulnerable/index.d.ts +12 -0
  37. package/dist/containers/Exams/components/ArticleBlock.d.ts +20 -0
  38. package/dist/containers/Exams/components/ArticleGroupView.d.ts +33 -0
  39. package/dist/containers/Exams/components/QuestionBlock.d.ts +19 -0
  40. package/dist/containers/Exams/components/QuestionCompareType.d.ts +9 -0
  41. package/dist/containers/Exams/components/QuestionGroupBlock.d.ts +28 -0
  42. package/dist/containers/Exams/components/QuestionGroupBlockBody.d.ts +23 -0
  43. package/dist/containers/Exams/components/QuestionOrderName.d.ts +9 -0
  44. package/dist/containers/Exams/components/QuestionShortInput.d.ts +13 -0
  45. package/dist/containers/Exams/components/QuestionView.d.ts +20 -0
  46. package/dist/containers/Exams/hooks/useOverallChartContainer.d.ts +9 -0
  47. package/dist/containers/Exams/styles/styles.d.ts +6 -0
  48. package/dist/containers/Notes/components/TeacherAdminNoteDialog.d.ts +4 -0
  49. package/dist/containers/PreparedTextbook/components/Article.d.ts +20 -0
  50. package/dist/containers/PreparedTextbook/components/ArticleBlock.d.ts +20 -0
  51. package/dist/containers/PreparedTextbook/components/Chapter.d.ts +19 -0
  52. package/dist/containers/PreparedTextbook/components/QuestionBlock.d.ts +19 -0
  53. package/dist/containers/PreparedTextbook/components/QuestionCompareType.d.ts +8 -0
  54. package/dist/containers/PreparedTextbook/components/QuestionGroupBlock.d.ts +28 -0
  55. package/dist/containers/PreparedTextbook/components/QuestionGroupBlockBody.d.ts +24 -0
  56. package/dist/containers/PreparedTextbook/components/QuestionOrderName.d.ts +9 -0
  57. package/dist/containers/PreparedTextbook/components/QuestionScore.d.ts +9 -0
  58. package/dist/containers/PreparedTextbook/components/QuestionShortInput.d.ts +12 -0
  59. package/dist/containers/PreparedTextbook/components/QuestionTypeFilter.d.ts +10 -0
  60. package/dist/containers/PreparedTextbook/components/SubChapter.d.ts +18 -0
  61. package/dist/containers/PreparedTextbook/components/TextbookOwners.d.ts +13 -0
  62. package/dist/containers/PreparedTextbook/hooks/useExamDetailView.d.ts +30 -0
  63. package/dist/containers/PreparedTextbook/hooks/useTextbookOptions.d.ts +15 -0
  64. package/dist/containers/PreparedTextbook/styles/styles.d.ts +6 -0
  65. package/dist/containers/PreparedTextbook/views/PreparedTextbook.d.ts +8 -0
  66. package/dist/containers/StudentInfoDrawer/components/Attendance/AttedanceFormDialog.d.ts +13 -0
  67. package/dist/containers/StudentInfoDrawer/components/AttendanceCourseTable.d.ts +15 -0
  68. package/dist/containers/StudentInfoDrawer/components/CourseAttendanceItem.d.ts +10 -0
  69. package/dist/containers/StudentInfoDrawer/components/CourseAttendanceList.d.ts +4 -0
  70. package/dist/containers/StudentInfoDrawer/components/DrawerAttendanceTab.d.ts +4 -0
  71. package/dist/containers/StudentInfoDrawer/components/DrawerExamResultTab.d.ts +9 -0
  72. package/dist/containers/StudentInfoDrawer/components/DrawerNoteTab.d.ts +8 -0
  73. package/dist/containers/StudentInfoDrawer/components/DrawerTextbookResultTab.d.ts +7 -0
  74. package/dist/containers/StudentInfoDrawer/components/Exam/ExanResultList.d.ts +4 -0
  75. package/dist/containers/StudentInfoDrawer/components/ExamResultDrawer.d.ts +13 -0
  76. package/dist/containers/StudentInfoDrawer/components/ExamResultItem.d.ts +10 -0
  77. package/dist/containers/StudentInfoDrawer/components/ExanResultList.d.ts +4 -0
  78. package/dist/containers/StudentInfoDrawer/components/LessonTooltip.d.ts +8 -0
  79. package/dist/containers/StudentInfoDrawer/components/NoteDrawer.d.ts +13 -0
  80. package/dist/containers/StudentInfoDrawer/components/TextbookResultItem.d.ts +10 -0
  81. package/dist/containers/StudentInfoDrawer/components/TextbookResultList.d.ts +4 -0
  82. package/dist/containers/Textbooks/components/ChapterBox.d.ts +4 -0
  83. package/dist/containers/Textbooks/configs/interfaces.d.ts +21 -0
  84. package/dist/containers/Textbooks/hooks/useExam.d.ts +16 -0
  85. package/dist/containers/Textbooks/hooks/useTextbookDetail.d.ts +55 -0
  86. package/dist/containers/Textbooks/views/TextbookDetail.d.ts +15 -0
  87. package/dist/iconPerson~bfprHOKm.svg +4 -0
  88. package/dist/index.js +1001 -139
  89. package/dist/index.js.map +1 -1
  90. package/dist/index.modern.js +1006 -144
  91. package/dist/index.modern.js.map +1 -1
  92. package/dist/layouts/HeaderLink.d.ts +8 -0
  93. package/dist/layouts/TimerCountItem.d.ts +10 -0
  94. package/dist/layouts/TimerDialog.d.ts +9 -0
  95. package/dist/layouts/TimerDropdown.d.ts +3 -0
  96. package/dist/layouts/TimerItem.d.ts +11 -0
  97. package/dist/layouts/configs/constants.d.ts +12 -0
  98. package/dist/layouts/hooks/useCountDownTimer.d.ts +9 -0
  99. package/dist/layouts/partials/AlarmClock.d.ts +10 -0
  100. package/dist/layouts/partials/AlarmClockPanel.d.ts +10 -0
  101. package/dist/layouts/partials/AlarmClockTab.d.ts +10 -0
  102. package/dist/layouts/partials/CircularTimer/index.d.ts +11 -0
  103. package/dist/layouts/partials/CircularTimer/tick.d.ts +9 -0
  104. package/dist/layouts/partials/CircularTimer.d.ts +11 -0
  105. package/dist/layouts/partials/StudyTimerTab.d.ts +12 -0
  106. package/dist/layouts/partials/TimerCountItem.d.ts +10 -0
  107. package/dist/layouts/partials/TimerItem.d.ts +11 -0
  108. package/dist/layouts/partials/TimerTabPanel.d.ts +8 -0
  109. package/dist/layouts/partials/TimerTabs.d.ts +7 -0
  110. package/dist/utils/enums/subject.d.ts +6 -0
  111. package/dist/utils/functions/checkSuperUrl.d.ts +1 -0
  112. package/dist/utils/functions/isRealTabletOrMobileDevice.d.ts +1 -0
  113. package/dist/utils/types/subjects.d.ts +19 -0
  114. package/package.json +2 -2
  115. /package/dist/utils/types/{questionTypeFilter.d.ts → QuestionTypeFilter.d.ts} +0 -0
@@ -0,0 +1,33 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+
4
+ // Recursively find all .ts and .tsx files in the src directory
5
+ const directoryPath = path.join(__dirname, 'src'); // Adjust to your src directory
6
+
7
+ function addTsNoCheck(filePath) {
8
+ const fileContent = fs.readFileSync(filePath, 'utf-8');
9
+
10
+ // Add // @ts-nocheck only if it's not already added
11
+ if (!fileContent.startsWith('// @ts-nocheck')) {
12
+ const newContent = `// @ts-nocheck\n${fileContent}`;
13
+ fs.writeFileSync(filePath, newContent, 'utf-8');
14
+ console.log(`Added // @ts-nocheck to ${filePath}`);
15
+ }
16
+ }
17
+
18
+ function walkDirectory(dir) {
19
+ const files = fs.readdirSync(dir);
20
+
21
+ files.forEach(file => {
22
+ const fullPath = path.join(dir, file);
23
+ const stat = fs.statSync(fullPath);
24
+
25
+ if (stat.isDirectory()) {
26
+ walkDirectory(fullPath); // Recursively walk directories
27
+ } else if (fullPath.endsWith('.ts') || fullPath.endsWith('.tsx')) {
28
+ addTsNoCheck(fullPath); // Add // @ts-nocheck to each TypeScript file
29
+ }
30
+ });
31
+ }
32
+
33
+ walkDirectory(directoryPath);
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8 1.5C4.41594 1.5 1.5 4.41594 1.5 8C1.5 11.5841 4.41594 14.5 8 14.5C11.5841 14.5 14.5 11.5841 14.5 8C14.5 4.41594 11.5841 1.5 8 1.5ZM8 11.4972C7.87639 11.4972 7.75555 11.4605 7.65277 11.3919C7.54999 11.3232 7.46988 11.2256 7.42258 11.1114C7.37527 10.9972 7.36289 10.8715 7.38701 10.7503C7.41112 10.629 7.47065 10.5177 7.55806 10.4302C7.64547 10.3428 7.75683 10.2833 7.87807 10.2592C7.99931 10.2351 8.12497 10.2475 8.23918 10.2948C8.35338 10.3421 8.45099 10.4222 8.51967 10.525C8.58834 10.6277 8.625 10.7486 8.625 10.8722C8.625 11.0379 8.55915 11.1969 8.44194 11.3141C8.32473 11.4313 8.16576 11.4972 8 11.4972ZM8.67875 5.21125L8.49938 9.02375C8.49938 9.15636 8.4467 9.28354 8.35293 9.3773C8.25916 9.47107 8.13198 9.52375 7.99937 9.52375C7.86677 9.52375 7.73959 9.47107 7.64582 9.3773C7.55205 9.28354 7.49937 9.15636 7.49937 9.02375L7.32 5.21313V5.21156C7.31607 5.11998 7.33071 5.02854 7.36305 4.94277C7.39539 4.85699 7.44475 4.77865 7.50817 4.71245C7.57158 4.64626 7.64774 4.59358 7.73205 4.55759C7.81636 4.5216 7.90708 4.50305 7.99875 4.50305C8.09042 4.50305 8.18114 4.5216 8.26545 4.55759C8.34976 4.59358 8.42592 4.64626 8.48933 4.71245C8.55275 4.77865 8.60211 4.85699 8.63445 4.94277C8.66679 5.02854 8.68143 5.11998 8.6775 5.21156L8.67875 5.21125Z" fill="#FEAF06"/>
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M15 3.99998C15 3.46955 14.7893 2.96084 14.4142 2.58577C14.0391 2.2107 13.5304 1.99998 13 1.99998H12.5V1.51405C12.5 1.24498 12.2931 1.01405 12.0241 1.00061C11.9565 0.997353 11.8889 1.00785 11.8255 1.03148C11.762 1.05511 11.7041 1.09136 11.6551 1.13805C11.6061 1.18475 11.5671 1.2409 11.5404 1.30311C11.5138 1.36532 11.5 1.4323 11.5 1.49998V1.99998H4.5V1.51405C4.5 1.24498 4.29313 1.01405 4.02406 1.00061C3.95646 0.997353 3.8889 1.00785 3.82547 1.03148C3.76204 1.05511 3.70407 1.09136 3.65508 1.13805C3.60608 1.18475 3.56707 1.2409 3.54041 1.30311C3.51375 1.36532 3.50001 1.4323 3.5 1.49998V1.99998H3C2.46957 1.99998 1.96086 2.2107 1.58579 2.58577C1.21071 2.96084 1 3.46955 1 3.99998V4.37498C1 4.40814 1.01317 4.43993 1.03661 4.46337C1.06005 4.48682 1.09185 4.49998 1.125 4.49998H14.875C14.9082 4.49998 14.9399 4.48682 14.9634 4.46337C14.9868 4.43993 15 4.40814 15 4.37498V3.99998Z" fill="#97A1AF"/>
3
+ <path d="M1 13C1 13.5304 1.21071 14.0391 1.58579 14.4142C1.96086 14.7893 2.46957 15 3 15H13C13.5304 15 14.0391 14.7893 14.4142 14.4142C14.7893 14.0391 15 13.5304 15 13V5.625C15 5.59185 14.9868 5.56005 14.9634 5.53661C14.9399 5.51317 14.9082 5.5 14.875 5.5H1.125C1.09185 5.5 1.06005 5.51317 1.03661 5.53661C1.01317 5.56005 1 5.59185 1 5.625V13Z" fill="#97A1AF"/>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M7 0.5C3.41594 0.5 0.5 3.41594 0.5 7C0.5 10.5841 3.41594 13.5 7 13.5C10.5841 13.5 13.5 10.5841 13.5 7C13.5 3.41594 10.5841 0.5 7 0.5ZM10.3828 4.82156L6.18281 9.82156C6.13674 9.87644 6.07941 9.92077 6.01471 9.95156C5.95001 9.98234 5.87945 9.99886 5.80781 10H5.79938C5.72929 9.99997 5.66 9.98522 5.59599 9.95668C5.53198 9.92815 5.47468 9.88648 5.42781 9.83438L3.62781 7.83438C3.5821 7.78589 3.54654 7.72876 3.52322 7.66633C3.4999 7.60391 3.4893 7.53745 3.49203 7.47087C3.49477 7.40429 3.51078 7.33892 3.53914 7.27862C3.56749 7.21831 3.60761 7.16429 3.65715 7.11971C3.70668 7.07514 3.76462 7.04091 3.82757 7.01905C3.89052 6.99719 3.95721 6.98813 4.02371 6.9924C4.09021 6.99668 4.15518 7.01421 4.21481 7.04396C4.27444 7.0737 4.32752 7.11507 4.37094 7.16562L5.78625 8.73812L9.61719 4.17844C9.70312 4.07909 9.8247 4.01754 9.95564 4.00711C10.0866 3.99668 10.2164 4.03819 10.317 4.12268C10.4175 4.20716 10.4808 4.32784 10.4931 4.45862C10.5055 4.5894 10.4658 4.71977 10.3828 4.82156Z" fill="#1EE288"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8 1.75C4.41594 1.75 1.5 4.66594 1.5 8.25C1.5 11.8341 4.41594 14.75 8 14.75C11.5841 14.75 14.5 11.8341 14.5 8.25C14.5 4.66594 11.5841 1.75 8 1.75ZM11.3828 6.07156L7.18281 11.0716C7.13674 11.1264 7.07941 11.1708 7.01471 11.2016C6.95001 11.2323 6.87945 11.2489 6.80781 11.25H6.79938C6.72929 11.25 6.66 11.2352 6.59599 11.2067C6.53198 11.1782 6.47468 11.1365 6.42781 11.0844L4.62781 9.08438C4.5821 9.03589 4.54654 8.97876 4.52322 8.91633C4.4999 8.85391 4.4893 8.78745 4.49203 8.72087C4.49477 8.65429 4.51078 8.58892 4.53914 8.52862C4.56749 8.46831 4.60761 8.41429 4.65715 8.36971C4.70668 8.32514 4.76463 8.29091 4.82757 8.26905C4.89052 8.24719 4.95721 8.23813 5.02371 8.2424C5.09021 8.24668 5.15518 8.26421 5.21481 8.29396C5.27444 8.3237 5.32752 8.36507 5.37094 8.41562L6.78625 9.98812L10.6172 5.42844C10.7031 5.32909 10.8247 5.26754 10.9556 5.25711C11.0866 5.24668 11.2164 5.28819 11.317 5.37268C11.4175 5.45717 11.4808 5.57784 11.4931 5.70862C11.5055 5.8394 11.4658 5.96977 11.3828 6.07156Z" fill="#97A1AF"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M7 0.25C3.41031 0.25 0.5 3.16031 0.5 6.75C0.5 10.3397 3.41031 13.25 7 13.25C10.5897 13.25 13.5 10.3397 13.5 6.75C13.5 3.16031 10.5897 0.25 7 0.25ZM10 7.75H7C6.86739 7.75 6.74021 7.69732 6.64645 7.60355C6.55268 7.50979 6.5 7.38261 6.5 7.25V2.75C6.5 2.61739 6.55268 2.49021 6.64645 2.39645C6.74021 2.30268 6.86739 2.25 7 2.25C7.13261 2.25 7.25979 2.30268 7.35355 2.39645C7.44732 2.49021 7.5 2.61739 7.5 2.75V6.75H10C10.1326 6.75 10.2598 6.80268 10.3536 6.89645C10.4473 6.99021 10.5 7.11739 10.5 7.25C10.5 7.38261 10.4473 7.50979 10.3536 7.60355C10.2598 7.69732 10.1326 7.75 10 7.75Z" fill="#97A1AF"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8 1.5C4.41594 1.5 1.5 4.41594 1.5 8C1.5 11.5841 4.41594 14.5 8 14.5C11.5841 14.5 14.5 11.5841 14.5 8C14.5 4.41594 11.5841 1.5 8 1.5ZM10.3534 9.64656C10.4018 9.69253 10.4405 9.74772 10.4672 9.80888C10.494 9.87003 10.5082 9.93592 10.509 10.0027C10.5099 10.0694 10.4974 10.1356 10.4722 10.1974C10.4471 10.2593 10.4098 10.3154 10.3626 10.3626C10.3154 10.4098 10.2593 10.4471 10.1974 10.4722C10.1356 10.4974 10.0694 10.5099 10.0027 10.509C9.93592 10.5082 9.87003 10.494 9.80888 10.4672C9.74772 10.4405 9.69253 10.4018 9.64656 10.3534L8 8.70719L6.35344 10.3534C6.25891 10.4432 6.13303 10.4926 6.00265 10.4909C5.87227 10.4892 5.7477 10.4367 5.6555 10.3445C5.5633 10.2523 5.51076 10.1277 5.50909 9.99735C5.50742 9.86697 5.55675 9.74109 5.64656 9.64656L7.29281 8L5.64656 6.35344C5.55675 6.25891 5.50742 6.13303 5.50909 6.00265C5.51076 5.87227 5.5633 5.7477 5.6555 5.6555C5.7477 5.5633 5.87227 5.51076 6.00265 5.50909C6.13303 5.50742 6.25891 5.55675 6.35344 5.64656L8 7.29281L9.64656 5.64656C9.74109 5.55675 9.86697 5.50742 9.99735 5.50909C10.1277 5.51076 10.2523 5.5633 10.3445 5.6555C10.4367 5.7477 10.4892 5.87227 10.4909 6.00265C10.4926 6.13303 10.4432 6.25891 10.3534 6.35344L8.70719 8L10.3534 9.64656Z" fill="#DB4D4D"/>
3
+ </svg>
@@ -2,6 +2,7 @@ import { IChatListProps } from "./components/ChatList";
2
2
  import { IInputChatProps } from "./components/InputChat";
3
3
  import { IChatHeaderProps } from "./components/ChatHeader";
4
4
  import { FC } from "react";
5
+ import { Role } from "../../utils";
5
6
  export interface IChatContainerProps {
6
7
  chatHeaderProps: IChatHeaderProps;
7
8
  chatListProps: IChatListProps;
@@ -14,5 +15,8 @@ export interface IChatContainerProps {
14
15
  onReachBottom?: () => void;
15
16
  onEndScrollToEnd?: () => void;
16
17
  }
17
- declare const ChatContainer: FC<IChatContainerProps>;
18
+ interface Props extends IChatContainerProps {
19
+ role: Role;
20
+ }
21
+ declare const ChatContainer: FC<Props>;
18
22
  export default ChatContainer;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ open: boolean;
4
+ width: number;
5
+ height: number;
6
+ size: number;
7
+ color: string;
8
+ isEraser: boolean;
9
+ }
10
+ declare const CanvasOverlay: FC<Props>;
11
+ export default CanvasOverlay;
@@ -1,14 +1,20 @@
1
- import { FC } from "react";
1
+ import { FC, MouseEvent } from "react";
2
+ import { Role } from "../../../utils";
2
3
  export interface IInputChatProps {
4
+ isSending: boolean;
3
5
  text: string;
6
+ drawPath?: any;
4
7
  onSubmit: () => void;
5
8
  onChangeInput: (text: string) => void;
6
9
  isCompleted?: boolean;
7
10
  handleUploadImage: (file: File) => void;
11
+ onSaveCanvas: (data: string, drawPath: any) => void;
8
12
  selectedFile?: string | null;
9
- handleDeleteSelectedImage: () => void;
13
+ handleDeleteSelectedImage: (e: MouseEvent<HTMLButtonElement>) => void;
14
+ onClearCanvas: () => void;
10
15
  }
11
16
  interface Props extends IInputChatProps {
17
+ role: Role;
12
18
  }
13
19
  declare const InputChat: FC<Props>;
14
20
  export default InputChat;
@@ -0,0 +1,8 @@
1
+ import { ChangeEvent, FC, RefObject } from "react";
2
+ interface Props {
3
+ inputRef: RefObject<HTMLInputElement>;
4
+ onPick: () => void;
5
+ onChange: (e: ChangeEvent<HTMLInputElement>) => void;
6
+ }
7
+ declare const BgColorTool: FC<Props>;
8
+ export default BgColorTool;
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ import { Align, Axis } from "../../configs/types";
3
+ interface Props {
4
+ aspect: string;
5
+ axis: Axis;
6
+ align: Align;
7
+ onAlignChange: (axis: Axis, align: Align) => void;
8
+ }
9
+ declare const BgImgAlignTool: FC<Props>;
10
+ export default BgImgAlignTool;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { Align, Axis } from "../../configs/types";
3
+ interface Props {
4
+ aspect: string;
5
+ axis: Axis;
6
+ onAlignChange: (axis: Axis, align: Align) => void;
7
+ }
8
+ declare const BgImgAlignToolList: FC<Props>;
9
+ export default BgImgAlignToolList;
@@ -0,0 +1,13 @@
1
+ import { ChangeEvent, FC, RefObject } from "react";
2
+ import { Align, Axis } from "../../configs/types";
3
+ interface Props {
4
+ inputRef: RefObject<HTMLInputElement>;
5
+ value?: string | null;
6
+ apsect: string;
7
+ onPick: () => void;
8
+ onClear: () => void;
9
+ onChange: (e: ChangeEvent<HTMLInputElement>) => void;
10
+ onAspectChange: (axis?: Axis, align?: Align) => void;
11
+ }
12
+ declare const BgImgTool: FC<Props>;
13
+ export default BgImgTool;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ open: boolean;
4
+ width: number;
5
+ height: number;
6
+ size: number;
7
+ color: string;
8
+ isEraser: boolean;
9
+ }
10
+ declare const CanvasOverlay: FC<Props>;
11
+ export default CanvasOverlay;
@@ -0,0 +1,8 @@
1
+ import { ChangeEvent, FC, RefObject } from "react";
2
+ interface Props {
3
+ inputRef: RefObject<HTMLInputElement>;
4
+ disabled?: boolean;
5
+ onChange: (e: ChangeEvent<HTMLInputElement>) => void;
6
+ }
7
+ declare const ColorPicker: FC<Props>;
8
+ export default ColorPicker;
@@ -0,0 +1,9 @@
1
+ import { ChangeEvent, FC } from "react";
2
+ interface Props {
3
+ selected: boolean;
4
+ width: number;
5
+ onSelect: () => void;
6
+ onChangeWidth: (e: ChangeEvent<HTMLInputElement>) => void;
7
+ }
8
+ declare const EraserTool: FC<Props>;
9
+ export default EraserTool;
@@ -0,0 +1,11 @@
1
+ import { ChangeEvent, FC, RefObject } from "react";
2
+ interface Props {
3
+ inputRef: RefObject<HTMLInputElement>;
4
+ selected: boolean;
5
+ width: number;
6
+ onSelect: () => void;
7
+ onChangeColor: (e: ChangeEvent<HTMLInputElement>) => void;
8
+ onChangeWidth: (e: ChangeEvent<HTMLInputElement>) => void;
9
+ }
10
+ declare const PencilTool: FC<Props>;
11
+ export default PencilTool;
@@ -0,0 +1,7 @@
1
+ import { ChangeEvent, FC } from "react";
2
+ interface Props {
3
+ value: number;
4
+ onChange: (e: ChangeEvent<HTMLInputElement>) => void;
5
+ }
6
+ declare const WidthSlider: FC<Props>;
7
+ export default WidthSlider;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ interface SketchDialogProps {
3
+ open: boolean;
4
+ drawPath?: any;
5
+ onSave: (data: string, drawPath: any) => void;
6
+ onClose: () => void;
7
+ }
8
+ declare const SketchDialog: FC<SketchDialogProps>;
9
+ export default SketchDialog;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ interface SketchDialogProps {
3
+ open: boolean;
4
+ handleClose: () => void;
5
+ }
6
+ declare const SketchDialog: FC<SketchDialogProps>;
7
+ export default SketchDialog;
@@ -1,4 +1,4 @@
1
- import { ConversationFilter, MessageFilter } from "./types";
1
+ import { Align, ConversationFilter, MessageFilter } from "./types";
2
2
  export declare enum ExamStatus {
3
3
  Default = "Default",
4
4
  Pending = "Pending",
@@ -12,3 +12,10 @@ export declare enum Roles {
12
12
  }
13
13
  export declare const CONVERSATION_DEFAULT_FILTER: ConversationFilter;
14
14
  export declare const MESSAGE_DEFAULT_FILTER: MessageFilter;
15
+ export declare const AlignList: Align[];
16
+ export declare const DEFAULT_STROKE_COLOR = "#000000";
17
+ export declare const DEFAULT_BG_COLOR = "#FFFFFF";
18
+ export declare const DEFAULT_STROKE_WIDTH = 4;
19
+ export declare const DEFAULT_ERASER_WIDTH = 10;
20
+ export declare const CANVAS_WIDTH = 800;
21
+ export declare const CANVAS_HEIGHT = 600;
@@ -177,3 +177,5 @@ export declare enum MessageStatus {
177
177
  Sending = "Sending...",
178
178
  SentError = "Sent fail, Retry"
179
179
  }
180
+ export declare type Align = "Min" | "Max" | "Mid";
181
+ export declare type Axis = "x" | "y";
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { MouseEvent } from "react";
2
2
  import { ConversationsResponse, MessageRequest, StudentsConversationResponse } from "../configs/types";
3
3
  import { IChatItemProps } from "../components/ChatItem";
4
4
  interface Props {
@@ -29,12 +29,16 @@ declare const useChatContainer: (props: Props) => {
29
29
  handleDeleteMessage: (conversationId: number, id: number, callback: any) => Promise<void>;
30
30
  };
31
31
  inputProps: {
32
+ isSending: boolean;
33
+ drawPath: any;
32
34
  selectedFile: string | null;
33
35
  text: string;
34
36
  onChangeInput: (text: string) => void;
35
37
  onSubmit: () => Promise<void>;
36
- handleDeleteSelectedImage: () => void;
38
+ handleDeleteSelectedImage: (e: MouseEvent<HTMLButtonElement>) => void;
37
39
  handleUploadImage: (file: File) => Promise<void>;
40
+ onSaveCanvas: (data: string, drawPath: any) => Promise<void>;
41
+ onClearCanvas: () => void;
38
42
  isCompleted: boolean | undefined;
39
43
  };
40
44
  isScrollToEnd: boolean;
@@ -0,0 +1,42 @@
1
+ export declare const ToolContainerStyles: {
2
+ display: string;
3
+ gap: number;
4
+ flexWrap: string;
5
+ justifyContent: {
6
+ lg: string;
7
+ sx: string;
8
+ };
9
+ alignItems: string;
10
+ px: number;
11
+ pb: number;
12
+ pt: number;
13
+ width: string;
14
+ overflowX: string;
15
+ overflowY: string;
16
+ };
17
+ export declare const CanvasContainerStyles: {
18
+ position: string;
19
+ flexGrow: number;
20
+ display: string;
21
+ justifyContent: {
22
+ lg: string;
23
+ sx: string;
24
+ };
25
+ };
26
+ export declare const CanvasWrapperStyles: {
27
+ flexGrow: number;
28
+ overflow: string;
29
+ width: string;
30
+ height: string;
31
+ display: string;
32
+ justifyContent: {
33
+ lg: string;
34
+ sx: string;
35
+ };
36
+ padding: string;
37
+ };
38
+ export declare const IconButtonStyles: {
39
+ width: string;
40
+ height: string;
41
+ background: string;
42
+ };
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ ref?: any;
4
+ value: string;
5
+ onChange: any;
6
+ option?: any;
7
+ disabled: boolean;
8
+ }
9
+ declare const CkEditor: ({ ref, value, onChange, option, disabled }: Props) => React.JSX.Element;
10
+ export default CkEditor;
@@ -0,0 +1,19 @@
1
+ export declare const config: {
2
+ height: number;
3
+ allowedContent: boolean;
4
+ toolbar: (string | string[] | {
5
+ name: string;
6
+ groups: string[];
7
+ items: string[];
8
+ } | {
9
+ name: string;
10
+ items: string[];
11
+ groups?: undefined;
12
+ } | {
13
+ name: string;
14
+ groups?: undefined;
15
+ items?: undefined;
16
+ })[];
17
+ filebrowserImageUploadUrl: string;
18
+ filebrowserUploadUrl: string;
19
+ };
@@ -0,0 +1,2 @@
1
+ import CkEditor from "./CkEditor";
2
+ export { CkEditor };
@@ -0,0 +1,4 @@
1
+ declare const useDeviceType: () => {
2
+ isTablet: boolean;
3
+ };
4
+ export default useDeviceType;
@@ -0,0 +1,12 @@
1
+ import { FC } from "react";
2
+ import { ProblemKey, TextbookResult } from "../../configs/types";
3
+ import { CategoryResponse } from "../../../../utils/types/examResults";
4
+ interface Props {
5
+ data: CategoryResponse[];
6
+ openProblem?: ProblemKey;
7
+ changeOpen?: (key?: ProblemKey) => void;
8
+ resultData: TextbookResult;
9
+ isMyStoryStudent?: boolean;
10
+ }
11
+ declare const TextbookGradesByTerritory: FC<Props>;
12
+ export default TextbookGradesByTerritory;
@@ -0,0 +1,12 @@
1
+ import { FC } from "react";
2
+ import { ProblemKey } from "../../configs/types";
3
+ import { CategoryResponse, ExamResult } from "../../../../utils/types/examResults";
4
+ interface Props {
5
+ data: CategoryResponse[];
6
+ openProblem?: ProblemKey;
7
+ changeOpen?: (key?: ProblemKey) => void;
8
+ resultData: ExamResult;
9
+ isMyStoryStudent?: boolean;
10
+ }
11
+ declare const GradesByTerritory: FC<Props>;
12
+ export default GradesByTerritory;
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ import { LongTimeSpendQuestion, ProblemKey } from "../../configs/types";
3
+ interface Props {
4
+ data: LongTimeSpendQuestion[];
5
+ keyOpen: ProblemKey;
6
+ openProblem?: ProblemKey;
7
+ changeOpen?: (key?: ProblemKey) => void;
8
+ }
9
+ declare const ProtractedProblem: FC<Props>;
10
+ export default ProtractedProblem;
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ import { ProblemKey, TextbookResult } from "../../configs/types";
3
+ interface Props {
4
+ data?: TextbookResult;
5
+ keyOpen: ProblemKey;
6
+ openProblem?: ProblemKey;
7
+ changeOpen?: (key?: ProblemKey) => void;
8
+ }
9
+ declare const TextbookTrickyProblem: FC<Props>;
10
+ export default TextbookTrickyProblem;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ import { ProblemKey } from "../../configs/types";
3
+ import { ExamResult } from "../../../../utils/types/examResults";
4
+ interface Props {
5
+ data?: ExamResult;
6
+ keyOpen: ProblemKey;
7
+ openProblem?: ProblemKey;
8
+ changeOpen?: (key?: ProblemKey) => void;
9
+ }
10
+ declare const TrickyProblem: FC<Props>;
11
+ export default TrickyProblem;
@@ -0,0 +1,11 @@
1
+ import { FC } from "react";
2
+ import { ProblemKey, TextbookResult } from "../../configs/types";
3
+ interface Props {
4
+ keyOpen: ProblemKey;
5
+ data?: TextbookResult;
6
+ openProblem?: ProblemKey;
7
+ changeOpen?: (key?: ProblemKey) => void;
8
+ isMyStoryStudent?: boolean;
9
+ }
10
+ declare const TextbookVulnerable: FC<Props>;
11
+ export default TextbookVulnerable;
@@ -0,0 +1,12 @@
1
+ import { FC } from "react";
2
+ import { ProblemKey } from "../../configs/types";
3
+ import { CategoryResponse, ExamResult } from "../../../../utils/types/examResults";
4
+ interface Props {
5
+ keyOpen: ProblemKey;
6
+ data: ExamResult;
7
+ openProblem?: ProblemKey;
8
+ categories: CategoryResponse[];
9
+ changeOpen?: (key?: ProblemKey) => void;
10
+ }
11
+ declare const Vulnerable: FC<Props>;
12
+ export default Vulnerable;
@@ -0,0 +1,20 @@
1
+ import React, { PropsWithChildren } from "react";
2
+ import { FormikProps } from "formik";
3
+ import { ArticleRequest, ExamFormRequest } from "../../../utils/types";
4
+ interface Props extends PropsWithChildren, FormikProps<ExamFormRequest> {
5
+ isMath: boolean;
6
+ expandedIndex: number;
7
+ data: ArticleRequest;
8
+ path: string;
9
+ categories: any[];
10
+ isLoadingCategories: boolean;
11
+ optionKey: string;
12
+ disabled?: boolean;
13
+ onDuplicate: (data: ArticleRequest) => void;
14
+ onDelete: (text: string, confirmText: string, path: string, index: number) => void;
15
+ onOpenSubCategoryMenu: (path: string, id?: number) => void;
16
+ onOpenCategoryMenu: (path: string) => void;
17
+ onCloseCategoryMenu: () => void;
18
+ }
19
+ declare const _default: React.NamedExoticComponent<Props>;
20
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import { FC } from "react";
2
+ import { Subject } from "../../Select/Subject/configs/types";
3
+ import { Category } from "../../Select/Category/configs/types";
4
+ export interface ArticleGroupViewProps {
5
+ article: number;
6
+ questionCount: number;
7
+ categoryId?: any;
8
+ categoryList?: Category[];
9
+ answerCount: number;
10
+ questions: any;
11
+ isMultiple?: boolean;
12
+ isActive?: boolean;
13
+ isDisabled?: boolean;
14
+ selectedSubject?: Subject;
15
+ isDeletable?: boolean;
16
+ isTextbook?: boolean;
17
+ categoryOptions?: any[];
18
+ subCategoryOptions?: any[];
19
+ onChangeQuestionCount: (article: number, questionCount: number, answerCount: number) => void;
20
+ onChangeCategory: (article: number, categoryId: number) => void;
21
+ onChangeAnswerCount: (article: number, newAnswerCount: number, answerCount: number) => void;
22
+ onChangeCorrectAnswers: any;
23
+ onChangeScoreAnswer: (article: number, index: number, score: number) => void;
24
+ onDelete?: (article: number) => void;
25
+ onChangeTitle?: (article: number, questionCount: number, value: string) => void;
26
+ onChangeAuthor?: (article: number, questionCount: number, value: string) => void;
27
+ onChangeSubject?: (article: number, questionCount: number, value: string) => void;
28
+ onChangeType?: (article: number, questionCount: number, type: number) => void;
29
+ onChangeQuestionAnswerType?: (article: number, index: number, type: number) => void;
30
+ onChangeTextualAnswer?: (article: number, index: number, value: string) => void;
31
+ }
32
+ declare const ArticleGroupView: FC<ArticleGroupViewProps>;
33
+ export default ArticleGroupView;
@@ -0,0 +1,19 @@
1
+ import React, { PropsWithChildren } from "react";
2
+ import { SxProps, Theme } from "@mui/material";
3
+ import { FormikProps } from "formik";
4
+ import { ExamFormRequest, QuestionRequest } from "../../../utils/types";
5
+ interface Props extends PropsWithChildren, FormikProps<ExamFormRequest> {
6
+ data: QuestionRequest;
7
+ answerCount: number;
8
+ path: string;
9
+ isMath: boolean;
10
+ disabled?: boolean;
11
+ questionTitleStyle?: SxProps<Theme>;
12
+ optionKey: string;
13
+ isLoadingQuestionTypes: boolean;
14
+ questionTypes: any[];
15
+ onOpenQuestionTypeMenu: (key: string) => void;
16
+ onCloseQuestionTypeMenu: () => void;
17
+ }
18
+ declare const _default: React.NamedExoticComponent<Props>;
19
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import React, { FC } from "react";
2
+ import { QuestionAnswerType } from "../../../utils";
3
+ interface Props {
4
+ value: QuestionAnswerType;
5
+ disabled?: boolean;
6
+ onChange: (e: React.ChangeEvent<HTMLInputElement>, value: any) => void;
7
+ }
8
+ declare const QuestionCompareType: FC<Props>;
9
+ export default QuestionCompareType;
@@ -0,0 +1,28 @@
1
+ import { FC } from "react";
2
+ import { FormikProps } from "formik";
3
+ import { ExamFormRequest, QuestionGroupRequest } from "../../../utils/types";
4
+ interface Props extends FormikProps<ExamFormRequest> {
5
+ data: QuestionGroupRequest;
6
+ expandedIndex: number;
7
+ open: boolean;
8
+ paths: number[];
9
+ path: string;
10
+ isMath: boolean;
11
+ categories: any[];
12
+ isLoadingCategories: boolean;
13
+ isLoadingQuestionTypes: boolean;
14
+ questionTypes: any[];
15
+ optionKey: string;
16
+ disabled?: boolean;
17
+ onToggle: (index: number) => void;
18
+ onQuestionCountChange: (count: number, index: number) => void;
19
+ onDelete: (text: string, confirmText: string, path: string, index: number) => void;
20
+ onOpenSubCategoryMenu: (path: string, id?: number) => void;
21
+ onOpenCategoryMenu: (path: string) => void;
22
+ onCloseCategoryMenu: () => void;
23
+ onCopiedPrevQuestionGroup: (path: string, paths: number[]) => QuestionGroupRequest | undefined;
24
+ onOpenQuestionTypeMenu: (path: string, categoryId?: number, subCategoryId?: number) => void;
25
+ onCloseQuestionTypeMenu: () => void;
26
+ }
27
+ declare const QuestionGroupBlock: FC<Props>;
28
+ export default QuestionGroupBlock;
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ import { FormikProps } from "formik";
3
+ import { ExamFormRequest, QuestionGroupRequest } from "../../../utils/types";
4
+ interface Props extends FormikProps<ExamFormRequest> {
5
+ path: string;
6
+ isMath: boolean;
7
+ open: boolean;
8
+ data: QuestionGroupRequest;
9
+ isLoadingCategories: boolean;
10
+ optionKey: string;
11
+ categories: any[];
12
+ isLoadingQuestionTypes: boolean;
13
+ questionTypes: any[];
14
+ disabled?: boolean;
15
+ onDelete: (text: string, confirmText: string, path: string, index: number) => void;
16
+ onOpenSubCategoryMenu: (path: string, id?: number) => void;
17
+ onOpenCategoryMenu: (path: string) => void;
18
+ onCloseCategoryMenu: () => void;
19
+ onOpenQuestionTypeMenu: (path: string, categoryId?: number, subCategoryId?: number) => void;
20
+ onCloseQuestionTypeMenu: () => void;
21
+ }
22
+ declare const _default: React.NamedExoticComponent<Props>;
23
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { SxProps, Theme } from "@mui/material";
3
+ interface Props {
4
+ questionOrder: number;
5
+ isMath: boolean;
6
+ questionTitleStyle?: SxProps<Theme>;
7
+ }
8
+ declare const QuestionOrderName: FC<Props>;
9
+ export default QuestionOrderName;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { FormikErrors } from "formik";
3
+ import { ExamFormRequest } from "../../../utils/types";
4
+ interface Props {
5
+ name: string;
6
+ value: string;
7
+ disabled?: boolean;
8
+ deletable?: boolean;
9
+ errors: FormikErrors<ExamFormRequest>;
10
+ onDelete: () => void;
11
+ }
12
+ declare const _default: React.NamedExoticComponent<Props>;
13
+ export default _default;