mario-teacher-student-client 2.2.17-beta → 2.2.19-beta
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/Header/CustomHeaderComponent.d.ts +2 -1
- package/dist/components/selector/CheckboxCustom.d.ts +12 -0
- package/dist/components/selector/CustomFilterComponent.d.ts +13 -3
- package/dist/containers/ConductOneToOne/constant/constant.d.ts +4 -0
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/hooks/useLearningStrategies.d.ts +0 -2
- package/dist/containers/MyStudent/hooks/useOverview.d.ts +0 -2
- package/dist/containers/PLP/hooks/usePlpPage.d.ts +0 -2
- package/dist/containers/Surveys/apiClient/surveyService.d.ts +5 -1
- package/dist/containers/Surveys/components/ChartOverview/components/AreaChart.d.ts +9 -0
- package/dist/containers/Surveys/components/ChartOverview/components/BarAndAreaChart.d.ts +9 -0
- package/dist/containers/Surveys/components/ChartOverview/components/BarChart.d.ts +11 -0
- package/dist/containers/Surveys/components/ChartOverview/components/ChoiceChartType.d.ts +10 -0
- package/dist/containers/Surveys/components/ChartOverview/components/PieChart.d.ts +8 -0
- package/dist/containers/Surveys/components/ChartOverview/view/ChartViewDashboard.d.ts +19 -0
- package/dist/containers/Surveys/components/Overview.d.ts +3 -0
- package/dist/containers/Surveys/constants/chartOptions.d.ts +6 -0
- package/dist/containers/Surveys/constants/constant.d.ts +12 -0
- package/dist/containers/Surveys/constants/overviewFn.d.ts +17 -0
- package/dist/containers/Surveys/constants/types.d.ts +35 -1
- package/dist/containers/Surveys/hook/useOverviewSurvey.d.ts +20 -0
- package/dist/containers/Surveys/views/SurveyOverview.d.ts +3 -0
- package/dist/index.css +209 -82
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1676 -490
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1673 -488
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
|
@@ -11,6 +11,7 @@ interface headerProps {
|
|
|
11
11
|
isDisableButton?: boolean;
|
|
12
12
|
isPreviewSurvey?: boolean;
|
|
13
13
|
onHandleGoBack?: Function;
|
|
14
|
+
borderNone?: boolean;
|
|
14
15
|
}
|
|
15
|
-
declare const CustomHeaderComponent: ({ title, contentButton, iconButton, isGoback, isGreyBackground, status, handleChangePage, isDisableButton, isPreviewSurvey, handlePreview, onHandleGoBack }: headerProps) => JSX.Element;
|
|
16
|
+
declare const CustomHeaderComponent: ({ title, contentButton, iconButton, isGoback, isGreyBackground, status, handleChangePage, isDisableButton, isPreviewSurvey, handlePreview, onHandleGoBack, borderNone }: headerProps) => JSX.Element;
|
|
16
17
|
export default CustomHeaderComponent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
interface IProps {
|
|
3
|
+
background?: string;
|
|
4
|
+
width?: number;
|
|
5
|
+
height?: number;
|
|
6
|
+
isActive?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
props?: any;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
}
|
|
11
|
+
declare const CheckboxCustom: FC<IProps>;
|
|
12
|
+
export default CheckboxCustom;
|
|
@@ -3,17 +3,27 @@ interface FILTER {
|
|
|
3
3
|
startDate?: number | null;
|
|
4
4
|
endDate?: number | null;
|
|
5
5
|
isFavorite?: boolean;
|
|
6
|
+
studentId?: number;
|
|
7
|
+
}
|
|
8
|
+
interface STUDENT {
|
|
9
|
+
email: string;
|
|
10
|
+
gradeLevel: string;
|
|
11
|
+
id: number;
|
|
12
|
+
studentName: string;
|
|
13
|
+
actionScore: number;
|
|
6
14
|
}
|
|
7
15
|
interface PROPS_FILTER {
|
|
8
16
|
filters?: FILTER;
|
|
9
17
|
handleChangeStartDate?: Function;
|
|
10
18
|
handleChangeEndDate?: Function;
|
|
11
|
-
handleChangeInputSearch
|
|
12
|
-
inputSearch
|
|
19
|
+
handleChangeInputSearch?: Function;
|
|
20
|
+
inputSearch?: any;
|
|
13
21
|
isShowSelectRight?: boolean;
|
|
14
22
|
handleChangeStatus?: Function;
|
|
15
23
|
placeholderSearch?: string;
|
|
16
24
|
handleSelectFavorite?: Function;
|
|
25
|
+
studentList?: STUDENT[];
|
|
26
|
+
onSelectStudent?: Function;
|
|
17
27
|
}
|
|
18
|
-
declare const CustomFilterComponent: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, isShowSelectRight, handleChangeStatus, placeholderSearch, handleSelectFavorite }: PROPS_FILTER) => JSX.Element;
|
|
28
|
+
declare const CustomFilterComponent: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, isShowSelectRight, handleChangeStatus, placeholderSearch, handleSelectFavorite, studentList, onSelectStudent }: PROPS_FILTER) => JSX.Element;
|
|
19
29
|
export default CustomFilterComponent;
|
|
@@ -5,8 +5,6 @@ declare const useLearningStrategies: (studentId: any, filterDateChart: any) => {
|
|
|
5
5
|
pageSize: number;
|
|
6
6
|
sortBy: string;
|
|
7
7
|
sortOrder: string;
|
|
8
|
-
startDate: any;
|
|
9
|
-
endDate: any;
|
|
10
8
|
};
|
|
11
9
|
changeFiltersLearningStrategiesData: (updatedFilters: any) => void;
|
|
12
10
|
learningStrategiesData: any;
|
|
@@ -26,8 +26,6 @@ declare const useOverview: (studentId: number) => {
|
|
|
26
26
|
pageSize: number;
|
|
27
27
|
sortBy: string;
|
|
28
28
|
sortOrder: string;
|
|
29
|
-
startDate: any;
|
|
30
|
-
endDate: any;
|
|
31
29
|
};
|
|
32
30
|
changeFiltersLearningStrategiesData: (updatedFilters: any) => void;
|
|
33
31
|
handleActiveColumnOneToOne: (index: any) => void;
|
|
@@ -25,8 +25,6 @@ declare const usePlpPage: () => {
|
|
|
25
25
|
pageSize: number;
|
|
26
26
|
sortBy: string;
|
|
27
27
|
sortOrder: string;
|
|
28
|
-
startDate: any;
|
|
29
|
-
endDate: any;
|
|
30
28
|
};
|
|
31
29
|
changeFiltersLearningStrategiesData: (updatedFilters: any) => void;
|
|
32
30
|
handleActiveColumnOneToOne: (index: any) => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { FILTER_OVERVIEW_SURVEY } from "../constants/types";
|
|
2
|
+
export declare const getStudentList: (filter?: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
2
3
|
export declare const getTemplateSurvey: () => Promise<import("axios").AxiosResponse<any>>;
|
|
3
4
|
export declare const createSurvey: (model: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
4
5
|
export declare const getAllSurvey: (params: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -13,3 +14,6 @@ export declare const shareSurvey: (data: any) => void;
|
|
|
13
14
|
export declare const updateSurvey: (surveyId: number, model: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
14
15
|
export declare const getListExternal: (surveyId: number, params: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
15
16
|
export declare const getSurveyDetail: (surveyId: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
17
|
+
export declare const getDashboardTotalSurvey: (filters: FILTER_OVERVIEW_SURVEY) => Promise<import("axios").AxiosResponse<any>>;
|
|
18
|
+
export declare const getDashboardFlagSurvey: (filters: FILTER_OVERVIEW_SURVEY) => Promise<import("axios").AxiosResponse<any>>;
|
|
19
|
+
export declare const getDashboardTemplateSurvey: (filters: FILTER_OVERVIEW_SURVEY) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { ISeries } from "../../../constants/types";
|
|
3
|
+
interface IProps {
|
|
4
|
+
months: string[];
|
|
5
|
+
activeColumn: boolean[];
|
|
6
|
+
series: ISeries[];
|
|
7
|
+
isShowChartLabel: boolean;
|
|
8
|
+
percentData: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const BarChart: FC<IProps>;
|
|
11
|
+
export default BarChart;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TYPECHART } from "../../../constants/constant";
|
|
3
|
+
import { IChartOptions } from "../../../constants/types";
|
|
4
|
+
interface IChoiceChartType {
|
|
5
|
+
onChangeChart: Function;
|
|
6
|
+
typeChart?: TYPECHART[];
|
|
7
|
+
options: IChartOptions[];
|
|
8
|
+
}
|
|
9
|
+
declare const ChoiceChartType: ({ onChangeChart, typeChart, options }: IChoiceChartType) => JSX.Element;
|
|
10
|
+
export default ChoiceChartType;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { IChartOptions, ISeries } from "../../../constants/types";
|
|
3
|
+
import { TYPECHART } from "../../../constants/constant";
|
|
4
|
+
export interface IProps {
|
|
5
|
+
data: any;
|
|
6
|
+
typeChart: TYPECHART[];
|
|
7
|
+
onActiveColumn?: Function;
|
|
8
|
+
activeColumn: boolean[];
|
|
9
|
+
series: ISeries[];
|
|
10
|
+
avg?: number[];
|
|
11
|
+
months: any;
|
|
12
|
+
onChangeChart?: Function;
|
|
13
|
+
optionType?: IChartOptions[];
|
|
14
|
+
name: string;
|
|
15
|
+
isShowChartLabel?: boolean;
|
|
16
|
+
percentData?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const ChartViewDashboard: FC<IProps>;
|
|
19
|
+
export default ChartViewDashboard;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ApexOptions } from "apexcharts";
|
|
2
|
+
import { ISeries } from "./types";
|
|
3
|
+
export declare const maxSeries: (series: ISeries[]) => number;
|
|
4
|
+
export declare const optionColumnChartAndPercents: (months: string[], activeData: boolean[], isRidgeCharts: boolean, isShowChartLabel?: boolean | undefined, percentData?: boolean | undefined, series?: ISeries[] | undefined) => ApexOptions;
|
|
5
|
+
export declare const optionBarChartAndArea: (months: string[], activeData: boolean[], newseries?: any) => ApexOptions;
|
|
6
|
+
export declare const pieChartOptions: ApexOptions;
|
|
@@ -63,3 +63,15 @@ export declare const initialAdditionalQuestion: {
|
|
|
63
63
|
textAnswer: string;
|
|
64
64
|
};
|
|
65
65
|
export declare const charactersRandom = "0123456789";
|
|
66
|
+
export declare const COLOR_CHART_AND_PERCENTS: string[];
|
|
67
|
+
export declare enum TYPECHART {
|
|
68
|
+
AREA = 0,
|
|
69
|
+
BAR = 1,
|
|
70
|
+
LINE = 2,
|
|
71
|
+
BOTH = 3
|
|
72
|
+
}
|
|
73
|
+
export declare const COLOR_CHART_AND_PIE: string[];
|
|
74
|
+
export declare const COLOR_LABEL_PIE: string[];
|
|
75
|
+
export declare const COLOR_NAME: string[];
|
|
76
|
+
export declare const optionTotalSurvey: string[];
|
|
77
|
+
export declare const LABEL_NAME_PIE_CHART: string[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DASHBOARD_TEMPLATE, ISeries, TOTAL_DASHBOAD_SURVEY } from "./types";
|
|
2
|
+
export declare const handleViewSeriesActive: (active: boolean[]) => number[];
|
|
3
|
+
export declare const convertDataToDataChart: (data: DASHBOARD_TEMPLATE[]) => string[];
|
|
4
|
+
export declare const convertToSeriesTemplate: (data: DASHBOARD_TEMPLATE[]) => {
|
|
5
|
+
name: string;
|
|
6
|
+
data: number[];
|
|
7
|
+
}[];
|
|
8
|
+
export declare const convertToSeriesTotal: (data: TOTAL_DASHBOAD_SURVEY[]) => {
|
|
9
|
+
name: string;
|
|
10
|
+
data: number[];
|
|
11
|
+
}[];
|
|
12
|
+
export declare const mergeBarChartAndArea: (series: ISeries[]) => {
|
|
13
|
+
type: string;
|
|
14
|
+
name: string;
|
|
15
|
+
data: number[];
|
|
16
|
+
}[];
|
|
17
|
+
export declare const convertToAvg: (dataCharts: string[], data: DASHBOARD_TEMPLATE[], months: string[]) => number[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QuestionType } from "./constant";
|
|
1
|
+
import { QuestionType, TYPECHART } from "./constant";
|
|
2
2
|
import { QUESTION_ADDITIONAL } from "./questionModelType";
|
|
3
3
|
export interface FILTER_SURVEY {
|
|
4
4
|
currentPage: number;
|
|
@@ -12,6 +12,11 @@ export interface FILTER_SURVEY {
|
|
|
12
12
|
isFavorite?: boolean;
|
|
13
13
|
type?: number;
|
|
14
14
|
}
|
|
15
|
+
export interface FILTER_OVERVIEW_SURVEY {
|
|
16
|
+
studentId?: number;
|
|
17
|
+
startDate: number;
|
|
18
|
+
endDate: number;
|
|
19
|
+
}
|
|
15
20
|
export interface SURVEY_LIST {
|
|
16
21
|
id: number;
|
|
17
22
|
title: string;
|
|
@@ -306,3 +311,32 @@ export interface FAVORITE_PROPS {
|
|
|
306
311
|
export interface HOOK_FAVORITE_PROPS {
|
|
307
312
|
setDataFormCreateSurvey: Function;
|
|
308
313
|
}
|
|
314
|
+
export interface NUMBER_SURVEY {
|
|
315
|
+
numberTotalSurveyDone: number;
|
|
316
|
+
numberTotalSurveyNotDone: number;
|
|
317
|
+
}
|
|
318
|
+
export interface TOTAL_DASHBOAD_SURVEY {
|
|
319
|
+
month: string;
|
|
320
|
+
numberSurveys: NUMBER_SURVEY;
|
|
321
|
+
}
|
|
322
|
+
export interface ISurveyTemplate {
|
|
323
|
+
avgTemplateSurvey: number;
|
|
324
|
+
templateName: string;
|
|
325
|
+
}
|
|
326
|
+
export interface DASHBOARD_TEMPLATE {
|
|
327
|
+
month: string;
|
|
328
|
+
surveyTemplate: ISurveyTemplate[];
|
|
329
|
+
}
|
|
330
|
+
export interface ISeries {
|
|
331
|
+
name: string;
|
|
332
|
+
data: number[];
|
|
333
|
+
}
|
|
334
|
+
export interface IChartOptions {
|
|
335
|
+
value: TYPECHART;
|
|
336
|
+
label: string;
|
|
337
|
+
}
|
|
338
|
+
export interface IDashboardFlag {
|
|
339
|
+
numberSurveyBlue?: number;
|
|
340
|
+
numberSurveyRed?: number;
|
|
341
|
+
numberSurveyYellow?: number;
|
|
342
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DASHBOARD_TEMPLATE, FILTER_OVERVIEW_SURVEY, IDashboardFlag, ISeries, STUDENT_SURVEY, TOTAL_DASHBOAD_SURVEY } from "../constants/types";
|
|
2
|
+
import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
|
|
3
|
+
import { TYPECHART } from "../constants/constant";
|
|
4
|
+
declare const useOverviewSurvey: () => {
|
|
5
|
+
filters: FILTER_OVERVIEW_SURVEY;
|
|
6
|
+
handleChangeStartDate: (date: MaterialUiPickersDate | null) => void;
|
|
7
|
+
handleChangeEndDate: (date: MaterialUiPickersDate | null) => void;
|
|
8
|
+
totalSurvey: TOTAL_DASHBOAD_SURVEY[];
|
|
9
|
+
templateSurveyDashboard: DASHBOARD_TEMPLATE[];
|
|
10
|
+
surveyFlagData: IDashboardFlag | undefined;
|
|
11
|
+
typeChartList: TYPECHART[];
|
|
12
|
+
onChangeChart: (type: TYPECHART) => void;
|
|
13
|
+
activeColumnResult: boolean[];
|
|
14
|
+
handleActiveColumnOneToOne: (index: any) => void;
|
|
15
|
+
seriseResult: ISeries[];
|
|
16
|
+
students: STUDENT_SURVEY[] | undefined;
|
|
17
|
+
handleSelectStudent: (student: STUDENT_SURVEY | null) => void;
|
|
18
|
+
avgResult: number[];
|
|
19
|
+
};
|
|
20
|
+
export default useOverviewSurvey;
|