touchstudy-core 0.1.146 → 0.1.147

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 (91) hide show
  1. package/dist/alert-circle-fill~CSSkoNUz.svg +3 -0
  2. package/dist/assets/AlertCircleFill.d.ts +3 -0
  3. package/dist/assets/CalendarFill.d.ts +3 -0
  4. package/dist/assets/CheckCircleFill.d.ts +3 -0
  5. package/dist/assets/CheckedCircleFill.d.ts +3 -0
  6. package/dist/assets/ClockFill.d.ts +3 -0
  7. package/dist/assets/CloseCircleFill.d.ts +3 -0
  8. package/dist/assets/IconPerson.d.ts +3 -0
  9. package/dist/calendar_fill~zEgxFwDs.svg +4 -0
  10. package/dist/check-circle_fill~bbGHfKpz.svg +3 -0
  11. package/dist/checked-circle_fill~KLGxfRpW.svg +3 -0
  12. package/dist/clock_fill~mcRclYYO.svg +3 -0
  13. package/dist/close-circle_fill~PRVaHJUQ.svg +3 -0
  14. package/dist/components/Tables/configs/interfaces.d.ts +1 -0
  15. package/dist/containers/Classes/components/StudentList.d.ts +1 -0
  16. package/dist/containers/ExamResult/apiClients/index.d.ts +5 -5
  17. package/dist/containers/ExamResult/hooks/useExamResult.d.ts +6 -6
  18. package/dist/containers/ExamResult/hooks/useExamResultNote.d.ts +3 -3
  19. package/dist/containers/Notes/components/NoteItem.d.ts +1 -0
  20. package/dist/containers/Notes/configs/interfaces.d.ts +1 -0
  21. package/dist/containers/Notes/styles/styles.d.ts +2 -0
  22. package/dist/containers/PreparedExam/apiClients/textbookService.d.ts +1 -1
  23. package/dist/containers/PreparedExam/components/dialogs/ChapterProblemSolvingResultsDialog.d.ts +2 -1
  24. package/dist/containers/PreparedExam/components/dialogs/TextbookDrawer.d.ts +7 -2
  25. package/dist/containers/PreparedExam/components/dialogs/TextbookInfoDrawer.d.ts +3 -2
  26. package/dist/containers/PreparedExam/hooks/useTextbookDrawer.d.ts +3 -1
  27. package/dist/containers/StudentInfoDrawer/apiClients/courseService.d.ts +3 -0
  28. package/dist/containers/StudentInfoDrawer/apiClients/examSessionService.d.ts +1 -0
  29. package/dist/containers/StudentInfoDrawer/apiClients/noteService.d.ts +6 -0
  30. package/dist/containers/StudentInfoDrawer/apiClients/textbookService.d.ts +1 -0
  31. package/dist/containers/StudentInfoDrawer/apiClients/userService.d.ts +1 -0
  32. package/dist/containers/StudentInfoDrawer/components/Attendance/AttendanceCourseTable.d.ts +15 -0
  33. package/dist/containers/StudentInfoDrawer/components/Attendance/CourseAttendanceItem.d.ts +10 -0
  34. package/dist/containers/StudentInfoDrawer/components/Attendance/CourseAttendanceList.d.ts +4 -0
  35. package/dist/containers/StudentInfoDrawer/components/Attendance/DrawerAttendanceTab.d.ts +4 -0
  36. package/dist/containers/StudentInfoDrawer/components/Attendance/LessonTooltip.d.ts +8 -0
  37. package/dist/containers/StudentInfoDrawer/components/AttendanceCourseTable.d.ts +15 -0
  38. package/dist/containers/StudentInfoDrawer/components/CourseAttendanceItem.d.ts +10 -0
  39. package/dist/containers/StudentInfoDrawer/components/CourseAttendanceList.d.ts +4 -0
  40. package/dist/containers/StudentInfoDrawer/components/CustomTooltip.d.ts +2 -0
  41. package/dist/containers/StudentInfoDrawer/components/DrawerAttendanceTab.d.ts +4 -0
  42. package/dist/containers/StudentInfoDrawer/components/DrawerExamResultTab.d.ts +9 -0
  43. package/dist/containers/StudentInfoDrawer/components/DrawerHeader.d.ts +9 -0
  44. package/dist/containers/StudentInfoDrawer/components/DrawerInfoTab.d.ts +9 -0
  45. package/dist/containers/StudentInfoDrawer/components/DrawerNoteTab.d.ts +8 -0
  46. package/dist/containers/StudentInfoDrawer/components/DrawerTabContent.d.ts +8 -0
  47. package/dist/containers/StudentInfoDrawer/components/DrawerTabHeader.d.ts +8 -0
  48. package/dist/containers/StudentInfoDrawer/components/DrawerTextbookResultTab.d.ts +7 -0
  49. package/dist/containers/StudentInfoDrawer/components/Exam/DrawerExamResultTab.d.ts +9 -0
  50. package/dist/containers/StudentInfoDrawer/components/Exam/ExamResultDrawer.d.ts +13 -0
  51. package/dist/containers/StudentInfoDrawer/components/Exam/ExamResultItem.d.ts +10 -0
  52. package/dist/containers/StudentInfoDrawer/components/Exam/ExanResultList.d.ts +4 -0
  53. package/dist/containers/StudentInfoDrawer/components/ExamResultDrawer.d.ts +13 -0
  54. package/dist/containers/StudentInfoDrawer/components/ExamResultItem.d.ts +10 -0
  55. package/dist/containers/StudentInfoDrawer/components/ExanResultList.d.ts +4 -0
  56. package/dist/containers/StudentInfoDrawer/components/LessonTooltip.d.ts +8 -0
  57. package/dist/containers/StudentInfoDrawer/components/Note/DrawerNoteTab.d.ts +8 -0
  58. package/dist/containers/StudentInfoDrawer/components/Note/NoteDrawer.d.ts +14 -0
  59. package/dist/containers/StudentInfoDrawer/components/NoteDrawer.d.ts +13 -0
  60. package/dist/containers/StudentInfoDrawer/components/Textbook/DrawerTextbookResultTab.d.ts +7 -0
  61. package/dist/containers/StudentInfoDrawer/components/Textbook/TextbookResultItem.d.ts +10 -0
  62. package/dist/containers/StudentInfoDrawer/components/Textbook/TextbookResultList.d.ts +4 -0
  63. package/dist/containers/StudentInfoDrawer/components/TextbookResultItem.d.ts +10 -0
  64. package/dist/containers/StudentInfoDrawer/components/TextbookResultList.d.ts +4 -0
  65. package/dist/containers/StudentInfoDrawer/configs/constants.d.ts +6 -0
  66. package/dist/containers/StudentInfoDrawer/configs/enums.d.ts +12 -0
  67. package/dist/containers/StudentInfoDrawer/configs/fns.d.ts +26 -0
  68. package/dist/containers/StudentInfoDrawer/configs/interfaces.d.ts +44 -0
  69. package/dist/containers/StudentInfoDrawer/configs/types.d.ts +101 -0
  70. package/dist/containers/StudentInfoDrawer/hooks/useDrawerAttendanceTab.d.ts +8 -0
  71. package/dist/containers/StudentInfoDrawer/hooks/useDrawerNoteTab.d.ts +28 -0
  72. package/dist/containers/StudentInfoDrawer/hooks/useStudentInfoDrawer.d.ts +15 -0
  73. package/dist/containers/StudentInfoDrawer/index.d.ts +2 -0
  74. package/dist/containers/StudentInfoDrawer/styles/styles.d.ts +2 -0
  75. package/dist/containers/StudentInfoDrawer/views/StudentInfoDrawer.d.ts +4 -0
  76. package/dist/containers/Users/components/UserRow.d.ts +14 -0
  77. package/dist/containers/Users/hooks/useUserList.d.ts +3 -0
  78. package/dist/containers/Users/views/UserList.d.ts +1 -0
  79. package/dist/containers/index.d.ts +1 -0
  80. package/dist/iconPerson~bfprHOKm.svg +4 -0
  81. package/dist/index.css +333 -333
  82. package/dist/index.js +20046 -17472
  83. package/dist/index.js.map +1 -1
  84. package/dist/index.modern.js +20048 -17476
  85. package/dist/index.modern.js.map +1 -1
  86. package/dist/utils/functions/formatPhoneNumber.d.ts +2 -0
  87. package/dist/utils/functions/includePathname.d.ts +1 -0
  88. package/dist/utils/functions/index.d.ts +3 -2
  89. package/dist/utils/hooks/useVirtualList.d.ts +20 -0
  90. package/dist/utils/types/note.d.ts +1 -0
  91. package/package.json +1 -1
