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.
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { PROPS_FILTERS_COMPONENT } from "../../utils/type";
3
- declare const SelectFilter: ({ teacherId, studentUserId, studentId, teacherUserId, studentDefault, handleChangeFilters, name, icon, option, onChangeFilters }: PROPS_FILTERS_COMPONENT) => JSX.Element;
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;
@@ -5,6 +5,7 @@ interface Props {
5
5
  externalStudentIds?: number[];
6
6
  studentDefault?: Student;
7
7
  teacherUserId?: string;
8
+ placeholder?: string;
8
9
  }
9
10
  export interface Student {
10
11
  studentId: number;
@@ -4,6 +4,7 @@ interface IProps {
4
4
  months: string[];
5
5
  activeColumn: boolean[];
6
6
  series: ISeries[];
7
+ isHasLineChart: boolean;
7
8
  }
8
9
  declare const BarAndAreaChart: FC<IProps>;
9
10
  export default BarAndAreaChart;
@@ -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 "../ColumnChartAndPercent";
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;
@@ -0,0 +1,9 @@
1
+ import { FC } from "react";
2
+ import { ISeries } from "../configs/types";
3
+ interface IProps {
4
+ months: string[];
5
+ activeColumn: boolean[];
6
+ series: ISeries[];
7
+ }
8
+ declare const LineChart: FC<IProps>;
9
+ export default LineChart;
@@ -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: (data: IReadinessToLearning[], seriesName: string[]) => ApexOptions;
103
+ export declare const readinesToLearnoptions: (seriesName: string[]) => ApexOptions;
103
104
  export declare const convertDataToSeriesBullderChart: (data: IReadinessToLearning[]) => {
104
105
  name: string;
105
- data: number[][];
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[];
@@ -1,8 +1,10 @@
1
- import { TYPECHART } from "../components/ColumnChartAndPercent";
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;
@@ -1,12 +1,16 @@
1
1
  /// <reference types="react" />
2
2
  import { PROPS_FILTERS_COMPONENT } from "../../../utils/type";
3
- import { TYPECHART } from "../components/ColumnChartAndPercent";
3
+ import { TYPECHART } from "../configs/types";
4
4
  declare const useChartDatas: () => {
5
5
  chartDashBoards: {
6
6
  id: string;
7
7
  label: string;
8
- children: (_: TYPECHART) => JSX.Element;
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;
package/dist/index.css CHANGED
@@ -716,7 +716,7 @@ h6._3zOGW {
716
716
 
717
717
  ._2j8fp ._1PPhv {
718
718
  position: absolute;
719
- right: 50px;
719
+ right: 22px;
720
720
  }
721
721
  ._2j8fp ._1PPhv ._1rjWR {
722
722
  margin-bottom: 22.5px;