mario-education 2.4.404-multi → 2.4.405-multi
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/components/Loading/LoadLanguage.d.ts +3 -0
- package/dist/components/layouts/HeaderSideBar.d.ts +2 -0
- package/dist/components/layouts/NotificationStepLogin.d.ts +14 -0
- package/dist/components/layouts/type.d.ts +20 -0
- package/dist/containers/ExternalApi/components/DetailTokenModel.d.ts +3 -0
- package/dist/containers/ExternalApi/components/PermissionSelected.d.ts +3 -0
- package/dist/containers/ExternalApi/configs/contants.d.ts +3 -0
- package/dist/containers/ExternalApi/configs/types.d.ts +24 -0
- package/dist/containers/ExternalApi/hooks/useExternalApi.d.ts +12 -0
- package/dist/containers/ExternalApi/views/ExternalApi.d.ts +2 -0
- package/dist/containers/SkillTest/components/SettingSkillTestModal.d.ts +14 -0
- package/dist/containers/SkillTest/hook/useSkillTest.d.ts +19 -0
- package/dist/containers/SkillTest/utils/constant.d.ts +17 -0
- package/dist/containers/SkillTest/utils/type.interface.d.ts +7 -0
- package/dist/containers/SkillTest/utils/ultis.d.ts +8 -0
- package/dist/containers/SkillTest/view/SkillTest.d.ts +2 -0
- package/dist/containers/SwitchTeacher/hooks/useSwitchTeacher.d.ts +9 -0
- package/dist/index.css +5370 -5370
- package/dist/index.js +536 -661
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +537 -662
- package/dist/index.modern.js.map +1 -1
- package/dist/services/externalApi.d.ts +4 -0
- package/dist/services/skillTestServices.d.ts +5 -0
- package/dist/services/userDeletedService.d.ts +1 -0
- package/package.json +104 -104
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
step: number;
|
|
4
|
+
title: string;
|
|
5
|
+
message: string;
|
|
6
|
+
onStepNext: Function;
|
|
7
|
+
totalStep: number;
|
|
8
|
+
isOpenNotificationBanner?: boolean;
|
|
9
|
+
onOpenNavigationItem?: Function;
|
|
10
|
+
openNavigationItem?: object;
|
|
11
|
+
navigations?: any;
|
|
12
|
+
}
|
|
13
|
+
declare const NotificationStepLogin: FC<Props>;
|
|
14
|
+
export default NotificationStepLogin;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const LIST_TEACHER_STEP_POPUP: {
|
|
2
|
+
id: number;
|
|
3
|
+
title: string;
|
|
4
|
+
message: string;
|
|
5
|
+
}[];
|
|
6
|
+
export declare const LIST_ASSISTANT_STEP_POPUP: {
|
|
7
|
+
id: number;
|
|
8
|
+
title: string;
|
|
9
|
+
message: string;
|
|
10
|
+
}[];
|
|
11
|
+
export declare const LIST_STUDENT_STEP_POPUP: {
|
|
12
|
+
id: number;
|
|
13
|
+
title: string;
|
|
14
|
+
message: string;
|
|
15
|
+
}[];
|
|
16
|
+
export declare const STEP_PROFILE: {
|
|
17
|
+
id: number;
|
|
18
|
+
title: string;
|
|
19
|
+
message: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface IPermission {
|
|
2
|
+
checkIns: string[];
|
|
3
|
+
conferences: string[];
|
|
4
|
+
classReflections: string[];
|
|
5
|
+
surveys: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface IAccessToken {
|
|
8
|
+
permission: IPermission;
|
|
9
|
+
token: string;
|
|
10
|
+
createDate: string;
|
|
11
|
+
id?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface IDetailTokenModel {
|
|
14
|
+
open: boolean;
|
|
15
|
+
children: JSX.Element | JSX.Element[];
|
|
16
|
+
toggle: Function;
|
|
17
|
+
isCreate: boolean;
|
|
18
|
+
onConfirm: Function;
|
|
19
|
+
}
|
|
20
|
+
export interface IPermissionSelected {
|
|
21
|
+
name: string;
|
|
22
|
+
permission: string[];
|
|
23
|
+
onChange: Function;
|
|
24
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IAccessToken } from "../configs/types";
|
|
2
|
+
declare const useExternalApi: () => {
|
|
3
|
+
generateToken: (isCreate: boolean) => Promise<void>;
|
|
4
|
+
tokens: IAccessToken[];
|
|
5
|
+
changeFilters: (updatedFilters: any) => void;
|
|
6
|
+
filters: import("mario-core/dist").Filter;
|
|
7
|
+
removeToken: (id: number) => Promise<void>;
|
|
8
|
+
goToDetailToken: (token: IAccessToken | null) => void;
|
|
9
|
+
tokenDetail: IAccessToken | null;
|
|
10
|
+
handleChangePermission: (property: string, value: string) => void;
|
|
11
|
+
};
|
|
12
|
+
export default useExternalApi;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { ISkillTest, ISkillTestReponse } from "../../../utils/serviceType.interface";
|
|
3
|
+
import { ISkillTestDetail } from "../utils/type.interface";
|
|
4
|
+
export interface IProps {
|
|
5
|
+
ref: any;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
isEdit?: boolean;
|
|
8
|
+
onConfirm: (values: ISkillTestDetail) => void;
|
|
9
|
+
onCancel: () => void;
|
|
10
|
+
value: ISkillTest;
|
|
11
|
+
skillTestList: ISkillTestReponse;
|
|
12
|
+
}
|
|
13
|
+
declare const SettingSkillTestModal: FC<IProps>;
|
|
14
|
+
export default SettingSkillTestModal;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ISkillTestReponse, IFilter, ISkillTest } from "../../../utils/serviceType.interface";
|
|
2
|
+
import { ISkillTestDetail } from "../utils/type.interface";
|
|
3
|
+
declare const useSkillTest: () => {
|
|
4
|
+
currItem: ISkillTestDetail;
|
|
5
|
+
skillTestList: ISkillTestReponse;
|
|
6
|
+
isOpenModal: boolean;
|
|
7
|
+
openModalCreate: () => void;
|
|
8
|
+
getSkillTestList: () => Promise<void>;
|
|
9
|
+
openModalEdit: (item: ISkillTestDetail) => void;
|
|
10
|
+
openModalRemove: (id: number) => void;
|
|
11
|
+
addSkillTest: (data: ISkillTestDetail) => Promise<void>;
|
|
12
|
+
editSkillTest: (item: ISkillTest, data: ISkillTest) => Promise<void>;
|
|
13
|
+
deleteSkillTest: (id: number) => Promise<void>;
|
|
14
|
+
onCancelModal: () => void;
|
|
15
|
+
onConfirm: (value: ISkillTest) => Promise<void>;
|
|
16
|
+
filter: IFilter;
|
|
17
|
+
changeFilters: (filters: IFilter) => void;
|
|
18
|
+
};
|
|
19
|
+
export default useSkillTest;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const INIT_SKILL_TEST: {
|
|
2
|
+
currentPage: number;
|
|
3
|
+
items: never[];
|
|
4
|
+
pageSize: number;
|
|
5
|
+
totalItems: number;
|
|
6
|
+
totalPages: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const INIT_FILTER: {
|
|
9
|
+
currentPage: number;
|
|
10
|
+
pageSize: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const INIT_SKILL_TEST_ITEM: {
|
|
13
|
+
id: number;
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
parentSkillId: number;
|
|
17
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ISkillTest } from "../../../utils/serviceType.interface";
|
|
2
|
+
import { ISkillTestDetail } from "./type.interface";
|
|
3
|
+
export declare const schemaDestination: import("yup/lib/object").OptionalObjectSchema<{
|
|
4
|
+
name: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
5
|
+
}, Record<string, any>, import("yup/lib/object").TypeOfShape<{
|
|
6
|
+
name: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
|
7
|
+
}>>;
|
|
8
|
+
export declare const initEditSkillTest: (skillTest: ISkillTest[], item: ISkillTestDetail) => ISkillTest;
|
|
@@ -6,6 +6,11 @@ export declare type USER_CHOICE = {
|
|
|
6
6
|
teacherUserId: string;
|
|
7
7
|
emailTeacher: string;
|
|
8
8
|
teacherName: string;
|
|
9
|
+
teachers: any[];
|
|
10
|
+
};
|
|
11
|
+
export declare type TeacherGroup = {
|
|
12
|
+
teacher: any;
|
|
13
|
+
teacherChange: any;
|
|
9
14
|
};
|
|
10
15
|
export declare const initialUserChoice: {
|
|
11
16
|
id: string;
|
|
@@ -14,6 +19,7 @@ export declare const initialUserChoice: {
|
|
|
14
19
|
teacherUserId: string;
|
|
15
20
|
emailTeacher: string;
|
|
16
21
|
teacherName: string;
|
|
22
|
+
teachers: never[];
|
|
17
23
|
};
|
|
18
24
|
declare const useSwitchTeacher: () => {
|
|
19
25
|
userList: USER_CHOICE[];
|
|
@@ -34,5 +40,8 @@ declare const useSwitchTeacher: () => {
|
|
|
34
40
|
teacherChangeId: string;
|
|
35
41
|
removeData: (teacherUserId: number, studentId: number) => Promise<void>;
|
|
36
42
|
resetData: () => void;
|
|
43
|
+
setTeacherGroupId: import("react").Dispatch<import("react").SetStateAction<TeacherGroup>>;
|
|
44
|
+
teacherGroupId: TeacherGroup;
|
|
45
|
+
updateSwitchTeacher: (teachers: TeacherGroup, studentId: number) => Promise<void>;
|
|
37
46
|
};
|
|
38
47
|
export default useSwitchTeacher;
|