@@ -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,3 @@
1
+ import React, { SVGProps } from "react";
2
+ declare const AlertCircleFill: ({ width, height, color }: SVGProps<SVGSVGElement>) => React.JSX.Element;
3
+ export default AlertCircleFill;
@@ -0,0 +1,3 @@
1
+ import React, { SVGProps } from "react";
2
+ declare const CalendarFill: ({ width, height, color }: SVGProps<SVGSVGElement>) => React.JSX.Element;
3
+ export default CalendarFill;
@@ -0,0 +1,3 @@
1
+ import React, { SVGProps } from "react";
2
+ declare const CheckCircleFill: ({ width, height, color }: SVGProps<SVGSVGElement>) => React.JSX.Element;
3
+ export default CheckCircleFill;
@@ -0,0 +1,3 @@
1
+ import React, { SVGProps } from "react";
2
+ declare const CheckedCircleFill: ({ width, height, color }: SVGProps<SVGSVGElement>) => React.JSX.Element;
3
+ export default CheckedCircleFill;
@@ -0,0 +1,3 @@
1
+ import React, { SVGProps } from "react";
2
+ declare const ClockFill: ({ width, height, color }: SVGProps<SVGSVGElement>) => React.JSX.Element;
3
+ export default ClockFill;
@@ -0,0 +1,3 @@
1
+ import React, { SVGProps } from "react";
2
+ declare const CloseCircleFill: ({ width, height, color }: SVGProps<SVGSVGElement>) => React.JSX.Element;
3
+ export default CloseCircleFill;
@@ -0,0 +1,3 @@
1
+ import React, { SVGProps } from "react";
2
+ declare const IconPerson: ({ width, height, color }: SVGProps<SVGSVGElement>) => React.JSX.Element;
3
+ export default IconPerson;
@@ -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>
@@ -27,4 +27,5 @@ export interface VirtualTableViewProps {
27
27
  styleTopRightGrid?: CSSProperties;
28
28
  hideTopRightGridScrollbar?: boolean;
29
29
  hideBottomLeftGridScrollbar?: boolean;
30
+ dataString: string;
30
31
  }
