mario-education 2.4.248-release → 2.4.250-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/Dashboard/hooks/useDashboard.d.ts +3 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/SurveyDashboard/apiClient/surveyService.d.ts +1 -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 +1 -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.js +346 -130
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +347 -131
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
|
@@ -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;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { DashboardFilter, IActivityCircle, IlearningStrategies, IReadinessToLearning, IStudentByGrade, IStudentBySpecialNeed, IsyntheticFriendCircle, BAND_SCORE, IStudentByAge, IStudentByGender, IDashboardToTalStudent, IQuestionResponseLastMonth, IStudentPressure, IOverallReadinessToLearn } from "../configs/types";
|
|
2
|
+
import { DashboardFilter, IActivityCircle, IlearningStrategies, IReadinessToLearning, IStudentByGrade, IStudentBySpecialNeed, IsyntheticFriendCircle, BAND_SCORE, IStudentByAge, IStudentByGender, IDashboardToTalStudent, IQuestionResponseLastMonth, IStudentPressure, IOverallReadinessToLearn, ILabelBox } from "../configs/types";
|
|
3
3
|
import { IFilter, Student, ISeries } from "../../../utils/type";
|
|
4
4
|
declare const useDashboard: () => {
|
|
5
5
|
setFilter: import("react").Dispatch<import("react").SetStateAction<DashboardFilter>>;
|
|
@@ -46,5 +46,7 @@ declare const useDashboard: () => {
|
|
|
46
46
|
dayOfWeekConference: string[];
|
|
47
47
|
handleActiveColumnConference: (index: number) => void;
|
|
48
48
|
activeColumnConference: boolean[];
|
|
49
|
+
labelBox: ILabelBox;
|
|
50
|
+
setLabelBox: import("react").Dispatch<import("react").SetStateAction<ILabelBox>>;
|
|
49
51
|
};
|
|
50
52
|
export default useDashboard;
|
|
@@ -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>>;
|
|
@@ -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>>;
|