touchstudy-core 0.1.146 → 0.1.148

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 (79) 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/TinyMCE/TinyEditor.d.ts +1 -2
  15. package/dist/containers/PreparedTextbook/components/ArticleBlock.d.ts +1 -0
  16. package/dist/containers/PreparedTextbook/components/QuestionCompareType.d.ts +8 -0
  17. package/dist/containers/PreparedTextbook/components/QuestionOrderName.d.ts +9 -0
  18. package/dist/containers/PreparedTextbook/components/QuestionScore.d.ts +9 -0
  19. package/dist/containers/PreparedTextbook/components/QuestionShortInput.d.ts +9 -0
  20. package/dist/containers/StudentInfoDrawer/apiClients/courseService.d.ts +3 -0
  21. package/dist/containers/StudentInfoDrawer/apiClients/examSessionService.d.ts +1 -0
  22. package/dist/containers/StudentInfoDrawer/apiClients/noteService.d.ts +6 -0
  23. package/dist/containers/StudentInfoDrawer/apiClients/textbookService.d.ts +1 -0
  24. package/dist/containers/StudentInfoDrawer/apiClients/userService.d.ts +1 -0
  25. package/dist/containers/StudentInfoDrawer/components/Attendance/AttendanceCourseTable.d.ts +15 -0
  26. package/dist/containers/StudentInfoDrawer/components/Attendance/CourseAttendanceItem.d.ts +10 -0
  27. package/dist/containers/StudentInfoDrawer/components/Attendance/CourseAttendanceList.d.ts +4 -0
  28. package/dist/containers/StudentInfoDrawer/components/Attendance/DrawerAttendanceTab.d.ts +4 -0
  29. package/dist/containers/StudentInfoDrawer/components/Attendance/LessonTooltip.d.ts +8 -0
  30. package/dist/containers/StudentInfoDrawer/components/AttendanceCourseTable.d.ts +15 -0
  31. package/dist/containers/StudentInfoDrawer/components/CourseAttendanceItem.d.ts +10 -0
  32. package/dist/containers/StudentInfoDrawer/components/CourseAttendanceList.d.ts +4 -0
  33. package/dist/containers/StudentInfoDrawer/components/CustomTooltip.d.ts +2 -0
  34. package/dist/containers/StudentInfoDrawer/components/DrawerAttendanceTab.d.ts +4 -0
  35. package/dist/containers/StudentInfoDrawer/components/DrawerExamResultTab.d.ts +9 -0
  36. package/dist/containers/StudentInfoDrawer/components/DrawerHeader.d.ts +9 -0
  37. package/dist/containers/StudentInfoDrawer/components/DrawerInfoTab.d.ts +9 -0
  38. package/dist/containers/StudentInfoDrawer/components/DrawerNoteTab.d.ts +8 -0
  39. package/dist/containers/StudentInfoDrawer/components/DrawerTabContent.d.ts +8 -0
  40. package/dist/containers/StudentInfoDrawer/components/DrawerTabHeader.d.ts +8 -0
  41. package/dist/containers/StudentInfoDrawer/components/DrawerTextbookResultTab.d.ts +7 -0
  42. package/dist/containers/StudentInfoDrawer/components/Exam/DrawerExamResultTab.d.ts +9 -0
  43. package/dist/containers/StudentInfoDrawer/components/Exam/ExamResultDrawer.d.ts +13 -0
  44. package/dist/containers/StudentInfoDrawer/components/Exam/ExamResultItem.d.ts +10 -0
  45. package/dist/containers/StudentInfoDrawer/components/Exam/ExanResultList.d.ts +4 -0
  46. package/dist/containers/StudentInfoDrawer/components/ExamResultDrawer.d.ts +13 -0
  47. package/dist/containers/StudentInfoDrawer/components/ExamResultItem.d.ts +10 -0
  48. package/dist/containers/StudentInfoDrawer/components/ExanResultList.d.ts +4 -0
  49. package/dist/containers/StudentInfoDrawer/components/LessonTooltip.d.ts +8 -0
  50. package/dist/containers/StudentInfoDrawer/components/Note/DrawerNoteTab.d.ts +8 -0
  51. package/dist/containers/StudentInfoDrawer/components/Note/NoteDrawer.d.ts +14 -0
  52. package/dist/containers/StudentInfoDrawer/components/NoteDrawer.d.ts +13 -0
  53. package/dist/containers/StudentInfoDrawer/components/Textbook/DrawerTextbookResultTab.d.ts +7 -0
  54. package/dist/containers/StudentInfoDrawer/components/Textbook/TextbookResultItem.d.ts +10 -0
  55. package/dist/containers/StudentInfoDrawer/components/Textbook/TextbookResultList.d.ts +4 -0
  56. package/dist/containers/StudentInfoDrawer/components/TextbookResultItem.d.ts +10 -0
  57. package/dist/containers/StudentInfoDrawer/components/TextbookResultList.d.ts +4 -0
  58. package/dist/containers/StudentInfoDrawer/configs/constants.d.ts +6 -0
  59. package/dist/containers/StudentInfoDrawer/configs/enums.d.ts +12 -0
  60. package/dist/containers/StudentInfoDrawer/configs/fns.d.ts +26 -0
  61. package/dist/containers/StudentInfoDrawer/configs/interfaces.d.ts +44 -0
  62. package/dist/containers/StudentInfoDrawer/configs/types.d.ts +101 -0
  63. package/dist/containers/StudentInfoDrawer/hooks/useDrawerAttendanceTab.d.ts +8 -0
  64. package/dist/containers/StudentInfoDrawer/hooks/useDrawerNoteTab.d.ts +28 -0
  65. package/dist/containers/StudentInfoDrawer/hooks/useStudentInfoDrawer.d.ts +15 -0
  66. package/dist/containers/StudentInfoDrawer/index.d.ts +2 -0
  67. package/dist/containers/StudentInfoDrawer/styles/styles.d.ts +2 -0
  68. package/dist/containers/StudentInfoDrawer/views/StudentInfoDrawer.d.ts +4 -0
  69. package/dist/containers/Users/components/UserRow.d.ts +14 -0
  70. package/dist/iconPerson~bfprHOKm.svg +4 -0
  71. package/dist/index.js +104 -31
  72. package/dist/index.js.map +1 -1
  73. package/dist/index.modern.js +104 -31
  74. package/dist/index.modern.js.map +1 -1
  75. package/dist/utils/functions/formatPhoneNumber.d.ts +2 -0
  76. package/dist/utils/functions/includePathname.d.ts +1 -0
  77. package/dist/utils/functions/questions.d.ts +2 -0
  78. package/dist/utils/hooks/useVirtualList.d.ts +20 -0
  79. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ declare const formatPhoneNumber: (phoneNumberString?: string | undefined) => string | undefined;
