touchstudy-core 0.1.127 → 0.1.129

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 (124) hide show
  1. package/dist/.DS_Store +0 -0
  2. package/dist/components/.DS_Store +0 -0
  3. package/dist/components/Buttons/index.d.ts +2 -1
  4. package/dist/components/Dialogs/ConfirmDialog.d.ts +2 -2
  5. package/dist/components/Selectors/ArticleCategorySelector.d.ts +1 -0
  6. package/dist/components/Selectors/QuestionCountSelector.d.ts +1 -0
  7. package/dist/components/Selects/CustomSelect.d.ts +1 -1
  8. package/dist/components/Selects/theme/styles.d.ts +1 -0
  9. package/dist/components/TinyMCE/MathTinyEditor.d.ts +13 -0
  10. package/dist/components/TinyMCE/TinyEditor.d.ts +11 -0
  11. package/dist/components/TinyMCE/index.d.ts +3 -0
  12. package/dist/components/index.d.ts +1 -1
  13. package/dist/containers/.DS_Store +0 -0
  14. package/dist/containers/Exams/components/ArticleGroupView.d.ts +3 -1
  15. package/dist/containers/Exams/components/QuestionView.d.ts +4 -1
  16. package/dist/containers/Exams/hooks/useExamDetailView.d.ts +3 -1
  17. package/dist/containers/Notes/index.d.ts +2 -1
  18. package/dist/containers/PreparedTextbook/apiClients/categoryService.d.ts +4 -3
  19. package/dist/containers/PreparedTextbook/apiClients/questionTypeService.d.ts +2 -0
  20. package/dist/containers/PreparedTextbook/components/Article.d.ts +3 -2
  21. package/dist/containers/PreparedTextbook/components/ArticleBlock.d.ts +18 -0
  22. package/dist/containers/PreparedTextbook/components/ChapterBlock.d.ts +26 -0
  23. package/dist/containers/PreparedTextbook/components/ChapterBlockBody.d.ts +24 -0
  24. package/dist/containers/PreparedTextbook/components/CustomTextbookTab.d.ts +7 -0
  25. package/dist/containers/PreparedTextbook/components/OwnerSelector.d.ts +2 -2
  26. package/dist/containers/PreparedTextbook/components/PreparedTextbookForm.d.ts +13 -0
  27. package/dist/containers/PreparedTextbook/components/QuestionBlock.d.ts +19 -0
  28. package/dist/containers/PreparedTextbook/components/QuestionGroupBlock.d.ts +28 -0
  29. package/dist/containers/PreparedTextbook/components/QuestionGroupBlockBody.d.ts +22 -0
  30. package/dist/containers/PreparedTextbook/components/QuestionTypeFilter.d.ts +10 -0
  31. package/dist/containers/PreparedTextbook/components/TextbookContentsTab.d.ts +7 -0
  32. package/dist/containers/PreparedTextbook/components/TextbookInfoTab.d.ts +11 -0
  33. package/dist/containers/PreparedTextbook/components/TextbookOwnersTab.d.ts +7 -0
  34. package/dist/containers/PreparedTextbook/configs/constants.d.ts +57 -1
  35. package/dist/containers/PreparedTextbook/configs/enums.d.ts +16 -0
  36. package/dist/containers/PreparedTextbook/configs/functions.d.ts +3 -0
  37. package/dist/containers/PreparedTextbook/configs/interfaces.d.ts +6 -0
  38. package/dist/containers/PreparedTextbook/configs/types.d.ts +97 -19
  39. package/dist/containers/PreparedTextbook/hooks/useExamDetailView.d.ts +3 -1
  40. package/dist/containers/PreparedTextbook/hooks/useSelect.d.ts +3 -2
  41. package/dist/containers/PreparedTextbook/hooks/useTextbookManagement.d.ts +8 -3
  42. package/dist/containers/PreparedTextbook/hooks/useTextbookOptions.d.ts +15 -0
  43. package/dist/containers/PreparedTextbook/index.d.ts +2 -2
  44. package/dist/containers/PreparedTextbook/views/PreparedTextbookView.d.ts +4 -0
  45. package/dist/containers/Textbooks/configs/types.d.ts +2 -1
  46. package/dist/containers/Textbooks/hooks/useTextbookDetail.d.ts +2 -2
  47. package/dist/index.css +444 -415
  48. package/dist/index.js +3503 -1766
  49. package/dist/index.js.map +1 -1
  50. package/dist/index.modern.js +3492 -1755
  51. package/dist/index.modern.js.map +1 -1
  52. package/dist/redux/.DS_Store +0 -0
  53. package/dist/redux/academies/reducer.d.ts +8 -2
  54. package/dist/redux/commons/reducer.d.ts +3 -1
  55. package/dist/theme/index.d.ts +2 -1
  56. package/dist/utils/.DS_Store +0 -0
  57. package/dist/utils/index.d.ts +2 -1
  58. package/dist/utils/types/exams.d.ts +5 -1
  59. package/package.json +4 -3
  60. package/dist/components/Chats/ChatHeader.d.ts +0 -25
  61. package/dist/components/Chats/ChatItem.d.ts +0 -31
  62. package/dist/components/Chats/ChatLeftItem.d.ts +0 -4
  63. package/dist/components/Chats/ChatList.d.ts +0 -14
  64. package/dist/components/Chats/ChatRightItem.d.ts +0 -4
  65. package/dist/components/Chats/InputChat.d.ts +0 -16
  66. package/dist/components/Chats/components/CustomTooltip.d.ts +0 -2
  67. package/dist/components/CkEditor/CkEditor.d.ts +0 -19
  68. package/dist/components/CkEditor/config.d.ts +0 -19
  69. package/dist/components/CkEditor/index.d.ts +0 -2
  70. package/dist/components/ErrorHandler.d.ts +0 -6
  71. package/dist/components/LabelRequired.d.ts +0 -8
  72. package/dist/components/List/List.d.ts +0 -7
  73. package/dist/containers/ExamResult/components/Dialog/CreateNewQuestion2.d.ts +0 -9
  74. package/dist/containers/ExamResult/components/MyAnswer/components/CreateNewQuestion.d.ts +0 -14
  75. package/dist/containers/ExamResult/components/Notes/components/ActionItem.d.ts +0 -7
  76. package/dist/containers/ExamResult/components/Notes/components/ActionsTooltip.d.ts +0 -14
  77. package/dist/containers/ExamResult/components/Notes/components/ContentTooltip.d.ts +0 -14
  78. package/dist/containers/ExamResult/components/Notes/components/NewNoteButton.d.ts +0 -6
  79. package/dist/containers/ExamResult/components/Notes/components/NoteItem.d.ts +0 -9
  80. package/dist/containers/ExamResult/components/Notes/components/NoteList.d.ts +0 -12
  81. package/dist/containers/ExamResult/components/Notes/configs/constants.d.ts +0 -2
  82. package/dist/containers/ExamResult/components/Notes/configs/interfaces.d.ts +0 -4
  83. package/dist/containers/ExamResult/components/Notes/hooks/useNotes.d.ts +0 -8
  84. package/dist/containers/ExamResult/components/Notes/styles/styles.d.ts +0 -67
  85. package/dist/containers/ExamResult/components/StudentNotes/components/ActionItem.d.ts +0 -7
  86. package/dist/containers/ExamResult/components/StudentNotes/components/ActionsTooltip.d.ts +0 -14
  87. package/dist/containers/ExamResult/components/StudentNotes/components/NewNoteButton.d.ts +0 -6
  88. package/dist/containers/ExamResult/components/StudentNotes/components/NoteItem.d.ts +0 -9
  89. package/dist/containers/ExamResult/components/StudentNotes/configs/constants.d.ts +0 -2
  90. package/dist/containers/ExamResult/components/StudentNotes/configs/interfaces.d.ts +0 -7
  91. package/dist/containers/ExamResult/components/StudentNotes/hooks/useStudentNotes.d.ts +0 -12
  92. package/dist/containers/ExamResult/components/StudentNotes/index.d.ts +0 -4
  93. package/dist/containers/ExamResult/components/StudentNotes/styles/styles.d.ts +0 -67
  94. package/dist/containers/ExamResult/hooks/useExamNoteDialog.d.ts +0 -18
  95. package/dist/containers/Exams/configs/types.d.ts +0 -22
  96. package/dist/containers/Login/views/LoginQRCode.d.ts +0 -10
  97. package/dist/containers/Notes/components/ActionItem.d.ts +0 -7
  98. package/dist/containers/Notes/components/ActionsTooltip.d.ts +0 -16
  99. package/dist/containers/Notes/components/NoteDialog.d.ts +0 -4
  100. package/dist/containers/PreparedTextbook/components/TextbookOwners.d.ts +0 -13
  101. package/dist/containers/Textbooks/components/TextbookShareDialog.d.ts +0 -26
  102. package/dist/containers/Users/components/Dialogs/DeleteUserCsvDialog.d.ts +0 -10
  103. package/dist/containers/Users/components/Dialogs/RecentUserActionDialog.d.ts +0 -9
  104. package/dist/containers/Users/components/Dialogs/UserDialog.d.ts +0 -12
  105. package/dist/utils/canAccessRoute.d.ts +0 -2
  106. package/dist/utils/diffFromNow.d.ts +0 -3
  107. package/dist/utils/encodeParams.d.ts +0 -2
  108. package/dist/utils/formatTime.d.ts +0 -4
  109. package/dist/utils/getAcademyDomain.d.ts +0 -2
  110. package/dist/utils/getAccessToken.d.ts +0 -2
  111. package/dist/utils/getErrorMessage.d.ts +0 -1
  112. package/dist/utils/getLanguage.d.ts +0 -2
  113. package/dist/utils/getLearningSpace.d.ts +0 -2
  114. package/dist/utils/getRedirectUrl.d.ts +0 -2
  115. package/dist/utils/helpers.d.ts +0 -22
  116. package/dist/utils/isLocalHost.d.ts +0 -2
  117. package/dist/utils/minutesToTimeSpan.d.ts +0 -2
  118. package/dist/utils/pusherTo.d.ts +0 -1
  119. package/dist/utils/times.d.ts +0 -6
  120. package/dist/utils/toISOString.d.ts +0 -2
  121. package/dist/utils/toLocalTime.d.ts +0 -1
  122. package/dist/utils/types/checkSuperUrl.d.ts +0 -1
  123. package/dist/utils/types.d.ts +0 -9
  124. package/dist/utils/utcToLocalTime.d.ts +0 -2
