touchstudy-core 0.1.159 → 0.1.161

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 (89) hide show
  1. package/README.md +46 -46
  2. package/dist/add-ts-nocheck.js +33 -0
  3. package/dist/alert-circle-fill~CSSkoNUz.svg +3 -0
  4. package/dist/calendar_fill~zEgxFwDs.svg +4 -0
  5. package/dist/check-circle_fill~bbGHfKpz.svg +3 -0
  6. package/dist/checked-circle_fill~KLGxfRpW.svg +3 -0
  7. package/dist/clock_fill~mcRclYYO.svg +3 -0
  8. package/dist/close-circle_fill~PRVaHJUQ.svg +3 -0
  9. package/dist/components/CkEditor/CkEditor.d.ts +2 -11
  10. package/dist/components/Dialogs/index.d.ts +1 -2
  11. package/dist/containers/ExamResult/components/MyAnswer/components/SelectQuestion.d.ts +1 -1
  12. package/dist/containers/Notes/configs/interfaces.d.ts +1 -0
  13. package/dist/containers/PreparedTextbook/components/QuestionScore.d.ts +9 -0
  14. package/dist/containers/PreparedTextbook/configs/types.d.ts +1 -0
  15. package/dist/containers/PreparedTextbook/hooks/useExamDetailView.d.ts +1 -3
  16. package/dist/containers/PreparedTextbook/hooks/useTextbookManagement.d.ts +1 -1
  17. package/dist/containers/StudentInfoDrawer/components/AttendanceCourseTable.d.ts +15 -0
  18. package/dist/containers/StudentInfoDrawer/components/CourseAttendanceItem.d.ts +10 -0
  19. package/dist/containers/StudentInfoDrawer/components/CourseAttendanceList.d.ts +4 -0
  20. package/dist/containers/StudentInfoDrawer/components/DrawerAttendanceTab.d.ts +4 -0
  21. package/dist/containers/StudentInfoDrawer/components/DrawerExamResultTab.d.ts +9 -0
  22. package/dist/containers/StudentInfoDrawer/components/DrawerNoteTab.d.ts +8 -0
  23. package/dist/containers/StudentInfoDrawer/components/DrawerTextbookResultTab.d.ts +7 -0
  24. package/dist/containers/StudentInfoDrawer/components/ExamResultDrawer.d.ts +13 -0
  25. package/dist/containers/StudentInfoDrawer/components/ExamResultItem.d.ts +10 -0
  26. package/dist/containers/StudentInfoDrawer/components/ExanResultList.d.ts +4 -0
  27. package/dist/containers/StudentInfoDrawer/components/LessonTooltip.d.ts +8 -0
  28. package/dist/containers/StudentInfoDrawer/components/NoteDrawer.d.ts +13 -0
  29. package/dist/containers/StudentInfoDrawer/components/TextbookResultItem.d.ts +10 -0
  30. package/dist/containers/StudentInfoDrawer/components/TextbookResultList.d.ts +4 -0
  31. package/dist/containers/StudentInfoDrawer/hooks/useDrawerNoteTab.d.ts +3 -0
  32. package/dist/containers/Textbooks/apiClient/textbookService.d.ts +2 -2
  33. package/dist/containers/Textbooks/configs/constants.d.ts +1 -1
  34. package/dist/containers/Textbooks/configs/types.d.ts +2 -0
  35. package/dist/containers/Textbooks/hooks/useTextbookShare.d.ts +1 -0
  36. package/dist/containers/Textbooks/views/TextbookList.d.ts +1 -0
  37. package/dist/iconPerson~bfprHOKm.svg +4 -0
  38. package/dist/index.css +9 -587
  39. package/dist/index.js +806 -761
  40. package/dist/index.js.map +1 -1
  41. package/dist/index.modern.js +800 -754
  42. package/dist/index.modern.js.map +1 -1
  43. package/package.json +102 -102
  44. package/dist/StudyTouch_Character_v1_Question~jLFvuYmI.png +0 -0
  45. package/dist/components/Chats/ChatHeader.d.ts +0 -25
  46. package/dist/components/Chats/ChatItem.d.ts +0 -31
  47. package/dist/components/Chats/ChatLeftItem.d.ts +0 -4
  48. package/dist/components/Chats/ChatList.d.ts +0 -14
  49. package/dist/components/Chats/ChatRightItem.d.ts +0 -4
  50. package/dist/components/Chats/InputChat.d.ts +0 -16
  51. package/dist/components/Chats/components/CustomTooltip.d.ts +0 -2
  52. package/dist/components/Dialogs/CreateNewQuestion.d.ts +0 -15
  53. package/dist/components/Dialogs/CreateQuestionDialog.d.ts +0 -15
  54. package/dist/components/ErrorHandler.d.ts +0 -6
  55. package/dist/components/Inputs/MobileInputWrapper.d.ts +0 -6
  56. package/dist/components/LabelRequired.d.ts +0 -8
  57. package/dist/components/Print/hooks/useDeviceType.d.ts +0 -4
  58. package/dist/components/Selectors/InActiveAcademySelector.d.ts +0 -16
  59. package/dist/containers/Academies/hooks/usePassCodeDialog.d.ts +0 -10
  60. package/dist/containers/ExamResult/components/MyAnswer/components/CreateNewQuestion.d.ts +0 -15
  61. package/dist/containers/Exams/configs/types.d.ts +0 -22
  62. package/dist/containers/PreparedTextbook/apiClients/academyService.d.ts +0 -1
  63. package/dist/containers/Users/components/Dialogs/DeleteUserCsvDialog.d.ts +0 -10
  64. package/dist/containers/Users/components/Dialogs/RecentUserActionDialog.d.ts +0 -9
  65. package/dist/containers/Users/components/Dialogs/UserDialog.d.ts +0 -12
  66. package/dist/tests/performances/do-exam-session-list-student.d.ts +0 -19
  67. package/dist/tests/performances/do-exam-session-request-answer-one-time.d.ts +0 -19
  68. package/dist/tests/performances/do-exam-session-skip-answer.d.ts +0 -19
  69. package/dist/tests/performances/do-exam-session2.d.ts +0 -19
  70. package/dist/utils/canAccessRoute.d.ts +0 -2
  71. package/dist/utils/diffFromNow.d.ts +0 -3
  72. package/dist/utils/encodeParams.d.ts +0 -2
  73. package/dist/utils/formatTime.d.ts +0 -4
  74. package/dist/utils/getAcademyDomain.d.ts +0 -2
  75. package/dist/utils/getAccessToken.d.ts +0 -2
  76. package/dist/utils/getErrorMessage.d.ts +0 -1
  77. package/dist/utils/getLanguage.d.ts +0 -2
  78. package/dist/utils/getLearningSpace.d.ts +0 -2
  79. package/dist/utils/getRedirectUrl.d.ts +0 -2
  80. package/dist/utils/helpers.d.ts +0 -22
  81. package/dist/utils/isLocalHost.d.ts +0 -2
  82. package/dist/utils/minutesToTimeSpan.d.ts +0 -2
  83. package/dist/utils/pusherTo.d.ts +0 -1
  84. package/dist/utils/times.d.ts +0 -6
  85. package/dist/utils/toISOString.d.ts +0 -2
  86. package/dist/utils/toLocalTime.d.ts +0 -1
  87. package/dist/utils/types/checkSuperUrl.d.ts +0 -1
  88. package/dist/utils/types.d.ts +0 -9
  89. package/dist/utils/utcToLocalTime.d.ts +0 -2
