mario-education 2.4.26-admin → 2.4.27-admin
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/Select/SelectFilter.d.ts +1 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/Classes/components/StudentItemSelector.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/BarAndAreaChart.d.ts +1 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ColumnChartAndPercent.d.ts +2 -6
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/HeaderChart/HeaderChart.d.ts +2 -1
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/LineChart.d.ts +9 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/types.d.ts +10 -0
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +5 -3
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useBehavior.d.ts +4 -2
- package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts +7 -2
- package/dist/MarioFramework.Education/ClientApp/src/utils/type.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.js +582 -335
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +582 -335
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PROPS_FILTERS_COMPONENT } from "../../utils/type";
|
|
3
|
-
declare const SelectFilter: ({
|
|
3
|
+
declare const SelectFilter: ({ studentUserId, studentId, studentDefault, handleChangeFilters, name, icon, option, onChangeFilters, btnStyle, filter, teacherUserId, changeCurrentTeacherUserId }: PROPS_FILTERS_COMPONENT) => JSX.Element;
|
|
4
4
|
export default SelectFilter;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { IOverviewQuestionChoice } from "../configs/types";
|
|
3
|
-
export declare enum TYPECHART {
|
|
4
|
-
AREA = 0,
|
|
5
|
-
BAR = 1,
|
|
6
|
-
BOTH = 2
|
|
7
|
-
}
|
|
2
|
+
import { IOverviewQuestionChoice, TYPECHART } from "../configs/types";
|
|
8
3
|
export interface IProps {
|
|
9
4
|
data: IOverviewQuestionChoice[];
|
|
10
5
|
id: string;
|
|
11
6
|
typeChart?: TYPECHART;
|
|
7
|
+
isHasLineChart?: boolean;
|
|
12
8
|
}
|
|
13
9
|
export interface ISeries {
|
|
14
10
|
name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { TYPECHART } from "
|
|
2
|
+
import { IChartOptions, TYPECHART } from "../../configs/types";
|
|
3
3
|
interface IProps {
|
|
4
4
|
title: string;
|
|
5
5
|
onToggle: () => void;
|
|
@@ -7,6 +7,7 @@ interface IProps {
|
|
|
7
7
|
typeChart?: TYPECHART;
|
|
8
8
|
onChangeChart: (type: TYPECHART) => void;
|
|
9
9
|
isOpen: boolean;
|
|
10
|
+
options?: IChartOptions[];
|
|
10
11
|
}
|
|
11
12
|
declare const HeaderChart: FC<IProps>;
|
|
12
13
|
export default HeaderChart;
|
|
@@ -217,4 +217,14 @@ export interface ILabelBox {
|
|
|
217
217
|
grade: number;
|
|
218
218
|
bandScore: number;
|
|
219
219
|
}
|
|
220
|
+
export declare enum TYPECHART {
|
|
221
|
+
AREA = 0,
|
|
222
|
+
BAR = 1,
|
|
223
|
+
LINE = 2,
|
|
224
|
+
BOTH = 3
|
|
225
|
+
}
|
|
226
|
+
export interface IChartOptions {
|
|
227
|
+
value: TYPECHART;
|
|
228
|
+
label: string;
|
|
229
|
+
}
|
|
220
230
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ApexOptions } from "apexcharts";
|
|
2
3
|
import { IOptionSelector } from "../../../components/Select/InputSelector";
|
|
3
4
|
import { FILTER_YEAR, IActivityCircle, IOverviewQuestionChoice, IReadinessToLearning, ISeries, IseriesChart, IStudentByAge, IStudentByGrade, IsyntheticFriendCircle, LegalGenderType, MtssType } from "./types";
|
|
@@ -99,12 +100,13 @@ export declare const studentByGradeConvert: (newData: IStudentByGrade[]) => {
|
|
|
99
100
|
}[];
|
|
100
101
|
export declare const findTotalStudentByGrade: (data: IStudentByGrade[]) => number;
|
|
101
102
|
export declare const getConvertMinuteToHour: (timeSecond: any) => string;
|
|
102
|
-
export declare const readinesToLearnoptions: (
|
|
103
|
+
export declare const readinesToLearnoptions: (seriesName: string[]) => ApexOptions;
|
|
103
104
|
export declare const convertDataToSeriesBullderChart: (data: IReadinessToLearning[]) => {
|
|
104
105
|
name: string;
|
|
105
|
-
data:
|
|
106
|
+
data: import("react").ReactText[][];
|
|
106
107
|
}[];
|
|
107
108
|
export declare const optionColumnChartAndPercents: (months: string[], activeData: boolean[], isRidgeCharts: boolean) => ApexOptions;
|
|
109
|
+
export declare const optionLineChart: (months: string[], activeData: boolean[]) => ApexOptions;
|
|
108
110
|
export declare const optionBarChartAndArea: (months: string[], activeData: boolean[]) => ApexOptions;
|
|
109
111
|
export declare const convertDataToDataChart: (data: IOverviewQuestionChoice[]) => string[];
|
|
110
112
|
export declare const convertToSeriesColumnChartAndPercent: (dataCharts: string[], data: IOverviewQuestionChoice[]) => {
|
|
@@ -113,7 +115,7 @@ export declare const convertToSeriesColumnChartAndPercent: (dataCharts: string[]
|
|
|
113
115
|
}[];
|
|
114
116
|
export declare const convertToAvg: (dataCharts: string[], data: IOverviewQuestionChoice[], months: string[]) => number[];
|
|
115
117
|
export declare const seriesNameBubbleChartCustom: (series: IReadinessToLearning[]) => string[];
|
|
116
|
-
export declare const mergeBarChartAndArea: (series: ISeries[]) => {
|
|
118
|
+
export declare const mergeBarChartAndArea: (series: ISeries[], isHasLineChart: boolean) => {
|
|
117
119
|
type: string;
|
|
118
120
|
name: string;
|
|
119
121
|
data: number[];
|
package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useBehavior.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { TYPECHART } from "../
|
|
2
|
-
declare const useBehavior: () => {
|
|
1
|
+
import { TYPECHART } from "../configs/types";
|
|
2
|
+
declare const useBehavior: (initialTypeChart: TYPECHART[]) => {
|
|
3
3
|
chartIsOpened: boolean[];
|
|
4
4
|
onToggle: (idx: number) => void;
|
|
5
5
|
onChangeChart: (idx: number, type: TYPECHART) => void;
|
|
6
6
|
typeChartList: TYPECHART[];
|
|
7
|
+
teacherUserId: string;
|
|
8
|
+
changeCurrentTeacherUserId: (userId: string) => void;
|
|
7
9
|
};
|
|
8
10
|
export default useBehavior;
|
package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PROPS_FILTERS_COMPONENT } from "../../../utils/type";
|
|
3
|
-
import { TYPECHART } from "../
|
|
3
|
+
import { TYPECHART } from "../configs/types";
|
|
4
4
|
declare const useChartDatas: () => {
|
|
5
5
|
chartDashBoards: {
|
|
6
6
|
id: string;
|
|
7
7
|
label: string;
|
|
8
|
-
children: (
|
|
8
|
+
children: (typeChart: TYPECHART) => JSX.Element;
|
|
9
9
|
isShowChangeChart: boolean;
|
|
10
|
+
options: {
|
|
11
|
+
label: string;
|
|
12
|
+
value: TYPECHART;
|
|
13
|
+
}[];
|
|
10
14
|
}[];
|
|
11
15
|
user: any;
|
|
12
16
|
filter: import("../configs/types").DashboardFilter;
|
|
@@ -28,5 +32,6 @@ declare const useChartDatas: () => {
|
|
|
28
32
|
filter: string;
|
|
29
33
|
})[];
|
|
30
34
|
onChangeFilters: (filterSelect: import("../../../utils/type").IFilter) => void;
|
|
35
|
+
initialTypeChart: (TYPECHART.AREA | TYPECHART)[];
|
|
31
36
|
};
|
|
32
37
|
export default useChartDatas;
|
|
@@ -30,6 +30,8 @@ export interface PROPS_FILTERS_COMPONENT {
|
|
|
30
30
|
option?: any[];
|
|
31
31
|
defautl?: number;
|
|
32
32
|
onChangeFilters?: (filters: IFilter) => void;
|
|
33
|
+
btnStyle?: any;
|
|
34
|
+
changeCurrentTeacherUserId?: (userId: string) => void;
|
|
33
35
|
}
|
|
34
36
|
export interface BAND_SCORE {
|
|
35
37
|
label: string;
|