Binary file
@@ -1,5 +1,11 @@
1
1
  import { AcademyResponse } from "../../utils/types/academy";
2
- declare const commonReducer: import("@reduxjs/toolkit/dist/createReducer").ReducerWithInitialState<{
2
+ declare const commonReducer: import("redux").Reducer<{
3
3
  items: AcademyResponse[];
4
- }>;
4
+ }, import("redux").UnknownAction, {
5
+ items: AcademyResponse[];
6
+ }> & {
7
+ getInitialState: () => {
8
+ items: AcademyResponse[];
9
+ };
10
+ };
5
11
  export default commonReducer;
@@ -1,2 +1,4 @@
1
- declare const commonReducer: import("@reduxjs/toolkit/dist/createReducer").ReducerWithInitialState<any>;
1
+ declare const commonReducer: import("redux").Reducer<any, import("redux").UnknownAction, any> & {
2
+ getInitialState: () => any;
3
+ };
2
4
  export default commonReducer;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { PropsWithChildren } from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  interface PaletteColorOptionsCustom {
@@ -33,7 +34,7 @@ declare module '@mui/material/styles' {
33
34
  green_support: PaletteSupportColorOptionsCustom;
34
35
  }
35
36
  }
36
- declare function ThemeProvider({ children }: PropsWithChildren): import("react").JSX.Element;
37
+ declare function ThemeProvider({ children }: PropsWithChildren): React.JSX.Element;
37
38
  declare namespace ThemeProvider {
38
39
  var propTypes: {
39
40
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
Binary file
@@ -7,4 +7,5 @@ export * from "./functions";
7
7
  export * from "./hooks";
8
8
  export { useTranslation } from "react-i18next";
9
9
  export { moment, toast };
10
- export { LoginAccessTokenRequest, BaseSearchQuery, LoginRequest, LoginResponse, OrderBy, RecentUserActionQuery, RecentUserActionResponse, RecentUserActionSortBy, SearchQuery, TableHeaderType, User, UserResponse, UserSearchQuery, PagingResponse, Category, CategoryResponse, ConcurrentConnection, CourseInfo, ExamResult, Question, Student, Exam, ArticleGroup, QuestionResponse, NoteRequest, NoteResponse, QuestionData } from "./types";
10
+ export { OrderBy, RecentUserActionSortBy } from "./types";
11
+ export type { LoginAccessTokenRequest, BaseSearchQuery, LoginRequest, LoginResponse, RecentUserActionQuery, RecentUserActionResponse, SearchQuery, TableHeaderType, User, UserResponse, UserSearchQuery, PagingResponse, Category, CategoryResponse, ConcurrentConnection, CourseInfo, ExamResult, Question, Student, Exam, ArticleGroup, QuestionResponse, NoteRequest, NoteResponse, QuestionData } from "./types";
@@ -7,8 +7,12 @@ export declare type QuestionResponse = {
7
7
  categoryId?: number;
8
8
  article: number;
9
9
  questionOrder: number;
10
- questionAnswerType?: QuestionAnswerType;
10
+ questionAnswerType: QuestionAnswerType;
11
11
  textualAnswer?: string;
12
+ title?: string;
13
+ author?: string;
14
+ subject?: number;
15
+ type?: number;
12
16
  };
13
17
  export declare type Exam = {
14
18
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "touchstudy-core",
3
- "version": "0.1.127",
3
+ "version": "0.1.129",
4
4
  "description": "Contains core components && functions for TouchStudy project",
5
5
  "author": "brss",
6
6
  "license": "MIT",
@@ -17,9 +17,10 @@
17
17
  "@mui/material": "^5.14.12",
18
18
  "@mui/x-date-pickers": "^6.19.6",
19
19
  "@reduxjs/toolkit": "^2.0.1",
20
+ "@tinymce/tinymce-react": "^6.0.0",
21
+ "@wiris/mathtype-tinymce6": "^8.12.0",
20
22
  "axios": "^1.6.2",
21
23
  "better-react-mathjax": "^2.1.0",
22
- "ckeditor4-react": "5.2.0",
23
24
  "formik": "^2.4.5",
24
25
  "gapi-script": "^1.2.0",
25
26
  "html2pdf.js": "^0.10.2",
@@ -37,6 +38,7 @@
37
38
  "react-slick": "^0.29.0",
38
39
  "react-toastify": "^9.1.3",
39
40
  "react-virtualized": "^9.22.5",
41
+ "tinymce": "^7.7.0",
40
42
  "yup": "^1.3.3"
41
43
  },
42
44
  "peerDependencies": {
@@ -62,7 +64,6 @@
62
64
  "@testing-library/jest-dom": "^5.17.0",
63
65
  "@testing-library/react": "^13.4.0",
64
66
  "@testing-library/user-event": "^13.5.0",
65
- "@types/ckeditor4": "4.20.7",
66
67
  "@types/file-saver": "2.0.7",
67
68
  "@types/jest": "^27.5.2",
68
69
  "@types/lodash": "^4.14.202",
@@ -1,25 +0,0 @@
1
- import { FC } from "react";
2
- export interface IExamOption {
3
- id: number;
4
- code: string;
5
- title: string;
6
- createdAt: string;
7
- startTime: string;
8
- }
9
- export interface IChatHeaderProps {
10
- fullName?: string;
11
- examTitle?: string;
12
- createdAt?: string;
13
- durationExam?: string;
14
- score?: number | null;
15
- totalScore?: number | null;
16
- courseId?: number | null;
17
- category?: string | null;
18
- questionOrder?: number;
19
- conversationId?: number;
20
- isCompleted?: boolean;
21
- teacherName?: string;
22
- roles?: Array<string>;
23
- }
24
- declare const ChatHeader: FC<IChatHeaderProps>;
25
- export default ChatHeader;
@@ -1,31 +0,0 @@
1
- import { FC } from "react";
2
- import { StudentsConversationResponse } from "./configs/types";
3
- export interface IChatItemProps {
4
- id?: number;
5
- isMe?: boolean;
6
- avatar?: string;
7
- content?: string;
8
- createdAt: string;
9
- sender?: StudentsConversationResponse;
10
- isRead: boolean;
11
- contentType?: number;
12
- conversationId?: number;
13
- }
14
- export interface IChatItemWithActionProps extends IChatItemProps {
15
- onReTrySendMessage?: () => void;
16
- handleUpdateMessage: (conversationId: number, id: number, message: string, callback: any) => void;
17
- handleDeleteMessage: (conversationId: number, id: number, callback: any) => void;
18
- showTimestamp?: boolean;
19
- showName?: boolean;
20
- isStudent?: boolean;
21
- toggleImageDialog?: () => void;
22
- toggleConfirmDialog?: () => void;
23
- toggleUpdateDialog?: () => void;
24
- }
25
- export declare enum ChatItemType {
26
- Default = 0,
27
- Exam = 1,
28
- Class = 2
29
- }
30
- declare const ChatItem: FC<IChatItemWithActionProps>;
31
- export default ChatItem;
@@ -1,4 +0,0 @@
1
- import { FC } from "react";
2
- import { IChatItemWithActionProps } from "./ChatItem";
3
- declare const ChatLeftItem: FC<IChatItemWithActionProps>;
4
- export default ChatLeftItem;
@@ -1,14 +0,0 @@
1
- import React, { FC } from "react";
2
- import { IChatItemProps } from "./ChatItem";
3
- export interface IChatListProps {
4
- messages?: IChatItemProps[];
5
- onReTrySendMessage?: () => void;
6
- roles: Array<String>;
7
- handleUpdateMessage: (conversationId: number, id: number, message: string, callback: any) => Promise<void>;
8
- handleDeleteMessage: (conversationId: number, id: number, callback: any) => Promise<void>;
9
- }
10
- interface Props extends IChatListProps {
11
- listItemRef: React.RefObject<HTMLUListElement>;
12
- }
13
- declare const ChatList: FC<Props>;
14
- export default ChatList;
@@ -1,4 +0,0 @@
1
- import { FC } from "react";
2
- import { IChatItemWithActionProps } from "./ChatItem";
3
- declare const ChatRightItem: FC<IChatItemWithActionProps>;
4
- export default ChatRightItem;
@@ -1,16 +0,0 @@
1
- import React, { FC } from "react";
2
- import { MessageRequest } from "./configs/types";
3
- export interface IInputChatProps {
4
- text: string;
5
- onSubmit: () => void;
6
- onChangeInput: (text: string) => void;
7
- isCompleted?: boolean;
8
- handleUploadImage: (file: File) => void;
9
- selectedFile?: MessageRequest | null;
10
- handleDeleteSelectedImage: () => void;
11
- }
12
- interface Props extends IInputChatProps {
13
- inputRef: React.RefObject<HTMLInputElement>;
14
- }
15
- declare const InputChat: FC<Props>;
16
- export default InputChat;
@@ -1,2 +0,0 @@
1
- declare const CustomTooltip: any;
2
- export default CustomTooltip;
@@ -1,19 +0,0 @@
1
- import React from "react";
2
- interface Props {
3
- ref?: any;
4
- value: string;
5
- onChange: any;
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
- disabled: boolean;
17
- }
18
- declare const CkEditor: ({ ref, value, option, onBlur, onFocus, onChange, onAfterInsertHtml, onInsertElement, onInsertHtml, onInsertText, onDataReady, onSelectionChange, disabled, ...action }: Props) => React.JSX.Element;
19
- export default CkEditor;
@@ -1,19 +0,0 @@
1
- export declare const config: {
2
- height: number;
3
- allowedContent: boolean;
4
- toolbar: (string | string[] | {
5
- name: string;
6
- groups: string[];
7
- items: string[];
8
- } | {
9
- name: string;
10
- items: string[];
11
- groups?: undefined;
12
- } | {
13
- name: string;
14
- groups?: undefined;
15
- items?: undefined;
16
- })[];
17
- filebrowserImageUploadUrl: string;
18
- filebrowserUploadUrl: string;
19
- };
@@ -1,2 +0,0 @@
1
- import CkEditor from "./CkEditor";
2
- export { CkEditor };
@@ -1,6 +0,0 @@
1
- import { FC } from "react";
2
- interface Props {
3
- text: string;
4
- }
5
- declare const ErrorHandler: FC<Props>;
6
- export default ErrorHandler;
@@ -1,8 +0,0 @@
1
- import { FormLabelProps } from "@mui/material";
2
- import { FC } from "react";
3
- interface Props extends FormLabelProps {
4
- text: string;
5
- isRequired?: boolean;
6
- }
7
- declare const LabelRequired: FC<Props>;
8
- export default LabelRequired;
@@ -1,7 +0,0 @@
1
- import { FC, ReactElement } from "react";
2
- interface IListProps<T> {
3
- data: T[];
4
- render: (item: T, index: number) => ReactElement;
5
- }
6
- declare const List: FC<IListProps<any>>;
7
- export default List;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- declare type Props = {
3
- openCreateQuestionDialog: boolean;
4
- toggleCreateQuestion: () => void;
5
- handleCreateQuestion: any;
6
- examSessionId: number;
7
- };
8
- export default function CreateNewQuestionDialog({ handleCreateQuestion, openCreateQuestionDialog, toggleCreateQuestion, examSessionId }: Props): React.JSX.Element;
9
- export {};
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- declare type Props = {
3
- openCreateQuestionDialog: boolean;
4
- toggleCreateQuestion: () => void;
5
- handleCreateQuestion: any;
6
- questionOrderSelected?: number;
7
- examSessionId: number;
8
- questionOptions: {
9
- label: string;
10
- value: number;
11
- }[];
12
- };
13
- export default function CreateNewQuestionDialog({ handleCreateQuestion, openCreateQuestionDialog, toggleCreateQuestion, examSessionId, questionOrderSelected, questionOptions }: Props): React.JSX.Element;
14
- export {};
@@ -1,7 +0,0 @@
1
- import { FC } from "react";
2
- import { Action } from "./ActionsTooltip";
3
- interface Props extends Action {
4
- isLast?: boolean;
5
- }
6
- declare const ActionItem: FC<Props>;
7
- export default ActionItem;
@@ -1,14 +0,0 @@
1
- import { FC, MouseEvent } from "react";
2
- export declare type Action = {
3
- label: string;
4
- startIcon?: JSX.Element;
5
- endIcon?: JSX.Element;
6
- style?: object;
7
- textStyle?: object;
8
- onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
9
- };
10
- declare type Props = {
11
- actions: Action[];
12
- };
13
- declare const ActionsTooltip: FC<Props>;
14
- export default ActionsTooltip;
@@ -1,14 +0,0 @@
1
- import { FC } from "react";
2
- declare type Action = {
3
- label: string;
4
- startIcon?: JSX.Element;
5
- endIcon?: JSX.Element;
6
- onClick?: (event: any) => void;
7
- style?: object;
8
- textStyle?: object;
9
- };
10
- declare type Props = {
11
- actions: Action[];
12
- };
13
- declare const ActionsTooltip: FC<Props>;
14
- export default ActionsTooltip;
@@ -1,6 +0,0 @@
1
- import { FC, MouseEvent, PropsWithChildren } from "react";
2
- interface Props extends PropsWithChildren {
3
- onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
4
- }
5
- declare const NewNoteButton: FC<Props>;
6
- export default NewNoteButton;
@@ -1,9 +0,0 @@
1
- import { FC } from "react";
2
- import { NoteResponse } from "../../../../../utils/types/note";
3
- import { TooltipProps } from "../configs/interfaces";
4
- interface NoteItemProps extends TooltipProps<NoteResponse> {
5
- data: NoteResponse;
6
- openTooltip: boolean;
7
- }
8
- declare const NoteItem: FC<NoteItemProps>;
9
- export default NoteItem;
@@ -1,12 +0,0 @@
1
- import { FC, RefObject } from "react";
2
- import { NoteResponse } from "../../../../../utils/types/note";
3
- import { TooltipProps } from "../configs/interfaces";
4
- interface NoteListProps extends TooltipProps<NoteResponse> {
5
- data: NoteResponse[];
6
- selectedItem?: NoteResponse;
7
- observerTarget: RefObject<HTMLDivElement>;
8
- loading: boolean;
9
- onLoadMore: () => void;
10
- }
11
- declare const NoteList: FC<NoteListProps>;
12
- export default NoteList;
@@ -1,2 +0,0 @@
1
- import { NoteSearchQuery } from "../../../../Notes/configs/types";
2
- export declare const StudentNoteFilter: NoteSearchQuery;
@@ -1,4 +0,0 @@
1
- export interface TooltipProps<T> {
2
- onClose: () => void;
3
- onOpen: (note: T) => void;
4
- }
@@ -1,8 +0,0 @@
1
- import { NoteResponse } from "../../../../../utils/types/note";
2
- declare const useNotes: () => {
3
- t: any;
4
- selectedNote: NoteResponse | undefined;
5
- handleCloseTooltip: () => void;
6
- handleOpenTooltip: (note: NoteResponse) => void;
7
- };
8
- export default useNotes;
@@ -1,67 +0,0 @@
1
- export declare const NoteListStyles: {
2
- p: number;
3
- bgcolor: string;
4
- border: string;
5
- borderRadius: string;
6
- minHeight: string;
7
- };
8
- export declare const newButtonStyle: {
9
- color: string;
10
- borderColor: string;
11
- };
12
- export declare const NoteItemRootStyle: {
13
- bgcolor: string;
14
- paddingInline: number;
15
- paddingBlock: number;
16
- borderRadius: string;
17
- };
18
- export declare const NoteItemLeftTextStyle: {
19
- color: string;
20
- fontSize: string;
21
- fontWeight: number;
22
- };
23
- export declare const NoteItemMiddleTextStyle: {
24
- color: string;
25
- fontSize: string;
26
- fontWeight: number;
27
- };
28
- export declare const NoteItemContentTextStyle: {
29
- color: string;
30
- fontSize: string;
31
- fontWeight: number;
32
- };
33
- export declare const NoteItemRightTextStyle: {
34
- color: string;
35
- fontSize: string;
36
- fontWeight: number;
37
- };
38
- export declare const NoteItemStyles: {
39
- root: {
40
- bgcolor: string;
41
- paddingInline: number;
42
- paddingBlock: number;
43
- borderRadius: string;
44
- };
45
- text: {
46
- left: {
47
- color: string;
48
- fontSize: string;
49
- fontWeight: number;
50
- };
51
- middle: {
52
- color: string;
53
- fontSize: string;
54
- fontWeight: number;
55
- };
56
- right: {
57
- color: string;
58
- fontSize: string;
59
- fontWeight: number;
60
- };
61
- };
62
- contentText: {
63
- color: string;
64
- fontSize: string;
65
- fontWeight: number;
66
- };
67
- };
@@ -1,7 +0,0 @@
1
- import { FC } from "react";
2
- import { Action } from "./ActionsTooltip";
3
- interface Props extends Action {
4
- isLast?: boolean;
5
- }
6
- declare const ActionItem: FC<Props>;
7
- export default ActionItem;
@@ -1,14 +0,0 @@
1
- import { FC, MouseEvent } from "react";
2
- export declare type Action = {
3
- label: string;
4
- startIcon?: JSX.Element;
5
- endIcon?: JSX.Element;
6
- style?: object;
7
- textStyle?: object;
8
- onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
9
- };
10
- declare type Props = {
11
- actions: Action[];
12
- };
13
- declare const ActionsTooltip: FC<Props>;
14
- export default ActionsTooltip;
@@ -1,6 +0,0 @@
1
- import { FC, MouseEvent, PropsWithChildren } from "react";
2
- interface Props extends PropsWithChildren {
3
- onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
4
- }
5
- declare const NewNoteButton: FC<Props>;
6
- export default NewNoteButton;
@@ -1,9 +0,0 @@
1
- import { FC } from "react";
2
- import { NoteResponse } from "../../../../../utils/types/note";
3
- import { TooltipProps } from "../configs/interfaces";
4
- interface NoteItemProps extends TooltipProps<NoteResponse> {
5
- data: NoteResponse;
6
- openTooltip: boolean;
7
- }
8
- declare const NoteItem: FC<NoteItemProps>;
9
- export default NoteItem;
@@ -1,2 +0,0 @@
1
- import { NoteSearchQuery } from "../../../../Notes/configs/types";
2
- export declare const StudentNoteFilter: NoteSearchQuery;
@@ -1,7 +0,0 @@
1
- export interface TooltipProps<T> {
2
- onClose: () => void;
3
- onOpen: (note: T) => void;
4
- }
5
- export interface StudentNotesProps {
6
- examCode?: string;
7
- }
@@ -1,12 +0,0 @@
1
- import { NoteResponse } from "../../../../../utils/types/note";
2
- import { StudentNotesProps } from "../configs/interfaces";
3
- declare const useStudentNotes: ({ examCode }: StudentNotesProps) => {
4
- t: any;
5
- notes: NoteResponse[];
6
- isLoading: boolean;
7
- selectedNote: NoteResponse | undefined;
8
- handleLoadMore: () => void;
9
- handleCloseTooltip: () => void;
10
- handleOpenTooltip: (note: NoteResponse) => void;
11
- };
12
- export default useStudentNotes;
@@ -1,4 +0,0 @@
1
- import { FC } from "react";
2
- import { StudentNotesProps } from "./configs/interfaces";
3
- declare const StudentNotes: FC<StudentNotesProps>;
4
- export default StudentNotes;
@@ -1,67 +0,0 @@
1
- export declare const NoteListStyles: {
2
- p: number;
3
- bgcolor: string;
4
- border: string;
5
- borderRadius: string;
6
- minHeight: string;
7
- };
8
- export declare const newButtonStyle: {
9
- color: string;
10
- borderColor: string;
11
- };
12
- export declare const NoteItemRootStyle: {
13
- bgcolor: string;
14
- paddingInline: number;
15
- paddingBlock: number;
16
- borderRadius: string;
17
- };
18
- export declare const NoteItemLeftTextStyle: {
19
- color: string;
20
- fontSize: string;
21
- fontWeight: number;
22
- };
23
- export declare const NoteItemMiddleTextStyle: {
24
- color: string;
25
- fontSize: string;
26
- fontWeight: number;
27
- };
28
- export declare const NoteItemContentTextStyle: {
29
- color: string;
30
- fontSize: string;
31
- fontWeight: number;
32
- };
33
- export declare const NoteItemRightTextStyle: {
34
- color: string;
35
- fontSize: string;
36
- fontWeight: number;
37
- };
38
- export declare const NoteItemStyles: {
39
- root: {
40
- bgcolor: string;
41
- paddingInline: number;
42
- paddingBlock: number;
43
- borderRadius: string;
44
- };
45
- text: {
46
- left: {
47
- color: string;
48
- fontSize: string;
49
- fontWeight: number;
50
- };
51
- middle: {
52
- color: string;
53
- fontSize: string;
54
- fontWeight: number;
55
- };
56
- right: {
57
- color: string;
58
- fontSize: string;
59
- fontWeight: number;
60
- };
61
- };
62
- contentText: {
63
- color: string;
64
- fontSize: string;
65
- fontWeight: number;
66
- };
67
- };
@@ -1,18 +0,0 @@
1
- import { MouseEvent } from "react";
2
- import { Question } from "../../../utils";
3
- import { QuestionData } from "../../../utils/types";
4
- declare const useCreateQuestionDialog: (handleSelectQuestion: (question?: QuestionData | undefined) => void) => {
5
- questionIdContextMenu: number | undefined;
6
- isOpenQuestionDialog: boolean;
7
- setOpenQuestionDialog: import("react").Dispatch<import("react").SetStateAction<boolean>>;
8
- handleOpenQuestionContextMenu: (question: Question) => void;
9
- handleOpenQuestionDialog: (_: MouseEvent<HTMLButtonElement>, question: Question) => void;
10
- handleCloseQuestionDialog: () => void;
11
- handleCreateQuestion: ({ content, examSessionId, questionId }: {
12
- content: string;
13
- examSessionId: number;
14
- questionId: number;
15
- }) => Promise<void>;
16
- handleCloseQuestionContextMenu: () => void;
17
- };
18
- export default useCreateQuestionDialog;
@@ -1,22 +0,0 @@
1
- export declare type Question = {
2
- id?: number;
3
- numberOfAnswers: number;
4
- correctAnswers: number[];
5
- score: number;
6
- categoryId?: number;
7
- article: number;
8
- questionOrder: number;
9
- };
10
- export declare type Exam = {
11
- title: string;
12
- subjectId: number;
13
- duration: number;
14
- questions: Question[];
15
- };
16
- export declare type ArticleGroup = {
17
- article: number;
18
- categoryId?: number;
19
- answerCount: number;
20
- questionCount: number;
21
- questions: Question[];
22
- };