mario-education 2.4.249-release → 2.4.251-release
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/MarioFramework.Education/ClientApp/src/components/Dialog/ConfirmDelete.d.ts +9 -0
- package/dist/MarioFramework.Education/ClientApp/src/components/Header/HeaderComponent.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/ConductSurvey/hooks/usePreviewSurvey.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/apiClient/surveyService.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/components/dialog/DialogChooseTeacher.d.ts +10 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/constants.d.ts +5 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/types.d.ts +2 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/hooks/useListSurvey.d.ts +8 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/UserRevert/hooks/useRevertUser.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/services/revertUserService.d.ts +1 -0
- package/dist/index.css +5300 -5300
- package/dist/index.js +243 -54
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +244 -55
- package/dist/index.modern.js.map +1 -1
- package/package.json +104 -104
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/components/ImportOneRoster.d.ts +0 -6
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/components/RosterConfigForm.d.ts +0 -8
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/hooks/useImportOneRoster.d.ts +0 -28
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/hooks/userRosterConfigForm.d.ts +0 -7
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/utils/constants.d.ts +0 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/utils/types.d.ts +0 -5
- package/dist/MarioFramework.Education/ClientApp/src/containers/OneRoster/views/OneRoster.d.ts +0 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface PropsType {
|
|
2
|
+
open: boolean;
|
|
3
|
+
selectedId: number;
|
|
4
|
+
handleCloseModalConfirmDelete: () => void;
|
|
5
|
+
handleDelete: (selectedId: number) => Promise<void>;
|
|
6
|
+
content: string;
|
|
7
|
+
}
|
|
8
|
+
declare const ConfirmDelete: ({ open, handleCloseModalConfirmDelete, handleDelete, selectedId, content }: PropsType) => JSX.Element;
|
|
9
|
+
export default ConfirmDelete;
|
|
@@ -28,5 +28,6 @@ declare const usePreviewSurvey: () => {
|
|
|
28
28
|
studentShareId: number | undefined;
|
|
29
29
|
setStudentShareId: import("react").Dispatch<import("react").SetStateAction<number | undefined>>;
|
|
30
30
|
teacherUserId: string | null;
|
|
31
|
+
isPreviewSurvey: boolean;
|
|
31
32
|
};
|
|
32
33
|
export default usePreviewSurvey;
|
|
@@ -16,6 +16,7 @@ export declare const shareSurvey: (data: any) => void;
|
|
|
16
16
|
export declare const importCsv: (formData: FormData) => Promise<import("axios").AxiosResponse<any>>;
|
|
17
17
|
export declare const downloadTemplateFile: () => Promise<import("axios").AxiosResponse<any>>;
|
|
18
18
|
export declare const updateSurvey: (surveyId: number, model: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
19
|
+
export declare const deleteSurvey: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
19
20
|
export declare const getListExternal: (surveyId: number, params: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
20
21
|
export declare const getListQuestionSurvey: (params: any, surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
21
22
|
export declare const getSurveyDetail: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
studentId?: number;
|
|
3
|
+
isTeacherStart?: string;
|
|
4
|
+
setIsTeacherStart?: Function;
|
|
5
|
+
setStudentId?: Function;
|
|
6
|
+
onClickStart?: Function;
|
|
7
|
+
handleClose?: any;
|
|
8
|
+
}
|
|
9
|
+
declare const DialogChooseTeacher: ({ handleClose, }: Props) => JSX.Element;
|
|
10
|
+
export default DialogChooseTeacher;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/configs/types.d.ts
CHANGED
|
@@ -298,6 +298,7 @@ export interface SURVEY_LIST {
|
|
|
298
298
|
isFavorite: boolean;
|
|
299
299
|
status: SurveyEnum;
|
|
300
300
|
createdBy: string;
|
|
301
|
+
studentIds?: number[];
|
|
301
302
|
}
|
|
302
303
|
export interface FILTER_OVERVIEW_SURVEY {
|
|
303
304
|
startDate: number;
|
|
@@ -530,6 +531,7 @@ export interface FilterStudentFlag {
|
|
|
530
531
|
startDate?: number | null;
|
|
531
532
|
endDate?: number | null;
|
|
532
533
|
type?: FLAG_TYPES;
|
|
534
|
+
isAdmin?: boolean;
|
|
533
535
|
}
|
|
534
536
|
export interface FilterStudentFlag {
|
|
535
537
|
currentPage: number;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FILTER_SURVEY, SURVEY_RESPONSE, TOTAL_TYPE } from "../configs/types";
|
|
3
|
+
import { TYPE_SURVEY_OPTION } from "../configs/constants";
|
|
3
4
|
import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
|
|
4
5
|
declare const useListSurvey: () => {
|
|
5
6
|
itemSelectedId: number;
|
|
7
|
+
itemSelectedStudentId: number;
|
|
6
8
|
changeFilters: (updatedFilters: any) => void;
|
|
7
9
|
filters: FILTER_SURVEY;
|
|
8
10
|
listSurvey: SURVEY_RESPONSE | undefined;
|
|
@@ -16,7 +18,7 @@ declare const useListSurvey: () => {
|
|
|
16
18
|
handleChangeRowsPerPage: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
17
19
|
handleChangePage: (_event: unknown, newPage: number) => void;
|
|
18
20
|
handleChangePageCreate: () => void;
|
|
19
|
-
open: (surveyId: number) => void;
|
|
21
|
+
open: (type: TYPE_SURVEY_OPTION, surveyId: number) => void;
|
|
20
22
|
handleChangeInputSearch: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
21
23
|
handleSelectFavorite: (isFavorite: boolean) => void;
|
|
22
24
|
handleSort: (e: string) => void;
|
|
@@ -30,9 +32,13 @@ declare const useListSurvey: () => {
|
|
|
30
32
|
anchorEl: HTMLButtonElement | null;
|
|
31
33
|
popoverId: string | undefined;
|
|
32
34
|
openPopover: boolean;
|
|
33
|
-
handleClickAction: (event: React.MouseEvent<HTMLButtonElement>, id: number) => void;
|
|
35
|
+
handleClickAction: (event: React.MouseEvent<HTMLButtonElement>, id: number, studentId?: number | undefined) => void;
|
|
34
36
|
handleCloseAction: () => void;
|
|
35
37
|
handleDownloadCsv: () => void;
|
|
36
38
|
handleDownloadCsvSurvey: (id: number) => void;
|
|
39
|
+
showModalDeleteSurvey: boolean;
|
|
40
|
+
handleCloseModalConfirmDelete: () => void;
|
|
41
|
+
handleDeleteSurvey: (surveyId: any) => Promise<void>;
|
|
42
|
+
nameSurvey: string | undefined;
|
|
37
43
|
};
|
|
38
44
|
export default useListSurvey;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/UserRevert/hooks/useRevertUser.d.ts
CHANGED
|
@@ -9,5 +9,6 @@ declare const useRevertUser: () => {
|
|
|
9
9
|
userTo: Student | null;
|
|
10
10
|
setUserTo: import("react").Dispatch<import("react").SetStateAction<Student | null>>;
|
|
11
11
|
handelMergeDataUser: () => Promise<void>;
|
|
12
|
+
handelResetAcademicYear: () => Promise<void>;
|
|
12
13
|
};
|
|
13
14
|
export default useRevertUser;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export declare const revertUser: (id: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
2
2
|
export declare const mergeData: (fromId: string, toId: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
3
|
+
export declare const resetAcademicYear: () => Promise<import("axios").AxiosResponse<any>>;
|