mario-education 2.4.28-beta → 2.4.31-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 (54) hide show
  1. package/dist/MarioFramework.Education/ClientApp/src/components/Questions/QuestionSelector.d.ts +0 -1
  2. package/dist/MarioFramework.Education/ClientApp/src/components/Select/SelectFilter.d.ts +4 -0
  3. package/dist/MarioFramework.Education/ClientApp/src/containers/Classes/components/StudentItemSelector.d.ts +1 -0
  4. package/dist/MarioFramework.Education/ClientApp/src/containers/ConferenceRubric/hooks/useConferenceRubricDetail.d.ts +1 -1
  5. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/AreaChart.d.ts +9 -0
  6. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/BarAndAreaChart.d.ts +10 -0
  7. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/BarChart.d.ts +9 -0
  8. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/BubbleChartCustom.d.ts +7 -0
  9. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/CheckboxCustom.d.ts +12 -0
  10. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ColumnChartAndPercent.d.ts +16 -0
  11. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/CustomPieChart.d.ts +7 -0
  12. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/DashboardToPDF.d.ts +3 -0
  13. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/HeaderChart/HeaderChart.d.ts +13 -0
  14. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/HeaderChart/PlusButton.d.ts +6 -0
  15. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/LineChart.d.ts +9 -0
  16. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentByAge.d.ts +6 -2
  17. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentByAgeAndGender.d.ts +9 -0
  18. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/StudentByGrade.d.ts +3 -3
  19. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/TopLearningStrategy.d.ts +3 -3
  20. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/TotalCard.d.ts +1 -1
  21. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/constants.d.ts +26 -0
  22. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/types.d.ts +102 -6
  23. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/configs/utils.d.ts +93 -2
  24. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useBehavior.d.ts +10 -0
  25. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useChartDatas.d.ts +52 -0
  26. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/hooks/useDashboard.d.ts +44 -20
  27. package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/components/DestinationModal.d.ts +13 -0
  28. package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/hooks/useDestination.d.ts +18 -0
  29. package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/utils/constant.d.ts +11 -0
  30. package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/utils/type.interface.d.ts +4 -0
  31. package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/utils/ultis.d.ts +7 -0
  32. package/dist/MarioFramework.Education/ClientApp/src/containers/Destinations/views/Destinations.d.ts +3 -0
  33. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/configs/questionDetailSchema.d.ts +2 -2
  34. package/dist/MarioFramework.Education/ClientApp/src/containers/QuestionBank/hooks/useQuestionDetail.d.ts +0 -1
  35. package/dist/MarioFramework.Education/ClientApp/src/containers/SessionTemplate/configs/validationSchema.d.ts +2 -2
  36. package/dist/MarioFramework.Education/ClientApp/src/containers/SessionTemplate/hooks/useSessionTemplateDetail.d.ts +1 -1
  37. package/dist/MarioFramework.Education/ClientApp/src/containers/SessionTemplateGeneralClass/hooks/useSessionTemplateGeneralClassDetail.d.ts +1 -1
  38. package/dist/MarioFramework.Education/ClientApp/src/services/dashboardService.d.ts +1 -0
  39. package/dist/MarioFramework.Education/ClientApp/src/services/designationService.d.ts +5 -0
  40. package/dist/MarioFramework.Education/ClientApp/src/services/questionCategoryService.d.ts +0 -5
  41. package/dist/MarioFramework.Education/ClientApp/src/utils/constants.d.ts +9 -0
  42. package/dist/MarioFramework.Education/ClientApp/src/utils/serviceType.interface.d.ts +15 -0
  43. package/dist/MarioFramework.Education/ClientApp/src/utils/type.d.ts +59 -0
  44. package/dist/index.css +578 -210
  45. package/dist/index.js +11644 -4261
  46. package/dist/index.js.map +1 -1
  47. package/dist/index.modern.js +11646 -4263
  48. package/dist/index.modern.js.map +1 -1
  49. package/package.json +4 -2
  50. package/dist/MarioFramework.Education/ClientApp/src/containers/Dashboard/components/ReadinessToLearn.d.ts +0 -7
  51. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/components/TemplateCateModal.d.ts +0 -3
  52. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/hooks/useTemplateCateDetail.d.ts +0 -35
  53. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/hooks/useTemplateCateList.d.ts +0 -9
  54. package/dist/MarioFramework.Education/ClientApp/src/containers/TemplateSurvey/views/TemplateSurveyList.d.ts +0 -3
