mario-education 2.4.26-admin → 2.4.28-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.
Files changed (20) hide show
  1. package/dist/MarioFramework.Education/ClientApp/src/components/Select/SelectFilter.d.ts +1 -1
  2. package/dist/MarioFramework.Education/ClientApp/src/containers/Classes/components/StudentItemSelector.d.ts +1 -0
  3. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/BarAndAreaChart.d.ts +1 -0
  4. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ColumnChartAndPercent.d.ts +9 -11
  5. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/DashboardToPDF.d.ts +3 -0
  6. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/HeaderChart/HeaderChart.d.ts +2 -1
  7. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/LineChart.d.ts +9 -0
  8. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentByAgeAndGender.d.ts +1 -0
  9. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/types.d.ts +10 -0
  10. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +6 -7
  11. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useBehavior.d.ts +4 -2
  12. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts +15 -4
  13. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts +29 -1
  14. package/dist/MarioFramework.Education/ClientApp/src/utils/type.d.ts +6 -0
  15. package/dist/index.css +253 -134
  16. package/dist/index.js +1809 -425
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.modern.js +1809 -425
  19. package/dist/index.modern.js.map +1 -1
  20. package/package.json +3 -1
@@ -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,18 +1,16 @@
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 { TYPECHART } from "../configs/types";
3
+ import { ISeries } from "../../../utils/type";
8
4
  export interface IProps {
9
- data: IOverviewQuestionChoice[];
5
+ data: any;
10
6
  id: string;
11
7
  typeChart?: TYPECHART;
12
- }
13
- export interface ISeries {
14
- name: string;
15
- data: number[];
8
+ isHasLineChart?: boolean;
9
+ onActiveColumn: Function;
10
+ activeColumn: boolean[];
11
+ series: ISeries[];
12
+ avg: number[];
13
+ months: any;
16
14
  }
17
15
  declare const _default: React.NamedExoticComponent<IProps>;
18
16
  export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const DashboardToPDF: (props: any) => JSX.Element;
3
+ export default DashboardToPDF;
@@ -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;
@@ -3,6 +3,7 @@ import { IStudentByAge, IStudentByGender } from "../configs/types";
3
3
  interface IProps {
4
4
  studentByAgeData: IStudentByAge;
5
5
  studentByGenderData: IStudentByGender;
6
+ columnFlex?: boolean;
6
7
  }
7
8
  declare const _default: React.NamedExoticComponent<IProps>;
8
9
  export default _default;
@@ -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";
@@ -55,9 +56,6 @@ export declare const pieChartOptions: {
55
56
  };
56
57
  };
57
58
  };
58
- chart: {
59
- offsetY: number;
60
- };
61
59
  dataLabels: {
62
60
  enabled: boolean;
63
61
  };
@@ -99,13 +97,14 @@ export declare const studentByGradeConvert: (newData: IStudentByGrade[]) => {
99
97
  }[];
100
98
  export declare const findTotalStudentByGrade: (data: IStudentByGrade[]) => number;
101
99
  export declare const getConvertMinuteToHour: (timeSecond: any) => string;
102
- export declare const readinesToLearnoptions: (data: IReadinessToLearning[], seriesName: string[]) => ApexOptions;
100
+ export declare const readinesToLearnoptions: (seriesName: string[]) => ApexOptions;
103
101
  export declare const convertDataToSeriesBullderChart: (data: IReadinessToLearning[]) => {
104
102
  name: string;
105
- data: number[][];
103
+ data: import("react").ReactText[][];
106
104
  }[];
107
105
  export declare const optionColumnChartAndPercents: (months: string[], activeData: boolean[], isRidgeCharts: boolean) => ApexOptions;
108
- export declare const optionBarChartAndArea: (months: string[], activeData: boolean[]) => ApexOptions;
106
+ export declare const optionLineChart: (months: string[], activeData: boolean[]) => ApexOptions;
107
+ export declare const optionBarChartAndArea: (months: string[], activeData: boolean[], newseries?: any) => ApexOptions;
109
108
  export declare const convertDataToDataChart: (data: IOverviewQuestionChoice[]) => string[];