package/README.md CHANGED
@@ -1,46 +1,46 @@
1
- # Getting Started with Create React App
2
-
3
- This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4
-
5
- ## Available Scripts
6
-
7
- In the project directory, you can run:
8
-
9
- ### `npm start`
10
-
11
- Runs the app in the development mode.\
12
- Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13
-
14
- The page will reload if you make edits.\
15
- You will also see any lint errors in the console.
16
-
17
- ### `npm test`
18
-
19
- Launches the test runner in the interactive watch mode.\
20
- See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21
-
22
- ### `npm run build`
23
-
24
- Builds the app for production to the `build` folder.\
25
- It correctly bundles React in production mode and optimizes the build for the best performance.
26
-
27
- The build is minified and the filenames include the hashes.\
28
- Your app is ready to be deployed!
29
-
30
- See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31
-
32
- ### `npm run eject`
33
-
34
- **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35
-
36
- If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37
-
38
- Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39
-
40
- You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41
-
42
- ## Learn More
43
-
44
- You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45
-
46
- To learn React, check out the [React documentation](https://reactjs.org/).
1
+ # Getting Started with Create React App
2
+
3
+ This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4
+
5
+ ## Available Scripts
6
+
7
+ In the project directory, you can run:
8
+
9
+ ### `npm start`
10
+
11
+ Runs the app in the development mode.\
12
+ Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13
+
14
+ The page will reload if you make edits.\
15
+ You will also see any lint errors in the console.
16
+
17
+ ### `npm test`
18
+
19
+ Launches the test runner in the interactive watch mode.\
20
+ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21
+
22
+ ### `npm run build`
23
+
24
+ Builds the app for production to the `build` folder.\
25
+ It correctly bundles React in production mode and optimizes the build for the best performance.
26
+
27
+ The build is minified and the filenames include the hashes.\
28
+ Your app is ready to be deployed!
29
+
30
+ See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31
+
32
+ ### `npm run eject`
33
+
34
+ **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35
+
36
+ If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37
+
38
+ Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39
+
40
+ You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41
+
42
+ ## Learn More
43
+
44
+ You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45
+
46
+ To learn React, check out the [React documentation](https://reactjs.org/).
@@ -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>
@@ -1,19 +1,10 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  interface Props {
3
3
  ref?: any;
4
4
  value: string;
5
5
  onChange: any;
6
6
  option?: any;
7
- onBlur?: any;
8
- onFocus?: any;
9
- onAfterInsertHtml?: any;
10
- onInsertElement?: any;
11
- onInsertHtml?: any;
12
- onInsertText?: any;
13
- onDataReady?: any;
14
- onSelectionChange?: any;
15
- action?: any;
16
7
  disabled: boolean;
17
8
  }
18
- declare const CkEditor: ({ ref, value, option, onBlur, onFocus, onChange, onAfterInsertHtml, onInsertElement, onInsertHtml, onInsertText, onDataReady, onSelectionChange, disabled, ...action }: Props) => React.JSX.Element;
9
+ declare const CkEditor: ({ ref, value, onChange, option, disabled }: Props) => React.JSX.Element;
19
10
  export default CkEditor;
@@ -1,6 +1,5 @@
1
1
  import CommonDialog from "./CommonDialog";
2
2
  import ConfirmDeleteDialog from "./ConfirmDeleteDialog";
3
3
  import { ConfirmDialog } from "./ConfirmDialog";
4
- import CommonCreateNewQuestionDialog from "./CreateQuestionDialog";
5
4
  import PassCodeDialog from "./PassCodeDialog";
6
- export { CommonDialog, ConfirmDialog, PassCodeDialog, ConfirmDeleteDialog, CommonCreateNewQuestionDialog };
5
+ export { CommonDialog, ConfirmDialog, PassCodeDialog, ConfirmDeleteDialog };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  declare type Props = {
3
3
  openCreateQuestionDialog: boolean;
4
4
  toggleCreateQuestion: () => void;
@@ -27,6 +27,7 @@ export interface ClassNoteDialogProps {
27
27
  tip?: string;
28
28
  studentName?: string;
29
29
  selectedNote?: NoteResponse;
30
+ value?: string;
30
31
  onClose: () => void;
31
32
  onSaveNote: (content: string) => void;
32
33
  }
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ interface Props {
3
+ path: string;
4
+ isTabletUp: boolean;
5
+ disabled?: boolean;
6
+ setFieldValue: any;
7
+ }
8
+ declare const _default: React.NamedExoticComponent<Props>;
9
+ export default _default;
@@ -106,6 +106,7 @@ export declare type TextbookDetailResponse = {
106
106
  type: number;
107
107
  createdBy?: any;
108
108
  isCreatedByAdmin?: boolean;
109
+ totalUses: number;
109
110
  };
110
111
  export declare type Academy = {
111
112
  id: number;
@@ -12,10 +12,8 @@ interface Props {
12
12
  declare const useExamDetailView: (props: Props) => {
13
13
  t: any;
14
14
  categoryList: Category[];
15
- handleChangeTextualAnswer: (article: number, index: number, value: string) => void;
16
- handleChangeQuestionAnswerType: (article: number, index: number, value: number) => void;
17
15
  handleChangeScoreAnswer: (article: number, index: number, score: number) => void;
18
- handleChangeCorrectAnswers: (article: number, index: number, answer: number[]) => void;
16
+ handleChangeCorrectAnswers: (article: number, index: number, answer: number) => void;
19
17
  handleChangeAnswerCount: (article: number, newAnswerCount: number, answerCount: number) => void;
20
18
  handleChangeQuestionCount: (article: number, questionCount: number, answerCount: number) => void;
21
19
  handleChangeCategory: (_: number, values: any) => void;
@@ -11,7 +11,7 @@ declare const useTextbookManagement: ({ textbookId, role, onNavigateList }: Prop
11
11
  isAdminSite: boolean;
12
12
  disabledTextbookOwners: boolean;
13
13
  isReadonly: boolean;
14
- isEditable: any;
14
+ isEditable: boolean;
15
15
  isAdmin: any;
16
16
  theme: import("@mui/material").Theme;
17
17
  history: History;
@@ -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,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,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,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,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,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,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;
@@ -3,6 +3,7 @@ import { ClassNoteDialogProps } from "../../Notes";
3
3
  import { NoteResponse } from "../../../utils";
4
4
  import { DrawerNoteTabProps } from "../components/Note/DrawerNoteTab";
5
5
  declare const useDrawerNoteTab: (props: DrawerNoteTabProps) => {
6
+ openConfirmNote: boolean;
6
7
  noteIdContextMenu: number | undefined;
7
8
  academyNotes: NoteResponse[];
8
9
  isLoadingAcademyNotes: boolean;
@@ -24,5 +25,7 @@ declare const useDrawerNoteTab: (props: DrawerNoteTabProps) => {
24
25
  handleOpenNoteDrawer: (note: NoteResponse) => void;
25
26
  handleOpenCreateAcademyNoteDialog: () => void;
26
27
  handleOpenCreateStudentNoteDialog: () => void;
28
+ handleCloseConfirmStudentNoteDialog: () => void;
29
+ handleSaveStudentNote: () => void;
27
30
  };
28
31
  export default useDrawerNoteTab;
@@ -1,8 +1,8 @@
1
1
  import { TextbookRequest, TextbookSearchQuery, TextbookShareRequest, TextbookUpdateRequest } from "../configs/types";
2
- export declare const getTextbookListApi: (query: TextbookSearchQuery, isSuperAdmin: any) => Promise<import("axios").AxiosResponse<any, any>>;
2
+ export declare const getTextbookListApi: (query: TextbookSearchQuery, isSuperAdmin?: boolean | undefined, isPersonal?: boolean | undefined) => Promise<import("axios").AxiosResponse<any, any>>;
3
3
  export declare const getTextbookByIdApi: (textbookId: number, isSuperAdmin: any) => Promise<import("axios").AxiosResponse<any, any>>;
4
4
  export declare const createTextbookApi: (data: TextbookRequest) => Promise<import("axios").AxiosResponse<any, any>>;
5
5
  export declare const updateTextbookApi: (textbookId: number, data: TextbookUpdateRequest) => Promise<import("axios").AxiosResponse<any, any>>;
6
- export declare const deleteTextbookApi: (textbookId: number) => Promise<import("axios").AxiosResponse<any, any>>;
6
+ export declare const deleteTextbookApi: (textbookId: number, onAcademy: boolean) => Promise<import("axios").AxiosResponse<any, any>>;
7
7
  export declare const shareTextbookApi: (textbookId: number, data: TextbookShareRequest) => Promise<import("axios").AxiosResponse<any, any>>;
8
8
  export declare const updateSharedTextbookApi: (textbookId: number, data: TextbookShareRequest) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -8,7 +8,7 @@ export declare const DEFAULT_TEXTBOOK_SHARE_FILTER: {
8
8
  sortColumnName: TextbookSortBy;
9
9
  };
10
10
  export declare const DefaultTeacherQuery: TeacherQuery;
11
- export declare const TEXTBOOK_HEADERS: TextbookHeaderTable[];
11
+ export declare const TEXTBOOK_HEADERS: (isAdmin: boolean, isAdminSite: boolean, onAcademy: boolean) => TextbookHeaderTable[];
12
12
  export declare const SHARE_TEXTBOOK_HEADERS: TextbookHeaderTable[];
13
13
  export declare const TEACHER_ACADEMY_HEADERS: TeacherAcademyHeaderTable[];
14
14
  export declare const DEFAULT_ANSWER_COUNT = 5;
@@ -23,7 +23,9 @@ export declare type TextbookResponse = {
23
23
  name: string;
24
24
  subject: SubjectResponse;
25
25
  totalChapters: number;
26
+ totalUses: number;
26
27
  createdAt: string;
28
+ coverImage: string;
27
29
  isCreatedByAdmin: boolean;
28
30
  sharedUsers: string[];
29
31
  createdBy: CreatedBy;
@@ -32,5 +32,6 @@ declare const useTextbookShare: (props: TextbookShareProps) => {
32
32
  currentModel: TextbookResponse | undefined;
33
33
  isAdmin: any;
34
34
  isAdminSite: boolean;
35
+ onAcademy: boolean;
35
36
  };
36
37
  export default useTextbookShare;
@@ -6,6 +6,7 @@ export interface TextbookListProps {
6
6
  onNavigateCreate?: () => void;
7
7
  onNavigateDetail: (data: TextbookResponse, readOnly?: boolean, replace?: boolean) => void;
8
8
  isSuperAdmin: any;
9
+ personal?: boolean;
9
10
  createable?: boolean;
10
11
  }
11
12
  declare const TextbookList: FC<TextbookListProps>;
@@ -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="M10.395 2.01813C9.78691 1.36156 8.93753 1 8.00003 1C7.05753 1 6.20534 1.35937 5.60003 2.01187C4.98815 2.67156 4.69003 3.56813 4.76003 4.53625C4.89878 6.44625 6.35222 8 8.00003 8C9.64784 8 11.0988 6.44656 11.2397 4.53687C11.3107 3.5775 11.0107 2.68281 10.395 2.01813Z" fill="#97A1AF"/>
3
+ <path d="M13.4999 15H2.49993C2.35595 15.0019 2.21337 14.9716 2.08255 14.9115C1.95173 14.8513 1.83597 14.7627 1.74368 14.6522C1.54056 14.4094 1.45868 14.0778 1.51931 13.7425C1.78306 12.2794 2.60618 11.0503 3.89993 10.1875C5.04931 9.42156 6.50525 9 7.99993 9C9.49462 9 10.9506 9.42188 12.0999 10.1875C13.3937 11.05 14.2168 12.2791 14.4806 13.7422C14.5412 14.0775 14.4593 14.4091 14.2562 14.6519C14.1639 14.7625 14.0482 14.8511 13.9174 14.9113C13.7865 14.9715 13.6439 15.0018 13.4999 15Z" fill="#97A1AF"/>
4
+ </svg>