touchstudy-core 0.1.113 → 0.1.115
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/containers/Classes/configs/interfaces.d.ts +1 -1
- package/dist/containers/Classes/hooks/useClassDetail.d.ts +5 -4
- package/dist/containers/PreparedExam/components/Textbook.d.ts +4 -2
- package/dist/containers/PreparedExam/components/dialogs/TextbookInfoDrawer.d.ts +3 -1
- package/dist/containers/PreparedExam/configs/types.d.ts +1 -0
- package/dist/containers/PreparedExam/hooks/usePreparedExam.d.ts +3 -0
- package/dist/containers/PreparedTextbook/configs/types.d.ts +1 -0
- package/dist/containers/PreparedTextbook/hooks/useTextbookManagement.d.ts +2 -2
- package/dist/containers/PreparedTextbook/views/PreparedTextbook.d.ts +2 -1
- package/dist/containers/PreparedTextbook/views/PreparedTextbookList.d.ts +4 -2
- package/dist/containers/Textbooks/configs/constants.d.ts +0 -3
- package/dist/containers/Textbooks/configs/types.d.ts +1 -0
- package/dist/containers/Textbooks/hooks/useTextbookList.d.ts +2 -2
- package/dist/containers/Textbooks/hooks/useTextbookShare.d.ts +2 -1
- package/dist/containers/Textbooks/views/TextbookDetail.d.ts +2 -0
- package/dist/containers/Textbooks/views/TextbookList.d.ts +4 -1
- package/dist/index.js +330 -411
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +331 -412
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FormikProps } from "formik";
|
2
2
|
import { ClassRequest, LessonRequest, TeacherSimpleResponse } from "./types";
|
3
3
|
export interface ClassFormProps {
|
4
|
-
|
4
|
+
classId?: number;
|
5
5
|
history: any;
|
6
6
|
formikProp: FormikProps<ClassRequest>;
|
7
7
|
teachers: TeacherSimpleResponse[];
|
@@ -7,12 +7,13 @@ import { PagingResponse } from "../../../utils/types/pagingResponse";
|
|
7
7
|
import { UserSortColumn } from "../../../utils/enums";
|
8
8
|
import { Role } from "../../../utils";
|
9
9
|
declare type DialogOpenType = "Student" | "Teacher" | "Lesson";
|
10
|
-
declare const useClassDetail: ({ history,
|
10
|
+
declare const useClassDetail: ({ history, classId, role, classListUrl }: {
|
11
11
|
history: any;
|
12
|
-
|
12
|
+
classId: number;
|
13
13
|
role: Role;
|
14
|
+
classListUrl: string;
|
14
15
|
}) => {
|
15
|
-
|
16
|
+
classId: number;
|
16
17
|
schema: import("yup").ObjectSchema<{
|
17
18
|
name: string;
|
18
19
|
startDate: Date;
|
@@ -30,7 +31,7 @@ declare const useClassDetail: ({ history, id, role }: {
|
|
30
31
|
mainTeacherId: undefined;
|
31
32
|
courseWeeklyDays: "";
|
32
33
|
}, "">;
|
33
|
-
|
34
|
+
isDisabled: boolean;
|
34
35
|
paging: PagingResponse;
|
35
36
|
filter: import("../../../utils").BaseSearchQuery<UserSortColumn>;
|
36
37
|
isTeacher: boolean;
|
@@ -3,13 +3,15 @@ import { Theme } from "@mui/material";
|
|
3
3
|
import { PreparedFilterType, PreparedType, Textbook } from "../configs/types";
|
4
4
|
declare type Props = {
|
5
5
|
t: any;
|
6
|
+
user: any;
|
6
7
|
theme: Theme;
|
7
8
|
textbook: Textbook;
|
8
|
-
|
9
|
+
isStudent: boolean;
|
10
|
+
isSuperAdmin: boolean;
|
9
11
|
navigate?: any;
|
10
12
|
preparedType?: PreparedType;
|
11
13
|
preparedFilterType?: PreparedFilterType;
|
12
14
|
getTextbookList: () => void;
|
13
15
|
};
|
14
|
-
declare const Textbook: ({ t, theme, textbook,
|
16
|
+
declare const Textbook: ({ t, user, theme, textbook, isStudent, isSuperAdmin, navigate, preparedType, preparedFilterType, getTextbookList }: Props) => React.JSX.Element;
|
15
17
|
export default Textbook;
|
@@ -3,11 +3,13 @@ import { PreparedType } from "../../../../utils";
|
|
3
3
|
import { PreparedFilterType } from "../../configs/types";
|
4
4
|
declare type Props = {
|
5
5
|
isOpen: boolean;
|
6
|
+
user: any;
|
7
|
+
isSuperAdmin: boolean;
|
6
8
|
onClose: Function;
|
7
9
|
textbookId?: number;
|
8
10
|
navigate?: any;
|
9
11
|
preparedType?: PreparedType;
|
10
12
|
preparedFilterType?: PreparedFilterType;
|
11
13
|
};
|
12
|
-
declare const TextbookInfoDrawer: ({ isOpen, onClose, textbookId, navigate, preparedType, preparedFilterType }: Props) => React.JSX.Element;
|
14
|
+
declare const TextbookInfoDrawer: ({ user, isSuperAdmin, isOpen, onClose, textbookId, navigate, preparedType, preparedFilterType }: Props) => React.JSX.Element;
|
13
15
|
export default TextbookInfoDrawer;
|
@@ -14,7 +14,10 @@ declare const usePreparedExam: ({ handleCloseExpand, preparedType, preparedFilte
|
|
14
14
|
isKor: boolean;
|
15
15
|
paging: PagingResponse;
|
16
16
|
user: any;
|
17
|
+
isAdmin: any;
|
17
18
|
isTeacher: any;
|
19
|
+
isStudent: any;
|
20
|
+
isSuperAdmin: any;
|
18
21
|
monthOptions: {
|
19
22
|
label: string | undefined;
|
20
23
|
value: number;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { Textbook } from "../configs/types";
|
2
2
|
declare type Props = {
|
3
|
-
navigate: any;
|
4
3
|
textbookId?: string;
|
4
|
+
onNavigateList: () => void;
|
5
5
|
};
|
6
|
-
declare const useTextbookManagement: ({
|
6
|
+
declare const useTextbookManagement: ({ textbookId, onNavigateList }: Props) => {
|
7
7
|
t: any;
|
8
8
|
theme: import("@mui/material").Theme;
|
9
9
|
history: History;
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import React from "react";
|
2
|
+
import { TextbookResponse } from "../configs/types";
|
2
3
|
declare type Props = {
|
3
|
-
|
4
|
+
onNavigteCreate: () => void;
|
5
|
+
onNavigateDetail: (data: TextbookResponse) => void;
|
4
6
|
};
|
5
|
-
declare const PreparedTextbookList: ({
|
7
|
+
declare const PreparedTextbookList: ({ onNavigateDetail, onNavigteCreate }: Props) => React.JSX.Element;
|
6
8
|
export default PreparedTextbookList;
|
@@ -18,8 +18,5 @@ export declare const TEXTBOOK_PAGE_TITLE: string;
|
|
18
18
|
export declare const TEXT_BOOK_SEARCH_PLACEHOLDER: string;
|
19
19
|
export declare const TEACHER_SEARCH_PLACEHOLDER: string;
|
20
20
|
export declare const TextbookDefaultQuery: TextbookSearchQuery;
|
21
|
-
export declare const TEXTBOOK_URL = "/teacher/teacher-admin/textbooks";
|
22
|
-
export declare const ADMIN_TEXTBOOK_URL = "/textbooks";
|
23
|
-
export declare const SUPER_ADMIN_TEXTBOOK_URL = "/personal/textbooks";
|
24
21
|
export declare const DEFAULT_TEXTBOOK: TextbookDetailResponse;
|
25
22
|
export declare const DEFAULT_ARTICLE_CREATE_REQUEST: ArticleCreateRequest;
|
@@ -12,8 +12,8 @@ declare const useTextbookList: (props: TextbookListProps) => {
|
|
12
12
|
handleChangeSearchText: (e: import("react").ChangeEvent<HTMLInputElement>) => void;
|
13
13
|
handleChangePage: (_: any, page: number) => void;
|
14
14
|
calcOrderNumber: (index: number) => number;
|
15
|
-
handleViewTextbook: (
|
16
|
-
handleUpdateTextbook: (
|
15
|
+
handleViewTextbook: (data: TextbookResponse) => void;
|
16
|
+
handleUpdateTextbook: (data: TextbookResponse) => void;
|
17
17
|
handleCreateTextbook: () => void;
|
18
18
|
toggleConfirmDialog: () => void;
|
19
19
|
handleDeleteTextbook: () => Promise<void>;
|
@@ -30,7 +30,8 @@ declare const useTextbookShare: (props: TextbookShareProps) => {
|
|
30
30
|
isUpdate: boolean;
|
31
31
|
handleUpdateSharedTextbook: (teacherIds: number[], textbookId: number) => Promise<void>;
|
32
32
|
currentModel: TextbookResponse | undefined;
|
33
|
-
|
33
|
+
enabledSave: (textbook: TextbookResponse) => any;
|
34
|
+
enabledShare: (textbook: TextbookResponse) => any;
|
34
35
|
isAdmin: any;
|
35
36
|
isAdminSite: boolean;
|
36
37
|
};
|
@@ -7,6 +7,8 @@ export interface TextbookDetailProps {
|
|
7
7
|
id: string;
|
8
8
|
isSuperAdmin: any;
|
9
9
|
as?: any;
|
10
|
+
onNavigateDetail?: (data: any, readOnly?: boolean, replace?: boolean) => void;
|
11
|
+
onNavigateList: (replace?: boolean) => void;
|
10
12
|
className?: string;
|
11
13
|
}
|
12
14
|
declare const TextbookViewDetail: FC<TextbookDetailProps>;
|
@@ -1,9 +1,12 @@
|
|
1
|
+
import { TextbookResponse } from "../configs/types";
|
1
2
|
import { FC } from "react";
|
2
3
|
import { Role } from "../../../utils/constants";
|
3
4
|
export interface TextbookListProps {
|
4
5
|
role: Role;
|
5
|
-
|
6
|
+
onNavigateCreate?: () => void;
|
7
|
+
onNavigateDetail: (data: TextbookResponse, readOnly?: boolean, replace?: boolean) => void;
|
6
8
|
isSuperAdmin: any;
|
9
|
+
createable?: boolean;
|
7
10
|
}
|
8
11
|
declare const TextbookList: FC<TextbookListProps>;
|
9
12
|
export default TextbookList;
|