110
109
  export declare const convertToSeriesColumnChartAndPercent: (dataCharts: string[], data: IOverviewQuestionChoice[]) => {
111
110
  name: string;
@@ -113,7 +112,7 @@ export declare const convertToSeriesColumnChartAndPercent: (dataCharts: string[]
113
112
  }[];
114
113
  export declare const convertToAvg: (dataCharts: string[], data: IOverviewQuestionChoice[], months: string[]) => number[];
115
114
  export declare const seriesNameBubbleChartCustom: (series: IReadinessToLearning[]) => string[];
116
- export declare const mergeBarChartAndArea: (series: ISeries[]) => {
115
+ export declare const mergeBarChartAndArea: (series: ISeries[], isHasLineChart: boolean) => {
117
116
  type: string;
118
117
  name: string;
119
118
  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,13 +1,23 @@
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
- chartDashBoards: {
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
- }[];
10
+ options: {
11
+ label: string;
12
+ value: TYPECHART;
13
+ }[];
14
+ } | {
15
+ id: string;
16
+ label: string;
17
+ children: (_: TYPECHART, columnFlex?: boolean | undefined) => JSX.Element;
18
+ isShowChangeChart: boolean;
19
+ options: never[];
20
+ })[];
11
21
  user: any;
12
22
  filter: import("../configs/types").DashboardFilter;
13
23
  LIST_FILTERS_LEFT: PROPS_FILTERS_COMPONENT[];
@@ -28,5 +38,6 @@ declare const useChartDatas: () => {
28
38
  filter: string;
29
39
  })[];
30
40
  onChangeFilters: (filterSelect: import("../../../utils/type").IFilter) => void;
41
+ initialTypeChart: (TYPECHART.AREA | TYPECHART)[];
31
42
  };
32
43
  export default useChartDatas;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { DashboardFilter, IActivityCircle, IlearningStrategies, IReadinessToLearning, IStudentByGrade, IStudentBySpecialNeed, IsyntheticFriendCircle, BAND_SCORE, IColumnChartAndPercent, IStudentByAge, IStudentByGender, IDashboardToTalStudent } from "../configs/types";
3
- import { IFilter, Student } from "../../../utils/type";
3
+ import { IFilter, Student, ISeries } from "../../../utils/type";
4
4
  declare const useDashboard: () => {
5
5
  setFilter: import("react").Dispatch<import("react").SetStateAction<DashboardFilter>>;
6
6
  filter: DashboardFilter;
@@ -29,6 +29,34 @@ declare const useDashboard: () => {
29
29
  setGenderOfStudent: import("react").Dispatch<import("react").SetStateAction<string>>;
30
30
  handleFilterStudent: (option: any) => void;
31
31
  handleFilterTeacher: (option: any) => void;
32
+ handleSelectToPrint: (checked: boolean, data: any, chartType: any) => void;
33
+ checkSelectedItem: (id: string) => boolean;
34
+ selectedToPrint: any;
35
+ setSelectedToPrint: import("react").Dispatch<any>;
32
36
  onChangeFilters: (filterSelect: IFilter) => void;
37
+ handleActiveColumnOneToOne: (index: any) => void;
38
+ seriesOneToOne: ISeries[];
39
+ avgOneToOne: number[];
40
+ dataConvertedOneToOne: string[];
41
+ monthsOneToOne: string[];
42
+ activeColumnOneToOne: boolean[];
43
+ handleActiveColumnClassReflection: (index: any) => void;
44
+ seriesClassRefection: ISeries[];
45
+ avgClassReflection: number[];
46
+ dataConvertedClassReflection: string[];
47
+ monthsClassReflection: string[];
48
+ activeColumnClassReflection: boolean[];
49
+ handleActiveColumnConference: (index: number) => void;
50
+ seriesConference: ISeries[];
51
+ avgConference: number[];
52
+ dataConvertedConference: string[];
53
+ monthsConference: string[];
54
+ activeColumnConference: boolean[];
55
+ handleActiveColumnSafety: (index: number) => void;
56
+ seriesSafety: ISeries[];
57
+ avgSafety: number[];
58
+ dataConvertedSafety: string[];
59
+ monthsSafety: string[];
60
+ activeColumnSafety: boolean[];
33
61
  };
34
62
  export default useDashboard;
@@ -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;
@@ -51,3 +53,7 @@ export interface LAST_YEAR {
51
53
  label: string;
52
54
  value: number;
53
55
  }
56
+ export interface ISeries {
57
+ name: string;
58
+ data: number[];
59
+ }