2
+ export default formatPhoneNumber;
@@ -0,0 +1 @@
1
+ export declare const includePathname: (superUrls: string[], pathname: string) => boolean;
@@ -0,0 +1,2 @@
1
+ import { QuestionAnswerType } from "../enums";
2
+ export declare const isTextType: (type: QuestionAnswerType) => boolean;
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { BaseSearchQuery } from "../types";
3
+ import { AxiosResponse } from "axios";
4
+ declare type BaseType = {
5
+ id: string | number;
6
+ };
7
+ declare const useVirtualList: <OrderType, FilterType extends BaseSearchQuery<OrderType>, DataType extends BaseType>(studentId: number, defaultFilter: FilterType, getItemsApi: (query: FilterType) => Promise<AxiosResponse<any, any>>) => {
8
+ t: any;
9
+ selectedItem: DataType | undefined;
10
+ items: DataType[];
11
+ isLoading: boolean;
12
+ setItems: import("react").Dispatch<import("react").SetStateAction<DataType[]>>;
13
+ handleChangeSelectedItem: (data?: DataType | undefined) => void;
14
+ handleLoadMore: () => void;
15
+ getItems: () => Promise<void>;
16
+ handleItemAdded: (item: DataType) => void;
17
+ handleItemRemoved: (item: DataType) => void;
18
+ handleItemUpdated: (item: DataType) => void;
19
+ };
20
+ export default useVirtualList;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "touchstudy-core",
3
- "version": "0.1.146",
3
+ "version": "0.1.148",
4
4
  "description": "Contains core components && functions for TouchStudy project",
5
5
  "author": "brss",
6
6
  "license": "MIT",