mario-teacher-student-client 2.2.7-beta → 2.2.12-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/Button/CustomButton.d.ts +11 -0
- package/dist/components/layouts/HeaderSideBar.d.ts +4 -0
- package/dist/components/selector/CustomFilterComponent.d.ts +3 -1
- package/dist/components/selector/CustomFilterMobile.d.ts +23 -0
- package/dist/containers/LearningStrategies/hook/useAddLearningStrategies.d.ts +2 -0
- package/dist/containers/LearningStrategies/hook/useEditLearningStrategies.d.ts +5 -1
- package/dist/containers/MyStudent/components/ChartOverview.d.ts +1 -1
- package/dist/containers/MyStudent/components/NewOverview/Chat/ApiClient/redinessToLearnApi.d.ts +1 -1
- package/dist/containers/MyStudent/components/NewOverview/Chat/Components/ChoiceChartType.d.ts +9 -0
- package/dist/containers/MyStudent/components/NewOverview/Chat/configs/constants.d.ts +11 -0
- package/dist/containers/MyStudent/components/NewOverview/Chat/configs/utils.d.ts +33 -0
- package/dist/containers/MyStudent/components/NewOverview/Chat/hooks/useChartClassReflection.d.ts +10 -5
- package/dist/containers/MyStudent/components/NewOverview/Chat/hooks/useChartOneToOne.d.ts +11 -6
- package/dist/containers/MyStudent/components/NewOverview/Chat/hooks/useConference.d.ts +10 -5
- package/dist/containers/MyStudent/components/NewOverview/Chat/hooks/useLearningProgress.d.ts +6 -5
- package/dist/containers/MyStudent/components/NewOverview/Chat/hooks/useRedinessToLearn.d.ts +10 -8
- package/dist/containers/MyStudent/components/NewOverview/Chat/services/TopRedinessToLean.d.ts +1 -1
- package/dist/containers/MyStudent/components/NewOverview/Chat/types/types.d.ts +60 -0
- package/dist/containers/MyStudent/components/NewOverview/Chat/view/AreaChart.d.ts +9 -0
- package/dist/containers/MyStudent/components/NewOverview/Chat/view/BarAndAreaChart.d.ts +10 -0
- package/dist/containers/MyStudent/components/NewOverview/Chat/view/BarChart.d.ts +9 -0
- package/dist/containers/MyStudent/components/NewOverview/Chat/view/BubbleChartCustom.d.ts +12 -0
- package/dist/containers/MyStudent/components/NewOverview/Chat/view/CheckboxCustom.d.ts +12 -0
- package/dist/containers/MyStudent/components/NewOverview/Chat/view/ColumnChartAndPercent.d.ts +23 -0
- package/dist/containers/MyStudent/components/NewOverview/Chat/view/LineChart.d.ts +9 -0
- package/dist/containers/MyStudent/components/NewOverview/Chat/view/TopLearningStrategy.d.ts +4 -0
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/hooks/useLearningStrategies.d.ts +2 -2
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/hooks/useTopLearningStrategies.d.ts +12 -2
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/services/TopLearningStrategies.d.ts +1 -1
- package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/view/TopLearningStrategiesChart.d.ts +1 -6
- package/dist/containers/MyStudent/components/OverviewToPDF.d.ts +3 -0
- package/dist/containers/MyStudent/hooks/useClassReflectionList.d.ts +6 -0
- package/dist/containers/MyStudent/hooks/useDesignation.d.ts +5 -0
- package/dist/containers/MyStudent/hooks/useOverview.d.ts +77 -0
- package/dist/containers/MyStudent/hooks/useOverviewToPDF.d.ts +7 -0
- package/dist/containers/MyStudent/utils/type.interface.d.ts +4 -0
- package/dist/containers/PLP/hooks/usePlpPage.d.ts +81 -0
- package/dist/containers/Surveys/apiClient/surveyService.d.ts +1 -0
- package/dist/containers/Surveys/components/CardItemMobile/CardSurveyMobile.d.ts +4 -0
- package/dist/containers/Surveys/components/StepComponents/CreateSurveyComponent.d.ts +1 -1
- package/dist/containers/Surveys/components/StepComponents/ListFavoriteSurvey.d.ts +4 -0
- package/dist/containers/Surveys/constants/constant.d.ts +1 -0
- package/dist/containers/Surveys/constants/tableColumn.d.ts +11 -0
- package/dist/containers/Surveys/constants/typeCardItem.d.ts +16 -0
- package/dist/containers/Surveys/constants/types.d.ts +12 -3
- package/dist/containers/Surveys/hook/useCreateSurvey.d.ts +2 -0
- package/dist/containers/Surveys/hook/useListFavoriteSurvey.d.ts +9 -0
- package/dist/containers/Surveys/hook/useListSurvey.d.ts +16 -0
- package/dist/containers/Surveys/hook/useListSurveyDetail.d.ts +1 -0
- package/dist/index.css +425 -192
- package/dist/index.js +13351 -11195
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +13299 -11143
- package/dist/index.modern.js.map +1 -1
- package/dist/services/MyStudent.d.ts +2 -0
- package/dist/utils/formatDate.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC, HTMLProps } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
color?: string;
|
|
4
|
+
label: string;
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
handleClickOpen?: Function;
|
|
7
|
+
fontSize?: string;
|
|
8
|
+
icon?: HTMLProps<HTMLButtonElement>;
|
|
9
|
+
}
|
|
10
|
+
declare const CustomButton: FC<Props>;
|
|
11
|
+
export default CustomButton;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
interface FILTER {
|
|
3
3
|
startDate?: number | null;
|
|
4
4
|
endDate?: number | null;
|
|
5
|
+
isFavorite?: boolean;
|
|
5
6
|
}
|
|
6
7
|
interface PROPS_FILTER {
|
|
7
8
|
filters?: FILTER;
|
|
@@ -12,6 +13,7 @@ interface PROPS_FILTER {
|
|
|
12
13
|
isShowSelectRight?: boolean;
|
|
13
14
|
handleChangeStatus?: Function;
|
|
14
15
|
placeholderSearch?: string;
|
|
16
|
+
handleSelectFavorite?: Function;
|
|
15
17
|
}
|
|
16
|
-
declare const CustomFilterComponent: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, isShowSelectRight, handleChangeStatus, placeholderSearch }: PROPS_FILTER) => JSX.Element;
|
|
18
|
+
declare const CustomFilterComponent: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, isShowSelectRight, handleChangeStatus, placeholderSearch, handleSelectFavorite }: PROPS_FILTER) => JSX.Element;
|
|
17
19
|
export default CustomFilterComponent;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface FILTER {
|
|
3
|
+
startDate?: number | null;
|
|
4
|
+
endDate?: number | null;
|
|
5
|
+
isFavorite?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface PROPS_FILTER {
|
|
8
|
+
filters?: FILTER;
|
|
9
|
+
handleChangeStartDate?: Function;
|
|
10
|
+
handleChangeEndDate?: Function;
|
|
11
|
+
handleChangeInputSearch: Function;
|
|
12
|
+
inputSearch: any;
|
|
13
|
+
isShowSelectRight?: boolean;
|
|
14
|
+
handleChangeStatus?: Function;
|
|
15
|
+
placeholderSearch?: string;
|
|
16
|
+
handleSelectFavorite?: Function;
|
|
17
|
+
onShowFilter?: Function;
|
|
18
|
+
isShowFilter?: boolean;
|
|
19
|
+
isShowCalendar?: boolean;
|
|
20
|
+
onShowFilterCalendar?: Function;
|
|
21
|
+
}
|
|
22
|
+
declare const CustomFilterMobile: ({ filters, handleChangeStartDate, handleChangeEndDate, handleChangeInputSearch, inputSearch, handleChangeStatus, placeholderSearch, handleSelectFavorite, onShowFilter, isShowFilter, isShowCalendar, onShowFilterCalendar }: PROPS_FILTER) => JSX.Element;
|
|
23
|
+
export default CustomFilterMobile;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
interface Props {
|
|
2
3
|
bestfit: string;
|
|
3
4
|
content: string;
|
|
@@ -16,5 +17,6 @@ declare const useAddLearningStrategies: () => {
|
|
|
16
17
|
handleShowSelectItemCount: () => number;
|
|
17
18
|
classFontSize: string;
|
|
18
19
|
bestFits: string[];
|
|
20
|
+
setLearningStrategyData: import("react").Dispatch<any>;
|
|
19
21
|
};
|
|
20
22
|
export default useAddLearningStrategies;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
interface Props {
|
|
2
|
+
isShowChoose?: boolean;
|
|
3
|
+
}
|
|
4
|
+
declare const useEditLearningStrategies: ({ isShowChoose }: Props) => {
|
|
2
5
|
open: boolean;
|
|
3
6
|
handleClickOpen: (id: any) => void;
|
|
4
7
|
handleClose: () => void;
|
|
@@ -21,5 +24,6 @@ declare const useEditLearningStrategies: () => {
|
|
|
21
24
|
nameStudent: string;
|
|
22
25
|
isParent: any;
|
|
23
26
|
changeFilters: (e: string) => void;
|
|
27
|
+
data: any;
|
|
24
28
|
};
|
|
25
29
|
export default useEditLearningStrategies;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const ChartOverview: (
|
|
2
|
+
declare const ChartOverview: ({ isPlp, dataReadinessOfChart, seriesOneToOne, handleChangeStartDate, handleChangeEndDate, timeEnd, timeStart, handleChangeStartDateClassReflection, handleChangeEndDateClassReflection, timeEndClassReflection, timeStartClassReflection, seriesConference, handleChangeStartDateConference, handleChangeEndDateConference, timeEndConference, timeStartConference, handleChangeStartLearningProgress, handleChangeEndLearningProgress, timeEndLearningProgress, timeStartLearningProgress, topLearningStrategiesData, handleActiveColumnOneToOne, activeColumnOneToOne, avgOneToOne, monthsOneToOne, dataConvertedOneToOne, onChangeChart, typeChartList, dataConvertedClassReflection, monthsClassReflection, avgClassReflection, seriesClassRefection, activeColumnClassReflection, handleActiveColumnClassReflection, onChangeTypeChartReflection, typeChartReflection, dataConvertedConference, avgConference, monthsConference, activeColumnConference, handleActiveColumnConference, onChangeTypeConference, typeChartConference, seriesLearningProgress, onChangeTypeLearningProgress, dataConvertedLearningProgress, typeChartLearningProgress, monthsLearningProgress, filtersLearningStrategiesData, learningStrategiesData, changeFiltersLearningStrategiesData, getLearningStrategiesData, handleChangeStartTopLearning, handleChangeEndTopLearning, timeStartTopLearning, timeEndTopLearning, handleChangeStartReadiness, handleChangeEndReadiness, timeEndReadiness, timeStartReadiness }: any) => JSX.Element;
|
|
3
3
|
export default ChartOverview;
|
package/dist/containers/MyStudent/components/NewOverview/Chat/ApiClient/redinessToLearnApi.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getDataRedinessToLeanApi: (studentId: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
1
|
+
export declare const getDataRedinessToLeanApi: (studentId: any, timeStartReadiness: number, timeEndReadiness: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IChartOptions, TYPECHART } from "../types/types";
|
|
3
|
+
interface IChoiceChartType {
|
|
4
|
+
onChangeChart: Function;
|
|
5
|
+
typeChart?: TYPECHART[];
|
|
6
|
+
options: IChartOptions[];
|
|
7
|
+
}
|
|
8
|
+
declare const ChoiceChartType: ({ onChangeChart, typeChart, options }: IChoiceChartType) => JSX.Element;
|
|
9
|
+
export default ChoiceChartType;
|
|
@@ -1 +1,12 @@
|
|
|
1
1
|
export declare const COLOR_CHART: string[];
|
|
2
|
+
export declare const PERCENT: number[];
|
|
3
|
+
export declare const COLOR_CHART_BUBBLE: string[];
|
|
4
|
+
export declare const LEARNING_STRATEGY_INIT: {
|
|
5
|
+
learningStrategies: never[];
|
|
6
|
+
};
|
|
7
|
+
export declare const COLOR_CHART_AND_PERCENTS: string[];
|
|
8
|
+
export declare const INITIAl_COLUNM_CHART_AND_PERCENT: {
|
|
9
|
+
overviewQuestionChoice: never[];
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const INITIAL_AVG: number[];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ApexOptions } from "apexcharts";
|
|
3
|
+
import { IOverviewQuestionChoice, IReadinessToLearning, ISeries } from "../types/types";
|
|
4
|
+
export declare const seriesNameBubbleChartCustom: (series: IReadinessToLearning[]) => string[];
|
|
5
|
+
export declare const average: (arr: number[]) => number;
|
|
6
|
+
export declare const convertDataToDataChart: (data: IOverviewQuestionChoice[]) => string[];
|
|
7
|
+
export declare const learningStrategyChartOptions: (labelNames: string[], usageCountList: number[], screenWidth: number, showLegends?: boolean) => ApexOptions;
|
|
8
|
+
export declare const readinesToLearnoptions: (seriesName: string[], redirectStudentOverview?: Function | undefined) => ApexOptions;
|
|
9
|
+
export declare const convertDataToSeriesBullderChart: (data: IReadinessToLearning[]) => {
|
|
10
|
+
name: string;
|
|
11
|
+
data: import("react").ReactText[][];
|
|
12
|
+
}[];
|
|
13
|
+
export declare const optionLineChart: (months: string[], activeData: boolean[]) => ApexOptions;
|
|
14
|
+
export declare const mergeBarChartAndArea: (series: ISeries[], isHasLineChart: boolean) => {
|
|
15
|
+
type: string;
|
|
16
|
+
name: string;
|
|
17
|
+
data: number[];
|
|
18
|
+
}[];
|
|
19
|
+
export declare const optionBarChartAndArea: (months: string[], activeData: boolean[], newseries?: any) => ApexOptions;
|
|
20
|
+
export declare const optionColumnChartAndPercents: (months: string[], activeData: boolean[], isRidgeCharts: boolean) => ApexOptions;
|
|
21
|
+
export declare const convertToSeriesColumnChartAndPercent: (dataCharts: string[], data: IOverviewQuestionChoice[]) => {
|
|
22
|
+
name: string;
|
|
23
|
+
data: number[];
|
|
24
|
+
}[];
|
|
25
|
+
export declare const convertToSeriesColumnChartAndPercentProgress: (data: IOverviewQuestionChoice[]) => {
|
|
26
|
+
name: string;
|
|
27
|
+
data: number[];
|
|
28
|
+
}[];
|
|
29
|
+
export declare const convertToSeriesColumnChartAndPercentConference: (dataCharts: string[], data: IOverviewQuestionChoice[]) => {
|
|
30
|
+
name: string;
|
|
31
|
+
data: number[];
|
|
32
|
+
}[];
|
|
33
|
+
export declare const convertToAvg: (dataCharts: string[], data: IOverviewQuestionChoice[], months: string[]) => number[];
|
package/dist/containers/MyStudent/components/NewOverview/Chat/hooks/useChartClassReflection.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
|
|
2
|
-
import {
|
|
2
|
+
import { IColumnChartAndPercent, ISeries, TYPECHART } from "../types/types";
|
|
3
3
|
declare const useChartClassReflection: (studentId: any) => {
|
|
4
|
-
seriesChartClassReflection: any;
|
|
5
|
-
optionClassReflection: ApexOptions;
|
|
6
|
-
widthChartClassReflection: number;
|
|
7
|
-
heightChartClassReflection: number;
|
|
8
4
|
handleChangeStartDateClassReflection: (datepicker: MaterialUiPickersDate) => void;
|
|
9
5
|
handleChangeEndDateClassReflection: (datepicker: MaterialUiPickersDate) => void;
|
|
10
6
|
timeEndClassReflection: any;
|
|
@@ -12,5 +8,14 @@ declare const useChartClassReflection: (studentId: any) => {
|
|
|
12
8
|
anchorEl: any;
|
|
13
9
|
handleClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
14
10
|
handleClose: () => void;
|
|
11
|
+
dataConvertedClassReflection: string[];
|
|
12
|
+
monthsClassReflection: string[];
|
|
13
|
+
avgClassReflection: number[];
|
|
14
|
+
seriesClassRefection: ISeries[];
|
|
15
|
+
activeColumnClassReflection: boolean[];
|
|
16
|
+
handleActiveColumnClassReflection: (index: any) => void;
|
|
17
|
+
onChangeTypeChartReflection: (type: TYPECHART) => void;
|
|
18
|
+
typeChartReflection: TYPECHART[];
|
|
19
|
+
chartClassReflection: IColumnChartAndPercent;
|
|
15
20
|
};
|
|
16
21
|
export default useChartClassReflection;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
|
|
2
|
-
import {
|
|
3
|
-
declare const useChartOneToOne: (studentId:
|
|
4
|
-
|
|
5
|
-
widthChartOne: number;
|
|
6
|
-
heightChartOne: number;
|
|
2
|
+
import { IColumnChartAndPercent, ISeries, TYPECHART } from "../types/types";
|
|
3
|
+
declare const useChartOneToOne: (studentId: number) => {
|
|
4
|
+
chartOneToOneData: IColumnChartAndPercent;
|
|
7
5
|
handleChangeStartDate: (datepicker: MaterialUiPickersDate) => void;
|
|
8
6
|
handleChangeEndDate: (datepicker: MaterialUiPickersDate) => void;
|
|
9
7
|
timeEnd: any;
|
|
@@ -11,6 +9,13 @@ declare const useChartOneToOne: (studentId: any) => {
|
|
|
11
9
|
anchorEl: any;
|
|
12
10
|
handleClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
13
11
|
handleClose: () => void;
|
|
14
|
-
|
|
12
|
+
handleActiveColumnOneToOne: (index: any) => void;
|
|
13
|
+
activeColumnOneToOne: boolean[];
|
|
14
|
+
avgOneToOne: number[];
|
|
15
|
+
monthsOneToOne: string[];
|
|
16
|
+
dataConvertedOneToOne: string[];
|
|
17
|
+
seriesOneToOne: ISeries[];
|
|
18
|
+
onChangeChart: (type: TYPECHART) => void;
|
|
19
|
+
typeChartList: TYPECHART[];
|
|
15
20
|
};
|
|
16
21
|
export default useChartOneToOne;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
|
|
2
|
-
import {
|
|
2
|
+
import { IColumnChartAndPercent, ISeries, TYPECHART } from "../types/types";
|
|
3
3
|
declare const useChartConference: (studentId: any) => {
|
|
4
|
-
seriesConference: any;
|
|
5
|
-
widthChartConference: number;
|
|
6
|
-
heightChartConference: number;
|
|
7
4
|
handleChangeStartDateConference: (datepicker: MaterialUiPickersDate) => void;
|
|
8
5
|
handleChangeEndDateConference: (datepicker: MaterialUiPickersDate) => void;
|
|
9
6
|
timeEndConference: any;
|
|
@@ -11,6 +8,14 @@ declare const useChartConference: (studentId: any) => {
|
|
|
11
8
|
anchorEl: any;
|
|
12
9
|
handleClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
13
10
|
handleClose: () => void;
|
|
14
|
-
|
|
11
|
+
seriesConference: ISeries[];
|
|
12
|
+
dataConvertedConference: string[];
|
|
13
|
+
avgConference: number[];
|
|
14
|
+
monthsConference: string[];
|
|
15
|
+
activeColumnConference: boolean[];
|
|
16
|
+
handleActiveColumnConference: (index: number) => void;
|
|
17
|
+
onChangeTypeConference: (type: TYPECHART) => void;
|
|
18
|
+
typeChartConference: TYPECHART[];
|
|
19
|
+
chartConference: IColumnChartAndPercent;
|
|
15
20
|
};
|
|
16
21
|
export default useChartConference;
|
package/dist/containers/MyStudent/components/NewOverview/Chat/hooks/useLearningProgress.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
|
|
2
|
-
import {
|
|
2
|
+
import { ISeries, TYPECHART } from "../types/types";
|
|
3
3
|
declare const useLearningProgress: (studentId: any) => {
|
|
4
|
-
seriesLearningProgress: any;
|
|
5
|
-
widthChartLearningProgress: number;
|
|
6
|
-
heightChartLearningProgress: number;
|
|
7
4
|
handleChangeStartLearningProgress: (datepicker: MaterialUiPickersDate) => void;
|
|
8
5
|
handleChangeEndLearningProgress: (datepicker: MaterialUiPickersDate) => void;
|
|
9
6
|
timeEndLearningProgress: any;
|
|
@@ -11,6 +8,10 @@ declare const useLearningProgress: (studentId: any) => {
|
|
|
11
8
|
anchorEl: any;
|
|
12
9
|
handleClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
13
10
|
handleClose: () => void;
|
|
14
|
-
|
|
11
|
+
seriesLearningProgress: ISeries[];
|
|
12
|
+
onChangeTypeLearningProgress: (type: TYPECHART) => void;
|
|
13
|
+
dataConvertedLearningProgress: string[];
|
|
14
|
+
typeChartLearningProgress: TYPECHART[];
|
|
15
|
+
monthsLearningProgress: string[];
|
|
15
16
|
};
|
|
16
17
|
export default useLearningProgress;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
options: ApexOptions;
|
|
6
|
-
anchorEl: any;
|
|
1
|
+
import { IReadinessToLearning } from "../types/types";
|
|
2
|
+
import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
|
|
3
|
+
declare const useRedinessToLearn: (studentId: number) => {
|
|
4
|
+
anchorElReadinessToLearn: any;
|
|
7
5
|
handleClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
8
6
|
handleClose: () => void;
|
|
9
|
-
setChartData: () => Promise<void>;
|
|
10
|
-
dataReadinessOfChart:
|
|
7
|
+
setChartData: (timeStartReadiness: number, timeEndReadiness: number) => Promise<void>;
|
|
8
|
+
dataReadinessOfChart: IReadinessToLearning[];
|
|
9
|
+
handleChangeStartReadiness: (datepicker: MaterialUiPickersDate) => void;
|
|
10
|
+
handleChangeEndReadiness: (datepicker: MaterialUiPickersDate) => void;
|
|
11
|
+
timeEndReadiness: number;
|
|
12
|
+
timeStartReadiness: number;
|
|
11
13
|
};
|
|
12
14
|
export default useRedinessToLearn;
|
package/dist/containers/MyStudent/components/NewOverview/Chat/services/TopRedinessToLean.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getDataRedinessToLean: (dispatch: any, id: any) => Promise<any>;
|
|
1
|
+
export declare const getDataRedinessToLean: (dispatch: any, id: any, timeStartReadiness: number, timeEndReadiness: number) => Promise<any>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export interface IStudentPercentQuestion {
|
|
2
|
+
percentQuestion: number;
|
|
3
|
+
studentId: number;
|
|
4
|
+
studentName: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IReadinessToLearning {
|
|
7
|
+
questionText: string;
|
|
8
|
+
percentQuestion: IStudentPercentQuestion[];
|
|
9
|
+
}
|
|
10
|
+
export interface ILearningItem {
|
|
11
|
+
learningStrategyName: string;
|
|
12
|
+
usageCount: number;
|
|
13
|
+
usagePoint: number[];
|
|
14
|
+
}
|
|
15
|
+
export interface ILearningStrategies {
|
|
16
|
+
learningStrategies: ILearningItem[];
|
|
17
|
+
}
|
|
18
|
+
export interface ITopLearningStrategy {
|
|
19
|
+
learningStrategies: ILearningItem[];
|
|
20
|
+
isPlp: boolean;
|
|
21
|
+
filtersLearningStrategiesData?: any;
|
|
22
|
+
learningStrategiesData?: any;
|
|
23
|
+
changeFiltersLearningStrategiesData?: Function;
|
|
24
|
+
getLearningStrategiesData?: Function;
|
|
25
|
+
timeStart?: number;
|
|
26
|
+
timeEnd?: number;
|
|
27
|
+
handleChangeStartDate?: Function;
|
|
28
|
+
handleChangeEndDate?: Function;
|
|
29
|
+
}
|
|
30
|
+
export interface IReadinessToLearning {
|
|
31
|
+
questionText: string;
|
|
32
|
+
studentPercentQuestion: IStudentPercentQuestion[];
|
|
33
|
+
}
|
|
34
|
+
export interface ISeries {
|
|
35
|
+
name: string;
|
|
36
|
+
data: number[];
|
|
37
|
+
}
|
|
38
|
+
export declare enum TYPECHART {
|
|
39
|
+
AREA = 0,
|
|
40
|
+
BAR = 1,
|
|
41
|
+
LINE = 2,
|
|
42
|
+
BOTH = 3
|
|
43
|
+
}
|
|
44
|
+
export interface IResultQuestion {
|
|
45
|
+
avgOfStudentChoice: number;
|
|
46
|
+
questionId: number;
|
|
47
|
+
questionText: string;
|
|
48
|
+
}
|
|
49
|
+
export interface IOverviewQuestionChoice {
|
|
50
|
+
month: string;
|
|
51
|
+
resultQuestion: IResultQuestion[];
|
|
52
|
+
}
|
|
53
|
+
export interface IColumnChartAndPercent {
|
|
54
|
+
overviewQuestionChoice: IOverviewQuestionChoice[];
|
|
55
|
+
type: string;
|
|
56
|
+
}
|
|
57
|
+
export interface IChartOptions {
|
|
58
|
+
value: TYPECHART;
|
|
59
|
+
label: string;
|
|
60
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { ISeries } from "../types/types";
|
|
3
|
+
interface IProps {
|
|
4
|
+
months: string[];
|
|
5
|
+
activeColumn: boolean[];
|
|
6
|
+
series: ISeries[];
|
|
7
|
+
isHasLineChart: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const BarAndAreaChart: FC<IProps>;
|
|
10
|
+
export default BarAndAreaChart;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IReadinessToLearning } from "../types/types";
|
|
3
|
+
interface IProps {
|
|
4
|
+
data: IReadinessToLearning[];
|
|
5
|
+
timeStart?: number;
|
|
6
|
+
timeEnd?: number;
|
|
7
|
+
handleChangeStartDate?: Function;
|
|
8
|
+
handleChangeEndDate?: Function;
|
|
9
|
+
isPlp?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: React.MemoExoticComponent<({ data, timeStart, timeEnd, handleChangeStartDate, handleChangeEndDate, isPlp }: IProps) => JSX.Element>;
|
|
12
|
+
export default _default;
|
|
@@ -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;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { IChartOptions, TYPECHART } from "../types/types";
|
|
3
|
+
import { ISeries } from "../types/types";
|
|
4
|
+
export interface IProps {
|
|
5
|
+
data: any;
|
|
6
|
+
typeChart: TYPECHART[];
|
|
7
|
+
isHasLineChart?: boolean;
|
|
8
|
+
onActiveColumn?: Function;
|
|
9
|
+
activeColumn: boolean[];
|
|
10
|
+
series: ISeries[];
|
|
11
|
+
avg?: number[];
|
|
12
|
+
months: any;
|
|
13
|
+
onChangeChart: Function;
|
|
14
|
+
optionType: IChartOptions[];
|
|
15
|
+
name: string;
|
|
16
|
+
isHiddenLabel?: boolean;
|
|
17
|
+
timeStart?: string;
|
|
18
|
+
timeEnd?: string;
|
|
19
|
+
handleChangeStartDate?: Function;
|
|
20
|
+
handleChangeEndDate?: Function;
|
|
21
|
+
}
|
|
22
|
+
declare const ColumnChartAndPercent: FC<IProps>;
|
|
23
|
+
export default ColumnChartAndPercent;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ITopLearningStrategy } from "../types/types";
|
|
3
|
+
declare const TopLearningStrategy: ({ learningStrategies, isPlp, filtersLearningStrategiesData, learningStrategiesData, getLearningStrategiesData, changeFiltersLearningStrategiesData, timeStart, timeEnd, handleChangeStartDate, handleChangeEndDate }: ITopLearningStrategy) => JSX.Element;
|
|
4
|
+
export default TopLearningStrategy;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const useLearningStrategies: (studentId: any) => {
|
|
2
|
-
|
|
2
|
+
filtersLearningStrategiesData: {
|
|
3
3
|
searchString: string;
|
|
4
4
|
currentPage: number;
|
|
5
5
|
pageSize: number;
|
|
@@ -8,7 +8,7 @@ declare const useLearningStrategies: (studentId: any) => {
|
|
|
8
8
|
startDate: null;
|
|
9
9
|
endDate: null;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
changeFiltersLearningStrategiesData: (updatedFilters: any) => void;
|
|
12
12
|
learningStrategiesData: any;
|
|
13
13
|
getLearningStrategiesData: () => Promise<void>;
|
|
14
14
|
};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ILearningStrategies } from "../../Chat/types/types";
|
|
3
|
+
import { MaterialUiPickersDate } from "@material-ui/pickers/typings/date";
|
|
4
|
+
declare const useTopLearningStrategies: (studentId: number) => {
|
|
5
|
+
topLearningStrategiesData: ILearningStrategies;
|
|
6
|
+
topLearningStrategy: any;
|
|
7
|
+
labelName: any;
|
|
8
|
+
usageCountList: import("react").MutableRefObject<number[]>;
|
|
9
|
+
handleChangeStartTopLearning: (datepicker: MaterialUiPickersDate) => void;
|
|
10
|
+
handleChangeEndTopLearning: (datepicker: MaterialUiPickersDate) => void;
|
|
11
|
+
timeStartTopLearning: number;
|
|
12
|
+
timeEndTopLearning: number;
|
|
3
13
|
};
|
|
4
14
|
export default useTopLearningStrategies;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getTopLearningStrategiesApi: (studentId:
|
|
1
|
+
export declare const getTopLearningStrategiesApi: (studentId: number, timeStartTopLearning: number, timeEndTopLearning: number) => Promise<import("axios").AxiosResponse<any>>;
|
|
2
2
|
export declare const getAllListLearningStrategiesApi: (studentId: number, filters: any) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
studentId: any;
|
|
4
|
-
classFontSize: string;
|
|
5
|
-
isPlp?: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare const TopLearningStrategiesChart: (props: TopLearningStrategiesChartProps) => JSX.Element;
|
|
2
|
+
declare const TopLearningStrategiesChart: (props: any) => JSX.Element;
|
|
8
3
|
export default TopLearningStrategiesChart;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { FILTER_SESSION } from "../constants/types";
|
|
2
|
+
interface STUDENT_INFO {
|
|
3
|
+
fullName: string;
|
|
4
|
+
email: string;
|
|
5
|
+
}
|
|
2
6
|
declare const useClassReflectionList: () => {
|
|
3
7
|
changeFilters: (updatedFilters: any) => void;
|
|
4
8
|
filters: FILTER_SESSION;
|
|
5
9
|
getDataClassReflections: (filters: any, studentId: any) => Promise<void>;
|
|
6
10
|
classReflectionData: any;
|
|
7
11
|
classFontSize: string;
|
|
12
|
+
getStudentInfo: (studentId: number) => Promise<void>;
|
|
13
|
+
studentInfo: STUDENT_INFO | undefined;
|
|
8
14
|
};
|
|
9
15
|
export default useClassReflectionList;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { FILTER_STUDENT_WELLBEING } from "../constants/types";
|
|
2
3
|
declare const useOverview: (studentId: number) => {
|
|
3
4
|
partnerData: any;
|
|
@@ -7,5 +8,81 @@ declare const useOverview: (studentId: number) => {
|
|
|
7
8
|
informationWellbeing: any;
|
|
8
9
|
getInformationWellbeing: (type: number, startDate?: any, endDate?: any) => Promise<void>;
|
|
9
10
|
classFontSize: string;
|
|
11
|
+
anchorElReadinessToLearn: any;
|
|
12
|
+
handleClick: (event: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
13
|
+
handleClose: () => void;
|
|
14
|
+
dataReadinessOfChart: import("../components/NewOverview/Chat/types/types").IReadinessToLearning[];
|
|
15
|
+
chartOneToOneData: import("../components/NewOverview/Chat/types/types").IColumnChartAndPercent;
|
|
16
|
+
handleChangeStartDate: (datepicker: import("@material-ui/pickers/typings/date").MaterialUiPickersDate) => void;
|
|
17
|
+
handleChangeEndDate: (datepicker: import("@material-ui/pickers/typings/date").MaterialUiPickersDate) => void;
|
|
18
|
+
timeEnd: any;
|
|
19
|
+
timeStart: any;
|
|
20
|
+
handleChangeStartDateClassReflection: (datepicker: import("@material-ui/pickers/typings/date").MaterialUiPickersDate) => void;
|
|
21
|
+
handleChangeEndDateClassReflection: (datepicker: import("@material-ui/pickers/typings/date").MaterialUiPickersDate) => void;
|
|
22
|
+
timeEndClassReflection: any;
|
|
23
|
+
timeStartClassReflection: any;
|
|
24
|
+
seriesConference: import("../components/NewOverview/Chat/types/types").ISeries[];
|
|
25
|
+
handleChangeStartDateConference: (datepicker: import("@material-ui/pickers/typings/date").MaterialUiPickersDate) => void;
|
|
26
|
+
handleChangeEndDateConference: (datepicker: import("@material-ui/pickers/typings/date").MaterialUiPickersDate) => void;
|
|
27
|
+
timeEndConference: any;
|
|
28
|
+
timeStartConference: any;
|
|
29
|
+
seriesLearningProgress: import("../components/NewOverview/Chat/types/types").ISeries[];
|
|
30
|
+
handleChangeStartLearningProgress: (datepicker: import("@material-ui/pickers/typings/date").MaterialUiPickersDate) => void;
|
|
31
|
+
handleChangeEndLearningProgress: (datepicker: import("@material-ui/pickers/typings/date").MaterialUiPickersDate) => void;
|
|
32
|
+
timeEndLearningProgress: any;
|
|
33
|
+
timeStartLearningProgress: any;
|
|
34
|
+
topLearningStrategiesData: import("../components/NewOverview/Chat/types/types").ILearningStrategies;
|
|
35
|
+
topLearningStrategy: any;
|
|
36
|
+
labelName: any;
|
|
37
|
+
usageCountList: import("react").MutableRefObject<number[]>;
|
|
38
|
+
learningStrategiesData: any;
|
|
39
|
+
filtersLearningStrategiesData: {
|
|
40
|
+
searchString: string;
|
|
41
|
+
currentPage: number;
|
|
42
|
+
pageSize: number;
|
|
43
|
+
sortBy: string;
|
|
44
|
+
sortOrder: string;
|
|
45
|
+
startDate: null;
|
|
46
|
+
endDate: null;
|
|
47
|
+
};
|
|
48
|
+
changeFiltersLearningStrategiesData: (updatedFilters: any) => void;
|
|
49
|
+
handleActiveColumnOneToOne: (index: any) => void;
|
|
50
|
+
getLearningStrategiesData: () => Promise<void>;
|
|
51
|
+
activeColumnOneToOne: boolean[];
|
|
52
|
+
avgOneToOne: number[];
|
|
53
|
+
monthsOneToOne: string[];
|
|
54
|
+
dataConvertedOneToOne: string[];
|
|
55
|
+
seriesOneToOne: import("../components/NewOverview/Chat/types/types").ISeries[];
|
|
56
|
+
onChangeChart: (type: import("../components/NewOverview/Chat/types/types").TYPECHART) => void;
|
|
57
|
+
typeChartList: import("../components/NewOverview/Chat/types/types").TYPECHART[];
|
|
58
|
+
dataConvertedClassReflection: string[];
|
|
59
|
+
monthsClassReflection: string[];
|
|
60
|
+
avgClassReflection: number[];
|
|
61
|
+
seriesClassRefection: import("../components/NewOverview/Chat/types/types").ISeries[];
|
|
62
|
+
activeColumnClassReflection: boolean[];
|
|
63
|
+
handleActiveColumnClassReflection: (index: any) => void;
|
|
64
|
+
onChangeTypeChartReflection: (type: import("../components/NewOverview/Chat/types/types").TYPECHART) => void;
|
|
65
|
+
typeChartReflection: import("../components/NewOverview/Chat/types/types").TYPECHART[];
|
|
66
|
+
chartClassReflection: import("../components/NewOverview/Chat/types/types").IColumnChartAndPercent;
|
|
67
|
+
dataConvertedConference: string[];
|
|
68
|
+
avgConference: number[];
|
|
69
|
+
monthsConference: string[];
|
|
70
|
+
activeColumnConference: boolean[];
|
|
71
|
+
handleActiveColumnConference: (index: number) => void;
|
|
72
|
+
onChangeTypeConference: (type: import("../components/NewOverview/Chat/types/types").TYPECHART) => void;
|
|
73
|
+
typeChartConference: import("../components/NewOverview/Chat/types/types").TYPECHART[];
|
|
74
|
+
onChangeTypeLearningProgress: (type: import("../components/NewOverview/Chat/types/types").TYPECHART) => void;
|
|
75
|
+
dataConvertedLearningProgress: string[];
|
|
76
|
+
typeChartLearningProgress: import("../components/NewOverview/Chat/types/types").TYPECHART[];
|
|
77
|
+
monthsLearningProgress: string[];
|
|
78
|
+
handleChangeStartTopLearning: (datepicker: import("@material-ui/pickers/typings/date").MaterialUiPickersDate) => void;
|
|
79
|
+
handleChangeEndTopLearning: (datepicker: import("@material-ui/pickers/typings/date").MaterialUiPickersDate) => void;
|
|
80
|
+
timeStartTopLearning: number;
|
|
81
|
+
timeEndTopLearning: number;
|
|
82
|
+
handleChangeStartReadiness: (datepicker: import("@material-ui/pickers/typings/date").MaterialUiPickersDate) => void;
|
|
83
|
+
handleChangeEndReadiness: (datepicker: import("@material-ui/pickers/typings/date").MaterialUiPickersDate) => void;
|
|
84
|
+
timeEndReadiness: number;
|
|
85
|
+
timeStartReadiness: number;
|
|
86
|
+
chartConference: import("../components/NewOverview/Chat/types/types").IColumnChartAndPercent;
|
|
10
87
|
};
|
|
11
88
|
export default useOverview;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const useOverviewToPDF: () => {
|
|
2
|
+
COLOR_CHART: string[];
|
|
3
|
+
dispatch: import("redux").Dispatch<any>;
|
|
4
|
+
setLoading: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean | undefined, string>;
|
|
5
|
+
setAlert: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
|
|
6
|
+
};
|
|
7
|
+
export default useOverviewToPDF;
|