touchstudy-core 0.1.145 → 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.
- package/dist/alert-circle-fill~CSSkoNUz.svg +3 -0
- package/dist/assets/AlertCircleFill.d.ts +3 -0
- package/dist/assets/CalendarFill.d.ts +3 -0
- package/dist/assets/CheckCircleFill.d.ts +3 -0
- package/dist/assets/CheckedCircleFill.d.ts +3 -0
- package/dist/assets/ClockFill.d.ts +3 -0
- package/dist/assets/CloseCircleFill.d.ts +3 -0
- package/dist/assets/IconPerson.d.ts +3 -0
- package/dist/calendar_fill~zEgxFwDs.svg +4 -0
- package/dist/check-circle_fill~bbGHfKpz.svg +3 -0
- package/dist/checked-circle_fill~KLGxfRpW.svg +3 -0
- package/dist/clock_fill~mcRclYYO.svg +3 -0
- package/dist/close-circle_fill~PRVaHJUQ.svg +3 -0
- package/dist/components/Inputs/SearchInput.d.ts +3 -0
- package/dist/components/List/configs/interfaces.d.ts +1 -1
- package/dist/components/List/partials/VirtualListItem.d.ts +1 -1
- package/dist/components/Selects/CustomSelect.d.ts +1 -1
- package/dist/components/Tables/VirtualTableRowItem.d.ts +6 -5
- package/dist/components/Tables/VirtualTableView.d.ts +1 -1
- package/dist/components/Tables/configs/interfaces.d.ts +12 -4
- package/dist/containers/Classes/components/StudentList.d.ts +1 -0
- package/dist/containers/ExamResult/apiClients/index.d.ts +5 -5
- package/dist/containers/ExamResult/hooks/useExamResult.d.ts +6 -6
- package/dist/containers/ExamResult/hooks/useExamResultNote.d.ts +3 -3
- package/dist/containers/Login/hooks/useLoginPhoneNumber.d.ts +4 -0
- package/dist/containers/Notes/components/NoteItem.d.ts +2 -0
- package/dist/containers/Notes/configs/enums.d.ts +4 -0
- package/dist/containers/Notes/configs/interfaces.d.ts +2 -0
- package/dist/containers/Notes/configs/types.d.ts +2 -2
- package/dist/containers/Notes/styles/styles.d.ts +2 -0
- package/dist/containers/PreparedExam/apiClients/textbookService.d.ts +1 -1
- package/dist/containers/PreparedExam/components/dialogs/ChapterProblemSolvingResultsDialog.d.ts +2 -1
- package/dist/containers/PreparedExam/components/dialogs/TextbookDrawer.d.ts +7 -2
- package/dist/containers/PreparedExam/components/dialogs/TextbookInfoDrawer.d.ts +3 -2
- package/dist/containers/PreparedExam/configs/types.d.ts +6 -0
- package/dist/containers/PreparedExam/hooks/useTextbookDrawer.d.ts +3 -1
- package/dist/containers/PreparedTextbook/apiClients/textbookService.d.ts +1 -1
- package/dist/containers/PreparedTextbook/components/AcademySelector.d.ts +1 -1
- package/dist/containers/PreparedTextbook/components/ArticleBlock.d.ts +1 -0
- package/dist/containers/PreparedTextbook/components/ChapterBlock.d.ts +1 -0
- package/dist/containers/PreparedTextbook/components/ChapterBlockBody.d.ts +1 -0
- package/dist/containers/PreparedTextbook/components/CourseSelector.d.ts +1 -1
- package/dist/containers/PreparedTextbook/components/OwnerSelector.d.ts +3 -2
- package/dist/containers/PreparedTextbook/components/PreparedTextbookForm.d.ts +5 -0
- package/dist/containers/PreparedTextbook/components/QuestionBlock.d.ts +1 -1
- package/dist/containers/PreparedTextbook/components/QuestionGroupBlock.d.ts +1 -1
- package/dist/containers/PreparedTextbook/components/QuestionGroupBlockBody.d.ts +2 -0
- package/dist/containers/PreparedTextbook/components/TextbookContentsTab.d.ts +1 -0
- package/dist/containers/PreparedTextbook/components/TextbookInfoTab.d.ts +3 -1
- package/dist/containers/PreparedTextbook/components/TextbookOwnersTab.d.ts +2 -1
- package/dist/containers/PreparedTextbook/configs/constants.d.ts +2 -0
- package/dist/containers/PreparedTextbook/configs/enums.d.ts +5 -0
- package/dist/containers/PreparedTextbook/configs/functions.d.ts +23 -4
- package/dist/containers/PreparedTextbook/configs/interfaces.d.ts +2 -0
- package/dist/containers/PreparedTextbook/configs/types.d.ts +9 -3
- package/dist/containers/PreparedTextbook/hooks/useSelect.d.ts +8 -10
- package/dist/containers/PreparedTextbook/hooks/useTextbookManagement.d.ts +8 -1
- package/dist/containers/StudentInfoDrawer/apiClients/courseService.d.ts +3 -0
- package/dist/containers/StudentInfoDrawer/apiClients/examSessionService.d.ts +1 -0
- package/dist/containers/StudentInfoDrawer/apiClients/noteService.d.ts +6 -0
- package/dist/containers/StudentInfoDrawer/apiClients/textbookService.d.ts +1 -0
- package/dist/containers/StudentInfoDrawer/apiClients/userService.d.ts +1 -0
- package/dist/containers/StudentInfoDrawer/components/Attendance/AttendanceCourseTable.d.ts +15 -0
- package/dist/containers/StudentInfoDrawer/components/Attendance/CourseAttendanceItem.d.ts +10 -0
- package/dist/containers/StudentInfoDrawer/components/Attendance/CourseAttendanceList.d.ts +4 -0
- package/dist/containers/StudentInfoDrawer/components/Attendance/DrawerAttendanceTab.d.ts +4 -0
- package/dist/containers/StudentInfoDrawer/components/Attendance/LessonTooltip.d.ts +8 -0
- package/dist/containers/StudentInfoDrawer/components/AttendanceCourseTable.d.ts +15 -0
- package/dist/containers/StudentInfoDrawer/components/CourseAttendanceItem.d.ts +10 -0
- package/dist/containers/StudentInfoDrawer/components/CourseAttendanceList.d.ts +4 -0
- package/dist/containers/StudentInfoDrawer/components/CustomTooltip.d.ts +2 -0
- package/dist/containers/StudentInfoDrawer/components/DrawerAttendanceTab.d.ts +4 -0
- package/dist/containers/StudentInfoDrawer/components/DrawerExamResultTab.d.ts +9 -0
- package/dist/containers/StudentInfoDrawer/components/DrawerHeader.d.ts +9 -0
- package/dist/containers/StudentInfoDrawer/components/DrawerInfoTab.d.ts +9 -0
- package/dist/containers/StudentInfoDrawer/components/DrawerNoteTab.d.ts +8 -0
- package/dist/containers/StudentInfoDrawer/components/DrawerTabContent.d.ts +8 -0
- package/dist/containers/StudentInfoDrawer/components/DrawerTabHeader.d.ts +8 -0
- package/dist/containers/StudentInfoDrawer/components/DrawerTextbookResultTab.d.ts +7 -0
- package/dist/containers/StudentInfoDrawer/components/Exam/DrawerExamResultTab.d.ts +9 -0
- package/dist/containers/StudentInfoDrawer/components/Exam/ExamResultDrawer.d.ts +13 -0
- package/dist/containers/StudentInfoDrawer/components/Exam/ExamResultItem.d.ts +10 -0
- package/dist/containers/StudentInfoDrawer/components/Exam/ExanResultList.d.ts +4 -0
- package/dist/containers/StudentInfoDrawer/components/ExamResultDrawer.d.ts +13 -0
- package/dist/containers/StudentInfoDrawer/components/ExamResultItem.d.ts +10 -0
- package/dist/containers/StudentInfoDrawer/components/ExanResultList.d.ts +4 -0
- package/dist/containers/StudentInfoDrawer/components/LessonTooltip.d.ts +8 -0
- package/dist/containers/StudentInfoDrawer/components/Note/DrawerNoteTab.d.ts +8 -0
- package/dist/containers/StudentInfoDrawer/components/Note/NoteDrawer.d.ts +14 -0
- package/dist/containers/StudentInfoDrawer/components/NoteDrawer.d.ts +13 -0
- package/dist/containers/StudentInfoDrawer/components/Textbook/DrawerTextbookResultTab.d.ts +7 -0
- package/dist/containers/StudentInfoDrawer/components/Textbook/TextbookResultItem.d.ts +10 -0
- package/dist/containers/StudentInfoDrawer/components/Textbook/TextbookResultList.d.ts +4 -0
- package/dist/containers/StudentInfoDrawer/components/TextbookResultItem.d.ts +10 -0
- package/dist/containers/StudentInfoDrawer/components/TextbookResultList.d.ts +4 -0
- package/dist/containers/StudentInfoDrawer/configs/constants.d.ts +6 -0
- package/dist/containers/StudentInfoDrawer/configs/enums.d.ts +12 -0
- package/dist/containers/StudentInfoDrawer/configs/fns.d.ts +26 -0
- package/dist/containers/StudentInfoDrawer/configs/interfaces.d.ts +44 -0
- package/dist/containers/StudentInfoDrawer/configs/types.d.ts +101 -0
- package/dist/containers/StudentInfoDrawer/hooks/useDrawerAttendanceTab.d.ts +8 -0
- package/dist/containers/StudentInfoDrawer/hooks/useDrawerNoteTab.d.ts +28 -0
- package/dist/containers/StudentInfoDrawer/hooks/useStudentInfoDrawer.d.ts +15 -0
- package/dist/containers/StudentInfoDrawer/index.d.ts +2 -0
- package/dist/containers/StudentInfoDrawer/styles/styles.d.ts +2 -0
- package/dist/containers/StudentInfoDrawer/views/StudentInfoDrawer.d.ts +4 -0
- package/dist/containers/Textbooks/configs/types.d.ts +2 -0
- package/dist/containers/Textbooks/hooks/useTextbookList.d.ts +5 -2
- package/dist/containers/Textbooks/hooks/useTextbookShare.d.ts +0 -2
- package/dist/containers/Users/components/UserRow.d.ts +14 -0
- package/dist/containers/Users/hooks/useUserList.d.ts +3 -0
- package/dist/containers/Users/views/UserList.d.ts +1 -0
- package/dist/containers/index.d.ts +1 -0
- package/dist/iconPerson~bfprHOKm.svg +4 -0
- package/dist/index.css +334 -334
- package/dist/index.js +22870 -19378
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +22885 -19402
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/constants.d.ts +2 -10
- package/dist/utils/enums/index.d.ts +3 -1
- package/dist/utils/functions/formatPhoneNumber.d.ts +2 -0
- package/dist/utils/functions/includePathname.d.ts +1 -0
- package/dist/utils/functions/index.d.ts +3 -2
- package/dist/utils/hooks/useVirtualList.d.ts +20 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/types/note.d.ts +4 -1
- package/package.json +2 -2
@@ -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>
|
@@ -1,9 +1,12 @@
|
|
1
|
+
import { SxProps, Theme } from "@mui/material";
|
1
2
|
import { ChangeEvent, FC, RefObject } from "react";
|
2
3
|
interface Props {
|
3
4
|
textSearchRef: RefObject<HTMLInputElement>;
|
4
5
|
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
5
6
|
placeholder: string;
|
6
7
|
fit?: boolean;
|
8
|
+
sx?: SxProps<Theme>;
|
9
|
+
searchSx?: SxProps<Theme>;
|
7
10
|
}
|
8
11
|
declare const SearchInput: FC<Props>;
|
9
12
|
export default SearchInput;
|
@@ -6,7 +6,7 @@ export interface VirtualListViewProps<T> {
|
|
6
6
|
containerProps?: BoxProps;
|
7
7
|
listHeight?: number;
|
8
8
|
overscanRowCount?: number;
|
9
|
-
renderItem: (item: T, index: number) => ReactElement;
|
9
|
+
renderItem: (item: T, index: number, measure: () => void) => ReactElement;
|
10
10
|
onLoadMore?: () => void;
|
11
11
|
emptyElement?: ReactElement;
|
12
12
|
loadingElement?: ReactElement;
|
@@ -3,7 +3,7 @@ import { ListRowProps } from "react-virtualized";
|
|
3
3
|
interface VirtualListItemProps<T> extends ListRowProps {
|
4
4
|
isLoading?: boolean;
|
5
5
|
rowData?: T;
|
6
|
-
renderItem: (item: T, index: number) => ReactElement;
|
6
|
+
renderItem: (item: T, index: number, measure: () => void) => ReactElement;
|
7
7
|
loadingElement?: ReactElement;
|
8
8
|
}
|
9
9
|
declare const VirtualListItem: FC<VirtualListItemProps<any>>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import React from "react";
|
2
|
-
declare const CustomSelect: ({ isDefault, defaultValue, options, isDisabled, scrollBottom, value, isMulti, optionValue, ...rest }: any) => React.JSX.Element;
|
2
|
+
declare const CustomSelect: ({ isDefault, defaultValue, options, isDisabled, scrollBottom, value, isMulti, optionValue, styles, ...rest }: any) => React.JSX.Element;
|
3
3
|
export default CustomSelect;
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import {
|
2
|
-
import { GridCellProps } from "react-virtualized";
|
1
|
+
import React, { ReactElement } from "react";
|
2
|
+
import { CellMeasurerCache, GridCellProps } from "react-virtualized";
|
3
3
|
interface VirtualTableRowItemProps extends GridCellProps {
|
4
4
|
isLoading?: boolean;
|
5
|
-
renderItem: (rowIndex: number, columnIndex: number) => ReactElement;
|
5
|
+
renderItem: (rowIndex: number, columnIndex: number, measure: () => void) => ReactElement;
|
6
6
|
loadingElement?: ReactElement;
|
7
|
+
cellMeasurerCache: CellMeasurerCache;
|
7
8
|
}
|
8
|
-
declare const
|
9
|
-
export default
|
9
|
+
declare const _default: React.NamedExoticComponent<VirtualTableRowItemProps>;
|
10
|
+
export default _default;
|
@@ -1,14 +1,21 @@
|
|
1
1
|
import { BoxProps } from "@mui/material";
|
2
|
-
import { CSSProperties, ReactElement } from "react";
|
3
|
-
|
4
|
-
|
2
|
+
import { CSSProperties, ReactElement, RefObject } from "react";
|
3
|
+
import { CellMeasurerCache, Index, MultiGrid } from "react-virtualized";
|
4
|
+
export interface VirtualTableViewProps {
|
5
5
|
loading: boolean;
|
6
|
+
hasHeader?: boolean;
|
6
7
|
containerProps?: BoxProps;
|
7
8
|
columnCount: number;
|
8
9
|
listHeight?: number;
|
9
10
|
listWidth?: number;
|
11
|
+
containerRef?: RefObject<HTMLDivElement>;
|
12
|
+
multiGridRef?: RefObject<MultiGrid>;
|
10
13
|
overscanRowCount?: number;
|
11
|
-
|
14
|
+
overscanColumnCount?: number;
|
15
|
+
itemsCount: number;
|
16
|
+
cellCache?: CellMeasurerCache;
|
17
|
+
columnWidth?: number | ((params: Index, cache: CellMeasurerCache) => number);
|
18
|
+
renderItem: (rowIndex: number, columnIndex: number, measure: () => void) => ReactElement;
|
12
19
|
onLoadMore?: () => void;
|
13
20
|
emptyElement?: ReactElement;
|
14
21
|
loadingElement?: ReactElement;
|
@@ -20,4 +27,5 @@ export interface VirtualTableViewProps<T> {
|
|
20
27
|
styleTopRightGrid?: CSSProperties;
|
21
28
|
hideTopRightGridScrollbar?: boolean;
|
22
29
|
hideBottomLeftGridScrollbar?: boolean;
|
30
|
+
dataString: string;
|
23
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: (
|
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: (
|
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: (
|
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: (
|
250
|
-
handleOpenQuestionDialogFromNote: (
|
251
|
-
handleOpenNoteDialogFromQuestion: (
|
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: (
|
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: (
|
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: (
|
21
|
+
handleOpenEditNote: (e: MouseEvent<HTMLButtonElement>, note: NoteResponse) => void;
|
22
22
|
handleCloseDeleteDialog: () => void;
|
23
23
|
};
|
24
24
|
export default useExamResultNote;
|
@@ -7,6 +7,10 @@ declare const useLoginPhoneNumber: (props: LoginPhoneNumberProps) => {
|
|
7
7
|
tokenReCaptcha: string;
|
8
8
|
phoneNumber: string;
|
9
9
|
password: string;
|
10
|
+
passwordRef: import("react").RefObject<HTMLInputElement>;
|
11
|
+
submitBtnRef: import("react").RefObject<HTMLButtonElement>;
|
12
|
+
handlePasswordKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
13
|
+
handlePhoneKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
10
14
|
handleChangePassword: (e: ChangeEvent<HTMLInputElement>) => void;
|
11
15
|
handlePhoneNumberChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
12
16
|
handleLoginPhoneNumber: () => Promise<void>;
|
@@ -7,6 +7,8 @@ interface NoteItemProps extends TooltipProps<NoteResponse> {
|
|
7
7
|
openTooltip: boolean;
|
8
8
|
placement?: string;
|
9
9
|
actions: Action<NoteResponse>[];
|
10
|
+
onLoad?: () => void;
|
11
|
+
onItemClick?: (data: NoteResponse) => void;
|
10
12
|
}
|
11
13
|
declare const NoteItem: FC<NoteItemProps>;
|
12
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;
|
@@ -23,6 +24,7 @@ export interface ExamNoteDialogProps {
|
|
23
24
|
}
|
24
25
|
export interface ClassNoteDialogProps {
|
25
26
|
open: boolean;
|
27
|
+
tip?: string;
|
26
28
|
studentName?: string;
|
27
29
|
selectedNote?: NoteResponse;
|
28
30
|
onClose: () => void;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { BaseSearchQuery } from "../../../utils";
|
2
|
-
import { NoteSortColumn } from "./enums";
|
2
|
+
import { NoteSortColumn, NoteType } from "./enums";
|
3
3
|
export declare type NoteSearchQuery = BaseSearchQuery<NoteSortColumn> & {
|
4
4
|
examCode?: string;
|
5
5
|
studentId?: number;
|
6
|
-
courseId?: number;
|
7
6
|
examSessionId?: number;
|
8
7
|
IsOwned?: boolean;
|
8
|
+
type?: NoteType;
|
9
9
|
};
|
@@ -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;
|
package/dist/containers/PreparedExam/components/dialogs/ChapterProblemSolvingResultsDialog.d.ts
CHANGED
@@ -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
|
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,
|
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;
|
@@ -174,6 +174,12 @@ export declare type ChapterResponse = {
|
|
174
174
|
accuracyRate?: number;
|
175
175
|
completedChapterQuestions?: number;
|
176
176
|
subChapters?: ChapterResponse[];
|
177
|
+
questionGroups?: QuestionGroupResponse[];
|
178
|
+
};
|
179
|
+
export declare type QuestionGroupResponse = {
|
180
|
+
id: number;
|
181
|
+
pageFrom?: number;
|
182
|
+
pageTo?: number;
|
177
183
|
};
|
178
184
|
export declare type ArticleResponse = {
|
179
185
|
id?: number;
|
@@ -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;
|
@@ -4,5 +4,5 @@ export declare const getTextbookDetailApi: (id: string, isAdmin?: boolean | unde
|
|
4
4
|
export declare const getTextbookListApi: (query: TextbookQuery, isAdmin?: boolean | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
5
5
|
export declare const createTextbookApi: (values: any, isAdmin?: boolean | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
6
6
|
export declare const updateTextbookApi: (values: any, id: number, isAdmin?: boolean | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
7
|
-
export declare const
|
7
|
+
export declare const getCourseByTeacherAcademy: (email: string, academyId: number) => Promise<import("axios").AxiosResponse<any, any>>;
|
8
8
|
export declare const deleteTextbookApi: (textbookId: number, isAdmin?: boolean | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
|
@@ -8,10 +8,10 @@ interface Props {
|
|
8
8
|
isClearable?: boolean;
|
9
9
|
disabled?: boolean;
|
10
10
|
isLoading?: boolean;
|
11
|
-
valueById?: number;
|
12
11
|
email: string;
|
13
12
|
minimumTextSearchLength?: number;
|
14
13
|
options: any;
|
14
|
+
defaultValue: any;
|
15
15
|
}
|
16
16
|
declare const AcademySelector: FC<Props>;
|
17
17
|
export default AcademySelector;
|
@@ -8,6 +8,7 @@ interface Props extends PropsWithChildren, FormikProps<TextbookRequest> {
|
|
8
8
|
categories: any[];
|
9
9
|
isLoadingCategories: boolean;
|
10
10
|
optionKey: string;
|
11
|
+
disabled?: boolean;
|
11
12
|
onDuplicate: (data: ArticleRequest) => void;
|
12
13
|
onDelete: (text: string, confirmText: string, path: string, index: number) => void;
|
13
14
|
onOpenSubCategoryMenu: (path: string, id?: number) => void;
|
@@ -13,6 +13,7 @@ interface Props extends FormikProps<TextbookRequest> {
|
|
13
13
|
categories: any[];
|
14
14
|
isLoadingQuestionTypes: boolean;
|
15
15
|
questionTypes: any[];
|
16
|
+
disabled?: boolean;
|
16
17
|
onToggle: (index: number) => void;
|
17
18
|
onDelete: (text: string, confirmText: string, path: string, index: number) => void;
|
18
19
|
onCopiedPrevQuestionGroup: (path: string, paths: number[]) => QuestionGroupRequest | undefined;
|
@@ -12,6 +12,7 @@ interface Props extends FormikProps<TextbookRequest> {
|
|
12
12
|
categories: any[];
|
13
13
|
isLoadingQuestionTypes: boolean;
|
14
14
|
questionTypes: any[];
|
15
|
+
disabled?: boolean;
|
15
16
|
onDelete: (text: string, confirmText: string, path: string, index: number) => void;
|
16
17
|
onCopiedPrevQuestionGroup: (path: string, paths: number[]) => QuestionGroupRequest | undefined;
|
17
18
|
onOpenSubCategoryMenu: (path: string, id?: number) => void;
|
@@ -3,8 +3,9 @@ declare type Props = {
|
|
3
3
|
values: any;
|
4
4
|
errors: any;
|
5
5
|
index: number;
|
6
|
-
|
6
|
+
email: string;
|
7
7
|
onChangeFieldValue: any;
|
8
|
+
disabled?: boolean;
|
8
9
|
};
|
9
|
-
declare const OwnerSelector: ({ values, errors, index,
|
10
|
+
declare const OwnerSelector: ({ values, errors, index, email, onChangeFieldValue, disabled }: Props) => React.JSX.Element;
|
10
11
|
export default OwnerSelector;
|
@@ -2,10 +2,15 @@ import { FormikProps } from "formik";
|
|
2
2
|
import React, { FC } from "react";
|
3
3
|
import { TextbookRequest } from "../configs/types";
|
4
4
|
interface Props extends FormikProps<TextbookRequest> {
|
5
|
+
isCreatedByAdmin?: boolean;
|
6
|
+
isSuperAdminUser: boolean;
|
7
|
+
isSuperAdmin?: boolean;
|
5
8
|
isAdmin?: boolean;
|
6
9
|
textbookId?: string;
|
7
10
|
selected: number;
|
8
11
|
coverImage?: string;
|
12
|
+
disabled?: boolean;
|
13
|
+
ownersDisabled?: boolean;
|
9
14
|
onUploadImage: (event: React.ChangeEvent<HTMLInputElement>) => Promise<void>;
|
10
15
|
onChangeTab: (_: React.SyntheticEvent, newValue: number) => void;
|
11
16
|
}
|
@@ -7,7 +7,7 @@ interface Props extends PropsWithChildren, FormikProps<TextbookRequest> {
|
|
7
7
|
answerCount: number;
|
8
8
|
path: string;
|
9
9
|
isMath: boolean;
|
10
|
-
|
10
|
+
disabled?: boolean;
|
11
11
|
questionTitleStyle?: SxProps<Theme>;
|
12
12
|
optionKey: string;
|
13
13
|
isLoadingQuestionTypes: boolean;
|
@@ -13,7 +13,7 @@ interface Props extends FormikProps<TextbookRequest> {
|
|
13
13
|
isLoadingQuestionTypes: boolean;
|
14
14
|
questionTypes: any[];
|
15
15
|
optionKey: string;
|
16
|
-
|
16
|
+
disabled?: boolean;
|
17
17
|
onToggle: (index: number) => void;
|
18
18
|
onQuestionCountChange: (count: number, index: number) => void;
|
19
19
|
onDelete: (text: string, confirmText: string, path: string, index: number) => void;
|
@@ -11,6 +11,8 @@ interface Props extends FormikProps<TextbookRequest> {
|
|
11
11
|
categories: any[];
|
12
12
|
isLoadingQuestionTypes: boolean;
|
13
13
|
questionTypes: any[];
|
14
|
+
disabled?: boolean;
|
15
|
+
onQuestioStartOrderChange: (order: number) => void;
|
14
16
|
onDelete: (text: string, confirmText: string, path: string, index: number) => void;
|
15
17
|
onOpenSubCategoryMenu: (path: string, id?: number) => void;
|
16
18
|
onOpenCategoryMenu: (path: string) => void;
|
@@ -2,6 +2,7 @@ import { FC } from "react";
|
|
2
2
|
import { FormikProps } from "formik";
|
3
3
|
import { TextbookRequest } from "../configs/types";
|
4
4
|
interface Props extends FormikProps<TextbookRequest> {
|
5
|
+
disabled?: boolean;
|
5
6
|
}
|
6
7
|
declare const TextbookContentsTab: FC<Props>;
|
7
8
|
export default TextbookContentsTab;
|
@@ -2,9 +2,11 @@ import React, { FC } from "react";
|
|
2
2
|
import { FormikProps } from "formik";
|
3
3
|
import { TextbookRequest } from "../configs/types";
|
4
4
|
interface Props extends FormikProps<TextbookRequest> {
|
5
|
+
isCreatedByAdmin?: boolean;
|
5
6
|
coverImage?: string;
|
6
|
-
|
7
|
+
isSuperAdminUser?: boolean;
|
7
8
|
textbookId?: string;
|
9
|
+
disabled?: boolean;
|
8
10
|
handleUploadImage: (event: React.ChangeEvent<HTMLInputElement>) => Promise<void>;
|
9
11
|
}
|
10
12
|
declare const TextbookInfoTab: FC<Props>;
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
2
2
|
import { FormikProps } from "formik";
|
3
3
|
import { TextbookRequest } from "../configs/types";
|
4
4
|
interface Props extends FormikProps<TextbookRequest> {
|
5
|
+
disabled?: boolean;
|
5
6
|
}
|
6
|
-
declare const TextbookOwnersTab: ({ errors, values, setFieldValue }: Props) => React.JSX.Element;
|
7
|
+
declare const TextbookOwnersTab: ({ errors, values, disabled, setFieldValue }: Props) => React.JSX.Element;
|
7
8
|
export default TextbookOwnersTab;
|
@@ -68,6 +68,7 @@ export declare const preparedTextbookSchema: (t: any) => yup.ObjectSchema<{
|
|
68
68
|
isbn: string;
|
69
69
|
grade: number;
|
70
70
|
type: number | undefined;
|
71
|
+
textbookOwners: {}[] | undefined;
|
71
72
|
chapters: {
|
72
73
|
questionGroups: any;
|
73
74
|
subChapters: any;
|
@@ -81,6 +82,7 @@ export declare const preparedTextbookSchema: (t: any) => yup.ObjectSchema<{
|
|
81
82
|
isbn: undefined;
|
82
83
|
grade: undefined;
|
83
84
|
type: undefined;
|
85
|
+
textbookOwners: "";
|
84
86
|
chapters: "";
|
85
87
|
}, "">;
|
86
88
|
export declare const DEFAULT_TEXTBOOK_REQUEST: TextbookRequest;
|