mario-education 2.4.27-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.
@@ -1,14 +1,16 @@
1
1
  import React from "react";
2
- import { IOverviewQuestionChoice, TYPECHART } from "../configs/types";
2
+ import { TYPECHART } from "../configs/types";
3
+ import { ISeries } from "../../../utils/type";
3
4
  export interface IProps {
4
- data: IOverviewQuestionChoice[];
5
+ data: any;
5
6
  id: string;
6
7
  typeChart?: TYPECHART;
7
8
  isHasLineChart?: boolean;
8
- }
9
- export interface ISeries {
10
- name: string;
11
- data: number[];
9
+ onActiveColumn: Function;
10
+ activeColumn: boolean[];
11
+ series: ISeries[];
12
+ avg: number[];
13
+ months: any;
12
14
  }
13
15
  declare const _default: React.NamedExoticComponent<IProps>;
14
16
  export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const DashboardToPDF: (props: any) => JSX.Element;
3
+ export default DashboardToPDF;
@@ -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;
@@ -56,9 +56,6 @@ export declare const pieChartOptions: {
56
56
  };
57
57
  };
58
58
  };
59
- chart: {
60
- offsetY: number;
61
- };
62
59
  dataLabels: {
63
60
  enabled: boolean;
64
61
  };
@@ -107,7 +104,7 @@ export declare const convertDataToSeriesBullderChart: (data: IReadinessToLearnin
107
104
  }[];
108
105
  export declare const optionColumnChartAndPercents: (months: string[], activeData: boolean[], isRidgeCharts: boolean) => ApexOptions;
109
106
  export declare const optionLineChart: (months: string[], activeData: boolean[]) => ApexOptions;
110
- export declare const optionBarChartAndArea: (months: string[], activeData: boolean[]) => ApexOptions;
107
+ export declare const optionBarChartAndArea: (months: string[], activeData: boolean[], newseries?: any) => ApexOptions;
111
108
  export declare const convertDataToDataChart: (data: IOverviewQuestionChoice[]) => string[];
112
109
  export declare const convertToSeriesColumnChartAndPercent: (dataCharts: string[], data: IOverviewQuestionChoice[]) => {
113
110
  name: string;
@@ -2,7 +2,7 @@
2
2
  import { PROPS_FILTERS_COMPONENT } from "../../../utils/type";
3
3
  import { TYPECHART } from "../configs/types";
4
4
  declare const useChartDatas: () => {
5
- chartDashBoards: {
5
+ chartDashBoards: ({
6
6
  id: string;
7
7
  label: string;
8
8
  children: (typeChart: TYPECHART) => JSX.Element;
@@ -11,7 +11,13 @@ declare const useChartDatas: () => {
11
11
  label: string;
12
12
  value: TYPECHART;
13
13
  }[];
14
- }[];
14
+ } | {
15
+ id: string;
16
+ label: string;
17
+ children: (_: TYPECHART, columnFlex?: boolean | undefined) => JSX.Element;
18
+ isShowChangeChart: boolean;
19
+ options: never[];
20
+ })[];
15
21
  user: any;
16
22
  filter: import("../configs/types").DashboardFilter;
17
23
  LIST_FILTERS_LEFT: PROPS_FILTERS_COMPONENT[];
@@ -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;
@@ -53,3 +53,7 @@ export interface LAST_YEAR {
53
53
  label: string;
54
54
  value: number;
55
55
  }
56
+ export interface ISeries {
57
+ name: string;
58
+ data: number[];
59
+ }