@@ -2,6 +2,7 @@ import { StudentClassQuery, StudentClassResponse, UserClassSortBy } from "../con
2
2
  import { ChangeEvent, FC, RefObject } from "react";
3
3
  import { PagingResponse } from "../../../utils/types/pagingResponse";
4
4
  interface Props {
5
+ history: any;
5
6
  onAdd?: Function;
6
7
  paging: PagingResponse;
7
8
  classList: StudentClassResponse[];
@@ -3,11 +3,11 @@ export declare const getResultsLongTimeSpend: (code: string) => Promise<import("
3
3
  export declare const getResultsEffectSize: (code: string) => Promise<import("axios").AxiosResponse<any, any>>;
4
4
  export declare const getResultsTimeOrderQuestion: (code: string) => Promise<import("axios").AxiosResponse<any, any>>;
5
5
  export declare const getResultsCategories: (code: string) => Promise<import("axios").AxiosResponse<any, any>>;
6
- export declare const getChapterResultsApi: (chapterId: number) => Promise<import("axios").AxiosResponse<any, any>>;
7
- export declare const getChapterResultsLongTimeSpendApi: (chapterId: number) => Promise<import("axios").AxiosResponse<any, any>>;
8
- export declare const getChapterResultsEffectSizeApi: (chapterId: number) => Promise<import("axios").AxiosResponse<any, any>>;
9
- export declare const getChapterResultsTimeOrderQuestionApi: (chapterId: number) => Promise<import("axios").AxiosResponse<any, any>>;
10
- export declare const getChapterResultsCategoriesApi: (chapterId: number) => Promise<import("axios").AxiosResponse<any, any>>;
6
+ export declare const getChapterResultsApi: (chapterId: number, studentId?: number | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
7
+ export declare const getChapterResultsLongTimeSpendApi: (chapterId: number, studentId?: number | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
8
+ export declare const getChapterResultsEffectSizeApi: (chapterId: number, studentId?: number | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
9
+ export declare const getChapterResultsTimeOrderQuestionApi: (chapterId: number, studentId?: number | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
10
+ export declare const getChapterResultsCategoriesApi: (chapterId: number, studentId?: number | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
11
11
  export declare const getResultsTeacher: (id: number, studentId: number) => Promise<import("axios").AxiosResponse<any, any>>;
12
12
  export declare const getResultsLongTimeSpendTeacher: (id: number, studentId: number) => Promise<import("axios").AxiosResponse<any, any>>;
13
13
  export declare const getResultsEffectSizeTeacher: (id: number, studentId: number) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -22,15 +22,15 @@ declare const useExamResult: (props: ExamResultV2Props) => {
22
22
  noteIdContextMenu: number | undefined;
23
23
  isLoadingNotes: boolean;
24
24
  openDeleteNoteDialog: boolean;
25
- handleOpenDeleteNoteDialog: (_: MouseEvent<HTMLButtonElement, globalThis.MouseEvent>, note: NoteResponse) => void;
25
+ handleOpenDeleteNoteDialog: (e: MouseEvent<HTMLButtonElement, globalThis.MouseEvent>, note: NoteResponse) => void;
26
26
  setOpenNoteDialog: import("react").Dispatch<import("react").SetStateAction<boolean>>;
27
27
  handleLoadMore: () => void;
28
28
  handleDeleteNote: () => Promise<void>;
29
- handleOpenNoteDialog: (_: MouseEvent<HTMLButtonElement, globalThis.MouseEvent>, note: NoteResponse) => void;
29
+ handleOpenNoteDialog: (e: MouseEvent<HTMLButtonElement, globalThis.MouseEvent>, note: NoteResponse) => void;
30
30
  handleOpenNoteDialogCreateNote: (question?: Question | undefined) => void;
31
31
  handleCloseTooltip: () => void;
32
32
  handleOpenTooltip: (note: NoteResponse) => void;
33
- handleOpenEditNote: (_: MouseEvent<HTMLButtonElement, globalThis.MouseEvent>, note: NoteResponse) => void;
33
+ handleOpenEditNote: (e: MouseEvent<HTMLButtonElement, globalThis.MouseEvent>, note: NoteResponse) => void;
34
34
  handleCloseDeleteDialog: () => void;
35
35
  };
36
36
  QADialog: {
@@ -246,8 +246,8 @@ declare const useExamResult: (props: ExamResultV2Props) => {
246
246
  handleExit: () => void;
247
247
  };
248
248
  handleChangeTab: (newValue: number) => void;
249
- handleViewQAndA: (_: MouseEvent<HTMLButtonElement>, note: NoteResponse) => void;
250
- handleOpenQuestionDialogFromNote: (_: MouseEvent<HTMLButtonElement>, note: NoteResponse) => void;
251
- handleOpenNoteDialogFromQuestion: (_: MouseEvent<HTMLButtonElement>, question: Question) => void;
249
+ handleViewQAndA: (e: MouseEvent<HTMLButtonElement>, note: NoteResponse) => void;
250
+ handleOpenQuestionDialogFromNote: (e: MouseEvent<HTMLButtonElement>, note: NoteResponse) => void;
251
+ handleOpenNoteDialogFromQuestion: (e: MouseEvent<HTMLButtonElement>, question: Question) => void;
252
252
  };
253
253
  export default useExamResult;
@@ -10,15 +10,15 @@ declare const useExamResultNote: (questionOptions: any[], selectedTab: number, e
10
10
  noteIdContextMenu: number | undefined;
11
11
  isLoadingNotes: boolean;
12
12
  openDeleteNoteDialog: boolean;
13
- handleOpenDeleteNoteDialog: (_: MouseEvent<HTMLButtonElement>, note: NoteResponse) => void;
13
+ handleOpenDeleteNoteDialog: (e: MouseEvent<HTMLButtonElement>, note: NoteResponse) => void;
14
14
  setOpenNoteDialog: import("react").Dispatch<import("react").SetStateAction<boolean>>;
15
15
  handleLoadMore: () => void;
16
16
  handleDeleteNote: () => Promise<void>;
17
- handleOpenNoteDialog: (_: MouseEvent<HTMLButtonElement>, note: NoteResponse) => void;
17
+ handleOpenNoteDialog: (e: MouseEvent<HTMLButtonElement>, note: NoteResponse) => void;
18
18
  handleOpenNoteDialogCreateNote: (question?: Question | undefined) => void;
19
19
  handleCloseTooltip: () => void;
20
20
  handleOpenTooltip: (note: NoteResponse) => void;
21
- handleOpenEditNote: (_: MouseEvent<HTMLButtonElement>, note: NoteResponse) => void;
21
+ handleOpenEditNote: (e: MouseEvent<HTMLButtonElement>, note: NoteResponse) => void;
22
22
  handleCloseDeleteDialog: () => void;
23
23
  };
24
24
  export default useExamResultNote;
@@ -8,6 +8,7 @@ interface NoteItemProps extends TooltipProps<NoteResponse> {
8
8
  placement?: string;
9
9
  actions: Action<NoteResponse>[];
10
10
  onLoad?: () => void;
11
+ onItemClick?: (data: NoteResponse) => void;
11
12
  }
12
13
  declare const NoteItem: FC<NoteItemProps>;
13
14
  export default NoteItem;
@@ -12,6 +12,7 @@ export interface NotesContainerProps {
12
12
  onLoadMore: () => void;
13
13
  onCloseTooltip: () => void;
14
14
  onOpenTooltip: (note: NoteResponse) => void;
15
+ onItemClick?: (note: NoteResponse) => void;
15
16
  }
16
17
  export interface ExamNoteDialogProps {
17
18
  open: boolean;
@@ -29,6 +29,7 @@ export declare const NoteItemContentTextStyle: {
29
29
  color: string;
30
30
  fontSize: string;
31
31
  fontWeight: number;
32
+ whiteSpace: string;
32
33
  };
33
34
  export declare const NoteItemRightTextStyle: {
34
35
  color: string;
@@ -63,5 +64,6 @@ export declare const NoteItemStyles: {
63
64
  color: string;
64
65
  fontSize: string;
65
66
  fontWeight: number;
67
+ whiteSpace: string;
66
68
  };
67
69
  };
@@ -1,6 +1,6 @@
1
1
  import { TextbookQuery } from "../configs/types";
2
2
  export declare const getTextbookListApi: (query: TextbookQuery) => Promise<import("axios").AxiosResponse<any, any>>;
3
- export declare const getTextbookByIdApi: (textbookId: number) => Promise<import("axios").AxiosResponse<any, any>>;
3
+ export declare const getTextbookByIdApi: (textbookId: number, studentId?: number | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
4
4
  export declare const startPageApi: (value: {
5
5
  textbookId: number;
6
6
  startPage?: number;
@@ -7,6 +7,7 @@ declare type Props = {
7
7
  t: any;
8
8
  history: any;
9
9
  chapterId?: number;
10
+ studentId?: number;
10
11
  };
11
- declare const ChapterProblemSolvingResultsDialog: ({ t, onClose, open, history, chapterId }: Props) => React.JSX.Element;
12
+ declare const ChapterProblemSolvingResultsDialog: ({ t, onClose, open, history, chapterId, studentId }: Props) => React.JSX.Element;
12
13
  export default ChapterProblemSolvingResultsDialog;
@@ -1,9 +1,14 @@
1
1
  import React from "react";
2
+ import { Role } from "../../../../utils";
2
3
  declare type Props = {
4
+ role: Role;
3
5
  isOpen: boolean;
4
- onClose: Function;
6
+ onClose?: () => void;
5
7
  textbookId?: number;
8
+ studentId?: number;
6
9
  navigate?: any;
10
+ width?: number | string;
11
+ anchor?: "left" | "top" | "right" | "bottom";
7
12
  };
8
- declare const TextbookDrawer: ({ isOpen, onClose, textbookId, navigate }: Props) => React.JSX.Element;
13
+ declare const TextbookDrawer: ({ isOpen, role, width, textbookId, studentId, anchor, navigate, onClose }: Props) => React.JSX.Element;
9
14
  export default TextbookDrawer;
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
- import { PreparedType } from "../../../../utils";
2
+ import { PreparedType, Role } from "../../../../utils";
3
3
  import { PreparedFilterType } from "../../configs/types";
4
4
  declare type Props = {
5
+ role: Role;
5
6
  isOpen: boolean;
6
7
  user: any;
7
8
  isSuperAdmin: boolean;
@@ -11,5 +12,5 @@ declare type Props = {
11
12
  preparedType?: PreparedType;
12
13
  preparedFilterType?: PreparedFilterType;
13
14
  };
14
- declare const TextbookInfoDrawer: ({ user, isSuperAdmin, isOpen, onClose, textbookId, navigate, preparedType, preparedFilterType }: Props) => React.JSX.Element;
15
+ declare const TextbookInfoDrawer: ({ user, role, isSuperAdmin, isOpen, onClose, textbookId, navigate, preparedType, preparedFilterType }: Props) => React.JSX.Element;
15
16
  export default TextbookInfoDrawer;
@@ -1,9 +1,11 @@
1
1
  import { ChapterResponse, Textbook } from "../configs/types";
2
2
  declare type Props = {
3
+ isStudent: boolean;
3
4
  textbookId?: number;
5
+ studentId?: number;
4
6
  navigate?: any;
5
7
  };
6
- declare const useTextbookDrawer: ({ textbookId, navigate }: Props) => {
8
+ declare const useTextbookDrawer: ({ isStudent, textbookId, navigate, studentId }: Props) => {
7
9
  t: any;
8
10
  theme: import("@mui/material").Theme;
9
11
  textbook: Textbook | undefined;
@@ -0,0 +1,3 @@
1
+ import { BaseSearchQuery } from "../../../utils";
2
+ export declare const getAttendanceByStudentIdApi: (studentId: number, query: BaseSearchQuery<string>) => Promise<import("axios").AxiosResponse<any, any>>;
3
+ export declare const getCheckInLessonsApi: (lessonId: number, studentId: number) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -0,0 +1 @@
1
+ export declare const getExamSessionListApi: (query: any) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -0,0 +1,6 @@
1
+ import { NoteRequest } from "../../../utils";
2
+ import { NoteSearchQuery } from "../../Notes";
3
+ export declare const getNotesApi: (query: NoteSearchQuery) => Promise<import("axios").AxiosResponse<any, any>>;
4
+ export declare const createNoteApi: (note: NoteRequest) => Promise<import("axios").AxiosResponse<any, any>>;
5
+ export declare const updateNoteApi: (id: number, content: string) => Promise<import("axios").AxiosResponse<any, any>>;
6
+ export declare const deleteNoteApi: (id: number) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -0,0 +1 @@
1
+ export declare const getTextbookListApi: (query: any) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -0,0 +1 @@
1
+ export declare const getUserByIdApi: (id: number) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -0,0 +1,15 @@
1
+ import { FC } from "react";
2
+ import { LessonAttendance, LessonResponse } from "../../configs/types";
3
+ interface AttendanceCourseTableProps {
4
+ data: LessonAttendance[];
5
+ containerProps?: any;
6
+ listHeight?: number;
7
+ listWidth?: number;
8
+ mainTeacherName: string;
9
+ courseName: string;
10
+ courseId: number;
11
+ studentId: number;
12
+ onCheckInLesson: (lesson: LessonResponse, studentId: number) => void;
13
+ }
14
+ declare const AttendanceCourseTable: FC<AttendanceCourseTableProps>;
15
+ export default AttendanceCourseTable;
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ import { CourseAttendanceResponse, LessonResponse } from "../../configs/types";
3
+ interface Props {
4
+ studentId: number;
5
+ data: CourseAttendanceResponse;
6
+ onCheckInLesson: (lesson: LessonResponse, studentId: number) => void;
7
+ onLoad?: () => void;
8
+ }
9
+ declare const CourseAttendanceItem: FC<Props>;
10
+ export default CourseAttendanceItem;
@@ -0,0 +1,4 @@
1
+ import { FC } from "react";
2
+ import { CourseAttendanceListProps } from "../../configs/interfaces";
3
+ declare const CourseAttendanceList: FC<CourseAttendanceListProps>;
4
+ export default CourseAttendanceList;
@@ -0,0 +1,4 @@
1
+ import { FC } from "react";
2
+ import { TabContentProps } from "../../configs/interfaces";
3
+ declare const DrawerAttendanceTab: FC<TabContentProps>;
4
+ export default DrawerAttendanceTab;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Attendance, LessonResponse } from "../../configs/types";
3
+ declare type Props = {
4
+ lesson: LessonResponse;
5
+ lessonAttendance?: Attendance;
6
+ };
7
+ declare const LessonTooltip: ({ lesson, lessonAttendance }: Props) => React.JSX.Element;
8
+ export default LessonTooltip;
@@ -0,0 +1,15 @@
1
+ import { FC } from "react";
2
+ import { LessonAttendance, LessonResponse } from "../configs/types";
3
+ interface AttendanceCourseTableProps {
4
+ data: LessonAttendance[];
5
+ containerProps?: any;
6
+ listHeight?: number;
7
+ listWidth?: number;
8
+ mainTeacherName: string;
9
+ courseName: string;
10
+ courseId: number;
11
+ studentId: number;
12
+ onCheckInLesson: (lesson: LessonResponse, studentId: number) => void;
13
+ }
14
+ declare const AttendanceCourseTable: FC<AttendanceCourseTableProps>;
15
+ export default AttendanceCourseTable;
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ import { CourseAttendanceResponse, LessonResponse } from "../configs/types";
3
+ interface Props {
4
+ studentId: number;
5
+ data: CourseAttendanceResponse;
6
+ onCheckInLesson: (lesson: LessonResponse, studentId: number) => void;
7
+ onLoad?: () => void;
8
+ }
9
+ declare const CourseAttendanceItem: FC<Props>;
10
+ export default CourseAttendanceItem;
@@ -0,0 +1,4 @@
1
+ import { FC } from "react";
2
+ import { CourseAttendanceListProps } from "../configs/interfaces";
3
+ declare const CourseAttendanceList: FC<CourseAttendanceListProps>;
4
+ export default CourseAttendanceList;
@@ -0,0 +1,2 @@
1
+ declare const CustomTooltip: any;
2
+ export default CustomTooltip;
@@ -0,0 +1,4 @@
1
+ import { FC } from "react";
2
+ import { TabContentProps } from "../configs/interfaces";
3
+ declare const DrawerAttendanceTab: FC<TabContentProps>;
4
+ export default DrawerAttendanceTab;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { TabContentProps } from "../configs/interfaces";
3
+ import { StudentInfo } from "../configs/types";
4
+ interface Props extends TabContentProps {
5
+ history: any;
6
+ student?: StudentInfo;
7
+ }
8
+ declare const DrawerExamResultTab: FC<Props>;
9
+ export default DrawerExamResultTab;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { StudentInfo } from "../configs/types";
3
+ interface Props {
4
+ isLoading: boolean;
5
+ student?: StudentInfo;
6
+ onClose?: () => void;
7
+ }
8
+ declare const DrawerHeader: FC<Props>;
9
+ export default DrawerHeader;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { TabContentProps } from "../configs/interfaces";
3
+ import { StudentInfo } from "../configs/types";
4
+ interface Props extends TabContentProps {
5
+ isLoading: boolean;
6
+ data?: StudentInfo;
7
+ }
8
+ declare const DrawerInfoTab: FC<Props>;
9
+ export default DrawerInfoTab;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ import { TabContentProps } from "../configs/interfaces";
3
+ import { StudentInfo } from "../configs/types";
4
+ interface Props extends TabContentProps {
5
+ student?: StudentInfo;
6
+ }
7
+ declare const DrawerNoteTab: FC<Props>;
8
+ export default DrawerNoteTab;
@@ -0,0 +1,8 @@
1
+ import { FC, PropsWithChildren } from "react";
2
+ import { DrawerTab } from "../configs/enums";
3
+ interface Props extends PropsWithChildren {
4
+ value: DrawerTab;
5
+ isSelected: boolean;
6
+ }
7
+ declare const DrawerTabContent: FC<Props>;
8
+ export default DrawerTabContent;
@@ -0,0 +1,8 @@
1
+ import { FC, SyntheticEvent } from "react";
2
+ import { DrawerTab } from "../configs/enums";
3
+ interface Props {
4
+ selectedTab: DrawerTab;
5
+ onChangeTab: (e: SyntheticEvent, newValue: DrawerTab) => void;
6
+ }
7
+ declare const DrawerTabHeader: FC<Props>;
8
+ export default DrawerTabHeader;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ import { TabContentProps } from "../configs/interfaces";
3
+ interface Props extends TabContentProps {
4
+ history: any;
5
+ }
6
+ declare const DrawerTextbookResultTab: FC<Props>;
7
+ export default DrawerTextbookResultTab;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { TabContentProps } from "../../configs/interfaces";
3
+ import { StudentInfo } from "../../configs/types";
4
+ interface Props extends TabContentProps {
5
+ history: any;
6
+ student?: StudentInfo;
7
+ }
8
+ declare const DrawerExamResultTab: FC<Props>;
9
+ export default DrawerExamResultTab;
@@ -0,0 +1,13 @@
1
+ import { FC } from "react";
2
+ import { ExamSessionResponse, StudentInfo } from "../../configs/types";
3
+ interface Props {
4
+ open?: boolean;
5
+ student?: StudentInfo;
6
+ anchor?: "left" | "top" | "right" | "bottom";
7
+ onClose?: () => void;
8
+ width?: number | string;
9
+ data?: ExamSessionResponse;
10
+ history: any;
11
+ }
12
+ declare const ExamResultDrawer: FC<Props>;
13
+ export default ExamResultDrawer;
@@ -0,0 +1,10 @@
1
+ import { ExamSessionResponse } from "../../configs/types";
2
+ import { FC } from "react";
3
+ interface Props {
4
+ studentId: number;
5
+ data: ExamSessionResponse;
6
+ onItemClick: (data: ExamSessionResponse) => void;
7
+ onLoad?: () => void;
8
+ }
9
+ declare const ExamResultItem: FC<Props>;
10
+ export default ExamResultItem;
@@ -0,0 +1,4 @@
1
+ import { FC } from "react";
2
+ import { ExamResultListProps } from "../../configs/interfaces";
3
+ declare const ExanResultList: FC<ExamResultListProps>;
4
+ export default ExanResultList;
@@ -0,0 +1,13 @@
1
+ import { FC } from "react";
2
+ import { ExamSessionResponse, StudentInfo } from "../configs/types";
3
+ interface Props {
4
+ open?: boolean;
5
+ student?: StudentInfo;
6
+ anchor?: "left" | "top" | "right" | "bottom";
7
+ onClose?: () => void;
8
+ width?: number | string;
9
+ data?: ExamSessionResponse;
10
+ history: any;
11
+ }
12
+ declare const ExamResultDrawer: FC<Props>;
13
+ export default ExamResultDrawer;
@@ -0,0 +1,10 @@
1
+ import { ExamSessionResponse } from "../configs/types";
2
+ import { FC } from "react";
3
+ interface Props {
4
+ studentId: number;
5
+ data: ExamSessionResponse;
6
+ onItemClick: (data: ExamSessionResponse) => void;
7
+ onLoad?: () => void;
8
+ }
9
+ declare const ExamResultItem: FC<Props>;
10
+ export default ExamResultItem;
@@ -0,0 +1,4 @@
1
+ import { FC } from "react";
2
+ import { ExamResultListProps } from "../configs/interfaces";
3
+ declare const ExanResultList: FC<ExamResultListProps>;
4
+ export default ExanResultList;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Attendance, LessonResponse } from "../configs/types";
3
+ declare type Props = {
4
+ lesson: LessonResponse;
5
+ lessonAttendance?: Attendance;
6
+ };
7
+ declare const LessonTooltip: ({ lesson, lessonAttendance }: Props) => React.JSX.Element;
8
+ export default LessonTooltip;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ import { TabContentProps } from "../../configs/interfaces";
3
+ import { StudentInfo } from "../../configs/types";
4
+ export interface DrawerNoteTabProps extends TabContentProps {
5
+ student?: StudentInfo;
6
+ }
7
+ declare const DrawerNoteTab: FC<DrawerNoteTabProps>;
8
+ export default DrawerNoteTab;
@@ -0,0 +1,14 @@
1
+ import { FC } from "react";
2
+ import { NoteResponse } from "../../../../utils";
3
+ import { StudentInfo } from "../../configs/types";
4
+ interface Props {
5
+ open: boolean;
6
+ onClose: () => void;
7
+ student?: StudentInfo;
8
+ data?: NoteResponse;
9
+ anchor?: "left" | "top" | "right" | "bottom";
10
+ width?: number | string;
11
+ showStudentInfo?: boolean;
12
+ }
13
+ declare const NoteDrawer: FC<Props>;
14
+ export default NoteDrawer;
@@ -0,0 +1,13 @@
1
+ import { FC } from "react";
2
+ import { NoteResponse } from "../../../utils";
3
+ import { StudentInfo } from "../configs/types";
4
+ interface Props {
5
+ open: boolean;
6
+ onClose: () => void;
7
+ student?: StudentInfo;
8
+ data?: NoteResponse;
9
+ anchor?: "left" | "top" | "right" | "bottom";
10
+ width?: number | string;
11
+ }
12
+ declare const NoteDrawer: FC<Props>;
13
+ export default NoteDrawer;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ import { TabContentProps } from "../../configs/interfaces";
3
+ interface Props extends TabContentProps {
4
+ history: any;
5
+ }
6
+ declare const DrawerTextbookResultTab: FC<Props>;
7
+ export default DrawerTextbookResultTab;
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ import { TextbookResponse } from "../../configs/types";
3
+ interface Props {
4
+ studentId: number;
5
+ data: TextbookResponse;
6
+ onItemClick: (data: TextbookResponse) => void;
7
+ onLoad?: () => void;
8
+ }
9
+ declare const TextbookResultItem: FC<Props>;
10
+ export default TextbookResultItem;
@@ -0,0 +1,4 @@
1
+ import { FC } from "react";
2
+ import { TextbookListProps } from "../../configs/interfaces";
3
+ declare const TextbookResultList: FC<TextbookListProps>;
4
+ export default TextbookResultList;