@@ -4,7 +4,6 @@ interface Props {
4
4
  onChange: Function;
5
5
  value: any | null;
6
6
  externalQuestionIds: number[];
7
- isDefaultQuestionSurvey?: boolean;
8
7
  }
9
8
  declare const QuestionSelector: FC<Props>;
10
9
  export default QuestionSelector;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { PROPS_FILTERS_COMPONENT } from "../../utils/type";
3
+ declare const SelectFilter: ({ studentUserId, studentId, studentDefault, handleChangeFilters, name, icon, option, onChangeFilters, btnStyle, filter, teacherUserId, changeCurrentTeacherUserId }: PROPS_FILTERS_COMPONENT) => JSX.Element;
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;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ConferenceRubric, ConferenceRubricQuestion, ConferenceRubricSkill } from "../configs/types";
3
- declare const useConferenceRubricDetail: (id?: import("yup/lib/types").Maybe<number>) => {
3
+ declare const useConferenceRubricDetail: (id?: number | null | undefined) => {
4
4
  conferenceRubricDetail: ConferenceRubric;
5
5
  temporarySkill: ConferenceRubricSkill | null;
6
6
  setTemporarySkill: import("react").Dispatch<import("react").SetStateAction<ConferenceRubricSkill | null>>;
@@ -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 AreaChart: FC<IProps>;
9
+ export default AreaChart;
@@ -0,0 +1,10 @@
1
+ import { FC } from "react";
2
+ import { ISeries } from "../configs/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,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 BarChart: FC<IProps>;
9
+ export default BarChart;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { IReadinessToLearning } from "../configs/types";
3
+ interface IProps {
4
+ data: IReadinessToLearning[];
5
+ }
6
+ declare const _default: React.NamedExoticComponent<IProps>;
7
+ 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,16 @@
1
+ import React from "react";
2
+ import { TYPECHART } from "../configs/types";
3
+ import { ISeries } from "../../../utils/type";
4
+ export interface IProps {
5
+ data: any;
6
+ id: string;
7
+ typeChart?: TYPECHART;
8
+ isHasLineChart?: boolean;
9
+ onActiveColumn: Function;
10
+ activeColumn: boolean[];
11
+ series: ISeries[];
12
+ avg: number[];
13
+ months: any;
14
+ }
15
+ declare const _default: React.NamedExoticComponent<IProps>;
16
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { FC } from "react";
2
+ import { IStudentByGender } from "../configs/types";
3
+ interface IProps {
4
+ data: IStudentByGender;
5
+ }
6
+ declare const CustomPieChart: FC<IProps>;
7
+ export default CustomPieChart;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const DashboardToPDF: (props: any) => JSX.Element;
3
+ export default DashboardToPDF;
@@ -0,0 +1,13 @@
1
+ import { FC } from "react";
2
+ import { IChartOptions, TYPECHART } from "../../configs/types";
3
+ interface IProps {
4
+ title: string;
5
+ onToggle: () => void;
6
+ isShowChangeChart?: boolean;
7
+ typeChart?: TYPECHART;
8
+ onChangeChart: (type: TYPECHART) => void;
9
+ isOpen: boolean;
10
+ options?: IChartOptions[];
11
+ }
12
+ declare const HeaderChart: FC<IProps>;
13
+ export default HeaderChart;
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ interface IProps {
3
+ isActive: boolean;
4
+ }
5
+ declare const PlusButton: FC<IProps>;
6
+ export default PlusButton;
@@ -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;
@@ -1,3 +1,7 @@
1
- /// <reference types="react" />
2
- declare const StudentByAge: ({ data }: any) => JSX.Element;
1
+ import { FC } from "react";
2
+ import { IStudentByAge } from "../configs/types";
3
+ interface IProps {
4
+ data: IStudentByAge;
5
+ }
6
+ declare const StudentByAge: FC<IProps>;
3
7
  export default StudentByAge;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { IStudentByAge, IStudentByGender } from "../configs/types";
3
+ interface IProps {
4
+ studentByAgeData: IStudentByAge;
5
+ studentByGenderData: IStudentByGender;
6
+ columnFlex?: boolean;
7
+ }
8
+ declare const _default: React.NamedExoticComponent<IProps>;
9
+ export default _default;
@@ -1,7 +1,7 @@
1
- import { FC } from "react";
1
+ import React from "react";
2
2
  import { IStudentByGrade } from "../configs/types";
3
3
  interface IGradeStudentChart {
4
4
  data: IStudentByGrade[];
5
5
  }
6
- declare const StudentByGrade: FC<IGradeStudentChart>;
7
- export default StudentByGrade;
6
+ declare const _default: React.NamedExoticComponent<IGradeStudentChart>;
7
+ export default _default;
@@ -1,7 +1,7 @@
1
- import { FC } from "react";
1
+ import React from "react";
2
2
  import { IlearningStrategies } from "../configs/types";
3
3
  interface ITopLearningStrategy {
4
4
  data: IlearningStrategies;
5
5
  }
6
- declare const TopLearningStrategy: FC<ITopLearningStrategy>;
7
- export default TopLearningStrategy;
6
+ declare const _default: React.NamedExoticComponent<ITopLearningStrategy>;
7
+ export default _default;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { TotalCardItem } from "../configs/types";
3
- declare const TotalCard: ({ icon, title, value, }: TotalCardItem) => JSX.Element;
3
+ declare const TotalCard: ({ icon, title, value }: TotalCardItem) => JSX.Element;
4
4
  export default TotalCard;
@@ -1,3 +1,4 @@
1
+ import { IStudentByAge } from "./types";
1
2
  export declare const colors: string[];
2
3
  export declare const INITIAL_BEST_FRIENDS: {
3
4
  friends: number;
@@ -16,3 +17,28 @@ export declare const LEARNING_STRATEGY_INIT: {
16
17
  learningStrategies: never[];
17
18
  };
18
19
  export declare const GRAGE_DEFAULT: string[];
20
+ export declare const INITIAl_COLUNM_CHART_AND_PERCENT: {
21
+ overviewQuestionChoice: never[];
22
+ type: string;
23
+ };
24
+ export declare const INITIAL_AGE_OF_STUDENT: IStudentByAge;
25
+ export declare const LABEL_NAME_PIE_CHART: string[];
26
+ export declare const INITIAL_STUDENT_BY_GENDER: {
27
+ male: number;
28
+ female: number;
29
+ };
30
+ export declare const INITIAl_STUDENT_DASHBOARD: {
31
+ avgClassReflection: number;
32
+ totalConference: number;
33
+ totalOneToOne: number;
34
+ totalTimeConference: number;
35
+ totalTimeOneToOne: number;
36
+ };
37
+ export declare const INITIAL_AVG: number[];
38
+ export declare const COLOR_CHART_AND_PERCENTS: string[];
39
+ export declare const COLOR_CHART_BUBBLE: string[];
40
+ export declare const PERCENT: number[];
41
+ export declare const GENDER_OPTION: {
42
+ value: number;
43
+ label: string;
44
+ }[];
@@ -58,14 +58,19 @@ export declare type TotalCardItem = {
58
58
  filter: string;
59
59
  };
60
60
  export declare type DashboardFilter = {
61
- startDate: number;
62
- endDate: number;
61
+ startDate?: number;
62
+ endDate?: number;
63
63
  studentIds: number[];
64
64
  gender?: number[];
65
- grade?: string[];
65
+ grade: string[];
66
66
  teacherId?: number;
67
67
  mtss?: MtssType;
68
68
  studentId?: number;
69
+ calendar?: string;
70
+ currentGrade?: string;
71
+ teacherUserId?: string;
72
+ studentUserId?: string;
73
+ bandScore: string;
69
74
  };
70
75
  export interface ICircleChartItem {
71
76
  id: number;
@@ -96,12 +101,18 @@ export interface IChartComponent {
96
101
  children: JSX.Element | undefined;
97
102
  }
98
103
  export declare enum LegalGenderType {
99
- Male = 0,
100
- Female = 1
104
+ None = 0,
105
+ Male = 1,
106
+ Female = 2
107
+ }
108
+ export interface IDesignationsQuantity {
109
+ name: string;
110
+ quantity: number;
101
111
  }
102
112
  export interface IStudentByGrade {
103
113
  grade: string;
104
114
  quantity: number;
115
+ designationsQuantity: IDesignationsQuantity[];
105
116
  }
106
117
  export interface ISeries {
107
118
  name: string;
@@ -115,9 +126,14 @@ export interface IlearningItem {
115
126
  export interface IlearningStrategies {
116
127
  learningStrategies: IlearningItem[];
117
128
  }
129
+ export interface IStudentPercentQuestion {
130
+ percentQuestion: number;
131
+ studentId: number;
132
+ studentName: string;
133
+ }
118
134
  export interface IReadinessToLearning {
119
135
  questionText: string;
120
- percentQuestion: number;
136
+ studentPercentQuestion: IStudentPercentQuestion[];
121
137
  }
122
138
  export declare enum MtssType {
123
139
  Tier1 = 0,
@@ -132,4 +148,84 @@ export interface IseriesChart {
132
148
  name: string[];
133
149
  data: number[];
134
150
  }
151
+ export interface IResultQuestion {
152
+ avgOfStudentChoice: number;
153
+ questionId: number;
154
+ questionText: string;
155
+ }
156
+ export interface IOverviewQuestionChoice {
157
+ month: string;
158
+ resultQuestion: IResultQuestion[];
159
+ }
160
+ export interface IColumnChartAndPercent {
161
+ overviewQuestionChoice: IOverviewQuestionChoice[];
162
+ type: string;
163
+ }
164
+ export interface IAgeOfStudent {
165
+ nineToTwelve: number;
166
+ sixToEight: number;
167
+ sixteenToEighteen: number;
168
+ thirteenToFifteen: number;
169
+ threeToFive: number;
170
+ }
171
+ export interface IStudentByAge {
172
+ ageOfFeMaleStudent: IAgeOfStudent;
173
+ ageOfMaleStudent: IAgeOfStudent;
174
+ }
175
+ export interface IStudentByGender {
176
+ male: number;
177
+ female: number;
178
+ }
179
+ export interface BAND_SCORE {
180
+ label: string;
181
+ value: number;
182
+ }
183
+ export interface IOption {
184
+ label: string;
185
+ value: number;
186
+ }
187
+ export interface IDashboardToTalStudent {
188
+ avgClassReflection: number;
189
+ totalConference: number;
190
+ totalOneToOne: number;
191
+ totalTimeConference: number;
192
+ totalTimeOneToOne: number;
193
+ }
194
+ export declare enum FILTER_YEAR {
195
+ THIS_YEAR = 0,
196
+ LAST_YEAR = 1,
197
+ LAST_QUARTER = 2,
198
+ LAST_MONTH = 3,
199
+ LAST_DAY = 4
200
+ }
201
+ export interface IfilterYear {
202
+ label: string;
203
+ value: FILTER_YEAR;
204
+ startDate: number;
205
+ endDate: number;
206
+ }
207
+ export interface ICalenDarLabelBox {
208
+ value: FILTER_YEAR;
209
+ label: string;
210
+ }
211
+ export interface IGenderLabelBox {
212
+ value: number;
213
+ label: string;
214
+ }
215
+ export interface ILabelBox {
216
+ calendar: ICalenDarLabelBox;
217
+ gender: IGenderLabelBox;
218
+ grade: number;
219
+ bandScore: number;
220
+ }
221
+ export declare enum TYPECHART {
222
+ AREA = 0,
223
+ BAR = 1,
224
+ LINE = 2,
225
+ BOTH = 3
226
+ }
227
+ export interface IChartOptions {
228
+ value: TYPECHART;
229
+ label: string;
230
+ }
135
231
  export {};
@@ -1,6 +1,7 @@
1
+ /// <reference types="react" />
1
2
  import { ApexOptions } from "apexcharts";
2
3
  import { IOptionSelector } from "../../../components/Select/InputSelector";
3
- import { IActivityCircle, ISeries, IseriesChart, IStudentByGrade, IsyntheticFriendCircle, LegalGenderType, MtssType } from "./types";
4
+ import { FILTER_YEAR, IActivityCircle, IOverviewQuestionChoice, IReadinessToLearning, ISeries, IseriesChart, IStudentByAge, IStudentByGrade, IsyntheticFriendCircle, LegalGenderType, MtssType } from "./types";
4
5
  export declare const getColors: (length: number) => string[];
5
6
  export declare const friendCircleItems: ({ bestFriends, friends, couldBeFriends, supportive }: IsyntheticFriendCircle) => {
6
7
  id: number;
@@ -29,10 +30,100 @@ export declare const mtssOptions: {
29
30
  }[];
30
31
  export declare const learningStrategyChartOptions: (labelNames: string[], usageCountList: number[]) => ApexOptions;
31
32
  export declare const ReadinessToLearnOptions: (questionTexts: string[]) => ApexOptions;
32
- export declare const optionsChartGrade: (maxDatas: number, colorCharts: string[]) => ApexOptions;
33
+ export declare const optionsChartGrade: (maxDatas: number) => ApexOptions;
33
34
  export declare const studentBySpecialNeedOptions: (seriesValue: IseriesChart, colors: string[]) => ApexOptions;
35
+ export declare const studentByAgeOptions: (series: ISeries[]) => ApexOptions;
36
+ export declare const convertDataStudentByAgeToSeries: (data: IStudentByAge) => {
37
+ name: string;
38
+ data: any[];
39
+ }[];
40
+ export declare const totalStudentByAge: (data: IStudentByAge) => any;
34
41
  export declare const seriesConvert: (gradeAndQuantity: IStudentByGrade[]) => ISeries[];
35
42
  export declare const maxSeries: (series: ISeries[]) => number;
36
43
  export declare const average: (arr: number[]) => number;
37
44
  export declare const colorCharts: (series: ISeries[]) => string[];
38
45
  export declare const colorChartsSpecialNeedOptions: (series: IseriesChart[]) => string[];
46
+ export declare const pieChartOptions: {
47
+ labels: string[];
48
+ colors: string[];
49
+ legend: {
50
+ show: boolean;
51
+ };
52
+ plotOptions: {
53
+ pie: {
54
+ donut: {
55
+ size: string;
56
+ };
57
+ };
58
+ };
59
+ dataLabels: {
60
+ enabled: boolean;
61
+ };
62
+ fill: {
63
+ colors: string[];
64
+ };
65
+ stroke: {
66
+ colors: string[];
67
+ width: number;
68
+ };
69
+ states: {
70
+ normal: {
71
+ filter: {
72
+ type: string;
73
+ value: number;
74
+ };
75
+ };
76
+ hover: {
77
+ filter: {
78
+ type: string;
79
+ value: number;
80
+ };
81
+ };
82
+ active: {
83
+ filter: {
84
+ type: string;
85
+ value: number;
86
+ };
87
+ };
88
+ };
89
+ };
90
+ export declare const convertDataToSeriesStudentByGrade: (data: IStudentByGrade[]) => {
91
+ name: string;
92
+ data: number[];
93
+ }[];
94
+ export declare const studentByGradeConvert: (newData: IStudentByGrade[]) => {
95
+ name: string;
96
+ data: number[];
97
+ }[];
98
+ export declare const findTotalStudentByGrade: (data: IStudentByGrade[]) => number;
99
+ export declare const getConvertMinuteToHour: (timeSecond: any) => string;
100
+ export declare const readinesToLearnoptions: (seriesName: string[]) => ApexOptions;
101
+ export declare const convertDataToSeriesBullderChart: (data: IReadinessToLearning[]) => {
102
+ name: string;
103
+ data: import("react").ReactText[][];
104
+ }[];
105
+ export declare const optionColumnChartAndPercents: (months: string[], activeData: boolean[], isRidgeCharts: boolean) => ApexOptions;
106
+ export declare const optionLineChart: (months: string[], activeData: boolean[]) => ApexOptions;
107
+ export declare const optionBarChartAndArea: (months: string[], activeData: boolean[], newseries?: any) => ApexOptions;
108
+ export declare const convertDataToDataChart: (data: IOverviewQuestionChoice[]) => string[];
109
+ export declare const convertToSeriesColumnChartAndPercent: (dataCharts: string[], data: IOverviewQuestionChoice[]) => {
110
+ name: string;
111
+ data: number[];
112
+ }[];
113
+ export declare const convertToAvg: (dataCharts: string[], data: IOverviewQuestionChoice[], months: string[]) => number[];
114
+ export declare const seriesNameBubbleChartCustom: (series: IReadinessToLearning[]) => string[];
115
+ export declare const mergeBarChartAndArea: (series: ISeries[], isHasLineChart: boolean) => {
116
+ type: string;
117
+ name: string;
118
+ data: number[];
119
+ }[];
120
+ export declare const getLastQuarterRange: () => {
121
+ start: number;
122
+ end: number;
123
+ };
124
+ export declare const filterYearData: {
125
+ label: string;
126
+ value: FILTER_YEAR;
127
+ startDate: number;
128
+ endDate: number;
129
+ }[];
@@ -0,0 +1,10 @@
1
+ import { TYPECHART } from "../configs/types";
2
+ declare const useBehavior: (initialTypeChart: TYPECHART[]) => {
3
+ chartIsOpened: boolean[];
4
+ onToggle: (idx: number) => void;
5
+ onChangeChart: (idx: number, type: TYPECHART) => void;
6
+ typeChartList: TYPECHART[];
7
+ teacherUserId: string;
8
+ changeCurrentTeacherUserId: (userId: string) => void;
9
+ };
10
+ export default useBehavior;
@@ -0,0 +1,52 @@
1
+ import React from "react";
2
+ import { PROPS_FILTERS_COMPONENT } from "../../../utils/type";
3
+ import { TYPECHART } from "../configs/types";
4
+ declare const useChartDatas: () => {
5
+ chartDashBoards: ({
6
+ id: string;
7
+ label: string;
8
+ children: (typeChart: TYPECHART) => JSX.Element;
9
+ isShowChangeChart: boolean;
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
+ })[];
21
+ user: any;
22
+ filter: import("../configs/types").DashboardFilter;
23
+ LIST_FILTERS_LEFT: PROPS_FILTERS_COMPONENT[];
24
+ LIST_FILTERS_RIGHT: PROPS_FILTERS_COMPONENT[];
25
+ totalCardData: ({
26
+ icon: string;
27
+ title: string;
28
+ value: number;
29
+ isUp: boolean;
30
+ deviant: string;
31
+ filter: string;
32
+ } | {
33
+ icon: string;
34
+ title: string;
35
+ value: string;
36
+ isUp: boolean;
37
+ deviant: string;
38
+ filter: string;
39
+ })[];
40
+ onChangeFilters: (filterSelect: import("../../../utils/type").IFilter) => void;
41
+ initialTypeChart: (TYPECHART.AREA | TYPECHART)[];
42
+ handleSelectToPrint: (checked: boolean, data: any, chartType: any) => void;
43
+ checkSelectedItem: (id: string) => boolean;
44
+ selectedToPrint: any;
45
+ setSelectedToPrint: React.Dispatch<any>;
46
+ chartOneToOneData: import("../configs/types").IColumnChartAndPercent;
47
+ topLearningStrategies: import("../configs/types").IlearningStrategies;
48
+ chartClassReflection: import("../configs/types").IColumnChartAndPercent;
49
+ chartConference: import("../configs/types").IColumnChartAndPercent;
50
+ safety: import("../configs/types").IColumnChartAndPercent;
51
+ };
52
+ export default useChartDatas;
@@ -1,33 +1,57 @@
1
1
  /// <reference types="react" />
2
- import { DashboardFilter, IActivityCircle, IlearningStrategies, IReadinessToLearning, IStudentByGrade, IStudentBySpecialNeed, IsyntheticFriendCircle } from "../configs/types";
2
+ import { DashboardFilter, IActivityCircle, IlearningStrategies, IReadinessToLearning, IStudentByGrade, IStudentBySpecialNeed, IsyntheticFriendCircle, BAND_SCORE, IColumnChartAndPercent, IStudentByAge, IStudentByGender, IDashboardToTalStudent } from "../configs/types";
3
+ import { IFilter, Student, ISeries } from "../../../utils/type";
3
4
  declare const useDashboard: () => {
4
5
  setFilter: import("react").Dispatch<import("react").SetStateAction<DashboardFilter>>;
5
6
  filter: DashboardFilter;
6
- listTotalTime: any;
7
+ listTotalTime: IDashboardToTalStudent;
7
8
  readinessToLearning: IReadinessToLearning[];
8
9
  topLearningStrategies: IlearningStrategies;
9
10
  studentByGrade: IStudentByGrade[];
10
- chartOneToOneData: never[];
11
- chartClassReflection: never[];
12
- chartConference: never[];
13
- learningProgress: never[];
11
+ chartOneToOneData: IColumnChartAndPercent;
12
+ chartClassReflection: IColumnChartAndPercent;
13
+ chartConference: IColumnChartAndPercent;
14
+ learningProgress: IColumnChartAndPercent;
14
15
  friendCircles: IsyntheticFriendCircle | undefined;
15
16
  activityCircles: IActivityCircle | undefined;
16
17
  studentBySpecialNeed: IStudentBySpecialNeed[];
17
- studentByAge: undefined;
18
- studentByGender: undefined;
19
- grades: string[];
20
- safety: never[];
18
+ studentByAge: IStudentByAge;
19
+ studentByGender: IStudentByGender;
20
+ safety: IColumnChartAndPercent;
21
21
  topSkill: never[];
22
- getConvertMinuteToHour: (timeSecond: any) => string;
23
- teacherId: number;
24
- setTeacherId: import("react").Dispatch<import("react").SetStateAction<number>>;
25
- studentId: number;
26
- setStudentId: import("react").Dispatch<import("react").SetStateAction<number>>;
27
- onFilter: () => void;
28
- studentUserId: string;
29
- setStudentUserId: import("react").Dispatch<import("react").SetStateAction<string>>;
30
- teacherUserId: string;
31
- setTeacherUserId: import("react").Dispatch<import("react").SetStateAction<string>>;
22
+ handleChangeFilters: (event: any) => void;
23
+ bandScore: BAND_SCORE[];
24
+ user: any;
25
+ studentDefault: Student | undefined;
26
+ setStudentDefault: import("react").Dispatch<import("react").SetStateAction<Student | undefined>>;
27
+ genderOfStudent: string;
28
+ setGenderOfStudent: import("react").Dispatch<import("react").SetStateAction<string>>;
29
+ handleFilterStudent: (option: any) => void;
30
+ handleFilterTeacher: (option: any) => void;
31
+ onChangeFilters: (filterSelect: IFilter) => void;
32
+ handleActiveColumnOneToOne: (index: any) => void;
33
+ seriesOneToOne: ISeries[];
34
+ avgOneToOne: number[];
35
+ dataConvertedOneToOne: string[];
36
+ monthsOneToOne: string[];
37
+ activeColumnOneToOne: boolean[];
38
+ handleActiveColumnClassReflection: (index: any) => void;
39
+ seriesClassRefection: ISeries[];
40
+ avgClassReflection: number[];
41
+ dataConvertedClassReflection: string[];
42
+ monthsClassReflection: string[];
43
+ activeColumnClassReflection: boolean[];
44
+ handleActiveColumnConference: (index: number) => void;
45
+ seriesConference: ISeries[];
46
+ avgConference: number[];
47
+ dataConvertedConference: string[];
48
+ monthsConference: string[];
49
+ activeColumnConference: boolean[];
50
+ handleActiveColumnSafety: (index: number) => void;
51
+ seriesSafety: ISeries[];
52
+ avgSafety: number[];
53
+ dataConvertedSafety: string[];
54
+ monthsSafety: string[];
55
+ activeColumnSafety: boolean[];
32
56
  };
33
57
  export default useDashboard;
@@ -0,0 +1,13 @@
1
+ import { FC } from "react";
2
+ import { IDesignation } from "../../../utils/serviceType.interface";
3
+ import { IDestinationDetail } from "../utils/type.interface";
4
+ export interface IProps {
5
+ ref: any;
6
+ isOpen: boolean;
7
+ isEdit?: boolean;
8
+ onConfirm: (values: IDestinationDetail) => void;
9
+ onCancel: () => void;
10
+ value: IDesignation;
11
+ }
12
+ declare const DestinationModal: FC<IProps>;
13
+ export default DestinationModal;